@bounded-sh/client 0.0.20 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/README.md +2 -2
  2. package/dist/index.js +148 -33
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.mjs +148 -33
  5. package/dist/index.mjs.map +1 -1
  6. package/dist/{index.native-BtM38BVP.js → index.native-DdKzAUjN.js} +152 -37
  7. package/dist/index.native-DdKzAUjN.js.map +1 -0
  8. package/dist/{index.native-w12aoVNW.mjs → index.native-N3xLU862.mjs} +152 -37
  9. package/dist/index.native-N3xLU862.mjs.map +1 -0
  10. package/dist/index.native.js +1 -1
  11. package/dist/index.native.mjs +1 -1
  12. package/dist/{phantom-wallet-provider-BT2V4EU5.mjs → phantom-wallet-provider-DcE4A2_e.mjs} +2 -2
  13. package/dist/{phantom-wallet-provider-BT2V4EU5.mjs.map → phantom-wallet-provider-DcE4A2_e.mjs.map} +1 -1
  14. package/dist/{phantom-wallet-provider-BJWelaiH.js → phantom-wallet-provider-Dz9lQvNv.js} +2 -2
  15. package/dist/{phantom-wallet-provider-BJWelaiH.js.map → phantom-wallet-provider-Dz9lQvNv.js.map} +1 -1
  16. package/dist/{privy-wallet-provider-BSh0aZVL.js → privy-wallet-provider-DUvjxNXK.js} +3 -3
  17. package/dist/{privy-wallet-provider-BSh0aZVL.js.map → privy-wallet-provider-DUvjxNXK.js.map} +1 -1
  18. package/dist/{privy-wallet-provider-LV1X7hZe.mjs → privy-wallet-provider-oG3o5vko.mjs} +3 -3
  19. package/dist/{privy-wallet-provider-LV1X7hZe.mjs.map → privy-wallet-provider-oG3o5vko.mjs.map} +1 -1
  20. package/dist/{solana-mobile-wallet-provider-CKsfiyDd.js → solana-mobile-wallet-provider-DdBoG6c2.js} +2 -2
  21. package/dist/{solana-mobile-wallet-provider-CKsfiyDd.js.map → solana-mobile-wallet-provider-DdBoG6c2.js.map} +1 -1
  22. package/dist/{solana-mobile-wallet-provider-NLe9_mEn.mjs → solana-mobile-wallet-provider-aS60_GZR.mjs} +2 -2
  23. package/dist/{solana-mobile-wallet-provider-NLe9_mEn.mjs.map → solana-mobile-wallet-provider-aS60_GZR.mjs.map} +1 -1
  24. package/package.json +2 -2
  25. package/dist/index.native-BtM38BVP.js.map +0 -1
  26. package/dist/index.native-w12aoVNW.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../.rollup-tmp/platform.js","../.rollup-tmp/auth/providers/offchain-auth-provider.js","../node_modules/base64-js/index.js","../node_modules/ieee754/index.js","../node_modules/buffer/index.js","../node_modules/safe-buffer/index.js","../node_modules/base-x/src/index.js","../node_modules/bs58/src/esm/index.js","../.rollup-tmp/auth/providers/guest-keystore.js","../.rollup-tmp/auth/providers/guest-auth-provider.js","../.rollup-tmp/auth/providers/email-auth-provider.js","../.rollup-tmp/auth/solana-rpc.js","../.rollup-tmp/auth/oidc-auth.js","../.rollup-tmp/auth/index.js","../.rollup-tmp/global.js","../.rollup-tmp/auth/hooks/useAuth.js","../.rollup-tmp/hooks/useQuery.js","../.rollup-tmp/auth/providers/sol/sol-utils.js","../.rollup-tmp/utils.js","../.rollup-tmp/auth/providers/transaction-utils.js","../.rollup-tmp/auth/providers/phantom-wallet-provider.js","../.rollup-tmp/auth/providers/solana-mobile-wallet-provider.js","../.rollup-tmp/auth/providers/privy-wallet-provider.js","../.rollup-tmp/auth/providers/privy-expo-provider.js"],"sourcesContent":["/**\n * Platform abstraction layer for React Native compatibility.\n *\n * This module provides interfaces and default (web) implementations for\n * browser-specific APIs that are unavailable in React Native:\n * - Storage (localStorage / sessionStorage)\n * - TextEncoder\n * - Base-64 (btoa / atob)\n * - SubtleCrypto (crypto.subtle.digest)\n * - DOM helpers (document.*, requestAnimationFrame)\n * - Location (window.location.origin)\n * - UserAgent (navigator.userAgent)\n *\n * React Native consumers call `setPlatform(adapter)` once at startup to\n * supply their own implementations (e.g. AsyncStorage-backed storage,\n * expo-crypto, react-native-get-random-values, etc.).\n *\n * Web consumers don't need to do anything — the defaults use the browser APIs.\n */\n/** In-memory fallback when neither browser storage nor a custom adapter exist. */\nclass MemoryStorage {\n constructor() {\n this.store = new Map();\n }\n getItem(key) { var _a; return (_a = this.store.get(key)) !== null && _a !== void 0 ? _a : null; }\n setItem(key, value) { this.store.set(key, value); }\n removeItem(key) { this.store.delete(key); }\n}\n// ---------------------------------------------------------------------------\n// Default web implementation\n// ---------------------------------------------------------------------------\nfunction createWebPlatform() {\n const hasWindow = typeof window !== 'undefined';\n const hasDoc = typeof document !== 'undefined';\n return {\n storage: hasWindow && typeof localStorage !== 'undefined'\n ? localStorage\n : new MemoryStorage(),\n sessionStorage: hasWindow && typeof sessionStorage !== 'undefined'\n ? sessionStorage\n : new MemoryStorage(),\n textEncode(input) {\n return new TextEncoder().encode(input);\n },\n atob(input) {\n if (hasWindow)\n return window.atob(input);\n // Node / SSR fallback\n return Buffer.from(input, 'base64').toString('binary');\n },\n btoa(input) {\n if (hasWindow)\n return window.btoa(input);\n return Buffer.from(input, 'binary').toString('base64');\n },\n async sha256(data) {\n if (typeof crypto !== 'undefined' && crypto.subtle) {\n return crypto.subtle.digest('SHA-256', data);\n }\n // Node / SSR fallback\n const { createHash } = await import('crypto');\n const hash = createHash('sha256').update(data).digest();\n return hash.buffer.slice(hash.byteOffset, hash.byteOffset + hash.byteLength);\n },\n getUserAgent() {\n if (hasWindow && typeof navigator !== 'undefined')\n return navigator.userAgent;\n return '';\n },\n getLocationOrigin() {\n if (hasWindow && window.location)\n return window.location.origin;\n return undefined;\n },\n hasDOM: hasDoc,\n };\n}\n// ---------------------------------------------------------------------------\n// Singleton & public API\n// ---------------------------------------------------------------------------\nlet _platform = createWebPlatform();\nlet _platformConfigured = false;\n/**\n * Override the platform adapter (call once at app startup in React Native).\n *\n * Must be called **before** `init()`. Can only be called once — subsequent\n * calls throw to prevent accidental mid-session storage swaps.\n *\n * ```ts\n * import { setPlatform } from '@bounded-sh/web';\n * import AsyncStorage from '@react-native-async-storage/async-storage';\n *\n * // Create a synchronous wrapper around AsyncStorage for the adapter\n * // (see docs for a full example).\n * setPlatform({ storage: myStorage, ... });\n * ```\n */\nexport function setPlatform(adapter) {\n if (_platformConfigured) {\n throw new Error('setPlatform() has already been called. It can only be invoked once at startup.');\n }\n _platformConfigured = true;\n _platform = Object.assign(Object.assign({}, _platform), adapter);\n}\n/** Get the current platform adapter. */\nexport function getPlatform() {\n return _platform;\n}\n// ---------------------------------------------------------------------------\n// Mobile / Android detection helpers\n// ---------------------------------------------------------------------------\n/**\n * Detect mobile device even when Chrome \"Request Desktop Site\" is active.\n *\n * Desktop mode on Android strips \"Android\" and \"Mobile\" from the UA, leaving\n * something like \"Linux x86_64 …\". The fallback detects this by looking for\n * touch capability + small viewport + a UA that doesn't belong to a known\n * desktop OS (ChromeOS, Windows, macOS).\n */\nexport function detectMobile() {\n const ua = _platform.getUserAgent();\n if (/Android|iPhone|iPad|iPod/i.test(ua))\n return true;\n if (typeof navigator !== 'undefined' && typeof window !== 'undefined') {\n const hasTouch = navigator.maxTouchPoints > 0;\n // Macs don't have touch screens, so \"Macintosh\" + touch = iOS desktop mode\n // (also catches iPadOS 13+ which always reports as Macintosh)\n if (/Macintosh/i.test(ua) && hasTouch)\n return true;\n // Android desktop mode: Linux UA + touch + small viewport, excluding\n // known desktop OSes (ChromeOS, Windows, macOS)\n const isSmallViewport = window.innerWidth <= 1024;\n const isDesktopOS = /CrOS|Windows|Macintosh/i.test(ua);\n if (hasTouch && isSmallViewport && !isDesktopOS)\n return true;\n }\n return false;\n}\n/**\n * Detect Android, including desktop-mode Chrome and Seeker/Saga in-app browsers.\n */\nexport function detectAndroid() {\n const ua = _platform.getUserAgent();\n if (/Android/i.test(ua))\n return true;\n if (/SolanaWallet|SeedVault/i.test(ua))\n return true;\n // Desktop-mode fallback: detected as mobile + Linux UA + not another OS\n if (detectMobile() && /Linux/i.test(ua) && !/CrOS|Macintosh|iPhone|iPad/i.test(ua))\n return true;\n return false;\n}\n/**\n * Reset the platform to web defaults and clear the configured flag.\n * **For testing only** — not exported from the public API.\n * @internal\n */\nexport function _resetPlatformForTesting() {\n _platform = createWebPlatform();\n _platformConfigured = false;\n}\n","import { getPlatform } from \"../../platform\";\n/**\n * OffchainAuthProvider wraps a real auth provider (e.g., Phantom) for the poofnet environment.\n *\n * signMessage shows a custom confirmation modal and then delegates to the wrapped\n * provider for a real detached signature over the exact offchain transaction message.\n */\nexport class OffchainAuthProvider {\n constructor(wrappedProvider, config = {}) {\n this.modalContainer = null;\n this.wrappedProvider = wrappedProvider;\n this.config = config;\n }\n // ============ Delegated Methods ============\n async login() {\n const user = await this.wrappedProvider.login();\n if (user) {\n return Object.assign(Object.assign({}, user), { provider: this });\n }\n return null;\n }\n async logout() {\n await this.wrappedProvider.logout();\n }\n async restoreSession() {\n const user = await this.wrappedProvider.restoreSession();\n if (user) {\n return Object.assign(Object.assign({}, user), { provider: this });\n }\n return null;\n }\n async runTransaction(evmTransactionData, solTransactionData, options) {\n return this.wrappedProvider.runTransaction(evmTransactionData, solTransactionData, options);\n }\n async signTransaction(tx) {\n if (getPlatform().hasDOM) {\n await this.showUnsupportedTransactionModal();\n }\n throw new Error('Poofnet does not support real Solana transactions. Deploy your project to mainnet to use this feature.');\n }\n /**\n * Sign and submit transaction - not supported in poofnet environment.\n * See the real providers (PhantomWalletProvider, SolanaKeypairProvider)\n * for the full implementation with blockhash handling and feePayer support.\n */\n async signAndSubmitTransaction(_transaction, _feePayer) {\n if (getPlatform().hasDOM) {\n await this.showUnsupportedTransactionModal();\n }\n throw new Error('Poofnet does not support real Solana transactions. Deploy your project to mainnet to use this feature.');\n }\n async getNativeMethods() {\n return this.wrappedProvider.getNativeMethods();\n }\n // ============ signMessage delegates to wrapped provider ============\n async signMessage(message) {\n var _a, _b, _c, _d, _e, _f;\n (_b = (_a = this.config).onSigningStart) === null || _b === void 0 ? void 0 : _b.call(_a);\n try {\n // On RN (no DOM), auto-confirm — there's no modal to show.\n // On web, show the confirmation modal.\n if (getPlatform().hasDOM) {\n const confirmed = await this.showTransactionModal(message);\n if (!confirmed) {\n throw new Error(\"Transaction rejected by user\");\n }\n }\n const signature = await this.wrappedProvider.signMessage(message);\n // Callback: signing complete\n (_d = (_c = this.config).onSigningComplete) === null || _d === void 0 ? void 0 : _d.call(_c, signature);\n return signature;\n }\n catch (error) {\n (_f = (_e = this.config).onSigningError) === null || _f === void 0 ? void 0 : _f.call(_e, error);\n throw error;\n }\n }\n // ============ Modal Implementation ============\n async showUnsupportedTransactionModal() {\n return new Promise((resolve) => {\n // Create modal container\n this.modalContainer = document.createElement(\"div\");\n this.modalContainer.id = \"poofnet-unsupported-modal\";\n this.modalContainer.appendChild(this.buildUnsupportedModalContent());\n document.body.appendChild(this.modalContainer);\n // Add styles\n const style = document.createElement(\"style\");\n style.textContent = this.getModalStyles();\n this.modalContainer.appendChild(style);\n // Mark all other body children as inert\n document.body.childNodes.forEach((child) => {\n if (child !== this.modalContainer &&\n child instanceof HTMLElement) {\n child.setAttribute(\"inert\", \"\");\n }\n });\n // Animate in\n requestAnimationFrame(() => {\n var _a, _b;\n const overlay = (_a = this.modalContainer) === null || _a === void 0 ? void 0 : _a.querySelector(\".poofnet-modal-overlay\");\n const content = (_b = this.modalContainer) === null || _b === void 0 ? void 0 : _b.querySelector(\".poofnet-modal-content\");\n if (overlay)\n overlay.style.opacity = \"1\";\n if (content) {\n content.style.opacity = \"1\";\n content.style.transform = \"translateY(0)\";\n }\n });\n // Handle close button\n const closeBtn = this.modalContainer.querySelector(\"#poofnet-close-btn\");\n closeBtn === null || closeBtn === void 0 ? void 0 : closeBtn.addEventListener(\"click\", () => {\n this.closeModal();\n resolve();\n });\n // Handle cancel button\n const cancelBtn = this.modalContainer.querySelector(\"#poofnet-cancel-btn\");\n cancelBtn === null || cancelBtn === void 0 ? void 0 : cancelBtn.addEventListener(\"click\", () => {\n this.closeModal();\n resolve();\n });\n // Handle overlay click\n const overlay = this.modalContainer.querySelector(\".poofnet-modal-overlay\");\n overlay === null || overlay === void 0 ? void 0 : overlay.addEventListener(\"click\", (e) => {\n if (e.target === overlay) {\n this.closeModal();\n resolve();\n }\n });\n // Handle escape key\n const escHandler = (e) => {\n if (e.key === \"Escape\") {\n document.removeEventListener(\"keydown\", escHandler);\n this.closeModal();\n resolve();\n }\n };\n document.addEventListener(\"keydown\", escHandler);\n });\n }\n async showTransactionModal(message) {\n return new Promise((resolve) => {\n // Parse the transaction message for display\n let parsed = {};\n try {\n parsed = JSON.parse(message);\n }\n catch (_a) {\n // If not JSON, just show raw message\n }\n // Create modal container\n this.modalContainer = document.createElement(\"div\");\n this.modalContainer.id = \"poofnet-tx-modal\";\n this.modalContainer.appendChild(this.buildTransactionModalContent(parsed, message));\n document.body.appendChild(this.modalContainer);\n // Add styles\n const style = document.createElement(\"style\");\n style.textContent = this.getModalStyles();\n this.modalContainer.appendChild(style);\n // Mark all other body children as inert to disable focus traps from other modals\n document.body.childNodes.forEach((child) => {\n if (child !== this.modalContainer &&\n child instanceof HTMLElement) {\n child.setAttribute(\"inert\", \"\");\n }\n });\n // Animate in\n requestAnimationFrame(() => {\n var _a, _b;\n const overlay = (_a = this.modalContainer) === null || _a === void 0 ? void 0 : _a.querySelector(\".poofnet-modal-overlay\");\n const content = (_b = this.modalContainer) === null || _b === void 0 ? void 0 : _b.querySelector(\".poofnet-modal-content\");\n if (overlay)\n overlay.style.opacity = \"1\";\n if (content) {\n content.style.opacity = \"1\";\n content.style.transform = \"translateY(0)\";\n }\n });\n // Handle confirm\n const confirmBtn = this.modalContainer.querySelector(\"#poofnet-confirm-btn\");\n confirmBtn === null || confirmBtn === void 0 ? void 0 : confirmBtn.addEventListener(\"click\", () => {\n this.closeModal();\n resolve(true);\n });\n // Handle cancel\n const cancelBtn = this.modalContainer.querySelector(\"#poofnet-cancel-btn\");\n cancelBtn === null || cancelBtn === void 0 ? void 0 : cancelBtn.addEventListener(\"click\", () => {\n this.closeModal();\n resolve(false);\n });\n // Handle close button\n const closeBtn = this.modalContainer.querySelector(\"#poofnet-close-btn\");\n closeBtn === null || closeBtn === void 0 ? void 0 : closeBtn.addEventListener(\"click\", () => {\n this.closeModal();\n resolve(false);\n });\n // Handle overlay click\n const overlay = this.modalContainer.querySelector(\".poofnet-modal-overlay\");\n overlay === null || overlay === void 0 ? void 0 : overlay.addEventListener(\"click\", (e) => {\n if (e.target === overlay) {\n this.closeModal();\n resolve(false);\n }\n });\n // Handle escape key\n const escHandler = (e) => {\n if (e.key === \"Escape\") {\n document.removeEventListener(\"keydown\", escHandler);\n this.closeModal();\n resolve(false);\n }\n };\n document.addEventListener(\"keydown\", escHandler);\n });\n }\n closeModal() {\n if (this.modalContainer) {\n // Remove inert attribute from all elements\n document.body.querySelectorAll(\"[inert]\").forEach((el) => {\n el.removeAttribute(\"inert\");\n });\n const overlay = this.modalContainer.querySelector(\".poofnet-modal-overlay\");\n const content = this.modalContainer.querySelector(\".poofnet-modal-content\");\n if (overlay)\n overlay.style.opacity = \"0\";\n if (content) {\n content.style.opacity = \"0\";\n content.style.transform = \"translateY(20px)\";\n }\n setTimeout(() => {\n var _a;\n (_a = this.modalContainer) === null || _a === void 0 ? void 0 : _a.remove();\n this.modalContainer = null;\n }, 200);\n }\n }\n createElement(tag, className, text) {\n const el = document.createElement(tag);\n if (className)\n el.className = className;\n if (text !== undefined)\n el.textContent = text;\n return el;\n }\n appendTextElement(parent, tag, className, text) {\n const el = this.createElement(tag, className, text);\n parent.appendChild(el);\n return el;\n }\n buildModalShell(icon, title) {\n const overlay = this.createElement(\"div\", \"poofnet-modal-overlay\");\n const content = this.createElement(\"div\", \"poofnet-modal-content\");\n overlay.appendChild(content);\n const close = this.createElement(\"button\", \"poofnet-close-btn\", \"×\");\n close.id = \"poofnet-close-btn\";\n close.setAttribute(\"aria-label\", \"Close\");\n close.type = \"button\";\n content.appendChild(close);\n const header = this.createElement(\"div\", \"poofnet-modal-header\");\n this.appendTextElement(header, \"div\", \"poofnet-modal-icon\", icon);\n this.appendTextElement(header, \"h2\", \"poofnet-modal-title\", title);\n this.appendTextElement(header, \"p\", \"poofnet-modal-subtitle\", \"Poofnet Simulated Blockchain\");\n content.appendChild(header);\n const body = this.createElement(\"div\", \"poofnet-modal-body\");\n content.appendChild(body);\n const footer = this.createElement(\"div\", \"poofnet-modal-footer\");\n content.appendChild(footer);\n return { overlay, body, footer };\n }\n buildInfoBox(text, warning = false) {\n const info = this.createElement(\"div\", \"poofnet-info-box\");\n if (warning)\n info.style.background = \"#fef3c7\";\n this.appendTextElement(info, \"span\", \"poofnet-info-icon\", \"ℹ️\");\n const infoText = this.createElement(\"span\", \"poofnet-info-text\", text);\n if (warning)\n infoText.style.color = \"#92400e\";\n info.appendChild(infoText);\n return info;\n }\n buildUnsupportedModalContent() {\n const { overlay, body, footer } = this.buildModalShell(\"⚠️\", \"Transaction Not Supported\");\n body.appendChild(this.buildInfoBox(\"Poofnet is a simulated blockchain and does not support real Solana transactions. Deploy your project to mainnet to test real transactions.\", true));\n const close = this.createElement(\"button\", \"poofnet-btn poofnet-btn-cancel\", \"Close\");\n close.id = \"poofnet-cancel-btn\";\n close.type = \"button\";\n close.style.flex = \"1\";\n footer.appendChild(close);\n return overlay;\n }\n formatPath(path) {\n const parts = path.split(\"/\").filter(Boolean);\n if (parts.length >= 2) {\n return {\n collection: parts[0],\n documentId: parts[parts.length - 1],\n };\n }\n return { collection: parts[0] || path, documentId: null };\n }\n formatFieldValue(value) {\n if (value === null || value === undefined)\n return \"null\";\n if (typeof value === \"string\") {\n return value.length > 30\n ? `\"${value.slice(0, 30)}...\"`\n : `\"${value}\"`;\n }\n if (typeof value === \"number\" || typeof value === \"boolean\")\n return String(value);\n if (Array.isArray(value))\n return `[${value.length} items]`;\n if (typeof value === \"object\")\n return `{${Object.keys(value).length} fields}`;\n return String(value);\n }\n getActionDescription(type, collection, isNew) {\n if (type === \"delete\")\n return `Delete from ${collection}`;\n return isNew ? `Create in ${collection}` : `Update ${collection}`;\n }\n buildTransactionModalContent(parsed, rawMessage) {\n const instructions = parsed.instructions || [];\n // Group instructions by type for summary\n const sets = instructions.filter((i) => i.type === \"set\");\n const deletes = instructions.filter((i) => i.type === \"delete\");\n // Create summary text\n let summaryText = \"\";\n if (sets.length > 0 && deletes.length > 0) {\n summaryText = `${sets.length} update${sets.length > 1 ? \"s\" : \"\"}, ${deletes.length} delete${deletes.length > 1 ? \"s\" : \"\"}`;\n }\n else if (sets.length > 0) {\n summaryText = `${sets.length} update${sets.length > 1 ? \"s\" : \"\"}`;\n }\n else if (deletes.length > 0) {\n summaryText = `${deletes.length} delete${deletes.length > 1 ? \"s\" : \"\"}`;\n }\n const { overlay, body, footer } = this.buildModalShell(\"🔐\", \"Confirm Transaction\");\n if (instructions.length > 0) {\n if (summaryText) {\n this.appendTextElement(body, \"div\", \"poofnet-summary\", summaryText);\n }\n const list = this.createElement(\"div\", \"poofnet-instructions-list\");\n for (const inst of instructions) {\n list.appendChild(this.buildInstructionElement(inst));\n }\n body.appendChild(list);\n }\n else {\n const section = this.createElement(\"div\", \"poofnet-section\");\n this.appendTextElement(section, \"h3\", \"poofnet-section-title\", \"Message\");\n const raw = this.createElement(\"pre\", \"poofnet-raw-message\", rawMessage.slice(0, 200) + (rawMessage.length > 200 ? \"...\" : \"\"));\n section.appendChild(raw);\n body.appendChild(section);\n }\n body.appendChild(this.buildInfoBox(\"This is a simulated transaction. No real fees will be charged.\"));\n const cancel = this.createElement(\"button\", \"poofnet-btn poofnet-btn-cancel\", \"Cancel\");\n cancel.id = \"poofnet-cancel-btn\";\n cancel.type = \"button\";\n footer.appendChild(cancel);\n const confirm = this.createElement(\"button\", \"poofnet-btn poofnet-btn-confirm\", \"Confirm\");\n confirm.id = \"poofnet-confirm-btn\";\n confirm.type = \"button\";\n footer.appendChild(confirm);\n return overlay;\n }\n buildInstructionElement(inst) {\n const { collection, documentId } = this.formatPath(inst.path);\n const isDelete = inst.type === \"delete\";\n const card = this.createElement(\"div\", `poofnet-instruction ${isDelete ? \"poofnet-action-delete\" : \"poofnet-action-set\"}`);\n const header = this.createElement(\"div\", \"poofnet-instruction-header\");\n this.appendTextElement(header, \"span\", \"poofnet-instruction-icon\", isDelete ? \"🗑️\" : \"✏️\");\n this.appendTextElement(header, \"span\", \"poofnet-instruction-action\", isDelete ? \"Delete\" : \"Save\");\n this.appendTextElement(header, \"span\", \"poofnet-instruction-collection\", collection);\n card.appendChild(header);\n if (documentId) {\n this.appendTextElement(card, \"div\", \"poofnet-instruction-id\", `ID: ${documentId}`);\n }\n if (inst.data && !isDelete) {\n const fieldKeys = Object.keys(inst.data).filter((key) => !key.startsWith(\"_\"));\n const visibleFields = fieldKeys.slice(0, 4);\n if (visibleFields.length > 0) {\n const fields = this.createElement(\"div\", \"poofnet-fields\");\n for (const key of visibleFields) {\n const row = this.createElement(\"div\", \"poofnet-field\");\n this.appendTextElement(row, \"span\", \"poofnet-field-key\", `${key}:`);\n this.appendTextElement(row, \"span\", \"poofnet-field-value\", this.formatFieldValue(inst.data[key]));\n fields.appendChild(row);\n }\n if (fieldKeys.length > 4) {\n this.appendTextElement(fields, \"div\", \"poofnet-field-more\", `+${fieldKeys.length - 4} more fields`);\n }\n card.appendChild(fields);\n }\n }\n return card;\n }\n getModalStyles() {\n return `\n /* Ensure inert elements remain visible while being non-interactive */\n [inert] {\n visibility: visible !important;\n opacity: 1 !important;\n display: unset !important;\n }\n\n .poofnet-modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.5);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 999999;\n opacity: 0;\n transition: opacity 0.2s ease;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n }\n\n .poofnet-modal-content {\n background: white;\n border-radius: 16px;\n width: 90%;\n max-width: 420px;\n box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);\n opacity: 0;\n transform: translateY(20px);\n transition: all 0.2s ease;\n max-height: 90vh;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n position: relative;\n }\n\n .poofnet-close-btn {\n position: absolute;\n top: 12px;\n right: 12px;\n width: 28px;\n height: 28px;\n border: none;\n background: #f3f4f6;\n border-radius: 8px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n color: #6b7280;\n transition: all 0.15s ease;\n z-index: 1;\n }\n\n .poofnet-close-btn:hover {\n background: #e5e7eb;\n color: #374151;\n }\n\n .poofnet-modal-header {\n padding: 24px 24px 16px;\n text-align: center;\n border-bottom: 1px solid #f0f0f0;\n flex-shrink: 0;\n }\n\n .poofnet-modal-icon {\n font-size: 40px;\n margin-bottom: 8px;\n }\n\n .poofnet-modal-title {\n margin: 0;\n font-size: 18px;\n font-weight: 600;\n color: #1a1a1a;\n }\n\n .poofnet-modal-subtitle {\n margin: 4px 0 0;\n font-size: 13px;\n color: #8b5cf6;\n font-weight: 500;\n }\n\n .poofnet-modal-body {\n padding: 16px 20px;\n overflow-y: auto;\n flex: 1;\n }\n\n .poofnet-summary {\n font-size: 13px;\n color: #6b7280;\n margin-bottom: 12px;\n text-align: center;\n }\n\n .poofnet-section {\n margin-bottom: 16px;\n }\n\n .poofnet-section-title {\n font-size: 12px;\n font-weight: 600;\n color: #666;\n text-transform: uppercase;\n letter-spacing: 0.5px;\n margin: 0 0 8px;\n }\n\n .poofnet-instructions-list {\n display: flex;\n flex-direction: column;\n gap: 10px;\n }\n\n .poofnet-instruction {\n background: #f9fafb;\n border-radius: 10px;\n padding: 12px;\n border-left: 3px solid #8b5cf6;\n }\n\n .poofnet-instruction.poofnet-action-delete {\n border-left-color: #ef4444;\n }\n\n .poofnet-instruction-header {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 4px;\n }\n\n .poofnet-instruction-icon {\n font-size: 16px;\n flex-shrink: 0;\n }\n\n .poofnet-instruction-action {\n font-size: 13px;\n font-weight: 600;\n color: #8b5cf6;\n }\n\n .poofnet-action-delete .poofnet-instruction-action {\n color: #ef4444;\n }\n\n .poofnet-instruction-collection {\n font-size: 13px;\n font-weight: 500;\n color: #374151;\n }\n\n .poofnet-instruction-id {\n font-size: 11px;\n color: #9ca3af;\n font-family: monospace;\n margin-bottom: 8px;\n word-break: break-all;\n }\n\n .poofnet-fields {\n background: white;\n border-radius: 6px;\n padding: 8px 10px;\n margin-top: 8px;\n }\n\n .poofnet-field {\n display: flex;\n gap: 8px;\n padding: 4px 0;\n font-size: 12px;\n border-bottom: 1px solid #f3f4f6;\n }\n\n .poofnet-field:last-child {\n border-bottom: none;\n }\n\n .poofnet-field-key {\n color: #6b7280;\n font-weight: 500;\n flex-shrink: 0;\n }\n\n .poofnet-field-value {\n color: #374151;\n word-break: break-all;\n }\n\n .poofnet-field-more {\n font-size: 11px;\n color: #9ca3af;\n padding-top: 4px;\n font-style: italic;\n }\n\n .poofnet-raw-message {\n background: #f9fafb;\n border-radius: 8px;\n padding: 12px;\n font-size: 11px;\n font-family: monospace;\n color: #4b5563;\n white-space: pre-wrap;\n word-break: break-all;\n margin: 0;\n max-height: 120px;\n overflow-y: auto;\n }\n\n .poofnet-info-box {\n display: flex;\n align-items: center;\n gap: 8px;\n background: #faf5ff;\n border-radius: 8px;\n padding: 10px 12px;\n margin-top: 12px;\n }\n\n .poofnet-info-icon {\n font-size: 14px;\n flex-shrink: 0;\n }\n\n .poofnet-info-text {\n font-size: 11px;\n color: #7c3aed;\n line-height: 1.4;\n }\n\n .poofnet-modal-footer {\n padding: 16px 20px 20px;\n display: flex;\n gap: 12px;\n flex-shrink: 0;\n border-top: 1px solid #f0f0f0;\n }\n\n .poofnet-btn {\n flex: 1;\n padding: 12px 16px;\n border-radius: 10px;\n font-size: 14px;\n font-weight: 600;\n cursor: pointer;\n transition: all 0.15s ease;\n border: none;\n }\n\n .poofnet-btn-cancel {\n background: #f3f4f6;\n color: #4b5563;\n }\n\n .poofnet-btn-cancel:hover {\n background: #e5e7eb;\n }\n\n .poofnet-btn-confirm {\n background: #8b5cf6;\n color: white;\n }\n\n .poofnet-btn-confirm:hover {\n background: #7c3aed;\n }\n `;\n }\n}\n","'use strict'\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n var i\n for (i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n","/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */\nexports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = ((value * c) - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n","/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh <https://feross.org>\n * @license MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nconst base64 = require('base64-js')\nconst ieee754 = require('ieee754')\nconst customInspectSymbol =\n (typeof Symbol === 'function' && typeof Symbol['for'] === 'function') // eslint-disable-line dot-notation\n ? Symbol['for']('nodejs.util.inspect.custom') // eslint-disable-line dot-notation\n : null\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\nconst K_MAX_LENGTH = 0x7fffffff\nexports.kMaxLength = K_MAX_LENGTH\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Print warning and recommend using `buffer` v4.x which has an Object\n * implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * We report that the browser does not support typed arrays if the are not subclassable\n * using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array`\n * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support\n * for __proto__ and has a buggy typed array implementation.\n */\nBuffer.TYPED_ARRAY_SUPPORT = typedArraySupport()\n\nif (!Buffer.TYPED_ARRAY_SUPPORT && typeof console !== 'undefined' &&\n typeof console.error === 'function') {\n console.error(\n 'This browser lacks typed array (Uint8Array) support which is required by ' +\n '`buffer` v5.x. Use `buffer` v4.x if you require old browser support.'\n )\n}\n\nfunction typedArraySupport () {\n // Can typed array instances can be augmented?\n try {\n const arr = new Uint8Array(1)\n const proto = { foo: function () { return 42 } }\n Object.setPrototypeOf(proto, Uint8Array.prototype)\n Object.setPrototypeOf(arr, proto)\n return arr.foo() === 42\n } catch (e) {\n return false\n }\n}\n\nObject.defineProperty(Buffer.prototype, 'parent', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.buffer\n }\n})\n\nObject.defineProperty(Buffer.prototype, 'offset', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.byteOffset\n }\n})\n\nfunction createBuffer (length) {\n if (length > K_MAX_LENGTH) {\n throw new RangeError('The value \"' + length + '\" is invalid for option \"size\"')\n }\n // Return an augmented `Uint8Array` instance\n const buf = new Uint8Array(length)\n Object.setPrototypeOf(buf, Buffer.prototype)\n return buf\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new TypeError(\n 'The \"string\" argument must be of type string. Received type number'\n )\n }\n return allocUnsafe(arg)\n }\n return from(arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\nfunction from (value, encodingOrOffset, length) {\n if (typeof value === 'string') {\n return fromString(value, encodingOrOffset)\n }\n\n if (ArrayBuffer.isView(value)) {\n return fromArrayView(value)\n }\n\n if (value == null) {\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n }\n\n if (isInstance(value, ArrayBuffer) ||\n (value && isInstance(value.buffer, ArrayBuffer))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof SharedArrayBuffer !== 'undefined' &&\n (isInstance(value, SharedArrayBuffer) ||\n (value && isInstance(value.buffer, SharedArrayBuffer)))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof value === 'number') {\n throw new TypeError(\n 'The \"value\" argument must not be of type number. Received type number'\n )\n }\n\n const valueOf = value.valueOf && value.valueOf()\n if (valueOf != null && valueOf !== value) {\n return Buffer.from(valueOf, encodingOrOffset, length)\n }\n\n const b = fromObject(value)\n if (b) return b\n\n if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null &&\n typeof value[Symbol.toPrimitive] === 'function') {\n return Buffer.from(value[Symbol.toPrimitive]('string'), encodingOrOffset, length)\n }\n\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(value, encodingOrOffset, length)\n}\n\n// Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:\n// https://github.com/feross/buffer/pull/148\nObject.setPrototypeOf(Buffer.prototype, Uint8Array.prototype)\nObject.setPrototypeOf(Buffer, Uint8Array)\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be of type number')\n } else if (size < 0) {\n throw new RangeError('The value \"' + size + '\" is invalid for option \"size\"')\n }\n}\n\nfunction alloc (size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpreted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(size).fill(fill, encoding)\n : createBuffer(size).fill(fill)\n }\n return createBuffer(size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(size, fill, encoding)\n}\n\nfunction allocUnsafe (size) {\n assertSize(size)\n return createBuffer(size < 0 ? 0 : checked(size) | 0)\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(size)\n}\n\nfunction fromString (string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n\n const length = byteLength(string, encoding) | 0\n let buf = createBuffer(length)\n\n const actual = buf.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n buf = buf.slice(0, actual)\n }\n\n return buf\n}\n\nfunction fromArrayLike (array) {\n const length = array.length < 0 ? 0 : checked(array.length) | 0\n const buf = createBuffer(length)\n for (let i = 0; i < length; i += 1) {\n buf[i] = array[i] & 255\n }\n return buf\n}\n\nfunction fromArrayView (arrayView) {\n if (isInstance(arrayView, Uint8Array)) {\n const copy = new Uint8Array(arrayView)\n return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength)\n }\n return fromArrayLike(arrayView)\n}\n\nfunction fromArrayBuffer (array, byteOffset, length) {\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\"offset\" is outside of buffer bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\"length\" is outside of buffer bounds')\n }\n\n let buf\n if (byteOffset === undefined && length === undefined) {\n buf = new Uint8Array(array)\n } else if (length === undefined) {\n buf = new Uint8Array(array, byteOffset)\n } else {\n buf = new Uint8Array(array, byteOffset, length)\n }\n\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(buf, Buffer.prototype)\n\n return buf\n}\n\nfunction fromObject (obj) {\n if (Buffer.isBuffer(obj)) {\n const len = checked(obj.length) | 0\n const buf = createBuffer(len)\n\n if (buf.length === 0) {\n return buf\n }\n\n obj.copy(buf, 0, 0, len)\n return buf\n }\n\n if (obj.length !== undefined) {\n if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) {\n return createBuffer(0)\n }\n return fromArrayLike(obj)\n }\n\n if (obj.type === 'Buffer' && Array.isArray(obj.data)) {\n return fromArrayLike(obj.data)\n }\n}\n\nfunction checked (length) {\n // Note: cannot use `length < K_MAX_LENGTH` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= K_MAX_LENGTH) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return b != null && b._isBuffer === true &&\n b !== Buffer.prototype // so Buffer.isBuffer(Buffer.prototype) will be false\n}\n\nBuffer.compare = function compare (a, b) {\n if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength)\n if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength)\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError(\n 'The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array'\n )\n }\n\n if (a === b) return 0\n\n let x = a.length\n let y = b.length\n\n for (let i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!Array.isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n let i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n const buffer = Buffer.allocUnsafe(length)\n let pos = 0\n for (i = 0; i < list.length; ++i) {\n let buf = list[i]\n if (isInstance(buf, Uint8Array)) {\n if (pos + buf.length > buffer.length) {\n if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf)\n buf.copy(buffer, pos)\n } else {\n Uint8Array.prototype.set.call(\n buffer,\n buf,\n pos\n )\n }\n } else if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n } else {\n buf.copy(buffer, pos)\n }\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n throw new TypeError(\n 'The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. ' +\n 'Received type ' + typeof string\n )\n }\n\n const len = string.length\n const mustMatch = (arguments.length > 2 && arguments[2] === true)\n if (!mustMatch && len === 0) return 0\n\n // Use a for loop to avoid recursion\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) {\n return mustMatch ? -1 : utf8ToBytes(string).length // assume utf8\n }\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n let loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coercion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package)\n// to detect a Buffer instance. It's not possible to use `instanceof Buffer`\n// reliably in a browserify context because there could be multiple different\n// copies of the 'buffer' package in use. This method works even for Buffer\n// instances that were created from another copy of the `buffer` package.\n// See: https://github.com/feross/buffer/issues/154\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n const i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n const len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (let i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n const len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (let i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n const len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (let i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n const length = this.length\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.toLocaleString = Buffer.prototype.toString\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n let str = ''\n const max = exports.INSPECT_MAX_BYTES\n str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim()\n if (this.length > max) str += ' ... '\n return '<Buffer ' + str + '>'\n}\nif (customInspectSymbol) {\n Buffer.prototype[customInspectSymbol] = Buffer.prototype.inspect\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (isInstance(target, Uint8Array)) {\n target = Buffer.from(target, target.offset, target.byteLength)\n }\n if (!Buffer.isBuffer(target)) {\n throw new TypeError(\n 'The \"target\" argument must be one of type Buffer or Uint8Array. ' +\n 'Received type ' + (typeof target)\n )\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n let x = thisEnd - thisStart\n let y = end - start\n const len = Math.min(x, y)\n\n const thisCopy = this.slice(thisStart, thisEnd)\n const targetCopy = target.slice(start, end)\n\n for (let i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (numberIsNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [val], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n let indexSize = 1\n let arrLength = arr.length\n let valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n let i\n if (dir) {\n let foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n let found = true\n for (let j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n const remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n const strLen = string.length\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n let i\n for (i = 0; i < length; ++i) {\n const parsed = parseInt(string.substr(i * 2, 2), 16)\n if (numberIsNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset >>> 0\n if (isFinite(length)) {\n length = length >>> 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n const remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n case 'latin1':\n case 'binary':\n return asciiWrite(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n const res = []\n\n let i = start\n while (i < end) {\n const firstByte = buf[i]\n let codePoint = null\n let bytesPerSequence = (firstByte > 0xEF)\n ? 4\n : (firstByte > 0xDF)\n ? 3\n : (firstByte > 0xBF)\n ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n let secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nconst MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n const len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n let res = ''\n let i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n const len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n let out = ''\n for (let i = start; i < end; ++i) {\n out += hexSliceLookupTable[buf[i]]\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n const bytes = buf.slice(start, end)\n let res = ''\n // If bytes.length is odd, the last 8 bits must be ignored (same as node.js)\n for (let i = 0; i < bytes.length - 1; i += 2) {\n res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256))\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n const len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n const newBuf = this.subarray(start, end)\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(newBuf, Buffer.prototype)\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUintLE =\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUintBE =\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n let val = this[offset + --byteLength]\n let mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUint8 =\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUint16LE =\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUint16BE =\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUint32LE =\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUint32BE =\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const lo = first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24\n\n const hi = this[++offset] +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n last * 2 ** 24\n\n return BigInt(lo) + (BigInt(hi) << BigInt(32))\n})\n\nBuffer.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const hi = first * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n const lo = this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last\n\n return (BigInt(hi) << BigInt(32)) + BigInt(lo)\n})\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let i = byteLength\n let mul = 1\n let val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = this[offset + 4] +\n this[offset + 5] * 2 ** 8 +\n this[offset + 6] * 2 ** 16 +\n (last << 24) // Overflow\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24)\n})\n\nBuffer.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = (first << 24) + // Overflow\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last)\n})\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUintLE =\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let mul = 1\n let i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUintBE =\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let i = byteLength - 1\n let mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUint8 =\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeUint16LE =\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeUint16BE =\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeUint32LE =\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeUint32BE =\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nfunction wrtBigUInt64LE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n return offset\n}\n\nfunction wrtBigUInt64BE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset + 7] = lo\n lo = lo >> 8\n buf[offset + 6] = lo\n lo = lo >> 8\n buf[offset + 5] = lo\n lo = lo >> 8\n buf[offset + 4] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset + 3] = hi\n hi = hi >> 8\n buf[offset + 2] = hi\n hi = hi >> 8\n buf[offset + 1] = hi\n hi = hi >> 8\n buf[offset] = hi\n return offset + 8\n}\n\nBuffer.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = 0\n let mul = 1\n let sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = byteLength - 1\n let mul = 1\n let sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nBuffer.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!Buffer.isBuffer(target)) throw new TypeError('argument should be a Buffer')\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('Index out of range')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n const len = end - start\n\n if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') {\n // Use built-in when available, missing from IE11\n this.copyWithin(targetStart, start, end)\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, end),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n if (val.length === 1) {\n const code = val.charCodeAt(0)\n if ((encoding === 'utf8' && code < 128) ||\n encoding === 'latin1') {\n // Fast path: If `val` fits into a single byte, use that numeric value.\n val = code\n }\n }\n } else if (typeof val === 'number') {\n val = val & 255\n } else if (typeof val === 'boolean') {\n val = Number(val)\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n let i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n const bytes = Buffer.isBuffer(val)\n ? val\n : Buffer.from(val, encoding)\n const len = bytes.length\n if (len === 0) {\n throw new TypeError('The value \"' + val +\n '\" is invalid for argument \"value\"')\n }\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// CUSTOM ERRORS\n// =============\n\n// Simplified versions from Node, changed for Buffer-only usage\nconst errors = {}\nfunction E (sym, getMessage, Base) {\n errors[sym] = class NodeError extends Base {\n constructor () {\n super()\n\n Object.defineProperty(this, 'message', {\n value: getMessage.apply(this, arguments),\n writable: true,\n configurable: true\n })\n\n // Add the error code to the name to include it in the stack trace.\n this.name = `${this.name} [${sym}]`\n // Access the stack to generate the error message including the error code\n // from the name.\n this.stack // eslint-disable-line no-unused-expressions\n // Reset the name to the actual name.\n delete this.name\n }\n\n get code () {\n return sym\n }\n\n set code (value) {\n Object.defineProperty(this, 'code', {\n configurable: true,\n enumerable: true,\n value,\n writable: true\n })\n }\n\n toString () {\n return `${this.name} [${sym}]: ${this.message}`\n }\n }\n}\n\nE('ERR_BUFFER_OUT_OF_BOUNDS',\n function (name) {\n if (name) {\n return `${name} is outside of buffer bounds`\n }\n\n return 'Attempt to access memory outside buffer bounds'\n }, RangeError)\nE('ERR_INVALID_ARG_TYPE',\n function (name, actual) {\n return `The \"${name}\" argument must be of type number. Received type ${typeof actual}`\n }, TypeError)\nE('ERR_OUT_OF_RANGE',\n function (str, range, input) {\n let msg = `The value of \"${str}\" is out of range.`\n let received = input\n if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {\n received = addNumericalSeparator(String(input))\n } else if (typeof input === 'bigint') {\n received = String(input)\n if (input > BigInt(2) ** BigInt(32) || input < -(BigInt(2) ** BigInt(32))) {\n received = addNumericalSeparator(received)\n }\n received += 'n'\n }\n msg += ` It must be ${range}. Received ${received}`\n return msg\n }, RangeError)\n\nfunction addNumericalSeparator (val) {\n let res = ''\n let i = val.length\n const start = val[0] === '-' ? 1 : 0\n for (; i >= start + 4; i -= 3) {\n res = `_${val.slice(i - 3, i)}${res}`\n }\n return `${val.slice(0, i)}${res}`\n}\n\n// CHECK FUNCTIONS\n// ===============\n\nfunction checkBounds (buf, offset, byteLength) {\n validateNumber(offset, 'offset')\n if (buf[offset] === undefined || buf[offset + byteLength] === undefined) {\n boundsError(offset, buf.length - (byteLength + 1))\n }\n}\n\nfunction checkIntBI (value, min, max, buf, offset, byteLength) {\n if (value > max || value < min) {\n const n = typeof min === 'bigint' ? 'n' : ''\n let range\n if (byteLength > 3) {\n if (min === 0 || min === BigInt(0)) {\n range = `>= 0${n} and < 2${n} ** ${(byteLength + 1) * 8}${n}`\n } else {\n range = `>= -(2${n} ** ${(byteLength + 1) * 8 - 1}${n}) and < 2 ** ` +\n `${(byteLength + 1) * 8 - 1}${n}`\n }\n } else {\n range = `>= ${min}${n} and <= ${max}${n}`\n }\n throw new errors.ERR_OUT_OF_RANGE('value', range, value)\n }\n checkBounds(buf, offset, byteLength)\n}\n\nfunction validateNumber (value, name) {\n if (typeof value !== 'number') {\n throw new errors.ERR_INVALID_ARG_TYPE(name, 'number', value)\n }\n}\n\nfunction boundsError (value, length, type) {\n if (Math.floor(value) !== value) {\n validateNumber(value, type)\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset', 'an integer', value)\n }\n\n if (length < 0) {\n throw new errors.ERR_BUFFER_OUT_OF_BOUNDS()\n }\n\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset',\n `>= ${type ? 1 : 0} and <= ${length}`,\n value)\n}\n\n// HELPER FUNCTIONS\n// ================\n\nconst INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node takes equal signs as end of the Base64 encoding\n str = str.split('=')[0]\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = str.trim().replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n let codePoint\n const length = string.length\n let leadSurrogate = null\n const bytes = []\n\n for (let i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n let c, hi, lo\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n let i\n for (i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\n// ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass\n// the `instanceof` check but they should be treated as of that type.\n// See: https://github.com/feross/buffer/issues/166\nfunction isInstance (obj, type) {\n return obj instanceof type ||\n (obj != null && obj.constructor != null && obj.constructor.name != null &&\n obj.constructor.name === type.name)\n}\nfunction numberIsNaN (obj) {\n // For IE11 support\n return obj !== obj // eslint-disable-line no-self-compare\n}\n\n// Create lookup table for `toString('hex')`\n// See: https://github.com/feross/buffer/issues/219\nconst hexSliceLookupTable = (function () {\n const alphabet = '0123456789abcdef'\n const table = new Array(256)\n for (let i = 0; i < 16; ++i) {\n const i16 = i * 16\n for (let j = 0; j < 16; ++j) {\n table[i16 + j] = alphabet[i] + alphabet[j]\n }\n }\n return table\n})()\n\n// Return not function with Error if BigInt not supported\nfunction defineBigIntMethod (fn) {\n return typeof BigInt === 'undefined' ? BufferBigIntNotDefined : fn\n}\n\nfunction BufferBigIntNotDefined () {\n throw new Error('BigInt not supported')\n}\n","/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */\n/* eslint-disable node/no-deprecated-api */\nvar buffer = require('buffer')\nvar Buffer = buffer.Buffer\n\n// alternative to using Object.keys for old browsers\nfunction copyProps (src, dst) {\n for (var key in src) {\n dst[key] = src[key]\n }\n}\nif (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {\n module.exports = buffer\n} else {\n // Copy properties from require('buffer')\n copyProps(buffer, exports)\n exports.Buffer = SafeBuffer\n}\n\nfunction SafeBuffer (arg, encodingOrOffset, length) {\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.prototype = Object.create(Buffer.prototype)\n\n// Copy static methods from Buffer\ncopyProps(Buffer, SafeBuffer)\n\nSafeBuffer.from = function (arg, encodingOrOffset, length) {\n if (typeof arg === 'number') {\n throw new TypeError('Argument must not be a number')\n }\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.alloc = function (size, fill, encoding) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n var buf = Buffer(size)\n if (fill !== undefined) {\n if (typeof encoding === 'string') {\n buf.fill(fill, encoding)\n } else {\n buf.fill(fill)\n }\n } else {\n buf.fill(0)\n }\n return buf\n}\n\nSafeBuffer.allocUnsafe = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return Buffer(size)\n}\n\nSafeBuffer.allocUnsafeSlow = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return buffer.SlowBuffer(size)\n}\n","'use strict'\n// base-x encoding / decoding\n// Copyright (c) 2018 base-x contributors\n// Copyright (c) 2014-2018 The Bitcoin Core developers (base58.cpp)\n// Distributed under the MIT software license, see the accompanying\n// file LICENSE or http://www.opensource.org/licenses/mit-license.php.\n// @ts-ignore\nvar _Buffer = require('safe-buffer').Buffer\nfunction base (ALPHABET) {\n if (ALPHABET.length >= 255) { throw new TypeError('Alphabet too long') }\n var BASE_MAP = new Uint8Array(256)\n for (var j = 0; j < BASE_MAP.length; j++) {\n BASE_MAP[j] = 255\n }\n for (var i = 0; i < ALPHABET.length; i++) {\n var x = ALPHABET.charAt(i)\n var xc = x.charCodeAt(0)\n if (BASE_MAP[xc] !== 255) { throw new TypeError(x + ' is ambiguous') }\n BASE_MAP[xc] = i\n }\n var BASE = ALPHABET.length\n var LEADER = ALPHABET.charAt(0)\n var FACTOR = Math.log(BASE) / Math.log(256) // log(BASE) / log(256), rounded up\n var iFACTOR = Math.log(256) / Math.log(BASE) // log(256) / log(BASE), rounded up\n function encode (source) {\n if (Array.isArray(source) || source instanceof Uint8Array) { source = _Buffer.from(source) }\n if (!_Buffer.isBuffer(source)) { throw new TypeError('Expected Buffer') }\n if (source.length === 0) { return '' }\n // Skip & count leading zeroes.\n var zeroes = 0\n var length = 0\n var pbegin = 0\n var pend = source.length\n while (pbegin !== pend && source[pbegin] === 0) {\n pbegin++\n zeroes++\n }\n // Allocate enough space in big-endian base58 representation.\n var size = ((pend - pbegin) * iFACTOR + 1) >>> 0\n var b58 = new Uint8Array(size)\n // Process the bytes.\n while (pbegin !== pend) {\n var carry = source[pbegin]\n // Apply \"b58 = b58 * 256 + ch\".\n var i = 0\n for (var it1 = size - 1; (carry !== 0 || i < length) && (it1 !== -1); it1--, i++) {\n carry += (256 * b58[it1]) >>> 0\n b58[it1] = (carry % BASE) >>> 0\n carry = (carry / BASE) >>> 0\n }\n if (carry !== 0) { throw new Error('Non-zero carry') }\n length = i\n pbegin++\n }\n // Skip leading zeroes in base58 result.\n var it2 = size - length\n while (it2 !== size && b58[it2] === 0) {\n it2++\n }\n // Translate the result into a string.\n var str = LEADER.repeat(zeroes)\n for (; it2 < size; ++it2) { str += ALPHABET.charAt(b58[it2]) }\n return str\n }\n function decodeUnsafe (source) {\n if (typeof source !== 'string') { throw new TypeError('Expected String') }\n if (source.length === 0) { return _Buffer.alloc(0) }\n var psz = 0\n // Skip and count leading '1's.\n var zeroes = 0\n var length = 0\n while (source[psz] === LEADER) {\n zeroes++\n psz++\n }\n // Allocate enough space in big-endian base256 representation.\n var size = (((source.length - psz) * FACTOR) + 1) >>> 0 // log(58) / log(256), rounded up.\n var b256 = new Uint8Array(size)\n // Process the characters.\n while (psz < source.length) {\n // Find code of next character\n var charCode = source.charCodeAt(psz)\n // Base map can not be indexed using char code\n if (charCode > 255) { return }\n // Decode character\n var carry = BASE_MAP[charCode]\n // Invalid character\n if (carry === 255) { return }\n var i = 0\n for (var it3 = size - 1; (carry !== 0 || i < length) && (it3 !== -1); it3--, i++) {\n carry += (BASE * b256[it3]) >>> 0\n b256[it3] = (carry % 256) >>> 0\n carry = (carry / 256) >>> 0\n }\n if (carry !== 0) { throw new Error('Non-zero carry') }\n length = i\n psz++\n }\n // Skip leading zeroes in b256.\n var it4 = size - length\n while (it4 !== size && b256[it4] === 0) {\n it4++\n }\n var vch = _Buffer.allocUnsafe(zeroes + (size - it4))\n vch.fill(0x00, 0, zeroes)\n var j = zeroes\n while (it4 !== size) {\n vch[j++] = b256[it4++]\n }\n return vch\n }\n function decode (string) {\n var buffer = decodeUnsafe(string)\n if (buffer) { return buffer }\n throw new Error('Non-base' + BASE + ' character')\n }\n return {\n encode: encode,\n decodeUnsafe: decodeUnsafe,\n decode: decode\n }\n}\nmodule.exports = base\n","import basex from 'base-x';\nvar ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';\nexport default basex(ALPHABET);\n","// guest-keystore.ts — durable per-device keypair for anonymous (\"guest\") auth.\n//\n// A guest is an ed25519 keypair generated on the device. Its public key is the\n// Bounded account address; it signs the auth challenge exactly like a wallet.\n//\n// Guest auth has one backend: WebCrypto Ed25519 + IndexedDB. The key is\n// NON-EXTRACTABLE: an XSS can ask it to sign but can never read the private\n// bytes. If WebCrypto or IndexedDB is unavailable, guest auth fails closed\n// instead of silently creating an extractable/stored-secret credential.\n//\n// The public output is a base58 address + a base64\n// detached signature, which is the format the session endpoint already accepts.\nimport bs58 from 'bs58';\nimport { getPlatform } from '../../platform';\nconst LEGACY_STORED_SECRET_KEY = 'bounded_guest_key_v1';\nconst IDB_NAME = 'bounded-guest';\nconst IDB_STORE = 'keys';\nconst IDB_KEY = 'ed25519';\nconst GUEST_KEY_REQUIREMENT = 'Guest auth requires non-extractable WebCrypto Ed25519 keys persisted in IndexedDB; ' +\n 'stored-secret guest credentials are disabled.';\nfunction toBase64(bytes) {\n let bin = '';\n for (let i = 0; i < bytes.length; i++)\n bin += String.fromCharCode(bytes[i]);\n // btoa exists in browsers + RN (Hermes) ; Buffer is the Node/SSR fallback.\n return typeof btoa !== 'undefined' ? btoa(bin) : Buffer.from(bytes).toString('base64');\n}\n// ----- WebCrypto (non-extractable) backend -----------------------------------\nfunction subtle() {\n const c = globalThis === null || globalThis === void 0 ? void 0 : globalThis.crypto;\n return c && c.subtle ? c.subtle : null;\n}\nfunction idb() {\n return new Promise((resolve, reject) => {\n const req = globalThis.indexedDB.open(IDB_NAME, 1);\n req.onupgradeneeded = () => req.result.createObjectStore(IDB_STORE);\n req.onsuccess = () => resolve(req.result);\n req.onerror = () => reject(req.error);\n });\n}\nfunction idbGet(db, key) {\n return new Promise((resolve, reject) => {\n const r = db.transaction(IDB_STORE, 'readonly').objectStore(IDB_STORE).get(key);\n r.onsuccess = () => resolve(r.result);\n r.onerror = () => reject(r.error);\n });\n}\nfunction idbPut(db, key, val) {\n return new Promise((resolve, reject) => {\n const r = db.transaction(IDB_STORE, 'readwrite').objectStore(IDB_STORE).put(val, key);\n r.onsuccess = () => resolve();\n r.onerror = () => reject(r.error);\n });\n}\nfunction guestKeyUnavailable(cause) {\n const detail = cause instanceof Error && cause.message ? ` Cause: ${cause.message}` : '';\n return new Error(`${GUEST_KEY_REQUIREMENT}${detail}`);\n}\nasync function webCryptoKey() {\n const s = subtle();\n if (!s)\n throw guestKeyUnavailable(new Error('WebCrypto subtle crypto is unavailable.'));\n if (typeof globalThis.indexedDB === 'undefined') {\n throw guestKeyUnavailable(new Error('IndexedDB is unavailable.'));\n }\n try {\n const db = await idb();\n let pair = (await idbGet(db, IDB_KEY));\n if (!pair) {\n // Probe Ed25519 support by generating (throws on unsupported engines).\n pair = (await s.generateKey({ name: 'Ed25519' }, /* extractable */ false, [\n 'sign',\n 'verify',\n ]));\n await idbPut(db, IDB_KEY, pair); // CryptoKey is structured-cloneable; bytes never exposed\n }\n const raw = new Uint8Array(await s.exportKey('raw', pair.publicKey)); // public is exportable\n const address = bs58.encode(raw);\n return {\n address,\n nonExtractable: true,\n async sign(message) {\n const data = new TextEncoder().encode(message);\n const sig = new Uint8Array(await s.sign({ name: 'Ed25519' }, pair.privateKey, data));\n return toBase64(sig);\n },\n };\n }\n catch (error) {\n throw guestKeyUnavailable(error);\n }\n}\nlet cached = null;\n/** Get (or create) this device's durable guest key. */\nexport async function getGuestKey() {\n if (cached)\n return cached;\n cached = await webCryptoKey();\n return cached;\n}\n/** Forget the guest key on this device (a fresh signInAnonymously mints a new one). */\nexport async function clearGuestKey() {\n cached = null;\n try {\n getPlatform().storage.removeItem(LEGACY_STORED_SECRET_KEY);\n }\n catch (_a) { }\n try {\n if (typeof globalThis.indexedDB !== 'undefined') {\n const db = await idb();\n await new Promise((res) => {\n const r = db.transaction(IDB_STORE, 'readwrite').objectStore(IDB_STORE).delete(IDB_KEY);\n r.onsuccess = () => res();\n r.onerror = () => res();\n });\n }\n }\n catch (_b) { }\n}\n","import { getActiveSessionManager as SessionManager, createSessionWithSignature, genAuthNonce, genSolanaMessage, } from '@bounded-sh/core';\nimport { setCurrentUser, setAuthLoading } from '../../global';\nimport { getGuestKey, clearGuestKey } from './guest-keystore';\nconst GUEST_TX_UNSUPPORTED = 'Guest (anonymous) auth is offchain-only — it cannot sign or submit Solana transactions. ' +\n 'Use a wallet provider for onchain actions.';\nexport class GuestAuthProvider {\n async login() {\n setAuthLoading(true);\n try {\n const key = await getGuestKey();\n // Reuse a still-valid session for this exact guest.\n const existing = await SessionManager().getSession();\n if (existing && existing.address === key.address) {\n const user = { address: key.address, isAnonymous: true, provider: this };\n setCurrentUser(user);\n return user;\n }\n // Mint a fresh session: nonce -> canonical message -> local signature.\n const nonce = await genAuthNonce();\n const message = await genSolanaMessage(key.address, nonce);\n const signature = await key.sign(message); // base64 detached ed25519\n const result = await createSessionWithSignature(key.address, message, signature);\n await SessionManager().storeSession(key.address, result.accessToken, result.idToken, result.refreshToken);\n const user = { address: key.address, isAnonymous: true, provider: this };\n setCurrentUser(user);\n return user;\n }\n finally {\n setAuthLoading(false);\n }\n }\n async restoreSession() {\n const session = await SessionManager().getSession();\n if (!session)\n return null;\n const user = { address: session.address, isAnonymous: true, provider: this };\n setCurrentUser(user);\n return user;\n }\n async logout() {\n // Clears the SESSION but keeps the device key, so logging back in returns the\n // SAME guest identity (and its data). Use forgetGuest() to wipe the key too.\n SessionManager().clearSession();\n setCurrentUser(null);\n }\n /** Wipe the device key — the next login() is a brand-new guest identity. */\n async forgetGuest() {\n SessionManager().clearSession();\n await clearGuestKey();\n setCurrentUser(null);\n }\n async signMessage(message) {\n const key = await getGuestKey();\n return key.sign(message);\n }\n // --- offchain guest: no Solana transaction surface -------------------------\n async runTransaction(_evm, _sol, _options) {\n throw new Error(GUEST_TX_UNSUPPORTED);\n }\n async signTransaction(_t) {\n throw new Error(GUEST_TX_UNSUPPORTED);\n }\n async signAndSubmitTransaction() {\n throw new Error(GUEST_TX_UNSUPPORTED);\n }\n async getNativeMethods() {\n return {};\n }\n}\n","import { getConfig, getActiveSessionManager, revokeSession } from '@bounded-sh/core';\nimport { setCurrentUser, setAuthLoading } from '../../global';\nimport { getPlatform } from '../../platform';\n// Web uses localStorage (WebSessionManager); React Native uses the configured\n// ReactNativeSessionManager. getActiveSessionManager() picks the right one by\n// whether the RN manager was configured (NOT `typeof window`, which is truthy on\n// RN too and would wrongly route to localStorage). Same selector the core\n// request path uses, so headless email OTP persists + authenticates on BOTH.\nconst sessionManager = getActiveSessionManager;\nconst NO_WALLET = 'Email login is offchain — it has no Solana wallet and cannot sign/submit ' +\n 'transactions. Use a wallet provider for onchain actions, or link a wallet later.';\n// ---------------------------------------------------------------------------\n// token / session helpers\n// ---------------------------------------------------------------------------\nfunction decodeJwt(token) {\n try {\n let b64 = token.split('.')[1].replace(/-/g, '+').replace(/_/g, '/');\n const pad = b64.length % 4;\n if (pad === 2)\n b64 += '==';\n else if (pad === 3)\n b64 += '=';\n // getPlatform().atob is RN-safe (global atob is undefined on Hermes/JSC).\n return JSON.parse(getPlatform().atob(b64));\n }\n catch (_a) {\n return {};\n }\n}\nfunction userFromIdToken(idToken, fallbackEmail) {\n const c = decodeJwt(idToken);\n const id = c['custom:userId'] || c.sub || c['custom:walletAddress'] || '';\n const email = (c.email || fallbackEmail || null);\n // Email logins have no wallet — address is null (the User type allows it).\n return { id, address: (c['custom:walletAddress'] || null), email, provider: emailProviderSingleton };\n}\nasync function humanAuthBase() {\n const cfg = await getConfig();\n const base = cfg.humanAuthApiUrl || 'https://auth.bounded.sh';\n return base.replace(/\\/$/, '');\n}\nasync function post(path, body) {\n const base = await humanAuthBase();\n let res;\n try {\n // Credential-free + no custom header: /email and /verify are open-CORS\n // (ACAO:*) public OTP routes, so this works inline from ANY app origin (no\n // popup, no redirect). The OTP is the body secret; the token returns in the\n // body. Adding credentials or a custom header would break the open-CORS\n // preflight — keep this a simple JSON POST.\n res = await fetch(base + path, {\n method: 'POST',\n headers: { 'content-type': 'application/json' },\n body: JSON.stringify(body),\n });\n }\n catch (err) {\n throw new Error(`Bounded auth request to ${path} failed: ${(err === null || err === void 0 ? void 0 : err.message) || err}`);\n }\n let data = null;\n try {\n data = await res.json();\n }\n catch ( /* non-JSON */_a) { /* non-JSON */ }\n if (!res.ok) {\n const msg = (data && (data.error || data.message)) || `HTTP ${res.status}`;\n throw new Error(String(msg));\n }\n return data || {};\n}\n// ---------------------------------------------------------------------------\n// headless primitives (used by the modal AND exported for custom UIs)\n// ---------------------------------------------------------------------------\nfunction normalizePhoneNumber(value) {\n const compact = String(value || '').trim().replace(/[()\\s.-]/g, '');\n return compact.startsWith('00') ? `+${compact.slice(2)}` : compact;\n}\nfunction assertPhoneNumber(value) {\n const phoneNumber = normalizePhoneNumber(value);\n if (!/^\\+[1-9]\\d{7,14}$/.test(phoneNumber)) {\n throw new Error('phoneNumber must be in E.164 format, e.g. +14155550132');\n }\n return phoneNumber;\n}\n/** Send a login code to `email`. Step 1 of the inline email-OTP flow. */\nexport async function sendEmailOtp(email) {\n const cfg = await getConfig();\n const e = (email || '').trim().toLowerCase();\n if (!e)\n throw new Error('email is required');\n const data = await post('/email', { email: e, appId: cfg.appId });\n return { ok: true, expiresInSeconds: data === null || data === void 0 ? void 0 : data.expiresInSeconds };\n}\n/** Send a login code by text message. Requires the Bounded issuer to have text OTP explicitly enabled and SMS configured. */\nexport async function sendTextOtp(phoneNumber) {\n const cfg = await getConfig();\n const phone = assertPhoneNumber(phoneNumber);\n const data = await post('/text', { phoneNumber: phone, appId: cfg.appId });\n return { ok: true, expiresInSeconds: data === null || data === void 0 ? void 0 : data.expiresInSeconds };\n}\n/**\n * Verify the code for `email` and establish the session. Step 2 of the flow.\n * Stores the Bounded id token (the realtime bearer) and sets the current user.\n */\nexport async function verifyEmailOtp(email, otp) {\n setAuthLoading(true);\n try {\n const cfg = await getConfig();\n const e = (email || '').trim().toLowerCase();\n const code = (otp || '').trim();\n if (!e || !code)\n throw new Error('email and code are required');\n const data = await post('/verify', { email: e, appId: cfg.appId, otp: code });\n const idToken = data === null || data === void 0 ? void 0 : data.idToken;\n if (!idToken)\n throw new Error('No token returned from verification.');\n const user = userFromIdToken(idToken, e);\n // Store the idToken as BOTH id + access (it is the JWT the realtime worker\n // verifies and carries `exp`, so the session-manager expiry check works).\n // address is \"\" for email (no wallet); the realtime bearer is the idToken.\n // Persist the rotating refresh token + the issuer base (humanAuthApiUrl) so the\n // session manager can silently renew via {issuer}/session/refresh — sessions now\n // live as long as the 30d refresh token instead of dying at the access TTL.\n const refreshToken = typeof (data === null || data === void 0 ? void 0 : data.refreshToken) === 'string' ? data.refreshToken : '';\n const issuer = (cfg.humanAuthApiUrl || '').replace(/\\/$/, '');\n await sessionManager().storeSession(String(user.address || ''), idToken, idToken, refreshToken, issuer);\n setCurrentUser(user);\n return user;\n }\n finally {\n setAuthLoading(false);\n }\n}\n/**\n * Verify the text-message code for `phoneNumber` and establish the session.\n * Phone-only users have `user.email === null`; use `user.id` for ownership.\n */\nexport async function verifyTextOtp(phoneNumber, otp) {\n setAuthLoading(true);\n try {\n const cfg = await getConfig();\n const phone = assertPhoneNumber(phoneNumber);\n const code = (otp || '').trim();\n if (!code)\n throw new Error('code is required');\n const data = await post('/text/verify', { phoneNumber: phone, appId: cfg.appId, otp: code });\n const idToken = data === null || data === void 0 ? void 0 : data.idToken;\n if (!idToken)\n throw new Error('No token returned from verification.');\n const user = userFromIdToken(idToken);\n const refreshToken = typeof (data === null || data === void 0 ? void 0 : data.refreshToken) === 'string' ? data.refreshToken : '';\n const issuer = (cfg.humanAuthApiUrl || '').replace(/\\/$/, '');\n await sessionManager().storeSession(String(user.address || ''), idToken, idToken, refreshToken, issuer);\n setCurrentUser(user);\n return user;\n }\n finally {\n setAuthLoading(false);\n }\n}\n/**\n * UPGRADE an anonymous (guest) session by LINKING an email credential — Firebase\n * `linkWithCredential` parity. The guest's `guestToken` is sent to the auth issuer\n * which, IF the email is brand-new, makes the new account ADOPT the guest's id so\n * `@user.id` is preserved and the guest's data carries over. If the email already\n * exists, the user just signs into it (stays separate; `linked:false`). On success\n * the upgraded session replaces the guest session and the user is no longer\n * anonymous. `guestToken` is captured by the caller BEFORE switching auth methods.\n */\nexport async function linkEmailWithGuest(email, otp, guestToken) {\n var _a;\n setAuthLoading(true);\n try {\n const cfg = await getConfig();\n const e = (email || '').trim().toLowerCase();\n const code = (otp || '').trim();\n if (!e || !code)\n throw new Error('email and code are required');\n if (!guestToken)\n throw new Error('an active anonymous session is required to link an email');\n // Capture the OLD guest session's refresh token + issuer BEFORE it's overwritten,\n // so we can revoke the guest refresh family after the upgrade. Otherwise a stolen\n // guest refresh token would keep minting access to the now-upgraded identity.\n const oldRefreshToken = sessionManager().getRefreshToken();\n const oldIssuer = (_a = sessionManager().getIssuer()) !== null && _a !== void 0 ? _a : undefined;\n const data = await post('/link/email', { email: e, appId: cfg.appId, otp: code, guestToken });\n const idToken = data === null || data === void 0 ? void 0 : data.idToken;\n if (!idToken)\n throw new Error('No token returned from link.');\n const user = userFromIdToken(idToken, e);\n // Persist the REAL rotating refresh token + human issuer so the upgraded session\n // silently renews (was previously stored as '' -> upgraded users couldn't refresh).\n const refreshToken = typeof (data === null || data === void 0 ? void 0 : data.refreshToken) === 'string' ? data.refreshToken : '';\n const issuer = (cfg.humanAuthApiUrl || '').replace(/\\/$/, '');\n await sessionManager().storeSession(String(user.address || ''), idToken, idToken, refreshToken, issuer);\n setCurrentUser(user);\n // Best-effort revoke of the old guest refresh family (upgrade is already committed;\n // a revoke failure must not break the new session).\n if (oldRefreshToken && oldRefreshToken !== refreshToken) {\n try {\n await revokeSession(oldRefreshToken, oldIssuer);\n }\n catch ( /* best-effort */_b) { /* best-effort */ }\n }\n return { user, linked: !!(data === null || data === void 0 ? void 0 : data.linked), isNewAccount: !!(data === null || data === void 0 ? void 0 : data.isNewAccount) };\n }\n finally {\n setAuthLoading(false);\n }\n}\n// ---------------------------------------------------------------------------\n// provider\n// ---------------------------------------------------------------------------\nexport class EmailAuthProvider {\n async login() {\n if (!getPlatform().hasDOM) {\n throw new Error('Email login on this platform (e.g. React Native) is headless: call ' +\n \"sendEmailOtp(email) then verifyEmailOtp(email, code), or, when text OTP is enabled, \" +\n \"sendTextOtp(phone) then verifyTextOtp(phone, code). Render your own OTP inputs. The built-in modal is web-only.\");\n }\n return openEmailModal();\n }\n async restoreSession() {\n const sm = sessionManager();\n const session = await sm.getSession();\n if (!session)\n return null;\n const idToken = sm.getIdToken();\n if (!idToken)\n return null;\n const user = userFromIdToken(idToken);\n setCurrentUser(user);\n return user;\n }\n async logout() {\n sessionManager().clearSession();\n setCurrentUser(null);\n }\n async signMessage(_message) { throw new Error(NO_WALLET); }\n async runTransaction(_evm, _sol, _options) { throw new Error(NO_WALLET); }\n async signTransaction(_t) { throw new Error(NO_WALLET); }\n async signAndSubmitTransaction() { throw new Error(NO_WALLET); }\n async getNativeMethods() { return {}; }\n}\nconst emailProviderSingleton = new EmailAuthProvider();\nexport { emailProviderSingleton };\n// ---------------------------------------------------------------------------\n// inline modal (web only) — mobile-first, no popup, no redirect\n// ---------------------------------------------------------------------------\nfunction openEmailModal() {\n return new Promise((resolve) => {\n var _a;\n const root = createEmailModalTree();\n const style = document.createElement('style');\n style.textContent = MODAL_CSS;\n root.appendChild(style);\n document.body.appendChild(root);\n const $ = (id) => root.querySelector('#' + id);\n const emailStep = $('ba-email-step');\n const otpStep = $('ba-otp-step');\n const emailInput = $('ba-email');\n const otpInput = $('ba-otp');\n const sentTo = $('ba-sent-to');\n const msg = $('ba-msg');\n const emailBtn = $('ba-email-btn');\n const otpBtn = $('ba-otp-btn');\n let email = '';\n let done = false;\n const setMsg = (t, err = false) => { msg.textContent = t; msg.className = 'ba-msg' + (err ? ' err' : ''); };\n const close = (user) => {\n var _a;\n if (done)\n return;\n done = true;\n document.removeEventListener('keydown', onEsc);\n (_a = root.querySelector('.ba-overlay')) === null || _a === void 0 ? void 0 : _a.classList.add('out');\n setTimeout(() => root.remove(), 160);\n resolve(user);\n };\n const onEsc = (e) => { if (e.key === 'Escape')\n close(null); };\n document.addEventListener('keydown', onEsc);\n (_a = root.querySelector('.ba-overlay')) === null || _a === void 0 ? void 0 : _a.addEventListener('click', (e) => {\n if (e.target.classList.contains('ba-overlay'))\n close(null);\n });\n $('ba-close').addEventListener('click', () => close(null));\n requestAnimationFrame(() => emailInput.focus());\n emailBtn.addEventListener('click', async () => {\n email = emailInput.value.trim();\n if (!/^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$/.test(email)) {\n setMsg('Enter a valid email.', true);\n return;\n }\n emailBtn.disabled = true;\n setMsg('Sending code…');\n try {\n await sendEmailOtp(email);\n sentTo.textContent = email;\n emailStep.classList.add('hidden');\n otpStep.classList.remove('hidden');\n setMsg('');\n otpInput.focus();\n }\n catch (err) {\n setMsg((err === null || err === void 0 ? void 0 : err.message) || 'Could not send the code.', true);\n }\n finally {\n emailBtn.disabled = false;\n }\n });\n emailInput.addEventListener('keydown', (e) => { if (e.key === 'Enter')\n emailBtn.click(); });\n otpBtn.addEventListener('click', async () => {\n const code = otpInput.value.trim();\n if (!/^\\d{4,8}$/.test(code)) {\n setMsg('Enter the code from your email.', true);\n return;\n }\n otpBtn.disabled = true;\n setMsg('Verifying…');\n try {\n const user = await verifyEmailOtp(email, code);\n close(user);\n }\n catch (err) {\n setMsg((err === null || err === void 0 ? void 0 : err.message) || 'That code did not work.', true);\n otpBtn.disabled = false;\n }\n });\n otpInput.addEventListener('keydown', (e) => { if (e.key === 'Enter')\n otpBtn.click(); });\n $('ba-back').addEventListener('click', () => {\n otpStep.classList.add('hidden');\n emailStep.classList.remove('hidden');\n setMsg('');\n emailInput.focus();\n });\n });\n}\nfunction createEmailModalTree() {\n const root = document.createElement('div');\n root.id = 'bounded-auth-modal';\n const overlay = document.createElement('div');\n overlay.className = 'ba-overlay';\n root.appendChild(overlay);\n const card = document.createElement('div');\n card.className = 'ba-card';\n card.setAttribute('role', 'dialog');\n card.setAttribute('aria-modal', 'true');\n card.setAttribute('aria-label', 'Sign in');\n overlay.appendChild(card);\n const close = document.createElement('button');\n close.id = 'ba-close';\n close.className = 'ba-x';\n close.setAttribute('aria-label', 'Close');\n close.type = 'button';\n close.textContent = '×';\n card.appendChild(close);\n const brand = document.createElement('div');\n brand.className = 'ba-brand';\n const dot = document.createElement('span');\n dot.className = 'ba-dot';\n brand.appendChild(dot);\n brand.appendChild(document.createTextNode(' Sign in'));\n card.appendChild(brand);\n const emailStep = document.createElement('div');\n emailStep.id = 'ba-email-step';\n card.appendChild(emailStep);\n const emailLabel = document.createElement('label');\n emailLabel.className = 'ba-label';\n emailLabel.htmlFor = 'ba-email';\n emailLabel.textContent = 'Email';\n emailStep.appendChild(emailLabel);\n const emailInput = document.createElement('input');\n emailInput.id = 'ba-email';\n emailInput.className = 'ba-input';\n emailInput.type = 'email';\n emailInput.inputMode = 'email';\n emailInput.autocomplete = 'email';\n emailInput.placeholder = 'you@example.com';\n emailStep.appendChild(emailInput);\n const emailButton = document.createElement('button');\n emailButton.id = 'ba-email-btn';\n emailButton.className = 'ba-btn';\n emailButton.type = 'button';\n emailButton.textContent = 'Continue';\n emailStep.appendChild(emailButton);\n const otpStep = document.createElement('div');\n otpStep.id = 'ba-otp-step';\n otpStep.className = 'hidden';\n card.appendChild(otpStep);\n const otpLabel = document.createElement('label');\n otpLabel.className = 'ba-label';\n otpLabel.htmlFor = 'ba-otp';\n otpLabel.appendChild(document.createTextNode('Enter the code sent to '));\n const sentTo = document.createElement('span');\n sentTo.id = 'ba-sent-to';\n sentTo.className = 'ba-em';\n otpLabel.appendChild(sentTo);\n otpStep.appendChild(otpLabel);\n const otpInput = document.createElement('input');\n otpInput.id = 'ba-otp';\n otpInput.className = 'ba-input ba-code';\n otpInput.inputMode = 'numeric';\n otpInput.autocomplete = 'one-time-code';\n otpInput.maxLength = 8;\n otpInput.placeholder = '······';\n otpStep.appendChild(otpInput);\n const otpButton = document.createElement('button');\n otpButton.id = 'ba-otp-btn';\n otpButton.className = 'ba-btn';\n otpButton.type = 'button';\n otpButton.textContent = 'Verify & continue';\n otpStep.appendChild(otpButton);\n const backButton = document.createElement('button');\n backButton.id = 'ba-back';\n backButton.className = 'ba-link';\n backButton.type = 'button';\n backButton.textContent = 'Use a different email';\n otpStep.appendChild(backButton);\n const msg = document.createElement('div');\n msg.id = 'ba-msg';\n msg.className = 'ba-msg';\n card.appendChild(msg);\n const foot = document.createElement('div');\n foot.className = 'ba-foot';\n foot.textContent = 'Secured by Bounded';\n card.appendChild(foot);\n return root;\n}\nconst MODAL_CSS = `\n#bounded-auth-modal .ba-overlay{position:fixed;inset:0;background:rgba(8,10,18,.62);backdrop-filter:blur(4px);\n display:flex;align-items:center;justify-content:center;z-index:2147483000;opacity:1;transition:opacity .16s ease;\n font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;padding:16px;}\n#bounded-auth-modal .ba-overlay.out{opacity:0;}\n#bounded-auth-modal .ba-card{width:100%;max-width:380px;background:#0f1117;color:#f4f5f7;border:1px solid #232838;\n border-radius:18px;padding:24px 22px 18px;box-shadow:0 24px 70px rgba(0,0,0,.5);position:relative;\n animation:ba-in .18s ease;}\n@keyframes ba-in{from{transform:translateY(10px);opacity:.6}to{transform:translateY(0);opacity:1}}\n#bounded-auth-modal .ba-x{position:absolute;top:12px;right:12px;width:30px;height:30px;border:none;background:#1a1e2b;\n color:#9aa3b2;border-radius:9px;font-size:20px;line-height:1;cursor:pointer;}\n#bounded-auth-modal .ba-x:hover{background:#222838;color:#fff;}\n#bounded-auth-modal .ba-brand{display:flex;align-items:center;gap:8px;font-weight:600;font-size:15px;margin:0 0 18px;}\n#bounded-auth-modal .ba-dot{width:10px;height:10px;border-radius:50%;background:linear-gradient(135deg,#8b5cf6,#22d3ee);}\n#bounded-auth-modal .ba-label{display:block;font-size:13px;color:#aab2c0;margin:0 0 8px;}\n#bounded-auth-modal .ba-em{color:#fff;font-weight:600;}\n#bounded-auth-modal .ba-input{width:100%;box-sizing:border-box;background:#171b26;border:1px solid #2a3040;color:#fff;\n border-radius:11px;padding:13px 14px;font-size:16px;outline:none;transition:border-color .12s;}\n#bounded-auth-modal .ba-input:focus{border-color:#7c5cff;}\n#bounded-auth-modal .ba-code{letter-spacing:8px;text-align:center;font-size:22px;font-variant-numeric:tabular-nums;}\n#bounded-auth-modal .ba-btn{width:100%;margin-top:12px;background:linear-gradient(135deg,#7c5cff,#5b8cff);color:#fff;\n border:none;border-radius:11px;padding:13px;font-size:15px;font-weight:600;cursor:pointer;transition:filter .12s;}\n#bounded-auth-modal .ba-btn:hover{filter:brightness(1.08);}\n#bounded-auth-modal .ba-btn:disabled{opacity:.6;cursor:default;}\n#bounded-auth-modal .ba-link{width:100%;margin-top:10px;background:none;border:none;color:#8aa0c6;font-size:13px;cursor:pointer;}\n#bounded-auth-modal .ba-link:hover{color:#bcd0f0;}\n#bounded-auth-modal .ba-msg{min-height:18px;margin-top:10px;font-size:13px;color:#8aa0c6;text-align:center;}\n#bounded-auth-modal .ba-msg.err{color:#ff8a8a;}\n#bounded-auth-modal .ba-foot{margin-top:14px;text-align:center;font-size:11px;color:#5a6273;}\n#bounded-auth-modal .hidden{display:none;}\n@media (max-width:480px){#bounded-auth-modal .ba-card{max-width:none;border-radius:16px;}}`;\n","export const SOLANA_DEVNET_RPC_URL = \"https://idelle-8nxsep-fast-devnet.helius-rpc.com\";\nexport const SOLANA_MAINNET_RPC_URL = \"https://celestia-cegncv-fast-mainnet.helius-rpc.com\";\nexport const SURFNET_RPC_URL = \"https://surfpool.fly.dev\";\nconst SUPPORTED_SOLANA_NETWORKS = new Set([\n \"solana_devnet\",\n \"solana_mainnet\",\n \"surfnet\",\n]);\nexport function normalizeSolanaRpcUrl(rpcUrl) {\n if (typeof rpcUrl !== \"string\")\n return null;\n const trimmed = rpcUrl.trim();\n return trimmed.length > 0 ? trimmed : null;\n}\nexport function isSupportedSolanaRpcNetwork(network) {\n return typeof network === \"string\" && SUPPORTED_SOLANA_NETWORKS.has(network);\n}\nexport function resolveSolanaWalletStandardChain(network, context) {\n switch (network) {\n case \"solana_devnet\":\n return \"solana:devnet\";\n case \"solana_mainnet\":\n return \"solana:mainnet\";\n case \"surfnet\":\n return \"solana:localnet\";\n case undefined:\n case null:\n case \"\":\n throw new Error(`${context} requires an explicit Solana network. ` +\n `Provide one of: solana_devnet, solana_mainnet, surfnet.`);\n default:\n throw new Error(`${context} does not support Solana network \"${network}\". ` +\n `Expected one of: solana_devnet, solana_mainnet, surfnet.`);\n }\n}\nexport function resolveSolanaRpcUrl(explicitRpcUrl, network, context) {\n if (network != null && network !== \"\" && !isSupportedSolanaRpcNetwork(network)) {\n throw new Error(`${context} does not support Solana network \"${network}\". ` +\n `Expected one of: solana_devnet, solana_mainnet, surfnet.`);\n }\n const rpcUrl = normalizeSolanaRpcUrl(explicitRpcUrl);\n if (rpcUrl)\n return rpcUrl;\n throw new Error(`${context} requires an explicit Solana RPC URL. Pass config.rpcUrl before signing or submitting onchain transactions.`);\n}\n","import { getConfig, getActiveSessionManager } from '@bounded-sh/core';\nimport { setCurrentUser, setAuthLoading, setAuthProviderInstance } from '../global';\nimport { getPlatform } from '../platform';\nconst PKCE_STORE_KEY = 'bounded.oidc.pkce';\n// Active session store (Web on web, RN on React Native) — selected by config,\n// not by `typeof window` (truthy on RN). OIDC redirect/popup is web-only, but the\n// session it mints is read back through this same selector everywhere.\nconst sessionManager = getActiveSessionManager;\nfunction hasDOM() {\n return typeof window !== 'undefined' && typeof document !== 'undefined';\n}\nfunction decodeJwt(token) {\n try {\n let b64 = token.split('.')[1].replace(/-/g, '+').replace(/_/g, '/');\n const pad = b64.length % 4;\n if (pad === 2)\n b64 += '==';\n else if (pad === 3)\n b64 += '=';\n return JSON.parse(getPlatform().atob(b64));\n }\n catch (_a) {\n return {};\n }\n}\n// A minimal AuthProvider so getSession()/logout() work for OIDC sessions, mirroring email.\nconst oidcProviderSingleton = {\n async login() {\n const idToken = sessionManager().getIdToken();\n return idToken ? userFromIdToken(idToken) : null;\n },\n async getUser() {\n const idToken = sessionManager().getIdToken();\n return idToken ? userFromIdToken(idToken) : null;\n },\n async logout() { sessionManager().clearSession(); },\n};\nfunction userFromIdToken(idToken) {\n const c = decodeJwt(idToken);\n const id = c['custom:userId'] || c.sub || c['custom:walletAddress'] || '';\n return {\n id, address: (c['custom:walletAddress'] || null),\n email: (c.email || null), provider: oidcProviderSingleton,\n };\n}\nfunction tokenField(data, snake, camel) {\n var _a;\n const value = (_a = data === null || data === void 0 ? void 0 : data[snake]) !== null && _a !== void 0 ? _a : data === null || data === void 0 ? void 0 : data[camel];\n return typeof value === 'string' ? value : '';\n}\nasync function issuerBase() {\n const cfg = await getConfig();\n return (cfg.humanAuthApiUrl || 'https://auth.bounded.sh').replace(/\\/$/, '');\n}\nfunction b64url(buf) {\n let s = '';\n const bytes = new Uint8Array(buf);\n for (let i = 0; i < bytes.length; i++)\n s += String.fromCharCode(bytes[i]);\n return btoa(s).replace(/\\+/g, '-').replace(/\\//g, '_').replace(/=+$/, '');\n}\nasync function makePkce() {\n const rnd = new Uint8Array(32);\n crypto.getRandomValues(rnd);\n const verifier = b64url(rnd.buffer);\n const digest = await crypto.subtle.digest('SHA-256', new TextEncoder().encode(verifier));\n return { verifier, challenge: b64url(digest) };\n}\nfunction randomState() {\n const rnd = new Uint8Array(16);\n crypto.getRandomValues(rnd);\n return b64url(rnd.buffer);\n}\nfunction normalizeMethod(value) {\n const normalized = String(value || '').trim().toLowerCase();\n return /^[a-z0-9_-]{1,40}$/.test(normalized) ? normalized : null;\n}\nfunction appendHostedLoginHints(params, opts) {\n const methods = (opts.methods || [])\n .map((method) => normalizeMethod(method))\n .filter((method) => !!method);\n if (methods.length > 0) {\n params.set('bounded_methods', Array.from(new Set(methods)).join(','));\n }\n const provider = normalizeMethod(opts.provider);\n if (provider)\n params.set('bounded_provider', provider);\n}\nasync function buildAuthorizeUrl(opts) {\n const cfg = await getConfig();\n if (!cfg.appId)\n throw new Error('appId is not configured (init the SDK with your appId)');\n const redirectUri = opts.redirectUri;\n const { verifier, challenge } = await makePkce();\n const state = randomState();\n // Stash the verifier + state so the redirect_uri page can finish the exchange. sessionStorage\n // is per-tab and cleared on close — appropriate for a short-lived auth handshake.\n sessionStorage.setItem(PKCE_STORE_KEY, JSON.stringify({ verifier, state, redirectUri }));\n const base = await issuerBase();\n const params = new URLSearchParams({\n client_id: cfg.appId, redirect_uri: redirectUri, response_type: 'code', scope: 'openid profile email',\n code_challenge: challenge, code_challenge_method: 'S256', state,\n });\n appendHostedLoginHints(params, opts);\n return `${base}/api/auth/oauth2/authorize?${params.toString()}`;\n}\n/** Start login: navigate the whole page to the hosted Bounded login. Returns after redirect\n * to `redirectUri?code=...`, where you call completeLoginFromRedirect(). Web only. */\nexport async function loginWithRedirect(opts) {\n if (!hasDOM())\n throw new Error('loginWithRedirect is web-only');\n const url = await buildAuthorizeUrl(opts);\n window.location.href = url;\n}\nconst LINK_GUEST_KEY = 'bounded.link.guest';\n/** UPGRADE the current anonymous (guest) session by linking a SOCIAL/redirect login\n * (e.g. Google) — Firebase `linkWithPopup`/redirect parity. Stashes the guest token,\n * then runs the normal redirect login; `completeLoginFromRedirect()` on the callback\n * page finishes the link automatically (if the social account is brand-new the guest's\n * `@user.id` is preserved, else it stays separate). Requires an active guest session. */\nexport async function linkWithRedirect(opts) {\n if (!hasDOM())\n throw new Error('linkWithRedirect is web-only');\n const guestToken = sessionManager().getIdToken();\n if (!guestToken)\n throw new Error('linkWithRedirect requires an active anonymous session — call signInAnonymously() first.');\n sessionStorage.setItem(LINK_GUEST_KEY, guestToken);\n const url = await buildAuthorizeUrl(opts);\n window.location.href = url;\n}\n// If a guest-link is pending (linkWithRedirect stashed a guest token before this\n// redirect), exchange it + the fresh social token for an UPGRADED token via\n// /link/social and replace the session. Returns the upgraded user, or null if no\n// link was pending / the link failed (in which case the plain social login stands).\nasync function finishGuestLinkIfPending(socialIdToken) {\n if (!hasDOM())\n return null;\n const guestToken = sessionStorage.getItem(LINK_GUEST_KEY);\n if (!guestToken)\n return null;\n sessionStorage.removeItem(LINK_GUEST_KEY);\n try {\n const cfg = await getConfig();\n const base = await issuerBase();\n const res = await fetch(`${base}/link/social`, {\n method: 'POST', headers: { 'content-type': 'application/json' },\n body: JSON.stringify({ appId: cfg.appId, guestToken, socialToken: socialIdToken }),\n });\n const data = await res.json().catch(() => null);\n const idToken = tokenField(data, 'id_token', 'idToken');\n if (!res.ok || !idToken)\n return null; // link failed -> keep the plain social session\n const upgraded = userFromIdToken(idToken);\n const accessToken = tokenField(data, 'access_token', 'accessToken') || idToken;\n const refreshToken = tokenField(data, 'refresh_token', 'refreshToken');\n await sessionManager().storeSession(String(upgraded.address || ''), accessToken, idToken, refreshToken, base);\n setCurrentUser(upgraded);\n return upgraded;\n }\n catch (_a) {\n return null;\n }\n}\n/** Finish login on the redirect_uri page: exchange ?code= for a token (PKCE-verified), store\n * the session, and return the User. Idempotent: returns null if there's no ?code= in the URL. */\nexport async function completeLoginFromRedirect() {\n if (!hasDOM())\n return null;\n const url = new URL(window.location.href);\n const code = url.searchParams.get('code');\n const returnedState = url.searchParams.get('state');\n if (!code)\n return null;\n setAuthLoading(true);\n try {\n const raw = sessionStorage.getItem(PKCE_STORE_KEY);\n if (!raw)\n throw new Error('Missing PKCE state — start login with loginWithRedirect()');\n const pkce = JSON.parse(raw);\n if (!returnedState || returnedState !== pkce.state)\n throw new Error('OAuth state mismatch — possible CSRF; aborting');\n const user = await exchangeCode(code, pkce.verifier, pkce.redirectUri);\n sessionStorage.removeItem(PKCE_STORE_KEY);\n // If this redirect was a guest UPGRADE (linkWithRedirect), finish the link now:\n // swap the fresh social session for one minted under the guest's preserved id.\n const socialIdToken = sessionManager().getIdToken();\n const upgraded = socialIdToken ? await finishGuestLinkIfPending(socialIdToken) : null;\n // Strip code/state from the URL so a reload doesn't re-exchange (codes are single-use anyway).\n url.searchParams.delete('code');\n url.searchParams.delete('state');\n window.history.replaceState({}, document.title, url.pathname + url.search + url.hash);\n return upgraded !== null && upgraded !== void 0 ? upgraded : user;\n }\n finally {\n setAuthLoading(false);\n }\n}\n/** Popup variant: open the hosted login in a popup; resolves with the User once the popup's\n * redirect_uri page posts the code back. The redirect_uri page must call completeLoginInPopup(). */\nexport async function loginWithPopup(opts) {\n if (!hasDOM())\n throw new Error('loginWithPopup is web-only');\n const url = await buildAuthorizeUrl(opts);\n const w = opts.width || 480, h = opts.height || 720;\n const left = window.screenX + (window.outerWidth - w) / 2;\n const top = window.screenY + (window.outerHeight - h) / 2;\n const popup = window.open(url, 'bounded-oidc', `width=${w},height=${h},left=${left},top=${top}`);\n if (!popup)\n throw new Error('Popup blocked — use loginWithRedirect() instead');\n const expectedOrigin = new URL(opts.redirectUri).origin;\n return await new Promise((resolve, reject) => {\n const onMsg = async (ev) => {\n if (ev.origin !== expectedOrigin)\n return; // only trust the redirect_uri origin\n const d = ev.data;\n if (!d || d.type !== 'bounded-oidc-code' || typeof d.code !== 'string')\n return;\n window.removeEventListener('message', onMsg);\n try {\n const raw = sessionStorage.getItem(PKCE_STORE_KEY);\n if (!raw)\n throw new Error('Missing PKCE state');\n const pkce = JSON.parse(raw);\n if (d.state !== pkce.state)\n throw new Error('OAuth state mismatch');\n const user = await exchangeCode(d.code, pkce.verifier, pkce.redirectUri);\n sessionStorage.removeItem(PKCE_STORE_KEY);\n try {\n popup.close();\n }\n catch ( /* ignore */_a) { /* ignore */ }\n resolve(user);\n }\n catch (e) {\n reject(e);\n }\n };\n window.addEventListener('message', onMsg);\n const timer = setInterval(() => {\n if (popup.closed) {\n clearInterval(timer);\n window.removeEventListener('message', onMsg);\n reject(new Error('Login window closed'));\n }\n }, 500);\n });\n}\n/** Call this on the redirect_uri page when login was opened via loginWithPopup(): posts the\n * code back to the opener and closes. (For the redirect variant use completeLoginFromRedirect.) */\nexport function completeLoginInPopup(openerOrigin) {\n if (!hasDOM() || !window.opener)\n return;\n const url = new URL(window.location.href);\n const code = url.searchParams.get('code');\n const state = url.searchParams.get('state');\n if (!code)\n return;\n try {\n window.opener.postMessage({ type: 'bounded-oidc-code', code, state }, openerOrigin);\n }\n catch ( /* ignore */_a) { /* ignore */ }\n try {\n window.close();\n }\n catch ( /* ignore */_b) { /* ignore */ }\n}\nasync function exchangeCode(code, verifier, redirectUri) {\n const cfg = await getConfig();\n const base = await issuerBase();\n // OIDC token endpoint: application/x-www-form-urlencoded (the standard). Public client (no\n // secret) authenticated by PKCE. The code is single-use + short-TTL on the server.\n const body = new URLSearchParams({\n grant_type: 'authorization_code', code, redirect_uri: redirectUri,\n client_id: cfg.appId, code_verifier: verifier,\n });\n let res;\n try {\n res = await fetch(`${base}/api/auth/oauth2/token`, {\n method: 'POST', headers: { 'content-type': 'application/x-www-form-urlencoded' }, body: body.toString(),\n });\n }\n catch (err) {\n throw new Error(`Bounded token exchange failed: ${(err === null || err === void 0 ? void 0 : err.message) || err}`);\n }\n let data = null;\n try {\n data = await res.json();\n }\n catch ( /* non-JSON */_a) { /* non-JSON */ }\n if (!res.ok)\n throw new Error(String((data && (data.error_description || data.error || data.message)) || `token HTTP ${res.status}`));\n const idToken = (data === null || data === void 0 ? void 0 : data.id_token) || (data === null || data === void 0 ? void 0 : data.idToken);\n if (!idToken)\n throw new Error('No id_token returned from the token endpoint');\n const accessToken = tokenField(data, 'access_token', 'accessToken') || idToken;\n const refreshToken = tokenField(data, 'refresh_token', 'refreshToken');\n const user = userFromIdToken(idToken);\n await sessionManager().storeSession(String(user.address || ''), accessToken, idToken, refreshToken, base);\n setCurrentUser(user);\n setAuthProviderInstance(oidcProviderSingleton);\n return user;\n}\n","// NOTE: Provider class re-exports have been moved to index.ts (web) and\n// index.native.ts (RN) to avoid eager resolution of web-only dependencies\n// (react-dom) when this module is imported on RN.\nimport { getConfig, WebSessionManager, ReactNativeSessionManager, getActiveSessionManager, revokeSession } from \"@bounded-sh/core\";\n// Web-only providers are lazily imported inside getAuthProvider() to avoid\n// pulling react-dom into the RN bundle.\nimport { OffchainAuthProvider } from \"./providers/offchain-auth-provider\";\nimport { GuestAuthProvider } from \"./providers/guest-auth-provider\";\n// Email (Bounded Better Auth) is RN-safe to import statically: the DOM modal is\n// only touched inside login() behind a hasDOM guard; the headless email send/verify\n// work on web AND React Native. Text OTP helpers are opt-in on the hosted issuer\n// and share the same session provider when enabled.\n// Re-exported below via wrappers that register the\n// auth method (so reload-restore + logout work), mirroring signInAnonymously.\nimport { EmailAuthProvider, sendEmailOtp as emailSend, sendTextOtp as textSend, verifyEmailOtp as emailVerify, verifyTextOtp as textVerify, linkEmailWithGuest as emailLink, } from \"./providers/email-auth-provider\";\nimport { setAuthProviderInstance } from \"../global\";\nimport { getPlatform } from \"../platform\";\nimport { normalizeSolanaRpcUrl, resolveSolanaWalletStandardChain, } from \"./solana-rpc\";\nlet currentAuthProvider = null;\nlet currentAuthMethod = null;\nlet initConfig = null;\n// --- localStorage helpers: track which auth method created the active session ---\nconst STORED_AUTH_METHOD_KEY = 'bounded_last_auth_method';\nfunction getStoredAuthMethod() {\n try {\n return getPlatform().storage.getItem(STORED_AUTH_METHOD_KEY);\n }\n catch (_a) {\n return null;\n }\n}\nfunction setStoredAuthMethod(method) {\n try {\n if (method) {\n getPlatform().storage.setItem(STORED_AUTH_METHOD_KEY, method);\n }\n else {\n getPlatform().storage.removeItem(STORED_AUTH_METHOD_KEY);\n }\n }\n catch (_a) {\n // storage might not be available\n }\n}\n/**\n * Clears the session if it was created by a different auth method.\n * Returns true if the session was cleared, false if the session is compatible.\n *\n * Dispatches to the correct session manager based on the current auth method\n * so both web (WebSessionManager) and RN (ReactNativeSessionManager) sessions\n * are properly cleared.\n */\nexport function clearIncompatibleSession() {\n if (getStoredAuthMethod() === currentAuthMethod) {\n return false;\n }\n // Clear both managers: on web the RN manager is a no-op (not configured),\n // and on RN the web manager is a no-op (no localStorage).\n WebSessionManager.clearSession();\n try {\n ReactNativeSessionManager.clearSession();\n }\n catch ( /* not configured on web */_a) { /* not configured on web */ }\n setStoredAuthMethod(null);\n return true;\n}\n// Lazy loaders for web-only providers.\n// Using dynamic import() ensures Metro (RN) never resolves these modules.\nasync function loadPhantomWalletProvider() {\n const mod = await import(\"./providers/phantom-wallet-provider\");\n return { PhantomWalletProvider: mod.PhantomWalletProvider };\n}\n// Web Privy provider (depends on react-dom + @privy-io/react-auth). Lazy so Metro\n// never bundles it into the RN build — RN uses the @privy-io/expo provider instead.\nasync function loadPrivyWalletProvider() {\n const mod = await import(\"./providers/privy-wallet-provider\");\n return mod.PrivyWalletProvider;\n}\nasync function loadSolanaMobileWalletProvider() {\n const mod = await import(\"./providers/solana-mobile-wallet-provider\");\n return mod.SolanaMobileWalletProvider;\n}\nfunction requireWebPrivyConfig(config) {\n if (!config.privyConfig || typeof config.privyConfig.appId !== 'string' || config.privyConfig.appId.trim() === '') {\n throw new Error('Privy auth requires config.privyConfig.appId; no default Privy app is used.');\n }\n if (!config.privyConfig.config || typeof config.privyConfig.config !== 'object') {\n throw new Error('Privy auth requires config.privyConfig.config for the app-scoped Privy provider.');\n }\n return config.privyConfig;\n}\nfunction getConfiguredSolanaNetwork(config) {\n if (typeof config.chain !== 'string')\n return null;\n const chain = config.chain.trim();\n if (chain === '' || chain === 'offchain')\n return null;\n return chain;\n}\nfunction mobileWalletClusterFromNetwork(network) {\n switch (network) {\n case \"solana_devnet\":\n return \"devnet\";\n case \"solana_mainnet\":\n return \"mainnet-beta\";\n case \"surfnet\":\n return \"localnet\";\n case null:\n return null;\n default:\n resolveSolanaWalletStandardChain(network, \"Mobile wallet auth\");\n return null;\n }\n}\nfunction requireMobileWalletConfig(config) {\n var _a, _b, _c;\n const configuredNetwork = getConfiguredSolanaNetwork(config);\n const cluster = (_b = (_a = config.mobileWalletConfig) === null || _a === void 0 ? void 0 : _a.cluster) !== null && _b !== void 0 ? _b : mobileWalletClusterFromNetwork(configuredNetwork);\n if (!cluster) {\n throw new Error(\"Mobile wallet auth requires an explicit Solana network. \" +\n \"Pass config.chain as solana_devnet, solana_mainnet, or surfnet, \" +\n \"or pass mobileWalletConfig.cluster.\");\n }\n return Object.assign(Object.assign({}, ((_c = config.mobileWalletConfig) !== null && _c !== void 0 ? _c : {})), { cluster });\n}\nasync function hotSwapToMWAProvider(config) {\n var _a;\n const rpcUrl = normalizeSolanaRpcUrl(config.rpcUrl);\n const configuredNetwork = getConfiguredSolanaNetwork(config);\n const SolanaMobileWalletProvider = await loadSolanaMobileWalletProvider();\n const mwaConfig = config.mobileWalletConfig\n ? requireMobileWalletConfig(config)\n : {\n appIdentity: {\n name: config.name || undefined,\n uri: getPlatform().getLocationOrigin(),\n },\n cluster: (_a = mobileWalletClusterFromNetwork(configuredNetwork)) !== null && _a !== void 0 ? _a : undefined,\n };\n if (!mwaConfig.cluster) {\n throw new Error(\"Mobile wallet auth requires config.chain or mobileWalletConfig.cluster before switching providers.\");\n }\n const mwaProvider = new SolanaMobileWalletProvider(rpcUrl, mwaConfig, configuredNetwork);\n let provider = mwaProvider;\n if (config.chain === \"offchain\") {\n provider = new OffchainAuthProvider(mwaProvider);\n }\n currentAuthProvider = provider;\n currentAuthMethod = 'mobile-wallet-adapter';\n const coreConfig = await getConfig();\n coreConfig.authProvider = provider;\n // Send 'phantom' as authMethod so the server routes to Solana verification.\n // TODO: change back to 'mobile-wallet-adapter' once the backend is deployed.\n coreConfig.authMethod = 'phantom';\n setAuthProviderInstance(provider);\n return provider;\n}\nexport { SOLANA_DEVNET_RPC_URL, SOLANA_MAINNET_RPC_URL, SURFNET_RPC_URL, } from \"./solana-rpc\";\nexport async function getAuthProvider(config) {\n var _a, _b;\n if (currentAuthProvider) {\n return currentAuthProvider;\n }\n if (!config) {\n throw new Error(\"Config is required to initialize auth provider\");\n }\n initConfig = config;\n const authMethod = config.authMethod;\n if (!authMethod) {\n throw new Error(\"authMethod is required to initialize auth provider; configure the single intended auth method explicitly.\");\n }\n const rpcUrl = normalizeSolanaRpcUrl(config.rpcUrl);\n const configuredNetwork = getConfiguredSolanaNetwork(config);\n currentAuthMethod = authMethod;\n // Clear, actionable error when the BROWSER build (`bounded-sh`) is loaded in a\n // non-browser (Node) runtime. The wallet providers below need `window`; without\n // it they throw a cryptic \"PhantomWalletProvider can only be instantiated in a\n // browser environment\" deep in init(). The server build (`bounded-sh/server`)\n // never resolves these methods (it signs with a keypair), so this can't fire for\n // it — it only converts the cryptic browser-in-Node crash into a useful message.\n const browserWalletMethods = ['phantom', 'rainbowkit', 'coinbase-smart-wallet', 'onboard', 'mobile-wallet-adapter', 'privy'];\n if (typeof window === 'undefined' && browserWalletMethods.includes(authMethod)) {\n throw new Error(`bounded-sh: '${authMethod}' auth requires a browser, but no \\`window\\` was found ` +\n `(you're likely running in Node). In server/Node code, import from 'bounded-sh/server' ` +\n `instead of 'bounded-sh' — it signs with an explicit keypair passed to createWalletClient({ keypair }) ` +\n `and needs no browser.`);\n }\n switch (authMethod) {\n case \"email\":\n // Bounded Better Auth human login (email OTP, inline). The provider\n // renders a web modal for login(); on RN use the headless\n // sendEmailOtp/verifyEmailOtp exports.\n currentAuthProvider = new EmailAuthProvider();\n break;\n case \"wallet\":\n console.warn(\"Wallet auth is not yet supported.\");\n break;\n case \"rainbowkit\":\n console.warn(\"Rainbow Kit auth is not yet supported.\");\n break;\n case \"phantom\": {\n const { PhantomWalletProvider } = await loadPhantomWalletProvider();\n currentAuthProvider = new PhantomWalletProvider(rpcUrl, config.phantomConfig, configuredNetwork);\n // MWA hot-swap is always available (custom modal shows MWA button on Android)\n currentAuthProvider.onSwitchToMWA =\n () => hotSwapToMWAProvider(config);\n break;\n }\n case \"privy\": {\n // Web Privy: a co-equal login route alongside email/phantom/guest. The\n // Privy embedded/external Solana wallet signs the SIWS challenge, so the\n // session is minted through the same wallet path as Phantom.\n const privyConfig = requireWebPrivyConfig(config);\n const PrivyWalletProvider = await loadPrivyWalletProvider();\n currentAuthProvider = new PrivyWalletProvider((_a = config.name) !== null && _a !== void 0 ? _a : null, (_b = config.logoUrl) !== null && _b !== void 0 ? _b : null, privyConfig, rpcUrl, configuredNetwork);\n break;\n }\n case \"privy-expo\":\n // React Native Privy: @privy-io/expo is hook-based, so the host app must\n // create a PrivyExpoProvider, bridge the Privy hooks via setPrivyMethods()\n // from inside its <PrivyProvider> tree, and pass it as config.privyExpoProvider.\n if (!config.privyExpoProvider) {\n throw new Error('authMethod \"privy-expo\" requires a PrivyExpoProvider instance passed as config.privyExpoProvider. ' +\n 'Create the provider, call setPrivyMethods() from your React Native component tree, then pass it to init().');\n }\n currentAuthProvider = config.privyExpoProvider;\n break;\n case \"mobile-wallet-adapter\": {\n const SolanaMobileWalletProvider = await loadSolanaMobileWalletProvider();\n currentAuthProvider = new SolanaMobileWalletProvider(rpcUrl, requireMobileWalletConfig(config), configuredNetwork);\n break;\n }\n case \"onboard\":\n console.warn(\"Onboard auth is not yet supported.\");\n break;\n case \"guest\":\n // Anonymous auth: a device-local ed25519 keypair signs the challenge.\n currentAuthProvider = new GuestAuthProvider();\n break;\n default:\n break;\n }\n if (!currentAuthProvider) {\n throw new Error(\"No auth provider was selected. Does your app have a supported auth method or chain configured?\");\n }\n // Wrap with OffchainAuthProvider for offchain/poofnet chain\n if (config.chain === \"offchain\") {\n console.log(\"[Offchain] Wrapping auth provider for Poofnet transaction tracking\");\n currentAuthProvider = new OffchainAuthProvider(currentAuthProvider);\n }\n return currentAuthProvider;\n}\n/**\n * Browser/React-Native-only auth flows (guest, email) persist their session via\n * WebSessionManager, which is gated to environments that have `window` /\n * `localStorage`. In Node those stores no-op, so the session is minted on the\n * server but never saved locally — the caller looks logged in yet every request\n * 403s. Fail fast with actionable guidance instead of that silent footgun.\n */\nfunction assertBrowserAuthEnv(method) {\n if (typeof window === 'undefined') {\n throw new Error(`bounded-sh: '${method}' is a browser/React-Native auth flow — it needs \\`window\\`/\\`localStorage\\` ` +\n `to persist the session, which Node doesn't have (the session would be silently dropped, then every ` +\n `request 403s). In Node/server code import from 'bounded-sh/server' and sign with a keypair ` +\n `by using createWalletClient({ keypair }).`);\n }\n}\n/**\n * Anonymous (\"guest\") sign-in: zero-friction auth backed by a device-local\n * ed25519 keypair (no email, no wallet, no popup). The keypair is generated +\n * persisted on the device; its public key becomes `@user.address`. Durable\n * across reloads. Upgrade later by linking an email; transfer accounts via the\n * ownership-as-data pattern. `init()` must have run first. Browser/RN only.\n */\nexport async function signInAnonymously() {\n assertBrowserAuthEnv('signInAnonymously');\n const provider = new GuestAuthProvider();\n currentAuthProvider = provider;\n currentAuthMethod = 'guest';\n const coreConfig = await getConfig();\n coreConfig.authProvider = provider;\n coreConfig.authMethod = 'guest';\n setAuthProviderInstance(provider);\n setStoredAuthMethod('guest');\n return provider.login();\n}\n/**\n * Log in with Privy as a co-equal route — selectable at runtime alongside\n * `login()` (email/wallet) and `signInAnonymously()`, without re-`init()`.\n *\n * On WEB it lazy-loads the @privy-io/react-auth-backed PrivyWalletProvider from\n * `config.privyConfig`. On REACT NATIVE the host must have created a\n * PrivyExpoProvider and bridged the Privy hooks via setPrivyMethods() (pass it as\n * `config.privyExpoProvider` to init()) — RN can't construct it here because the\n * Privy hooks live in the app's component tree.\n *\n * Either way the Privy Solana wallet signs the SIWS challenge, so the session is\n * minted via the same wallet path as Phantom and shares the unified session store\n * (web localStorage / RN storage) and identity model. `init()` must have run first.\n */\nexport async function loginWithPrivy(options) {\n var _a, _b;\n assertBrowserAuthEnv('loginWithPrivy');\n const coreConfig = await getConfig();\n let provider;\n if (getPlatform().hasDOM) {\n const privyConfig = requireWebPrivyConfig(coreConfig);\n const PrivyWalletProvider = await loadPrivyWalletProvider();\n provider = new PrivyWalletProvider((_a = coreConfig.name) !== null && _a !== void 0 ? _a : null, (_b = coreConfig.logoUrl) !== null && _b !== void 0 ? _b : null, privyConfig, normalizeSolanaRpcUrl(coreConfig.rpcUrl), getConfiguredSolanaNetwork(coreConfig));\n currentAuthMethod = 'privy';\n }\n else {\n if (!coreConfig.privyExpoProvider) {\n throw new Error('loginWithPrivy() on React Native requires a PrivyExpoProvider bridged from your app: ' +\n 'create it, call setPrivyMethods() inside <PrivyProvider>, and pass it as config.privyExpoProvider to init().');\n }\n provider = coreConfig.privyExpoProvider;\n currentAuthMethod = 'privy-expo';\n }\n if (coreConfig.chain === 'offchain') {\n provider = new OffchainAuthProvider(provider);\n }\n currentAuthProvider = provider;\n coreConfig.authProvider = provider;\n coreConfig.authMethod = currentAuthMethod;\n setAuthProviderInstance(provider);\n setStoredAuthMethod(currentAuthMethod);\n if (typeof provider.setLoginOverrides === 'function') {\n provider.setLoginOverrides(options !== null && options !== void 0 ? options : null);\n }\n const result = await provider.login();\n return result ? Object.assign(Object.assign({}, result), { provider }) : null;\n}\n/** Bind the active provider/method to email (Bounded Better Auth). Shared by the\n * headless verify wrapper so reload-restore + logout treat it as 'email'. */\nasync function activateEmailProvider() {\n const provider = new EmailAuthProvider();\n currentAuthProvider = provider;\n currentAuthMethod = 'email';\n const coreConfig = await getConfig();\n coreConfig.authProvider = provider;\n coreConfig.authMethod = 'email';\n setAuthProviderInstance(provider);\n setStoredAuthMethod('email');\n return provider;\n}\n/**\n * Send a 6-digit login code to `email` (Bounded Better Auth). Step 1 of the\n * inline email flow — build your own email/code UI, or just call `login()` for\n * the built-in modal. Works on web AND React Native (no DOM needed).\n */\nexport async function sendEmailOtp(email) {\n assertBrowserAuthEnv('sendEmailOtp');\n return emailSend(email);\n}\n/**\n * Send a 6-digit login code by text message. Requires the configured Bounded\n * auth issuer to have text OTP explicitly enabled and SMS delivery configured.\n * Works on web AND React Native.\n */\nexport async function sendTextOtp(phoneNumber) {\n assertBrowserAuthEnv('sendTextOtp');\n return textSend(phoneNumber);\n}\n/**\n * Verify the `code` for `email`, establish the session, and return the user.\n * Step 2 of the inline email flow. Coexists with signInAnonymously()/wallets.\n */\nexport async function verifyEmailOtp(email, code) {\n assertBrowserAuthEnv('verifyEmailOtp');\n await activateEmailProvider();\n return emailVerify(email, code);\n}\n/**\n * Verify the text-message `code`, establish the session, and return the user.\n * Phone-only users have no `user.email`; use `user.id` for app identity.\n */\nexport async function verifyTextOtp(phoneNumber, code) {\n assertBrowserAuthEnv('verifyTextOtp');\n await activateEmailProvider();\n return textVerify(phoneNumber, code);\n}\n/**\n * UPGRADE the current anonymous (guest) session by linking an email — Firebase\n * `linkWithCredential` parity. Send the code first with `sendEmailOtp(email)`,\n * then call `linkEmail(email, code)`. If the email is brand-new the guest's\n * `@user.id` (and its data) is preserved; if the email already exists the user\n * just signs into it (no merge). After it resolves, `getCurrentUser().isAnonymous`\n * is `false`. Requires an active guest session (`signInAnonymously()` first).\n */\nexport async function linkEmail(email, code) {\n assertBrowserAuthEnv('linkEmail');\n // Capture the GUEST token BEFORE switching auth methods — the issuer needs it\n // to prove guest ownership and adopt its id into the new email account.\n const guestToken = getActiveSessionManager().getIdToken();\n if (!guestToken) {\n throw new Error('linkEmail requires an active anonymous session — call signInAnonymously() first.');\n }\n await activateEmailProvider(); // method=email so the upgraded user is no longer anonymous\n const { user } = await emailLink(email, code, guestToken);\n return user;\n}\nexport async function login(options) {\n // Re-initialize provider if it was cleared by logout\n if (!currentAuthProvider && initConfig) {\n currentAuthProvider = await getAuthProvider(initConfig);\n const coreConfig = await getConfig();\n coreConfig.authProvider = currentAuthProvider;\n coreConfig.authMethod = currentAuthMethod;\n setAuthProviderInstance(currentAuthProvider);\n }\n if (!currentAuthProvider) {\n throw new Error(\"Auth provider not initialized. Please call init() first.\");\n }\n // Forward per-call overrides to providers that support them (duck-typed to stay\n // lazy-load safe — no direct import of PhantomWalletProvider here).\n // Always call (even with null) so previous overrides are cleared when this\n // login() is invoked without options — early-return paths inside the provider\n // bypass the .finally() cleanup, so we reset here too.\n if (typeof currentAuthProvider.setLoginOverrides === 'function') {\n currentAuthProvider.setLoginOverrides(options !== null && options !== void 0 ? options : null);\n }\n const loginResult = await currentAuthProvider.login();\n if (loginResult) {\n // Store which auth method was used so we restore the right provider on reload\n setStoredAuthMethod(currentAuthMethod);\n // If this top-level tab was opened solely to perform the wallet connect for\n // an embedded preview (?poofConnect — see openTopLevelForConnect in the\n // phantom provider), close it now that the session is established. The\n // session reflects back into the preview's iframe via same-origin storage.\n try {\n if (typeof window !== 'undefined'\n && window.top === window.self\n && new URLSearchParams(window.location.search).get('poofConnect') === '1') {\n setTimeout(() => { try {\n window.close();\n }\n catch ( /* noop */_a) { /* noop */ } }, 400);\n }\n }\n catch ( /* noop */_a) { /* noop */ }\n return Object.assign(Object.assign({}, loginResult), { provider: currentAuthProvider });\n }\n return null;\n}\nexport function getCurrentAuthMethod() {\n return currentAuthMethod;\n}\nexport async function logout() {\n var _a;\n if (!currentAuthProvider) {\n throw new Error(\"Auth provider not initialized. Please call init() first.\");\n }\n // Revoke the refresh-token family server-side BEFORE the provider clears the\n // local session (so we still have the token + issuer to revoke). If revoke\n // fails, surface the error and leave local state intact so callers do not\n // mistake a local-only logout for server revocation.\n const sm = getActiveSessionManager();\n const refreshToken = sm.getRefreshToken();\n if (refreshToken)\n await revokeSession(refreshToken, (_a = sm.getIssuer()) !== null && _a !== void 0 ? _a : undefined);\n await currentAuthProvider.logout();\n setStoredAuthMethod(null);\n currentAuthProvider = null;\n currentAuthMethod = null;\n}\n// OIDC Authorization Code + PKCE login (the secure multi-tenant redirect flow).\nexport { loginWithRedirect, linkWithRedirect, completeLoginFromRedirect, loginWithPopup, completeLoginInPopup } from './oidc-auth';\n","import { reconnectWithNewAuth, getConfig, deriveUserIdentityFromIdToken, getActiveSessionManager } from '@bounded-sh/core';\nimport { getAuthProvider, login as authLogin, logout as authLogout, clearIncompatibleSession, getCurrentAuthMethod } from './auth';\nimport { init as configInit } from '@bounded-sh/core';\n/**\n * Read the active session's idToken synchronously from whichever store is live\n * for this runtime (WebSessionManager on web, ReactNativeSessionManager on RN —\n * selected by getActiveSessionManager, the same selector the core request path\n * uses). Returns null when there's no session — the caller leaves the user as-is.\n */\nfunction getCurrentIdToken() {\n try {\n return getActiveSessionManager().getIdToken();\n }\n catch ( /* no session / store unavailable */_a) { /* no session / store unavailable */ }\n return null;\n}\n/**\n * Enrich a freshly-produced User with the universal identity fields\n * ({ id, email }) derived from the active session's idToken. ADDITIVE +\n * backwards-compatible: `address` is left exactly as the provider set it, and\n * id/email are only populated when not already present. For wallet logins\n * id === address; for email-only (Bounded) logins address may be null and id\n * is the account identity. Mirrors the realtime-worker auth.ts resolution so\n * the client `user` matches what the backend authenticates as (@user.id / .email).\n */\nfunction withUserIdentity(user) {\n var _a, _b, _c, _d;\n if (!user)\n return user;\n const { id, email } = deriveUserIdentityFromIdToken(getCurrentIdToken());\n return Object.assign(Object.assign({}, user), { \n // Prefer an id the provider already set; otherwise fall back to the\n // token-derived identity, then to the wallet address (wallet === id).\n id: (_c = (_b = (_a = user.id) !== null && _a !== void 0 ? _a : id) !== null && _b !== void 0 ? _b : user.address) !== null && _c !== void 0 ? _c : undefined, \n // Email comes only from email-login tokens; keep any provider-set value.\n email: user.email !== undefined ? user.email : email, \n // Guest/anonymous flag (Firebase `isAnonymous` parity): authoritative\n // source is the active auth method, so it's correct on fresh login AND\n // after a session restore (the stored method is rehydrated before the\n // user is set). A provider may also set it explicitly; honor that first.\n isAnonymous: (_d = user.isAnonymous) !== null && _d !== void 0 ? _d : (getCurrentAuthMethod() === 'guest') });\n}\nlet authProviderInstance = null;\nlet currentUser = null;\nlet authStateListeners = [];\nlet authLoadingListeners = [];\nlet initCompleted = false;\nlet isAuthLoading = false;\n// This file acts as a middleware for the global state of the SDK\n// This mostly involves setting up the AuthProvider and managing the current user\nexport async function init(newConfig) {\n // Mark auth as loading for the ENTIRE init/restore window so consumers render\n // a neutral/loading state instead of the signed-out UI while we rehydrate the\n // session — otherwise getCurrentUser() is null + loading is false during the\n // async restore, which paints \"logged out\" and then flips to \"logged in\" (an\n // auth flash). The React useAuth hook seeds loading=true itself, but the\n // imperative API (onAuthLoadingChanged/getAuthLoading) relies on this flag, so\n // setting it here makes \"no flash\" the SDK's default behavior for every consumer.\n setAuthLoading(true);\n try {\n // Get auth provider first\n authProviderInstance = await getAuthProvider(newConfig);\n // Initialize config with auth provider\n await configInit(Object.assign(Object.assign({}, newConfig), { authProvider: authProviderInstance }));\n // Now that core is initialized, update the auth method on the config\n const authMethod = getCurrentAuthMethod();\n if (authMethod) {\n const coreConfig = await getConfig();\n coreConfig.authMethod = authMethod;\n }\n // Wait for restoreSession to complete\n // The appId check is done in SessionManager.getSession which is called by restoreSession\n // If there's an appId mismatch, the session will be cleared and restoreSession will return null\n let user = await authProviderInstance.restoreSession();\n // If a session exists but was created before auth method tracking (legacy session),\n // clear it to avoid mismatches when the app switches auth methods (e.g. email → phantom)\n if (user && clearIncompatibleSession()) {\n user = null;\n }\n setCurrentUser(user);\n // Mark init as completed\n initCompleted = true;\n }\n finally {\n // Resolve loading once the user is known (or restore failed) — listeners\n // registered mid-init still get the correct final state via the immediate\n // callback in onAuthLoadingChanged.\n setAuthLoading(false);\n }\n}\n// TODO: Have a way to remove listeners\nexport function onAuthStateChanged(callback) {\n authStateListeners.push(callback);\n if (initCompleted || hasRunFirstTime) {\n // Call the callback immediately with the current user.\n // We check hasRunFirstTime in addition to initCompleted to handle the race\n // where the Phantom auto-login effect calls setCurrentUser() before init()\n // finishes. Without this, listeners registered between auto-login's\n // setCurrentUser and init()'s initCompleted would never fire (init's\n // setCurrentUser is a no-op for same-address and initCompleted is still false).\n callback(currentUser);\n }\n}\nexport function onAuthLoadingChanged(callback) {\n authLoadingListeners.push(callback);\n // Call immediately with current loading state\n callback(isAuthLoading);\n}\nexport function setAuthLoading(loading) {\n if (isAuthLoading !== loading) {\n isAuthLoading = loading;\n authLoadingListeners.forEach((callback) => callback(loading));\n }\n}\nexport function getAuthLoading() {\n return isAuthLoading;\n}\nexport async function login(options) {\n if (!authProviderInstance) {\n throw new Error('SDK not initialized. Please call init() first.');\n }\n const loggedInUser = await authLogin(options);\n setCurrentUser(loggedInUser);\n return currentUser;\n}\nexport async function logout() {\n if (!authProviderInstance) {\n throw new Error('SDK not initialized. Please call init() first.');\n }\n await authLogout();\n setCurrentUser(null);\n}\nvar hasRunFirstTime = false;\nfunction userPrincipalKey(user) {\n var _a, _b, _c;\n if (!user)\n return null;\n return (_c = (_b = (_a = user.id) !== null && _a !== void 0 ? _a : user.address) !== null && _b !== void 0 ? _b : user.email) !== null && _c !== void 0 ? _c : null;\n}\n// Update the currentUser and notify listeners\nexport function setCurrentUser(user) {\n // Enrich with the universal identity fields (id/email) derived from the\n // active session's idToken — central chokepoint so every provider's user\n // object gains { id, address, email } without each construction site\n // having to set them.\n user = withUserIdentity(user);\n const lastUser = currentUser;\n const wasInitializedBefore = hasRunFirstTime;\n const lastPrincipal = userPrincipalKey(currentUser);\n const nextPrincipal = userPrincipalKey(user);\n const shouldRunListeners = !hasRunFirstTime || lastPrincipal !== nextPrincipal;\n hasRunFirstTime = true;\n currentUser = user;\n if (shouldRunListeners) {\n authStateListeners.forEach((callback) => callback(user));\n // Reconnect WebSocket connections with new auth when user changes.\n // Skip on the first setCurrentUser call during init() — there are no\n // existing connections to reconnect at that point.\n if (wasInitializedBefore && userPrincipalKey(lastUser) !== nextPrincipal) {\n reconnectWithNewAuth().catch((error) => {\n console.error('Error reconnecting WebSocket after auth change:', error);\n });\n }\n }\n}\nexport function getCurrentUser() {\n return currentUser;\n}\nexport function setAuthProviderInstance(provider) {\n authProviderInstance = provider;\n}\n","var _a;\nimport * as React from 'react';\nimport { login as sdkLogin, logout as sdkLogout } from '../../global';\nimport { onAuthStateChanged, onAuthLoadingChanged } from '../../global';\n// Whether we're in a server-side rendering context (no hooks allowed).\n// React Native has no `window` but DOES support hooks.\n// We detect Node SSR specifically via process.versions.node to avoid\n// false positives from Node 21+ which defines `navigator` globally.\nconst isSSR = typeof window === 'undefined'\n && typeof process !== 'undefined'\n && !!((_a = process.versions) === null || _a === void 0 ? void 0 : _a.node);\nexport function useAuth() {\n // Provide a fallback so server render doesn't break\n if (isSSR) {\n return {\n login: async () => undefined,\n logout: async () => undefined,\n loading: true,\n user: null,\n };\n }\n const [user, setUser] = React.useState(null);\n const [loading, setLoading] = React.useState(true);\n const [sdkLoading, setSdkLoading] = React.useState(false);\n React.useEffect(() => {\n onAuthStateChanged((user) => {\n setUser(user);\n setLoading(false);\n });\n onAuthLoadingChanged((loading) => {\n setSdkLoading(loading);\n });\n return () => {\n };\n }, []);\n const login = async () => {\n try {\n setLoading(true);\n const user = await sdkLogin();\n setUser(user);\n }\n catch (error) {\n // Only log errors that aren't user-initiated cancellations\n if (error !== 'exited_auth_flow' && (error === null || error === void 0 ? void 0 : error.message) !== 'exited_auth_flow') {\n console.error('Error logging in:', error);\n }\n setUser(null);\n }\n finally {\n setLoading(false);\n }\n };\n const logout = async () => {\n try {\n setLoading(true);\n await sdkLogout();\n setUser(null);\n }\n catch (error) {\n console.error('Error logging out:', error);\n }\n finally {\n setLoading(false);\n }\n };\n return {\n login,\n logout,\n loading: loading || sdkLoading,\n user,\n };\n}\n","var _a;\nimport * as React from 'react';\nimport { subscribe } from '@bounded-sh/core';\n// SSR guard (mirrors useAuth): no hooks/subscriptions during Node server render.\n// React Native has no `window` but DOES support hooks, so detect Node SSR\n// specifically via process.versions.node.\nconst isSSR = typeof window === 'undefined'\n && typeof process !== 'undefined'\n && !!((_a = process.versions) === null || _a === void 0 ? void 0 : _a.node);\nexport function useQuery(path, options) {\n if (isSSR) {\n return { data: undefined, loading: true, error: null };\n }\n const [data, setData] = React.useState(undefined);\n const [loading, setLoading] = React.useState(true);\n const [error, setError] = React.useState(null);\n // Re-subscribe only when the query actually changes (not on every render).\n const optionsKey = options ? JSON.stringify(options) : '';\n React.useEffect(() => {\n if (!path) {\n setData(undefined);\n setLoading(false);\n setError(null);\n return;\n }\n let active = true;\n let unsubscribe;\n setLoading(true);\n setError(null);\n subscribe(path, Object.assign(Object.assign({}, options), { onData: (d) => {\n if (!active)\n return;\n setData(d);\n setLoading(false);\n }, onError: (e) => {\n if (!active)\n return;\n setError(e instanceof Error ? e : new Error(String(e)));\n setLoading(false);\n } }))\n .then((unsub) => {\n if (active)\n unsubscribe = unsub;\n else\n void unsub(); // unmounted before subscribe resolved\n })\n .catch((e) => {\n if (!active)\n return;\n setError(e instanceof Error ? e : new Error(String(e)));\n setLoading(false);\n });\n return () => {\n active = false;\n void (unsubscribe === null || unsubscribe === void 0 ? void 0 : unsubscribe());\n };\n // optionsKey captures the option object's contents; path is the other input.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [path, optionsKey]);\n return { data, loading, error };\n}\n","import { Transaction, VersionedTransaction } from \"@solana/web3.js\";\nexport async function deserializeTransaction(tx) {\n const buf = Buffer.isBuffer(tx) ? tx : Buffer.from(tx, 'base64');\n if ((buf[0] & 0x80) !== 0) {\n return VersionedTransaction.deserialize(buf);\n }\n else {\n return Transaction.from(buf);\n }\n}\n","import { getIdToken as getIdTokenCore } from '@bounded-sh/core';\n// Wrapper for getIdToken - passes isServer=false for client-side usage\nexport async function getIdToken() {\n return getIdTokenCore(false);\n}\n","/**\n * Extracts a human-readable error message from Solana transaction logs.\n */\nexport function extractTransactionError(err, logMessages) {\n if (logMessages) {\n return JSON.stringify(logMessages);\n }\n if (err) {\n try {\n return JSON.stringify(err);\n }\n catch (_a) {\n return String(err);\n }\n }\n return 'Unknown transaction error';\n}\n/**\n * Polls getSignatureStatuses until the transaction is confirmed, then checks for errors.\n * Throws if the transaction failed on-chain. Returns parsed transaction info on success.\n */\nexport async function confirmAndCheckTransaction(connection, signature) {\n var _a;\n const maxAttempts = 15;\n for (let i = 0; i < maxAttempts; i++) {\n const { value } = await connection.getSignatureStatuses([signature]);\n const status = value[0];\n if (status) {\n if (status.err) {\n const txInfo = await connection.getParsedTransaction(signature, {\n maxSupportedTransactionVersion: 0,\n commitment: 'confirmed'\n });\n const errorMessage = extractTransactionError(status.err, (_a = txInfo === null || txInfo === void 0 ? void 0 : txInfo.meta) === null || _a === void 0 ? void 0 : _a.logMessages);\n throw new Error(`Transaction failed: ${errorMessage}`);\n }\n if (status.confirmationStatus === 'confirmed' || status.confirmationStatus === 'finalized') {\n return await connection.getParsedTransaction(signature, {\n maxSupportedTransactionVersion: 0,\n commitment: 'confirmed'\n });\n }\n }\n await new Promise(resolve => setTimeout(resolve, 1000));\n }\n throw new Error('Transaction confirmation timeout');\n}\n","import { Buffer } from 'buffer';\nimport { WebSessionManager as SessionManager, createSessionWithSignature, genAuthNonce, genSolanaMessage, buildSetDocumentsTransaction, convertRemainingAccounts } from '@bounded-sh/core';\nimport { setCurrentUser, setAuthLoading } from '../../global';\nimport { getPlatform, detectMobile, detectAndroid } from '../../platform';\nimport { Connection, PublicKey, VersionedTransaction } from '@solana/web3.js';\nimport * as anchor from '@coral-xyz/anchor';\nimport { resolveSolanaRpcUrl, SURFNET_RPC_URL } from '../solana-rpc';\nimport { confirmAndCheckTransaction } from './transaction-utils';\nconst VALID_PROVIDERS = ['injected', 'google', 'apple', 'deeplink', 'phantom'];\n// When the dApp runs inside an iframe whose parent origin is different from\n// (or can't inject into) the child frame — notably Phantom's Android in-app\n// browser, which injects window.phantom.solana only into the top frame —\n// the Phantom deeplink path tries to navigate phantom.app/ul/browse/... from\n// inside the iframe. Android App Links only hand off on top-level navigations,\n// and phantom.app refuses to be framed (X-Frame-Options: DENY), so the connect\n// fails. To get back to a working context we navigate the top window to the\n// dApp's own URL, dropping the iframe shell. Once top-level, the wallet\n// browser injects its provider and the normal injected flow succeeds.\nfunction isInIframe() {\n if (typeof window === 'undefined')\n return false;\n try {\n return window.top !== window.self;\n }\n catch (_a) {\n // Cross-origin access to window.top throws — if we can't read it, we're iframed.\n return true;\n }\n}\nfunction shouldBreakOutOfIframe(provider) {\n // Only break out when the user chose the deeplink provider. The modal only\n // offers deeplink on mobile when no injected Phantom is present, so this is\n // exactly the iframe-without-provider case we need to escape.\n return provider === 'deeplink' && isInIframe();\n}\n// In a cross-origin iframe (e.g. the poof.new build-page preview) on mobile,\n// Mobile Wallet Adapter can't run: its localhost association handshake needs\n// Chrome's Local Network Access, which is denied to cross-origin sub-frames.\n// So open the app's own URL TOP-LEVEL (a new tab / Custom Tab), where MWA works\n// natively; the connect happens there and the session — written to same-origin\n// storage — reflects back into this iframe (awaitTopLevelConnect picks it up).\n// Must be called synchronously inside a user-gesture handler so window.open\n// isn't popup-blocked. Returns true if the tab was opened.\nfunction openTopLevelForConnect() {\n if (typeof window === 'undefined' || !isInIframe())\n return false;\n try {\n const url = new URL(window.location.href);\n url.searchParams.set('poofConnect', '1');\n const w = window.open(url.toString(), '_blank');\n return !!w;\n }\n catch (_a) {\n return false;\n }\n}\n// Dynamically import React and Phantom SDK - only when needed\nlet React;\nlet ReactDOM;\nlet phantomReactSdk;\nlet sdkLoaded = false;\nlet loadingPromise = null;\n// Lazy load React and Phantom dependencies only when PhantomWalletProvider is instantiated\n// Uses dynamic import() to ensure code splitting and prevent side effects\nasync function loadDependencies() {\n if (sdkLoaded)\n return;\n if (typeof window === 'undefined')\n return;\n // Prevent multiple concurrent loads\n if (loadingPromise)\n return loadingPromise;\n loadingPromise = (async () => {\n const [reactModule, reactDomModule, phantomModule] = await Promise.all([\n import('react'),\n import('react-dom/client'),\n import('@phantom/react-sdk')\n ]);\n // Extract default export from ESM module namespace\n // Dynamic import() returns { default: Module, ...exports }, not the module directly\n React = reactModule.default || reactModule;\n ReactDOM = reactDomModule.default || reactDomModule;\n phantomReactSdk = phantomModule;\n sdkLoaded = true;\n })();\n return loadingPromise;\n}\nexport class PhantomWalletProvider {\n /** Temporarily override modal appearance for a single login() call. Cleared automatically after login settles. */\n setLoginOverrides(opts) {\n this.loginOverrides = opts;\n }\n constructor(networkUrl = null, config = {}, configuredNetwork = null) {\n this.containerElement = null;\n this.root = null;\n this.phantomMethods = null;\n this.resolvedProviders = ['injected'];\n this.pendingLogin = null;\n this.loginInProgress = false;\n this.autoLoginInProgress = false;\n this.initPromise = null;\n this.loginOverrides = null;\n /** Callback to swap to a Mobile Wallet Adapter provider when the user clicks \"Connect Mobile Wallet\" */\n this.onSwitchToMWA = null;\n this.networkUrl = networkUrl;\n this.configuredNetwork = configuredNetwork;\n this.config = config;\n if (typeof window === 'undefined') {\n throw new Error('PhantomWalletProvider can only be instantiated in a browser environment');\n }\n // Singleton pattern - reuse existing instance\n if (PhantomWalletProvider.instance) {\n return PhantomWalletProvider.instance;\n }\n // Resolve providers from config (doesn't need SDK)\n this.resolveProviders();\n // Start async initialization (load SDK and initialize React component)\n this.initPromise = this.initializeAsync();\n PhantomWalletProvider.instance = this;\n }\n async initializeAsync() {\n // Lazy load dependencies only when actually instantiating\n await loadDependencies();\n // Initialize React component\n this.initialize();\n }\n /**\n * Check if social login providers are configured (non-injected providers).\n */\n hasSocialProviders() {\n return this.resolvedProviders.some(p => p !== 'injected');\n }\n static getInstance(networkUrl, config, configuredNetwork = null) {\n if (!PhantomWalletProvider.instance) {\n new PhantomWalletProvider(networkUrl, config, configuredNetwork);\n }\n return PhantomWalletProvider.instance;\n }\n resolveProviders() {\n if (this.config.providers && this.config.providers.length > 0) {\n const configProviders = this.config.providers;\n this.resolvedProviders = configProviders.filter((p) => VALID_PROVIDERS.includes(p));\n if (this.resolvedProviders.length === 0) {\n this.resolvedProviders = ['injected'];\n }\n }\n else if (this.config.appId) {\n this.resolvedProviders = ['injected', 'google', 'apple', 'deeplink'];\n }\n else {\n this.resolvedProviders = ['injected'];\n }\n }\n /**\n * Patch the Phantom extension's provider to gracefully handle `phantom_getFeatures`\n * instead of throwing. Some SDKs probe this method to check feature support, but the\n * extension doesn't implement it, causing noisy console errors.\n */\n patchPhantomGetFeatures() {\n var _a;\n try {\n const provider = (_a = window.phantom) === null || _a === void 0 ? void 0 : _a.solana;\n if (!(provider === null || provider === void 0 ? void 0 : provider.request) || provider.__featuresPatched)\n return;\n const originalRequest = provider.request.bind(provider);\n provider.request = async (args) => {\n if ((args === null || args === void 0 ? void 0 : args.method) === 'phantom_getFeatures') {\n return { features: {} };\n }\n return originalRequest(args);\n };\n provider.__featuresPatched = true;\n }\n catch (_b) {\n // Phantom extension not present — nothing to patch\n }\n }\n initialize() {\n if (this.containerElement)\n return;\n // Suppress \"phantom_getFeatures isn't implemented\" errors from SDKs probing\n // the Phantom extension for features it doesn't support yet.\n this.patchPhantomGetFeatures();\n // Remove any existing Phantom providers\n const existingProviders = document.querySelectorAll('[data-phantom-provider]');\n existingProviders.forEach(el => el.remove());\n this.containerElement = document.createElement('div');\n this.containerElement.setAttribute('data-phantom-provider', 'true');\n // Keep Phantom UI above host overlays while avoiding global click-capture.\n this.containerElement.style.position = 'fixed';\n this.containerElement.style.zIndex = '2147483647';\n // Full-viewport overlay for custom modal; pointer-events: none lets\n // clicks pass through to page except where the modal sets 'auto'\n this.containerElement.style.inset = '0';\n this.containerElement.style.pointerEvents = 'none';\n document.body.appendChild(this.containerElement);\n const that = this;\n const { PhantomProvider: ReactPhantomProvider, usePhantom, useConnect, useDisconnect, useModal, useSolana, useDiscoveredWallets, AddressType, darkTheme, lightTheme } = phantomReactSdk;\n // The SDK expects providers as an array of strings: 'injected' | 'google' | 'apple' | 'phantom' | 'deeplink'\n // Ensure we have a valid non-empty array\n const sdkProviders = this.resolvedProviders.length > 0 ? [...this.resolvedProviders] : ['injected'];\n // Inner component that uses hooks\n const PhantomHooksComponent = () => {\n var _a, _b, _c, _d, _e, _f, _g, _h, _j;\n const phantom = usePhantom();\n const { connect, error: connectError } = useConnect();\n const { disconnect, isDisconnecting } = useDisconnect();\n const modal = useModal();\n const solanaHook = useSolana();\n const { solana } = solanaHook;\n const [showWalletModal, setShowWalletModal] = React.useState(false);\n const [hoveredBtn, setHoveredBtn] = React.useState(null);\n // Discover all available wallets via Wallet Standard + EIP-6963\n const { wallets: discoveredWallets } = useDiscoveredWallets();\n const isMobile = detectMobile();\n const hasPhantomInjected = discoveredWallets.some((w) => w.id === 'phantom');\n const showDeeplink = isMobile && sdkProviders.includes('deeplink') && !hasPhantomInjected;\n // Treat MWA's own wallet-standard registrations as not-injected, so the MWA\n // button still appears when only MWA is present (e.g. Android Chrome on Seeker).\n const hasInjectedWallet = discoveredWallets.some((w) => {\n var _a, _b;\n const id = String((_a = w.id) !== null && _a !== void 0 ? _a : '').toLowerCase();\n const name = String((_b = w.name) !== null && _b !== void 0 ? _b : '').toLowerCase();\n return (id !== 'mobile-wallet-adapter' &&\n id !== 'remote-mobile-wallet-adapter' &&\n name !== 'mobile wallet adapter' &&\n name !== 'remote mobile wallet adapter');\n });\n // Track previous modal state to detect closes\n const prevModalOpen = React.useRef(false);\n // Track when modal was closed because user selected a wallet (not dismissed)\n const walletClickedRef = React.useRef(false);\n // Set up effect to expose methods to the class\n React.useEffect(() => {\n if (phantom) {\n that.phantomMethods = {\n ready: !phantom.isLoading,\n isConnected: phantom.isConnected,\n addresses: phantom.addresses || [],\n user: phantom.user,\n connect: async () => {\n return await connect();\n },\n disconnect: async () => {\n await disconnect();\n },\n isDisconnecting,\n openModal: () => modal.open(),\n closeModal: () => modal.close(),\n isModalOpen: modal.isOpened,\n connectError,\n showCustomModal: () => setShowWalletModal(true),\n hideCustomModal: () => setShowWalletModal(false),\n solana: solana && solanaHook.isAvailable ? {\n // Wrap methods to preserve 'this' context - direct references lose binding\n signMessage: (message) => solana.signMessage(message),\n signTransaction: (tx) => solana.signTransaction(tx),\n signAllTransactions: (txs) => solana.signAllTransactions(txs),\n signAndSendTransaction: (tx) => solana.signAndSendTransaction(tx),\n getPublicKey: () => solana.getPublicKey(),\n isAvailable: solanaHook.isAvailable,\n connected: solana.connected,\n connect: (options) => solana.connect(options),\n } : null,\n };\n }\n }, [phantom, phantom === null || phantom === void 0 ? void 0 : phantom.isConnected, phantom === null || phantom === void 0 ? void 0 : phantom.addresses, phantom === null || phantom === void 0 ? void 0 : phantom.isLoading, connect, disconnect, isDisconnecting, modal, modal.isOpened, solana, solana === null || solana === void 0 ? void 0 : solana.connected, solanaHook.isAvailable, connectError]);\n // Auto-login: If connected but no Bounded session, try to create one.\n // This handles social login callbacks where user returns from OAuth already connected.\n React.useEffect(() => {\n const autoCreateSession = async () => {\n var _a;\n // Only proceed when SDK is ready, connected, has addresses, and not already in a login flow\n if (!(phantom === null || phantom === void 0 ? void 0 : phantom.isConnected) || (phantom === null || phantom === void 0 ? void 0 : phantom.isLoading) || that.loginInProgress || that.autoLoginInProgress || that.pendingLogin) {\n return;\n }\n // Don't clobber a session owned by MWA on Seeker. MWA marks the\n // auth method as soon as login starts (see solana-mobile-wallet-provider),\n // and clears it on logout, so this guard is correct in both\n // steady-state and post-logout cases.\n try {\n if (getPlatform().storage.getItem('bounded_last_auth_method') === 'mobile-wallet-adapter') {\n return;\n }\n }\n catch (_b) { }\n // Need solana to be available AND connected for signing\n if (!solana || !solanaHook.isAvailable || !solana.connected) {\n return;\n }\n // Find Solana address\n const solAddress = (_a = phantom.addresses) === null || _a === void 0 ? void 0 : _a.find((addr) => addr.addressType === AddressType.solana);\n if (!solAddress) {\n return;\n }\n const publicKey = solAddress.address;\n // Check if we already have a valid session for this address\n const existingSession = await SessionManager.getSession();\n if (existingSession && existingSession.address === publicKey) {\n // Already have a valid session, just set user\n setCurrentUser({ provider: that, address: publicKey });\n return;\n }\n // No valid session - try to create one automatically\n that.autoLoginInProgress = true;\n setAuthLoading(true);\n try {\n const nonce = await genAuthNonce();\n const messageText = await genSolanaMessage(publicKey, nonce);\n // signMessage returns { signature: Uint8Array, publicKey: string }\n const signResult = await solana.signMessage(messageText);\n // Convert Uint8Array signature to base64 string\n const signatureBytes = signResult.signature;\n const signature = Buffer.from(signatureBytes).toString('base64');\n const createSessionResult = await createSessionWithSignature(publicKey, messageText, signature);\n // Pre-write guard: MWA may have started a login while we were\n // in flight. If MWA owns the auth method now, abort before we\n // overwrite its session (or its in-flight session).\n try {\n if (getPlatform().storage.getItem('bounded_last_auth_method') === 'mobile-wallet-adapter') {\n return;\n }\n }\n catch (_c) { }\n await SessionManager.storeSession(publicKey, createSessionResult.accessToken, createSessionResult.idToken, createSessionResult.refreshToken);\n // Mark auth method so clearIncompatibleSession() doesn't wipe this session\n try {\n getPlatform().storage.setItem('bounded_last_auth_method', 'phantom');\n }\n catch (_d) { }\n setCurrentUser({ provider: that, address: publicKey });\n }\n catch (error) {\n // User rejected signing or other error - disconnect fully\n try {\n await disconnect();\n }\n catch (e) {\n // Ignore disconnect errors\n }\n }\n finally {\n that.autoLoginInProgress = false;\n setAuthLoading(false);\n }\n };\n autoCreateSession();\n }, [phantom === null || phantom === void 0 ? void 0 : phantom.isConnected, phantom === null || phantom === void 0 ? void 0 : phantom.isLoading, phantom === null || phantom === void 0 ? void 0 : phantom.addresses, solana, solana === null || solana === void 0 ? void 0 : solana.connected, solanaHook.isAvailable, disconnect]);\n // Suppress SDK modal if it opens during custom modal login flow\n React.useEffect(() => {\n if (modal.isOpened && that.loginInProgress) {\n modal.close();\n }\n }, [modal.isOpened]);\n // Handle modal close without connection\n React.useEffect(() => {\n // Detect when modal was open and is now closed\n if (prevModalOpen.current && !showWalletModal && !modal.isOpened) {\n if (walletClickedRef.current) {\n // Modal closed because user selected a wallet — don't reject\n walletClickedRef.current = false;\n }\n else if (that.loginInProgress && that.pendingLogin && !(phantom === null || phantom === void 0 ? void 0 : phantom.isConnected)) {\n // User dismissed modal without connecting\n that.pendingLogin.reject(new Error('User cancelled login'));\n that.pendingLogin = null;\n that.loginInProgress = false;\n }\n }\n prevModalOpen.current = showWalletModal || modal.isOpened;\n }, [showWalletModal, modal.isOpened, phantom === null || phantom === void 0 ? void 0 : phantom.isConnected]);\n // Handle connection errors\n React.useEffect(() => {\n if (connectError && that.pendingLogin) {\n that.pendingLogin.reject(connectError);\n that.pendingLogin = null;\n that.loginInProgress = false;\n }\n }, [connectError]);\n // Handle connection success\n React.useEffect(() => {\n const handleConnectionSuccess = async () => {\n var _a;\n // All conditions must be met for login to proceed\n if (!(phantom === null || phantom === void 0 ? void 0 : phantom.isConnected) || !((_a = phantom === null || phantom === void 0 ? void 0 : phantom.addresses) === null || _a === void 0 ? void 0 : _a.length) || !that.pendingLogin || !that.loginInProgress) {\n return;\n }\n // Solana must be available AND connected for signing\n // If not ready yet, just return - this effect will re-run when solana.connected changes\n if (!solana || !solanaHook.isAvailable || !solana.connected) {\n return;\n }\n try {\n // Immediately set loginInProgress to false to prevent double execution\n // if the effect runs again before async operations complete\n that.loginInProgress = false;\n // Find Solana address\n const solAddress = phantom.addresses.find((addr) => addr.addressType === AddressType.solana);\n if (!solAddress) {\n that.pendingLogin.reject(new Error('No Solana address returned'));\n that.pendingLogin = null;\n return;\n }\n const publicKey = solAddress.address;\n // Check if we already have a valid session\n const existingSession = await SessionManager.getSession();\n if (existingSession && existingSession.address === publicKey) {\n const user = { provider: that, address: publicKey };\n setCurrentUser(user);\n that.pendingLogin.resolve(user);\n that.pendingLogin = null;\n return;\n }\n // Create new session with signature\n const nonce = await genAuthNonce();\n const messageText = await genSolanaMessage(publicKey, nonce);\n // signMessage returns { signature: Uint8Array, publicKey: string }\n const signResult = await solana.signMessage(messageText);\n // Convert Uint8Array signature to base64 string\n const signatureBytes = signResult.signature;\n const signature = Buffer.from(signatureBytes).toString('base64');\n const createSessionResult = await createSessionWithSignature(publicKey, messageText, signature);\n await SessionManager.storeSession(publicKey, createSessionResult.accessToken, createSessionResult.idToken, createSessionResult.refreshToken);\n // Mark auth method so clearIncompatibleSession() doesn't wipe this session\n try {\n getPlatform().storage.setItem('bounded_last_auth_method', 'phantom');\n }\n catch (_b) { }\n const user = { provider: that, address: publicKey };\n setCurrentUser(user);\n that.pendingLogin.resolve(user);\n that.pendingLogin = null;\n }\n catch (error) {\n // Disconnect Phantom since login failed - don't leave in half-connected state\n try {\n await disconnect();\n }\n catch (e) {\n // Ignore disconnect errors\n }\n if (that.pendingLogin) {\n that.pendingLogin.reject(error);\n that.pendingLogin = null;\n that.loginInProgress = false;\n }\n }\n };\n handleConnectionSuccess();\n }, [phantom === null || phantom === void 0 ? void 0 : phantom.isConnected, phantom === null || phantom === void 0 ? void 0 : phantom.addresses, solana, solana === null || solana === void 0 ? void 0 : solana.connected, solanaHook.isAvailable]);\n // --- Custom wallet modal handlers ---\n const handleWalletClick = async (options) => {\n walletClickedRef.current = true;\n setShowWalletModal(false);\n // Cross-origin preview iframe + deeplink: the old approach navigated\n // the top frame to this URL, but in a TWA that lands out-of-scope and\n // shows a chrome-error (\"bad page\"). Instead, open the app TOP-LEVEL\n // in a new tab where the wallet connect works natively; the session\n // reflects back into this iframe (see openTopLevelForConnect /\n // awaitTopLevelConnect).\n if (shouldBreakOutOfIframe(options === null || options === void 0 ? void 0 : options.provider)) {\n if (openTopLevelForConnect()) {\n that.awaitTopLevelConnect();\n return;\n }\n // Popup blocked — fall through to the original deeplink path\n // (better a broken-ish button than a silently-dead one).\n }\n try {\n if (options === null || options === void 0 ? void 0 : options.walletId) {\n await connect({ provider: 'injected', walletId: options.walletId });\n }\n else if (options === null || options === void 0 ? void 0 : options.provider) {\n await connect({ provider: options.provider });\n }\n else {\n await connect();\n }\n }\n catch (err) {\n // connectError effect handles this\n }\n };\n const handleMobileWalletClick = async () => {\n that.loginInProgress = false;\n walletClickedRef.current = true;\n setShowWalletModal(false);\n // Cross-origin preview iframe (e.g. poof.new build page) on mobile:\n // MWA can't run here (Chrome denies Local Network Access to sub-frames,\n // and its localhost handshake fails). Open the app top-level for the\n // connect; the session reflects back into this iframe.\n if (isInIframe() && openTopLevelForConnect()) {\n that.awaitTopLevelConnect();\n return;\n }\n // LNA permission is handled by @solana-mobile/wallet-standard-mobile\n // >=0.5.0's checkLocalNetworkAccessPermission (three-stage UX, fired\n // before the localhost reflector opens). No homemade pre-warm needed.\n if (that.onSwitchToMWA) {\n try {\n const mwaProvider = await that.onSwitchToMWA();\n const user = await mwaProvider.login();\n if (that.pendingLogin && user) {\n that.pendingLogin.resolve(user);\n that.pendingLogin = null;\n }\n else if (that.pendingLogin) {\n that.pendingLogin.reject(new Error('User cancelled login'));\n that.pendingLogin = null;\n }\n }\n catch (error) {\n if (that.pendingLogin) {\n that.pendingLogin.reject(error);\n that.pendingLogin = null;\n }\n }\n }\n };\n const handleCloseModal = () => {\n setShowWalletModal(false);\n if (that.loginInProgress && that.pendingLogin && !(phantom === null || phantom === void 0 ? void 0 : phantom.isConnected)) {\n that.pendingLogin.reject(new Error('User cancelled login'));\n that.pendingLogin = null;\n that.loginInProgress = false;\n }\n };\n // --- Custom wallet modal ---\n if (!showWalletModal) {\n return null;\n }\n const effectiveTheme = (_c = (_b = (_a = that.loginOverrides) === null || _a === void 0 ? void 0 : _a.theme) !== null && _b !== void 0 ? _b : that.config.theme) !== null && _c !== void 0 ? _c : 'dark';\n const isLight = effectiveTheme === 'light';\n const bgColor = isLight ? '#FFFFFF' : '#111113';\n const cardBorder = isLight ? '1px solid rgba(0,0,0,0.08)' : '1px solid rgba(255,255,255,0.07)';\n const textColor = isLight ? '#0f0f0f' : '#f5f5f5';\n const subTextColor = isLight ? 'rgba(0,0,0,0.45)' : 'rgba(255,255,255,0.4)';\n const btnBg = isLight ? 'rgba(0,0,0,0.04)' : 'rgba(255,255,255,0.05)';\n const btnHoverBg = isLight ? 'rgba(0,0,0,0.08)' : 'rgba(255,255,255,0.09)';\n const btnBorder = isLight ? '1px solid rgba(0,0,0,0.10)' : '1px solid rgba(255,255,255,0.09)';\n const fontFamily = '\"SF Pro Text\",-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,sans-serif';\n const buttonStyle = (id) => ({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n gap: '10px',\n width: '100%',\n height: '52px',\n padding: '0 20px',\n border: btnBorder,\n borderRadius: '12px',\n backgroundColor: hoveredBtn === id ? btnHoverBg : btnBg,\n color: textColor,\n fontFamily,\n fontSize: '14px',\n fontWeight: '500',\n lineHeight: '1',\n letterSpacing: '0',\n cursor: 'pointer',\n transition: 'background-color 0.15s, border-color 0.15s',\n boxSizing: 'border-box',\n });\n const walletButtons = [];\n // Google OAuth button — shown when 'google' is in resolved providers\n if (sdkProviders.includes('google')) {\n walletButtons.push(React.createElement('button', {\n key: 'google-oauth',\n style: buttonStyle('google-oauth'),\n onClick: () => handleWalletClick({ provider: 'google' }),\n onMouseEnter: () => setHoveredBtn('google-oauth'),\n onMouseLeave: () => setHoveredBtn(null),\n }, React.createElement('svg', {\n width: '18', height: '18', viewBox: '0 0 24 24',\n style: { flexShrink: '0' },\n }, React.createElement('path', {\n d: 'M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z',\n fill: '#4285F4',\n }), React.createElement('path', {\n d: 'M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z',\n fill: '#34A853',\n }), React.createElement('path', {\n d: 'M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18A11.96 11.96 0 0 0 1 12c0 1.94.46 3.77 1.18 5.41l3.66-2.84z',\n fill: '#FBBC05',\n }), React.createElement('path', {\n d: 'M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z',\n fill: '#EA4335',\n })), 'Continue with Google'));\n }\n // Apple OAuth button — shown when 'apple' is in resolved providers\n if (sdkProviders.includes('apple')) {\n walletButtons.push(React.createElement('button', {\n key: 'apple-oauth',\n style: buttonStyle('apple-oauth'),\n onClick: () => handleWalletClick({ provider: 'apple' }),\n onMouseEnter: () => setHoveredBtn('apple-oauth'),\n onMouseLeave: () => setHoveredBtn(null),\n }, React.createElement('svg', {\n width: '18', height: '18', viewBox: '0 0 24 24',\n fill: textColor,\n style: { flexShrink: '0' },\n }, React.createElement('path', {\n d: 'M17.05 20.28c-.98.95-2.05.88-3.08.4-1.09-.5-2.08-.48-3.24 0-1.44.62-2.2.44-3.06-.4C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.09zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z',\n })), 'Continue with Apple'));\n }\n // Fallback icon for Phantom — uses the official SVG path from @phantom/wallet-sdk-ui\n // (SDK intentionally leaves wallet.icon empty for Phantom, expecting its own UI to render it)\n const PHANTOM_ICON = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyOCAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIHJ4PSI2IiBmaWxsPSIjQUI5RkYyIi8+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNCw0KSI+PHBhdGggZD0iTTIuMzY2NTUgMTguMzI3MUM0LjkxODcxIDE4LjMyNzEgNi44MzY3IDE2LjEwNzYgNy45ODEzMSAxNC4zNTM3QzcuODQyMSAxNC43NDE3IDcuNzY0NzYgMTUuMTI5OCA3Ljc2NDc2IDE1LjUwMjNDNy43NjQ3NiAxNi41MjY3IDguMzUyNTMgMTcuMjU2MiA5LjUxMjYgMTcuMjU2MkMxMS4xMDU4IDE3LjI1NjIgMTIuODA3MiAxNS44NTkzIDEzLjY4ODkgMTQuMzUzN0MxMy42MjcgMTQuNTcxIDEzLjU5NjEgMTQuNzcyOCAxMy41OTYxIDE0Ljk1OUMxMy41OTYxIDE1LjY3MyAxMy45OTgyIDE2LjEyMzEgMTQuODE4IDE2LjEyMzFDMTcuNDAxMSAxNi4xMjMxIDE5Ljk5OTcgMTEuNTQ0NCAxOS45OTk3IDcuNTM5ODdDMTkuOTk5NyA0LjQyMDExIDE4LjQyMiAxLjY3Mjg1IDE0LjQ2MjIgMS42NzI4NUM3LjUwMTgxIDEuNjcyODUgMCAxMC4xNzg1IDAgMTUuNjczQzAgMTcuODMwNSAxLjE2MDA3IDE4LjMyNzEgMi4zNjY1NSAxOC4zMjcxWk0xMi4wNjQ4IDcuMTk4NDFDMTIuMDY0OCA2LjQyMjM1IDEyLjQ5NzkgNS44NzkxIDEzLjEzMiA1Ljg3OTFDMTMuNzUwNyA1Ljg3OTEgMTQuMTgzOCA2LjQyMjM1IDE0LjE4MzggNy4xOTg0MUMxNC4xODM4IDcuOTc0NDcgMTMuNzUwNyA4LjUzMzIzIDEzLjEzMiA4LjUzMzIzQzEyLjQ5NzkgOC41MzMyMyAxMi4wNjQ4IDcuOTc0NDcgMTIuMDY0OCA3LjE5ODQxWk0xNS4zNzQ4IDcuMTk4NDFDMTUuMzc0OCA2LjQyMjM1IDE1LjgwNzkgNS44NzkxIDE2LjQ0MjEgNS44NzkxQzE3LjA2MDggNS44NzkxIDE3LjQ5MzkgNi40MjIzNSAxNy40OTM5IDcuMTk4NDFDMTcuNDkzOSA3Ljk3NDQ3IDE3LjA2MDggOC41MzMyMyAxNi40NDIxIDguNTMzMjNDMTUuODA3OSA4LjUzMzIzIDE1LjM3NDggNy45NzQ0NyAxNS4zNzQ4IDcuMTk4NDFaIiBmaWxsPSJ3aGl0ZSIvPjwvZz48L3N2Zz4=';\n // Show all discovered injected wallets (Phantom, Solflare, Jupiter, etc.)\n if (sdkProviders.includes('injected')) {\n for (const wallet of discoveredWallets) {\n const walletKey = `wallet-${wallet.id}`;\n const iconSrc = wallet.icon || (wallet.id === 'phantom' ? PHANTOM_ICON : null);\n walletButtons.push(React.createElement('button', {\n key: walletKey,\n style: buttonStyle(walletKey),\n onClick: () => handleWalletClick({ walletId: wallet.id }),\n onMouseEnter: () => setHoveredBtn(walletKey),\n onMouseLeave: () => setHoveredBtn(null),\n }, iconSrc\n ? React.createElement('img', {\n src: iconSrc,\n alt: wallet.name,\n style: { width: '28px', height: '28px', borderRadius: '6px' },\n })\n : null, wallet.name));\n }\n }\n if (showDeeplink) {\n walletButtons.push(React.createElement('button', {\n key: 'phantom-deeplink',\n style: buttonStyle('phantom-deeplink'),\n onClick: () => handleWalletClick({ provider: 'deeplink' }),\n onMouseEnter: () => setHoveredBtn('phantom-deeplink'),\n onMouseLeave: () => setHoveredBtn(null),\n }, React.createElement('img', {\n src: PHANTOM_ICON,\n alt: 'Phantom',\n style: { width: '28px', height: '28px', borderRadius: '6px' },\n }), 'Open Phantom app'));\n }\n // Mobile Wallet Adapter button — shown on Android when MWA callback is available\n // and no injected wallet is present (hides button inside Phantom/Solflare/etc. in-app browsers).\n const isAndroid = detectAndroid();\n if (isAndroid && that.onSwitchToMWA && !hasInjectedWallet) {\n walletButtons.push(React.createElement('button', {\n key: 'mobile-wallet',\n style: buttonStyle('mobile-wallet'),\n onClick: handleMobileWalletClick,\n onMouseEnter: () => setHoveredBtn('mobile-wallet'),\n onMouseLeave: () => setHoveredBtn(null),\n }, React.createElement('svg', {\n width: '18', height: '18', viewBox: '0 0 24 24', fill: 'none',\n style: { flexShrink: '0', opacity: '0.85' },\n }, \n // Phone outline\n React.createElement('rect', {\n x: '5', y: '2', width: '14', height: '20', rx: '2',\n stroke: textColor, strokeWidth: '2', fill: 'none',\n }), \n // Screen line\n React.createElement('line', {\n x1: '5', y1: '6', x2: '19', y2: '6',\n stroke: textColor, strokeWidth: '1.5',\n }), \n // Wallet/shield checkmark\n React.createElement('path', {\n d: 'M9.5 12.5l2 2 3.5-3.5',\n stroke: textColor, strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round', fill: 'none',\n })), 'Connect Mobile Wallet'));\n }\n const mainButtons = walletButtons;\n // Render custom modal\n return React.createElement('div', {\n // Overlay\n style: {\n position: 'fixed',\n top: '0',\n left: '0',\n right: '0',\n bottom: '0',\n backgroundColor: isLight ? 'rgba(0,0,0,0.35)' : 'rgba(0,0,0,0.65)',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n padding: '16px',\n boxSizing: 'border-box',\n overflowY: 'auto',\n zIndex: 2147483647,\n pointerEvents: 'auto',\n backdropFilter: 'blur(4px)',\n WebkitBackdropFilter: 'blur(4px)',\n },\n onClick: (e) => {\n if (e.target === e.currentTarget)\n handleCloseModal();\n },\n onMouseDown: (e) => {\n e.stopPropagation();\n },\n onPointerDown: (e) => {\n e.stopPropagation();\n },\n }, \n // Card\n React.createElement('div', {\n style: {\n backgroundColor: bgColor,\n border: cardBorder,\n borderRadius: '20px',\n width: '100%',\n maxWidth: '380px',\n maxHeight: '100%',\n overflowY: 'auto',\n padding: '28px 24px 24px',\n position: 'relative',\n boxShadow: isLight\n ? '0 8px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06)'\n : '0 8px 40px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.3)',\n pointerEvents: 'auto',\n boxSizing: 'border-box',\n },\n onMouseDown: (e) => {\n e.stopPropagation();\n },\n onPointerDown: (e) => {\n e.stopPropagation();\n },\n }, \n // Close button\n React.createElement('button', {\n onClick: handleCloseModal,\n style: {\n position: 'absolute',\n top: '14px',\n right: '14px',\n background: isLight ? 'rgba(0,0,0,0.05)' : 'rgba(255,255,255,0.07)',\n border: isLight ? '1px solid rgba(0,0,0,0.08)' : '1px solid rgba(255,255,255,0.08)',\n borderRadius: '50%',\n width: '28px',\n height: '28px',\n cursor: 'pointer',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n padding: '0',\n flexShrink: '0',\n },\n }, React.createElement('svg', {\n width: '12', height: '12', viewBox: '0 0 12 12', fill: 'none',\n }, React.createElement('path', {\n d: 'M11 1L1 11M1 1l10 10',\n stroke: subTextColor, strokeWidth: '1.75', strokeLinecap: 'round',\n }))), \n // App icon (if provided)\n that.config.appIcon ? React.createElement('div', {\n style: { display: 'flex', justifyContent: 'center', marginBottom: '16px' },\n }, React.createElement('img', {\n src: that.config.appIcon,\n alt: that.config.appName || 'App',\n style: { width: '44px', height: '44px', borderRadius: '10px' },\n })) : null, \n // Title\n React.createElement('div', {\n style: {\n color: textColor,\n fontFamily,\n fontSize: '17px',\n fontWeight: '600',\n textAlign: 'center',\n marginBottom: '6px',\n letterSpacing: '-0.2px',\n },\n }, (_f = (_e = (_d = that.loginOverrides) === null || _d === void 0 ? void 0 : _d.modalTitle) !== null && _e !== void 0 ? _e : that.config.modalTitle) !== null && _f !== void 0 ? _f : (that.config.appName ? `Log in to ${that.config.appName}` : 'Log in to your account')), \n // Subtitle\n React.createElement('div', {\n style: {\n color: subTextColor,\n fontFamily,\n fontSize: '13px',\n fontWeight: '400',\n textAlign: 'center',\n marginBottom: '24px',\n lineHeight: '1.4',\n },\n }, (_j = (_h = (_g = that.loginOverrides) === null || _g === void 0 ? void 0 : _g.modalSubtitle) !== null && _h !== void 0 ? _h : that.config.modalSubtitle) !== null && _j !== void 0 ? _j : 'Choose how you\\'d like to continue'), \n // Wallet / social login buttons\n React.createElement('div', {\n style: {\n display: 'flex',\n flexDirection: 'column',\n gap: '8px',\n },\n }, ...mainButtons)));\n };\n // Wrapper component with PhantomProvider\n const PhantomProviderWrapper = () => {\n // Build SDK config\n const sdkConfig = React.useMemo(() => {\n var _a;\n const config = {\n providers: sdkProviders,\n addressTypes: [AddressType.solana],\n autoConnect: (_a = that.config.autoConnect) !== null && _a !== void 0 ? _a : true,\n };\n if (that.config.appId) {\n config.appId = that.config.appId;\n }\n return config;\n }, []);\n const theme = that.config.theme === 'light' ? lightTheme : darkTheme;\n return React.createElement(ReactPhantomProvider, {\n config: sdkConfig,\n theme: theme,\n appName: that.config.appName || 'App',\n appIcon: that.config.appIcon,\n }, React.createElement(PhantomHooksComponent));\n };\n this.root = ReactDOM.createRoot(this.containerElement);\n this.root.render(React.createElement(PhantomProviderWrapper));\n }\n async ensureReady() {\n // Wait for async initialization to complete first\n if (this.initPromise) {\n await this.initPromise;\n }\n // Wait for SDK to be ready\n await new Promise((resolve) => {\n const check = () => {\n var _a;\n if ((_a = this.phantomMethods) === null || _a === void 0 ? void 0 : _a.ready) {\n resolve();\n }\n else {\n setTimeout(check, 100);\n }\n };\n check();\n });\n }\n async ensureSolanaReady() {\n var _a;\n await this.ensureReady();\n // If connected at the Phantom level, ensure solana methods are ready\n if ((_a = this.phantomMethods) === null || _a === void 0 ? void 0 : _a.isConnected) {\n const timeoutMs = 10000; // 10 second timeout\n const startTime = Date.now();\n // First, wait for solana to be available\n await new Promise((resolve, reject) => {\n const check = () => {\n var _a, _b;\n if ((_b = (_a = this.phantomMethods) === null || _a === void 0 ? void 0 : _a.solana) === null || _b === void 0 ? void 0 : _b.isAvailable) {\n resolve();\n }\n else if (Date.now() - startTime > timeoutMs) {\n reject(new Error('Timeout waiting for Solana provider to be available'));\n }\n else {\n setTimeout(check, 100);\n }\n };\n check();\n });\n // Now check if the solana provider is connected, if not try to reconnect\n // Note: We check our wrapper's `connected` which may be stale, but this is just\n // an optimization to skip reconnect if we know we're already connected.\n // The actual signing methods use the SDK's bound methods which check live state.\n if (!this.phantomMethods.solana.connected) {\n console.log('Solana provider not connected, attempting to reconnect...');\n try {\n // onlyIfTrusted: true means it will reconnect silently if previously approved\n // If not trusted, it will throw and we'll catch it below\n await this.phantomMethods.solana.connect({ onlyIfTrusted: true });\n console.log('Solana provider reconnected successfully');\n }\n catch (error) {\n // If onlyIfTrusted fails, the user may need to re-approve via modal\n console.error('Failed to reconnect solana provider (silent reconnect failed):', error === null || error === void 0 ? void 0 : error.message);\n throw new Error('Failed to reconnect Solana provider. Please try logging in again.');\n }\n }\n // Note: We don't do a final connected check here because our wrapper's `connected`\n // is a snapshot that won't update until React re-renders. If connect() succeeded,\n // the SDK is connected and signing will work.\n }\n }\n /**\n * Get the list of available (configured) providers for this wallet.\n */\n getAvailableProviders() {\n return [...this.resolvedProviders];\n }\n /**\n * Login using the Phantom connect modal. A custom modal is rendered with the\n * discovered wallets and configured social providers instead of the SDK's\n * built-in modal.\n */\n async login() {\n var _a, _b;\n await this.ensureReady();\n // Check if already connected with valid session\n if (((_a = this.phantomMethods) === null || _a === void 0 ? void 0 : _a.isConnected) && ((_b = this.phantomMethods.addresses) === null || _b === void 0 ? void 0 : _b.length) > 0) {\n const solAddress = this.phantomMethods.addresses.find((addr) => addr.addressType === phantomReactSdk.AddressType.solana);\n if (solAddress) {\n const session = await SessionManager.getSession();\n if (session && session.address === solAddress.address) {\n const user = { provider: this, address: solAddress.address };\n setCurrentUser(user);\n return user;\n }\n }\n }\n // If already pending, wait for it\n if (this.pendingLogin) {\n return new Promise((resolve, reject) => {\n this.pendingLogin.resolve = resolve;\n this.pendingLogin.reject = reject;\n });\n }\n const loginPromise = new Promise((resolve, reject) => {\n this.pendingLogin = { resolve, reject };\n this.loginInProgress = true;\n // Always use our custom wallet modal\n this.phantomMethods.showCustomModal();\n // Safety timeout\n setTimeout(() => {\n if (this.pendingLogin) {\n this.pendingLogin.reject(new Error('Login timed out'));\n this.pendingLogin = null;\n this.loginInProgress = false;\n }\n }, 180000);\n });\n return loginPromise.finally(() => {\n this.loginOverrides = null;\n });\n }\n async restoreSession() {\n await this.ensureReady();\n const session = await SessionManager.getSession();\n if (session) {\n return { provider: this, address: session.address };\n }\n return null;\n }\n // When connect is delegated to a top-level tab (openTopLevelForConnect — used\n // for the cross-origin preview iframe on mobile, where MWA can't run), the\n // actual connect happens in that tab and writes the session to same-origin\n // storage. This watches for that session to appear and resolves the in-flight\n // login() with it. It listens for `storage` events and visibility regain (the\n // user returning from the tab), with a polling fallback and a hard timeout.\n awaitTopLevelConnect() {\n if (typeof window === 'undefined')\n return;\n let done = false;\n const cleanup = () => {\n clearInterval(poll);\n clearTimeout(timeout);\n window.removeEventListener('storage', onChange);\n document.removeEventListener('visibilitychange', onVisible);\n };\n const tryResolve = async () => {\n if (done)\n return;\n try {\n const user = await this.restoreSession();\n if (user && this.pendingLogin) {\n done = true;\n cleanup();\n this.pendingLogin.resolve(user);\n this.pendingLogin = null;\n this.loginInProgress = false;\n }\n }\n catch (_a) {\n // not ready yet — keep waiting\n }\n };\n const onChange = () => { void tryResolve(); };\n const onVisible = () => { if (document.visibilityState === 'visible')\n void tryResolve(); };\n const poll = setInterval(() => { void tryResolve(); }, 1500);\n const timeout = setTimeout(() => {\n cleanup();\n if (!done && this.pendingLogin) {\n this.pendingLogin.reject(new Error('Wallet connection timed out'));\n this.pendingLogin = null;\n this.loginInProgress = false;\n }\n }, 180000);\n window.addEventListener('storage', onChange);\n document.addEventListener('visibilitychange', onVisible);\n }\n async address() {\n var _a, _b, _c, _d;\n await this.ensureReady();\n if (!((_a = this.phantomMethods) === null || _a === void 0 ? void 0 : _a.isConnected) || !((_b = this.phantomMethods.addresses) === null || _b === void 0 ? void 0 : _b.length)) {\n // Try to connect first\n const user = await this.login();\n if (!user)\n return null;\n }\n const solAddress = (_d = (_c = this.phantomMethods) === null || _c === void 0 ? void 0 : _c.addresses) === null || _d === void 0 ? void 0 : _d.find((addr) => addr.addressType === phantomReactSdk.AddressType.solana);\n return (solAddress === null || solAddress === void 0 ? void 0 : solAddress.address) || null;\n }\n async runTransaction(_evmTransactionData, solTransactionData, options) {\n var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;\n if (!solTransactionData) {\n throw new Error(\"Solana transaction data is required for Phantom wallet\");\n }\n try {\n await this.ensureSolanaReady();\n }\n catch (error) {\n console.error('Solana provider reconnection failed, logging out:', error.message);\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n if (!((_a = this.phantomMethods) === null || _a === void 0 ? void 0 : _a.isConnected)) {\n const user = await this.login();\n if (!user) {\n throw new Error('Failed to connect wallet');\n }\n try {\n await this.ensureSolanaReady();\n }\n catch (error) {\n console.error('Solana provider reconnection failed after login, logging out:', error.message);\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n }\n if (!((_b = this.phantomMethods) === null || _b === void 0 ? void 0 : _b.solana)) {\n throw new Error('Solana signing not available');\n }\n const rpcUrl = this.getRpcUrl(solTransactionData.network);\n const connection = new Connection(rpcUrl, 'confirmed');\n const isSurfnet = rpcUrl === SURFNET_RPC_URL;\n try {\n const remainingAccounts = convertRemainingAccounts(solTransactionData.txArgs[0].remainingAccounts);\n const app_id = solTransactionData.appId;\n if (!app_id) {\n throw new Error(\"App ID is required\");\n }\n // Get address\n const solAddress = this.phantomMethods.addresses.find((addr) => addr.addressType === phantomReactSdk.AddressType.solana);\n if (!solAddress) {\n throw new Error('Failed to get Solana address');\n }\n const publicKey = new PublicKey(solAddress.address);\n // Create wallet adapter using SDK methods\n const solana = this.phantomMethods.solana;\n const walletAdapter = {\n publicKey,\n signTransaction: async (tx) => {\n return await solana.signTransaction(tx);\n },\n signAllTransactions: async (txs) => {\n return await solana.signAllTransactions(txs);\n }\n };\n const anchorProvider = new anchor.AnchorProvider(connection, walletAdapter, anchor.AnchorProvider.defaultOptions());\n const finalDeduped = [];\n for (const acc of remainingAccounts) {\n const existing = finalDeduped.find((d) => d.pubkey.equals(acc.pubkey));\n if (existing) {\n existing.isSigner = existing.isSigner || acc.isSigner;\n existing.isWritable = existing.isWritable || acc.isWritable;\n }\n else {\n finalDeduped.push(acc);\n }\n }\n // When the server has co-signed a transaction (CPI attestation),\n // deserialize it and just add the wallet signature instead of\n // building from components.\n let tx;\n if (solTransactionData.signedTransaction) {\n tx = VersionedTransaction.deserialize(Buffer.from(solTransactionData.signedTransaction, 'base64'));\n }\n else {\n const result = await buildSetDocumentsTransaction(connection, solTransactionData.txArgs[0].idl, anchorProvider, publicKey, {\n app_id,\n documents: solTransactionData.txArgs[0].setDocumentData,\n delete_paths: solTransactionData.txArgs[0].deletePaths,\n txData: solTransactionData.txArgs[0].txData\n }, finalDeduped, solTransactionData.lutKey, solTransactionData.preInstructions, false, solTransactionData.additionalLutAddresses);\n tx = result.tx;\n }\n if ((options === null || options === void 0 ? void 0 : options.shouldSubmitTx) === false) {\n const signedTx = await walletAdapter.signTransaction(tx);\n return {\n signedTransaction: signedTx,\n blockNumber: 0,\n gasUsed: \"0\",\n data: \"\"\n };\n }\n // Keep manual submission on surfnet, use Phantom's recommended signAndSend for other networks.\n if (isSurfnet) {\n const signedTx = await walletAdapter.signTransaction(tx);\n const { signature, txInfo } = await this.submitSignedTransaction(signedTx, connection);\n return {\n transactionSignature: signature,\n blockNumber: (txInfo === null || txInfo === void 0 ? void 0 : txInfo.slot) || 0,\n gasUsed: ((_c = txInfo === null || txInfo === void 0 ? void 0 : txInfo.meta) === null || _c === void 0 ? void 0 : _c.fee.toString()) || '0',\n data: txInfo === null || txInfo === void 0 ? void 0 : txInfo.meta,\n };\n }\n const signature = await this.signAndSendViaPhantom(tx);\n const txInfo = await confirmAndCheckTransaction(connection, signature);\n return {\n transactionSignature: signature,\n blockNumber: (txInfo === null || txInfo === void 0 ? void 0 : txInfo.slot) || 0,\n gasUsed: ((_d = txInfo === null || txInfo === void 0 ? void 0 : txInfo.meta) === null || _d === void 0 ? void 0 : _d.fee.toString()) || '0',\n data: txInfo === null || txInfo === void 0 ? void 0 : txInfo.meta,\n };\n }\n catch (error) {\n // Check if this is a connection error - if so, log out\n if (((_e = error === null || error === void 0 ? void 0 : error.message) === null || _e === void 0 ? void 0 : _e.includes('not connected')) || ((_f = error === null || error === void 0 ? void 0 : error.message) === null || _f === void 0 ? void 0 : _f.includes('connect first'))) {\n console.error('Solana provider connection lost during transaction, logging out');\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n const isUserRejection = (error === null || error === void 0 ? void 0 : error.code) === 4001 ||\n ((_g = error === null || error === void 0 ? void 0 : error.message) === null || _g === void 0 ? void 0 : _g.toLowerCase().includes('user rejected')) ||\n ((_h = error === null || error === void 0 ? void 0 : error.message) === null || _h === void 0 ? void 0 : _h.toLowerCase().includes('user denied')) ||\n ((_j = error === null || error === void 0 ? void 0 : error.message) === null || _j === void 0 ? void 0 : _j.toLowerCase().includes('user cancelled')) ||\n ((_k = error === null || error === void 0 ? void 0 : error.message) === null || _k === void 0 ? void 0 : _k.toLowerCase().includes('user canceled'));\n if (!isUserRejection) {\n console.error('Failed to execute transaction', error);\n }\n throw new Error(`Failed to execute transaction: ${error.message}`);\n }\n }\n /**\n * Signs a Solana transaction without submitting it.\n *\n * This method handles blockhash automatically if not set - you do NOT need to\n * set recentBlockhash on the transaction before calling this method.\n * The network/RPC URL is derived from the provider's configuration (set during initialization).\n *\n * @param transaction - The transaction to sign (Transaction or VersionedTransaction)\n * @returns The signed transaction\n */\n async signTransaction(transaction) {\n var _a, _b, _c, _d;\n try {\n await this.ensureSolanaReady();\n }\n catch (error) {\n // Reconnection failed - log user out and throw\n console.error('Solana provider reconnection failed, logging out:', error.message);\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n if (!((_a = this.phantomMethods) === null || _a === void 0 ? void 0 : _a.isConnected)) {\n const user = await this.login();\n if (!user) {\n throw new Error('Failed to connect wallet');\n }\n try {\n await this.ensureSolanaReady();\n }\n catch (error) {\n console.error('Solana provider reconnection failed after login, logging out:', error.message);\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n }\n if (!((_b = this.phantomMethods) === null || _b === void 0 ? void 0 : _b.solana)) {\n throw new Error('Solana signing not available');\n }\n // Use duck typing instead of instanceof to handle multiple @solana/web3.js versions\n const isLegacyTransaction = 'recentBlockhash' in transaction && !('message' in transaction && 'staticAccountKeys' in transaction.message);\n // Ensure blockhash is set before signing\n if (isLegacyTransaction) {\n const legacyTx = transaction;\n if (!legacyTx.recentBlockhash) {\n const rpcUrl = this.getRpcUrl();\n const connection = new Connection(rpcUrl, 'confirmed');\n const { blockhash, lastValidBlockHeight } = await connection.getLatestBlockhash('confirmed');\n legacyTx.recentBlockhash = blockhash;\n legacyTx.lastValidBlockHeight = lastValidBlockHeight;\n }\n // Set feePayer if not already set\n if (!legacyTx.feePayer) {\n const solAddress = this.phantomMethods.addresses.find((addr) => addr.addressType === phantomReactSdk.AddressType.solana);\n if (solAddress) {\n legacyTx.feePayer = new PublicKey(solAddress.address);\n }\n }\n }\n else {\n // VersionedTransaction\n const versionedTx = transaction;\n if (!versionedTx.message.recentBlockhash) {\n const rpcUrl = this.getRpcUrl();\n const connection = new Connection(rpcUrl, 'confirmed');\n const { blockhash } = await connection.getLatestBlockhash('confirmed');\n versionedTx.message.recentBlockhash = blockhash;\n }\n }\n try {\n return await this.phantomMethods.solana.signTransaction(transaction);\n }\n catch (error) {\n // Check if this is a connection error - if so, log out\n if (((_c = error === null || error === void 0 ? void 0 : error.message) === null || _c === void 0 ? void 0 : _c.includes('not connected')) || ((_d = error === null || error === void 0 ? void 0 : error.message) === null || _d === void 0 ? void 0 : _d.includes('connect first'))) {\n console.error('Solana provider connection lost during signing, logging out');\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n throw new Error(`Failed to sign transaction: ${error.message}`);\n }\n }\n /**\n * Signs and submits a Solana transaction to the network.\n *\n * This method handles blockhash and transaction confirmation automatically - you do NOT need to\n * set recentBlockhash or lastValidBlockHeight on the transaction before calling this method.\n * The network/RPC URL is derived from the provider's configuration (set during initialization).\n *\n * @param transaction - The transaction to sign and submit (Transaction or VersionedTransaction)\n * @param feePayer - Optional fee payer public key. If not provided and the transaction doesn't\n * already have a feePayer set, the connected wallet address will be used.\n * Useful for co-signing scenarios where a different account pays the fees.\n * @returns The transaction signature\n */\n async signAndSubmitTransaction(transaction, feePayer) {\n var _a, _b, _c, _d, _e, _f, _g, _h;\n try {\n await this.ensureSolanaReady();\n }\n catch (error) {\n console.error('Solana provider reconnection failed, logging out:', error.message);\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n if (!((_a = this.phantomMethods) === null || _a === void 0 ? void 0 : _a.isConnected)) {\n const user = await this.login();\n if (!user) {\n throw new Error('Failed to connect wallet');\n }\n try {\n await this.ensureSolanaReady();\n }\n catch (error) {\n console.error('Solana provider reconnection failed after login, logging out:', error.message);\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n }\n if (!((_b = this.phantomMethods) === null || _b === void 0 ? void 0 : _b.solana)) {\n throw new Error('Solana signing not available');\n }\n const rpcUrl = this.getRpcUrl();\n const connection = new Connection(rpcUrl, 'confirmed');\n const isSurfnet = rpcUrl === SURFNET_RPC_URL;\n try {\n // Get fresh blockhash and set it on the transaction before signing\n const { blockhash, lastValidBlockHeight } = await connection.getLatestBlockhash('confirmed');\n // Use duck typing instead of instanceof to handle multiple @solana/web3.js versions\n const isLegacyTransaction = 'recentBlockhash' in transaction && !('message' in transaction && 'staticAccountKeys' in transaction.message);\n if (isLegacyTransaction) {\n const legacyTx = transaction;\n legacyTx.recentBlockhash = blockhash;\n legacyTx.lastValidBlockHeight = lastValidBlockHeight;\n // Set feePayer if not already set\n if (!legacyTx.feePayer) {\n if (feePayer) {\n legacyTx.feePayer = feePayer;\n }\n else {\n // Use connected wallet address as feePayer\n const solAddress = this.phantomMethods.addresses.find((addr) => addr.addressType === phantomReactSdk.AddressType.solana);\n if (solAddress) {\n legacyTx.feePayer = new PublicKey(solAddress.address);\n }\n }\n }\n }\n else {\n // VersionedTransaction\n const versionedTx = transaction;\n versionedTx.message.recentBlockhash = blockhash;\n // Note: VersionedTransaction feePayer is set in the message at creation time\n // and cannot be modified after creation\n }\n // Keep manual submission on surfnet, use Phantom's recommended signAndSend for other networks.\n if (isSurfnet) {\n const signedTx = await this.phantomMethods.solana.signTransaction(transaction);\n const { signature } = await this.submitSignedTransactionWithBlockhash(signedTx, connection, blockhash, lastValidBlockHeight);\n return signature;\n }\n const signature = await this.signAndSendViaPhantom(transaction);\n await confirmAndCheckTransaction(connection, signature);\n return signature;\n }\n catch (error) {\n // Check if this is a connection error - if so, log out\n if (((_c = error === null || error === void 0 ? void 0 : error.message) === null || _c === void 0 ? void 0 : _c.includes('not connected')) || ((_d = error === null || error === void 0 ? void 0 : error.message) === null || _d === void 0 ? void 0 : _d.includes('connect first'))) {\n console.error('Solana provider connection lost during transaction, logging out');\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n const isUserRejection = (error === null || error === void 0 ? void 0 : error.code) === 4001 ||\n ((_e = error === null || error === void 0 ? void 0 : error.message) === null || _e === void 0 ? void 0 : _e.toLowerCase().includes('user rejected')) ||\n ((_f = error === null || error === void 0 ? void 0 : error.message) === null || _f === void 0 ? void 0 : _f.toLowerCase().includes('user denied')) ||\n ((_g = error === null || error === void 0 ? void 0 : error.message) === null || _g === void 0 ? void 0 : _g.toLowerCase().includes('user cancelled')) ||\n ((_h = error === null || error === void 0 ? void 0 : error.message) === null || _h === void 0 ? void 0 : _h.toLowerCase().includes('user canceled'));\n if (!isUserRejection) {\n console.error('Failed to execute transaction', error);\n }\n throw new Error(`Failed to execute transaction: ${error.message}`);\n }\n }\n async signMessage(message) {\n var _a, _b, _c, _d, _e, _f, _g, _h;\n try {\n await this.ensureSolanaReady();\n }\n catch (error) {\n // Reconnection failed - log user out and throw\n console.error('Solana provider reconnection failed, logging out:', error.message);\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n if (!((_a = this.phantomMethods) === null || _a === void 0 ? void 0 : _a.isConnected)) {\n const user = await this.login();\n if (!user) {\n throw new Error('Failed to connect wallet');\n }\n try {\n await this.ensureSolanaReady();\n }\n catch (error) {\n console.error('Solana provider reconnection failed after login, logging out:', error.message);\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n }\n if (!((_b = this.phantomMethods) === null || _b === void 0 ? void 0 : _b.solana)) {\n throw new Error('Solana signing not available');\n }\n try {\n // signMessage returns { signature: Uint8Array, publicKey: string }\n const result = await this.phantomMethods.solana.signMessage(message);\n return Buffer.from(result.signature).toString('base64');\n }\n catch (error) {\n // Check if this is a connection error - if so, log out\n if (((_c = error === null || error === void 0 ? void 0 : error.message) === null || _c === void 0 ? void 0 : _c.includes('not connected')) || ((_d = error === null || error === void 0 ? void 0 : error.message) === null || _d === void 0 ? void 0 : _d.includes('connect first'))) {\n console.error('Solana provider connection lost during signing, logging out');\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n const isUserRejection = (error === null || error === void 0 ? void 0 : error.code) === 4001 ||\n ((_e = error === null || error === void 0 ? void 0 : error.message) === null || _e === void 0 ? void 0 : _e.toLowerCase().includes('user rejected')) ||\n ((_f = error === null || error === void 0 ? void 0 : error.message) === null || _f === void 0 ? void 0 : _f.toLowerCase().includes('user denied')) ||\n ((_g = error === null || error === void 0 ? void 0 : error.message) === null || _g === void 0 ? void 0 : _g.toLowerCase().includes('user cancelled')) ||\n ((_h = error === null || error === void 0 ? void 0 : error.message) === null || _h === void 0 ? void 0 : _h.toLowerCase().includes('user canceled'));\n if (!isUserRejection) {\n console.error('Failed to sign message', error);\n }\n throw new Error('Failed to sign message');\n }\n }\n async logout() {\n var _a;\n await this.ensureReady();\n try {\n if ((_a = this.phantomMethods) === null || _a === void 0 ? void 0 : _a.isConnected) {\n await this.phantomMethods.disconnect();\n }\n }\n catch (error) {\n console.error('Failed to disconnect from Phantom wallet', error);\n }\n // Always clear local state\n SessionManager.clearSession();\n setCurrentUser(null);\n }\n async getNativeMethods() {\n await this.ensureReady();\n return this.phantomMethods;\n }\n /* ----------------------------------------------------------- *\n * Private Helpers\n * ----------------------------------------------------------- */\n getRpcUrl(network) {\n return resolveSolanaRpcUrl(this.networkUrl, network !== null && network !== void 0 ? network : this.configuredNetwork, \"Phantom wallet Solana transaction\");\n }\n async signAndSendViaPhantom(transaction) {\n var _a, _b, _c;\n const result = await ((_b = (_a = this.phantomMethods) === null || _a === void 0 ? void 0 : _a.solana) === null || _b === void 0 ? void 0 : _b.signAndSendTransaction(transaction));\n const signature = (_c = result === null || result === void 0 ? void 0 : result.signature) !== null && _c !== void 0 ? _c : result === null || result === void 0 ? void 0 : result.hash;\n if (!signature) {\n throw new Error('Phantom did not return a transaction signature');\n }\n return signature;\n }\n async submitSignedTransaction(signedTx, connection) {\n // Get fresh blockhash for confirmation\n const { blockhash, lastValidBlockHeight } = await connection.getLatestBlockhash('confirmed');\n return this.submitSignedTransactionWithBlockhash(signedTx, connection, blockhash, lastValidBlockHeight);\n }\n async submitSignedTransactionWithBlockhash(signedTx, connection, blockhash, lastValidBlockHeight) {\n // Submit the transaction\n const signature = await connection.sendRawTransaction(signedTx.serialize(), {\n preflightCommitment: 'confirmed'\n });\n // Confirm using blockhash strategy (same as runTransaction)\n const confirmation = await connection.confirmTransaction({\n signature,\n blockhash,\n lastValidBlockHeight,\n }, 'confirmed');\n if (confirmation.value.err) {\n throw new Error(`Transaction failed: ${confirmation.value.err.toString()}`);\n }\n // Get transaction info\n const txInfo = await connection.getParsedTransaction(signature, {\n maxSupportedTransactionVersion: 0,\n commitment: 'confirmed'\n });\n return { signature, txInfo };\n }\n}\nPhantomWalletProvider.instance = null;\n","import { Buffer } from 'buffer';\n// `SessionManager` is the active-manager SELECTOR (call it to get the store):\n// WebSessionManager on web, ReactNativeSessionManager on RN. The native MWA login\n// path runs on RN (no DOM), so it MUST persist through the RN store — hardcoding\n// WebSessionManager here meant a successful authorize+sign then crashed at\n// storeSession (localStorage is undefined on RN).\nimport { getActiveSessionManager as SessionManager, createSessionWithSignature, genAuthNonce, genSolanaMessage, buildSetDocumentsTransaction, convertRemainingAccounts } from '@bounded-sh/core';\nimport { setCurrentUser, setAuthLoading } from '../../global';\nimport { getPlatform, detectAndroid } from '../../platform';\nimport { Connection, PublicKey, Transaction, VersionedMessage, VersionedTransaction } from '@solana/web3.js';\nimport * as anchor from '@coral-xyz/anchor';\nimport bs58 from 'bs58';\nimport { resolveSolanaRpcUrl, resolveSolanaWalletStandardChain, SURFNET_RPC_URL } from '../solana-rpc';\nimport { confirmAndCheckTransaction } from './transaction-utils';\n/**\n * Storage key for persisting the MWA auth_token across cold starts.\n * Holds JSON `{ token: string, address: string }`. Cleared by\n * `logout()`. Hydrated by the constructor on native so cold-start\n * doesn't force the user back into Phantom's approval flow when the\n * underlying wallet authorization is still valid.\n */\nconst MWA_AUTH_TOKEN_STORAGE_KEY = 'bounded_mwa_auth_token';\n/**\n * Detects whether the current environment is a mobile browser capable of\n * Mobile Wallet Adapter (MWA) communication.\n *\n * Returns true on Android browsers (Chrome, etc.) where MWA intents work,\n * or inside a Seeker/Saga in-app browser context.\n */\nexport function isMobileWalletAvailable() {\n if (typeof window === 'undefined' || typeof navigator === 'undefined')\n return false;\n return detectAndroid();\n}\nconst ED25519_SIGNATURE_LENGTH = 64;\nconst STORED_AUTH_METHOD_KEY = 'bounded_last_auth_method';\nconst MWA_AUTH_METHOD = 'mobile-wallet-adapter';\nfunction findMwaError(e, maxDepth = 5) {\n var _a;\n let cur = e;\n let depth = 0;\n while (cur && depth < maxDepth) {\n if ((cur === null || cur === void 0 ? void 0 : cur.name) === 'SolanaMobileWalletAdapterError' && typeof (cur === null || cur === void 0 ? void 0 : cur.code) === 'string') {\n return { code: cur.code, message: String((_a = cur.message) !== null && _a !== void 0 ? _a : '') };\n }\n cur = cur === null || cur === void 0 ? void 0 : cur.cause;\n depth++;\n }\n return null;\n}\n/**\n * Returns the matched MwaErrorInfo when the error is from an association\n * failure that an automatic retry can recover from (i.e. the wallet exists\n * on-device but the dApp's protocol session didn't complete in time). Returns\n * null for non-retryable errors (user cancel, unknown wallet errors, etc.).\n *\n * Specifically:\n * - ERROR_WALLET_NOT_FOUND: thrown from the protocol's startScenario when\n * it gave up waiting for a wallet to respond. On Seeker this races the\n * first-time-consent UI on the very first authorize.\n * - ERROR_SESSION_TIMEOUT: similar — the protocol's session-establishment\n * timer expired.\n * - ERROR_ASSOCIATION_CANCELLED: shared by user-cancel (\"Wallet connection\n * cancelled by user\") AND the 30s wallet-standard WALLET_ASSOCIATION_TIMEOUT\n * (\"Wallet connection timed out\"). Discriminate by message — never retry\n * a user cancel.\n */\nfunction isMwaAssociationRetryable(e) {\n const info = findMwaError(e);\n if (!info)\n return null;\n if (info.code === 'ERROR_WALLET_NOT_FOUND')\n return info;\n if (info.code === 'ERROR_SESSION_TIMEOUT')\n return info;\n if (info.code === 'ERROR_ASSOCIATION_CANCELLED' && /timed out/i.test(info.message))\n return info;\n return null;\n}\n/**\n * Single-retry wrapper for MWA association failures. Used ONLY for login's\n * `standard:connect` and `solana:signMessage` calls — never for\n * `signAndSendTransaction`/`runTransaction` because retry on a path that\n * may have already submitted a tx can double-send.\n *\n * The retry exists for one specific scenario: on first-time MWA usage from a\n * given origin on Seeker, the protocol's session-establishment timer races\n * Seeker's first-time consent UI. The user reads the consent sheet, taps\n * Connect — but by then the protocol has given up and thrown\n * ERROR_WALLET_NOT_FOUND. The consent itself IS persisted on Seeker though,\n * so a second attempt skips the consent sheet, jumps straight to\n * Verify/Approve, and completes inside the timeout.\n */\nasync function withMwaAssociationRetry(fn) {\n try {\n return await fn();\n }\n catch (e) {\n const retryable = isMwaAssociationRetryable(e);\n if (!retryable)\n throw e;\n // Seeker's consent sheet is a bottom-sheet overlay — Chrome doesn't\n // reliably flip document.visibilityState to 'hidden' while it's open,\n // so visibility-based waits fire too early. Use a fixed delay long\n // enough for Seeker to dismiss its sheet and the OS to release intent\n // state. 2.5s is empirically safe; tune from device traces if needed.\n await new Promise(r => setTimeout(r, 2500));\n try {\n return await fn();\n }\n catch (e2) {\n // Only mask the error with the clean Seeker message when the\n // second failure is also an association-flavored error. If it's\n // a user cancel, wallet rejection, or unknown error, rethrow\n // the original so the host app surfaces the real cause.\n if (isMwaAssociationRetryable(e2)) {\n throw new Error(\"Couldn't connect to your Seeker wallet. Please try again.\");\n }\n throw e2;\n }\n }\n}\n/**\n * User-gesture-mediated wallet-standard sign helper.\n *\n * Why this exists: login flows that go through wallet-standard call two\n * separate transacts (standard:connect, then solana:signMessage). Each\n * transact dispatches its own `solana-wallet:` Android intent navigation\n * via `window.location.assign(associationUrl)` (see\n * @solana-mobile/mobile-wallet-adapter-protocol/lib/cjs/index.browser.js\n * `launchAssociation()` at line 459). Chrome requires **transient user\n * activation** for each custom-scheme navigation. The first transact\n * consumes the activation from the user's \"Continue to Allow\" tap on the\n * LNA modal; by the time the second transact (signMessage) runs as a JS\n * continuation, the activation has decayed, Chrome blocks the navigation,\n * no `blur` event fires, the protocol's `getDetectionPromise` (3000ms\n * timeout, line 433) rejects, and we get `ERROR_WALLET_NOT_FOUND`.\n *\n * Fix: show a Bounded-controlled modal between the two transacts. When the\n * user taps the modal's \"Sign in\" button, that tap IS a fresh user\n * activation. We invoke the sign function directly inside the click handler\n * — no `await` between the tap and the call — so the activation propagates\n * to the protocol's `location.assign`.\n *\n * Failure recovery is also user-gesture driven: if the sign function fails\n * with a retryable association error, we re-enable the button so the user's\n * next tap is a new activation (a real retry). A timer-based retry would\n * just hit the same Chrome block. Cap at 3 attempts before giving up.\n */\nasync function awaitSignInGestureAndSign(theme, signFn, noResultError = 'MWA returned no signature') {\n if (typeof document === 'undefined' || typeof window === 'undefined') {\n // SSR / non-browser: skip the gesture, just call (the activation\n // model doesn't apply outside the browser).\n const results = await signFn();\n if (!results || results.length === 0)\n throw new Error(noResultError);\n return results[0];\n }\n return new Promise((resolve, reject) => {\n const isDark = theme === 'dark'\n || (theme == null\n && typeof window.matchMedia === 'function'\n && window.matchMedia('(prefers-color-scheme: dark)').matches);\n // Palette\n const overlayBg = 'rgba(0, 0, 0, 0.62)';\n const cardBg = isDark ? '#1a1a1f' : '#ffffff';\n const titleColor = isDark ? '#ffffff' : '#0a0a0a';\n const subtitleColor = isDark ? '#a1a1aa' : '#52525b';\n const btnBg = isDark ? '#ffffff' : '#0a0a0a';\n const btnText = isDark ? '#0a0a0a' : '#ffffff';\n const btnDisabledBg = isDark ? '#3f3f46' : '#d4d4d8';\n const btnDisabledText = isDark ? '#71717a' : '#71717a';\n const errorColor = isDark ? '#fca5a5' : '#dc2626';\n const closeColor = isDark ? '#71717a' : '#a1a1aa';\n const fontStack = '-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif';\n const overlay = document.createElement('div');\n overlay.setAttribute('data-bounded-mwa-gesture', 'true');\n overlay.style.cssText = [\n 'position: fixed',\n 'inset: 0',\n 'z-index: 2147483646',\n `background: ${overlayBg}`,\n 'display: flex',\n 'align-items: center',\n 'justify-content: center',\n 'padding: 20px',\n 'box-sizing: border-box',\n `font-family: ${fontStack}`,\n ].join('; ');\n const card = document.createElement('div');\n card.style.cssText = [\n `background: ${cardBg}`,\n 'border-radius: 20px',\n 'padding: 28px 24px 24px',\n 'max-width: 340px',\n 'width: 100%',\n 'box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28)',\n 'position: relative',\n 'box-sizing: border-box',\n ].join('; ');\n const closeBtn = document.createElement('button');\n closeBtn.setAttribute('aria-label', 'Close');\n closeBtn.textContent = '×';\n closeBtn.style.cssText = [\n 'position: absolute',\n 'top: 12px',\n 'right: 12px',\n 'background: transparent',\n 'border: none',\n `color: ${closeColor}`,\n 'font-size: 24px',\n 'line-height: 1',\n 'cursor: pointer',\n 'padding: 6px 10px',\n 'border-radius: 8px',\n ].join('; ');\n const title = document.createElement('div');\n title.textContent = 'Almost there';\n title.style.cssText = [\n `color: ${titleColor}`,\n 'font-size: 20px',\n 'font-weight: 600',\n 'margin-bottom: 6px',\n 'text-align: center',\n ].join('; ');\n const subtitle = document.createElement('div');\n subtitle.textContent = 'Tap to sign in with your wallet';\n subtitle.style.cssText = [\n `color: ${subtitleColor}`,\n 'font-size: 14px',\n 'line-height: 1.4',\n 'margin-bottom: 22px',\n 'text-align: center',\n ].join('; ');\n const errorRow = document.createElement('div');\n errorRow.style.cssText = [\n `color: ${errorColor}`,\n 'font-size: 13px',\n 'line-height: 1.4',\n 'margin-bottom: 14px',\n 'text-align: center',\n 'min-height: 0',\n 'transition: min-height 100ms ease',\n ].join('; ');\n const button = document.createElement('button');\n button.textContent = 'Sign in';\n const setButtonEnabledStyle = () => {\n button.style.cssText = [\n `background: ${btnBg}`,\n `color: ${btnText}`,\n 'border: none',\n 'border-radius: 14px',\n 'padding: 14px 20px',\n 'font-size: 16px',\n 'font-weight: 600',\n 'width: 100%',\n 'cursor: pointer',\n '-webkit-tap-highlight-color: transparent',\n 'box-sizing: border-box',\n `font-family: ${fontStack}`,\n ].join('; ');\n };\n const setButtonDisabledStyle = () => {\n button.style.cssText = [\n `background: ${btnDisabledBg}`,\n `color: ${btnDisabledText}`,\n 'border: none',\n 'border-radius: 14px',\n 'padding: 14px 20px',\n 'font-size: 16px',\n 'font-weight: 600',\n 'width: 100%',\n 'cursor: default',\n '-webkit-tap-highlight-color: transparent',\n 'box-sizing: border-box',\n `font-family: ${fontStack}`,\n ].join('; ');\n };\n setButtonEnabledStyle();\n card.appendChild(closeBtn);\n card.appendChild(title);\n card.appendChild(subtitle);\n card.appendChild(errorRow);\n card.appendChild(button);\n overlay.appendChild(card);\n document.body.appendChild(overlay);\n let settled = false;\n let attemptCount = 0;\n const MAX_ATTEMPTS = 3;\n const cleanup = () => {\n try {\n overlay.remove();\n }\n catch ( /* ignore */_a) { /* ignore */ }\n document.removeEventListener('keydown', onKeydown);\n };\n const finishResolve = (value) => {\n if (settled)\n return;\n settled = true;\n cleanup();\n resolve(value);\n };\n const finishReject = (err) => {\n if (settled)\n return;\n settled = true;\n cleanup();\n reject(err);\n };\n const handleCancel = () => {\n // Phrasing matches login()'s isUserRejection substring check so\n // the existing catch suppresses error-log noise.\n finishReject(new Error('User cancelled wallet sign in'));\n };\n closeBtn.addEventListener('click', () => {\n handleCancel();\n });\n overlay.addEventListener('click', (e) => {\n if (e.target === overlay) {\n handleCancel();\n }\n });\n const onKeydown = (e) => {\n if (e.key === 'Escape') {\n handleCancel();\n }\n };\n document.addEventListener('keydown', onKeydown);\n button.addEventListener('click', () => {\n if (settled)\n return;\n attemptCount++;\n const attempt = attemptCount;\n // Disable to prevent double-clicks while the wallet popup is up.\n button.disabled = true;\n setButtonDisabledStyle();\n const originalText = 'Sign in';\n button.textContent = 'Signing in…';\n errorRow.textContent = '';\n errorRow.style.minHeight = '0';\n // CRITICAL: invoke signFn() synchronously inside the click handler\n // so Chrome's transient user activation propagates to the\n // protocol's window.location.assign(associationUrl) inside\n // launchAssociation(). Do not `await` before calling.\n signFn().then((results) => {\n if (!results || results.length === 0) {\n finishReject(new Error(noResultError));\n return;\n }\n finishResolve(results[0]);\n }).catch((err) => {\n const retryable = isMwaAssociationRetryable(err);\n if (retryable && attempt < MAX_ATTEMPTS) {\n // Re-enable the button so the user's next tap provides a\n // fresh user activation. Show inline error text.\n button.disabled = false;\n setButtonEnabledStyle();\n button.textContent = originalText;\n errorRow.textContent = \"Couldn't connect — tap to try again\";\n errorRow.style.minHeight = '20px';\n return;\n }\n if (retryable) {\n // Hit the attempt cap with a still-retryable failure.\n finishReject(new Error(\"Couldn't connect to your Seeker wallet. Please try again.\"));\n return;\n }\n // Non-retryable error (user cancel inside Seeker, wallet\n // rejected sign, unknown error, etc.) — surface as-is.\n finishReject(err);\n });\n });\n });\n}\n/**\n * Sign through the gesture modal ONLY when transient user activation has\n * already decayed. Fast transactions still hold the activation from the\n * user's tap, so the `solana-wallet:` navigation succeeds directly with no\n * modal (preserves prior UX — no extra tap). Slow transactions — e.g. a swap\n * whose server-side build exceeds Chrome's ~5s activation window — have lost\n * it, so we fall back to awaitSignInGestureAndSign to mint a fresh activation\n * via a \"Sign in\" tap. Returns the first result (same shape as the bare\n * wallet-standard feature call and as awaitSignInGestureAndSign).\n */\nasync function signWithFreshActivation(theme, signFn, noResultError = 'MWA returned no signature') {\n var _a;\n const activationLive = typeof navigator !== 'undefined' &&\n ((_a = navigator.userActivation) === null || _a === void 0 ? void 0 : _a.isActive) === true;\n if (activationLive) {\n // Live gesture: invoke synchronously (no await before signFn) so the\n // activation propagates to the protocol's location.assign navigation.\n const results = await signFn();\n if (!results || results.length === 0)\n throw new Error(noResultError);\n return results[0];\n }\n // Activation gone: surface the modal so the user's tap mints a fresh one.\n return awaitSignInGestureAndSign(theme, signFn, noResultError);\n}\n/**\n * Normalize a chain string to a wallet-standard Solana chain identifier.\n *\n * Handles three input shapes that all show up in practice:\n * - Bare cluster name from `SolanaMobileWalletConfig.cluster` (e.g. 'devnet').\n * - Prefixed `solana:cluster` (e.g. 'solana:devnet').\n * - Double-prefixed `solana:solana:cluster` (constructor used to wrap cluster\n * with `solana:` blindly; if a caller already passed a prefixed string the\n * result was `solana:solana:devnet`).\n *\n * Wallet-standard Solana chains are exactly:\n * 'solana:mainnet' | 'solana:devnet' | 'solana:testnet' | 'solana:localnet'\n * — `mainnet-beta` is NOT a valid wallet-standard identifier and must be\n * normalized to `solana:mainnet`.\n */\nfunction mapChainToWalletStandard(input) {\n if (!input) {\n throw new Error(\"Solana mobile wallet auth requires an explicit cluster. \" +\n \"Pass mobileWalletConfig.cluster or config.chain.\");\n }\n let s = String(input).toLowerCase();\n while (s.startsWith('solana:'))\n s = s.slice('solana:'.length);\n if (s === 'mainnet-beta' || s === 'mainnet')\n return 'solana:mainnet';\n if (s === 'devnet')\n return 'solana:devnet';\n if (s === 'testnet')\n return 'solana:testnet';\n if (s === 'localnet')\n return 'solana:localnet';\n throw new Error(`Solana mobile wallet auth does not support cluster \"${input}\". ` +\n \"Expected mainnet-beta, devnet, testnet, or localnet.\");\n}\nfunction mapClusterToRpcNetwork(input) {\n if (!input)\n return null;\n let s = String(input).toLowerCase();\n while (s.startsWith('solana:'))\n s = s.slice('solana:'.length);\n if (s === 'mainnet-beta' || s === 'mainnet')\n return 'solana_mainnet';\n if (s === 'devnet')\n return 'solana_devnet';\n if (s === 'localnet')\n return 'surfnet';\n return null;\n}\n/**\n * Serialize a Transaction/VersionedTransaction to a Uint8Array wire payload\n * that the wallet-standard `solana:signTransaction` /\n * `solana:signAndSendTransaction` features expect.\n *\n * Legacy transactions must serialize with `requireAllSignatures: false` and\n * `verifySignatures: false` — the wallet hasn't signed yet, and the default\n * `serialize()` would throw \"Signature verification failed\". Versioned\n * transactions use the default `serialize()` which already permits unsigned\n * payloads. Mirrors the helper at\n * `@solana-mobile/mobile-wallet-adapter-protocol-web3js/lib/esm/index.browser.js:13-18`.\n */\nfunction txToWireBytes(tx) {\n if ('version' in tx)\n return tx.serialize();\n return tx.serialize({ requireAllSignatures: false, verifySignatures: false });\n}\n/**\n * Deserialize a wire-format transaction returned by the wallet\n * `solana:signTransaction` feature. Mirrors the helper at\n * `@solana-mobile/mobile-wallet-adapter-protocol-web3js/lib/esm/index.browser.js:19-23`\n * so legacy and versioned bytes both round-trip correctly.\n */\nfunction txFromWireBytes(byteArray) {\n const messageOffset = byteArray[0] * ED25519_SIGNATURE_LENGTH + 1;\n const messageVersion = VersionedMessage.deserializeMessageVersion(byteArray.slice(messageOffset, byteArray.length));\n if (messageVersion === 'legacy') {\n return Transaction.from(byteArray);\n }\n return VersionedTransaction.deserialize(byteArray);\n}\n/**\n * Per-method runtime narrowing of wallet-standard features. The wallet's\n * `.features` type is a union (`signAndSendTransaction` | `signTransaction`),\n * and after authorization the wallet may also narrow `#optionalFeatures`\n * based on actual wallet capabilities. Narrow at the call site so a method\n * that needs only `signMessage` doesn't fail when a wallet lacks\n * `signTransaction`.\n */\nfunction getSignMessageFeature(wallet) {\n const f = wallet.features;\n const feat = f['solana:signMessage'];\n if (!feat || typeof feat.signMessage !== 'function') {\n throw new Error('Wallet does not support solana:signMessage');\n }\n return feat;\n}\nfunction getSignTransactionFeature(wallet) {\n const f = wallet.features;\n const feat = f['solana:signTransaction'];\n if (!feat || typeof feat.signTransaction !== 'function') {\n throw new Error('Wallet does not support solana:signTransaction');\n }\n return feat;\n}\nfunction getSignAndSendTransactionFeature(wallet) {\n const f = wallet.features;\n const feat = f['solana:signAndSendTransaction'];\n if (!feat || typeof feat.signAndSendTransaction !== 'function') {\n throw new Error('Wallet does not support solana:signAndSendTransaction');\n }\n return feat;\n}\nfunction getConnectFeature(wallet) {\n const f = wallet.features;\n const feat = f['standard:connect'];\n if (!feat || typeof feat.connect !== 'function') {\n throw new Error('Wallet does not support standard:connect');\n }\n return feat;\n}\nfunction getDisconnectFeature(wallet) {\n const f = wallet.features;\n const feat = f['standard:disconnect'];\n return feat && typeof feat.disconnect === 'function' ? feat : null;\n}\nfunction writeAuthMethod(method) {\n try {\n if (method === null) {\n getPlatform().storage.removeItem(STORED_AUTH_METHOD_KEY);\n }\n else {\n getPlatform().storage.setItem(STORED_AUTH_METHOD_KEY, method);\n }\n }\n catch (_a) {\n // storage may be unavailable\n }\n}\nfunction readAuthMethod() {\n try {\n return getPlatform().storage.getItem(STORED_AUTH_METHOD_KEY);\n }\n catch (_a) {\n return null;\n }\n}\n/**\n * Registers Mobile Wallet Adapter as a wallet-standard wallet so it appears\n * in wallet selection UIs and can be discovered by other wallet-standard consumers.\n *\n * Call this once at app startup (in a browser-only / non-SSR context).\n *\n * @param config - App identity and optional remote host authority for desktop QR code support\n */\nexport async function registerMobileWalletAdapter(config) {\n var _a, _b;\n if (typeof window === 'undefined')\n return;\n try {\n const walletStandardMobile = await import('@solana-mobile/wallet-standard-mobile');\n const registerMwa = walletStandardMobile.registerMwa || ((_a = walletStandardMobile.default) === null || _a === void 0 ? void 0 : _a.registerMwa);\n if (!registerMwa) {\n console.warn('[SolanaMobileWallet] registerMwa not found in @solana-mobile/wallet-standard-mobile');\n return;\n }\n const options = {};\n if (config === null || config === void 0 ? void 0 : config.appIdentity) {\n options.appIdentity = config.appIdentity;\n }\n if (config === null || config === void 0 ? void 0 : config.chains) {\n options.chains = config.chains;\n }\n if (config === null || config === void 0 ? void 0 : config.remoteHostAuthority) {\n options.remoteHostAuthority = config.remoteHostAuthority;\n }\n // Use the library's default helpers if available\n if (walletStandardMobile.createDefaultAuthorizationCache) {\n options.authorizationCache = walletStandardMobile.createDefaultAuthorizationCache();\n }\n if (walletStandardMobile.createDefaultChainSelector) {\n options.chainSelector = walletStandardMobile.createDefaultChainSelector();\n }\n // Default: suppress the \"We can't find a wallet\" modal — see\n // SolanaMobileWalletProvider.ensureWallet() for why. Consumers that\n // want their own UX can pass config.onWalletNotFound.\n options.onWalletNotFound = (_b = config === null || config === void 0 ? void 0 : config.onWalletNotFound) !== null && _b !== void 0 ? _b : (async () => {\n // intentional no-op\n });\n registerMwa(options);\n }\n catch (e) {\n console.debug('[SolanaMobileWallet] @solana-mobile/wallet-standard-mobile not available, skipping wallet-standard registration');\n }\n}\n/**\n * SolanaMobileWalletProvider implements the AuthProvider interface using\n * Solana Mobile's wallet-standard wrapper (`LocalSolanaMobileWalletAdapterWallet`).\n *\n * Why wallet-standard and not the raw MWA protocol: as of\n * `@solana-mobile/wallet-standard-mobile@0.5.0+`, the wallet's internal\n * `#transact` calls `checkLocalNetworkAccessPermission()` before opening the\n * localhost WebSocket. That helper renders a three-stage UX flow Solana\n * Mobile designed specifically to defuse Chrome's Local Network Access\n * permission dialog (which renders with disabled buttons on Android Chrome,\n * the source of the long-running Seeker MWA bug):\n *\n * 1. \"Allow connections to your wallet\" informational modal.\n * 2. Chrome's permission prompt (interactive because it's spawned as a\n * fresh user gesture from step 1).\n * 3. \"Ready to connect!\" success modal.\n *\n * `checkLocalNetworkAccessPermission` is internal to the library — it's not\n * exported. The only way to invoke it is to go through the wallet's\n * `standard:connect` / `solana:sign*` features, which is what this provider\n * does.\n *\n * Notes on UX: login uses two wallet popups in succession — `standard:connect`\n * (authorize) and `solana:signMessage` (sign the Bounded nonce). The\n * previous implementation combined both inside a single `transact` callback;\n * splitting them is the cost of going through wallet-standard, and is\n * acceptable given the alternative was broken on Seeker.\n */\nexport class SolanaMobileWalletProvider {\n constructor(networkUrl = null, config = {}, configuredNetwork = null) {\n var _a;\n /** LocalSolanaMobileWalletAdapterWallet, lazy-constructed in ensureWallet(). */\n this.wallet = null;\n /**\n * Cached MWA auth_token returned by `wallet.authorize()`. Reused by\n * subsequent native transact() calls (signMessage / signTransaction)\n * so the user doesn't get the wallet-pick popup on every operation.\n * Persisted to platform storage and hydrated by the constructor on\n * native; cleared by logout() and on `ERROR_REAUTHORIZE`.\n */\n this.nativeAuthToken = null;\n /** Cached public key string for the connected MWA wallet (native). */\n this.nativeAddress = null;\n this.networkUrl = networkUrl;\n this.configuredNetwork = configuredNetwork;\n this.config = config;\n // Allow construction in true React Native environments: getPlatform().hasDOM\n // is false there even though `typeof window === 'object'` (RN exposes a\n // partial window global). Web/PWA paths still keep their original guard:\n // they need real window+document for wallet-standard-mobile's deep-link\n // mechanism, so missing-window in those builds remains a fail-fast.\n const hasDOM = getPlatform().hasDOM;\n if (!hasDOM && typeof window === 'undefined') {\n throw new Error('SolanaMobileWalletProvider can only be instantiated in a browser or React Native environment');\n }\n if (hasDOM && typeof window === 'undefined') {\n throw new Error('SolanaMobileWalletProvider can only be instantiated in a browser environment');\n }\n if (SolanaMobileWalletProvider.instance) {\n return SolanaMobileWalletProvider.instance;\n }\n // `appIdentity.uri` is what Phantom Android (and other MWA wallets)\n // display in their approval modal. On web/PWA this is the page\n // origin; on native there's no `window.location`, so fall back to\n // a stable identifier the user can recognize. Apps can override\n // entirely via `config.appIdentity.uri`.\n const fallbackUri = hasDOM\n ? getPlatform().getLocationOrigin()\n : 'bounded://app';\n this.appIdentity = config.appIdentity || {\n name: 'Bounded App',\n uri: fallbackUri,\n };\n this.cluster = (_a = config.cluster) !== null && _a !== void 0 ? _a : '';\n // Hydrate cached MWA auth_token from storage on native so we can\n // skip the wallet-pick popup after a cold-start when the underlying\n // wallet authorization is still valid. Sync storage call per the\n // PlatformAdapter contract; safe to swallow read errors (a fresh\n // login() just re-authorizes).\n if (!hasDOM) {\n try {\n const raw = getPlatform().storage.getItem(MWA_AUTH_TOKEN_STORAGE_KEY);\n if (raw) {\n const parsed = JSON.parse(raw);\n if (typeof parsed.token === 'string' && typeof parsed.address === 'string') {\n this.nativeAuthToken = parsed.token;\n this.nativeAddress = parsed.address;\n }\n }\n }\n catch (_b) {\n // Corrupt or unreadable cache — ignore. login() will re-auth.\n }\n }\n SolanaMobileWalletProvider.instance = this;\n }\n static getInstance(networkUrl, config, configuredNetwork = null) {\n if (!SolanaMobileWalletProvider.instance) {\n new SolanaMobileWalletProvider(networkUrl, config, configuredNetwork);\n }\n return SolanaMobileWalletProvider.instance;\n }\n /** Lazy-construct LocalSolanaMobileWalletAdapterWallet on first need. */\n async ensureWallet() {\n if (this.wallet)\n return this.wallet;\n const mod = await import('@solana-mobile/wallet-standard-mobile');\n const chain = mapChainToWalletStandard(this.cluster);\n this.wallet = new mod.LocalSolanaMobileWalletAdapterWallet({\n appIdentity: this.appIdentity,\n authorizationCache: mod.createDefaultAuthorizationCache(),\n chains: [chain],\n chainSelector: mod.createDefaultChainSelector(),\n // Suppress the default \"We can't find a wallet\" modal — that\n // modal is misleading when ERROR_WALLET_NOT_FOUND fires during\n // a first-time-consent race on Seeker (the wallet IS installed,\n // the protocol just gave up before the user finished consenting).\n // login()'s withMwaAssociationRetry handles this case; on second\n // failure it surfaces a clean error message to the host app.\n onWalletNotFound: async () => {\n // intentional no-op\n },\n });\n return this.wallet;\n }\n /**\n * Ensure the wallet has an active authorization. After a Bounded session\n * is restored from storage on cold-start, `wallet.accounts` is empty until\n * we silently reconnect from the AuthorizationCache. If the cache is also\n * empty, fall back to interactive `login()` (which surfaces the three-stage\n * Solana Mobile LNA flow + wallet popups).\n *\n * Returns the wallet-standard `WalletAccount` to use for sign operations.\n */\n async ensureAuthorized() {\n const wallet = await this.ensureWallet();\n if (wallet.accounts.length === 0) {\n try {\n const connectFeat = getConnectFeature(wallet);\n await connectFeat.connect({ silent: true });\n }\n catch (e) {\n console.warn('[SolanaMobileWallet] silent connect failed:', e === null || e === void 0 ? void 0 : e.message);\n }\n }\n if (wallet.accounts.length === 0) {\n const user = await this.login();\n if (!user)\n throw new Error('MWA not connected');\n }\n return wallet.accounts[0];\n }\n /** Returns the active wallet-standard chain identifier (e.g. 'solana:mainnet'). */\n getChain(network) {\n if (network) {\n return resolveSolanaWalletStandardChain(network, \"Solana mobile wallet transaction\");\n }\n if (this.configuredNetwork) {\n return resolveSolanaWalletStandardChain(this.configuredNetwork, \"Solana mobile wallet transaction\");\n }\n return mapChainToWalletStandard(this.cluster);\n }\n /**\n * Dynamically import and unwrap `transact` from the MWA web3js\n * package. The package is externalized in rollup.config.js so this\n * resolves to `lib/cjs/index.native.js` (TurboModule-backed) on\n * Metro and `lib/esm/index.browser.js` (WebSocket) on webpack/vite\n * per their respective platform conditions. Handles Metro's CJS-to-\n * ESM interop variance (`mod.transact` vs `mod.default?.transact`).\n */\n async loadTransact() {\n var _a;\n const mod = await import('@solana-mobile/mobile-wallet-adapter-protocol-web3js');\n const t = mod.transact || ((_a = mod.default) === null || _a === void 0 ? void 0 : _a.transact);\n if (typeof t !== 'function') {\n throw new Error('MWA transact API not available on this platform');\n }\n return t;\n }\n /**\n * Cache and persist a fresh MWA auth_token + address. Called from\n * `_loginNative` after a successful authorize. Storage failures are\n * non-fatal (next cold-start re-auths).\n */\n persistNativeAuth(token, address) {\n this.nativeAuthToken = token;\n this.nativeAddress = address;\n try {\n getPlatform().storage.setItem(MWA_AUTH_TOKEN_STORAGE_KEY, JSON.stringify({ token, address }));\n }\n catch (_a) {\n // non-fatal — token still in-memory for this process\n }\n }\n /** Clear cached + persisted native auth state. */\n clearNativeAuth() {\n this.nativeAuthToken = null;\n this.nativeAddress = null;\n try {\n getPlatform().storage.removeItem(MWA_AUTH_TOKEN_STORAGE_KEY);\n }\n catch (_a) {\n // ignore\n }\n }\n /**\n * Classify an MWA-native error as a user cancellation. User-cancel\n * shouldn't surface as a red console.error; callers can swallow or\n * show a softer message. MWA spec codes plus the same substring\n * checks the web path uses to catch wallet-specific phrasing.\n */\n isNativeUserCancel(err) {\n var _a;\n if (!err)\n return false;\n const code = err.code;\n if (code === 'ERROR_NOT_SIGNED')\n return true;\n const msg = String((_a = err.message) !== null && _a !== void 0 ? _a : '').toLowerCase();\n return /user (rejected|denied|cancelled|canceled|declined)/.test(msg);\n }\n /**\n * Native MWA login via @solana-mobile/mobile-wallet-adapter-protocol-web3js.\n * Used in true React Native (Expo) environments where wallet-standard-mobile's\n * web universal-link path doesn't apply. Does authorize + signMessage in a\n * single transact() roundtrip — intent-based MWA doesn't need the two-popup\n * dance the web path uses (no Chrome activation-loss concern). Persists the\n * resulting auth_token so cold-start can reauthorize without a fresh popup.\n */\n async _loginNative() {\n const transact = await this.loadTransact();\n const existingSession = await SessionManager().getSession();\n const nonce = await genAuthNonce();\n const result = await transact(async (wallet) => {\n const auth = await wallet.authorize({\n chain: this.getChain(),\n identity: this.appIdentity,\n });\n if (!auth.accounts || auth.accounts.length === 0) {\n throw new Error('MWA returned no accounts');\n }\n const account = auth.accounts[0];\n // account.address is base64-encoded per MWA spec; convert to\n // the base58 form Bounded + the rest of the SDK use.\n const base58Addr = new PublicKey(Buffer.from(account.address, 'base64')).toBase58();\n // Reuse session if already valid for this address — skip the\n // signMessages roundtrip entirely.\n if (existingSession && existingSession.address === base58Addr) {\n return {\n base58Addr,\n authToken: auth.auth_token,\n signatureBase64: null,\n };\n }\n const messageText = await genSolanaMessage(base58Addr, nonce);\n const messageBytes = getPlatform().textEncode(messageText);\n const signatures = await wallet.signMessages({\n addresses: [account.address],\n payloads: [messageBytes],\n });\n if (!signatures || signatures.length === 0) {\n throw new Error('MWA returned no signature');\n }\n // Per spec, signMessages returns Uint8Array[] of signatures\n // (one per payload), not message+signature concatenations.\n const signatureBase64 = Buffer.from(signatures[0]).toString('base64');\n return {\n base58Addr,\n authToken: auth.auth_token,\n signatureBase64,\n messageText,\n };\n });\n this.persistNativeAuth(result.authToken, result.base58Addr);\n // Existing valid session — short-circuit before re-creating server-side.\n if (existingSession && existingSession.address === result.base58Addr) {\n const user = { provider: this, address: result.base58Addr };\n setCurrentUser(user);\n return user;\n }\n // Create Bounded session on the server.\n if (!result.signatureBase64 || !result.messageText) {\n throw new Error('MWA login completed without signature');\n }\n const createSessionResult = await createSessionWithSignature(result.base58Addr, result.messageText, result.signatureBase64);\n await SessionManager().storeSession(result.base58Addr, createSessionResult.accessToken, createSessionResult.idToken, createSessionResult.refreshToken);\n const user = { provider: this, address: result.base58Addr };\n setCurrentUser(user);\n return user;\n }\n async login() {\n var _a, _b, _c, _d, _e;\n setAuthLoading(true);\n // Mark the auth method early so a concurrent Phantom auto-create-session\n // effect (see phantom-wallet-provider) sees 'mobile-wallet-adapter'\n // during our slow connect/sign roundtrip and backs off. Capture the\n // previous value so we can restore it if login fails.\n const prevAuthMethod = readAuthMethod();\n writeAuthMethod(MWA_AUTH_METHOD);\n try {\n // True React Native: skip the wallet-standard-mobile path (which\n // requires window.isSecureContext and a real DOM) and use the raw\n // MWA protocol via Android intents.\n if (!getPlatform().hasDOM) {\n const user = await this._loginNative();\n return user;\n }\n const wallet = await this.ensureWallet();\n // Quick-check: wallet may already have authorization (e.g. from a\n // previous in-page login) and a matching Bounded session — skip\n // popups in that case.\n if (wallet.accounts.length > 0) {\n const accountPubkey = new PublicKey(wallet.accounts[0].publicKey);\n const base58Addr = accountPubkey.toBase58();\n const existingSession = await SessionManager().getSession();\n if (existingSession && existingSession.address === base58Addr) {\n const user = { provider: this, address: base58Addr };\n setCurrentUser(user);\n return user;\n }\n }\n // Wallet popup #1: standard:connect performs MWA authorize. This\n // is where wallet-standard's checkLocalNetworkAccessPermission()\n // fires the three-stage LNA UX (info modal → permission prompt →\n // success modal) before opening the localhost WebSocket.\n //\n // Wrap with single-retry: on a Seeker origin's first MWA usage,\n // the protocol's session-establishment timer often races Seeker's\n // first-time consent UI and throws ERROR_WALLET_NOT_FOUND before\n // the user finishes tapping. The retry hits Seeker's cached\n // consent on the second pass and completes quickly. See\n // withMwaAssociationRetry for details.\n const connectFeat = getConnectFeature(wallet);\n const { accounts } = await withMwaAssociationRetry(() => connectFeat.connect());\n if (!accounts || accounts.length === 0) {\n throw new Error('MWA returned no accounts');\n }\n const account = accounts[0];\n const accountPubkey = new PublicKey(account.publicKey);\n const base58Addr = accountPubkey.toBase58();\n // If we happen to already have a matching Bounded session, reuse it.\n const existingSession = await SessionManager().getSession();\n if (existingSession && existingSession.address === base58Addr) {\n const user = { provider: this, address: base58Addr };\n setCurrentUser(user);\n return user;\n }\n // Wallet popup #2: sign the Bounded nonce message.\n //\n // We cannot call signMessageFeat.signMessage() directly here:\n // it would run as a JS continuation from the connect() resolve,\n // with no fresh Chrome transient user activation. The wallet-\n // standard sign path internally dispatches a new solana-wallet:\n // Android intent via window.location.assign() (see\n // @solana-mobile/mobile-wallet-adapter-protocol launchAssociation\n // at lib/cjs/index.browser.js:459). Chrome blocks the assign\n // without activation, the blur event never fires, and the\n // protocol's 3-second getDetectionPromise rejects with\n // ERROR_WALLET_NOT_FOUND.\n //\n // Insert a Bounded modal: the user's tap on \"Sign in\" provides a\n // fresh activation, and signMessage is invoked synchronously\n // inside the click handler so the activation propagates.\n // C1: fetch the nonce HERE (after connect), not before — a pre-connect\n // network round-trip was decaying the Chrome user activation needed for\n // the connect's solana-wallet: navigation, intermittently causing\n // ERROR_WALLET_NOT_FOUND. The nonce is only needed for the message below.\n const nonce = await genAuthNonce();\n const messageText = await genSolanaMessage(base58Addr, nonce);\n const messageBytes = getPlatform().textEncode(messageText);\n const signMessageFeat = getSignMessageFeature(wallet);\n const signResult = await awaitSignInGestureAndSign(this.config.theme, () => signMessageFeat.signMessage({ account, message: messageBytes }));\n if (!signResult) {\n throw new Error('MWA returned no signature');\n }\n const { signature: sigBytes } = signResult;\n const signatureBase64 = Buffer.from(sigBytes).toString('base64');\n // Create Bounded session on the server.\n const createSessionResult = await createSessionWithSignature(base58Addr, messageText, signatureBase64);\n await SessionManager().storeSession(base58Addr, createSessionResult.accessToken, createSessionResult.idToken, createSessionResult.refreshToken);\n // Auth-method marker is already 'mobile-wallet-adapter' from above.\n const user = { provider: this, address: base58Addr };\n setCurrentUser(user);\n return user;\n }\n catch (error) {\n // Restore the previous auth-method marker since this login attempt failed.\n writeAuthMethod(prevAuthMethod);\n const isUserRejection = (error === null || error === void 0 ? void 0 : error.code) === 4001 ||\n ((_a = error === null || error === void 0 ? void 0 : error.message) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes('user rejected')) ||\n ((_b = error === null || error === void 0 ? void 0 : error.message) === null || _b === void 0 ? void 0 : _b.toLowerCase().includes('user denied')) ||\n ((_c = error === null || error === void 0 ? void 0 : error.message) === null || _c === void 0 ? void 0 : _c.toLowerCase().includes('user cancelled')) ||\n ((_d = error === null || error === void 0 ? void 0 : error.message) === null || _d === void 0 ? void 0 : _d.toLowerCase().includes('user canceled')) ||\n ((_e = error === null || error === void 0 ? void 0 : error.message) === null || _e === void 0 ? void 0 : _e.toLowerCase().includes('user declined'));\n if (!isUserRejection) {\n console.error('[SolanaMobileWallet] Login failed:', error);\n }\n throw error;\n }\n finally {\n setAuthLoading(false);\n }\n }\n async restoreSession() {\n const session = await SessionManager().getSession();\n if (session) {\n return { provider: this, address: session.address };\n }\n return null;\n }\n async logout() {\n if (!getPlatform().hasDOM) {\n // Native path: deauthorize the cached MWA auth_token if we have\n // one (failures non-fatal — the wallet app may have been\n // uninstalled or the token already revoked), then clear local\n // and persisted state.\n const token = this.nativeAuthToken;\n if (token) {\n try {\n const transact = await this.loadTransact();\n await transact(async (wallet) => {\n await wallet.deauthorize({ auth_token: token });\n });\n }\n catch (error) {\n console.warn('[SolanaMobileWallet] Native deauthorize error:', error);\n }\n }\n this.clearNativeAuth();\n SessionManager().clearSession();\n writeAuthMethod(null);\n setCurrentUser(null);\n return;\n }\n try {\n const wallet = await this.ensureWallet();\n const disconnectFeat = getDisconnectFeature(wallet);\n if (disconnectFeat) {\n // Disconnect clears the AuthorizationCache and resets\n // wallet.#authorization internally (no LNA dialog).\n await disconnectFeat.disconnect();\n }\n }\n catch (error) {\n console.error('[SolanaMobileWallet] Disconnect error:', error);\n }\n SessionManager().clearSession();\n // Clear the auth-method marker so Phantom auto-create is unblocked\n // for any subsequent fresh login on this device.\n writeAuthMethod(null);\n setCurrentUser(null);\n }\n async signMessage(message) {\n var _a, _b, _c;\n // Native: reauthorize with cached auth_token, then signMessages inside\n // the same transact() session. No wallet-pick popup if the auth_token\n // is still valid for the user's wallet.\n if (!getPlatform().hasDOM) {\n if (!this.nativeAuthToken || !this.nativeAddress) {\n throw new Error('Wallet not connected. Call login() first.');\n }\n const transact = await this.loadTransact();\n const messageBytes = getPlatform().textEncode(message);\n const addressBase64 = new PublicKey(this.nativeAddress).toBuffer().toString('base64');\n const authToken = this.nativeAuthToken;\n try {\n const signature = await transact(async (wallet) => {\n await wallet.reauthorize({ auth_token: authToken, identity: this.appIdentity });\n const sigs = await wallet.signMessages({\n addresses: [addressBase64],\n payloads: [messageBytes],\n });\n if (!sigs || sigs.length === 0)\n throw new Error('MWA returned no signature');\n return sigs[0];\n });\n return Buffer.from(signature).toString('base64');\n }\n catch (error) {\n if (this.isNativeUserCancel(error)) {\n throw new Error('User declined to sign');\n }\n if ((error === null || error === void 0 ? void 0 : error.code) === 'ERROR_AUTHORIZATION_FAILED' || (error === null || error === void 0 ? void 0 : error.code) === 'ERROR_REAUTHORIZE') {\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n throw new Error(`Failed to sign message: ${(_a = error === null || error === void 0 ? void 0 : error.message) !== null && _a !== void 0 ? _a : error}`);\n }\n }\n const account = await this.ensureAuthorized();\n const wallet = await this.ensureWallet();\n try {\n const signMessageFeat = getSignMessageFeature(wallet);\n const messageBytes = getPlatform().textEncode(message);\n const results = await signMessageFeat.signMessage({ account, message: messageBytes });\n if (!results || results.length === 0) {\n throw new Error('MWA returned no signature');\n }\n const { signature: sigBytes } = results[0];\n return Buffer.from(sigBytes).toString('base64');\n }\n catch (error) {\n if (((_b = error === null || error === void 0 ? void 0 : error.message) === null || _b === void 0 ? void 0 : _b.includes('not connected')) || ((_c = error === null || error === void 0 ? void 0 : error.message) === null || _c === void 0 ? void 0 : _c.includes('not authorized')) ||\n (error === null || error === void 0 ? void 0 : error.code) === 'ERROR_AUTHORIZATION_FAILED') {\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n throw new Error(`Failed to sign message: ${error.message}`);\n }\n }\n async signTransaction(transaction) {\n var _a, _b, _c;\n // Native: fill blockhash/feePayer if missing, then signTransactions\n // inside a transact() session keyed by the cached auth_token.\n if (!getPlatform().hasDOM) {\n if (!this.nativeAuthToken || !this.nativeAddress) {\n throw new Error('Wallet not connected. Call login() first.');\n }\n const connectedPubkey = new PublicKey(this.nativeAddress);\n const isLegacyTransaction = 'recentBlockhash' in transaction && !('message' in transaction && 'staticAccountKeys' in transaction.message);\n if (isLegacyTransaction) {\n const legacyTx = transaction;\n if (!legacyTx.recentBlockhash) {\n const conn = new Connection(this.getRpcUrl(), 'confirmed');\n const { blockhash, lastValidBlockHeight } = await conn.getLatestBlockhash('confirmed');\n legacyTx.recentBlockhash = blockhash;\n legacyTx.lastValidBlockHeight = lastValidBlockHeight;\n }\n if (!legacyTx.feePayer) {\n legacyTx.feePayer = connectedPubkey;\n }\n }\n else {\n const versionedTx = transaction;\n if (!versionedTx.message.recentBlockhash) {\n const conn = new Connection(this.getRpcUrl(), 'confirmed');\n const { blockhash } = await conn.getLatestBlockhash('confirmed');\n versionedTx.message.recentBlockhash = blockhash;\n }\n }\n const transact = await this.loadTransact();\n const authToken = this.nativeAuthToken;\n try {\n const signed = await transact(async (wallet) => {\n await wallet.reauthorize({ auth_token: authToken, identity: this.appIdentity });\n const results = await wallet.signTransactions({ transactions: [transaction] });\n if (!results || results.length === 0)\n throw new Error('MWA returned no signed transaction');\n return results[0];\n });\n return signed;\n }\n catch (error) {\n if (this.isNativeUserCancel(error)) {\n throw new Error('User declined to sign');\n }\n if ((error === null || error === void 0 ? void 0 : error.code) === 'ERROR_AUTHORIZATION_FAILED' || (error === null || error === void 0 ? void 0 : error.code) === 'ERROR_REAUTHORIZE') {\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n throw new Error(`Failed to sign transaction: ${(_a = error === null || error === void 0 ? void 0 : error.message) !== null && _a !== void 0 ? _a : error}`);\n }\n }\n const account = await this.ensureAuthorized();\n const connectedPubkey = new PublicKey(account.publicKey);\n const wallet = await this.ensureWallet();\n const chain = this.getChain();\n // Preserve existing prep: fill missing blockhash / fee payer so call\n // sites that build a tx without these fields don't regress.\n const isLegacyTransaction = 'recentBlockhash' in transaction && !('message' in transaction && 'staticAccountKeys' in transaction.message);\n if (isLegacyTransaction) {\n const legacyTx = transaction;\n if (!legacyTx.recentBlockhash) {\n const conn = new Connection(this.getRpcUrl(), 'confirmed');\n const { blockhash, lastValidBlockHeight } = await conn.getLatestBlockhash('confirmed');\n legacyTx.recentBlockhash = blockhash;\n legacyTx.lastValidBlockHeight = lastValidBlockHeight;\n }\n if (!legacyTx.feePayer) {\n legacyTx.feePayer = connectedPubkey;\n }\n }\n else {\n const versionedTx = transaction;\n if (!versionedTx.message.recentBlockhash) {\n const conn = new Connection(this.getRpcUrl(), 'confirmed');\n const { blockhash } = await conn.getLatestBlockhash('confirmed');\n versionedTx.message.recentBlockhash = blockhash;\n }\n }\n try {\n const signTxFeat = getSignTransactionFeature(wallet);\n const wireBytes = txToWireBytes(transaction);\n // signTransaction navigates to `solana-wallet:`; only show the\n // gesture modal if the tap activation has decayed (see runTransaction).\n const signResult = await signWithFreshActivation(this.config.theme, () => signTxFeat.signTransaction({ account, transaction: wireBytes, chain }), 'MWA returned no signed transaction');\n const { signedTransaction: signedBytes } = signResult;\n return txFromWireBytes(new Uint8Array(signedBytes));\n }\n catch (error) {\n if (((_b = error === null || error === void 0 ? void 0 : error.message) === null || _b === void 0 ? void 0 : _b.includes('not connected')) || ((_c = error === null || error === void 0 ? void 0 : error.message) === null || _c === void 0 ? void 0 : _c.includes('not authorized')) ||\n (error === null || error === void 0 ? void 0 : error.code) === 'ERROR_AUTHORIZATION_FAILED') {\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n throw new Error(`Failed to sign transaction: ${error.message}`);\n }\n }\n async signAndSubmitTransaction(transaction, feePayer) {\n var _a, _b, _c, _d, _e, _f, _g;\n // Native: signAndSendTransactions inside a transact() session.\n // The wallet submits to its own RPC; we then await confirmation on\n // ours. Surfnet (custom RPC) needs manual submission because the\n // wallet won't route there — we fall back to sign-only + manual send.\n if (!getPlatform().hasDOM) {\n if (!this.nativeAuthToken || !this.nativeAddress) {\n throw new Error('Wallet not connected. Call login() first.');\n }\n const connectedPubkey = new PublicKey(this.nativeAddress);\n const rpcUrl = this.getRpcUrl();\n const connection = new Connection(rpcUrl, 'confirmed');\n const isSurfnet = rpcUrl === SURFNET_RPC_URL;\n const { blockhash, lastValidBlockHeight } = await connection.getLatestBlockhash('confirmed');\n const isLegacyTransaction = 'recentBlockhash' in transaction && !('message' in transaction && 'staticAccountKeys' in transaction.message);\n if (isLegacyTransaction) {\n const legacyTx = transaction;\n legacyTx.recentBlockhash = blockhash;\n legacyTx.lastValidBlockHeight = lastValidBlockHeight;\n if (!legacyTx.feePayer)\n legacyTx.feePayer = feePayer !== null && feePayer !== void 0 ? feePayer : connectedPubkey;\n }\n else {\n const versionedTx = transaction;\n versionedTx.message.recentBlockhash = blockhash;\n }\n const transact = await this.loadTransact();\n const authToken = this.nativeAuthToken;\n try {\n if (isSurfnet) {\n // Surfnet: sign only, submit manually to Surfnet RPC\n // (the wallet would route signAndSend to its own RPC).\n const signed = await transact(async (wallet) => {\n await wallet.reauthorize({ auth_token: authToken, identity: this.appIdentity });\n const results = await wallet.signTransactions({ transactions: [transaction] });\n if (!results || results.length === 0)\n throw new Error('MWA returned no signed transaction');\n return results[0];\n });\n const sig = await connection.sendRawTransaction(signed.serialize(), { preflightCommitment: 'confirmed' });\n await confirmAndCheckTransaction(connection, sig);\n return sig;\n }\n const sig = await transact(async (wallet) => {\n await wallet.reauthorize({ auth_token: authToken, identity: this.appIdentity });\n const results = await wallet.signAndSendTransactions({ transactions: [transaction] });\n if (!results || results.length === 0)\n throw new Error('MWA returned no signature');\n return results[0];\n });\n await confirmAndCheckTransaction(connection, sig);\n return sig;\n }\n catch (error) {\n if (this.isNativeUserCancel(error)) {\n throw new Error('User declined to sign');\n }\n if ((error === null || error === void 0 ? void 0 : error.code) === 'ERROR_AUTHORIZATION_FAILED' || (error === null || error === void 0 ? void 0 : error.code) === 'ERROR_REAUTHORIZE') {\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n throw new Error(`Failed to sign+submit transaction: ${(_a = error === null || error === void 0 ? void 0 : error.message) !== null && _a !== void 0 ? _a : error}`);\n }\n }\n const account = await this.ensureAuthorized();\n const connectedPubkey = new PublicKey(account.publicKey);\n const wallet = await this.ensureWallet();\n const chain = this.getChain();\n const rpcUrl = this.getRpcUrl();\n const connection = new Connection(rpcUrl, 'confirmed');\n const isSurfnet = rpcUrl === SURFNET_RPC_URL;\n try {\n // Preserve existing prep: refresh blockhash and set fee payer.\n const { blockhash, lastValidBlockHeight } = await connection.getLatestBlockhash('confirmed');\n const isLegacyTransaction = 'recentBlockhash' in transaction && !('message' in transaction && 'staticAccountKeys' in transaction.message);\n if (isLegacyTransaction) {\n const legacyTx = transaction;\n legacyTx.recentBlockhash = blockhash;\n legacyTx.lastValidBlockHeight = lastValidBlockHeight;\n if (!legacyTx.feePayer) {\n legacyTx.feePayer = feePayer !== null && feePayer !== void 0 ? feePayer : connectedPubkey;\n }\n }\n else {\n const versionedTx = transaction;\n versionedTx.message.recentBlockhash = blockhash;\n }\n if (isSurfnet) {\n // Surfnet: sign locally via wallet-standard, submit manually\n // to the Surfnet RPC. Don't route through signAndSendTransaction\n // because the wallet would submit to its own RPC.\n const signTxFeat = getSignTransactionFeature(wallet);\n const wireBytes = txToWireBytes(transaction);\n // Gesture modal only if activation decayed (see runTransaction).\n const signResult = await signWithFreshActivation(this.config.theme, () => signTxFeat.signTransaction({ account, transaction: wireBytes, chain }), 'MWA returned no signed transaction');\n const { signedTransaction: signedBytes } = signResult;\n const signedTx = txFromWireBytes(new Uint8Array(signedBytes));\n const signature = await connection.sendRawTransaction(signedTx.serialize(), {\n preflightCommitment: 'confirmed',\n });\n const confirmation = await connection.confirmTransaction({\n signature,\n blockhash,\n lastValidBlockHeight,\n }, 'confirmed');\n if (confirmation.value.err) {\n throw new Error(`Transaction failed: ${confirmation.value.err.toString()}`);\n }\n return signature;\n }\n // Non-Surfnet: wallet signs and submits to its own RPC.\n // Gesture modal only if activation decayed (see runTransaction).\n const signSendFeat = getSignAndSendTransactionFeature(wallet);\n const wireBytes = txToWireBytes(transaction);\n const sendResult = await signWithFreshActivation(this.config.theme, () => signSendFeat.signAndSendTransaction({\n account,\n transaction: wireBytes,\n chain,\n options: { commitment: 'confirmed' },\n }));\n const { signature: sigBytes } = sendResult;\n const signature = bs58.encode(sigBytes);\n await confirmAndCheckTransaction(connection, signature);\n return signature;\n }\n catch (error) {\n if (((_b = error === null || error === void 0 ? void 0 : error.message) === null || _b === void 0 ? void 0 : _b.includes('not connected')) || ((_c = error === null || error === void 0 ? void 0 : error.message) === null || _c === void 0 ? void 0 : _c.includes('not authorized')) ||\n (error === null || error === void 0 ? void 0 : error.code) === 'ERROR_AUTHORIZATION_FAILED') {\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n const isUserRejection = (error === null || error === void 0 ? void 0 : error.code) === 4001 ||\n ((_d = error === null || error === void 0 ? void 0 : error.message) === null || _d === void 0 ? void 0 : _d.toLowerCase().includes('user rejected')) ||\n ((_e = error === null || error === void 0 ? void 0 : error.message) === null || _e === void 0 ? void 0 : _e.toLowerCase().includes('user denied')) ||\n ((_f = error === null || error === void 0 ? void 0 : error.message) === null || _f === void 0 ? void 0 : _f.toLowerCase().includes('user cancelled')) ||\n ((_g = error === null || error === void 0 ? void 0 : error.message) === null || _g === void 0 ? void 0 : _g.toLowerCase().includes('user canceled'));\n if (!isUserRejection) {\n console.error('[SolanaMobileWallet] Transaction failed:', error);\n }\n throw new Error(`Failed to execute transaction: ${error.message}`);\n }\n }\n async runTransaction(_evmTransactionData, solTransactionData, options) {\n var _a, _b, _c, _d, _e, _f, _g, _h;\n if (!solTransactionData) {\n throw new Error('Solana transaction data is required for mobile wallet');\n }\n const account = await this.ensureAuthorized();\n const connectedPubkey = new PublicKey(account.publicKey);\n const wallet = await this.ensureWallet();\n const chain = this.getChain(solTransactionData.network);\n const rpcUrl = this.getRpcUrl(solTransactionData.network);\n const connection = new Connection(rpcUrl, 'confirmed');\n const isSurfnet = rpcUrl === SURFNET_RPC_URL;\n try {\n const remainingAccounts = convertRemainingAccounts(solTransactionData.txArgs[0].remainingAccounts);\n const app_id = solTransactionData.appId;\n if (!app_id) {\n throw new Error('App ID is required');\n }\n // Mock wallet adapter for Anchor — only publicKey is read during build.\n const mockWalletAdapter = {\n publicKey: connectedPubkey,\n signTransaction: async (tx) => tx,\n signAllTransactions: async (txs) => txs,\n };\n const anchorProvider = new anchor.AnchorProvider(connection, mockWalletAdapter, anchor.AnchorProvider.defaultOptions());\n const finalDeduped = [];\n for (const acc of remainingAccounts) {\n const existing = finalDeduped.find((d) => d.pubkey.equals(acc.pubkey));\n if (existing) {\n existing.isSigner = existing.isSigner || acc.isSigner;\n existing.isWritable = existing.isWritable || acc.isWritable;\n }\n else {\n finalDeduped.push(acc);\n }\n }\n let tx;\n if (solTransactionData.signedTransaction) {\n // Server has co-signed a CPI attestation. Do NOT mutate its\n // blockhash — that would invalidate the server's signature.\n tx = VersionedTransaction.deserialize(Buffer.from(solTransactionData.signedTransaction, 'base64'));\n }\n else {\n const result = await buildSetDocumentsTransaction(connection, solTransactionData.txArgs[0].idl, anchorProvider, connectedPubkey, {\n app_id,\n documents: solTransactionData.txArgs[0].setDocumentData,\n delete_paths: solTransactionData.txArgs[0].deletePaths,\n txData: solTransactionData.txArgs[0].txData\n }, finalDeduped, solTransactionData.lutKey, solTransactionData.preInstructions, false, solTransactionData.additionalLutAddresses);\n tx = result.tx;\n }\n // Sign-only branch — sign the tx but don't submit.\n if ((options === null || options === void 0 ? void 0 : options.shouldSubmitTx) === false) {\n const signTxFeat = getSignTransactionFeature(wallet);\n const wireBytes = txToWireBytes(tx);\n // signTransaction also navigates to `solana-wallet:`; only\n // surface the gesture modal if the tap activation has decayed.\n const signOnlyResult = await signWithFreshActivation(this.config.theme, () => signTxFeat.signTransaction({ account, transaction: wireBytes, chain }), 'MWA returned no signed transaction');\n if (!signOnlyResult) {\n throw new Error('MWA returned no signed transaction');\n }\n const { signedTransaction: signedBytes } = signOnlyResult;\n const signedTx = txFromWireBytes(new Uint8Array(signedBytes));\n return {\n signedTransaction: signedTx,\n blockNumber: 0,\n gasUsed: '0',\n data: ''\n };\n }\n if (isSurfnet) {\n // Surfnet: sign locally via wallet-standard, submit manually.\n const signTxFeat = getSignTransactionFeature(wallet);\n const wireBytes = txToWireBytes(tx);\n // signTransaction also navigates to `solana-wallet:`; only\n // surface the gesture modal if the tap activation has decayed.\n const surfnetResult = await signWithFreshActivation(this.config.theme, () => signTxFeat.signTransaction({ account, transaction: wireBytes, chain }), 'MWA returned no signed transaction');\n if (!surfnetResult) {\n throw new Error('MWA returned no signed transaction');\n }\n const { signedTransaction: signedBytes } = surfnetResult;\n const signedTx = txFromWireBytes(new Uint8Array(signedBytes));\n const { blockhash, lastValidBlockHeight } = await connection.getLatestBlockhash('confirmed');\n const signature = await connection.sendRawTransaction(signedTx.serialize(), {\n preflightCommitment: 'confirmed',\n });\n const confirmation = await connection.confirmTransaction({\n signature,\n blockhash,\n lastValidBlockHeight,\n }, 'confirmed');\n if (confirmation.value.err) {\n throw new Error(`Transaction failed: ${confirmation.value.err.toString()}`);\n }\n const txInfo = await connection.getParsedTransaction(signature, {\n maxSupportedTransactionVersion: 0,\n commitment: 'confirmed',\n });\n return {\n transactionSignature: signature,\n blockNumber: (txInfo === null || txInfo === void 0 ? void 0 : txInfo.slot) || 0,\n gasUsed: ((_a = txInfo === null || txInfo === void 0 ? void 0 : txInfo.meta) === null || _a === void 0 ? void 0 : _a.fee.toString()) || '0',\n data: txInfo === null || txInfo === void 0 ? void 0 : txInfo.meta,\n };\n }\n // Non-Surfnet: wallet signs and submits to its own RPC.\n // signAndSendTransaction dispatches a `solana-wallet:` navigation\n // that Chrome blocks without transient user activation. Fast txs\n // still hold the tap activation and navigate directly; slow ones\n // (e.g. a swap whose server build exceeds Chrome's ~5s window)\n // have lost it, so signWithFreshActivation shows the \"Sign in\"\n // modal to mint a fresh activation — no modal when not needed.\n const signSendFeat = getSignAndSendTransactionFeature(wallet);\n const wireBytes = txToWireBytes(tx);\n const sendResult = await signWithFreshActivation(this.config.theme, () => signSendFeat.signAndSendTransaction({\n account,\n transaction: wireBytes,\n chain,\n options: { commitment: 'confirmed' },\n }));\n if (!sendResult) {\n throw new Error('MWA returned no signature');\n }\n const { signature: sigBytes } = sendResult;\n const signature = bs58.encode(sigBytes);\n const txInfo = await confirmAndCheckTransaction(connection, signature);\n return {\n transactionSignature: signature,\n blockNumber: (txInfo === null || txInfo === void 0 ? void 0 : txInfo.slot) || 0,\n gasUsed: ((_b = txInfo === null || txInfo === void 0 ? void 0 : txInfo.meta) === null || _b === void 0 ? void 0 : _b.fee.toString()) || '0',\n data: txInfo === null || txInfo === void 0 ? void 0 : txInfo.meta,\n };\n }\n catch (error) {\n if (((_c = error === null || error === void 0 ? void 0 : error.message) === null || _c === void 0 ? void 0 : _c.includes('not connected')) || ((_d = error === null || error === void 0 ? void 0 : error.message) === null || _d === void 0 ? void 0 : _d.includes('not authorized')) ||\n (error === null || error === void 0 ? void 0 : error.code) === 'ERROR_AUTHORIZATION_FAILED') {\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n const isUserRejection = (error === null || error === void 0 ? void 0 : error.code) === 4001 ||\n ((_e = error === null || error === void 0 ? void 0 : error.message) === null || _e === void 0 ? void 0 : _e.toLowerCase().includes('user rejected')) ||\n ((_f = error === null || error === void 0 ? void 0 : error.message) === null || _f === void 0 ? void 0 : _f.toLowerCase().includes('user denied')) ||\n ((_g = error === null || error === void 0 ? void 0 : error.message) === null || _g === void 0 ? void 0 : _g.toLowerCase().includes('user cancelled')) ||\n ((_h = error === null || error === void 0 ? void 0 : error.message) === null || _h === void 0 ? void 0 : _h.toLowerCase().includes('user canceled'));\n if (!isUserRejection) {\n console.error('[SolanaMobileWallet] Transaction failed:', error);\n }\n throw new Error(`Failed to execute transaction: ${error.message}`);\n }\n }\n async getNativeMethods() {\n var _a, _b, _c;\n // Synchronous-ish state read; tolerate the wallet being unauthorized\n // (return nulls). Don't trigger ensureAuthorized() here — callers that\n // need the wallet active should sign through one of the sign methods.\n const wallet = this.wallet;\n if (!wallet) {\n return {\n authToken: null,\n walletUriBase: null,\n publicKey: null,\n base64Address: null,\n wallet: null,\n currentAuthorization: null,\n };\n }\n const acct = (_a = wallet.accounts) === null || _a === void 0 ? void 0 : _a[0];\n const auth = wallet.currentAuthorization;\n let publicKey = null;\n let base64Address = null;\n if (acct) {\n publicKey = new PublicKey(acct.publicKey);\n base64Address = btoa(String.fromCharCode(...acct.publicKey));\n }\n return {\n authToken: (_b = auth === null || auth === void 0 ? void 0 : auth.auth_token) !== null && _b !== void 0 ? _b : null,\n walletUriBase: (_c = auth === null || auth === void 0 ? void 0 : auth.wallet_uri_base) !== null && _c !== void 0 ? _c : null,\n publicKey,\n base64Address,\n wallet,\n currentAuthorization: auth !== null && auth !== void 0 ? auth : null,\n };\n }\n /* ----------------------------------------------------------- *\n * Private Helpers\n * ----------------------------------------------------------- */\n getRpcUrl(network) {\n var _a;\n return resolveSolanaRpcUrl(this.networkUrl, (_a = network !== null && network !== void 0 ? network : this.configuredNetwork) !== null && _a !== void 0 ? _a : mapClusterToRpcNetwork(this.cluster), \"Solana mobile wallet transaction\");\n }\n}\nSolanaMobileWalletProvider.instance = null;\n","import { getActiveSessionManager as SessionManager, createSessionWithSignature, genAuthNonce, genSolanaMessage, buildSetDocumentsTransaction, convertRemainingAccounts } from '@bounded-sh/core';\nimport { Buffer } from 'buffer';\nimport { setCurrentUser } from '../../global';\nimport { getPlatform } from '../../platform';\nimport { PublicKey, Connection, Transaction, VersionedTransaction } from '@solana/web3.js';\nimport * as anchor from '@coral-xyz/anchor';\nimport { normalizeSolanaRpcUrl, resolveSolanaRpcUrl, resolveSolanaWalletStandardChain, SURFNET_RPC_URL, } from '../solana-rpc';\nimport { confirmAndCheckTransaction } from './transaction-utils';\nimport bs58 from 'bs58';\n// React/react-dom are externalized peer deps (see rollup.config.js\n// sharedExternal / isExternal) — rollup emits these as bare ESM imports the\n// consumer's bundler resolves; they are NOT inlined. Static top-level ESM\n// imports (instead of a runtime require() behind a `typeof window` guard) so\n// the browser ESM bundle never evaluates `require`, which is undefined in a\n// production ESM/Vite build (it would throw ReferenceError at module eval).\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom/client';\n// @privy-io/react-auth(/solana) are OPTIONAL peer deps. They are loaded lazily\n// via dynamic import() rather than a static top-level import: a static import\n// would (a) in the ESM bundle still be a bare `import` the consumer resolves —\n// fine — but (b) in the CJS bundle become an eager top-level require() that\n// throws for any consumer who hasn't installed Privy (this module is pulled\n// into the entry via a static re-export). The lazy import keeps the browser\n// ESM bundle free of any runtime `require('@privy-io...')` AND lets a consumer\n// who never uses Privy load the package without it installed. Populated once\n// in `initialize()` (browser-only) before the Privy React tree renders.\nlet privyImports;\nlet privySolana;\nasync function loadPrivyModules() {\n if (privyImports && privySolana)\n return;\n [privyImports, privySolana] = await Promise.all([\n import('@privy-io/react-auth'),\n import('@privy-io/react-auth/solana'),\n ]);\n}\n// @solana/kit is an OPTIONAL wallet-only dep, used only to build the Privy\n// Solana RPC transports. Loaded lazily (like the Privy SDKs) via dynamic\n// import() rather than a static top-level import: a static import is hoisted by\n// rollup into the entry chunk, forcing every consumer (including vanilla,\n// non-wallet web apps) to have @solana/kit installed and eagerly require()d.\n// Deferring it here keeps it out of the entry bundle.\nlet solanaKit;\nasync function loadSolanaKit() {\n if (!solanaKit) {\n solanaKit = await import('@solana/kit');\n }\n return solanaKit;\n}\nfunction requirePrivyWalletConfig(privyConfig) {\n if (!privyConfig || typeof privyConfig.appId !== 'string' || privyConfig.appId.trim() === '') {\n throw new Error('Privy auth requires config.privyConfig.appId; no default Privy app is used.');\n }\n if (!privyConfig.config || typeof privyConfig.config !== 'object') {\n throw new Error('Privy auth requires config.privyConfig.config for the app-scoped Privy provider.');\n }\n return {\n appId: privyConfig.appId,\n config: privyConfig.config,\n };\n}\nexport class PrivyWalletProvider {\n constructor(appName, appLogoUrl, privyConfig, networkUrl = null, configuredNetwork = null) {\n this.containerElement = null;\n this.chainId = null;\n this.root = null;\n this.privyMethods = null;\n this.pendingLogin = null;\n // Resolved Solana RPC URLs (computed in the constructor; consumed in\n // initialize() where @solana/kit is lazily loaded to build the transports).\n this.configuredRpcUrl = null;\n // This is used to store the pending transaction until the wallet is connected for workaround for the wallet not being connected after login completion\n this.pendingTransaction = null;\n // This is used to store pending signTransaction calls until the wallet is connected\n this.pendingSignTransaction = null;\n // This is used to store pending signMessage calls until the wallet is connected\n this.pendingSignMessage = null;\n // This is used to store pending signAndSubmitTransaction calls until the wallet is connected\n this.pendingSignAndSubmitTransaction = null;\n this.networkUrl = normalizeSolanaRpcUrl(networkUrl);\n this.configuredNetwork = configuredNetwork;\n if (typeof window === 'undefined') {\n throw new Error('PrivyWalletProvider can only be instantiated in a browser environment');\n }\n const requiredPrivyConfig = requirePrivyWalletConfig(privyConfig);\n if (PrivyWalletProvider.instance) {\n return PrivyWalletProvider.instance;\n }\n this.containerElement = null;\n this.root = null;\n this.privyMethods = null;\n this.privyConfig = requiredPrivyConfig;\n if (!this.privyConfig.config.appearance) {\n this.privyConfig.config.appearance = {};\n }\n if (appName != null && appName != '' && !this.privyConfig.config.appearance.landingHeader) {\n this.privyConfig.config.appearance.landingHeader = appName;\n }\n if (appLogoUrl != null && appLogoUrl != '' && !this.privyConfig.config.appearance.logo) {\n this.privyConfig.config.appearance.logo = appLogoUrl;\n }\n // (externalWallets connectors are configured in initialize() once the\n // Privy SDK is lazily loaded — see loadPrivyModules.)\n // Resolve Solana RPC URLs for v3. The @solana/kit transports are built\n // lazily in initialize() so a non-Privy consumer never needs @solana/kit.\n if (this.networkUrl || configuredNetwork) {\n this.configuredRpcUrl = resolveSolanaRpcUrl(this.networkUrl, configuredNetwork, \"Privy Solana RPC\");\n }\n if (configuredNetwork) {\n this.chainId = resolveSolanaWalletStandardChain(configuredNetwork, \"Privy Solana transaction\");\n }\n const existingProviders = document.querySelectorAll('[data-privy-provider]');\n existingProviders.forEach(el => el.remove());\n // Fire-and-forget: initialize() lazily loads the Privy SDK then renders\n // the hidden React tree. privyMethods stays null until that render runs,\n // which the login/connect methods already wait for. Surface a clear error\n // if the optional @privy-io/react-auth peer dep isn't installed.\n this.initialize().catch((err) => {\n console.error('PrivyWalletProvider: failed to load @privy-io/react-auth — ensure it is installed to use Privy login.', err);\n });\n // Assign this instance to the static instance property\n PrivyWalletProvider.instance = this;\n }\n // Optional: Provide a static method to get the instance\n static getInstance(appName, appLogoUrl, privyConfig, networkUrl = null, configuredNetwork = null) {\n if (!PrivyWalletProvider.instance) {\n new PrivyWalletProvider(appName, appLogoUrl, privyConfig, networkUrl, configuredNetwork);\n }\n return PrivyWalletProvider.instance;\n }\n async initialize() {\n // Lazily load the Privy SDK (browser-only) before building the React tree.\n await loadPrivyModules();\n // Build the Solana RPC transports now that we're on the async path, so\n // @solana/kit can be lazily imported (kept out of the entry bundle).\n const { createSolanaRpc, createSolanaRpcSubscriptions } = await loadSolanaKit();\n if (this.configuredRpcUrl && this.chainId && !this.privyConfig.config.solana) {\n this.privyConfig.config.solana = {};\n }\n if (this.configuredRpcUrl && this.chainId) {\n this.privyConfig.config.solana.rpcs = {\n [this.chainId]: {\n rpc: createSolanaRpc(this.configuredRpcUrl),\n rpcSubscriptions: createSolanaRpcSubscriptions(this.configuredRpcUrl.replace('https://', 'wss://'))\n }\n };\n }\n // Ensure externalWallets connectors are always configured — required for\n // useWallets().ready to resolve even when no browser extension is present.\n if (!this.privyConfig.config.externalWallets && privySolana) {\n this.privyConfig.config.externalWallets = {\n solana: { connectors: privySolana.toSolanaWalletConnectors() }\n };\n }\n if (!this.containerElement) {\n this.containerElement = document.createElement('div');\n this.containerElement.setAttribute('data-privy-provider', 'true');\n document.body.appendChild(this.containerElement);\n const that = this;\n const PrivyComponent = () => {\n const privy = privyImports.usePrivy();\n const useOAuthTokens = privyImports.useOAuthTokens();\n const useFundWalletSolana = privySolana.useFundWallet();\n const useSendTransactionSolana = privySolana.useSignAndSendTransaction();\n const { signTransaction } = privySolana.useSignTransaction();\n const { signMessage: signMessageHook } = privySolana.useSignMessage();\n const { ready: walletReady, wallets } = privySolana.useWallets();\n const { createWallet } = privySolana.useCreateWallet();\n const { exportWallet } = privySolana.useExportWallet();\n const useSolanaWallets = { createWallet, exportWallet, ready: walletReady, wallets };\n const useIdentityToken = privyImports.useIdentityToken();\n const { connectWallet } = privyImports.useConnectWallet({\n onSuccess: async ({ wallet }) => {\n await that.createSession(wallet.address, await privy.getAccessToken(), useIdentityToken.identityToken);\n // If there's a pending transaction, execute it now\n if (that.pendingTransaction) {\n const { evmTransactionData, solTransactionData, options, resolve, reject } = that.pendingTransaction;\n try {\n const result = await that.runTransaction(evmTransactionData, solTransactionData, options);\n resolve(result);\n }\n catch (error) {\n reject(error);\n }\n that.pendingTransaction = null;\n }\n // If there's a pending signTransaction, execute it now\n if (that.pendingSignTransaction) {\n const { transaction, resolve, reject } = that.pendingSignTransaction;\n try {\n const result = await that.signTransaction(transaction);\n resolve(result);\n }\n catch (error) {\n reject(error);\n }\n that.pendingSignTransaction = null;\n }\n // If there's a pending signMessage, execute it now\n if (that.pendingSignMessage) {\n const { message, resolve, reject } = that.pendingSignMessage;\n try {\n const result = await that.signMessage(message);\n resolve(result);\n }\n catch (error) {\n reject(error);\n }\n that.pendingSignMessage = null;\n }\n // If there's a pending signAndSubmitTransaction, execute it now\n if (that.pendingSignAndSubmitTransaction) {\n const { transaction, feePayer, resolve, reject } = that.pendingSignAndSubmitTransaction;\n try {\n const result = await that.signAndSubmitTransaction(transaction, feePayer);\n resolve(result);\n }\n catch (error) {\n reject(error);\n }\n that.pendingSignAndSubmitTransaction = null;\n }\n },\n onError: (error) => {\n // Only log errors that aren't user-initiated cancellations\n if (error !== 'exited_auth_flow' && (error === null || error === void 0 ? void 0 : error.message) !== 'exited_auth_flow') {\n console.error('Wallet connection error:', error);\n }\n if (that.pendingTransaction) {\n that.pendingTransaction.reject(error);\n that.pendingTransaction = null;\n }\n if (that.pendingSignTransaction) {\n that.pendingSignTransaction.reject(error);\n that.pendingSignTransaction = null;\n }\n if (that.pendingSignMessage) {\n that.pendingSignMessage.reject(error);\n that.pendingSignMessage = null;\n }\n if (that.pendingSignAndSubmitTransaction) {\n that.pendingSignAndSubmitTransaction.reject(error);\n that.pendingSignAndSubmitTransaction = null;\n }\n }\n });\n const { login } = privyImports.useLogin({\n onComplete: async ({ user }) => {\n var _a;\n // This is a hack to indicate to the app that privy login is not complete\n // @ts-ignore\n window.runningPrivyOnComplete = true;\n if (!user) {\n SessionManager().clearSession();\n return;\n }\n const solanaLinkedAccounts = user.linkedAccounts.filter((account) => account.chainType === 'solana');\n const sortedLinkedAccounts = solanaLinkedAccounts.sort((a, b) => new Date(b.latestVerifiedAt).getTime() - new Date(a.latestVerifiedAt).getTime());\n let finalAddress = (_a = sortedLinkedAccounts[0]) === null || _a === void 0 ? void 0 : _a.address;\n if (!finalAddress) {\n const solanaWallet = await createWallet();\n finalAddress = solanaWallet.address;\n SessionManager().clearSession();\n return;\n }\n const session = await SessionManager().getSession();\n if (!session || finalAddress !== session.address) {\n try {\n const accessToken = await privy.getAccessToken();\n const idToken = useIdentityToken.identityToken;\n await that.createSession(finalAddress, accessToken, idToken);\n }\n catch (error) {\n console.error('Error creating session:', error);\n }\n }\n // @ts-ignore\n window.runningPrivyOnComplete = false;\n setCurrentUser({ address: finalAddress, provider: that });\n if (that.pendingLogin) {\n that.pendingLogin.resolve({ address: finalAddress, provider: that });\n that.pendingLogin = null;\n }\n },\n onError: (error) => {\n // Only log errors that aren't user-initiated cancellations\n if (error !== 'exited_auth_flow' && (error === null || error === void 0 ? void 0 : error.message) !== 'exited_auth_flow') {\n console.error('Login error:', error);\n }\n if (that.pendingLogin) {\n that.pendingLogin.reject(error);\n that.pendingLogin = null;\n }\n }\n });\n const { logout } = privyImports.useLogout({\n onSuccess: () => {\n SessionManager().clearSession();\n setCurrentUser(null);\n }\n });\n React.useEffect(() => {\n if (privy.ready) {\n that.privyMethods = {\n ready: privy.ready,\n walletReady: walletReady,\n authenticated: privy.authenticated,\n wallets,\n login,\n logout,\n connectWallet,\n getAccessToken: privy.getAccessToken,\n identityToken: useIdentityToken.identityToken,\n usePrivy: privy,\n useOAuthTokens: useOAuthTokens,\n useFundWalletSolana: useFundWalletSolana,\n useSendTransactionSolana: useSendTransactionSolana,\n useSolanaWallets: useSolanaWallets,\n signTransaction: signTransaction,\n signMessage: signMessageHook,\n };\n }\n }, [privy.ready, privy.authenticated, wallets, login, logout, walletReady]);\n return null;\n };\n const FinalPrivyComponent = () => {\n if (typeof window === 'undefined') {\n return null;\n }\n return React.createElement(privyImports.PrivyProvider, {\n appId: this.privyConfig.appId,\n config: this.privyConfig.config,\n children: React.createElement(PrivyComponent)\n });\n };\n this.root = ReactDOM.createRoot(this.containerElement);\n this.root.render(React.createElement(FinalPrivyComponent));\n }\n }\n async login() {\n var _a, _b;\n await this.ensureReady();\n // Check if we have a valid session that matches an authenticated wallet\n const session = await SessionManager().getSession();\n if (((_a = this.privyMethods) === null || _a === void 0 ? void 0 : _a.authenticated) && ((_b = this.privyMethods.wallets) === null || _b === void 0 ? void 0 : _b.length) > 0 && session) {\n // Find the wallet matching the session\n const matchingWallet = this.privyMethods.wallets.find((wallet) => wallet.address === session.address);\n if (matchingWallet) {\n // Valid session with matching wallet, return immediately\n setCurrentUser({ address: matchingWallet.address, provider: this });\n return {\n address: matchingWallet.address,\n provider: this\n };\n }\n // Session exists but doesn't match any connected wallet\n // This can happen after wallet switching - force fresh login\n console.log('Session wallet mismatch detected, forcing fresh login flow');\n }\n // If no valid session or wallet mismatch, force a fresh login flow\n // This ensures the user can select the correct wallet, especially after logout\n if (this.pendingLogin) {\n return new Promise((resolve, reject) => {\n this.pendingLogin.resolve = resolve;\n this.pendingLogin.reject = reject;\n });\n }\n return new Promise((resolve, reject) => {\n this.pendingLogin = { resolve, reject };\n // open Privy modal to let user select/verify wallet\n this.privyMethods.login();\n // safety timeout\n setTimeout(() => {\n if (this.pendingLogin) {\n this.pendingLogin.reject(new Error(\"Login timed out\"));\n this.pendingLogin = null;\n }\n }, 180000);\n });\n }\n async getNativeMethods() {\n var _a;\n await this.ensureReady();\n return (_a = this.privyMethods) === null || _a === void 0 ? void 0 : _a.usePrivy;\n }\n async logout() {\n await this.ensureReady();\n await this.privyMethods.logout();\n }\n async runTransaction(_evmTransactionData, solTransactionData, options) {\n var _a, _b, _c;\n await this.ensureReady({ waitForWallets: true });\n let session = await SessionManager().getSession();\n let sessionAddress = session === null || session === void 0 ? void 0 : session.address;\n let privyWallets = (_a = this.privyMethods) === null || _a === void 0 ? void 0 : _a.wallets;\n let privyWallet = privyWallets === null || privyWallets === void 0 ? void 0 : privyWallets.find((wallet) => wallet.address === sessionAddress);\n // If wallet not found yet, it may be an embedded wallet (email login) that hasn't\n // appeared in the wallets array due to React state timing. Wait for it before\n // falling back to connectWallet() which shows an unwanted wallet selection modal.\n if (!privyWallets || privyWallets.length === 0 || !privyWallet) {\n if (((_b = this.privyMethods) === null || _b === void 0 ? void 0 : _b.authenticated) && sessionAddress) {\n privyWallet = await this.waitForMatchingWallet(sessionAddress);\n }\n }\n if (!privyWallet) {\n // If there's already a pending transaction, throw an error to prevent overlapping calls\n if (this.pendingTransaction) {\n throw new Error(\"Oops... something went wrong. Please try again.\");\n }\n // Create a promise to wait for the transaction result\n return new Promise((resolve, reject) => {\n this.pendingTransaction = {\n resolve,\n reject,\n evmTransactionData: _evmTransactionData,\n solTransactionData,\n options\n };\n this.privyMethods.connectWallet();\n // Set a timeout to reject the promise if connection takes too long\n setTimeout(() => {\n if (this.pendingTransaction) {\n this.pendingTransaction.reject(new Error(\"Wallet connection timed out\"));\n this.pendingTransaction = null;\n }\n }, 30000); // 30 seconds timeout\n });\n }\n // Proceed with the transaction using privyWallet\n const wallet = privyWallet;\n if (solTransactionData == null) {\n throw new Error(\"Solana transaction data is required\");\n }\n const rpcUrl = this.getRpcUrl(solTransactionData.network);\n const connection = new Connection(rpcUrl, \"confirmed\");\n const remainingAccounts = convertRemainingAccounts(solTransactionData.txArgs[0].remainingAccounts);\n const app_id = solTransactionData.appId;\n if (!app_id) {\n throw new Error(\"App ID is required\");\n }\n const anchorProvider = new anchor.AnchorProvider(connection, wallet.provider, anchor.AnchorProvider.defaultOptions());\n const finalDeduped = [];\n for (const acc of remainingAccounts) {\n const existing = finalDeduped.find((d) => d.pubkey.equals(acc.pubkey));\n if (existing) {\n existing.isSigner = existing.isSigner || acc.isSigner;\n existing.isWritable = existing.isWritable || acc.isWritable;\n }\n else {\n finalDeduped.push(acc);\n }\n }\n let tx;\n let blockhash;\n let lastValidBlockHeight;\n if (solTransactionData.signedTransaction) {\n // Server already set the blockhash and co-signed — do NOT overwrite\n // the blockhash or it will invalidate the server's signature.\n tx = VersionedTransaction.deserialize(Buffer.from(solTransactionData.signedTransaction, 'base64'));\n // Extract the blockhash that was baked into the signed message\n blockhash = tx.message.recentBlockhash;\n const latestBlockhash = await connection.getLatestBlockhash('confirmed');\n lastValidBlockHeight = latestBlockhash.lastValidBlockHeight;\n }\n else {\n const result = await buildSetDocumentsTransaction(connection, solTransactionData.txArgs[0].idl, anchorProvider, new PublicKey(wallet.address), { app_id, documents: solTransactionData.txArgs[0].setDocumentData, delete_paths: solTransactionData.txArgs[0].deletePaths, txData: solTransactionData.txArgs[0].txData }, finalDeduped, solTransactionData.lutKey, solTransactionData.preInstructions, false, solTransactionData.additionalLutAddresses);\n tx = result.tx;\n blockhash = result.blockhash;\n lastValidBlockHeight = result.lastValidBlockHeight;\n }\n // Use duck typing instead of instanceof to handle multiple @solana/web3.js versions\n const isLegacyTx = 'recentBlockhash' in tx && !('message' in tx && 'staticAccountKeys' in tx.message);\n if (isLegacyTx) {\n tx.recentBlockhash = blockhash;\n tx.lastValidBlockHeight = lastValidBlockHeight;\n }\n else {\n tx.message.recentBlockhash = blockhash;\n }\n try {\n if ((options === null || options === void 0 ? void 0 : options.shouldSubmitTx) === false) {\n // Just sign, don't submit - return raw signed bytes (same as original runTransaction)\n const signedTx = await this.signTransactionRaw(tx, privyWallet, solTransactionData.network);\n return {\n signedTransaction: signedTx, // Raw Uint8Array from Privy\n blockNumber: 0,\n gasUsed: \"0\",\n data: \"\"\n };\n }\n // Sign and submit using shared helper\n const { signature, txInfo } = await this.signAndSubmitInternal(tx, privyWallet, rpcUrl, connection, solTransactionData.network);\n return {\n transactionSignature: signature,\n blockNumber: (txInfo === null || txInfo === void 0 ? void 0 : txInfo.slot) || 0,\n gasUsed: ((_c = txInfo === null || txInfo === void 0 ? void 0 : txInfo.meta) === null || _c === void 0 ? void 0 : _c.fee.toString()) || '0',\n data: txInfo === null || txInfo === void 0 ? void 0 : txInfo.meta,\n };\n }\n catch (err) {\n console.error(err);\n throw err;\n }\n }\n /**\n * Signs a Solana transaction without submitting it.\n *\n * This method handles blockhash automatically if not set - you do NOT need to\n * set recentBlockhash on the transaction before calling this method.\n * The network/RPC URL is derived from the provider's configuration (set during initialization).\n *\n * @param transaction - The transaction to sign (Transaction or VersionedTransaction)\n * @returns The signed transaction\n */\n async signTransaction(transaction) {\n var _a, _b;\n await this.ensureReady({ waitForWallets: true });\n let privyWallets = (_a = this.privyMethods) === null || _a === void 0 ? void 0 : _a.wallets;\n let session = await SessionManager().getSession();\n let sessionAddress = session === null || session === void 0 ? void 0 : session.address;\n let privyWallet = privyWallets === null || privyWallets === void 0 ? void 0 : privyWallets.find((wallet) => wallet.address === sessionAddress);\n // If there's already a pending sign transaction, throw an error to prevent overlapping calls\n if (this.pendingSignTransaction) {\n throw new Error(\"Oops... something went wrong. Please try again.\");\n }\n // If wallet not found yet, it may be an embedded wallet (email login) that hasn't\n // appeared in the wallets array due to React state timing. Wait for it before\n // falling back to connectWallet() which shows an unwanted wallet selection modal.\n if (!privyWallets || privyWallets.length === 0 || !privyWallet) {\n if (((_b = this.privyMethods) === null || _b === void 0 ? void 0 : _b.authenticated) && sessionAddress) {\n privyWallet = await this.waitForMatchingWallet(sessionAddress);\n }\n }\n // If still no wallet after waiting, trigger connection and queue the signing\n if (!privyWallet) {\n return new Promise((resolve, reject) => {\n this.pendingSignTransaction = {\n resolve,\n reject,\n transaction\n };\n this.privyMethods.connectWallet();\n // Set a timeout to reject the promise if connection takes too long\n setTimeout(() => {\n if (this.pendingSignTransaction) {\n this.pendingSignTransaction.reject(new Error(\"Wallet connection timed out\"));\n this.pendingSignTransaction = null;\n }\n }, 30000); // 30 seconds timeout\n });\n }\n // Privy requires serialized transaction bytes, which requires a blockhash.\n // If the transaction doesn't have one, get a fresh blockhash and set it.\n // Use duck typing instead of instanceof to handle multiple @solana/web3.js versions\n const isLegacyTransaction = 'recentBlockhash' in transaction && !('message' in transaction && 'staticAccountKeys' in transaction.message);\n if (isLegacyTransaction) {\n const legacyTx = transaction;\n if (!legacyTx.recentBlockhash) {\n const rpcUrl = this.getRpcUrl();\n const connection = new Connection(rpcUrl, 'confirmed');\n const { blockhash, lastValidBlockHeight } = await connection.getLatestBlockhash('confirmed');\n legacyTx.recentBlockhash = blockhash;\n legacyTx.lastValidBlockHeight = lastValidBlockHeight;\n }\n // Set feePayer if not already set\n if (!legacyTx.feePayer) {\n legacyTx.feePayer = new PublicKey(privyWallet.address);\n }\n }\n else {\n // VersionedTransaction\n const versionedTx = transaction;\n if (!versionedTx.message.recentBlockhash) {\n const rpcUrl = this.getRpcUrl();\n const connection = new Connection(rpcUrl, 'confirmed');\n const { blockhash } = await connection.getLatestBlockhash('confirmed');\n versionedTx.message.recentBlockhash = blockhash;\n }\n }\n // Sign using raw method, then deserialize for the public API\n const signedTxRaw = await this.signTransactionRaw(transaction, privyWallet);\n return this.deserializeSignedTransaction(signedTxRaw);\n }\n /**\n * Signs and submits a Solana transaction to the network.\n *\n * This method handles blockhash and transaction confirmation automatically - you do NOT need to\n * set recentBlockhash or lastValidBlockHeight on the transaction before calling this method.\n * The network/RPC URL is derived from the provider's configuration (set during initialization).\n *\n * @param transaction - The transaction to sign and submit (Transaction or VersionedTransaction)\n * @param feePayer - Optional fee payer public key. If not provided and the transaction doesn't\n * already have a feePayer set, the connected wallet address will be used.\n * Useful for co-signing scenarios where a different account pays the fees.\n * @returns The transaction signature\n */\n async signAndSubmitTransaction(transaction, feePayer) {\n var _a, _b;\n await this.ensureReady({ waitForWallets: true });\n let privyWallets = (_a = this.privyMethods) === null || _a === void 0 ? void 0 : _a.wallets;\n let session = await SessionManager().getSession();\n let sessionAddress = session === null || session === void 0 ? void 0 : session.address;\n let privyWallet = privyWallets === null || privyWallets === void 0 ? void 0 : privyWallets.find((wallet) => wallet.address === sessionAddress);\n // If there's already a pending signAndSubmitTransaction, throw an error to prevent overlapping calls\n if (this.pendingSignAndSubmitTransaction) {\n throw new Error(\"Oops... something went wrong. Please try again.\");\n }\n // If wallet not found yet, it may be an embedded wallet (email login) that hasn't\n // appeared in the wallets array due to React state timing. Wait for it before\n // falling back to connectWallet() which shows an unwanted wallet selection modal.\n if (!privyWallets || privyWallets.length === 0 || !privyWallet) {\n if (((_b = this.privyMethods) === null || _b === void 0 ? void 0 : _b.authenticated) && sessionAddress) {\n privyWallet = await this.waitForMatchingWallet(sessionAddress);\n }\n }\n // If still no wallet after waiting, trigger connection and queue the signing\n if (!privyWallet) {\n return new Promise((resolve, reject) => {\n this.pendingSignAndSubmitTransaction = {\n resolve,\n reject,\n transaction,\n feePayer\n };\n this.privyMethods.connectWallet();\n // Set a timeout to reject the promise if connection takes too long\n setTimeout(() => {\n if (this.pendingSignAndSubmitTransaction) {\n this.pendingSignAndSubmitTransaction.reject(new Error(\"Wallet connection timed out\"));\n this.pendingSignAndSubmitTransaction = null;\n }\n }, 30000); // 30 seconds timeout\n });\n }\n // Get RPC URL and create connection\n const rpcUrl = this.getRpcUrl();\n const connection = new Connection(rpcUrl, 'confirmed');\n // Get fresh blockhash and set it on the transaction before signing\n const { blockhash, lastValidBlockHeight } = await connection.getLatestBlockhash('confirmed');\n // Use duck typing instead of instanceof to handle multiple @solana/web3.js versions\n const isLegacyTransaction = 'recentBlockhash' in transaction && !('message' in transaction && 'staticAccountKeys' in transaction.message);\n if (isLegacyTransaction) {\n const legacyTx = transaction;\n legacyTx.recentBlockhash = blockhash;\n legacyTx.lastValidBlockHeight = lastValidBlockHeight;\n // Set feePayer if not already set\n if (!legacyTx.feePayer) {\n legacyTx.feePayer = feePayer !== null && feePayer !== void 0 ? feePayer : new PublicKey(privyWallet.address);\n }\n }\n else {\n // VersionedTransaction\n const versionedTx = transaction;\n versionedTx.message.recentBlockhash = blockhash;\n // Note: VersionedTransaction feePayer is set in the message at creation time\n // and cannot be modified after creation\n }\n // Use shared sign and submit logic\n const { signature } = await this.signAndSubmitInternal(transaction, privyWallet, rpcUrl, connection);\n return signature;\n }\n // ============ Private Helpers ============\n getRpcUrl(network) {\n return resolveSolanaRpcUrl(this.networkUrl, network !== null && network !== void 0 ? network : this.configuredNetwork, \"Privy Solana transaction\");\n }\n getChainId(network) {\n if (network) {\n return resolveSolanaWalletStandardChain(network, \"Privy Solana transaction\");\n }\n if (this.chainId)\n return this.chainId;\n if (this.configuredNetwork) {\n return resolveSolanaWalletStandardChain(this.configuredNetwork, \"Privy Solana transaction\");\n }\n throw new Error(\"Privy Solana transaction requires config.chain as solana_devnet, solana_mainnet, or surfnet.\");\n }\n /**\n * Internal sign transaction - serializes and signs via Privy\n * Returns the raw result from Privy (Uint8Array)\n * This mirrors exactly what runTransaction was doing\n */\n async signTransactionRaw(transaction, privyWallet, network) {\n var _a;\n // Serialize the transaction\n // Use duck typing instead of instanceof to handle multiple @solana/web3.js versions\n const isLegacyTransaction = 'recentBlockhash' in transaction && !('message' in transaction && 'staticAccountKeys' in transaction.message);\n let serializedForSign;\n if (isLegacyTransaction) {\n serializedForSign = transaction.serialize({ requireAllSignatures: false, verifySignatures: false });\n }\n else {\n serializedForSign = transaction.serialize();\n }\n // Sign via Privy - returns { signedTransaction: Uint8Array }\n const result = await ((_a = this.privyMethods) === null || _a === void 0 ? void 0 : _a.signTransaction({\n transaction: serializedForSign,\n wallet: privyWallet,\n chain: this.getChainId(network)\n }));\n // Privy returns { signedTransaction: Uint8Array }, unwrap it\n const signedTx = (result === null || result === void 0 ? void 0 : result.signedTransaction) || result;\n return signedTx;\n }\n /**\n * Deserialize a signed transaction from Uint8Array to Transaction object\n */\n deserializeSignedTransaction(signedTxRaw) {\n // Handle different formats Privy might return\n let signedTx;\n if (signedTxRaw instanceof Uint8Array) {\n signedTx = signedTxRaw;\n }\n else if (Array.isArray(signedTxRaw)) {\n signedTx = new Uint8Array(signedTxRaw);\n }\n else if (signedTxRaw && typeof signedTxRaw === 'object' && 'signedTransaction' in signedTxRaw) {\n // Privy might wrap the result\n signedTx = signedTxRaw.signedTransaction instanceof Uint8Array\n ? signedTxRaw.signedTransaction\n : new Uint8Array(signedTxRaw.signedTransaction);\n }\n else if (Buffer.isBuffer(signedTxRaw)) {\n signedTx = new Uint8Array(signedTxRaw);\n }\n else {\n throw new Error(`Unexpected signed transaction format: ${typeof signedTxRaw}`);\n }\n // Try to deserialize as VersionedTransaction first, fall back to legacy Transaction\n try {\n return VersionedTransaction.deserialize(signedTx);\n }\n catch (_a) {\n return Transaction.from(signedTx);\n }\n }\n /**\n * Internal sign and submit - handles Surfnet vs non-Surfnet logic\n * This is the core submission logic used by both signAndSubmitTransaction and runTransaction\n *\n * For Surfnet: sign with signTransactionRaw, then sendRawTransaction\n * For non-Surfnet: use Privy's signAndSendTransaction (combined operation)\n */\n async signAndSubmitInternal(transaction, privyWallet, rpcUrl, connection, network) {\n var _a;\n const isSurfnet = rpcUrl === SURFNET_RPC_URL;\n let signature;\n if (isSurfnet) {\n // For Surfnet: sign with signTransactionRaw, then sendRawTransaction\n const signedTx = await this.signTransactionRaw(transaction, privyWallet, network);\n signature = await connection.sendRawTransaction(signedTx);\n }\n else {\n // For non-Surfnet: use Privy's combined signAndSendTransaction\n // Serialize the transaction for Privy API\n // Use duck typing instead of instanceof to handle multiple @solana/web3.js versions\n const isLegacyTransaction = 'recentBlockhash' in transaction && !('message' in transaction && 'staticAccountKeys' in transaction.message);\n let serializedTx;\n if (isLegacyTransaction) {\n serializedTx = transaction.serialize({ requireAllSignatures: false, verifySignatures: false });\n }\n else {\n serializedTx = transaction.serialize();\n }\n const result = await ((_a = this.privyMethods) === null || _a === void 0 ? void 0 : _a.useSendTransactionSolana.signAndSendTransaction({\n transaction: serializedTx,\n wallet: privyWallet,\n chain: this.getChainId(network)\n }));\n // Handle case where signature might be bytes instead of string\n const rawSig = result.signature;\n if (rawSig instanceof Uint8Array || Array.isArray(rawSig)) {\n signature = bs58.encode(rawSig instanceof Uint8Array ? rawSig : new Uint8Array(rawSig));\n }\n else {\n signature = rawSig;\n }\n }\n const txInfo = await confirmAndCheckTransaction(connection, signature);\n return { signature, txInfo };\n }\n async signMessage(message) {\n var _a, _b, _c;\n await this.ensureReady({ waitForWallets: true });\n const session = await SessionManager().getSession();\n let sessionAddress = session === null || session === void 0 ? void 0 : session.address;\n // If there's already a pending sign message, throw an error to prevent overlapping calls\n if (this.pendingSignMessage) {\n throw new Error(\"Oops... something went wrong. Please try again.\");\n }\n // If no wallets connected yet, it may be an embedded wallet (email login) that hasn't\n // appeared in the wallets array due to React state timing. Wait for it before\n // falling back to connectWallet() which shows an unwanted wallet selection modal.\n if (!((_a = this.privyMethods) === null || _a === void 0 ? void 0 : _a.wallets) || this.privyMethods.wallets.length === 0) {\n if (((_b = this.privyMethods) === null || _b === void 0 ? void 0 : _b.authenticated) && sessionAddress) {\n const matchedWallet = await this.waitForMatchingWallet(sessionAddress);\n if (!matchedWallet) {\n return new Promise((resolve, reject) => {\n this.pendingSignMessage = {\n resolve,\n reject,\n message\n };\n this.privyMethods.connectWallet();\n // Set a timeout to reject the promise if connection takes too long\n setTimeout(() => {\n if (this.pendingSignMessage) {\n this.pendingSignMessage.reject(new Error(\"Wallet connection timed out\"));\n this.pendingSignMessage = null;\n }\n }, 30000); // 30 seconds timeout\n });\n }\n }\n else {\n return new Promise((resolve, reject) => {\n this.pendingSignMessage = {\n resolve,\n reject,\n message\n };\n this.privyMethods.connectWallet();\n // Set a timeout to reject the promise if connection takes too long\n setTimeout(() => {\n if (this.pendingSignMessage) {\n this.pendingSignMessage.reject(new Error(\"Wallet connection timed out\"));\n this.pendingSignMessage = null;\n }\n }, 30000); // 30 seconds timeout\n });\n }\n }\n let privyWallet = this.privyMethods.wallets.find((wallet) => wallet.address === sessionAddress);\n if (!privyWallet) {\n throw new Error('Active Privy wallets do not include the authenticated session wallet; please log in again.');\n }\n // Use the Privy signMessage hook for Solana wallets\n // The message needs to be passed as a Uint8Array\n const messageBytes = getPlatform().textEncode(message);\n const result = await ((_c = this.privyMethods) === null || _c === void 0 ? void 0 : _c.signMessage({\n message: messageBytes,\n wallet: privyWallet,\n }));\n // The signature is returned as a Uint8Array, encode it as base58 (standard Solana format)\n const signatureBytes = (result === null || result === void 0 ? void 0 : result.signature) || result;\n const bs58 = await import('bs58');\n return bs58.default.encode(signatureBytes);\n }\n async restoreSession() {\n const session = await SessionManager().getSession();\n if (session) {\n return { provider: this, address: session.address };\n }\n else {\n return null;\n }\n }\n // NOTE: accessToken/idToken are accepted for backwards-compat with existing\n // call sites but are no longer used. The session is minted by having the Privy\n // Solana wallet SIGN the canonical SIWS challenge (the same wallet-signature\n // path Phantom/MWA/guest use), so the bounded /session issuer needs no\n // Privy-specific token verification — it arrives as a Solana signature and is\n // recorded server-side as authMethod 'phantom'.\n async createSession(address, _accessToken, _idToken) {\n var _a, _b, _c, _d;\n const privyWallet = (_b = (_a = this.privyMethods) === null || _a === void 0 ? void 0 : _a.wallets) === null || _b === void 0 ? void 0 : _b.find((w) => w.address === address);\n if (!privyWallet) {\n throw new Error('No Privy Solana wallet matching the requested session address is available.');\n }\n const nonce = await genAuthNonce();\n const message = await genSolanaMessage(address, nonce);\n const messageBytes = getPlatform().textEncode(message);\n // Low-level Privy sign hook — signs WITHOUT touching the session (the public\n // signMessage() bootstraps sessions, which would recurse here).\n const signResult = await ((_c = this.privyMethods) === null || _c === void 0 ? void 0 : _c.signMessage({\n message: messageBytes,\n wallet: privyWallet,\n }));\n const signatureBytes = (_d = signResult === null || signResult === void 0 ? void 0 : signResult.signature) !== null && _d !== void 0 ? _d : signResult;\n // base64-encoded detached signature (matches Phantom + guest providers).\n const signature = Buffer.from(signatureBytes).toString('base64');\n const createSessionResult = await createSessionWithSignature(address, message, signature);\n if (createSessionResult) {\n await SessionManager().storeSession(address, createSessionResult.accessToken, createSessionResult.idToken, createSessionResult.refreshToken);\n }\n }\n /**\n * Waits for a wallet matching the session address to appear in the wallets array.\n * This handles the timing gap where Privy's embedded wallet (created for email login users)\n * may not yet be in the useWallets() array when signTransaction is called immediately after login.\n */\n async waitForMatchingWallet(sessionAddress, timeoutMs = 10000) {\n var _a;\n const startTime = Date.now();\n while (Date.now() - startTime < timeoutMs) {\n const wallets = (_a = this.privyMethods) === null || _a === void 0 ? void 0 : _a.wallets;\n if (wallets && wallets.length > 0) {\n const wallet = wallets.find((w) => w.address === sessionAddress);\n if (wallet)\n return wallet;\n }\n await new Promise(resolve => setTimeout(resolve, 200));\n }\n return null;\n }\n async ensureReady({ waitForWallets = false, timeoutMs = 15000 } = {}) {\n const isReady = () => {\n var _a, _b;\n if (!((_a = this.privyMethods) === null || _a === void 0 ? void 0 : _a.ready))\n return false;\n if (waitForWallets && !((_b = this.privyMethods) === null || _b === void 0 ? void 0 : _b.walletReady))\n return false;\n return true;\n };\n if (isReady())\n return;\n return new Promise((resolve, reject) => {\n const startTime = Date.now();\n const check = () => {\n if (isReady()) {\n resolve();\n }\n else if (Date.now() - startTime > timeoutMs) {\n reject(new Error('Login provider failed to initialize. This can happen in incognito mode or when third-party cookies are blocked. Try using a regular browser window.'));\n }\n else {\n setTimeout(check, 100);\n }\n };\n check();\n });\n }\n}\nPrivyWalletProvider.instance = null;\n","/**\n * Privy Expo Auth Provider — React Native implementation of AuthProvider.\n *\n * Uses @privy-io/expo instead of @privy-io/react-auth.\n * Persists the session through getActiveSessionManager() (the RN store on React\n * Native), and mints it via the SIWS wallet-signature path — identical to\n * Phantom/MWA — so no Privy-specific backend verification is required.\n *\n * IMPORTANT — Expo/RN consumers must:\n * 1. Install polyfills: fast-text-encoding, react-native-get-random-values\n * 2. Install @privy-io/expo, @privy-io/expo-native-extensions\n * 3. Call ReactNativeSessionManager.configure({ storage, atob }) at startup\n * 4. Call setPlatform({ ... }) from @bounded-sh/web at startup\n * 5. Wrap their app tree with PrivyProvider from @privy-io/expo\n * 6. Create this provider and pass the Privy hooks/methods via setPrivyMethods()\n *\n * Unlike the web PrivyWalletProvider which renders a hidden React DOM tree\n * to host Privy's React context, this provider expects the RN app itself\n * to render <PrivyProvider> and then bridge the hooks via setPrivyMethods().\n */\nimport { getActiveSessionManager as SessionManager, createSessionWithSignature, genAuthNonce, genSolanaMessage, buildSetDocumentsTransaction, convertRemainingAccounts, } from '@bounded-sh/core';\nimport { Buffer } from 'buffer';\nimport { setCurrentUser } from '../../global';\nimport { getPlatform } from '../../platform';\nimport { PublicKey, Connection, Transaction, VersionedTransaction, } from '@solana/web3.js';\nimport * as anchor from '@coral-xyz/anchor';\nimport { normalizeSolanaRpcUrl, resolveSolanaRpcUrl, SURFNET_RPC_URL } from '../solana-rpc';\nimport { confirmAndCheckTransaction } from './transaction-utils';\nimport bs58 from 'bs58';\n// -----------------------------------------------------------------------\n// Provider implementation\n// -----------------------------------------------------------------------\nexport class PrivyExpoProvider {\n constructor(appId, networkUrl = null) {\n this.privyMethods = null;\n this.appId = appId;\n this.networkUrl = normalizeSolanaRpcUrl(networkUrl);\n }\n /**\n * Bridge Privy hooks from the app's React tree into this provider.\n *\n * Call this from a component rendered inside <PrivyProvider>:\n * ```tsx\n * const privy = usePrivy();\n * const wallet = useEmbeddedSolanaWallet();\n * const { getAccessToken } = usePrivy();\n * const { getIdentityToken } = useIdentityToken();\n *\n * useEffect(() => {\n * provider.setPrivyMethods({\n * isReady: privy.isReady,\n * isAuthenticated: !!privy.user,\n * user: privy.user,\n * login: privy.login,\n * logout: privy.logout,\n * getAccessToken,\n * getIdentityToken,\n * getWalletProvider: async () => {\n * if (!wallet.wallets[0]) return null;\n * const provider = await wallet.wallets[0].getProvider();\n * return {\n * address: wallet.wallets[0].address,\n * signMessage: provider.signMessage,\n * signTransaction: provider.signTransaction,\n * signAndSendTransaction: provider.signAndSendTransaction,\n * };\n * },\n * });\n * }, [privy.isReady, privy.user, wallet.wallets]);\n * ```\n */\n setPrivyMethods(methods) {\n this.privyMethods = methods;\n }\n // -------------------------------------------------------------------\n // AuthProvider interface\n // -------------------------------------------------------------------\n async login() {\n var _a;\n await this.ensureReady();\n // Check for existing session — verify the stored address matches the\n // currently authenticated Privy wallet (guards against account switches\n // without an explicit logout).\n const session = await SessionManager().getSession();\n if (session && ((_a = this.privyMethods) === null || _a === void 0 ? void 0 : _a.isAuthenticated)) {\n const wallet = await this.privyMethods.getWalletProvider();\n if (wallet && wallet.address === session.address) {\n return { provider: this, address: session.address };\n }\n // Stale session — clear and continue to fresh login flow\n SessionManager().clearSession();\n }\n // Trigger Privy login\n const privyUser = await this.privyMethods.login();\n if (!privyUser)\n return null;\n // Get the wallet\n const wallet = await this.privyMethods.getWalletProvider();\n if (!wallet) {\n throw new Error('No embedded Solana wallet found after login. Ensure embeddedWallets.solana.createOnLogin is configured.');\n }\n // Mint a Bounded session by having the Privy Solana wallet sign the\n // standard SIWS challenge — identical to Phantom/MWA, so the backend mints\n // the session via the proven wallet-signature path (no Privy-specific\n // token verification needed).\n await this.createSession(wallet.address, wallet);\n const user = { provider: this, address: wallet.address };\n setCurrentUser(user);\n return user;\n }\n async runTransaction(_evmTransactionData, solTransactionData, options) {\n var _a;\n await this.ensureReady();\n if (!solTransactionData) {\n throw new Error('Solana transaction data is required');\n }\n const wallet = await this.getWalletOrThrow();\n const rpcUrl = this.getRpcUrl(solTransactionData.network);\n const connection = new Connection(rpcUrl, 'confirmed');\n const remainingAccounts = convertRemainingAccounts(solTransactionData.txArgs[0].remainingAccounts);\n const app_id = solTransactionData.appId;\n if (!app_id) {\n throw new Error('App ID is required');\n }\n // Create a mock wallet adapter for Anchor (only publicKey needed for building TX)\n const walletPublicKey = new PublicKey(wallet.address);\n const anchorWallet = {\n publicKey: walletPublicKey,\n signTransaction: async (tx) => tx,\n signAllTransactions: async (txs) => txs,\n };\n const anchorProvider = new anchor.AnchorProvider(connection, anchorWallet, anchor.AnchorProvider.defaultOptions());\n const finalDeduped = [];\n for (const acc of remainingAccounts) {\n const existing = finalDeduped.find((d) => d.pubkey.equals(acc.pubkey));\n if (existing) {\n existing.isSigner = existing.isSigner || acc.isSigner;\n existing.isWritable = existing.isWritable || acc.isWritable;\n }\n else {\n finalDeduped.push(acc);\n }\n }\n const { tx, blockhash, lastValidBlockHeight } = await buildSetDocumentsTransaction(connection, solTransactionData.txArgs[0].idl, anchorProvider, walletPublicKey, {\n app_id,\n documents: solTransactionData.txArgs[0].setDocumentData,\n delete_paths: solTransactionData.txArgs[0].deletePaths,\n txData: solTransactionData.txArgs[0].txData,\n }, finalDeduped, solTransactionData.lutKey, solTransactionData.preInstructions, false, solTransactionData.additionalLutAddresses);\n // Set blockhash\n const isLegacyTx = 'recentBlockhash' in tx &&\n !('message' in tx && 'staticAccountKeys' in tx.message);\n if (isLegacyTx) {\n tx.recentBlockhash = blockhash;\n tx.lastValidBlockHeight = lastValidBlockHeight;\n }\n else {\n tx.message.recentBlockhash = blockhash;\n }\n try {\n if ((options === null || options === void 0 ? void 0 : options.shouldSubmitTx) === false) {\n // Sign only — don't submit\n const signed = await wallet.signTransaction(tx);\n return {\n signedTransaction: signed.signedTransaction,\n blockNumber: 0,\n gasUsed: '0',\n data: '',\n };\n }\n // Sign and submit\n const { signature, txInfo } = await this.signAndSubmitInternal(tx, wallet, rpcUrl, connection);\n return {\n transactionSignature: signature,\n blockNumber: (txInfo === null || txInfo === void 0 ? void 0 : txInfo.slot) || 0,\n gasUsed: ((_a = txInfo === null || txInfo === void 0 ? void 0 : txInfo.meta) === null || _a === void 0 ? void 0 : _a.fee.toString()) || '0',\n data: txInfo === null || txInfo === void 0 ? void 0 : txInfo.meta,\n };\n }\n catch (err) {\n console.error(err);\n throw err;\n }\n }\n async signMessage(message) {\n await this.ensureReady();\n const wallet = await this.getWalletOrThrow();\n const messageBytes = getPlatform().textEncode(message);\n const result = await wallet.signMessage(messageBytes);\n return bs58.encode(result.signature);\n }\n async signTransaction(transaction) {\n await this.ensureReady();\n const wallet = await this.getWalletOrThrow();\n // Ensure blockhash is set\n const isLegacyTx = 'recentBlockhash' in transaction &&\n !('message' in transaction && 'staticAccountKeys' in transaction.message);\n if (isLegacyTx) {\n const legacyTx = transaction;\n if (!legacyTx.recentBlockhash) {\n const rpcUrl = this.getRpcUrl();\n const connection = new Connection(rpcUrl, 'confirmed');\n const { blockhash, lastValidBlockHeight } = await connection.getLatestBlockhash('confirmed');\n legacyTx.recentBlockhash = blockhash;\n legacyTx.lastValidBlockHeight = lastValidBlockHeight;\n }\n if (!legacyTx.feePayer) {\n legacyTx.feePayer = new PublicKey(wallet.address);\n }\n }\n else {\n const versionedTx = transaction;\n if (!versionedTx.message.recentBlockhash) {\n const rpcUrl = this.getRpcUrl();\n const connection = new Connection(rpcUrl, 'confirmed');\n const { blockhash } = await connection.getLatestBlockhash('confirmed');\n versionedTx.message.recentBlockhash = blockhash;\n }\n }\n const result = await wallet.signTransaction(transaction);\n // Deserialize the signed transaction\n const signedBytes = result.signedTransaction;\n try {\n return VersionedTransaction.deserialize(signedBytes);\n }\n catch (_a) {\n return Transaction.from(signedBytes);\n }\n }\n async signAndSubmitTransaction(transaction, feePayer) {\n await this.ensureReady();\n const wallet = await this.getWalletOrThrow();\n const rpcUrl = this.getRpcUrl();\n const connection = new Connection(rpcUrl, 'confirmed');\n // Ensure blockhash\n const isLegacyTx = 'recentBlockhash' in transaction &&\n !('message' in transaction && 'staticAccountKeys' in transaction.message);\n if (isLegacyTx) {\n const legacyTx = transaction;\n const { blockhash, lastValidBlockHeight } = await connection.getLatestBlockhash('confirmed');\n legacyTx.recentBlockhash = blockhash;\n legacyTx.lastValidBlockHeight = lastValidBlockHeight;\n legacyTx.feePayer = feePayer || new PublicKey(wallet.address);\n }\n else {\n const versionedTx = transaction;\n const { blockhash } = await connection.getLatestBlockhash('confirmed');\n versionedTx.message.recentBlockhash = blockhash;\n }\n const { signature } = await this.signAndSubmitInternal(transaction, wallet, rpcUrl, connection);\n return signature;\n }\n async restoreSession() {\n const session = await SessionManager().getSession();\n if (session) {\n return { provider: this, address: session.address };\n }\n return null;\n }\n async logout() {\n var _a;\n if ((_a = this.privyMethods) === null || _a === void 0 ? void 0 : _a.isAuthenticated) {\n await this.privyMethods.logout();\n }\n SessionManager().clearSession();\n }\n async getNativeMethods() {\n return this.privyMethods;\n }\n // -------------------------------------------------------------------\n // Private helpers\n // -------------------------------------------------------------------\n /**\n * Mint a Bounded session from a Privy Solana wallet by signing the canonical\n * SIWS challenge (nonce -> genSolanaMessage -> wallet.signMessage). This reuses\n * createSessionWithSignature — the exact path Phantom, the mobile wallet\n * adapter, and the guest device-key use — so the bounded /session issuer mints\n * the session with no Privy-specific verification (it arrives as a Solana\n * wallet signature, defaulting to authMethod 'phantom' server-side).\n */\n async createSession(address, wallet) {\n const nonce = await genAuthNonce();\n const message = await genSolanaMessage(address, nonce);\n const messageBytes = getPlatform().textEncode(message);\n const signResult = await wallet.signMessage(messageBytes);\n // createSessionWithSignature expects a base64-encoded detached signature\n // (matches the Phantom + guest providers).\n const signature = Buffer.from(signResult.signature).toString('base64');\n const result = await createSessionWithSignature(address, message, signature);\n if (result) {\n await SessionManager().storeSession(address, result.accessToken, result.idToken, result.refreshToken);\n }\n }\n async getWalletOrThrow() {\n var _a;\n const wallet = await ((_a = this.privyMethods) === null || _a === void 0 ? void 0 : _a.getWalletProvider());\n if (!wallet) {\n throw new Error('No Privy wallet available. Ensure the user is logged in and an embedded Solana wallet exists.');\n }\n return wallet;\n }\n async signAndSubmitInternal(transaction, wallet, rpcUrl, connection) {\n let signature;\n if (rpcUrl.includes('surfpool') || rpcUrl === SURFNET_RPC_URL) {\n // Surfnet: sign locally, then submit raw\n const signed = await wallet.signTransaction(transaction);\n const txSig = await connection.sendRawTransaction(signed.signedTransaction, {\n skipPreflight: true,\n maxRetries: 3,\n });\n signature = txSig;\n }\n else {\n // Non-Surfnet: use Privy's combined sign+send\n const result = await wallet.signAndSendTransaction(transaction, connection);\n signature = result.signature;\n }\n const txInfo = await confirmAndCheckTransaction(connection, signature);\n return { signature, txInfo };\n }\n getRpcUrl(network) {\n return resolveSolanaRpcUrl(this.networkUrl, network, \"Privy Expo Solana transaction\");\n }\n async ensureReady(timeoutMs = 15000) {\n if (!this.privyMethods) {\n throw new Error('PrivyExpoProvider.setPrivyMethods() must be called before using auth. ' +\n 'Bridge the Privy hooks from your React Native component tree.');\n }\n if (this.privyMethods.isReady)\n return;\n return new Promise((resolve, reject) => {\n const startTime = Date.now();\n const check = () => {\n var _a;\n if ((_a = this.privyMethods) === null || _a === void 0 ? void 0 : _a.isReady) {\n resolve();\n }\n else if (Date.now() - startTime > timeoutMs) {\n reject(new Error('Privy Expo SDK failed to initialize within timeout.'));\n }\n else {\n setTimeout(check, 100);\n }\n };\n check();\n });\n }\n}\n"],"names":["require$$0","require$$1","exports","SessionManager","sessionManager","decodeJwt","userFromIdToken","sendEmailOtp","sendTextOtp","verifyEmailOtp","verifyTextOtp","STORED_AUTH_METHOD_KEY","emailSend","textSend","emailVerify","textVerify","emailLink","login","logout","configInit","authLogin","authLogout","_a","isSSR","React","sdkLogin","sdkLogout","getIdTokenCore","Buffer","ReactDOM"],"mappings":";;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,aAAa,CAAC;AACpB,IAAI,WAAW,GAAG;AAClB,QAAQ,IAAI,CAAC,KAAK,GAAG,IAAI,GAAG,EAAE;AAC9B,IAAI;AACJ,IAAI,OAAO,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,IAAI,IAAI,EAAE,KAAK,MAAM,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC;AACpG,IAAI,OAAO,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;AACtD,IA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ACR,QAAQ,OAAO,IAAI;AACnB,IAAI;AACJ,IAAI,cAAc,GAAG;AACrB,QAAQ,OAAO;AACf;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;A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CAAC,GAAG,EAAE,GAAG,SAAS,GAAG,SAAS,EAAE;AAC7D,oBAAoB,MAAM,CAAC,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAC;AAC5F,gBAAgB;AAChB,qBAAqB;AACrB,oBAAoB,UAAU,CAAC,KAAK,EAAE,GAAG,CAAC;AAC1C,gBAAgB;AAChB,YAAY,CAAC;AACb,YAAY,KAAK,EAAE;AACnB,QAAQ,CAAC,CAAC;AACV,IAAI;AACJ;;;;","x_google_ignoreList":[2,3,4,5,6,7]}
1
+ {"version":3,"file":"index.mjs","sources":["../.rollup-tmp/platform.js","../.rollup-tmp/auth/providers/offchain-auth-provider.js","../node_modules/base64-js/index.js","../node_modules/ieee754/index.js","../node_modules/buffer/index.js","../node_modules/safe-buffer/index.js","../node_modules/base-x/src/index.js","../node_modules/bs58/src/esm/index.js","../.rollup-tmp/auth/providers/guest-keystore.js","../.rollup-tmp/auth/providers/guest-auth-provider.js","../.rollup-tmp/auth/providers/email-auth-provider.js","../.rollup-tmp/auth/solana-rpc.js","../.rollup-tmp/auth/oidc-auth.js","../.rollup-tmp/auth/index.js","../.rollup-tmp/global.js","../.rollup-tmp/auth/hooks/useAuth.js","../.rollup-tmp/hooks/useQuery.js","../.rollup-tmp/auth/providers/sol/sol-utils.js","../.rollup-tmp/utils.js","../.rollup-tmp/auth/providers/transaction-utils.js","../.rollup-tmp/auth/providers/phantom-wallet-provider.js","../.rollup-tmp/auth/providers/solana-mobile-wallet-provider.js","../.rollup-tmp/auth/providers/privy-wallet-provider.js","../.rollup-tmp/auth/providers/privy-expo-provider.js"],"sourcesContent":["/**\n * Platform abstraction layer for React Native compatibility.\n *\n * This module provides interfaces and default (web) implementations for\n * browser-specific APIs that are unavailable in React Native:\n * - Storage (localStorage / sessionStorage)\n * - TextEncoder\n * - Base-64 (btoa / atob)\n * - SubtleCrypto (crypto.subtle.digest)\n * - DOM helpers (document.*, requestAnimationFrame)\n * - Location (window.location.origin)\n * - UserAgent (navigator.userAgent)\n *\n * React Native consumers call `setPlatform(adapter)` once at startup to\n * supply their own implementations (e.g. AsyncStorage-backed storage,\n * expo-crypto, react-native-get-random-values, etc.).\n *\n * Web consumers don't need to do anything — the defaults use the browser APIs.\n */\n/** In-memory fallback when neither browser storage nor a custom adapter exist. */\nclass MemoryStorage {\n constructor() {\n this.store = new Map();\n }\n getItem(key) { var _a; return (_a = this.store.get(key)) !== null && _a !== void 0 ? _a : null; }\n setItem(key, value) { this.store.set(key, value); }\n removeItem(key) { this.store.delete(key); }\n}\n// ---------------------------------------------------------------------------\n// Default web implementation\n// ---------------------------------------------------------------------------\nfunction createWebPlatform() {\n const hasWindow = typeof window !== 'undefined';\n const hasDoc = typeof document !== 'undefined';\n return {\n storage: hasWindow && typeof localStorage !== 'undefined'\n ? localStorage\n : new MemoryStorage(),\n sessionStorage: hasWindow && typeof sessionStorage !== 'undefined'\n ? sessionStorage\n : new MemoryStorage(),\n textEncode(input) {\n return new TextEncoder().encode(input);\n },\n atob(input) {\n if (hasWindow)\n return window.atob(input);\n // Node / SSR fallback\n return Buffer.from(input, 'base64').toString('binary');\n },\n btoa(input) {\n if (hasWindow)\n return window.btoa(input);\n return Buffer.from(input, 'binary').toString('base64');\n },\n async sha256(data) {\n if (typeof crypto !== 'undefined' && crypto.subtle) {\n return crypto.subtle.digest('SHA-256', data);\n }\n // Node / SSR fallback\n const { createHash } = await import('crypto');\n const hash = createHash('sha256').update(data).digest();\n return hash.buffer.slice(hash.byteOffset, hash.byteOffset + hash.byteLength);\n },\n getUserAgent() {\n if (hasWindow && typeof navigator !== 'undefined')\n return navigator.userAgent;\n return '';\n },\n getLocationOrigin() {\n if (hasWindow && window.location)\n return window.location.origin;\n return undefined;\n },\n hasDOM: hasDoc,\n };\n}\n// ---------------------------------------------------------------------------\n// Singleton & public API\n// ---------------------------------------------------------------------------\nlet _platform = createWebPlatform();\nlet _platformConfigured = false;\n/**\n * Override the platform adapter (call once at app startup in React Native).\n *\n * Must be called **before** `init()`. Can only be called once — subsequent\n * calls throw to prevent accidental mid-session storage swaps.\n *\n * ```ts\n * import { setPlatform } from '@bounded-sh/web';\n * import AsyncStorage from '@react-native-async-storage/async-storage';\n *\n * // Create a synchronous wrapper around AsyncStorage for the adapter\n * // (see docs for a full example).\n * setPlatform({ storage: myStorage, ... });\n * ```\n */\nexport function setPlatform(adapter) {\n if (_platformConfigured) {\n throw new Error('setPlatform() has already been called. It can only be invoked once at startup.');\n }\n _platformConfigured = true;\n _platform = Object.assign(Object.assign({}, _platform), adapter);\n}\n/** Get the current platform adapter. */\nexport function getPlatform() {\n return _platform;\n}\n// ---------------------------------------------------------------------------\n// Mobile / Android detection helpers\n// ---------------------------------------------------------------------------\n/**\n * Detect mobile device even when Chrome \"Request Desktop Site\" is active.\n *\n * Desktop mode on Android strips \"Android\" and \"Mobile\" from the UA, leaving\n * something like \"Linux x86_64 …\". The fallback detects this by looking for\n * touch capability + small viewport + a UA that doesn't belong to a known\n * desktop OS (ChromeOS, Windows, macOS).\n */\nexport function detectMobile() {\n const ua = _platform.getUserAgent();\n if (/Android|iPhone|iPad|iPod/i.test(ua))\n return true;\n if (typeof navigator !== 'undefined' && typeof window !== 'undefined') {\n const hasTouch = navigator.maxTouchPoints > 0;\n // Macs don't have touch screens, so \"Macintosh\" + touch = iOS desktop mode\n // (also catches iPadOS 13+ which always reports as Macintosh)\n if (/Macintosh/i.test(ua) && hasTouch)\n return true;\n // Android desktop mode: Linux UA + touch + small viewport, excluding\n // known desktop OSes (ChromeOS, Windows, macOS)\n const isSmallViewport = window.innerWidth <= 1024;\n const isDesktopOS = /CrOS|Windows|Macintosh/i.test(ua);\n if (hasTouch && isSmallViewport && !isDesktopOS)\n return true;\n }\n return false;\n}\n/**\n * Detect Android, including desktop-mode Chrome and Seeker/Saga in-app browsers.\n */\nexport function detectAndroid() {\n const ua = _platform.getUserAgent();\n if (/Android/i.test(ua))\n return true;\n if (/SolanaWallet|SeedVault/i.test(ua))\n return true;\n // Desktop-mode fallback: detected as mobile + Linux UA + not another OS\n if (detectMobile() && /Linux/i.test(ua) && !/CrOS|Macintosh|iPhone|iPad/i.test(ua))\n return true;\n return false;\n}\n/**\n * Reset the platform to web defaults and clear the configured flag.\n * **For testing only** — not exported from the public API.\n * @internal\n */\nexport function _resetPlatformForTesting() {\n _platform = createWebPlatform();\n _platformConfigured = false;\n}\n","import { getPlatform } from \"../../platform\";\n/**\n * OffchainAuthProvider wraps a real auth provider (e.g., Phantom) for the poofnet environment.\n *\n * signMessage shows a custom confirmation modal and then delegates to the wrapped\n * provider for a real detached signature over the exact offchain transaction message.\n */\nexport class OffchainAuthProvider {\n constructor(wrappedProvider, config = {}) {\n this.modalContainer = null;\n this.wrappedProvider = wrappedProvider;\n this.config = config;\n }\n // ============ Delegated Methods ============\n async login() {\n const user = await this.wrappedProvider.login();\n if (user) {\n return Object.assign(Object.assign({}, user), { provider: this });\n }\n return null;\n }\n async logout() {\n await this.wrappedProvider.logout();\n }\n async restoreSession() {\n const user = await this.wrappedProvider.restoreSession();\n if (user) {\n return Object.assign(Object.assign({}, user), { provider: this });\n }\n return null;\n }\n async runTransaction(evmTransactionData, solTransactionData, options) {\n return this.wrappedProvider.runTransaction(evmTransactionData, solTransactionData, options);\n }\n async signTransaction(tx) {\n if (getPlatform().hasDOM) {\n await this.showUnsupportedTransactionModal();\n }\n throw new Error('Poofnet does not support real Solana transactions. Deploy your project to mainnet to use this feature.');\n }\n /**\n * Sign and submit transaction - not supported in poofnet environment.\n * See the real providers (PhantomWalletProvider, SolanaKeypairProvider)\n * for the full implementation with blockhash handling and feePayer support.\n */\n async signAndSubmitTransaction(_transaction, _feePayer) {\n if (getPlatform().hasDOM) {\n await this.showUnsupportedTransactionModal();\n }\n throw new Error('Poofnet does not support real Solana transactions. Deploy your project to mainnet to use this feature.');\n }\n async getNativeMethods() {\n return this.wrappedProvider.getNativeMethods();\n }\n // ============ signMessage delegates to wrapped provider ============\n async signMessage(message) {\n var _a, _b, _c, _d, _e, _f;\n (_b = (_a = this.config).onSigningStart) === null || _b === void 0 ? void 0 : _b.call(_a);\n try {\n // On RN (no DOM), auto-confirm — there's no modal to show.\n // On web, show the confirmation modal.\n if (getPlatform().hasDOM) {\n const confirmed = await this.showTransactionModal(message);\n if (!confirmed) {\n throw new Error(\"Transaction rejected by user\");\n }\n }\n const signature = await this.wrappedProvider.signMessage(message);\n // Callback: signing complete\n (_d = (_c = this.config).onSigningComplete) === null || _d === void 0 ? void 0 : _d.call(_c, signature);\n return signature;\n }\n catch (error) {\n (_f = (_e = this.config).onSigningError) === null || _f === void 0 ? void 0 : _f.call(_e, error);\n throw error;\n }\n }\n // ============ Modal Implementation ============\n async showUnsupportedTransactionModal() {\n return new Promise((resolve) => {\n // Create modal container\n this.modalContainer = document.createElement(\"div\");\n this.modalContainer.id = \"poofnet-unsupported-modal\";\n this.modalContainer.appendChild(this.buildUnsupportedModalContent());\n document.body.appendChild(this.modalContainer);\n // Add styles\n const style = document.createElement(\"style\");\n style.textContent = this.getModalStyles();\n this.modalContainer.appendChild(style);\n // Mark all other body children as inert\n document.body.childNodes.forEach((child) => {\n if (child !== this.modalContainer &&\n child instanceof HTMLElement) {\n child.setAttribute(\"inert\", \"\");\n }\n });\n // Animate in\n requestAnimationFrame(() => {\n var _a, _b;\n const overlay = (_a = this.modalContainer) === null || _a === void 0 ? void 0 : _a.querySelector(\".poofnet-modal-overlay\");\n const content = (_b = this.modalContainer) === null || _b === void 0 ? void 0 : _b.querySelector(\".poofnet-modal-content\");\n if (overlay)\n overlay.style.opacity = \"1\";\n if (content) {\n content.style.opacity = \"1\";\n content.style.transform = \"translateY(0)\";\n }\n });\n // Handle close button\n const closeBtn = this.modalContainer.querySelector(\"#poofnet-close-btn\");\n closeBtn === null || closeBtn === void 0 ? void 0 : closeBtn.addEventListener(\"click\", () => {\n this.closeModal();\n resolve();\n });\n // Handle cancel button\n const cancelBtn = this.modalContainer.querySelector(\"#poofnet-cancel-btn\");\n cancelBtn === null || cancelBtn === void 0 ? void 0 : cancelBtn.addEventListener(\"click\", () => {\n this.closeModal();\n resolve();\n });\n // Handle overlay click\n const overlay = this.modalContainer.querySelector(\".poofnet-modal-overlay\");\n overlay === null || overlay === void 0 ? void 0 : overlay.addEventListener(\"click\", (e) => {\n if (e.target === overlay) {\n this.closeModal();\n resolve();\n }\n });\n // Handle escape key\n const escHandler = (e) => {\n if (e.key === \"Escape\") {\n document.removeEventListener(\"keydown\", escHandler);\n this.closeModal();\n resolve();\n }\n };\n document.addEventListener(\"keydown\", escHandler);\n });\n }\n async showTransactionModal(message) {\n return new Promise((resolve) => {\n // Parse the transaction message for display\n let parsed = {};\n try {\n parsed = JSON.parse(message);\n }\n catch (_a) {\n // If not JSON, just show raw message\n }\n // Create modal container\n this.modalContainer = document.createElement(\"div\");\n this.modalContainer.id = \"poofnet-tx-modal\";\n this.modalContainer.appendChild(this.buildTransactionModalContent(parsed, message));\n document.body.appendChild(this.modalContainer);\n // Add styles\n const style = document.createElement(\"style\");\n style.textContent = this.getModalStyles();\n this.modalContainer.appendChild(style);\n // Mark all other body children as inert to disable focus traps from other modals\n document.body.childNodes.forEach((child) => {\n if (child !== this.modalContainer &&\n child instanceof HTMLElement) {\n child.setAttribute(\"inert\", \"\");\n }\n });\n // Animate in\n requestAnimationFrame(() => {\n var _a, _b;\n const overlay = (_a = this.modalContainer) === null || _a === void 0 ? void 0 : _a.querySelector(\".poofnet-modal-overlay\");\n const content = (_b = this.modalContainer) === null || _b === void 0 ? void 0 : _b.querySelector(\".poofnet-modal-content\");\n if (overlay)\n overlay.style.opacity = \"1\";\n if (content) {\n content.style.opacity = \"1\";\n content.style.transform = \"translateY(0)\";\n }\n });\n // Handle confirm\n const confirmBtn = this.modalContainer.querySelector(\"#poofnet-confirm-btn\");\n confirmBtn === null || confirmBtn === void 0 ? void 0 : confirmBtn.addEventListener(\"click\", () => {\n this.closeModal();\n resolve(true);\n });\n // Handle cancel\n const cancelBtn = this.modalContainer.querySelector(\"#poofnet-cancel-btn\");\n cancelBtn === null || cancelBtn === void 0 ? void 0 : cancelBtn.addEventListener(\"click\", () => {\n this.closeModal();\n resolve(false);\n });\n // Handle close button\n const closeBtn = this.modalContainer.querySelector(\"#poofnet-close-btn\");\n closeBtn === null || closeBtn === void 0 ? void 0 : closeBtn.addEventListener(\"click\", () => {\n this.closeModal();\n resolve(false);\n });\n // Handle overlay click\n const overlay = this.modalContainer.querySelector(\".poofnet-modal-overlay\");\n overlay === null || overlay === void 0 ? void 0 : overlay.addEventListener(\"click\", (e) => {\n if (e.target === overlay) {\n this.closeModal();\n resolve(false);\n }\n });\n // Handle escape key\n const escHandler = (e) => {\n if (e.key === \"Escape\") {\n document.removeEventListener(\"keydown\", escHandler);\n this.closeModal();\n resolve(false);\n }\n };\n document.addEventListener(\"keydown\", escHandler);\n });\n }\n closeModal() {\n if (this.modalContainer) {\n // Remove inert attribute from all elements\n document.body.querySelectorAll(\"[inert]\").forEach((el) => {\n el.removeAttribute(\"inert\");\n });\n const overlay = this.modalContainer.querySelector(\".poofnet-modal-overlay\");\n const content = this.modalContainer.querySelector(\".poofnet-modal-content\");\n if (overlay)\n overlay.style.opacity = \"0\";\n if (content) {\n content.style.opacity = \"0\";\n content.style.transform = \"translateY(20px)\";\n }\n setTimeout(() => {\n var _a;\n (_a = this.modalContainer) === null || _a === void 0 ? void 0 : _a.remove();\n this.modalContainer = null;\n }, 200);\n }\n }\n createElement(tag, className, text) {\n const el = document.createElement(tag);\n if (className)\n el.className = className;\n if (text !== undefined)\n el.textContent = text;\n return el;\n }\n appendTextElement(parent, tag, className, text) {\n const el = this.createElement(tag, className, text);\n parent.appendChild(el);\n return el;\n }\n buildModalShell(icon, title) {\n const overlay = this.createElement(\"div\", \"poofnet-modal-overlay\");\n const content = this.createElement(\"div\", \"poofnet-modal-content\");\n overlay.appendChild(content);\n const close = this.createElement(\"button\", \"poofnet-close-btn\", \"×\");\n close.id = \"poofnet-close-btn\";\n close.setAttribute(\"aria-label\", \"Close\");\n close.type = \"button\";\n content.appendChild(close);\n const header = this.createElement(\"div\", \"poofnet-modal-header\");\n this.appendTextElement(header, \"div\", \"poofnet-modal-icon\", icon);\n this.appendTextElement(header, \"h2\", \"poofnet-modal-title\", title);\n this.appendTextElement(header, \"p\", \"poofnet-modal-subtitle\", \"Poofnet Simulated Blockchain\");\n content.appendChild(header);\n const body = this.createElement(\"div\", \"poofnet-modal-body\");\n content.appendChild(body);\n const footer = this.createElement(\"div\", \"poofnet-modal-footer\");\n content.appendChild(footer);\n return { overlay, body, footer };\n }\n buildInfoBox(text, warning = false) {\n const info = this.createElement(\"div\", \"poofnet-info-box\");\n if (warning)\n info.style.background = \"#fef3c7\";\n this.appendTextElement(info, \"span\", \"poofnet-info-icon\", \"ℹ️\");\n const infoText = this.createElement(\"span\", \"poofnet-info-text\", text);\n if (warning)\n infoText.style.color = \"#92400e\";\n info.appendChild(infoText);\n return info;\n }\n buildUnsupportedModalContent() {\n const { overlay, body, footer } = this.buildModalShell(\"⚠️\", \"Transaction Not Supported\");\n body.appendChild(this.buildInfoBox(\"Poofnet is a simulated blockchain and does not support real Solana transactions. Deploy your project to mainnet to test real transactions.\", true));\n const close = this.createElement(\"button\", \"poofnet-btn poofnet-btn-cancel\", \"Close\");\n close.id = \"poofnet-cancel-btn\";\n close.type = \"button\";\n close.style.flex = \"1\";\n footer.appendChild(close);\n return overlay;\n }\n formatPath(path) {\n const parts = path.split(\"/\").filter(Boolean);\n if (parts.length >= 2) {\n return {\n collection: parts[0],\n documentId: parts[parts.length - 1],\n };\n }\n return { collection: parts[0] || path, documentId: null };\n }\n formatFieldValue(value) {\n if (value === null || value === undefined)\n return \"null\";\n if (typeof value === \"string\") {\n return value.length > 30\n ? `\"${value.slice(0, 30)}...\"`\n : `\"${value}\"`;\n }\n if (typeof value === \"number\" || typeof value === \"boolean\")\n return String(value);\n if (Array.isArray(value))\n return `[${value.length} items]`;\n if (typeof value === \"object\")\n return `{${Object.keys(value).length} fields}`;\n return String(value);\n }\n getActionDescription(type, collection, isNew) {\n if (type === \"delete\")\n return `Delete from ${collection}`;\n return isNew ? `Create in ${collection}` : `Update ${collection}`;\n }\n buildTransactionModalContent(parsed, rawMessage) {\n const instructions = parsed.instructions || [];\n // Group instructions by type for summary\n const sets = instructions.filter((i) => i.type === \"set\");\n const deletes = instructions.filter((i) => i.type === \"delete\");\n // Create summary text\n let summaryText = \"\";\n if (sets.length > 0 && deletes.length > 0) {\n summaryText = `${sets.length} update${sets.length > 1 ? \"s\" : \"\"}, ${deletes.length} delete${deletes.length > 1 ? \"s\" : \"\"}`;\n }\n else if (sets.length > 0) {\n summaryText = `${sets.length} update${sets.length > 1 ? \"s\" : \"\"}`;\n }\n else if (deletes.length > 0) {\n summaryText = `${deletes.length} delete${deletes.length > 1 ? \"s\" : \"\"}`;\n }\n const { overlay, body, footer } = this.buildModalShell(\"🔐\", \"Confirm Transaction\");\n if (instructions.length > 0) {\n if (summaryText) {\n this.appendTextElement(body, \"div\", \"poofnet-summary\", summaryText);\n }\n const list = this.createElement(\"div\", \"poofnet-instructions-list\");\n for (const inst of instructions) {\n list.appendChild(this.buildInstructionElement(inst));\n }\n body.appendChild(list);\n }\n else {\n const section = this.createElement(\"div\", \"poofnet-section\");\n this.appendTextElement(section, \"h3\", \"poofnet-section-title\", \"Message\");\n const raw = this.createElement(\"pre\", \"poofnet-raw-message\", rawMessage.slice(0, 200) + (rawMessage.length > 200 ? \"...\" : \"\"));\n section.appendChild(raw);\n body.appendChild(section);\n }\n body.appendChild(this.buildInfoBox(\"This is a simulated transaction. No real fees will be charged.\"));\n const cancel = this.createElement(\"button\", \"poofnet-btn poofnet-btn-cancel\", \"Cancel\");\n cancel.id = \"poofnet-cancel-btn\";\n cancel.type = \"button\";\n footer.appendChild(cancel);\n const confirm = this.createElement(\"button\", \"poofnet-btn poofnet-btn-confirm\", \"Confirm\");\n confirm.id = \"poofnet-confirm-btn\";\n confirm.type = \"button\";\n footer.appendChild(confirm);\n return overlay;\n }\n buildInstructionElement(inst) {\n const { collection, documentId } = this.formatPath(inst.path);\n const isDelete = inst.type === \"delete\";\n const card = this.createElement(\"div\", `poofnet-instruction ${isDelete ? \"poofnet-action-delete\" : \"poofnet-action-set\"}`);\n const header = this.createElement(\"div\", \"poofnet-instruction-header\");\n this.appendTextElement(header, \"span\", \"poofnet-instruction-icon\", isDelete ? \"🗑️\" : \"✏️\");\n this.appendTextElement(header, \"span\", \"poofnet-instruction-action\", isDelete ? \"Delete\" : \"Save\");\n this.appendTextElement(header, \"span\", \"poofnet-instruction-collection\", collection);\n card.appendChild(header);\n if (documentId) {\n this.appendTextElement(card, \"div\", \"poofnet-instruction-id\", `ID: ${documentId}`);\n }\n if (inst.data && !isDelete) {\n const fieldKeys = Object.keys(inst.data).filter((key) => !key.startsWith(\"_\"));\n const visibleFields = fieldKeys.slice(0, 4);\n if (visibleFields.length > 0) {\n const fields = this.createElement(\"div\", \"poofnet-fields\");\n for (const key of visibleFields) {\n const row = this.createElement(\"div\", \"poofnet-field\");\n this.appendTextElement(row, \"span\", \"poofnet-field-key\", `${key}:`);\n this.appendTextElement(row, \"span\", \"poofnet-field-value\", this.formatFieldValue(inst.data[key]));\n fields.appendChild(row);\n }\n if (fieldKeys.length > 4) {\n this.appendTextElement(fields, \"div\", \"poofnet-field-more\", `+${fieldKeys.length - 4} more fields`);\n }\n card.appendChild(fields);\n }\n }\n return card;\n }\n getModalStyles() {\n return `\n /* Ensure inert elements remain visible while being non-interactive */\n [inert] {\n visibility: visible !important;\n opacity: 1 !important;\n display: unset !important;\n }\n\n .poofnet-modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.5);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 999999;\n opacity: 0;\n transition: opacity 0.2s ease;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n }\n\n .poofnet-modal-content {\n background: white;\n border-radius: 16px;\n width: 90%;\n max-width: 420px;\n box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);\n opacity: 0;\n transform: translateY(20px);\n transition: all 0.2s ease;\n max-height: 90vh;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n position: relative;\n }\n\n .poofnet-close-btn {\n position: absolute;\n top: 12px;\n right: 12px;\n width: 28px;\n height: 28px;\n border: none;\n background: #f3f4f6;\n border-radius: 8px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n color: #6b7280;\n transition: all 0.15s ease;\n z-index: 1;\n }\n\n .poofnet-close-btn:hover {\n background: #e5e7eb;\n color: #374151;\n }\n\n .poofnet-modal-header {\n padding: 24px 24px 16px;\n text-align: center;\n border-bottom: 1px solid #f0f0f0;\n flex-shrink: 0;\n }\n\n .poofnet-modal-icon {\n font-size: 40px;\n margin-bottom: 8px;\n }\n\n .poofnet-modal-title {\n margin: 0;\n font-size: 18px;\n font-weight: 600;\n color: #1a1a1a;\n }\n\n .poofnet-modal-subtitle {\n margin: 4px 0 0;\n font-size: 13px;\n color: #8b5cf6;\n font-weight: 500;\n }\n\n .poofnet-modal-body {\n padding: 16px 20px;\n overflow-y: auto;\n flex: 1;\n }\n\n .poofnet-summary {\n font-size: 13px;\n color: #6b7280;\n margin-bottom: 12px;\n text-align: center;\n }\n\n .poofnet-section {\n margin-bottom: 16px;\n }\n\n .poofnet-section-title {\n font-size: 12px;\n font-weight: 600;\n color: #666;\n text-transform: uppercase;\n letter-spacing: 0.5px;\n margin: 0 0 8px;\n }\n\n .poofnet-instructions-list {\n display: flex;\n flex-direction: column;\n gap: 10px;\n }\n\n .poofnet-instruction {\n background: #f9fafb;\n border-radius: 10px;\n padding: 12px;\n border-left: 3px solid #8b5cf6;\n }\n\n .poofnet-instruction.poofnet-action-delete {\n border-left-color: #ef4444;\n }\n\n .poofnet-instruction-header {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 4px;\n }\n\n .poofnet-instruction-icon {\n font-size: 16px;\n flex-shrink: 0;\n }\n\n .poofnet-instruction-action {\n font-size: 13px;\n font-weight: 600;\n color: #8b5cf6;\n }\n\n .poofnet-action-delete .poofnet-instruction-action {\n color: #ef4444;\n }\n\n .poofnet-instruction-collection {\n font-size: 13px;\n font-weight: 500;\n color: #374151;\n }\n\n .poofnet-instruction-id {\n font-size: 11px;\n color: #9ca3af;\n font-family: monospace;\n margin-bottom: 8px;\n word-break: break-all;\n }\n\n .poofnet-fields {\n background: white;\n border-radius: 6px;\n padding: 8px 10px;\n margin-top: 8px;\n }\n\n .poofnet-field {\n display: flex;\n gap: 8px;\n padding: 4px 0;\n font-size: 12px;\n border-bottom: 1px solid #f3f4f6;\n }\n\n .poofnet-field:last-child {\n border-bottom: none;\n }\n\n .poofnet-field-key {\n color: #6b7280;\n font-weight: 500;\n flex-shrink: 0;\n }\n\n .poofnet-field-value {\n color: #374151;\n word-break: break-all;\n }\n\n .poofnet-field-more {\n font-size: 11px;\n color: #9ca3af;\n padding-top: 4px;\n font-style: italic;\n }\n\n .poofnet-raw-message {\n background: #f9fafb;\n border-radius: 8px;\n padding: 12px;\n font-size: 11px;\n font-family: monospace;\n color: #4b5563;\n white-space: pre-wrap;\n word-break: break-all;\n margin: 0;\n max-height: 120px;\n overflow-y: auto;\n }\n\n .poofnet-info-box {\n display: flex;\n align-items: center;\n gap: 8px;\n background: #faf5ff;\n border-radius: 8px;\n padding: 10px 12px;\n margin-top: 12px;\n }\n\n .poofnet-info-icon {\n font-size: 14px;\n flex-shrink: 0;\n }\n\n .poofnet-info-text {\n font-size: 11px;\n color: #7c3aed;\n line-height: 1.4;\n }\n\n .poofnet-modal-footer {\n padding: 16px 20px 20px;\n display: flex;\n gap: 12px;\n flex-shrink: 0;\n border-top: 1px solid #f0f0f0;\n }\n\n .poofnet-btn {\n flex: 1;\n padding: 12px 16px;\n border-radius: 10px;\n font-size: 14px;\n font-weight: 600;\n cursor: pointer;\n transition: all 0.15s ease;\n border: none;\n }\n\n .poofnet-btn-cancel {\n background: #f3f4f6;\n color: #4b5563;\n }\n\n .poofnet-btn-cancel:hover {\n background: #e5e7eb;\n }\n\n .poofnet-btn-confirm {\n background: #8b5cf6;\n color: white;\n }\n\n .poofnet-btn-confirm:hover {\n background: #7c3aed;\n }\n `;\n }\n}\n","'use strict'\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n var i\n for (i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n","/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */\nexports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = ((value * c) - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n","/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh <https://feross.org>\n * @license MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nconst base64 = require('base64-js')\nconst ieee754 = require('ieee754')\nconst customInspectSymbol =\n (typeof Symbol === 'function' && typeof Symbol['for'] === 'function') // eslint-disable-line dot-notation\n ? Symbol['for']('nodejs.util.inspect.custom') // eslint-disable-line dot-notation\n : null\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\nconst K_MAX_LENGTH = 0x7fffffff\nexports.kMaxLength = K_MAX_LENGTH\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Print warning and recommend using `buffer` v4.x which has an Object\n * implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * We report that the browser does not support typed arrays if the are not subclassable\n * using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array`\n * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support\n * for __proto__ and has a buggy typed array implementation.\n */\nBuffer.TYPED_ARRAY_SUPPORT = typedArraySupport()\n\nif (!Buffer.TYPED_ARRAY_SUPPORT && typeof console !== 'undefined' &&\n typeof console.error === 'function') {\n console.error(\n 'This browser lacks typed array (Uint8Array) support which is required by ' +\n '`buffer` v5.x. Use `buffer` v4.x if you require old browser support.'\n )\n}\n\nfunction typedArraySupport () {\n // Can typed array instances can be augmented?\n try {\n const arr = new Uint8Array(1)\n const proto = { foo: function () { return 42 } }\n Object.setPrototypeOf(proto, Uint8Array.prototype)\n Object.setPrototypeOf(arr, proto)\n return arr.foo() === 42\n } catch (e) {\n return false\n }\n}\n\nObject.defineProperty(Buffer.prototype, 'parent', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.buffer\n }\n})\n\nObject.defineProperty(Buffer.prototype, 'offset', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.byteOffset\n }\n})\n\nfunction createBuffer (length) {\n if (length > K_MAX_LENGTH) {\n throw new RangeError('The value \"' + length + '\" is invalid for option \"size\"')\n }\n // Return an augmented `Uint8Array` instance\n const buf = new Uint8Array(length)\n Object.setPrototypeOf(buf, Buffer.prototype)\n return buf\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new TypeError(\n 'The \"string\" argument must be of type string. Received type number'\n )\n }\n return allocUnsafe(arg)\n }\n return from(arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\nfunction from (value, encodingOrOffset, length) {\n if (typeof value === 'string') {\n return fromString(value, encodingOrOffset)\n }\n\n if (ArrayBuffer.isView(value)) {\n return fromArrayView(value)\n }\n\n if (value == null) {\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n }\n\n if (isInstance(value, ArrayBuffer) ||\n (value && isInstance(value.buffer, ArrayBuffer))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof SharedArrayBuffer !== 'undefined' &&\n (isInstance(value, SharedArrayBuffer) ||\n (value && isInstance(value.buffer, SharedArrayBuffer)))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof value === 'number') {\n throw new TypeError(\n 'The \"value\" argument must not be of type number. Received type number'\n )\n }\n\n const valueOf = value.valueOf && value.valueOf()\n if (valueOf != null && valueOf !== value) {\n return Buffer.from(valueOf, encodingOrOffset, length)\n }\n\n const b = fromObject(value)\n if (b) return b\n\n if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null &&\n typeof value[Symbol.toPrimitive] === 'function') {\n return Buffer.from(value[Symbol.toPrimitive]('string'), encodingOrOffset, length)\n }\n\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(value, encodingOrOffset, length)\n}\n\n// Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:\n// https://github.com/feross/buffer/pull/148\nObject.setPrototypeOf(Buffer.prototype, Uint8Array.prototype)\nObject.setPrototypeOf(Buffer, Uint8Array)\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be of type number')\n } else if (size < 0) {\n throw new RangeError('The value \"' + size + '\" is invalid for option \"size\"')\n }\n}\n\nfunction alloc (size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpreted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(size).fill(fill, encoding)\n : createBuffer(size).fill(fill)\n }\n return createBuffer(size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(size, fill, encoding)\n}\n\nfunction allocUnsafe (size) {\n assertSize(size)\n return createBuffer(size < 0 ? 0 : checked(size) | 0)\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(size)\n}\n\nfunction fromString (string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n\n const length = byteLength(string, encoding) | 0\n let buf = createBuffer(length)\n\n const actual = buf.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n buf = buf.slice(0, actual)\n }\n\n return buf\n}\n\nfunction fromArrayLike (array) {\n const length = array.length < 0 ? 0 : checked(array.length) | 0\n const buf = createBuffer(length)\n for (let i = 0; i < length; i += 1) {\n buf[i] = array[i] & 255\n }\n return buf\n}\n\nfunction fromArrayView (arrayView) {\n if (isInstance(arrayView, Uint8Array)) {\n const copy = new Uint8Array(arrayView)\n return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength)\n }\n return fromArrayLike(arrayView)\n}\n\nfunction fromArrayBuffer (array, byteOffset, length) {\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\"offset\" is outside of buffer bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\"length\" is outside of buffer bounds')\n }\n\n let buf\n if (byteOffset === undefined && length === undefined) {\n buf = new Uint8Array(array)\n } else if (length === undefined) {\n buf = new Uint8Array(array, byteOffset)\n } else {\n buf = new Uint8Array(array, byteOffset, length)\n }\n\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(buf, Buffer.prototype)\n\n return buf\n}\n\nfunction fromObject (obj) {\n if (Buffer.isBuffer(obj)) {\n const len = checked(obj.length) | 0\n const buf = createBuffer(len)\n\n if (buf.length === 0) {\n return buf\n }\n\n obj.copy(buf, 0, 0, len)\n return buf\n }\n\n if (obj.length !== undefined) {\n if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) {\n return createBuffer(0)\n }\n return fromArrayLike(obj)\n }\n\n if (obj.type === 'Buffer' && Array.isArray(obj.data)) {\n return fromArrayLike(obj.data)\n }\n}\n\nfunction checked (length) {\n // Note: cannot use `length < K_MAX_LENGTH` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= K_MAX_LENGTH) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return b != null && b._isBuffer === true &&\n b !== Buffer.prototype // so Buffer.isBuffer(Buffer.prototype) will be false\n}\n\nBuffer.compare = function compare (a, b) {\n if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength)\n if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength)\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError(\n 'The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array'\n )\n }\n\n if (a === b) return 0\n\n let x = a.length\n let y = b.length\n\n for (let i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!Array.isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n let i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n const buffer = Buffer.allocUnsafe(length)\n let pos = 0\n for (i = 0; i < list.length; ++i) {\n let buf = list[i]\n if (isInstance(buf, Uint8Array)) {\n if (pos + buf.length > buffer.length) {\n if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf)\n buf.copy(buffer, pos)\n } else {\n Uint8Array.prototype.set.call(\n buffer,\n buf,\n pos\n )\n }\n } else if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n } else {\n buf.copy(buffer, pos)\n }\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n throw new TypeError(\n 'The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. ' +\n 'Received type ' + typeof string\n )\n }\n\n const len = string.length\n const mustMatch = (arguments.length > 2 && arguments[2] === true)\n if (!mustMatch && len === 0) return 0\n\n // Use a for loop to avoid recursion\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) {\n return mustMatch ? -1 : utf8ToBytes(string).length // assume utf8\n }\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n let loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coercion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package)\n// to detect a Buffer instance. It's not possible to use `instanceof Buffer`\n// reliably in a browserify context because there could be multiple different\n// copies of the 'buffer' package in use. This method works even for Buffer\n// instances that were created from another copy of the `buffer` package.\n// See: https://github.com/feross/buffer/issues/154\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n const i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n const len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (let i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n const len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (let i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n const len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (let i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n const length = this.length\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.toLocaleString = Buffer.prototype.toString\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n let str = ''\n const max = exports.INSPECT_MAX_BYTES\n str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim()\n if (this.length > max) str += ' ... '\n return '<Buffer ' + str + '>'\n}\nif (customInspectSymbol) {\n Buffer.prototype[customInspectSymbol] = Buffer.prototype.inspect\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (isInstance(target, Uint8Array)) {\n target = Buffer.from(target, target.offset, target.byteLength)\n }\n if (!Buffer.isBuffer(target)) {\n throw new TypeError(\n 'The \"target\" argument must be one of type Buffer or Uint8Array. ' +\n 'Received type ' + (typeof target)\n )\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n let x = thisEnd - thisStart\n let y = end - start\n const len = Math.min(x, y)\n\n const thisCopy = this.slice(thisStart, thisEnd)\n const targetCopy = target.slice(start, end)\n\n for (let i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (numberIsNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [val], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n let indexSize = 1\n let arrLength = arr.length\n let valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n let i\n if (dir) {\n let foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n let found = true\n for (let j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n const remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n const strLen = string.length\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n let i\n for (i = 0; i < length; ++i) {\n const parsed = parseInt(string.substr(i * 2, 2), 16)\n if (numberIsNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset >>> 0\n if (isFinite(length)) {\n length = length >>> 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n const remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n case 'latin1':\n case 'binary':\n return asciiWrite(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n const res = []\n\n let i = start\n while (i < end) {\n const firstByte = buf[i]\n let codePoint = null\n let bytesPerSequence = (firstByte > 0xEF)\n ? 4\n : (firstByte > 0xDF)\n ? 3\n : (firstByte > 0xBF)\n ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n let secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nconst MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n const len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n let res = ''\n let i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n const len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n let out = ''\n for (let i = start; i < end; ++i) {\n out += hexSliceLookupTable[buf[i]]\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n const bytes = buf.slice(start, end)\n let res = ''\n // If bytes.length is odd, the last 8 bits must be ignored (same as node.js)\n for (let i = 0; i < bytes.length - 1; i += 2) {\n res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256))\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n const len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n const newBuf = this.subarray(start, end)\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(newBuf, Buffer.prototype)\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUintLE =\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUintBE =\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n let val = this[offset + --byteLength]\n let mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUint8 =\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUint16LE =\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUint16BE =\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUint32LE =\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUint32BE =\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const lo = first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24\n\n const hi = this[++offset] +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n last * 2 ** 24\n\n return BigInt(lo) + (BigInt(hi) << BigInt(32))\n})\n\nBuffer.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const hi = first * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n const lo = this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last\n\n return (BigInt(hi) << BigInt(32)) + BigInt(lo)\n})\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let i = byteLength\n let mul = 1\n let val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = this[offset + 4] +\n this[offset + 5] * 2 ** 8 +\n this[offset + 6] * 2 ** 16 +\n (last << 24) // Overflow\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24)\n})\n\nBuffer.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = (first << 24) + // Overflow\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last)\n})\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUintLE =\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let mul = 1\n let i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUintBE =\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let i = byteLength - 1\n let mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUint8 =\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeUint16LE =\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeUint16BE =\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeUint32LE =\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeUint32BE =\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nfunction wrtBigUInt64LE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n return offset\n}\n\nfunction wrtBigUInt64BE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset + 7] = lo\n lo = lo >> 8\n buf[offset + 6] = lo\n lo = lo >> 8\n buf[offset + 5] = lo\n lo = lo >> 8\n buf[offset + 4] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset + 3] = hi\n hi = hi >> 8\n buf[offset + 2] = hi\n hi = hi >> 8\n buf[offset + 1] = hi\n hi = hi >> 8\n buf[offset] = hi\n return offset + 8\n}\n\nBuffer.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = 0\n let mul = 1\n let sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = byteLength - 1\n let mul = 1\n let sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nBuffer.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!Buffer.isBuffer(target)) throw new TypeError('argument should be a Buffer')\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('Index out of range')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n const len = end - start\n\n if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') {\n // Use built-in when available, missing from IE11\n this.copyWithin(targetStart, start, end)\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, end),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n if (val.length === 1) {\n const code = val.charCodeAt(0)\n if ((encoding === 'utf8' && code < 128) ||\n encoding === 'latin1') {\n // Fast path: If `val` fits into a single byte, use that numeric value.\n val = code\n }\n }\n } else if (typeof val === 'number') {\n val = val & 255\n } else if (typeof val === 'boolean') {\n val = Number(val)\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n let i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n const bytes = Buffer.isBuffer(val)\n ? val\n : Buffer.from(val, encoding)\n const len = bytes.length\n if (len === 0) {\n throw new TypeError('The value \"' + val +\n '\" is invalid for argument \"value\"')\n }\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// CUSTOM ERRORS\n// =============\n\n// Simplified versions from Node, changed for Buffer-only usage\nconst errors = {}\nfunction E (sym, getMessage, Base) {\n errors[sym] = class NodeError extends Base {\n constructor () {\n super()\n\n Object.defineProperty(this, 'message', {\n value: getMessage.apply(this, arguments),\n writable: true,\n configurable: true\n })\n\n // Add the error code to the name to include it in the stack trace.\n this.name = `${this.name} [${sym}]`\n // Access the stack to generate the error message including the error code\n // from the name.\n this.stack // eslint-disable-line no-unused-expressions\n // Reset the name to the actual name.\n delete this.name\n }\n\n get code () {\n return sym\n }\n\n set code (value) {\n Object.defineProperty(this, 'code', {\n configurable: true,\n enumerable: true,\n value,\n writable: true\n })\n }\n\n toString () {\n return `${this.name} [${sym}]: ${this.message}`\n }\n }\n}\n\nE('ERR_BUFFER_OUT_OF_BOUNDS',\n function (name) {\n if (name) {\n return `${name} is outside of buffer bounds`\n }\n\n return 'Attempt to access memory outside buffer bounds'\n }, RangeError)\nE('ERR_INVALID_ARG_TYPE',\n function (name, actual) {\n return `The \"${name}\" argument must be of type number. Received type ${typeof actual}`\n }, TypeError)\nE('ERR_OUT_OF_RANGE',\n function (str, range, input) {\n let msg = `The value of \"${str}\" is out of range.`\n let received = input\n if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {\n received = addNumericalSeparator(String(input))\n } else if (typeof input === 'bigint') {\n received = String(input)\n if (input > BigInt(2) ** BigInt(32) || input < -(BigInt(2) ** BigInt(32))) {\n received = addNumericalSeparator(received)\n }\n received += 'n'\n }\n msg += ` It must be ${range}. Received ${received}`\n return msg\n }, RangeError)\n\nfunction addNumericalSeparator (val) {\n let res = ''\n let i = val.length\n const start = val[0] === '-' ? 1 : 0\n for (; i >= start + 4; i -= 3) {\n res = `_${val.slice(i - 3, i)}${res}`\n }\n return `${val.slice(0, i)}${res}`\n}\n\n// CHECK FUNCTIONS\n// ===============\n\nfunction checkBounds (buf, offset, byteLength) {\n validateNumber(offset, 'offset')\n if (buf[offset] === undefined || buf[offset + byteLength] === undefined) {\n boundsError(offset, buf.length - (byteLength + 1))\n }\n}\n\nfunction checkIntBI (value, min, max, buf, offset, byteLength) {\n if (value > max || value < min) {\n const n = typeof min === 'bigint' ? 'n' : ''\n let range\n if (byteLength > 3) {\n if (min === 0 || min === BigInt(0)) {\n range = `>= 0${n} and < 2${n} ** ${(byteLength + 1) * 8}${n}`\n } else {\n range = `>= -(2${n} ** ${(byteLength + 1) * 8 - 1}${n}) and < 2 ** ` +\n `${(byteLength + 1) * 8 - 1}${n}`\n }\n } else {\n range = `>= ${min}${n} and <= ${max}${n}`\n }\n throw new errors.ERR_OUT_OF_RANGE('value', range, value)\n }\n checkBounds(buf, offset, byteLength)\n}\n\nfunction validateNumber (value, name) {\n if (typeof value !== 'number') {\n throw new errors.ERR_INVALID_ARG_TYPE(name, 'number', value)\n }\n}\n\nfunction boundsError (value, length, type) {\n if (Math.floor(value) !== value) {\n validateNumber(value, type)\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset', 'an integer', value)\n }\n\n if (length < 0) {\n throw new errors.ERR_BUFFER_OUT_OF_BOUNDS()\n }\n\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset',\n `>= ${type ? 1 : 0} and <= ${length}`,\n value)\n}\n\n// HELPER FUNCTIONS\n// ================\n\nconst INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node takes equal signs as end of the Base64 encoding\n str = str.split('=')[0]\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = str.trim().replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n let codePoint\n const length = string.length\n let leadSurrogate = null\n const bytes = []\n\n for (let i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n let c, hi, lo\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n let i\n for (i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\n// ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass\n// the `instanceof` check but they should be treated as of that type.\n// See: https://github.com/feross/buffer/issues/166\nfunction isInstance (obj, type) {\n return obj instanceof type ||\n (obj != null && obj.constructor != null && obj.constructor.name != null &&\n obj.constructor.name === type.name)\n}\nfunction numberIsNaN (obj) {\n // For IE11 support\n return obj !== obj // eslint-disable-line no-self-compare\n}\n\n// Create lookup table for `toString('hex')`\n// See: https://github.com/feross/buffer/issues/219\nconst hexSliceLookupTable = (function () {\n const alphabet = '0123456789abcdef'\n const table = new Array(256)\n for (let i = 0; i < 16; ++i) {\n const i16 = i * 16\n for (let j = 0; j < 16; ++j) {\n table[i16 + j] = alphabet[i] + alphabet[j]\n }\n }\n return table\n})()\n\n// Return not function with Error if BigInt not supported\nfunction defineBigIntMethod (fn) {\n return typeof BigInt === 'undefined' ? BufferBigIntNotDefined : fn\n}\n\nfunction BufferBigIntNotDefined () {\n throw new Error('BigInt not supported')\n}\n","/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */\n/* eslint-disable node/no-deprecated-api */\nvar buffer = require('buffer')\nvar Buffer = buffer.Buffer\n\n// alternative to using Object.keys for old browsers\nfunction copyProps (src, dst) {\n for (var key in src) {\n dst[key] = src[key]\n }\n}\nif (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {\n module.exports = buffer\n} else {\n // Copy properties from require('buffer')\n copyProps(buffer, exports)\n exports.Buffer = SafeBuffer\n}\n\nfunction SafeBuffer (arg, encodingOrOffset, length) {\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.prototype = Object.create(Buffer.prototype)\n\n// Copy static methods from Buffer\ncopyProps(Buffer, SafeBuffer)\n\nSafeBuffer.from = function (arg, encodingOrOffset, length) {\n if (typeof arg === 'number') {\n throw new TypeError('Argument must not be a number')\n }\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.alloc = function (size, fill, encoding) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n var buf = Buffer(size)\n if (fill !== undefined) {\n if (typeof encoding === 'string') {\n buf.fill(fill, encoding)\n } else {\n buf.fill(fill)\n }\n } else {\n buf.fill(0)\n }\n return buf\n}\n\nSafeBuffer.allocUnsafe = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return Buffer(size)\n}\n\nSafeBuffer.allocUnsafeSlow = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return buffer.SlowBuffer(size)\n}\n","'use strict'\n// base-x encoding / decoding\n// Copyright (c) 2018 base-x contributors\n// Copyright (c) 2014-2018 The Bitcoin Core developers (base58.cpp)\n// Distributed under the MIT software license, see the accompanying\n// file LICENSE or http://www.opensource.org/licenses/mit-license.php.\n// @ts-ignore\nvar _Buffer = require('safe-buffer').Buffer\nfunction base (ALPHABET) {\n if (ALPHABET.length >= 255) { throw new TypeError('Alphabet too long') }\n var BASE_MAP = new Uint8Array(256)\n for (var j = 0; j < BASE_MAP.length; j++) {\n BASE_MAP[j] = 255\n }\n for (var i = 0; i < ALPHABET.length; i++) {\n var x = ALPHABET.charAt(i)\n var xc = x.charCodeAt(0)\n if (BASE_MAP[xc] !== 255) { throw new TypeError(x + ' is ambiguous') }\n BASE_MAP[xc] = i\n }\n var BASE = ALPHABET.length\n var LEADER = ALPHABET.charAt(0)\n var FACTOR = Math.log(BASE) / Math.log(256) // log(BASE) / log(256), rounded up\n var iFACTOR = Math.log(256) / Math.log(BASE) // log(256) / log(BASE), rounded up\n function encode (source) {\n if (Array.isArray(source) || source instanceof Uint8Array) { source = _Buffer.from(source) }\n if (!_Buffer.isBuffer(source)) { throw new TypeError('Expected Buffer') }\n if (source.length === 0) { return '' }\n // Skip & count leading zeroes.\n var zeroes = 0\n var length = 0\n var pbegin = 0\n var pend = source.length\n while (pbegin !== pend && source[pbegin] === 0) {\n pbegin++\n zeroes++\n }\n // Allocate enough space in big-endian base58 representation.\n var size = ((pend - pbegin) * iFACTOR + 1) >>> 0\n var b58 = new Uint8Array(size)\n // Process the bytes.\n while (pbegin !== pend) {\n var carry = source[pbegin]\n // Apply \"b58 = b58 * 256 + ch\".\n var i = 0\n for (var it1 = size - 1; (carry !== 0 || i < length) && (it1 !== -1); it1--, i++) {\n carry += (256 * b58[it1]) >>> 0\n b58[it1] = (carry % BASE) >>> 0\n carry = (carry / BASE) >>> 0\n }\n if (carry !== 0) { throw new Error('Non-zero carry') }\n length = i\n pbegin++\n }\n // Skip leading zeroes in base58 result.\n var it2 = size - length\n while (it2 !== size && b58[it2] === 0) {\n it2++\n }\n // Translate the result into a string.\n var str = LEADER.repeat(zeroes)\n for (; it2 < size; ++it2) { str += ALPHABET.charAt(b58[it2]) }\n return str\n }\n function decodeUnsafe (source) {\n if (typeof source !== 'string') { throw new TypeError('Expected String') }\n if (source.length === 0) { return _Buffer.alloc(0) }\n var psz = 0\n // Skip and count leading '1's.\n var zeroes = 0\n var length = 0\n while (source[psz] === LEADER) {\n zeroes++\n psz++\n }\n // Allocate enough space in big-endian base256 representation.\n var size = (((source.length - psz) * FACTOR) + 1) >>> 0 // log(58) / log(256), rounded up.\n var b256 = new Uint8Array(size)\n // Process the characters.\n while (psz < source.length) {\n // Find code of next character\n var charCode = source.charCodeAt(psz)\n // Base map can not be indexed using char code\n if (charCode > 255) { return }\n // Decode character\n var carry = BASE_MAP[charCode]\n // Invalid character\n if (carry === 255) { return }\n var i = 0\n for (var it3 = size - 1; (carry !== 0 || i < length) && (it3 !== -1); it3--, i++) {\n carry += (BASE * b256[it3]) >>> 0\n b256[it3] = (carry % 256) >>> 0\n carry = (carry / 256) >>> 0\n }\n if (carry !== 0) { throw new Error('Non-zero carry') }\n length = i\n psz++\n }\n // Skip leading zeroes in b256.\n var it4 = size - length\n while (it4 !== size && b256[it4] === 0) {\n it4++\n }\n var vch = _Buffer.allocUnsafe(zeroes + (size - it4))\n vch.fill(0x00, 0, zeroes)\n var j = zeroes\n while (it4 !== size) {\n vch[j++] = b256[it4++]\n }\n return vch\n }\n function decode (string) {\n var buffer = decodeUnsafe(string)\n if (buffer) { return buffer }\n throw new Error('Non-base' + BASE + ' character')\n }\n return {\n encode: encode,\n decodeUnsafe: decodeUnsafe,\n decode: decode\n }\n}\nmodule.exports = base\n","import basex from 'base-x';\nvar ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';\nexport default basex(ALPHABET);\n","// guest-keystore.ts — durable per-device keypair for anonymous (\"guest\") auth.\n//\n// A guest is an ed25519 keypair generated on the device. Its public key is the\n// Bounded account address; it signs the auth challenge exactly like a wallet.\n//\n// Guest auth has one backend: WebCrypto Ed25519 + IndexedDB. The key is\n// NON-EXTRACTABLE: an XSS can ask it to sign but can never read the private\n// bytes. If WebCrypto or IndexedDB is unavailable, guest auth fails closed\n// instead of silently creating an extractable/stored-secret credential.\n//\n// The public output is a base58 address + a base64\n// detached signature, which is the format the session endpoint already accepts.\nimport bs58 from 'bs58';\nimport { getPlatform } from '../../platform';\nconst LEGACY_STORED_SECRET_KEY = 'bounded_guest_key_v1';\nconst IDB_NAME = 'bounded-guest';\nconst IDB_STORE = 'keys';\nconst IDB_KEY = 'ed25519';\nconst GUEST_KEY_REQUIREMENT = 'Guest auth requires non-extractable WebCrypto Ed25519 keys persisted in IndexedDB; ' +\n 'stored-secret guest credentials are disabled.';\nfunction toBase64(bytes) {\n let bin = '';\n for (let i = 0; i < bytes.length; i++)\n bin += String.fromCharCode(bytes[i]);\n // btoa exists in browsers + RN (Hermes) ; Buffer is the Node/SSR fallback.\n return typeof btoa !== 'undefined' ? btoa(bin) : Buffer.from(bytes).toString('base64');\n}\n// ----- WebCrypto (non-extractable) backend -----------------------------------\nfunction subtle() {\n const c = globalThis === null || globalThis === void 0 ? void 0 : globalThis.crypto;\n return c && c.subtle ? c.subtle : null;\n}\nfunction idb() {\n return new Promise((resolve, reject) => {\n const req = globalThis.indexedDB.open(IDB_NAME, 1);\n req.onupgradeneeded = () => req.result.createObjectStore(IDB_STORE);\n req.onsuccess = () => resolve(req.result);\n req.onerror = () => reject(req.error);\n });\n}\nfunction idbGet(db, key) {\n return new Promise((resolve, reject) => {\n const r = db.transaction(IDB_STORE, 'readonly').objectStore(IDB_STORE).get(key);\n r.onsuccess = () => resolve(r.result);\n r.onerror = () => reject(r.error);\n });\n}\nfunction idbPut(db, key, val) {\n return new Promise((resolve, reject) => {\n const r = db.transaction(IDB_STORE, 'readwrite').objectStore(IDB_STORE).put(val, key);\n r.onsuccess = () => resolve();\n r.onerror = () => reject(r.error);\n });\n}\nfunction guestKeyUnavailable(cause) {\n const detail = cause instanceof Error && cause.message ? ` Cause: ${cause.message}` : '';\n return new Error(`${GUEST_KEY_REQUIREMENT}${detail}`);\n}\nasync function webCryptoKey() {\n const s = subtle();\n if (!s)\n throw guestKeyUnavailable(new Error('WebCrypto subtle crypto is unavailable.'));\n if (typeof globalThis.indexedDB === 'undefined') {\n throw guestKeyUnavailable(new Error('IndexedDB is unavailable.'));\n }\n try {\n const db = await idb();\n let pair = (await idbGet(db, IDB_KEY));\n if (!pair) {\n // Probe Ed25519 support by generating (throws on unsupported engines).\n pair = (await s.generateKey({ name: 'Ed25519' }, /* extractable */ false, [\n 'sign',\n 'verify',\n ]));\n await idbPut(db, IDB_KEY, pair); // CryptoKey is structured-cloneable; bytes never exposed\n }\n const raw = new Uint8Array(await s.exportKey('raw', pair.publicKey)); // public is exportable\n const address = bs58.encode(raw);\n return {\n address,\n nonExtractable: true,\n async sign(message) {\n const data = new TextEncoder().encode(message);\n const sig = new Uint8Array(await s.sign({ name: 'Ed25519' }, pair.privateKey, data));\n return toBase64(sig);\n },\n };\n }\n catch (error) {\n throw guestKeyUnavailable(error);\n }\n}\nlet cached = null;\n/** Get (or create) this device's durable guest key. */\nexport async function getGuestKey() {\n if (cached)\n return cached;\n cached = await webCryptoKey();\n return cached;\n}\n/** Forget the guest key on this device (a fresh signInAnonymously mints a new one). */\nexport async function clearGuestKey() {\n cached = null;\n try {\n getPlatform().storage.removeItem(LEGACY_STORED_SECRET_KEY);\n }\n catch (_a) { }\n try {\n if (typeof globalThis.indexedDB !== 'undefined') {\n const db = await idb();\n await new Promise((res) => {\n const r = db.transaction(IDB_STORE, 'readwrite').objectStore(IDB_STORE).delete(IDB_KEY);\n r.onsuccess = () => res();\n r.onerror = () => res();\n });\n }\n }\n catch (_b) { }\n}\n","import { getActiveSessionManager as SessionManager, createSessionWithSignature, genAuthNonce, genSolanaMessage, } from '@bounded-sh/core';\nimport { setCurrentUser, setAuthLoading } from '../../global';\nimport { getGuestKey, clearGuestKey } from './guest-keystore';\nconst GUEST_TX_UNSUPPORTED = 'Guest (anonymous) auth is offchain-only — it cannot sign or submit Solana transactions. ' +\n 'Use a wallet provider for onchain actions.';\nexport class GuestAuthProvider {\n async login() {\n setAuthLoading(true);\n try {\n const key = await getGuestKey();\n // Reuse a still-valid session for this exact guest.\n const existing = await SessionManager().getSession();\n if (existing && existing.address === key.address) {\n const user = { address: key.address, isAnonymous: true, provider: this };\n setCurrentUser(user);\n return user;\n }\n // Mint a fresh session: nonce -> canonical message -> local signature.\n const nonce = await genAuthNonce();\n const message = await genSolanaMessage(key.address, nonce);\n const signature = await key.sign(message); // base64 detached ed25519\n const result = await createSessionWithSignature(key.address, message, signature);\n await SessionManager().storeSession(key.address, result.accessToken, result.idToken, result.refreshToken);\n const user = { address: key.address, isAnonymous: true, provider: this };\n setCurrentUser(user);\n return user;\n }\n finally {\n setAuthLoading(false);\n }\n }\n async restoreSession() {\n const session = await SessionManager().getSession();\n if (!session)\n return null;\n const user = { address: session.address, isAnonymous: true, provider: this };\n setCurrentUser(user);\n return user;\n }\n async logout() {\n // Clears the SESSION but keeps the device key, so logging back in returns the\n // SAME guest identity (and its data). Use forgetGuest() to wipe the key too.\n SessionManager().clearSession();\n setCurrentUser(null);\n }\n /** Wipe the device key — the next login() is a brand-new guest identity. */\n async forgetGuest() {\n SessionManager().clearSession();\n await clearGuestKey();\n setCurrentUser(null);\n }\n async signMessage(message) {\n const key = await getGuestKey();\n return key.sign(message);\n }\n // --- offchain guest: no Solana transaction surface -------------------------\n async runTransaction(_evm, _sol, _options) {\n throw new Error(GUEST_TX_UNSUPPORTED);\n }\n async signTransaction(_t) {\n throw new Error(GUEST_TX_UNSUPPORTED);\n }\n async signAndSubmitTransaction() {\n throw new Error(GUEST_TX_UNSUPPORTED);\n }\n async getNativeMethods() {\n return {};\n }\n}\n","import { getConfig, getActiveSessionManager, revokeSession } from '@bounded-sh/core';\nimport { setCurrentUser, setAuthLoading } from '../../global';\nimport { getPlatform } from '../../platform';\n// Web uses localStorage (WebSessionManager); React Native uses the configured\n// ReactNativeSessionManager. getActiveSessionManager() picks the right one by\n// whether the RN manager was configured (NOT `typeof window`, which is truthy on\n// RN too and would wrongly route to localStorage). Same selector the core\n// request path uses, so headless email OTP persists + authenticates on BOTH.\nconst sessionManager = getActiveSessionManager;\nconst NO_WALLET = 'Email login is offchain — it has no Solana wallet and cannot sign/submit ' +\n 'transactions. Use a wallet provider for onchain actions, or link a wallet later.';\n// ---------------------------------------------------------------------------\n// token / session helpers\n// ---------------------------------------------------------------------------\nfunction decodeJwt(token) {\n try {\n let b64 = token.split('.')[1].replace(/-/g, '+').replace(/_/g, '/');\n const pad = b64.length % 4;\n if (pad === 2)\n b64 += '==';\n else if (pad === 3)\n b64 += '=';\n // getPlatform().atob is RN-safe (global atob is undefined on Hermes/JSC).\n return JSON.parse(getPlatform().atob(b64));\n }\n catch (_a) {\n return {};\n }\n}\nfunction userFromIdToken(idToken, fallbackEmail) {\n const c = decodeJwt(idToken);\n const id = c['custom:userId'] || c.sub || c['custom:walletAddress'] || '';\n const email = (c.email || fallbackEmail || null);\n // Email logins have no wallet — address is null (the User type allows it).\n return { id, address: (c['custom:walletAddress'] || null), email, provider: emailProviderSingleton };\n}\nasync function humanAuthBase() {\n const cfg = await getConfig();\n const base = cfg.humanAuthApiUrl || 'https://auth.bounded.sh';\n return base.replace(/\\/$/, '');\n}\nasync function post(path, body) {\n const base = await humanAuthBase();\n let res;\n try {\n // Credential-free + no custom header: /email and /verify are open-CORS\n // (ACAO:*) public OTP routes, so this works inline from ANY app origin (no\n // popup, no redirect). The OTP is the body secret; the token returns in the\n // body. Adding credentials or a custom header would break the open-CORS\n // preflight — keep this a simple JSON POST.\n res = await fetch(base + path, {\n method: 'POST',\n headers: { 'content-type': 'application/json' },\n body: JSON.stringify(body),\n });\n }\n catch (err) {\n throw new Error(`Bounded auth request to ${path} failed: ${(err === null || err === void 0 ? void 0 : err.message) || err}`);\n }\n let data = null;\n try {\n data = await res.json();\n }\n catch ( /* non-JSON */_a) { /* non-JSON */ }\n if (!res.ok) {\n const msg = (data && (data.error || data.message)) || `HTTP ${res.status}`;\n throw new Error(String(msg));\n }\n return data || {};\n}\n// ---------------------------------------------------------------------------\n// headless primitives (used by the modal AND exported for custom UIs)\n// ---------------------------------------------------------------------------\nfunction normalizePhoneNumber(value) {\n const compact = String(value || '').trim().replace(/[()\\s.-]/g, '');\n return compact.startsWith('00') ? `+${compact.slice(2)}` : compact;\n}\nfunction assertPhoneNumber(value) {\n const phoneNumber = normalizePhoneNumber(value);\n if (!/^\\+[1-9]\\d{7,14}$/.test(phoneNumber)) {\n throw new Error('phoneNumber must be in E.164 format, e.g. +14155550132');\n }\n return phoneNumber;\n}\n/** Send a login code to `email`. Step 1 of the inline email-OTP flow. */\nexport async function sendEmailOtp(email) {\n const cfg = await getConfig();\n const e = (email || '').trim().toLowerCase();\n if (!e)\n throw new Error('email is required');\n const data = await post('/email', { email: e, appId: cfg.appId });\n return { ok: true, expiresInSeconds: data === null || data === void 0 ? void 0 : data.expiresInSeconds };\n}\n/** Send a login code by text message. Requires the Bounded issuer to have text OTP explicitly enabled and SMS configured. */\nexport async function sendTextOtp(phoneNumber) {\n const cfg = await getConfig();\n const phone = assertPhoneNumber(phoneNumber);\n const data = await post('/text', { phoneNumber: phone, appId: cfg.appId });\n return { ok: true, expiresInSeconds: data === null || data === void 0 ? void 0 : data.expiresInSeconds };\n}\n/**\n * Verify the code for `email` and establish the session. Step 2 of the flow.\n * Stores the Bounded id token (the realtime bearer) and sets the current user.\n */\nexport async function verifyEmailOtp(email, otp) {\n setAuthLoading(true);\n try {\n const cfg = await getConfig();\n const e = (email || '').trim().toLowerCase();\n const code = (otp || '').trim();\n if (!e || !code)\n throw new Error('email and code are required');\n const data = await post('/verify', { email: e, appId: cfg.appId, otp: code });\n const idToken = data === null || data === void 0 ? void 0 : data.idToken;\n if (!idToken)\n throw new Error('No token returned from verification.');\n const user = userFromIdToken(idToken, e);\n // Store the idToken as BOTH id + access (it is the JWT the realtime worker\n // verifies and carries `exp`, so the session-manager expiry check works).\n // address is \"\" for email (no wallet); the realtime bearer is the idToken.\n // Persist the rotating refresh token + the issuer base (humanAuthApiUrl) so the\n // session manager can silently renew via {issuer}/session/refresh — sessions now\n // live as long as the 30d refresh token instead of dying at the access TTL.\n const refreshToken = typeof (data === null || data === void 0 ? void 0 : data.refreshToken) === 'string' ? data.refreshToken : '';\n const issuer = (cfg.humanAuthApiUrl || '').replace(/\\/$/, '');\n await sessionManager().storeSession(String(user.address || ''), idToken, idToken, refreshToken, issuer);\n setCurrentUser(user);\n return user;\n }\n finally {\n setAuthLoading(false);\n }\n}\n/**\n * Verify the text-message code for `phoneNumber` and establish the session.\n * Phone-only users have `user.email === null`; use `user.id` for ownership.\n */\nexport async function verifyTextOtp(phoneNumber, otp) {\n setAuthLoading(true);\n try {\n const cfg = await getConfig();\n const phone = assertPhoneNumber(phoneNumber);\n const code = (otp || '').trim();\n if (!code)\n throw new Error('code is required');\n const data = await post('/text/verify', { phoneNumber: phone, appId: cfg.appId, otp: code });\n const idToken = data === null || data === void 0 ? void 0 : data.idToken;\n if (!idToken)\n throw new Error('No token returned from verification.');\n const user = userFromIdToken(idToken);\n const refreshToken = typeof (data === null || data === void 0 ? void 0 : data.refreshToken) === 'string' ? data.refreshToken : '';\n const issuer = (cfg.humanAuthApiUrl || '').replace(/\\/$/, '');\n await sessionManager().storeSession(String(user.address || ''), idToken, idToken, refreshToken, issuer);\n setCurrentUser(user);\n return user;\n }\n finally {\n setAuthLoading(false);\n }\n}\n/**\n * UPGRADE an anonymous (guest) session by LINKING an email credential — Firebase\n * `linkWithCredential` parity. The guest's `guestToken` is sent to the auth issuer\n * which, IF the email is brand-new, makes the new account ADOPT the guest's id so\n * `@user.id` is preserved and the guest's data carries over. If the email already\n * exists, the user just signs into it (stays separate; `linked:false`). On success\n * the upgraded session replaces the guest session and the user is no longer\n * anonymous. `guestToken` is captured by the caller BEFORE switching auth methods.\n */\nexport async function linkEmailWithGuest(email, otp, guestToken) {\n var _a;\n setAuthLoading(true);\n try {\n const cfg = await getConfig();\n const e = (email || '').trim().toLowerCase();\n const code = (otp || '').trim();\n if (!e || !code)\n throw new Error('email and code are required');\n if (!guestToken)\n throw new Error('an active anonymous session is required to link an email');\n // Capture the OLD guest session's refresh token + issuer BEFORE it's overwritten,\n // so we can revoke the guest refresh family after the upgrade. Otherwise a stolen\n // guest refresh token would keep minting access to the now-upgraded identity.\n const oldRefreshToken = sessionManager().getRefreshToken();\n const oldIssuer = (_a = sessionManager().getIssuer()) !== null && _a !== void 0 ? _a : undefined;\n const data = await post('/link/email', { email: e, appId: cfg.appId, otp: code, guestToken });\n const idToken = data === null || data === void 0 ? void 0 : data.idToken;\n if (!idToken)\n throw new Error('No token returned from link.');\n const user = userFromIdToken(idToken, e);\n // Persist the REAL rotating refresh token + human issuer so the upgraded session\n // silently renews (was previously stored as '' -> upgraded users couldn't refresh).\n const refreshToken = typeof (data === null || data === void 0 ? void 0 : data.refreshToken) === 'string' ? data.refreshToken : '';\n const issuer = (cfg.humanAuthApiUrl || '').replace(/\\/$/, '');\n await sessionManager().storeSession(String(user.address || ''), idToken, idToken, refreshToken, issuer);\n setCurrentUser(user);\n // Best-effort revoke of the old guest refresh family (upgrade is already committed;\n // a revoke failure must not break the new session).\n if (oldRefreshToken && oldRefreshToken !== refreshToken) {\n try {\n await revokeSession(oldRefreshToken, oldIssuer);\n }\n catch ( /* best-effort */_b) { /* best-effort */ }\n }\n return { user, linked: !!(data === null || data === void 0 ? void 0 : data.linked), isNewAccount: !!(data === null || data === void 0 ? void 0 : data.isNewAccount) };\n }\n finally {\n setAuthLoading(false);\n }\n}\n// ---------------------------------------------------------------------------\n// provider\n// ---------------------------------------------------------------------------\nexport class EmailAuthProvider {\n async login() {\n if (!getPlatform().hasDOM) {\n throw new Error('Email login on this platform (e.g. React Native) is headless: call ' +\n \"sendEmailOtp(email) then verifyEmailOtp(email, code), or, when text OTP is enabled, \" +\n \"sendTextOtp(phone) then verifyTextOtp(phone, code). Render your own OTP inputs. The built-in modal is web-only.\");\n }\n return openEmailModal();\n }\n async restoreSession() {\n const sm = sessionManager();\n const session = await sm.getSession();\n if (!session)\n return null;\n const idToken = sm.getIdToken();\n if (!idToken)\n return null;\n const user = userFromIdToken(idToken);\n setCurrentUser(user);\n return user;\n }\n async logout() {\n sessionManager().clearSession();\n setCurrentUser(null);\n }\n async signMessage(_message) { throw new Error(NO_WALLET); }\n async runTransaction(_evm, _sol, _options) { throw new Error(NO_WALLET); }\n async signTransaction(_t) { throw new Error(NO_WALLET); }\n async signAndSubmitTransaction() { throw new Error(NO_WALLET); }\n async getNativeMethods() { return {}; }\n}\nconst emailProviderSingleton = new EmailAuthProvider();\nexport { emailProviderSingleton };\n// ---------------------------------------------------------------------------\n// inline modal (web only) — mobile-first, no popup, no redirect\n// ---------------------------------------------------------------------------\nfunction openEmailModal() {\n return new Promise((resolve) => {\n var _a;\n const root = createEmailModalTree();\n const style = document.createElement('style');\n style.textContent = MODAL_CSS;\n root.appendChild(style);\n document.body.appendChild(root);\n const $ = (id) => root.querySelector('#' + id);\n const emailStep = $('ba-email-step');\n const otpStep = $('ba-otp-step');\n const emailInput = $('ba-email');\n const otpInput = $('ba-otp');\n const sentTo = $('ba-sent-to');\n const msg = $('ba-msg');\n const emailBtn = $('ba-email-btn');\n const otpBtn = $('ba-otp-btn');\n let email = '';\n let done = false;\n const setMsg = (t, err = false) => { msg.textContent = t; msg.className = 'ba-msg' + (err ? ' err' : ''); };\n const close = (user) => {\n var _a;\n if (done)\n return;\n done = true;\n document.removeEventListener('keydown', onEsc);\n (_a = root.querySelector('.ba-overlay')) === null || _a === void 0 ? void 0 : _a.classList.add('out');\n setTimeout(() => root.remove(), 160);\n resolve(user);\n };\n const onEsc = (e) => { if (e.key === 'Escape')\n close(null); };\n document.addEventListener('keydown', onEsc);\n (_a = root.querySelector('.ba-overlay')) === null || _a === void 0 ? void 0 : _a.addEventListener('click', (e) => {\n if (e.target.classList.contains('ba-overlay'))\n close(null);\n });\n $('ba-close').addEventListener('click', () => close(null));\n requestAnimationFrame(() => emailInput.focus());\n emailBtn.addEventListener('click', async () => {\n email = emailInput.value.trim();\n if (!/^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$/.test(email)) {\n setMsg('Enter a valid email.', true);\n return;\n }\n emailBtn.disabled = true;\n setMsg('Sending code…');\n try {\n await sendEmailOtp(email);\n sentTo.textContent = email;\n emailStep.classList.add('hidden');\n otpStep.classList.remove('hidden');\n setMsg('');\n otpInput.focus();\n }\n catch (err) {\n setMsg((err === null || err === void 0 ? void 0 : err.message) || 'Could not send the code.', true);\n }\n finally {\n emailBtn.disabled = false;\n }\n });\n emailInput.addEventListener('keydown', (e) => { if (e.key === 'Enter')\n emailBtn.click(); });\n otpBtn.addEventListener('click', async () => {\n const code = otpInput.value.trim();\n if (!/^\\d{4,8}$/.test(code)) {\n setMsg('Enter the code from your email.', true);\n return;\n }\n otpBtn.disabled = true;\n setMsg('Verifying…');\n try {\n const user = await verifyEmailOtp(email, code);\n close(user);\n }\n catch (err) {\n setMsg((err === null || err === void 0 ? void 0 : err.message) || 'That code did not work.', true);\n otpBtn.disabled = false;\n }\n });\n otpInput.addEventListener('keydown', (e) => { if (e.key === 'Enter')\n otpBtn.click(); });\n $('ba-back').addEventListener('click', () => {\n otpStep.classList.add('hidden');\n emailStep.classList.remove('hidden');\n setMsg('');\n emailInput.focus();\n });\n });\n}\nfunction createEmailModalTree() {\n const root = document.createElement('div');\n root.id = 'bounded-auth-modal';\n const overlay = document.createElement('div');\n overlay.className = 'ba-overlay';\n root.appendChild(overlay);\n const card = document.createElement('div');\n card.className = 'ba-card';\n card.setAttribute('role', 'dialog');\n card.setAttribute('aria-modal', 'true');\n card.setAttribute('aria-label', 'Sign in');\n overlay.appendChild(card);\n const close = document.createElement('button');\n close.id = 'ba-close';\n close.className = 'ba-x';\n close.setAttribute('aria-label', 'Close');\n close.type = 'button';\n close.textContent = '×';\n card.appendChild(close);\n // Brand row — the real Bounded mark (same geometry as bounded.sh) + wordmark.\n const brand = document.createElement('div');\n brand.className = 'ba-brand';\n const mark = document.createElement('span');\n mark.className = 'ba-mark';\n mark.setAttribute('aria-hidden', 'true');\n mark.innerHTML =\n '<svg width=\"24\" height=\"24\" viewBox=\"0 0 32 32\" fill=\"none\">' +\n '<path class=\"ba-c ba-c1\" d=\"M16 5 H5 V16\"/>' +\n '<path class=\"ba-c ba-c2\" d=\"M16 5 H27 V16\"/>' +\n '<path class=\"ba-c ba-c3\" d=\"M5 16 V27 H16\"/>' +\n '<path class=\"ba-c ba-c4\" d=\"M27 16 V27 H16\"/>' +\n '</svg>';\n brand.appendChild(mark);\n const word = document.createElement('span');\n word.className = 'ba-word';\n word.textContent = 'bounded';\n brand.appendChild(word);\n card.appendChild(brand);\n const title = document.createElement('h1');\n title.className = 'ba-title';\n title.textContent = 'Sign in';\n card.appendChild(title);\n const sub = document.createElement('p');\n sub.className = 'ba-subtitle';\n sub.textContent = 'Continue with your email — no wallet needed.';\n card.appendChild(sub);\n const emailStep = document.createElement('div');\n emailStep.id = 'ba-email-step';\n card.appendChild(emailStep);\n const emailLabel = document.createElement('label');\n emailLabel.className = 'ba-label';\n emailLabel.htmlFor = 'ba-email';\n emailLabel.textContent = 'Email';\n emailStep.appendChild(emailLabel);\n const emailInput = document.createElement('input');\n emailInput.id = 'ba-email';\n emailInput.className = 'ba-input';\n emailInput.type = 'email';\n emailInput.inputMode = 'email';\n emailInput.autocomplete = 'email';\n emailInput.placeholder = 'you@example.com';\n emailStep.appendChild(emailInput);\n const emailButton = document.createElement('button');\n emailButton.id = 'ba-email-btn';\n emailButton.className = 'ba-btn';\n emailButton.type = 'button';\n emailButton.textContent = 'Continue with email';\n emailStep.appendChild(emailButton);\n const otpStep = document.createElement('div');\n otpStep.id = 'ba-otp-step';\n otpStep.className = 'hidden';\n card.appendChild(otpStep);\n const otpLabel = document.createElement('label');\n otpLabel.className = 'ba-label';\n otpLabel.htmlFor = 'ba-otp';\n otpLabel.appendChild(document.createTextNode('Enter the code sent to '));\n const sentTo = document.createElement('span');\n sentTo.id = 'ba-sent-to';\n sentTo.className = 'ba-em';\n otpLabel.appendChild(sentTo);\n otpStep.appendChild(otpLabel);\n const otpInput = document.createElement('input');\n otpInput.id = 'ba-otp';\n otpInput.className = 'ba-input ba-code';\n otpInput.inputMode = 'numeric';\n otpInput.autocomplete = 'one-time-code';\n otpInput.maxLength = 8;\n otpInput.placeholder = '······';\n otpStep.appendChild(otpInput);\n const otpButton = document.createElement('button');\n otpButton.id = 'ba-otp-btn';\n otpButton.className = 'ba-btn';\n otpButton.type = 'button';\n otpButton.textContent = 'Verify & continue';\n otpStep.appendChild(otpButton);\n const backButton = document.createElement('button');\n backButton.id = 'ba-back';\n backButton.className = 'ba-link';\n backButton.type = 'button';\n backButton.textContent = 'Use a different email';\n otpStep.appendChild(backButton);\n const msg = document.createElement('div');\n msg.id = 'ba-msg';\n msg.className = 'ba-msg';\n card.appendChild(msg);\n const foot = document.createElement('div');\n foot.className = 'ba-foot';\n foot.textContent = 'Secured by Bounded';\n card.appendChild(foot);\n return root;\n}\n// Design language matches the hosted Bounded login (auth.bounded.sh) and bounded.sh:\n// dark editorial panel, green accent, Schibsted Grotesk / Newsreader / JetBrains Mono,\n// the Bounded mark drawing itself in. Fonts load best-effort (scoped @import); every\n// rule has a system fallback so the modal looks right even if Google Fonts is blocked.\n// All selectors are scoped under #bounded-auth-modal so we never leak into the host page.\nconst MODAL_CSS = `\n@import url('https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,500&family=Schibsted+Grotesk:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');\n#bounded-auth-modal{--ba-bg:#0a0a0b;--ba-panel:#0e0f11;--ba-inset:#060607;--ba-raise:#131416;\n --ba-line:rgba(232,230,222,.08);--ba-line-strong:rgba(232,230,222,.16);\n --ba-text:#e8e6de;--ba-dim:#9b9991;--ba-faint:#85837c;--ba-green:#58c98f;\n --ba-green-bg:rgba(88,201,143,.09);--ba-green-line:rgba(88,201,143,.28);--ba-red:#ec8488;\n --ba-body:'Schibsted Grotesk',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;\n --ba-display:'Newsreader','Iowan Old Style',Georgia,serif;\n --ba-mono:'JetBrains Mono',ui-monospace,'SF Mono',Menlo,monospace;}\n#bounded-auth-modal .ba-overlay{position:fixed;inset:0;background:rgba(6,6,7,.66);backdrop-filter:blur(4px);\n display:flex;align-items:center;justify-content:center;z-index:2147483000;opacity:1;transition:opacity .16s ease;\n font-family:var(--ba-body);padding:16px;}\n#bounded-auth-modal .ba-overlay.out{opacity:0;}\n#bounded-auth-modal *{box-sizing:border-box;}\n#bounded-auth-modal .ba-card{width:100%;max-width:372px;background:var(--ba-panel);color:var(--ba-text);\n border:1px solid var(--ba-line);border-radius:12px;padding:28px 28px 22px;position:relative;\n box-shadow:0 1px 0 rgba(232,230,222,.03) inset,0 30px 80px -40px rgba(0,0,0,.8);animation:ba-in .18s ease;}\n@keyframes ba-in{from{transform:translateY(8px);opacity:.5}to{transform:translateY(0);opacity:1}}\n#bounded-auth-modal .ba-x{position:absolute;top:14px;right:14px;width:28px;height:28px;border:1px solid var(--ba-line);\n background:var(--ba-raise);color:var(--ba-faint);border-radius:7px;font-size:18px;line-height:1;cursor:pointer;\n transition:color .15s,border-color .15s;}\n#bounded-auth-modal .ba-x:hover{color:var(--ba-text);border-color:var(--ba-faint);}\n#bounded-auth-modal .ba-brand{display:flex;align-items:center;gap:10px;margin:0 0 24px;}\n#bounded-auth-modal .ba-mark{display:flex;color:var(--ba-text);}\n#bounded-auth-modal .ba-mark svg{overflow:visible;display:block;}\n#bounded-auth-modal .ba-c{stroke:currentColor;stroke-width:2.4;fill:none;}\n@media (prefers-reduced-motion:no-preference){\n #bounded-auth-modal .ba-c{stroke-dasharray:23;stroke-dashoffset:23;animation:ba-draw .4s cubic-bezier(.45,0,.2,1) forwards;}\n #bounded-auth-modal .ba-c1{animation-delay:.1s}#bounded-auth-modal .ba-c2{animation-delay:.38s}\n #bounded-auth-modal .ba-c3{animation-delay:.66s}#bounded-auth-modal .ba-c4{animation-delay:.94s}}\n@keyframes ba-draw{to{stroke-dashoffset:0}}\n#bounded-auth-modal .ba-word{font-family:var(--ba-body);font-weight:500;font-size:15px;letter-spacing:.2px;color:var(--ba-text);}\n#bounded-auth-modal .ba-title{font-family:var(--ba-display);font-weight:400;font-size:25px;letter-spacing:-.01em;margin:0 0 5px;}\n#bounded-auth-modal .ba-subtitle{color:var(--ba-dim);font-size:14px;margin:0 0 22px;}\n#bounded-auth-modal .ba-label{display:block;font-size:12px;color:var(--ba-dim);margin:0 0 7px;}\n#bounded-auth-modal .ba-em{color:var(--ba-text);font-weight:600;}\n#bounded-auth-modal .ba-input{width:100%;background:var(--ba-inset);border:1px solid var(--ba-line-strong);color:var(--ba-text);\n border-radius:6px;padding:11px 13px;font-family:var(--ba-body);font-size:15px;outline:none;transition:border-color .15s,box-shadow .15s;}\n#bounded-auth-modal .ba-input::placeholder{color:var(--ba-faint);}\n#bounded-auth-modal .ba-input:focus{border-color:var(--ba-green-line);box-shadow:0 0 0 3px var(--ba-green-bg);}\n#bounded-auth-modal .ba-code{font-family:var(--ba-mono);letter-spacing:8px;text-align:center;font-size:21px;padding-left:8px;}\n#bounded-auth-modal .ba-btn{width:100%;margin-top:16px;background:var(--ba-text);color:var(--ba-bg);\n border:0;border-radius:6px;padding:12px;font-family:var(--ba-body);font-size:14px;font-weight:600;cursor:pointer;\n transition:opacity .15s,transform .04s;}\n#bounded-auth-modal .ba-btn:hover{opacity:.9;}\n#bounded-auth-modal .ba-btn:active{transform:translateY(.5px);}\n#bounded-auth-modal .ba-btn:disabled{opacity:.45;cursor:default;}\n#bounded-auth-modal .ba-link{width:100%;margin-top:14px;background:none;border:none;color:var(--ba-dim);\n font-family:var(--ba-body);font-size:12.5px;cursor:pointer;}\n#bounded-auth-modal .ba-link:hover{color:var(--ba-text);}\n#bounded-auth-modal .ba-msg{min-height:16px;margin-top:16px;font-size:12.5px;color:var(--ba-dim);text-align:center;}\n#bounded-auth-modal .ba-msg.err{color:var(--ba-red);}\n#bounded-auth-modal .ba-foot{margin-top:26px;padding-top:16px;border-top:1px solid var(--ba-line);\n text-align:center;font-size:11px;color:var(--ba-faint);}\n#bounded-auth-modal .hidden{display:none;}\n@media (max-width:480px){#bounded-auth-modal .ba-card{max-width:none;}}`;\n","export const SOLANA_DEVNET_RPC_URL = \"https://idelle-8nxsep-fast-devnet.helius-rpc.com\";\nexport const SOLANA_MAINNET_RPC_URL = \"https://celestia-cegncv-fast-mainnet.helius-rpc.com\";\nexport const SURFNET_RPC_URL = \"https://surfpool.fly.dev\";\nconst SUPPORTED_SOLANA_NETWORKS = new Set([\n \"solana_devnet\",\n \"solana_mainnet\",\n \"surfnet\",\n]);\nexport function normalizeSolanaRpcUrl(rpcUrl) {\n if (typeof rpcUrl !== \"string\")\n return null;\n const trimmed = rpcUrl.trim();\n return trimmed.length > 0 ? trimmed : null;\n}\nexport function isSupportedSolanaRpcNetwork(network) {\n return typeof network === \"string\" && SUPPORTED_SOLANA_NETWORKS.has(network);\n}\nexport function resolveSolanaWalletStandardChain(network, context) {\n switch (network) {\n case \"solana_devnet\":\n return \"solana:devnet\";\n case \"solana_mainnet\":\n return \"solana:mainnet\";\n case \"surfnet\":\n return \"solana:localnet\";\n case undefined:\n case null:\n case \"\":\n throw new Error(`${context} requires an explicit Solana network. ` +\n `Provide one of: solana_devnet, solana_mainnet, surfnet.`);\n default:\n throw new Error(`${context} does not support Solana network \"${network}\". ` +\n `Expected one of: solana_devnet, solana_mainnet, surfnet.`);\n }\n}\nexport function resolveSolanaRpcUrl(explicitRpcUrl, network, context) {\n if (network != null && network !== \"\" && !isSupportedSolanaRpcNetwork(network)) {\n throw new Error(`${context} does not support Solana network \"${network}\". ` +\n `Expected one of: solana_devnet, solana_mainnet, surfnet.`);\n }\n const rpcUrl = normalizeSolanaRpcUrl(explicitRpcUrl);\n if (rpcUrl)\n return rpcUrl;\n throw new Error(`${context} requires an explicit Solana RPC URL. Pass config.rpcUrl before signing or submitting onchain transactions.`);\n}\n","import { getConfig, getActiveSessionManager } from '@bounded-sh/core';\nimport { setCurrentUser, setAuthLoading, setAuthProviderInstance } from '../global';\nimport { getPlatform } from '../platform';\nconst PKCE_STORE_KEY = 'bounded.oidc.pkce';\nconst STORED_AUTH_METHOD_KEY = 'bounded_last_auth_method';\n// Active session store (Web on web, RN on React Native) — selected by config,\n// not by `typeof window` (truthy on RN). OIDC redirect/popup is web-only, but the\n// session it mints is read back through this same selector everywhere.\nconst sessionManager = getActiveSessionManager;\nfunction hasDOM() {\n return typeof window !== 'undefined' && typeof document !== 'undefined';\n}\nfunction decodeJwt(token) {\n try {\n let b64 = token.split('.')[1].replace(/-/g, '+').replace(/_/g, '/');\n const pad = b64.length % 4;\n if (pad === 2)\n b64 += '==';\n else if (pad === 3)\n b64 += '=';\n return JSON.parse(getPlatform().atob(b64));\n }\n catch (_a) {\n return {};\n }\n}\n// A minimal AuthProvider so getSession()/logout() work for OIDC sessions, mirroring email.\nconst oidcProviderSingleton = {\n async login() {\n const idToken = sessionManager().getIdToken();\n return idToken ? userFromIdToken(idToken) : null;\n },\n async getUser() {\n const idToken = sessionManager().getIdToken();\n return idToken ? userFromIdToken(idToken) : null;\n },\n async logout() { sessionManager().clearSession(); },\n};\nfunction userFromIdToken(idToken) {\n const c = decodeJwt(idToken);\n const id = c['custom:userId'] || c.sub || c['custom:walletAddress'] || '';\n return {\n id, address: (c['custom:walletAddress'] || null),\n email: (c.email || null), provider: oidcProviderSingleton,\n };\n}\nfunction tokenField(data, snake, camel) {\n var _a;\n const value = (_a = data === null || data === void 0 ? void 0 : data[snake]) !== null && _a !== void 0 ? _a : data === null || data === void 0 ? void 0 : data[camel];\n return typeof value === 'string' ? value : '';\n}\nasync function issuerBase() {\n const cfg = await getConfig();\n return (cfg.humanAuthApiUrl || 'https://auth.bounded.sh').replace(/\\/$/, '');\n}\nfunction b64url(buf) {\n let s = '';\n const bytes = new Uint8Array(buf);\n for (let i = 0; i < bytes.length; i++)\n s += String.fromCharCode(bytes[i]);\n return btoa(s).replace(/\\+/g, '-').replace(/\\//g, '_').replace(/=+$/, '');\n}\nasync function makePkce() {\n const rnd = new Uint8Array(32);\n crypto.getRandomValues(rnd);\n const verifier = b64url(rnd.buffer);\n const digest = await crypto.subtle.digest('SHA-256', new TextEncoder().encode(verifier));\n return { verifier, challenge: b64url(digest) };\n}\nfunction randomState() {\n const rnd = new Uint8Array(16);\n crypto.getRandomValues(rnd);\n return b64url(rnd.buffer);\n}\nfunction normalizeMethod(value) {\n const normalized = String(value || '').trim().toLowerCase();\n return /^[a-z0-9_-]{1,40}$/.test(normalized) ? normalized : null;\n}\nfunction appendHostedLoginHints(params, opts) {\n const methods = (opts.methods || [])\n .map((method) => normalizeMethod(method))\n .filter((method) => !!method);\n if (methods.length > 0) {\n params.set('bounded_methods', Array.from(new Set(methods)).join(','));\n }\n const provider = normalizeMethod(opts.provider);\n if (provider)\n params.set('bounded_provider', provider);\n}\nasync function buildAuthorizeUrl(opts) {\n const cfg = await getConfig();\n if (!cfg.appId)\n throw new Error('appId is not configured (init the SDK with your appId)');\n const redirectUri = opts.redirectUri;\n const { verifier, challenge } = await makePkce();\n const state = randomState();\n // Stash the verifier + state so the redirect_uri page can finish the exchange. sessionStorage\n // is per-tab and cleared on close — appropriate for a short-lived auth handshake.\n sessionStorage.setItem(PKCE_STORE_KEY, JSON.stringify({ verifier, state, redirectUri }));\n const base = await issuerBase();\n const params = new URLSearchParams({\n client_id: cfg.appId, redirect_uri: redirectUri, response_type: 'code', scope: 'openid profile email',\n code_challenge: challenge, code_challenge_method: 'S256', state,\n });\n appendHostedLoginHints(params, opts);\n return `${base}/api/auth/oauth2/authorize?${params.toString()}`;\n}\n/** Start login: navigate the whole page to the hosted Bounded login. Returns after redirect\n * to `redirectUri?code=...`, where you call completeLoginFromRedirect(). Web only. */\nexport async function loginWithRedirect(opts) {\n if (!hasDOM())\n throw new Error('loginWithRedirect is web-only');\n const url = await buildAuthorizeUrl(opts);\n window.location.href = url;\n}\nconst LINK_GUEST_KEY = 'bounded.link.guest';\n/** UPGRADE the current anonymous (guest) session by linking a SOCIAL/redirect login\n * (e.g. Google) — Firebase `linkWithPopup`/redirect parity. Stashes the guest token,\n * then runs the normal redirect login; `completeLoginFromRedirect()` on the callback\n * page finishes the link automatically (if the social account is brand-new the guest's\n * `@user.id` is preserved, else it stays separate). Requires an active guest session. */\nexport async function linkWithRedirect(opts) {\n if (!hasDOM())\n throw new Error('linkWithRedirect is web-only');\n const guestToken = sessionManager().getIdToken();\n if (!guestToken)\n throw new Error('linkWithRedirect requires an active anonymous session — call signInAnonymously() first.');\n sessionStorage.setItem(LINK_GUEST_KEY, guestToken);\n const url = await buildAuthorizeUrl(opts);\n window.location.href = url;\n}\n// If a guest-link is pending (linkWithRedirect stashed a guest token before this\n// redirect), exchange it + the fresh social token for an UPGRADED token via\n// /link/social and replace the session. Returns the upgraded user, or null if no\n// link was pending / the link failed (in which case the plain social login stands).\nasync function finishGuestLinkIfPending(socialIdToken) {\n if (!hasDOM())\n return null;\n const guestToken = sessionStorage.getItem(LINK_GUEST_KEY);\n if (!guestToken)\n return null;\n sessionStorage.removeItem(LINK_GUEST_KEY);\n try {\n const cfg = await getConfig();\n const base = await issuerBase();\n const res = await fetch(`${base}/link/social`, {\n method: 'POST', headers: { 'content-type': 'application/json' },\n body: JSON.stringify({ appId: cfg.appId, guestToken, socialToken: socialIdToken }),\n });\n const data = await res.json().catch(() => null);\n const idToken = tokenField(data, 'id_token', 'idToken');\n if (!res.ok || !idToken)\n return null; // link failed -> keep the plain social session\n const upgraded = userFromIdToken(idToken);\n const accessToken = tokenField(data, 'access_token', 'accessToken') || idToken;\n const refreshToken = tokenField(data, 'refresh_token', 'refreshToken');\n await sessionManager().storeSession(String(upgraded.address || ''), accessToken, idToken, refreshToken, base);\n setCurrentUser(upgraded);\n return upgraded;\n }\n catch (_a) {\n return null;\n }\n}\n/** Finish login on the redirect_uri page: exchange ?code= for a token (PKCE-verified), store\n * the session, and return the User. Idempotent: returns null if there's no ?code= in the URL. */\nexport async function completeLoginFromRedirect() {\n if (!hasDOM())\n return null;\n const url = new URL(window.location.href);\n const code = url.searchParams.get('code');\n const returnedState = url.searchParams.get('state');\n if (!code)\n return null;\n setAuthLoading(true);\n try {\n const raw = sessionStorage.getItem(PKCE_STORE_KEY);\n if (!raw)\n throw new Error('Missing PKCE state — start login with loginWithRedirect()');\n const pkce = JSON.parse(raw);\n if (!returnedState || returnedState !== pkce.state)\n throw new Error('OAuth state mismatch — possible CSRF; aborting');\n const user = await exchangeCode(code, pkce.verifier, pkce.redirectUri);\n sessionStorage.removeItem(PKCE_STORE_KEY);\n // If this redirect was a guest UPGRADE (linkWithRedirect), finish the link now:\n // swap the fresh social session for one minted under the guest's preserved id.\n const socialIdToken = sessionManager().getIdToken();\n const upgraded = socialIdToken ? await finishGuestLinkIfPending(socialIdToken) : null;\n // Strip code/state from the URL so a reload doesn't re-exchange (codes are single-use anyway).\n url.searchParams.delete('code');\n url.searchParams.delete('state');\n window.history.replaceState({}, document.title, url.pathname + url.search + url.hash);\n return upgraded !== null && upgraded !== void 0 ? upgraded : user;\n }\n finally {\n setAuthLoading(false);\n }\n}\n/** Popup variant: open the hosted login in a popup; resolves with the User once the popup's\n * redirect_uri page posts the code back. The redirect_uri page must call completeLoginInPopup(). */\nexport async function loginWithPopup(opts) {\n if (!hasDOM())\n throw new Error('loginWithPopup is web-only');\n const url = await buildAuthorizeUrl(opts);\n const w = opts.width || 480, h = opts.height || 720;\n const left = window.screenX + (window.outerWidth - w) / 2;\n const top = window.screenY + (window.outerHeight - h) / 2;\n const popup = window.open(url, 'bounded-oidc', `width=${w},height=${h},left=${left},top=${top}`);\n if (!popup)\n throw new Error('Popup blocked — use loginWithRedirect() instead');\n const expectedOrigin = new URL(opts.redirectUri).origin;\n return await new Promise((resolve, reject) => {\n const onMsg = async (ev) => {\n if (ev.origin !== expectedOrigin)\n return; // only trust the redirect_uri origin\n const d = ev.data;\n if (!d || d.type !== 'bounded-oidc-code' || typeof d.code !== 'string')\n return;\n window.removeEventListener('message', onMsg);\n try {\n const raw = sessionStorage.getItem(PKCE_STORE_KEY);\n if (!raw)\n throw new Error('Missing PKCE state');\n const pkce = JSON.parse(raw);\n if (d.state !== pkce.state)\n throw new Error('OAuth state mismatch');\n const user = await exchangeCode(d.code, pkce.verifier, pkce.redirectUri);\n sessionStorage.removeItem(PKCE_STORE_KEY);\n try {\n popup.close();\n }\n catch ( /* ignore */_a) { /* ignore */ }\n resolve(user);\n }\n catch (e) {\n reject(e);\n }\n };\n window.addEventListener('message', onMsg);\n const timer = setInterval(() => {\n if (popup.closed) {\n clearInterval(timer);\n window.removeEventListener('message', onMsg);\n reject(new Error('Login window closed'));\n }\n }, 500);\n });\n}\n/** Call this on the redirect_uri page when login was opened via loginWithPopup(): posts the\n * code back to the opener and closes. (For the redirect variant use completeLoginFromRedirect.) */\nexport function completeLoginInPopup(openerOrigin) {\n if (!hasDOM() || !window.opener)\n return;\n const url = new URL(window.location.href);\n const code = url.searchParams.get('code');\n const state = url.searchParams.get('state');\n if (!code)\n return;\n try {\n window.opener.postMessage({ type: 'bounded-oidc-code', code, state }, openerOrigin);\n }\n catch ( /* ignore */_a) { /* ignore */ }\n try {\n window.close();\n }\n catch ( /* ignore */_b) { /* ignore */ }\n}\nasync function exchangeCode(code, verifier, redirectUri) {\n const cfg = await getConfig();\n const base = await issuerBase();\n // OIDC token endpoint: application/x-www-form-urlencoded (the standard). Public client (no\n // secret) authenticated by PKCE. The code is single-use + short-TTL on the server.\n const body = new URLSearchParams({\n grant_type: 'authorization_code', code, redirect_uri: redirectUri,\n client_id: cfg.appId, code_verifier: verifier,\n });\n let res;\n try {\n res = await fetch(`${base}/api/auth/oauth2/token`, {\n method: 'POST', headers: { 'content-type': 'application/x-www-form-urlencoded' }, body: body.toString(),\n });\n }\n catch (err) {\n throw new Error(`Bounded token exchange failed: ${(err === null || err === void 0 ? void 0 : err.message) || err}`);\n }\n let data = null;\n try {\n data = await res.json();\n }\n catch ( /* non-JSON */_a) { /* non-JSON */ }\n if (!res.ok)\n throw new Error(String((data && (data.error_description || data.error || data.message)) || `token HTTP ${res.status}`));\n const idToken = (data === null || data === void 0 ? void 0 : data.id_token) || (data === null || data === void 0 ? void 0 : data.idToken);\n if (!idToken)\n throw new Error('No id_token returned from the token endpoint');\n const accessToken = tokenField(data, 'access_token', 'accessToken') || idToken;\n const refreshToken = tokenField(data, 'refresh_token', 'refreshToken');\n const user = userFromIdToken(idToken);\n await sessionManager().storeSession(String(user.address || ''), accessToken, idToken, refreshToken, base);\n try {\n getPlatform().storage.setItem(STORED_AUTH_METHOD_KEY, 'email');\n }\n catch ( /* storage unavailable */_b) { /* storage unavailable */ }\n setCurrentUser(user);\n setAuthProviderInstance(oidcProviderSingleton);\n return user;\n}\n","// NOTE: Provider class re-exports have been moved to index.ts (web) and\n// index.native.ts (RN) to avoid eager resolution of web-only dependencies\n// (react-dom) when this module is imported on RN.\nimport { getConfig, WebSessionManager, ReactNativeSessionManager, getActiveSessionManager, revokeSession } from \"@bounded-sh/core\";\n// Web-only providers are lazily imported inside getAuthProvider() to avoid\n// pulling react-dom into the RN bundle.\nimport { OffchainAuthProvider } from \"./providers/offchain-auth-provider\";\nimport { GuestAuthProvider } from \"./providers/guest-auth-provider\";\n// Email (Bounded Better Auth) is RN-safe to import statically: the DOM modal is\n// only touched inside login() behind a hasDOM guard; the headless email send/verify\n// work on web AND React Native. Text OTP helpers are opt-in on the hosted issuer\n// and share the same session provider when enabled.\n// Re-exported below via wrappers that register the\n// auth method (so reload-restore + logout work), mirroring signInAnonymously.\nimport { EmailAuthProvider, sendEmailOtp as emailSend, sendTextOtp as textSend, verifyEmailOtp as emailVerify, verifyTextOtp as textVerify, linkEmailWithGuest as emailLink, } from \"./providers/email-auth-provider\";\nimport { setAuthProviderInstance } from \"../global\";\nimport { getPlatform } from \"../platform\";\nimport { normalizeSolanaRpcUrl, resolveSolanaWalletStandardChain, } from \"./solana-rpc\";\nlet currentAuthProvider = null;\nlet currentAuthMethod = null;\nlet currentAuthProviderConfigKey = null;\nlet initConfig = null;\nconst objectIdentityKeys = new WeakMap();\nlet nextObjectIdentityKey = 1;\n// --- localStorage helpers: track which auth method created the active session ---\nconst STORED_AUTH_METHOD_KEY = 'bounded_last_auth_method';\nfunction getStoredAuthMethod() {\n try {\n return getPlatform().storage.getItem(STORED_AUTH_METHOD_KEY);\n }\n catch (_a) {\n return null;\n }\n}\nfunction setStoredAuthMethod(method) {\n try {\n if (method) {\n getPlatform().storage.setItem(STORED_AUTH_METHOD_KEY, method);\n }\n else {\n getPlatform().storage.removeItem(STORED_AUTH_METHOD_KEY);\n }\n }\n catch (_a) {\n // storage might not be available\n }\n}\nfunction objectIdentityKey(value) {\n if (!value || (typeof value !== 'object' && typeof value !== 'function'))\n return null;\n const obj = value;\n let id = objectIdentityKeys.get(obj);\n if (!id) {\n id = nextObjectIdentityKey++;\n objectIdentityKeys.set(obj, id);\n }\n return `object:${id}`;\n}\nfunction stableConfigValue(value, seen = new WeakSet()) {\n if (value === null || typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean')\n return value;\n if (typeof value === 'function')\n return '[function]';\n if (Array.isArray(value))\n return value.map((item) => stableConfigValue(item, seen));\n if (typeof value === 'object') {\n if (seen.has(value))\n return '[circular]';\n seen.add(value);\n const out = {};\n for (const key of Object.keys(value).sort()) {\n out[key] = stableConfigValue(value[key], seen);\n }\n seen.delete(value);\n return out;\n }\n return String(value);\n}\nfunction authProviderConfigKey(config) {\n var _a, _b, _c, _d, _e, _f, _g, _h;\n return JSON.stringify({\n authMethod: (_a = config.authMethod) !== null && _a !== void 0 ? _a : null,\n chain: (_b = config.chain) !== null && _b !== void 0 ? _b : null,\n rpcUrl: normalizeSolanaRpcUrl(config.rpcUrl),\n name: (_c = config.name) !== null && _c !== void 0 ? _c : null,\n logoUrl: (_d = config.logoUrl) !== null && _d !== void 0 ? _d : null,\n phantomConfig: stableConfigValue((_e = config.phantomConfig) !== null && _e !== void 0 ? _e : null),\n privyConfig: stableConfigValue((_f = config.privyConfig) !== null && _f !== void 0 ? _f : null),\n mobileWalletConfig: stableConfigValue((_g = config.mobileWalletConfig) !== null && _g !== void 0 ? _g : null),\n privyExpoProvider: objectIdentityKey((_h = config.privyExpoProvider) !== null && _h !== void 0 ? _h : null),\n });\n}\n/**\n * Clears the session if it was created by a different auth method.\n * Returns true if the session was cleared, false if the session is compatible.\n *\n * Dispatches to the correct session manager based on the current auth method\n * so both web (WebSessionManager) and RN (ReactNativeSessionManager) sessions\n * are properly cleared.\n */\nexport function clearIncompatibleSession() {\n if (getStoredAuthMethod() === currentAuthMethod) {\n return false;\n }\n // Clear both managers: on web the RN manager is a no-op (not configured),\n // and on RN the web manager is a no-op (no localStorage).\n WebSessionManager.clearSession();\n try {\n ReactNativeSessionManager.clearSession();\n }\n catch ( /* not configured on web */_a) { /* not configured on web */ }\n setStoredAuthMethod(null);\n return true;\n}\n// Lazy loaders for web-only providers.\n// Using dynamic import() ensures Metro (RN) never resolves these modules.\nasync function loadPhantomWalletProvider() {\n const mod = await import(\"./providers/phantom-wallet-provider\");\n return { PhantomWalletProvider: mod.PhantomWalletProvider };\n}\n// Web Privy provider (depends on react-dom + @privy-io/react-auth). Lazy so Metro\n// never bundles it into the RN build — RN uses the @privy-io/expo provider instead.\nasync function loadPrivyWalletProvider() {\n const mod = await import(\"./providers/privy-wallet-provider\");\n return mod.PrivyWalletProvider;\n}\nasync function loadSolanaMobileWalletProvider() {\n const mod = await import(\"./providers/solana-mobile-wallet-provider\");\n return mod.SolanaMobileWalletProvider;\n}\nfunction requireWebPrivyConfig(config) {\n if (!config.privyConfig || typeof config.privyConfig.appId !== 'string' || config.privyConfig.appId.trim() === '') {\n throw new Error('Privy auth requires config.privyConfig.appId; no default Privy app is used.');\n }\n if (!config.privyConfig.config || typeof config.privyConfig.config !== 'object') {\n throw new Error('Privy auth requires config.privyConfig.config for the app-scoped Privy provider.');\n }\n return config.privyConfig;\n}\nfunction getConfiguredSolanaNetwork(config) {\n if (typeof config.chain !== 'string')\n return null;\n const chain = config.chain.trim();\n if (chain === '' || chain === 'offchain')\n return null;\n return chain;\n}\nfunction mobileWalletClusterFromNetwork(network) {\n switch (network) {\n case \"solana_devnet\":\n return \"devnet\";\n case \"solana_mainnet\":\n return \"mainnet-beta\";\n case \"surfnet\":\n return \"localnet\";\n case null:\n return null;\n default:\n resolveSolanaWalletStandardChain(network, \"Mobile wallet auth\");\n return null;\n }\n}\nfunction requireMobileWalletConfig(config) {\n var _a, _b, _c;\n const configuredNetwork = getConfiguredSolanaNetwork(config);\n const cluster = (_b = (_a = config.mobileWalletConfig) === null || _a === void 0 ? void 0 : _a.cluster) !== null && _b !== void 0 ? _b : mobileWalletClusterFromNetwork(configuredNetwork);\n if (!cluster) {\n throw new Error(\"Mobile wallet auth requires an explicit Solana network. \" +\n \"Pass config.chain as solana_devnet, solana_mainnet, or surfnet, \" +\n \"or pass mobileWalletConfig.cluster.\");\n }\n return Object.assign(Object.assign({}, ((_c = config.mobileWalletConfig) !== null && _c !== void 0 ? _c : {})), { cluster });\n}\nasync function hotSwapToMWAProvider(config) {\n var _a;\n const rpcUrl = normalizeSolanaRpcUrl(config.rpcUrl);\n const configuredNetwork = getConfiguredSolanaNetwork(config);\n const SolanaMobileWalletProvider = await loadSolanaMobileWalletProvider();\n const mwaConfig = config.mobileWalletConfig\n ? requireMobileWalletConfig(config)\n : {\n appIdentity: {\n name: config.name || undefined,\n uri: getPlatform().getLocationOrigin(),\n },\n cluster: (_a = mobileWalletClusterFromNetwork(configuredNetwork)) !== null && _a !== void 0 ? _a : undefined,\n };\n if (!mwaConfig.cluster) {\n throw new Error(\"Mobile wallet auth requires config.chain or mobileWalletConfig.cluster before switching providers.\");\n }\n const mwaProvider = new SolanaMobileWalletProvider(rpcUrl, mwaConfig, configuredNetwork);\n let provider = mwaProvider;\n if (config.chain === \"offchain\") {\n provider = new OffchainAuthProvider(mwaProvider);\n }\n currentAuthProvider = provider;\n currentAuthMethod = 'mobile-wallet-adapter';\n currentAuthProviderConfigKey = authProviderConfigKey(Object.assign(Object.assign({}, config), { authMethod: 'mobile-wallet-adapter' }));\n const coreConfig = await getConfig();\n coreConfig.authProvider = provider;\n // Send 'phantom' as authMethod so the server routes to Solana verification.\n // TODO: change back to 'mobile-wallet-adapter' once the backend is deployed.\n coreConfig.authMethod = 'phantom';\n setAuthProviderInstance(provider);\n return provider;\n}\nexport { SOLANA_DEVNET_RPC_URL, SOLANA_MAINNET_RPC_URL, SURFNET_RPC_URL, } from \"./solana-rpc\";\nexport async function getAuthProvider(config) {\n var _a, _b;\n const nextProviderConfigKey = config ? authProviderConfigKey(config) : null;\n if (currentAuthProvider && (!config || currentAuthProviderConfigKey === nextProviderConfigKey)) {\n return currentAuthProvider;\n }\n if (!config) {\n throw new Error(\"Config is required to initialize auth provider\");\n }\n if (currentAuthProvider && currentAuthProviderConfigKey !== nextProviderConfigKey) {\n currentAuthProvider = null;\n currentAuthMethod = null;\n currentAuthProviderConfigKey = null;\n }\n initConfig = config;\n const authMethod = config.authMethod;\n if (!authMethod) {\n throw new Error(\"authMethod is required to initialize auth provider; configure the single intended auth method explicitly.\");\n }\n const rpcUrl = normalizeSolanaRpcUrl(config.rpcUrl);\n const configuredNetwork = getConfiguredSolanaNetwork(config);\n currentAuthMethod = authMethod;\n // Clear, actionable error when the BROWSER build (`bounded-sh`) is loaded in a\n // non-browser (Node) runtime. The wallet providers below need `window`; without\n // it they throw a cryptic \"PhantomWalletProvider can only be instantiated in a\n // browser environment\" deep in init(). The server build (`bounded-sh/server`)\n // never resolves these methods (it signs with a keypair), so this can't fire for\n // it — it only converts the cryptic browser-in-Node crash into a useful message.\n const browserWalletMethods = ['phantom', 'rainbowkit', 'coinbase-smart-wallet', 'onboard', 'mobile-wallet-adapter', 'privy'];\n if (typeof window === 'undefined' && browserWalletMethods.includes(authMethod)) {\n throw new Error(`bounded-sh: '${authMethod}' auth requires a browser, but no \\`window\\` was found ` +\n `(you're likely running in Node). In server/Node code, import from 'bounded-sh/server' ` +\n `instead of 'bounded-sh' — it signs with an explicit keypair passed to createWalletClient({ keypair }) ` +\n `and needs no browser.`);\n }\n switch (authMethod) {\n case \"email\":\n // Bounded Better Auth human login (email OTP, inline). The provider\n // renders a web modal for login(); on RN use the headless\n // sendEmailOtp/verifyEmailOtp exports.\n currentAuthProvider = new EmailAuthProvider();\n break;\n case \"wallet\":\n console.warn(\"Wallet auth is not yet supported.\");\n break;\n case \"rainbowkit\":\n console.warn(\"Rainbow Kit auth is not yet supported.\");\n break;\n case \"phantom\": {\n const { PhantomWalletProvider } = await loadPhantomWalletProvider();\n currentAuthProvider = new PhantomWalletProvider(rpcUrl, config.phantomConfig, configuredNetwork);\n // MWA hot-swap is always available (custom modal shows MWA button on Android)\n currentAuthProvider.onSwitchToMWA =\n () => hotSwapToMWAProvider(config);\n break;\n }\n case \"privy\": {\n // Web Privy: a co-equal login route alongside email/phantom/guest. The\n // Privy embedded/external Solana wallet signs the SIWS challenge, so the\n // session is minted through the same wallet path as Phantom.\n const privyConfig = requireWebPrivyConfig(config);\n const PrivyWalletProvider = await loadPrivyWalletProvider();\n currentAuthProvider = new PrivyWalletProvider((_a = config.name) !== null && _a !== void 0 ? _a : null, (_b = config.logoUrl) !== null && _b !== void 0 ? _b : null, privyConfig, rpcUrl, configuredNetwork);\n break;\n }\n case \"privy-expo\":\n // React Native Privy: @privy-io/expo is hook-based, so the host app must\n // create a PrivyExpoProvider, bridge the Privy hooks via setPrivyMethods()\n // from inside its <PrivyProvider> tree, and pass it as config.privyExpoProvider.\n if (!config.privyExpoProvider) {\n throw new Error('authMethod \"privy-expo\" requires a PrivyExpoProvider instance passed as config.privyExpoProvider. ' +\n 'Create the provider, call setPrivyMethods() from your React Native component tree, then pass it to init().');\n }\n currentAuthProvider = config.privyExpoProvider;\n break;\n case \"mobile-wallet-adapter\": {\n const SolanaMobileWalletProvider = await loadSolanaMobileWalletProvider();\n currentAuthProvider = new SolanaMobileWalletProvider(rpcUrl, requireMobileWalletConfig(config), configuredNetwork);\n break;\n }\n case \"onboard\":\n console.warn(\"Onboard auth is not yet supported.\");\n break;\n case \"guest\":\n // Anonymous auth: a device-local ed25519 keypair signs the challenge.\n currentAuthProvider = new GuestAuthProvider();\n break;\n default:\n break;\n }\n if (!currentAuthProvider) {\n throw new Error(\"No auth provider was selected. Does your app have a supported auth method or chain configured?\");\n }\n // Wrap with OffchainAuthProvider for offchain/poofnet chain\n if (config.chain === \"offchain\") {\n console.log(\"[Offchain] Wrapping auth provider for Poofnet transaction tracking\");\n currentAuthProvider = new OffchainAuthProvider(currentAuthProvider);\n }\n currentAuthProviderConfigKey = nextProviderConfigKey;\n return currentAuthProvider;\n}\n/**\n * Browser/React-Native-only auth flows (guest, email) persist their session via\n * WebSessionManager, which is gated to environments that have `window` /\n * `localStorage`. In Node those stores no-op, so the session is minted on the\n * server but never saved locally — the caller looks logged in yet every request\n * 403s. Fail fast with actionable guidance instead of that silent footgun.\n */\nfunction assertBrowserAuthEnv(method) {\n if (typeof window === 'undefined') {\n throw new Error(`bounded-sh: '${method}' is a browser/React-Native auth flow — it needs \\`window\\`/\\`localStorage\\` ` +\n `to persist the session, which Node doesn't have (the session would be silently dropped, then every ` +\n `request 403s). In Node/server code import from 'bounded-sh/server' and sign with a keypair ` +\n `by using createWalletClient({ keypair }).`);\n }\n}\n/**\n * Anonymous (\"guest\") sign-in: zero-friction auth backed by a device-local\n * ed25519 keypair (no email, no wallet, no popup). The keypair is generated +\n * persisted on the device; its public key becomes `@user.address`. Durable\n * across reloads. Upgrade later by linking an email; transfer accounts via the\n * ownership-as-data pattern. `init()` must have run first. Browser/RN only.\n */\nexport async function signInAnonymously() {\n assertBrowserAuthEnv('signInAnonymously');\n const provider = new GuestAuthProvider();\n currentAuthProvider = provider;\n currentAuthMethod = 'guest';\n currentAuthProviderConfigKey = 'direct:guest';\n const coreConfig = await getConfig();\n coreConfig.authProvider = provider;\n coreConfig.authMethod = 'guest';\n setAuthProviderInstance(provider);\n setStoredAuthMethod('guest');\n return provider.login();\n}\n/**\n * Log in with Privy as a co-equal route — selectable at runtime alongside\n * `login()` (email/wallet) and `signInAnonymously()`, without re-`init()`.\n *\n * On WEB it lazy-loads the @privy-io/react-auth-backed PrivyWalletProvider from\n * `config.privyConfig`. On REACT NATIVE the host must have created a\n * PrivyExpoProvider and bridged the Privy hooks via setPrivyMethods() (pass it as\n * `config.privyExpoProvider` to init()) — RN can't construct it here because the\n * Privy hooks live in the app's component tree.\n *\n * Either way the Privy Solana wallet signs the SIWS challenge, so the session is\n * minted via the same wallet path as Phantom and shares the unified session store\n * (web localStorage / RN storage) and identity model. `init()` must have run first.\n */\nexport async function loginWithPrivy(options) {\n var _a, _b;\n assertBrowserAuthEnv('loginWithPrivy');\n const coreConfig = await getConfig();\n let provider;\n if (getPlatform().hasDOM) {\n const privyConfig = requireWebPrivyConfig(coreConfig);\n const PrivyWalletProvider = await loadPrivyWalletProvider();\n provider = new PrivyWalletProvider((_a = coreConfig.name) !== null && _a !== void 0 ? _a : null, (_b = coreConfig.logoUrl) !== null && _b !== void 0 ? _b : null, privyConfig, normalizeSolanaRpcUrl(coreConfig.rpcUrl), getConfiguredSolanaNetwork(coreConfig));\n currentAuthMethod = 'privy';\n }\n else {\n if (!coreConfig.privyExpoProvider) {\n throw new Error('loginWithPrivy() on React Native requires a PrivyExpoProvider bridged from your app: ' +\n 'create it, call setPrivyMethods() inside <PrivyProvider>, and pass it as config.privyExpoProvider to init().');\n }\n provider = coreConfig.privyExpoProvider;\n currentAuthMethod = 'privy-expo';\n }\n if (coreConfig.chain === 'offchain') {\n provider = new OffchainAuthProvider(provider);\n }\n currentAuthProvider = provider;\n currentAuthProviderConfigKey = authProviderConfigKey(Object.assign(Object.assign({}, coreConfig), { authMethod: currentAuthMethod }));\n coreConfig.authProvider = provider;\n coreConfig.authMethod = currentAuthMethod;\n setAuthProviderInstance(provider);\n setStoredAuthMethod(currentAuthMethod);\n if (typeof provider.setLoginOverrides === 'function') {\n provider.setLoginOverrides(options !== null && options !== void 0 ? options : null);\n }\n const result = await provider.login();\n return result ? Object.assign(Object.assign({}, result), { provider }) : null;\n}\n/** Bind the active provider/method to email (Bounded Better Auth). Shared by the\n * headless verify wrapper so reload-restore + logout treat it as 'email'. */\nasync function activateEmailProvider() {\n const provider = new EmailAuthProvider();\n currentAuthProvider = provider;\n currentAuthMethod = 'email';\n currentAuthProviderConfigKey = 'direct:email';\n const coreConfig = await getConfig();\n coreConfig.authProvider = provider;\n coreConfig.authMethod = 'email';\n setAuthProviderInstance(provider);\n setStoredAuthMethod('email');\n return provider;\n}\n/**\n * Send a 6-digit login code to `email` (Bounded Better Auth). Step 1 of the\n * inline email flow — build your own email/code UI, or just call `login()` for\n * the built-in modal. Works on web AND React Native (no DOM needed).\n */\nexport async function sendEmailOtp(email) {\n assertBrowserAuthEnv('sendEmailOtp');\n return emailSend(email);\n}\n/**\n * Send a 6-digit login code by text message. Requires the configured Bounded\n * auth issuer to have text OTP explicitly enabled and SMS delivery configured.\n * Works on web AND React Native.\n */\nexport async function sendTextOtp(phoneNumber) {\n assertBrowserAuthEnv('sendTextOtp');\n return textSend(phoneNumber);\n}\n/**\n * Verify the `code` for `email`, establish the session, and return the user.\n * Step 2 of the inline email flow. Coexists with signInAnonymously()/wallets.\n */\nexport async function verifyEmailOtp(email, code) {\n assertBrowserAuthEnv('verifyEmailOtp');\n await activateEmailProvider();\n return emailVerify(email, code);\n}\n/**\n * Verify the text-message `code`, establish the session, and return the user.\n * Phone-only users have no `user.email`; use `user.id` for app identity.\n */\nexport async function verifyTextOtp(phoneNumber, code) {\n assertBrowserAuthEnv('verifyTextOtp');\n await activateEmailProvider();\n return textVerify(phoneNumber, code);\n}\n/**\n * UPGRADE the current anonymous (guest) session by linking an email — Firebase\n * `linkWithCredential` parity. Send the code first with `sendEmailOtp(email)`,\n * then call `linkEmail(email, code)`. If the email is brand-new the guest's\n * `@user.id` (and its data) is preserved; if the email already exists the user\n * just signs into it (no merge). After it resolves, `getCurrentUser().isAnonymous`\n * is `false`. Requires an active guest session (`signInAnonymously()` first).\n */\nexport async function linkEmail(email, code) {\n assertBrowserAuthEnv('linkEmail');\n // Capture the GUEST token BEFORE switching auth methods — the issuer needs it\n // to prove guest ownership and adopt its id into the new email account.\n const guestToken = getActiveSessionManager().getIdToken();\n if (!guestToken) {\n throw new Error('linkEmail requires an active anonymous session — call signInAnonymously() first.');\n }\n await activateEmailProvider(); // method=email so the upgraded user is no longer anonymous\n const { user } = await emailLink(email, code, guestToken);\n return user;\n}\nexport async function login(options) {\n // Re-initialize provider if it was cleared by logout\n if (!currentAuthProvider && initConfig) {\n currentAuthProvider = await getAuthProvider(initConfig);\n const coreConfig = await getConfig();\n coreConfig.authProvider = currentAuthProvider;\n coreConfig.authMethod = currentAuthMethod;\n setAuthProviderInstance(currentAuthProvider);\n }\n if (!currentAuthProvider) {\n throw new Error(\"Auth provider not initialized. Please call init() first.\");\n }\n // Forward per-call overrides to providers that support them (duck-typed to stay\n // lazy-load safe — no direct import of PhantomWalletProvider here).\n // Always call (even with null) so previous overrides are cleared when this\n // login() is invoked without options — early-return paths inside the provider\n // bypass the .finally() cleanup, so we reset here too.\n if (typeof currentAuthProvider.setLoginOverrides === 'function') {\n currentAuthProvider.setLoginOverrides(options !== null && options !== void 0 ? options : null);\n }\n const loginResult = await currentAuthProvider.login();\n if (loginResult) {\n // Store which auth method was used so we restore the right provider on reload\n setStoredAuthMethod(currentAuthMethod);\n // If this top-level tab was opened solely to perform the wallet connect for\n // an embedded preview (?poofConnect — see openTopLevelForConnect in the\n // phantom provider), close it now that the session is established. The\n // session reflects back into the preview's iframe via same-origin storage.\n try {\n if (typeof window !== 'undefined'\n && window.top === window.self\n && new URLSearchParams(window.location.search).get('poofConnect') === '1') {\n setTimeout(() => { try {\n window.close();\n }\n catch ( /* noop */_a) { /* noop */ } }, 400);\n }\n }\n catch ( /* noop */_a) { /* noop */ }\n return Object.assign(Object.assign({}, loginResult), { provider: currentAuthProvider });\n }\n return null;\n}\nexport function getCurrentAuthMethod() {\n return currentAuthMethod;\n}\nexport async function logout() {\n var _a;\n if (!currentAuthProvider) {\n throw new Error(\"Auth provider not initialized. Please call init() first.\");\n }\n // Revoke the refresh-token family server-side BEFORE the provider clears the\n // local session (so we still have the token + issuer to revoke). If revoke\n // fails, surface the error and leave local state intact so callers do not\n // mistake a local-only logout for server revocation.\n const sm = getActiveSessionManager();\n const refreshToken = sm.getRefreshToken();\n if (refreshToken)\n await revokeSession(refreshToken, (_a = sm.getIssuer()) !== null && _a !== void 0 ? _a : undefined);\n await currentAuthProvider.logout();\n setStoredAuthMethod(null);\n currentAuthProvider = null;\n currentAuthMethod = null;\n currentAuthProviderConfigKey = null;\n}\n// OIDC Authorization Code + PKCE login (the secure multi-tenant redirect flow).\nexport { loginWithRedirect, linkWithRedirect, completeLoginFromRedirect, loginWithPopup, completeLoginInPopup } from './oidc-auth';\n","import { reconnectWithNewAuth, getConfig, deriveUserIdentityFromIdToken, getActiveSessionManager } from '@bounded-sh/core';\nimport { getAuthProvider, login as authLogin, logout as authLogout, clearIncompatibleSession, getCurrentAuthMethod } from './auth';\nimport { init as configInit } from '@bounded-sh/core';\n/**\n * Read the active session's idToken synchronously from whichever store is live\n * for this runtime (WebSessionManager on web, ReactNativeSessionManager on RN —\n * selected by getActiveSessionManager, the same selector the core request path\n * uses). Returns null when there's no session — the caller leaves the user as-is.\n */\nfunction getCurrentIdToken() {\n try {\n return getActiveSessionManager().getIdToken();\n }\n catch ( /* no session / store unavailable */_a) { /* no session / store unavailable */ }\n return null;\n}\n/**\n * Enrich a freshly-produced User with the universal identity fields\n * ({ id, email }) derived from the active session's idToken. ADDITIVE +\n * backwards-compatible: `address` is left exactly as the provider set it, and\n * id/email are only populated when not already present. For wallet logins\n * id === address; for email-only (Bounded) logins address may be null and id\n * is the account identity. Mirrors the realtime-worker auth.ts resolution so\n * the client `user` matches what the backend authenticates as (@user.id / .email).\n */\nfunction withUserIdentity(user) {\n var _a, _b, _c, _d;\n if (!user)\n return user;\n const { id, email } = deriveUserIdentityFromIdToken(getCurrentIdToken());\n return Object.assign(Object.assign({}, user), { \n // Prefer an id the provider already set; otherwise fall back to the\n // token-derived identity, then to the wallet address (wallet === id).\n id: (_c = (_b = (_a = user.id) !== null && _a !== void 0 ? _a : id) !== null && _b !== void 0 ? _b : user.address) !== null && _c !== void 0 ? _c : undefined, \n // Email comes only from email-login tokens; keep any provider-set value.\n email: user.email !== undefined ? user.email : email, \n // Guest/anonymous flag (Firebase `isAnonymous` parity): authoritative\n // source is the active auth method, so it's correct on fresh login AND\n // after a session restore (the stored method is rehydrated before the\n // user is set). A provider may also set it explicitly; honor that first.\n isAnonymous: (_d = user.isAnonymous) !== null && _d !== void 0 ? _d : (getCurrentAuthMethod() === 'guest') });\n}\nlet authProviderInstance = null;\nlet currentUser = null;\nlet authStateListeners = [];\nlet authLoadingListeners = [];\nlet initCompleted = false;\nlet isAuthLoading = false;\n// This file acts as a middleware for the global state of the SDK\n// This mostly involves setting up the AuthProvider and managing the current user\nexport async function init(newConfig) {\n // Mark auth as loading for the ENTIRE init/restore window so consumers render\n // a neutral/loading state instead of the signed-out UI while we rehydrate the\n // session — otherwise getCurrentUser() is null + loading is false during the\n // async restore, which paints \"logged out\" and then flips to \"logged in\" (an\n // auth flash). The React useAuth hook seeds loading=true itself, but the\n // imperative API (onAuthLoadingChanged/getAuthLoading) relies on this flag, so\n // setting it here makes \"no flash\" the SDK's default behavior for every consumer.\n setAuthLoading(true);\n try {\n // Get auth provider first\n authProviderInstance = await getAuthProvider(newConfig);\n // Initialize config with auth provider\n await configInit(Object.assign(Object.assign({}, newConfig), { authProvider: authProviderInstance }));\n // Now that core is initialized, update the auth method on the config\n const authMethod = getCurrentAuthMethod();\n if (authMethod) {\n const coreConfig = await getConfig();\n coreConfig.authMethod = authMethod;\n }\n // Wait for restoreSession to complete\n // The appId check is done in SessionManager.getSession which is called by restoreSession\n // If there's an appId mismatch, the session will be cleared and restoreSession will return null\n let user = await authProviderInstance.restoreSession();\n // If a session exists but was created before auth method tracking (legacy session),\n // clear it to avoid mismatches when the app switches auth methods (e.g. email → phantom)\n if (user && clearIncompatibleSession()) {\n user = null;\n }\n setCurrentUser(user);\n // Mark init as completed\n initCompleted = true;\n }\n finally {\n // Resolve loading once the user is known (or restore failed) — listeners\n // registered mid-init still get the correct final state via the immediate\n // callback in onAuthLoadingChanged.\n setAuthLoading(false);\n }\n}\n// TODO: Have a way to remove listeners\nexport function onAuthStateChanged(callback) {\n authStateListeners.push(callback);\n if (initCompleted || hasRunFirstTime) {\n // Call the callback immediately with the current user.\n // We check hasRunFirstTime in addition to initCompleted to handle the race\n // where the Phantom auto-login effect calls setCurrentUser() before init()\n // finishes. Without this, listeners registered between auto-login's\n // setCurrentUser and init()'s initCompleted would never fire (init's\n // setCurrentUser is a no-op for same-address and initCompleted is still false).\n callback(currentUser);\n }\n}\nexport function onAuthLoadingChanged(callback) {\n authLoadingListeners.push(callback);\n // Call immediately with current loading state\n callback(isAuthLoading);\n}\nexport function setAuthLoading(loading) {\n if (isAuthLoading !== loading) {\n isAuthLoading = loading;\n authLoadingListeners.forEach((callback) => callback(loading));\n }\n}\nexport function getAuthLoading() {\n return isAuthLoading;\n}\nexport async function login(options) {\n if (!authProviderInstance) {\n throw new Error('SDK not initialized. Please call init() first.');\n }\n const loggedInUser = await authLogin(options);\n setCurrentUser(loggedInUser);\n return currentUser;\n}\nexport async function logout() {\n if (!authProviderInstance) {\n throw new Error('SDK not initialized. Please call init() first.');\n }\n await authLogout();\n setCurrentUser(null);\n}\nvar hasRunFirstTime = false;\nfunction userPrincipalKey(user) {\n var _a, _b, _c;\n if (!user)\n return null;\n return (_c = (_b = (_a = user.id) !== null && _a !== void 0 ? _a : user.address) !== null && _b !== void 0 ? _b : user.email) !== null && _c !== void 0 ? _c : null;\n}\n// Update the currentUser and notify listeners\nexport function setCurrentUser(user) {\n // Enrich with the universal identity fields (id/email) derived from the\n // active session's idToken — central chokepoint so every provider's user\n // object gains { id, address, email } without each construction site\n // having to set them.\n user = withUserIdentity(user);\n const lastUser = currentUser;\n const wasInitializedBefore = hasRunFirstTime;\n const lastPrincipal = userPrincipalKey(currentUser);\n const nextPrincipal = userPrincipalKey(user);\n const shouldRunListeners = !hasRunFirstTime || lastPrincipal !== nextPrincipal;\n hasRunFirstTime = true;\n currentUser = user;\n if (shouldRunListeners) {\n authStateListeners.forEach((callback) => callback(user));\n // Reconnect WebSocket connections with new auth when user changes.\n // Skip on the first setCurrentUser call during init() — there are no\n // existing connections to reconnect at that point.\n if (wasInitializedBefore && userPrincipalKey(lastUser) !== nextPrincipal) {\n reconnectWithNewAuth().catch((error) => {\n console.error('Error reconnecting WebSocket after auth change:', error);\n });\n }\n }\n}\nexport function getCurrentUser() {\n return currentUser;\n}\nexport function setAuthProviderInstance(provider) {\n authProviderInstance = provider;\n}\n","var _a;\nimport * as React from 'react';\nimport { login as sdkLogin, logout as sdkLogout } from '../../global';\nimport { onAuthStateChanged, onAuthLoadingChanged } from '../../global';\n// Whether we're in a server-side rendering context (no hooks allowed).\n// React Native has no `window` but DOES support hooks.\n// We detect Node SSR specifically via process.versions.node to avoid\n// false positives from Node 21+ which defines `navigator` globally.\nconst isSSR = typeof window === 'undefined'\n && typeof process !== 'undefined'\n && !!((_a = process.versions) === null || _a === void 0 ? void 0 : _a.node);\nexport function useAuth() {\n // Provide a fallback so server render doesn't break\n if (isSSR) {\n return {\n login: async () => undefined,\n logout: async () => undefined,\n loading: true,\n user: null,\n };\n }\n const [user, setUser] = React.useState(null);\n const [loading, setLoading] = React.useState(true);\n const [sdkLoading, setSdkLoading] = React.useState(false);\n React.useEffect(() => {\n onAuthStateChanged((user) => {\n setUser(user);\n setLoading(false);\n });\n onAuthLoadingChanged((loading) => {\n setSdkLoading(loading);\n });\n return () => {\n };\n }, []);\n const login = async () => {\n try {\n setLoading(true);\n const user = await sdkLogin();\n setUser(user);\n }\n catch (error) {\n // Only log errors that aren't user-initiated cancellations\n if (error !== 'exited_auth_flow' && (error === null || error === void 0 ? void 0 : error.message) !== 'exited_auth_flow') {\n console.error('Error logging in:', error);\n }\n setUser(null);\n }\n finally {\n setLoading(false);\n }\n };\n const logout = async () => {\n try {\n setLoading(true);\n await sdkLogout();\n setUser(null);\n }\n catch (error) {\n console.error('Error logging out:', error);\n }\n finally {\n setLoading(false);\n }\n };\n return {\n login,\n logout,\n loading: loading || sdkLoading,\n user,\n };\n}\n","var _a;\nimport * as React from 'react';\nimport { subscribe } from '@bounded-sh/core';\n// SSR guard (mirrors useAuth): no hooks/subscriptions during Node server render.\n// React Native has no `window` but DOES support hooks, so detect Node SSR\n// specifically via process.versions.node.\nconst isSSR = typeof window === 'undefined'\n && typeof process !== 'undefined'\n && !!((_a = process.versions) === null || _a === void 0 ? void 0 : _a.node);\nexport function useQuery(path, options) {\n if (isSSR) {\n return { data: undefined, loading: true, error: null };\n }\n const [data, setData] = React.useState(undefined);\n const [loading, setLoading] = React.useState(true);\n const [error, setError] = React.useState(null);\n // Re-subscribe only when the query actually changes (not on every render).\n const optionsKey = options ? JSON.stringify(options) : '';\n React.useEffect(() => {\n if (!path) {\n setData(undefined);\n setLoading(false);\n setError(null);\n return;\n }\n let active = true;\n let unsubscribe;\n setLoading(true);\n setError(null);\n subscribe(path, Object.assign(Object.assign({}, options), { onData: (d) => {\n if (!active)\n return;\n setData(d);\n setLoading(false);\n }, onError: (e) => {\n if (!active)\n return;\n setError(e instanceof Error ? e : new Error(String(e)));\n setLoading(false);\n } }))\n .then((unsub) => {\n if (active)\n unsubscribe = unsub;\n else\n void unsub(); // unmounted before subscribe resolved\n })\n .catch((e) => {\n if (!active)\n return;\n setError(e instanceof Error ? e : new Error(String(e)));\n setLoading(false);\n });\n return () => {\n active = false;\n void (unsubscribe === null || unsubscribe === void 0 ? void 0 : unsubscribe());\n };\n // optionsKey captures the option object's contents; path is the other input.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [path, optionsKey]);\n return { data, loading, error };\n}\n","import { Transaction, VersionedTransaction } from \"@solana/web3.js\";\nexport async function deserializeTransaction(tx) {\n const buf = Buffer.isBuffer(tx) ? tx : Buffer.from(tx, 'base64');\n if ((buf[0] & 0x80) !== 0) {\n return VersionedTransaction.deserialize(buf);\n }\n else {\n return Transaction.from(buf);\n }\n}\n","import { getIdToken as getIdTokenCore } from '@bounded-sh/core';\n// Wrapper for getIdToken - passes isServer=false for client-side usage\nexport async function getIdToken() {\n return getIdTokenCore(false);\n}\n","/**\n * Extracts a human-readable error message from Solana transaction logs.\n */\nexport function extractTransactionError(err, logMessages) {\n if (logMessages) {\n return JSON.stringify(logMessages);\n }\n if (err) {\n try {\n return JSON.stringify(err);\n }\n catch (_a) {\n return String(err);\n }\n }\n return 'Unknown transaction error';\n}\n/**\n * Polls getSignatureStatuses until the transaction is confirmed, then checks for errors.\n * Throws if the transaction failed on-chain. Returns parsed transaction info on success.\n */\nexport async function confirmAndCheckTransaction(connection, signature) {\n var _a;\n const maxAttempts = 15;\n for (let i = 0; i < maxAttempts; i++) {\n const { value } = await connection.getSignatureStatuses([signature]);\n const status = value[0];\n if (status) {\n if (status.err) {\n const txInfo = await connection.getParsedTransaction(signature, {\n maxSupportedTransactionVersion: 0,\n commitment: 'confirmed'\n });\n const errorMessage = extractTransactionError(status.err, (_a = txInfo === null || txInfo === void 0 ? void 0 : txInfo.meta) === null || _a === void 0 ? void 0 : _a.logMessages);\n throw new Error(`Transaction failed: ${errorMessage}`);\n }\n if (status.confirmationStatus === 'confirmed' || status.confirmationStatus === 'finalized') {\n return await connection.getParsedTransaction(signature, {\n maxSupportedTransactionVersion: 0,\n commitment: 'confirmed'\n });\n }\n }\n await new Promise(resolve => setTimeout(resolve, 1000));\n }\n throw new Error('Transaction confirmation timeout');\n}\n","import { Buffer } from 'buffer';\nimport { WebSessionManager as SessionManager, createSessionWithSignature, genAuthNonce, genSolanaMessage, buildSetDocumentsTransaction, convertRemainingAccounts } from '@bounded-sh/core';\nimport { setCurrentUser, setAuthLoading } from '../../global';\nimport { getPlatform, detectMobile, detectAndroid } from '../../platform';\nimport { Connection, PublicKey, VersionedTransaction } from '@solana/web3.js';\nimport * as anchor from '@coral-xyz/anchor';\nimport { resolveSolanaRpcUrl, SURFNET_RPC_URL } from '../solana-rpc';\nimport { confirmAndCheckTransaction } from './transaction-utils';\nconst VALID_PROVIDERS = ['injected', 'google', 'apple', 'deeplink', 'phantom'];\n// When the dApp runs inside an iframe whose parent origin is different from\n// (or can't inject into) the child frame — notably Phantom's Android in-app\n// browser, which injects window.phantom.solana only into the top frame —\n// the Phantom deeplink path tries to navigate phantom.app/ul/browse/... from\n// inside the iframe. Android App Links only hand off on top-level navigations,\n// and phantom.app refuses to be framed (X-Frame-Options: DENY), so the connect\n// fails. To get back to a working context we navigate the top window to the\n// dApp's own URL, dropping the iframe shell. Once top-level, the wallet\n// browser injects its provider and the normal injected flow succeeds.\nfunction isInIframe() {\n if (typeof window === 'undefined')\n return false;\n try {\n return window.top !== window.self;\n }\n catch (_a) {\n // Cross-origin access to window.top throws — if we can't read it, we're iframed.\n return true;\n }\n}\nfunction shouldBreakOutOfIframe(provider) {\n // Only break out when the user chose the deeplink provider. The modal only\n // offers deeplink on mobile when no injected Phantom is present, so this is\n // exactly the iframe-without-provider case we need to escape.\n return provider === 'deeplink' && isInIframe();\n}\n// In a cross-origin iframe (e.g. the poof.new build-page preview) on mobile,\n// Mobile Wallet Adapter can't run: its localhost association handshake needs\n// Chrome's Local Network Access, which is denied to cross-origin sub-frames.\n// So open the app's own URL TOP-LEVEL (a new tab / Custom Tab), where MWA works\n// natively; the connect happens there and the session — written to same-origin\n// storage — reflects back into this iframe (awaitTopLevelConnect picks it up).\n// Must be called synchronously inside a user-gesture handler so window.open\n// isn't popup-blocked. Returns true if the tab was opened.\nfunction openTopLevelForConnect() {\n if (typeof window === 'undefined' || !isInIframe())\n return false;\n try {\n const url = new URL(window.location.href);\n url.searchParams.set('poofConnect', '1');\n const w = window.open(url.toString(), '_blank');\n return !!w;\n }\n catch (_a) {\n return false;\n }\n}\n// Dynamically import React and Phantom SDK - only when needed\nlet React;\nlet ReactDOM;\nlet phantomReactSdk;\nlet sdkLoaded = false;\nlet loadingPromise = null;\n// Lazy load React and Phantom dependencies only when PhantomWalletProvider is instantiated\n// Uses dynamic import() to ensure code splitting and prevent side effects\nasync function loadDependencies() {\n if (sdkLoaded)\n return;\n if (typeof window === 'undefined')\n return;\n // Prevent multiple concurrent loads\n if (loadingPromise)\n return loadingPromise;\n loadingPromise = (async () => {\n const [reactModule, reactDomModule, phantomModule] = await Promise.all([\n import('react'),\n import('react-dom/client'),\n import('@phantom/react-sdk')\n ]);\n // Extract default export from ESM module namespace\n // Dynamic import() returns { default: Module, ...exports }, not the module directly\n React = reactModule.default || reactModule;\n ReactDOM = reactDomModule.default || reactDomModule;\n phantomReactSdk = phantomModule;\n sdkLoaded = true;\n })();\n return loadingPromise;\n}\nexport class PhantomWalletProvider {\n /** Temporarily override modal appearance for a single login() call. Cleared automatically after login settles. */\n setLoginOverrides(opts) {\n this.loginOverrides = opts;\n }\n constructor(networkUrl = null, config = {}, configuredNetwork = null) {\n this.containerElement = null;\n this.root = null;\n this.phantomMethods = null;\n this.resolvedProviders = ['injected'];\n this.pendingLogin = null;\n this.loginInProgress = false;\n this.autoLoginInProgress = false;\n this.initPromise = null;\n this.loginOverrides = null;\n /** Callback to swap to a Mobile Wallet Adapter provider when the user clicks \"Connect Mobile Wallet\" */\n this.onSwitchToMWA = null;\n this.networkUrl = networkUrl;\n this.configuredNetwork = configuredNetwork;\n this.config = config;\n if (typeof window === 'undefined') {\n throw new Error('PhantomWalletProvider can only be instantiated in a browser environment');\n }\n // Singleton pattern - reuse existing instance\n if (PhantomWalletProvider.instance) {\n return PhantomWalletProvider.instance;\n }\n // Resolve providers from config (doesn't need SDK)\n this.resolveProviders();\n // Start async initialization (load SDK and initialize React component)\n this.initPromise = this.initializeAsync();\n PhantomWalletProvider.instance = this;\n }\n async initializeAsync() {\n // Lazy load dependencies only when actually instantiating\n await loadDependencies();\n // Initialize React component\n this.initialize();\n }\n /**\n * Check if social login providers are configured (non-injected providers).\n */\n hasSocialProviders() {\n return this.resolvedProviders.some(p => p !== 'injected');\n }\n static getInstance(networkUrl, config, configuredNetwork = null) {\n if (!PhantomWalletProvider.instance) {\n new PhantomWalletProvider(networkUrl, config, configuredNetwork);\n }\n return PhantomWalletProvider.instance;\n }\n resolveProviders() {\n if (this.config.providers && this.config.providers.length > 0) {\n const configProviders = this.config.providers;\n this.resolvedProviders = configProviders.filter((p) => VALID_PROVIDERS.includes(p));\n if (this.resolvedProviders.length === 0) {\n this.resolvedProviders = ['injected'];\n }\n }\n else if (this.config.appId) {\n this.resolvedProviders = ['injected', 'google', 'apple', 'deeplink'];\n }\n else {\n this.resolvedProviders = ['injected'];\n }\n }\n /**\n * Patch the Phantom extension's provider to gracefully handle `phantom_getFeatures`\n * instead of throwing. Some SDKs probe this method to check feature support, but the\n * extension doesn't implement it, causing noisy console errors.\n */\n patchPhantomGetFeatures() {\n var _a;\n try {\n const provider = (_a = window.phantom) === null || _a === void 0 ? void 0 : _a.solana;\n if (!(provider === null || provider === void 0 ? void 0 : provider.request) || provider.__featuresPatched)\n return;\n const originalRequest = provider.request.bind(provider);\n provider.request = async (args) => {\n if ((args === null || args === void 0 ? void 0 : args.method) === 'phantom_getFeatures') {\n return { features: {} };\n }\n return originalRequest(args);\n };\n provider.__featuresPatched = true;\n }\n catch (_b) {\n // Phantom extension not present — nothing to patch\n }\n }\n initialize() {\n if (this.containerElement)\n return;\n // Suppress \"phantom_getFeatures isn't implemented\" errors from SDKs probing\n // the Phantom extension for features it doesn't support yet.\n this.patchPhantomGetFeatures();\n // Remove any existing Phantom providers\n const existingProviders = document.querySelectorAll('[data-phantom-provider]');\n existingProviders.forEach(el => el.remove());\n this.containerElement = document.createElement('div');\n this.containerElement.setAttribute('data-phantom-provider', 'true');\n // Keep Phantom UI above host overlays while avoiding global click-capture.\n this.containerElement.style.position = 'fixed';\n this.containerElement.style.zIndex = '2147483647';\n // Full-viewport overlay for custom modal; pointer-events: none lets\n // clicks pass through to page except where the modal sets 'auto'\n this.containerElement.style.inset = '0';\n this.containerElement.style.pointerEvents = 'none';\n document.body.appendChild(this.containerElement);\n const that = this;\n const { PhantomProvider: ReactPhantomProvider, usePhantom, useConnect, useDisconnect, useModal, useSolana, useDiscoveredWallets, AddressType, darkTheme, lightTheme } = phantomReactSdk;\n // The SDK expects providers as an array of strings: 'injected' | 'google' | 'apple' | 'phantom' | 'deeplink'\n // Ensure we have a valid non-empty array\n const sdkProviders = this.resolvedProviders.length > 0 ? [...this.resolvedProviders] : ['injected'];\n // Inner component that uses hooks\n const PhantomHooksComponent = () => {\n var _a, _b, _c, _d, _e, _f, _g, _h, _j;\n const phantom = usePhantom();\n const { connect, error: connectError } = useConnect();\n const { disconnect, isDisconnecting } = useDisconnect();\n const modal = useModal();\n const solanaHook = useSolana();\n const { solana } = solanaHook;\n const [showWalletModal, setShowWalletModal] = React.useState(false);\n const [hoveredBtn, setHoveredBtn] = React.useState(null);\n // Discover all available wallets via Wallet Standard + EIP-6963\n const { wallets: discoveredWallets } = useDiscoveredWallets();\n const isMobile = detectMobile();\n const hasPhantomInjected = discoveredWallets.some((w) => w.id === 'phantom');\n const showDeeplink = isMobile && sdkProviders.includes('deeplink') && !hasPhantomInjected;\n // Treat MWA's own wallet-standard registrations as not-injected, so the MWA\n // button still appears when only MWA is present (e.g. Android Chrome on Seeker).\n const hasInjectedWallet = discoveredWallets.some((w) => {\n var _a, _b;\n const id = String((_a = w.id) !== null && _a !== void 0 ? _a : '').toLowerCase();\n const name = String((_b = w.name) !== null && _b !== void 0 ? _b : '').toLowerCase();\n return (id !== 'mobile-wallet-adapter' &&\n id !== 'remote-mobile-wallet-adapter' &&\n name !== 'mobile wallet adapter' &&\n name !== 'remote mobile wallet adapter');\n });\n // Track previous modal state to detect closes\n const prevModalOpen = React.useRef(false);\n // Track when modal was closed because user selected a wallet (not dismissed)\n const walletClickedRef = React.useRef(false);\n // Set up effect to expose methods to the class\n React.useEffect(() => {\n if (phantom) {\n that.phantomMethods = {\n ready: !phantom.isLoading,\n isConnected: phantom.isConnected,\n addresses: phantom.addresses || [],\n user: phantom.user,\n connect: async () => {\n return await connect();\n },\n disconnect: async () => {\n await disconnect();\n },\n isDisconnecting,\n openModal: () => modal.open(),\n closeModal: () => modal.close(),\n isModalOpen: modal.isOpened,\n connectError,\n showCustomModal: () => setShowWalletModal(true),\n hideCustomModal: () => setShowWalletModal(false),\n solana: solana && solanaHook.isAvailable ? {\n // Wrap methods to preserve 'this' context - direct references lose binding\n signMessage: (message) => solana.signMessage(message),\n signTransaction: (tx) => solana.signTransaction(tx),\n signAllTransactions: (txs) => solana.signAllTransactions(txs),\n signAndSendTransaction: (tx) => solana.signAndSendTransaction(tx),\n getPublicKey: () => solana.getPublicKey(),\n isAvailable: solanaHook.isAvailable,\n connected: solana.connected,\n connect: (options) => solana.connect(options),\n } : null,\n };\n }\n }, [phantom, phantom === null || phantom === void 0 ? void 0 : phantom.isConnected, phantom === null || phantom === void 0 ? void 0 : phantom.addresses, phantom === null || phantom === void 0 ? void 0 : phantom.isLoading, connect, disconnect, isDisconnecting, modal, modal.isOpened, solana, solana === null || solana === void 0 ? void 0 : solana.connected, solanaHook.isAvailable, connectError]);\n // Auto-login: If connected but no Bounded session, try to create one.\n // This handles social login callbacks where user returns from OAuth already connected.\n React.useEffect(() => {\n const autoCreateSession = async () => {\n var _a;\n // Only proceed when SDK is ready, connected, has addresses, and not already in a login flow\n if (!(phantom === null || phantom === void 0 ? void 0 : phantom.isConnected) || (phantom === null || phantom === void 0 ? void 0 : phantom.isLoading) || that.loginInProgress || that.autoLoginInProgress || that.pendingLogin) {\n return;\n }\n // Don't clobber a session owned by MWA on Seeker. MWA marks the\n // auth method as soon as login starts (see solana-mobile-wallet-provider),\n // and clears it on logout, so this guard is correct in both\n // steady-state and post-logout cases.\n try {\n if (getPlatform().storage.getItem('bounded_last_auth_method') === 'mobile-wallet-adapter') {\n return;\n }\n }\n catch (_b) { }\n // Need solana to be available AND connected for signing\n if (!solana || !solanaHook.isAvailable || !solana.connected) {\n return;\n }\n // Find Solana address\n const solAddress = (_a = phantom.addresses) === null || _a === void 0 ? void 0 : _a.find((addr) => addr.addressType === AddressType.solana);\n if (!solAddress) {\n return;\n }\n const publicKey = solAddress.address;\n // Check if we already have a valid session for this address\n const existingSession = await SessionManager.getSession();\n if (existingSession && existingSession.address === publicKey) {\n // Already have a valid session, just set user\n setCurrentUser({ provider: that, address: publicKey });\n return;\n }\n // No valid session - try to create one automatically\n that.autoLoginInProgress = true;\n setAuthLoading(true);\n try {\n const nonce = await genAuthNonce();\n const messageText = await genSolanaMessage(publicKey, nonce);\n // signMessage returns { signature: Uint8Array, publicKey: string }\n const signResult = await solana.signMessage(messageText);\n // Convert Uint8Array signature to base64 string\n const signatureBytes = signResult.signature;\n const signature = Buffer.from(signatureBytes).toString('base64');\n const createSessionResult = await createSessionWithSignature(publicKey, messageText, signature);\n // Pre-write guard: MWA may have started a login while we were\n // in flight. If MWA owns the auth method now, abort before we\n // overwrite its session (or its in-flight session).\n try {\n if (getPlatform().storage.getItem('bounded_last_auth_method') === 'mobile-wallet-adapter') {\n return;\n }\n }\n catch (_c) { }\n await SessionManager.storeSession(publicKey, createSessionResult.accessToken, createSessionResult.idToken, createSessionResult.refreshToken);\n // Mark auth method so clearIncompatibleSession() doesn't wipe this session\n try {\n getPlatform().storage.setItem('bounded_last_auth_method', 'phantom');\n }\n catch (_d) { }\n setCurrentUser({ provider: that, address: publicKey });\n }\n catch (error) {\n // User rejected signing or other error - disconnect fully\n try {\n await disconnect();\n }\n catch (e) {\n // Ignore disconnect errors\n }\n }\n finally {\n that.autoLoginInProgress = false;\n setAuthLoading(false);\n }\n };\n autoCreateSession();\n }, [phantom === null || phantom === void 0 ? void 0 : phantom.isConnected, phantom === null || phantom === void 0 ? void 0 : phantom.isLoading, phantom === null || phantom === void 0 ? void 0 : phantom.addresses, solana, solana === null || solana === void 0 ? void 0 : solana.connected, solanaHook.isAvailable, disconnect]);\n // Suppress SDK modal if it opens during custom modal login flow\n React.useEffect(() => {\n if (modal.isOpened && that.loginInProgress) {\n modal.close();\n }\n }, [modal.isOpened]);\n // Handle modal close without connection\n React.useEffect(() => {\n // Detect when modal was open and is now closed\n if (prevModalOpen.current && !showWalletModal && !modal.isOpened) {\n if (walletClickedRef.current) {\n // Modal closed because user selected a wallet — don't reject\n walletClickedRef.current = false;\n }\n else if (that.loginInProgress && that.pendingLogin && !(phantom === null || phantom === void 0 ? void 0 : phantom.isConnected)) {\n // User dismissed modal without connecting\n that.pendingLogin.reject(new Error('User cancelled login'));\n that.pendingLogin = null;\n that.loginInProgress = false;\n }\n }\n prevModalOpen.current = showWalletModal || modal.isOpened;\n }, [showWalletModal, modal.isOpened, phantom === null || phantom === void 0 ? void 0 : phantom.isConnected]);\n // Handle connection errors\n React.useEffect(() => {\n if (connectError && that.pendingLogin) {\n that.pendingLogin.reject(connectError);\n that.pendingLogin = null;\n that.loginInProgress = false;\n }\n }, [connectError]);\n // Handle connection success\n React.useEffect(() => {\n const handleConnectionSuccess = async () => {\n var _a;\n // All conditions must be met for login to proceed\n if (!(phantom === null || phantom === void 0 ? void 0 : phantom.isConnected) || !((_a = phantom === null || phantom === void 0 ? void 0 : phantom.addresses) === null || _a === void 0 ? void 0 : _a.length) || !that.pendingLogin || !that.loginInProgress) {\n return;\n }\n // Solana must be available AND connected for signing\n // If not ready yet, just return - this effect will re-run when solana.connected changes\n if (!solana || !solanaHook.isAvailable || !solana.connected) {\n return;\n }\n try {\n // Immediately set loginInProgress to false to prevent double execution\n // if the effect runs again before async operations complete\n that.loginInProgress = false;\n // Find Solana address\n const solAddress = phantom.addresses.find((addr) => addr.addressType === AddressType.solana);\n if (!solAddress) {\n that.pendingLogin.reject(new Error('No Solana address returned'));\n that.pendingLogin = null;\n return;\n }\n const publicKey = solAddress.address;\n // Check if we already have a valid session\n const existingSession = await SessionManager.getSession();\n if (existingSession && existingSession.address === publicKey) {\n const user = { provider: that, address: publicKey };\n setCurrentUser(user);\n that.pendingLogin.resolve(user);\n that.pendingLogin = null;\n return;\n }\n // Create new session with signature\n const nonce = await genAuthNonce();\n const messageText = await genSolanaMessage(publicKey, nonce);\n // signMessage returns { signature: Uint8Array, publicKey: string }\n const signResult = await solana.signMessage(messageText);\n // Convert Uint8Array signature to base64 string\n const signatureBytes = signResult.signature;\n const signature = Buffer.from(signatureBytes).toString('base64');\n const createSessionResult = await createSessionWithSignature(publicKey, messageText, signature);\n await SessionManager.storeSession(publicKey, createSessionResult.accessToken, createSessionResult.idToken, createSessionResult.refreshToken);\n // Mark auth method so clearIncompatibleSession() doesn't wipe this session\n try {\n getPlatform().storage.setItem('bounded_last_auth_method', 'phantom');\n }\n catch (_b) { }\n const user = { provider: that, address: publicKey };\n setCurrentUser(user);\n that.pendingLogin.resolve(user);\n that.pendingLogin = null;\n }\n catch (error) {\n // Disconnect Phantom since login failed - don't leave in half-connected state\n try {\n await disconnect();\n }\n catch (e) {\n // Ignore disconnect errors\n }\n if (that.pendingLogin) {\n that.pendingLogin.reject(error);\n that.pendingLogin = null;\n that.loginInProgress = false;\n }\n }\n };\n handleConnectionSuccess();\n }, [phantom === null || phantom === void 0 ? void 0 : phantom.isConnected, phantom === null || phantom === void 0 ? void 0 : phantom.addresses, solana, solana === null || solana === void 0 ? void 0 : solana.connected, solanaHook.isAvailable]);\n // --- Custom wallet modal handlers ---\n const handleWalletClick = async (options) => {\n walletClickedRef.current = true;\n setShowWalletModal(false);\n // Cross-origin preview iframe + deeplink: the old approach navigated\n // the top frame to this URL, but in a TWA that lands out-of-scope and\n // shows a chrome-error (\"bad page\"). Instead, open the app TOP-LEVEL\n // in a new tab where the wallet connect works natively; the session\n // reflects back into this iframe (see openTopLevelForConnect /\n // awaitTopLevelConnect).\n if (shouldBreakOutOfIframe(options === null || options === void 0 ? void 0 : options.provider)) {\n if (openTopLevelForConnect()) {\n that.awaitTopLevelConnect();\n return;\n }\n // Popup blocked — fall through to the original deeplink path\n // (better a broken-ish button than a silently-dead one).\n }\n try {\n if (options === null || options === void 0 ? void 0 : options.walletId) {\n await connect({ provider: 'injected', walletId: options.walletId });\n }\n else if (options === null || options === void 0 ? void 0 : options.provider) {\n await connect({ provider: options.provider });\n }\n else {\n await connect();\n }\n }\n catch (err) {\n // connectError effect handles this\n }\n };\n const handleMobileWalletClick = async () => {\n that.loginInProgress = false;\n walletClickedRef.current = true;\n setShowWalletModal(false);\n // Cross-origin preview iframe (e.g. poof.new build page) on mobile:\n // MWA can't run here (Chrome denies Local Network Access to sub-frames,\n // and its localhost handshake fails). Open the app top-level for the\n // connect; the session reflects back into this iframe.\n if (isInIframe() && openTopLevelForConnect()) {\n that.awaitTopLevelConnect();\n return;\n }\n // LNA permission is handled by @solana-mobile/wallet-standard-mobile\n // >=0.5.0's checkLocalNetworkAccessPermission (three-stage UX, fired\n // before the localhost reflector opens). No homemade pre-warm needed.\n if (that.onSwitchToMWA) {\n try {\n const mwaProvider = await that.onSwitchToMWA();\n const user = await mwaProvider.login();\n if (that.pendingLogin && user) {\n that.pendingLogin.resolve(user);\n that.pendingLogin = null;\n }\n else if (that.pendingLogin) {\n that.pendingLogin.reject(new Error('User cancelled login'));\n that.pendingLogin = null;\n }\n }\n catch (error) {\n if (that.pendingLogin) {\n that.pendingLogin.reject(error);\n that.pendingLogin = null;\n }\n }\n }\n };\n const handleCloseModal = () => {\n setShowWalletModal(false);\n if (that.loginInProgress && that.pendingLogin && !(phantom === null || phantom === void 0 ? void 0 : phantom.isConnected)) {\n that.pendingLogin.reject(new Error('User cancelled login'));\n that.pendingLogin = null;\n that.loginInProgress = false;\n }\n };\n // --- Custom wallet modal ---\n if (!showWalletModal) {\n return null;\n }\n const effectiveTheme = (_c = (_b = (_a = that.loginOverrides) === null || _a === void 0 ? void 0 : _a.theme) !== null && _b !== void 0 ? _b : that.config.theme) !== null && _c !== void 0 ? _c : 'dark';\n const isLight = effectiveTheme === 'light';\n const bgColor = isLight ? '#FFFFFF' : '#111113';\n const cardBorder = isLight ? '1px solid rgba(0,0,0,0.08)' : '1px solid rgba(255,255,255,0.07)';\n const textColor = isLight ? '#0f0f0f' : '#f5f5f5';\n const subTextColor = isLight ? 'rgba(0,0,0,0.45)' : 'rgba(255,255,255,0.4)';\n const btnBg = isLight ? 'rgba(0,0,0,0.04)' : 'rgba(255,255,255,0.05)';\n const btnHoverBg = isLight ? 'rgba(0,0,0,0.08)' : 'rgba(255,255,255,0.09)';\n const btnBorder = isLight ? '1px solid rgba(0,0,0,0.10)' : '1px solid rgba(255,255,255,0.09)';\n const fontFamily = '\"SF Pro Text\",-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,sans-serif';\n const buttonStyle = (id) => ({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n gap: '10px',\n width: '100%',\n height: '52px',\n padding: '0 20px',\n border: btnBorder,\n borderRadius: '12px',\n backgroundColor: hoveredBtn === id ? btnHoverBg : btnBg,\n color: textColor,\n fontFamily,\n fontSize: '14px',\n fontWeight: '500',\n lineHeight: '1',\n letterSpacing: '0',\n cursor: 'pointer',\n transition: 'background-color 0.15s, border-color 0.15s',\n boxSizing: 'border-box',\n });\n const walletButtons = [];\n // Google OAuth button — shown when 'google' is in resolved providers\n if (sdkProviders.includes('google')) {\n walletButtons.push(React.createElement('button', {\n key: 'google-oauth',\n style: buttonStyle('google-oauth'),\n onClick: () => handleWalletClick({ provider: 'google' }),\n onMouseEnter: () => setHoveredBtn('google-oauth'),\n onMouseLeave: () => setHoveredBtn(null),\n }, React.createElement('svg', {\n width: '18', height: '18', viewBox: '0 0 24 24',\n style: { flexShrink: '0' },\n }, React.createElement('path', {\n d: 'M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z',\n fill: '#4285F4',\n }), React.createElement('path', {\n d: 'M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z',\n fill: '#34A853',\n }), React.createElement('path', {\n d: 'M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18A11.96 11.96 0 0 0 1 12c0 1.94.46 3.77 1.18 5.41l3.66-2.84z',\n fill: '#FBBC05',\n }), React.createElement('path', {\n d: 'M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z',\n fill: '#EA4335',\n })), 'Continue with Google'));\n }\n // Apple OAuth button — shown when 'apple' is in resolved providers\n if (sdkProviders.includes('apple')) {\n walletButtons.push(React.createElement('button', {\n key: 'apple-oauth',\n style: buttonStyle('apple-oauth'),\n onClick: () => handleWalletClick({ provider: 'apple' }),\n onMouseEnter: () => setHoveredBtn('apple-oauth'),\n onMouseLeave: () => setHoveredBtn(null),\n }, React.createElement('svg', {\n width: '18', height: '18', viewBox: '0 0 24 24',\n fill: textColor,\n style: { flexShrink: '0' },\n }, React.createElement('path', {\n d: 'M17.05 20.28c-.98.95-2.05.88-3.08.4-1.09-.5-2.08-.48-3.24 0-1.44.62-2.2.44-3.06-.4C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.09zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z',\n })), 'Continue with Apple'));\n }\n // Fallback icon for Phantom — uses the official SVG path from @phantom/wallet-sdk-ui\n // (SDK intentionally leaves wallet.icon empty for Phantom, expecting its own UI to render it)\n const PHANTOM_ICON = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyOCAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIHJ4PSI2IiBmaWxsPSIjQUI5RkYyIi8+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNCw0KSI+PHBhdGggZD0iTTIuMzY2NTUgMTguMzI3MUM0LjkxODcxIDE4LjMyNzEgNi44MzY3IDE2LjEwNzYgNy45ODEzMSAxNC4zNTM3QzcuODQyMSAxNC43NDE3IDcuNzY0NzYgMTUuMTI5OCA3Ljc2NDc2IDE1LjUwMjNDNy43NjQ3NiAxNi41MjY3IDguMzUyNTMgMTcuMjU2MiA5LjUxMjYgMTcuMjU2MkMxMS4xMDU4IDE3LjI1NjIgMTIuODA3MiAxNS44NTkzIDEzLjY4ODkgMTQuMzUzN0MxMy42MjcgMTQuNTcxIDEzLjU5NjEgMTQuNzcyOCAxMy41OTYxIDE0Ljk1OUMxMy41OTYxIDE1LjY3MyAxMy45OTgyIDE2LjEyMzEgMTQuODE4IDE2LjEyMzFDMTcuNDAxMSAxNi4xMjMxIDE5Ljk5OTcgMTEuNTQ0NCAxOS45OTk3IDcuNTM5ODdDMTkuOTk5NyA0LjQyMDExIDE4LjQyMiAxLjY3Mjg1IDE0LjQ2MjIgMS42NzI4NUM3LjUwMTgxIDEuNjcyODUgMCAxMC4xNzg1IDAgMTUuNjczQzAgMTcuODMwNSAxLjE2MDA3IDE4LjMyNzEgMi4zNjY1NSAxOC4zMjcxWk0xMi4wNjQ4IDcuMTk4NDFDMTIuMDY0OCA2LjQyMjM1IDEyLjQ5NzkgNS44NzkxIDEzLjEzMiA1Ljg3OTFDMTMuNzUwNyA1Ljg3OTEgMTQuMTgzOCA2LjQyMjM1IDE0LjE4MzggNy4xOTg0MUMxNC4xODM4IDcuOTc0NDcgMTMuNzUwNyA4LjUzMzIzIDEzLjEzMiA4LjUzMzIzQzEyLjQ5NzkgOC41MzMyMyAxMi4wNjQ4IDcuOTc0NDcgMTIuMDY0OCA3LjE5ODQxWk0xNS4zNzQ4IDcuMTk4NDFDMTUuMzc0OCA2LjQyMjM1IDE1LjgwNzkgNS44NzkxIDE2LjQ0MjEgNS44NzkxQzE3LjA2MDggNS44NzkxIDE3LjQ5MzkgNi40MjIzNSAxNy40OTM5IDcuMTk4NDFDMTcuNDkzOSA3Ljk3NDQ3IDE3LjA2MDggOC41MzMyMyAxNi40NDIxIDguNTMzMjNDMTUuODA3OSA4LjUzMzIzIDE1LjM3NDggNy45NzQ0NyAxNS4zNzQ4IDcuMTk4NDFaIiBmaWxsPSJ3aGl0ZSIvPjwvZz48L3N2Zz4=';\n // Show all discovered injected wallets (Phantom, Solflare, Jupiter, etc.)\n if (sdkProviders.includes('injected')) {\n for (const wallet of discoveredWallets) {\n const walletKey = `wallet-${wallet.id}`;\n const iconSrc = wallet.icon || (wallet.id === 'phantom' ? PHANTOM_ICON : null);\n walletButtons.push(React.createElement('button', {\n key: walletKey,\n style: buttonStyle(walletKey),\n onClick: () => handleWalletClick({ walletId: wallet.id }),\n onMouseEnter: () => setHoveredBtn(walletKey),\n onMouseLeave: () => setHoveredBtn(null),\n }, iconSrc\n ? React.createElement('img', {\n src: iconSrc,\n alt: wallet.name,\n style: { width: '28px', height: '28px', borderRadius: '6px' },\n })\n : null, wallet.name));\n }\n }\n if (showDeeplink) {\n walletButtons.push(React.createElement('button', {\n key: 'phantom-deeplink',\n style: buttonStyle('phantom-deeplink'),\n onClick: () => handleWalletClick({ provider: 'deeplink' }),\n onMouseEnter: () => setHoveredBtn('phantom-deeplink'),\n onMouseLeave: () => setHoveredBtn(null),\n }, React.createElement('img', {\n src: PHANTOM_ICON,\n alt: 'Phantom',\n style: { width: '28px', height: '28px', borderRadius: '6px' },\n }), 'Open Phantom app'));\n }\n // Mobile Wallet Adapter button — shown on Android when MWA callback is available\n // and no injected wallet is present (hides button inside Phantom/Solflare/etc. in-app browsers).\n const isAndroid = detectAndroid();\n if (isAndroid && that.onSwitchToMWA && !hasInjectedWallet) {\n walletButtons.push(React.createElement('button', {\n key: 'mobile-wallet',\n style: buttonStyle('mobile-wallet'),\n onClick: handleMobileWalletClick,\n onMouseEnter: () => setHoveredBtn('mobile-wallet'),\n onMouseLeave: () => setHoveredBtn(null),\n }, React.createElement('svg', {\n width: '18', height: '18', viewBox: '0 0 24 24', fill: 'none',\n style: { flexShrink: '0', opacity: '0.85' },\n }, \n // Phone outline\n React.createElement('rect', {\n x: '5', y: '2', width: '14', height: '20', rx: '2',\n stroke: textColor, strokeWidth: '2', fill: 'none',\n }), \n // Screen line\n React.createElement('line', {\n x1: '5', y1: '6', x2: '19', y2: '6',\n stroke: textColor, strokeWidth: '1.5',\n }), \n // Wallet/shield checkmark\n React.createElement('path', {\n d: 'M9.5 12.5l2 2 3.5-3.5',\n stroke: textColor, strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round', fill: 'none',\n })), 'Connect Mobile Wallet'));\n }\n const mainButtons = walletButtons;\n // Render custom modal\n return React.createElement('div', {\n // Overlay\n style: {\n position: 'fixed',\n top: '0',\n left: '0',\n right: '0',\n bottom: '0',\n backgroundColor: isLight ? 'rgba(0,0,0,0.35)' : 'rgba(0,0,0,0.65)',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n padding: '16px',\n boxSizing: 'border-box',\n overflowY: 'auto',\n zIndex: 2147483647,\n pointerEvents: 'auto',\n backdropFilter: 'blur(4px)',\n WebkitBackdropFilter: 'blur(4px)',\n },\n onClick: (e) => {\n if (e.target === e.currentTarget)\n handleCloseModal();\n },\n onMouseDown: (e) => {\n e.stopPropagation();\n },\n onPointerDown: (e) => {\n e.stopPropagation();\n },\n }, \n // Card\n React.createElement('div', {\n style: {\n backgroundColor: bgColor,\n border: cardBorder,\n borderRadius: '20px',\n width: '100%',\n maxWidth: '380px',\n maxHeight: '100%',\n overflowY: 'auto',\n padding: '28px 24px 24px',\n position: 'relative',\n boxShadow: isLight\n ? '0 8px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06)'\n : '0 8px 40px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.3)',\n pointerEvents: 'auto',\n boxSizing: 'border-box',\n },\n onMouseDown: (e) => {\n e.stopPropagation();\n },\n onPointerDown: (e) => {\n e.stopPropagation();\n },\n }, \n // Close button\n React.createElement('button', {\n onClick: handleCloseModal,\n style: {\n position: 'absolute',\n top: '14px',\n right: '14px',\n background: isLight ? 'rgba(0,0,0,0.05)' : 'rgba(255,255,255,0.07)',\n border: isLight ? '1px solid rgba(0,0,0,0.08)' : '1px solid rgba(255,255,255,0.08)',\n borderRadius: '50%',\n width: '28px',\n height: '28px',\n cursor: 'pointer',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n padding: '0',\n flexShrink: '0',\n },\n }, React.createElement('svg', {\n width: '12', height: '12', viewBox: '0 0 12 12', fill: 'none',\n }, React.createElement('path', {\n d: 'M11 1L1 11M1 1l10 10',\n stroke: subTextColor, strokeWidth: '1.75', strokeLinecap: 'round',\n }))), \n // App icon (if provided)\n that.config.appIcon ? React.createElement('div', {\n style: { display: 'flex', justifyContent: 'center', marginBottom: '16px' },\n }, React.createElement('img', {\n src: that.config.appIcon,\n alt: that.config.appName || 'App',\n style: { width: '44px', height: '44px', borderRadius: '10px' },\n })) : null, \n // Title\n React.createElement('div', {\n style: {\n color: textColor,\n fontFamily,\n fontSize: '17px',\n fontWeight: '600',\n textAlign: 'center',\n marginBottom: '6px',\n letterSpacing: '-0.2px',\n },\n }, (_f = (_e = (_d = that.loginOverrides) === null || _d === void 0 ? void 0 : _d.modalTitle) !== null && _e !== void 0 ? _e : that.config.modalTitle) !== null && _f !== void 0 ? _f : (that.config.appName ? `Log in to ${that.config.appName}` : 'Log in to your account')), \n // Subtitle\n React.createElement('div', {\n style: {\n color: subTextColor,\n fontFamily,\n fontSize: '13px',\n fontWeight: '400',\n textAlign: 'center',\n marginBottom: '24px',\n lineHeight: '1.4',\n },\n }, (_j = (_h = (_g = that.loginOverrides) === null || _g === void 0 ? void 0 : _g.modalSubtitle) !== null && _h !== void 0 ? _h : that.config.modalSubtitle) !== null && _j !== void 0 ? _j : 'Choose how you\\'d like to continue'), \n // Wallet / social login buttons\n React.createElement('div', {\n style: {\n display: 'flex',\n flexDirection: 'column',\n gap: '8px',\n },\n }, ...mainButtons)));\n };\n // Wrapper component with PhantomProvider\n const PhantomProviderWrapper = () => {\n // Build SDK config\n const sdkConfig = React.useMemo(() => {\n var _a;\n const config = {\n providers: sdkProviders,\n addressTypes: [AddressType.solana],\n autoConnect: (_a = that.config.autoConnect) !== null && _a !== void 0 ? _a : true,\n };\n if (that.config.appId) {\n config.appId = that.config.appId;\n }\n return config;\n }, []);\n const theme = that.config.theme === 'light' ? lightTheme : darkTheme;\n return React.createElement(ReactPhantomProvider, {\n config: sdkConfig,\n theme: theme,\n appName: that.config.appName || 'App',\n appIcon: that.config.appIcon,\n }, React.createElement(PhantomHooksComponent));\n };\n this.root = ReactDOM.createRoot(this.containerElement);\n this.root.render(React.createElement(PhantomProviderWrapper));\n }\n async ensureReady() {\n // Wait for async initialization to complete first\n if (this.initPromise) {\n await this.initPromise;\n }\n // Wait for SDK to be ready\n await new Promise((resolve) => {\n const check = () => {\n var _a;\n if ((_a = this.phantomMethods) === null || _a === void 0 ? void 0 : _a.ready) {\n resolve();\n }\n else {\n setTimeout(check, 100);\n }\n };\n check();\n });\n }\n async ensureSolanaReady() {\n var _a;\n await this.ensureReady();\n // If connected at the Phantom level, ensure solana methods are ready\n if ((_a = this.phantomMethods) === null || _a === void 0 ? void 0 : _a.isConnected) {\n const timeoutMs = 10000; // 10 second timeout\n const startTime = Date.now();\n // First, wait for solana to be available\n await new Promise((resolve, reject) => {\n const check = () => {\n var _a, _b;\n if ((_b = (_a = this.phantomMethods) === null || _a === void 0 ? void 0 : _a.solana) === null || _b === void 0 ? void 0 : _b.isAvailable) {\n resolve();\n }\n else if (Date.now() - startTime > timeoutMs) {\n reject(new Error('Timeout waiting for Solana provider to be available'));\n }\n else {\n setTimeout(check, 100);\n }\n };\n check();\n });\n // Now check if the solana provider is connected, if not try to reconnect\n // Note: We check our wrapper's `connected` which may be stale, but this is just\n // an optimization to skip reconnect if we know we're already connected.\n // The actual signing methods use the SDK's bound methods which check live state.\n if (!this.phantomMethods.solana.connected) {\n console.log('Solana provider not connected, attempting to reconnect...');\n try {\n // onlyIfTrusted: true means it will reconnect silently if previously approved\n // If not trusted, it will throw and we'll catch it below\n await this.phantomMethods.solana.connect({ onlyIfTrusted: true });\n console.log('Solana provider reconnected successfully');\n }\n catch (error) {\n // If onlyIfTrusted fails, the user may need to re-approve via modal\n console.error('Failed to reconnect solana provider (silent reconnect failed):', error === null || error === void 0 ? void 0 : error.message);\n throw new Error('Failed to reconnect Solana provider. Please try logging in again.');\n }\n }\n // Note: We don't do a final connected check here because our wrapper's `connected`\n // is a snapshot that won't update until React re-renders. If connect() succeeded,\n // the SDK is connected and signing will work.\n }\n }\n /**\n * Get the list of available (configured) providers for this wallet.\n */\n getAvailableProviders() {\n return [...this.resolvedProviders];\n }\n /**\n * Login using the Phantom connect modal. A custom modal is rendered with the\n * discovered wallets and configured social providers instead of the SDK's\n * built-in modal.\n */\n async login() {\n var _a, _b;\n await this.ensureReady();\n // Check if already connected with valid session\n if (((_a = this.phantomMethods) === null || _a === void 0 ? void 0 : _a.isConnected) && ((_b = this.phantomMethods.addresses) === null || _b === void 0 ? void 0 : _b.length) > 0) {\n const solAddress = this.phantomMethods.addresses.find((addr) => addr.addressType === phantomReactSdk.AddressType.solana);\n if (solAddress) {\n const session = await SessionManager.getSession();\n if (session && session.address === solAddress.address) {\n const user = { provider: this, address: solAddress.address };\n setCurrentUser(user);\n return user;\n }\n }\n }\n // If already pending, wait for it\n if (this.pendingLogin) {\n return new Promise((resolve, reject) => {\n this.pendingLogin.resolve = resolve;\n this.pendingLogin.reject = reject;\n });\n }\n const loginPromise = new Promise((resolve, reject) => {\n this.pendingLogin = { resolve, reject };\n this.loginInProgress = true;\n // Always use our custom wallet modal\n this.phantomMethods.showCustomModal();\n // Safety timeout\n setTimeout(() => {\n if (this.pendingLogin) {\n this.pendingLogin.reject(new Error('Login timed out'));\n this.pendingLogin = null;\n this.loginInProgress = false;\n }\n }, 180000);\n });\n return loginPromise.finally(() => {\n this.loginOverrides = null;\n });\n }\n async restoreSession() {\n await this.ensureReady();\n const session = await SessionManager.getSession();\n if (session) {\n return { provider: this, address: session.address };\n }\n return null;\n }\n // When connect is delegated to a top-level tab (openTopLevelForConnect — used\n // for the cross-origin preview iframe on mobile, where MWA can't run), the\n // actual connect happens in that tab and writes the session to same-origin\n // storage. This watches for that session to appear and resolves the in-flight\n // login() with it. It listens for `storage` events and visibility regain (the\n // user returning from the tab), with a polling fallback and a hard timeout.\n awaitTopLevelConnect() {\n if (typeof window === 'undefined')\n return;\n let done = false;\n const cleanup = () => {\n clearInterval(poll);\n clearTimeout(timeout);\n window.removeEventListener('storage', onChange);\n document.removeEventListener('visibilitychange', onVisible);\n };\n const tryResolve = async () => {\n if (done)\n return;\n try {\n const user = await this.restoreSession();\n if (user && this.pendingLogin) {\n done = true;\n cleanup();\n this.pendingLogin.resolve(user);\n this.pendingLogin = null;\n this.loginInProgress = false;\n }\n }\n catch (_a) {\n // not ready yet — keep waiting\n }\n };\n const onChange = () => { void tryResolve(); };\n const onVisible = () => { if (document.visibilityState === 'visible')\n void tryResolve(); };\n const poll = setInterval(() => { void tryResolve(); }, 1500);\n const timeout = setTimeout(() => {\n cleanup();\n if (!done && this.pendingLogin) {\n this.pendingLogin.reject(new Error('Wallet connection timed out'));\n this.pendingLogin = null;\n this.loginInProgress = false;\n }\n }, 180000);\n window.addEventListener('storage', onChange);\n document.addEventListener('visibilitychange', onVisible);\n }\n async address() {\n var _a, _b, _c, _d;\n await this.ensureReady();\n if (!((_a = this.phantomMethods) === null || _a === void 0 ? void 0 : _a.isConnected) || !((_b = this.phantomMethods.addresses) === null || _b === void 0 ? void 0 : _b.length)) {\n // Try to connect first\n const user = await this.login();\n if (!user)\n return null;\n }\n const solAddress = (_d = (_c = this.phantomMethods) === null || _c === void 0 ? void 0 : _c.addresses) === null || _d === void 0 ? void 0 : _d.find((addr) => addr.addressType === phantomReactSdk.AddressType.solana);\n return (solAddress === null || solAddress === void 0 ? void 0 : solAddress.address) || null;\n }\n async runTransaction(_evmTransactionData, solTransactionData, options) {\n var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;\n if (!solTransactionData) {\n throw new Error(\"Solana transaction data is required for Phantom wallet\");\n }\n try {\n await this.ensureSolanaReady();\n }\n catch (error) {\n console.error('Solana provider reconnection failed, logging out:', error.message);\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n if (!((_a = this.phantomMethods) === null || _a === void 0 ? void 0 : _a.isConnected)) {\n const user = await this.login();\n if (!user) {\n throw new Error('Failed to connect wallet');\n }\n try {\n await this.ensureSolanaReady();\n }\n catch (error) {\n console.error('Solana provider reconnection failed after login, logging out:', error.message);\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n }\n if (!((_b = this.phantomMethods) === null || _b === void 0 ? void 0 : _b.solana)) {\n throw new Error('Solana signing not available');\n }\n const rpcUrl = this.getRpcUrl(solTransactionData.network);\n const connection = new Connection(rpcUrl, 'confirmed');\n const isSurfnet = rpcUrl === SURFNET_RPC_URL;\n try {\n const remainingAccounts = convertRemainingAccounts(solTransactionData.txArgs[0].remainingAccounts);\n const app_id = solTransactionData.appId;\n if (!app_id) {\n throw new Error(\"App ID is required\");\n }\n // Get address\n const solAddress = this.phantomMethods.addresses.find((addr) => addr.addressType === phantomReactSdk.AddressType.solana);\n if (!solAddress) {\n throw new Error('Failed to get Solana address');\n }\n const publicKey = new PublicKey(solAddress.address);\n // Create wallet adapter using SDK methods\n const solana = this.phantomMethods.solana;\n const walletAdapter = {\n publicKey,\n signTransaction: async (tx) => {\n return await solana.signTransaction(tx);\n },\n signAllTransactions: async (txs) => {\n return await solana.signAllTransactions(txs);\n }\n };\n const anchorProvider = new anchor.AnchorProvider(connection, walletAdapter, anchor.AnchorProvider.defaultOptions());\n const finalDeduped = [];\n for (const acc of remainingAccounts) {\n const existing = finalDeduped.find((d) => d.pubkey.equals(acc.pubkey));\n if (existing) {\n existing.isSigner = existing.isSigner || acc.isSigner;\n existing.isWritable = existing.isWritable || acc.isWritable;\n }\n else {\n finalDeduped.push(acc);\n }\n }\n // When the server has co-signed a transaction (CPI attestation),\n // deserialize it and just add the wallet signature instead of\n // building from components.\n let tx;\n if (solTransactionData.signedTransaction) {\n tx = VersionedTransaction.deserialize(Buffer.from(solTransactionData.signedTransaction, 'base64'));\n }\n else {\n const result = await buildSetDocumentsTransaction(connection, solTransactionData.txArgs[0].idl, anchorProvider, publicKey, {\n app_id,\n documents: solTransactionData.txArgs[0].setDocumentData,\n delete_paths: solTransactionData.txArgs[0].deletePaths,\n txData: solTransactionData.txArgs[0].txData\n }, finalDeduped, solTransactionData.lutKey, solTransactionData.preInstructions, false, solTransactionData.additionalLutAddresses);\n tx = result.tx;\n }\n if ((options === null || options === void 0 ? void 0 : options.shouldSubmitTx) === false) {\n const signedTx = await walletAdapter.signTransaction(tx);\n return {\n signedTransaction: signedTx,\n blockNumber: 0,\n gasUsed: \"0\",\n data: \"\"\n };\n }\n // Keep manual submission on surfnet, use Phantom's recommended signAndSend for other networks.\n if (isSurfnet) {\n const signedTx = await walletAdapter.signTransaction(tx);\n const { signature, txInfo } = await this.submitSignedTransaction(signedTx, connection);\n return {\n transactionSignature: signature,\n blockNumber: (txInfo === null || txInfo === void 0 ? void 0 : txInfo.slot) || 0,\n gasUsed: ((_c = txInfo === null || txInfo === void 0 ? void 0 : txInfo.meta) === null || _c === void 0 ? void 0 : _c.fee.toString()) || '0',\n data: txInfo === null || txInfo === void 0 ? void 0 : txInfo.meta,\n };\n }\n const signature = await this.signAndSendViaPhantom(tx);\n const txInfo = await confirmAndCheckTransaction(connection, signature);\n return {\n transactionSignature: signature,\n blockNumber: (txInfo === null || txInfo === void 0 ? void 0 : txInfo.slot) || 0,\n gasUsed: ((_d = txInfo === null || txInfo === void 0 ? void 0 : txInfo.meta) === null || _d === void 0 ? void 0 : _d.fee.toString()) || '0',\n data: txInfo === null || txInfo === void 0 ? void 0 : txInfo.meta,\n };\n }\n catch (error) {\n // Check if this is a connection error - if so, log out\n if (((_e = error === null || error === void 0 ? void 0 : error.message) === null || _e === void 0 ? void 0 : _e.includes('not connected')) || ((_f = error === null || error === void 0 ? void 0 : error.message) === null || _f === void 0 ? void 0 : _f.includes('connect first'))) {\n console.error('Solana provider connection lost during transaction, logging out');\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n const isUserRejection = (error === null || error === void 0 ? void 0 : error.code) === 4001 ||\n ((_g = error === null || error === void 0 ? void 0 : error.message) === null || _g === void 0 ? void 0 : _g.toLowerCase().includes('user rejected')) ||\n ((_h = error === null || error === void 0 ? void 0 : error.message) === null || _h === void 0 ? void 0 : _h.toLowerCase().includes('user denied')) ||\n ((_j = error === null || error === void 0 ? void 0 : error.message) === null || _j === void 0 ? void 0 : _j.toLowerCase().includes('user cancelled')) ||\n ((_k = error === null || error === void 0 ? void 0 : error.message) === null || _k === void 0 ? void 0 : _k.toLowerCase().includes('user canceled'));\n if (!isUserRejection) {\n console.error('Failed to execute transaction', error);\n }\n throw new Error(`Failed to execute transaction: ${error.message}`);\n }\n }\n /**\n * Signs a Solana transaction without submitting it.\n *\n * This method handles blockhash automatically if not set - you do NOT need to\n * set recentBlockhash on the transaction before calling this method.\n * The network/RPC URL is derived from the provider's configuration (set during initialization).\n *\n * @param transaction - The transaction to sign (Transaction or VersionedTransaction)\n * @returns The signed transaction\n */\n async signTransaction(transaction) {\n var _a, _b, _c, _d;\n try {\n await this.ensureSolanaReady();\n }\n catch (error) {\n // Reconnection failed - log user out and throw\n console.error('Solana provider reconnection failed, logging out:', error.message);\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n if (!((_a = this.phantomMethods) === null || _a === void 0 ? void 0 : _a.isConnected)) {\n const user = await this.login();\n if (!user) {\n throw new Error('Failed to connect wallet');\n }\n try {\n await this.ensureSolanaReady();\n }\n catch (error) {\n console.error('Solana provider reconnection failed after login, logging out:', error.message);\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n }\n if (!((_b = this.phantomMethods) === null || _b === void 0 ? void 0 : _b.solana)) {\n throw new Error('Solana signing not available');\n }\n // Use duck typing instead of instanceof to handle multiple @solana/web3.js versions\n const isLegacyTransaction = 'recentBlockhash' in transaction && !('message' in transaction && 'staticAccountKeys' in transaction.message);\n // Ensure blockhash is set before signing\n if (isLegacyTransaction) {\n const legacyTx = transaction;\n if (!legacyTx.recentBlockhash) {\n const rpcUrl = this.getRpcUrl();\n const connection = new Connection(rpcUrl, 'confirmed');\n const { blockhash, lastValidBlockHeight } = await connection.getLatestBlockhash('confirmed');\n legacyTx.recentBlockhash = blockhash;\n legacyTx.lastValidBlockHeight = lastValidBlockHeight;\n }\n // Set feePayer if not already set\n if (!legacyTx.feePayer) {\n const solAddress = this.phantomMethods.addresses.find((addr) => addr.addressType === phantomReactSdk.AddressType.solana);\n if (solAddress) {\n legacyTx.feePayer = new PublicKey(solAddress.address);\n }\n }\n }\n else {\n // VersionedTransaction\n const versionedTx = transaction;\n if (!versionedTx.message.recentBlockhash) {\n const rpcUrl = this.getRpcUrl();\n const connection = new Connection(rpcUrl, 'confirmed');\n const { blockhash } = await connection.getLatestBlockhash('confirmed');\n versionedTx.message.recentBlockhash = blockhash;\n }\n }\n try {\n return await this.phantomMethods.solana.signTransaction(transaction);\n }\n catch (error) {\n // Check if this is a connection error - if so, log out\n if (((_c = error === null || error === void 0 ? void 0 : error.message) === null || _c === void 0 ? void 0 : _c.includes('not connected')) || ((_d = error === null || error === void 0 ? void 0 : error.message) === null || _d === void 0 ? void 0 : _d.includes('connect first'))) {\n console.error('Solana provider connection lost during signing, logging out');\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n throw new Error(`Failed to sign transaction: ${error.message}`);\n }\n }\n /**\n * Signs and submits a Solana transaction to the network.\n *\n * This method handles blockhash and transaction confirmation automatically - you do NOT need to\n * set recentBlockhash or lastValidBlockHeight on the transaction before calling this method.\n * The network/RPC URL is derived from the provider's configuration (set during initialization).\n *\n * @param transaction - The transaction to sign and submit (Transaction or VersionedTransaction)\n * @param feePayer - Optional fee payer public key. If not provided and the transaction doesn't\n * already have a feePayer set, the connected wallet address will be used.\n * Useful for co-signing scenarios where a different account pays the fees.\n * @returns The transaction signature\n */\n async signAndSubmitTransaction(transaction, feePayer) {\n var _a, _b, _c, _d, _e, _f, _g, _h;\n try {\n await this.ensureSolanaReady();\n }\n catch (error) {\n console.error('Solana provider reconnection failed, logging out:', error.message);\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n if (!((_a = this.phantomMethods) === null || _a === void 0 ? void 0 : _a.isConnected)) {\n const user = await this.login();\n if (!user) {\n throw new Error('Failed to connect wallet');\n }\n try {\n await this.ensureSolanaReady();\n }\n catch (error) {\n console.error('Solana provider reconnection failed after login, logging out:', error.message);\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n }\n if (!((_b = this.phantomMethods) === null || _b === void 0 ? void 0 : _b.solana)) {\n throw new Error('Solana signing not available');\n }\n const rpcUrl = this.getRpcUrl();\n const connection = new Connection(rpcUrl, 'confirmed');\n const isSurfnet = rpcUrl === SURFNET_RPC_URL;\n try {\n // Get fresh blockhash and set it on the transaction before signing\n const { blockhash, lastValidBlockHeight } = await connection.getLatestBlockhash('confirmed');\n // Use duck typing instead of instanceof to handle multiple @solana/web3.js versions\n const isLegacyTransaction = 'recentBlockhash' in transaction && !('message' in transaction && 'staticAccountKeys' in transaction.message);\n if (isLegacyTransaction) {\n const legacyTx = transaction;\n legacyTx.recentBlockhash = blockhash;\n legacyTx.lastValidBlockHeight = lastValidBlockHeight;\n // Set feePayer if not already set\n if (!legacyTx.feePayer) {\n if (feePayer) {\n legacyTx.feePayer = feePayer;\n }\n else {\n // Use connected wallet address as feePayer\n const solAddress = this.phantomMethods.addresses.find((addr) => addr.addressType === phantomReactSdk.AddressType.solana);\n if (solAddress) {\n legacyTx.feePayer = new PublicKey(solAddress.address);\n }\n }\n }\n }\n else {\n // VersionedTransaction\n const versionedTx = transaction;\n versionedTx.message.recentBlockhash = blockhash;\n // Note: VersionedTransaction feePayer is set in the message at creation time\n // and cannot be modified after creation\n }\n // Keep manual submission on surfnet, use Phantom's recommended signAndSend for other networks.\n if (isSurfnet) {\n const signedTx = await this.phantomMethods.solana.signTransaction(transaction);\n const { signature } = await this.submitSignedTransactionWithBlockhash(signedTx, connection, blockhash, lastValidBlockHeight);\n return signature;\n }\n const signature = await this.signAndSendViaPhantom(transaction);\n await confirmAndCheckTransaction(connection, signature);\n return signature;\n }\n catch (error) {\n // Check if this is a connection error - if so, log out\n if (((_c = error === null || error === void 0 ? void 0 : error.message) === null || _c === void 0 ? void 0 : _c.includes('not connected')) || ((_d = error === null || error === void 0 ? void 0 : error.message) === null || _d === void 0 ? void 0 : _d.includes('connect first'))) {\n console.error('Solana provider connection lost during transaction, logging out');\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n const isUserRejection = (error === null || error === void 0 ? void 0 : error.code) === 4001 ||\n ((_e = error === null || error === void 0 ? void 0 : error.message) === null || _e === void 0 ? void 0 : _e.toLowerCase().includes('user rejected')) ||\n ((_f = error === null || error === void 0 ? void 0 : error.message) === null || _f === void 0 ? void 0 : _f.toLowerCase().includes('user denied')) ||\n ((_g = error === null || error === void 0 ? void 0 : error.message) === null || _g === void 0 ? void 0 : _g.toLowerCase().includes('user cancelled')) ||\n ((_h = error === null || error === void 0 ? void 0 : error.message) === null || _h === void 0 ? void 0 : _h.toLowerCase().includes('user canceled'));\n if (!isUserRejection) {\n console.error('Failed to execute transaction', error);\n }\n throw new Error(`Failed to execute transaction: ${error.message}`);\n }\n }\n async signMessage(message) {\n var _a, _b, _c, _d, _e, _f, _g, _h;\n try {\n await this.ensureSolanaReady();\n }\n catch (error) {\n // Reconnection failed - log user out and throw\n console.error('Solana provider reconnection failed, logging out:', error.message);\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n if (!((_a = this.phantomMethods) === null || _a === void 0 ? void 0 : _a.isConnected)) {\n const user = await this.login();\n if (!user) {\n throw new Error('Failed to connect wallet');\n }\n try {\n await this.ensureSolanaReady();\n }\n catch (error) {\n console.error('Solana provider reconnection failed after login, logging out:', error.message);\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n }\n if (!((_b = this.phantomMethods) === null || _b === void 0 ? void 0 : _b.solana)) {\n throw new Error('Solana signing not available');\n }\n try {\n // signMessage returns { signature: Uint8Array, publicKey: string }\n const result = await this.phantomMethods.solana.signMessage(message);\n return Buffer.from(result.signature).toString('base64');\n }\n catch (error) {\n // Check if this is a connection error - if so, log out\n if (((_c = error === null || error === void 0 ? void 0 : error.message) === null || _c === void 0 ? void 0 : _c.includes('not connected')) || ((_d = error === null || error === void 0 ? void 0 : error.message) === null || _d === void 0 ? void 0 : _d.includes('connect first'))) {\n console.error('Solana provider connection lost during signing, logging out');\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n const isUserRejection = (error === null || error === void 0 ? void 0 : error.code) === 4001 ||\n ((_e = error === null || error === void 0 ? void 0 : error.message) === null || _e === void 0 ? void 0 : _e.toLowerCase().includes('user rejected')) ||\n ((_f = error === null || error === void 0 ? void 0 : error.message) === null || _f === void 0 ? void 0 : _f.toLowerCase().includes('user denied')) ||\n ((_g = error === null || error === void 0 ? void 0 : error.message) === null || _g === void 0 ? void 0 : _g.toLowerCase().includes('user cancelled')) ||\n ((_h = error === null || error === void 0 ? void 0 : error.message) === null || _h === void 0 ? void 0 : _h.toLowerCase().includes('user canceled'));\n if (!isUserRejection) {\n console.error('Failed to sign message', error);\n }\n throw new Error('Failed to sign message');\n }\n }\n async logout() {\n var _a;\n await this.ensureReady();\n try {\n if ((_a = this.phantomMethods) === null || _a === void 0 ? void 0 : _a.isConnected) {\n await this.phantomMethods.disconnect();\n }\n }\n catch (error) {\n console.error('Failed to disconnect from Phantom wallet', error);\n }\n // Always clear local state\n SessionManager.clearSession();\n setCurrentUser(null);\n }\n async getNativeMethods() {\n await this.ensureReady();\n return this.phantomMethods;\n }\n /* ----------------------------------------------------------- *\n * Private Helpers\n * ----------------------------------------------------------- */\n getRpcUrl(network) {\n return resolveSolanaRpcUrl(this.networkUrl, network !== null && network !== void 0 ? network : this.configuredNetwork, \"Phantom wallet Solana transaction\");\n }\n async signAndSendViaPhantom(transaction) {\n var _a, _b, _c;\n const result = await ((_b = (_a = this.phantomMethods) === null || _a === void 0 ? void 0 : _a.solana) === null || _b === void 0 ? void 0 : _b.signAndSendTransaction(transaction));\n const signature = (_c = result === null || result === void 0 ? void 0 : result.signature) !== null && _c !== void 0 ? _c : result === null || result === void 0 ? void 0 : result.hash;\n if (!signature) {\n throw new Error('Phantom did not return a transaction signature');\n }\n return signature;\n }\n async submitSignedTransaction(signedTx, connection) {\n // Get fresh blockhash for confirmation\n const { blockhash, lastValidBlockHeight } = await connection.getLatestBlockhash('confirmed');\n return this.submitSignedTransactionWithBlockhash(signedTx, connection, blockhash, lastValidBlockHeight);\n }\n async submitSignedTransactionWithBlockhash(signedTx, connection, blockhash, lastValidBlockHeight) {\n // Submit the transaction\n const signature = await connection.sendRawTransaction(signedTx.serialize(), {\n preflightCommitment: 'confirmed'\n });\n // Confirm using blockhash strategy (same as runTransaction)\n const confirmation = await connection.confirmTransaction({\n signature,\n blockhash,\n lastValidBlockHeight,\n }, 'confirmed');\n if (confirmation.value.err) {\n throw new Error(`Transaction failed: ${confirmation.value.err.toString()}`);\n }\n // Get transaction info\n const txInfo = await connection.getParsedTransaction(signature, {\n maxSupportedTransactionVersion: 0,\n commitment: 'confirmed'\n });\n return { signature, txInfo };\n }\n}\nPhantomWalletProvider.instance = null;\n","import { Buffer } from 'buffer';\n// `SessionManager` is the active-manager SELECTOR (call it to get the store):\n// WebSessionManager on web, ReactNativeSessionManager on RN. The native MWA login\n// path runs on RN (no DOM), so it MUST persist through the RN store — hardcoding\n// WebSessionManager here meant a successful authorize+sign then crashed at\n// storeSession (localStorage is undefined on RN).\nimport { getActiveSessionManager as SessionManager, createSessionWithSignature, genAuthNonce, genSolanaMessage, buildSetDocumentsTransaction, convertRemainingAccounts } from '@bounded-sh/core';\nimport { setCurrentUser, setAuthLoading } from '../../global';\nimport { getPlatform, detectAndroid } from '../../platform';\nimport { Connection, PublicKey, Transaction, VersionedMessage, VersionedTransaction } from '@solana/web3.js';\nimport * as anchor from '@coral-xyz/anchor';\nimport bs58 from 'bs58';\nimport { resolveSolanaRpcUrl, resolveSolanaWalletStandardChain, SURFNET_RPC_URL } from '../solana-rpc';\nimport { confirmAndCheckTransaction } from './transaction-utils';\n/**\n * Storage key for persisting the MWA auth_token across cold starts.\n * Holds JSON `{ token: string, address: string }`. Cleared by\n * `logout()`. Hydrated by the constructor on native so cold-start\n * doesn't force the user back into Phantom's approval flow when the\n * underlying wallet authorization is still valid.\n */\nconst MWA_AUTH_TOKEN_STORAGE_KEY = 'bounded_mwa_auth_token';\n/**\n * Detects whether the current environment is a mobile browser capable of\n * Mobile Wallet Adapter (MWA) communication.\n *\n * Returns true on Android browsers (Chrome, etc.) where MWA intents work,\n * or inside a Seeker/Saga in-app browser context.\n */\nexport function isMobileWalletAvailable() {\n if (typeof window === 'undefined' || typeof navigator === 'undefined')\n return false;\n return detectAndroid();\n}\nconst ED25519_SIGNATURE_LENGTH = 64;\nconst STORED_AUTH_METHOD_KEY = 'bounded_last_auth_method';\nconst MWA_AUTH_METHOD = 'mobile-wallet-adapter';\nfunction findMwaError(e, maxDepth = 5) {\n var _a;\n let cur = e;\n let depth = 0;\n while (cur && depth < maxDepth) {\n if ((cur === null || cur === void 0 ? void 0 : cur.name) === 'SolanaMobileWalletAdapterError' && typeof (cur === null || cur === void 0 ? void 0 : cur.code) === 'string') {\n return { code: cur.code, message: String((_a = cur.message) !== null && _a !== void 0 ? _a : '') };\n }\n cur = cur === null || cur === void 0 ? void 0 : cur.cause;\n depth++;\n }\n return null;\n}\n/**\n * Returns the matched MwaErrorInfo when the error is from an association\n * failure that an automatic retry can recover from (i.e. the wallet exists\n * on-device but the dApp's protocol session didn't complete in time). Returns\n * null for non-retryable errors (user cancel, unknown wallet errors, etc.).\n *\n * Specifically:\n * - ERROR_WALLET_NOT_FOUND: thrown from the protocol's startScenario when\n * it gave up waiting for a wallet to respond. On Seeker this races the\n * first-time-consent UI on the very first authorize.\n * - ERROR_SESSION_TIMEOUT: similar — the protocol's session-establishment\n * timer expired.\n * - ERROR_ASSOCIATION_CANCELLED: shared by user-cancel (\"Wallet connection\n * cancelled by user\") AND the 30s wallet-standard WALLET_ASSOCIATION_TIMEOUT\n * (\"Wallet connection timed out\"). Discriminate by message — never retry\n * a user cancel.\n */\nfunction isMwaAssociationRetryable(e) {\n const info = findMwaError(e);\n if (!info)\n return null;\n if (info.code === 'ERROR_WALLET_NOT_FOUND')\n return info;\n if (info.code === 'ERROR_SESSION_TIMEOUT')\n return info;\n if (info.code === 'ERROR_ASSOCIATION_CANCELLED' && /timed out/i.test(info.message))\n return info;\n return null;\n}\n/**\n * Single-retry wrapper for MWA association failures. Used ONLY for login's\n * `standard:connect` and `solana:signMessage` calls — never for\n * `signAndSendTransaction`/`runTransaction` because retry on a path that\n * may have already submitted a tx can double-send.\n *\n * The retry exists for one specific scenario: on first-time MWA usage from a\n * given origin on Seeker, the protocol's session-establishment timer races\n * Seeker's first-time consent UI. The user reads the consent sheet, taps\n * Connect — but by then the protocol has given up and thrown\n * ERROR_WALLET_NOT_FOUND. The consent itself IS persisted on Seeker though,\n * so a second attempt skips the consent sheet, jumps straight to\n * Verify/Approve, and completes inside the timeout.\n */\nasync function withMwaAssociationRetry(fn) {\n try {\n return await fn();\n }\n catch (e) {\n const retryable = isMwaAssociationRetryable(e);\n if (!retryable)\n throw e;\n // Seeker's consent sheet is a bottom-sheet overlay — Chrome doesn't\n // reliably flip document.visibilityState to 'hidden' while it's open,\n // so visibility-based waits fire too early. Use a fixed delay long\n // enough for Seeker to dismiss its sheet and the OS to release intent\n // state. 2.5s is empirically safe; tune from device traces if needed.\n await new Promise(r => setTimeout(r, 2500));\n try {\n return await fn();\n }\n catch (e2) {\n // Only mask the error with the clean Seeker message when the\n // second failure is also an association-flavored error. If it's\n // a user cancel, wallet rejection, or unknown error, rethrow\n // the original so the host app surfaces the real cause.\n if (isMwaAssociationRetryable(e2)) {\n throw new Error(\"Couldn't connect to your Seeker wallet. Please try again.\");\n }\n throw e2;\n }\n }\n}\n/**\n * User-gesture-mediated wallet-standard sign helper.\n *\n * Why this exists: login flows that go through wallet-standard call two\n * separate transacts (standard:connect, then solana:signMessage). Each\n * transact dispatches its own `solana-wallet:` Android intent navigation\n * via `window.location.assign(associationUrl)` (see\n * @solana-mobile/mobile-wallet-adapter-protocol/lib/cjs/index.browser.js\n * `launchAssociation()` at line 459). Chrome requires **transient user\n * activation** for each custom-scheme navigation. The first transact\n * consumes the activation from the user's \"Continue to Allow\" tap on the\n * LNA modal; by the time the second transact (signMessage) runs as a JS\n * continuation, the activation has decayed, Chrome blocks the navigation,\n * no `blur` event fires, the protocol's `getDetectionPromise` (3000ms\n * timeout, line 433) rejects, and we get `ERROR_WALLET_NOT_FOUND`.\n *\n * Fix: show a Bounded-controlled modal between the two transacts. When the\n * user taps the modal's \"Sign in\" button, that tap IS a fresh user\n * activation. We invoke the sign function directly inside the click handler\n * — no `await` between the tap and the call — so the activation propagates\n * to the protocol's `location.assign`.\n *\n * Failure recovery is also user-gesture driven: if the sign function fails\n * with a retryable association error, we re-enable the button so the user's\n * next tap is a new activation (a real retry). A timer-based retry would\n * just hit the same Chrome block. Cap at 3 attempts before giving up.\n */\nasync function awaitSignInGestureAndSign(theme, signFn, noResultError = 'MWA returned no signature') {\n if (typeof document === 'undefined' || typeof window === 'undefined') {\n // SSR / non-browser: skip the gesture, just call (the activation\n // model doesn't apply outside the browser).\n const results = await signFn();\n if (!results || results.length === 0)\n throw new Error(noResultError);\n return results[0];\n }\n return new Promise((resolve, reject) => {\n const isDark = theme === 'dark'\n || (theme == null\n && typeof window.matchMedia === 'function'\n && window.matchMedia('(prefers-color-scheme: dark)').matches);\n // Palette\n const overlayBg = 'rgba(0, 0, 0, 0.62)';\n const cardBg = isDark ? '#1a1a1f' : '#ffffff';\n const titleColor = isDark ? '#ffffff' : '#0a0a0a';\n const subtitleColor = isDark ? '#a1a1aa' : '#52525b';\n const btnBg = isDark ? '#ffffff' : '#0a0a0a';\n const btnText = isDark ? '#0a0a0a' : '#ffffff';\n const btnDisabledBg = isDark ? '#3f3f46' : '#d4d4d8';\n const btnDisabledText = isDark ? '#71717a' : '#71717a';\n const errorColor = isDark ? '#fca5a5' : '#dc2626';\n const closeColor = isDark ? '#71717a' : '#a1a1aa';\n const fontStack = '-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif';\n const overlay = document.createElement('div');\n overlay.setAttribute('data-bounded-mwa-gesture', 'true');\n overlay.style.cssText = [\n 'position: fixed',\n 'inset: 0',\n 'z-index: 2147483646',\n `background: ${overlayBg}`,\n 'display: flex',\n 'align-items: center',\n 'justify-content: center',\n 'padding: 20px',\n 'box-sizing: border-box',\n `font-family: ${fontStack}`,\n ].join('; ');\n const card = document.createElement('div');\n card.style.cssText = [\n `background: ${cardBg}`,\n 'border-radius: 20px',\n 'padding: 28px 24px 24px',\n 'max-width: 340px',\n 'width: 100%',\n 'box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28)',\n 'position: relative',\n 'box-sizing: border-box',\n ].join('; ');\n const closeBtn = document.createElement('button');\n closeBtn.setAttribute('aria-label', 'Close');\n closeBtn.textContent = '×';\n closeBtn.style.cssText = [\n 'position: absolute',\n 'top: 12px',\n 'right: 12px',\n 'background: transparent',\n 'border: none',\n `color: ${closeColor}`,\n 'font-size: 24px',\n 'line-height: 1',\n 'cursor: pointer',\n 'padding: 6px 10px',\n 'border-radius: 8px',\n ].join('; ');\n const title = document.createElement('div');\n title.textContent = 'Almost there';\n title.style.cssText = [\n `color: ${titleColor}`,\n 'font-size: 20px',\n 'font-weight: 600',\n 'margin-bottom: 6px',\n 'text-align: center',\n ].join('; ');\n const subtitle = document.createElement('div');\n subtitle.textContent = 'Tap to sign in with your wallet';\n subtitle.style.cssText = [\n `color: ${subtitleColor}`,\n 'font-size: 14px',\n 'line-height: 1.4',\n 'margin-bottom: 22px',\n 'text-align: center',\n ].join('; ');\n const errorRow = document.createElement('div');\n errorRow.style.cssText = [\n `color: ${errorColor}`,\n 'font-size: 13px',\n 'line-height: 1.4',\n 'margin-bottom: 14px',\n 'text-align: center',\n 'min-height: 0',\n 'transition: min-height 100ms ease',\n ].join('; ');\n const button = document.createElement('button');\n button.textContent = 'Sign in';\n const setButtonEnabledStyle = () => {\n button.style.cssText = [\n `background: ${btnBg}`,\n `color: ${btnText}`,\n 'border: none',\n 'border-radius: 14px',\n 'padding: 14px 20px',\n 'font-size: 16px',\n 'font-weight: 600',\n 'width: 100%',\n 'cursor: pointer',\n '-webkit-tap-highlight-color: transparent',\n 'box-sizing: border-box',\n `font-family: ${fontStack}`,\n ].join('; ');\n };\n const setButtonDisabledStyle = () => {\n button.style.cssText = [\n `background: ${btnDisabledBg}`,\n `color: ${btnDisabledText}`,\n 'border: none',\n 'border-radius: 14px',\n 'padding: 14px 20px',\n 'font-size: 16px',\n 'font-weight: 600',\n 'width: 100%',\n 'cursor: default',\n '-webkit-tap-highlight-color: transparent',\n 'box-sizing: border-box',\n `font-family: ${fontStack}`,\n ].join('; ');\n };\n setButtonEnabledStyle();\n card.appendChild(closeBtn);\n card.appendChild(title);\n card.appendChild(subtitle);\n card.appendChild(errorRow);\n card.appendChild(button);\n overlay.appendChild(card);\n document.body.appendChild(overlay);\n let settled = false;\n let attemptCount = 0;\n const MAX_ATTEMPTS = 3;\n const cleanup = () => {\n try {\n overlay.remove();\n }\n catch ( /* ignore */_a) { /* ignore */ }\n document.removeEventListener('keydown', onKeydown);\n };\n const finishResolve = (value) => {\n if (settled)\n return;\n settled = true;\n cleanup();\n resolve(value);\n };\n const finishReject = (err) => {\n if (settled)\n return;\n settled = true;\n cleanup();\n reject(err);\n };\n const handleCancel = () => {\n // Phrasing matches login()'s isUserRejection substring check so\n // the existing catch suppresses error-log noise.\n finishReject(new Error('User cancelled wallet sign in'));\n };\n closeBtn.addEventListener('click', () => {\n handleCancel();\n });\n overlay.addEventListener('click', (e) => {\n if (e.target === overlay) {\n handleCancel();\n }\n });\n const onKeydown = (e) => {\n if (e.key === 'Escape') {\n handleCancel();\n }\n };\n document.addEventListener('keydown', onKeydown);\n button.addEventListener('click', () => {\n if (settled)\n return;\n attemptCount++;\n const attempt = attemptCount;\n // Disable to prevent double-clicks while the wallet popup is up.\n button.disabled = true;\n setButtonDisabledStyle();\n const originalText = 'Sign in';\n button.textContent = 'Signing in…';\n errorRow.textContent = '';\n errorRow.style.minHeight = '0';\n // CRITICAL: invoke signFn() synchronously inside the click handler\n // so Chrome's transient user activation propagates to the\n // protocol's window.location.assign(associationUrl) inside\n // launchAssociation(). Do not `await` before calling.\n signFn().then((results) => {\n if (!results || results.length === 0) {\n finishReject(new Error(noResultError));\n return;\n }\n finishResolve(results[0]);\n }).catch((err) => {\n const retryable = isMwaAssociationRetryable(err);\n if (retryable && attempt < MAX_ATTEMPTS) {\n // Re-enable the button so the user's next tap provides a\n // fresh user activation. Show inline error text.\n button.disabled = false;\n setButtonEnabledStyle();\n button.textContent = originalText;\n errorRow.textContent = \"Couldn't connect — tap to try again\";\n errorRow.style.minHeight = '20px';\n return;\n }\n if (retryable) {\n // Hit the attempt cap with a still-retryable failure.\n finishReject(new Error(\"Couldn't connect to your Seeker wallet. Please try again.\"));\n return;\n }\n // Non-retryable error (user cancel inside Seeker, wallet\n // rejected sign, unknown error, etc.) — surface as-is.\n finishReject(err);\n });\n });\n });\n}\n/**\n * Sign through the gesture modal ONLY when transient user activation has\n * already decayed. Fast transactions still hold the activation from the\n * user's tap, so the `solana-wallet:` navigation succeeds directly with no\n * modal (preserves prior UX — no extra tap). Slow transactions — e.g. a swap\n * whose server-side build exceeds Chrome's ~5s activation window — have lost\n * it, so we fall back to awaitSignInGestureAndSign to mint a fresh activation\n * via a \"Sign in\" tap. Returns the first result (same shape as the bare\n * wallet-standard feature call and as awaitSignInGestureAndSign).\n */\nasync function signWithFreshActivation(theme, signFn, noResultError = 'MWA returned no signature') {\n var _a;\n const activationLive = typeof navigator !== 'undefined' &&\n ((_a = navigator.userActivation) === null || _a === void 0 ? void 0 : _a.isActive) === true;\n if (activationLive) {\n // Live gesture: invoke synchronously (no await before signFn) so the\n // activation propagates to the protocol's location.assign navigation.\n const results = await signFn();\n if (!results || results.length === 0)\n throw new Error(noResultError);\n return results[0];\n }\n // Activation gone: surface the modal so the user's tap mints a fresh one.\n return awaitSignInGestureAndSign(theme, signFn, noResultError);\n}\n/**\n * Normalize a chain string to a wallet-standard Solana chain identifier.\n *\n * Handles three input shapes that all show up in practice:\n * - Bare cluster name from `SolanaMobileWalletConfig.cluster` (e.g. 'devnet').\n * - Prefixed `solana:cluster` (e.g. 'solana:devnet').\n * - Double-prefixed `solana:solana:cluster` (constructor used to wrap cluster\n * with `solana:` blindly; if a caller already passed a prefixed string the\n * result was `solana:solana:devnet`).\n *\n * Wallet-standard Solana chains are exactly:\n * 'solana:mainnet' | 'solana:devnet' | 'solana:testnet' | 'solana:localnet'\n * — `mainnet-beta` is NOT a valid wallet-standard identifier and must be\n * normalized to `solana:mainnet`.\n */\nfunction mapChainToWalletStandard(input) {\n if (!input) {\n throw new Error(\"Solana mobile wallet auth requires an explicit cluster. \" +\n \"Pass mobileWalletConfig.cluster or config.chain.\");\n }\n let s = String(input).toLowerCase();\n while (s.startsWith('solana:'))\n s = s.slice('solana:'.length);\n if (s === 'mainnet-beta' || s === 'mainnet')\n return 'solana:mainnet';\n if (s === 'devnet')\n return 'solana:devnet';\n if (s === 'testnet')\n return 'solana:testnet';\n if (s === 'localnet')\n return 'solana:localnet';\n throw new Error(`Solana mobile wallet auth does not support cluster \"${input}\". ` +\n \"Expected mainnet-beta, devnet, testnet, or localnet.\");\n}\nfunction mapClusterToRpcNetwork(input) {\n if (!input)\n return null;\n let s = String(input).toLowerCase();\n while (s.startsWith('solana:'))\n s = s.slice('solana:'.length);\n if (s === 'mainnet-beta' || s === 'mainnet')\n return 'solana_mainnet';\n if (s === 'devnet')\n return 'solana_devnet';\n if (s === 'localnet')\n return 'surfnet';\n return null;\n}\n/**\n * Serialize a Transaction/VersionedTransaction to a Uint8Array wire payload\n * that the wallet-standard `solana:signTransaction` /\n * `solana:signAndSendTransaction` features expect.\n *\n * Legacy transactions must serialize with `requireAllSignatures: false` and\n * `verifySignatures: false` — the wallet hasn't signed yet, and the default\n * `serialize()` would throw \"Signature verification failed\". Versioned\n * transactions use the default `serialize()` which already permits unsigned\n * payloads. Mirrors the helper at\n * `@solana-mobile/mobile-wallet-adapter-protocol-web3js/lib/esm/index.browser.js:13-18`.\n */\nfunction txToWireBytes(tx) {\n if ('version' in tx)\n return tx.serialize();\n return tx.serialize({ requireAllSignatures: false, verifySignatures: false });\n}\n/**\n * Deserialize a wire-format transaction returned by the wallet\n * `solana:signTransaction` feature. Mirrors the helper at\n * `@solana-mobile/mobile-wallet-adapter-protocol-web3js/lib/esm/index.browser.js:19-23`\n * so legacy and versioned bytes both round-trip correctly.\n */\nfunction txFromWireBytes(byteArray) {\n const messageOffset = byteArray[0] * ED25519_SIGNATURE_LENGTH + 1;\n const messageVersion = VersionedMessage.deserializeMessageVersion(byteArray.slice(messageOffset, byteArray.length));\n if (messageVersion === 'legacy') {\n return Transaction.from(byteArray);\n }\n return VersionedTransaction.deserialize(byteArray);\n}\n/**\n * Per-method runtime narrowing of wallet-standard features. The wallet's\n * `.features` type is a union (`signAndSendTransaction` | `signTransaction`),\n * and after authorization the wallet may also narrow `#optionalFeatures`\n * based on actual wallet capabilities. Narrow at the call site so a method\n * that needs only `signMessage` doesn't fail when a wallet lacks\n * `signTransaction`.\n */\nfunction getSignMessageFeature(wallet) {\n const f = wallet.features;\n const feat = f['solana:signMessage'];\n if (!feat || typeof feat.signMessage !== 'function') {\n throw new Error('Wallet does not support solana:signMessage');\n }\n return feat;\n}\nfunction getSignTransactionFeature(wallet) {\n const f = wallet.features;\n const feat = f['solana:signTransaction'];\n if (!feat || typeof feat.signTransaction !== 'function') {\n throw new Error('Wallet does not support solana:signTransaction');\n }\n return feat;\n}\nfunction getSignAndSendTransactionFeature(wallet) {\n const f = wallet.features;\n const feat = f['solana:signAndSendTransaction'];\n if (!feat || typeof feat.signAndSendTransaction !== 'function') {\n throw new Error('Wallet does not support solana:signAndSendTransaction');\n }\n return feat;\n}\nfunction getConnectFeature(wallet) {\n const f = wallet.features;\n const feat = f['standard:connect'];\n if (!feat || typeof feat.connect !== 'function') {\n throw new Error('Wallet does not support standard:connect');\n }\n return feat;\n}\nfunction getDisconnectFeature(wallet) {\n const f = wallet.features;\n const feat = f['standard:disconnect'];\n return feat && typeof feat.disconnect === 'function' ? feat : null;\n}\nfunction writeAuthMethod(method) {\n try {\n if (method === null) {\n getPlatform().storage.removeItem(STORED_AUTH_METHOD_KEY);\n }\n else {\n getPlatform().storage.setItem(STORED_AUTH_METHOD_KEY, method);\n }\n }\n catch (_a) {\n // storage may be unavailable\n }\n}\nfunction readAuthMethod() {\n try {\n return getPlatform().storage.getItem(STORED_AUTH_METHOD_KEY);\n }\n catch (_a) {\n return null;\n }\n}\n/**\n * Registers Mobile Wallet Adapter as a wallet-standard wallet so it appears\n * in wallet selection UIs and can be discovered by other wallet-standard consumers.\n *\n * Call this once at app startup (in a browser-only / non-SSR context).\n *\n * @param config - App identity and optional remote host authority for desktop QR code support\n */\nexport async function registerMobileWalletAdapter(config) {\n var _a, _b;\n if (typeof window === 'undefined')\n return;\n try {\n const walletStandardMobile = await import('@solana-mobile/wallet-standard-mobile');\n const registerMwa = walletStandardMobile.registerMwa || ((_a = walletStandardMobile.default) === null || _a === void 0 ? void 0 : _a.registerMwa);\n if (!registerMwa) {\n console.warn('[SolanaMobileWallet] registerMwa not found in @solana-mobile/wallet-standard-mobile');\n return;\n }\n const options = {};\n if (config === null || config === void 0 ? void 0 : config.appIdentity) {\n options.appIdentity = config.appIdentity;\n }\n if (config === null || config === void 0 ? void 0 : config.chains) {\n options.chains = config.chains;\n }\n if (config === null || config === void 0 ? void 0 : config.remoteHostAuthority) {\n options.remoteHostAuthority = config.remoteHostAuthority;\n }\n // Use the library's default helpers if available\n if (walletStandardMobile.createDefaultAuthorizationCache) {\n options.authorizationCache = walletStandardMobile.createDefaultAuthorizationCache();\n }\n if (walletStandardMobile.createDefaultChainSelector) {\n options.chainSelector = walletStandardMobile.createDefaultChainSelector();\n }\n // Default: suppress the \"We can't find a wallet\" modal — see\n // SolanaMobileWalletProvider.ensureWallet() for why. Consumers that\n // want their own UX can pass config.onWalletNotFound.\n options.onWalletNotFound = (_b = config === null || config === void 0 ? void 0 : config.onWalletNotFound) !== null && _b !== void 0 ? _b : (async () => {\n // intentional no-op\n });\n registerMwa(options);\n }\n catch (e) {\n console.debug('[SolanaMobileWallet] @solana-mobile/wallet-standard-mobile not available, skipping wallet-standard registration');\n }\n}\n/**\n * SolanaMobileWalletProvider implements the AuthProvider interface using\n * Solana Mobile's wallet-standard wrapper (`LocalSolanaMobileWalletAdapterWallet`).\n *\n * Why wallet-standard and not the raw MWA protocol: as of\n * `@solana-mobile/wallet-standard-mobile@0.5.0+`, the wallet's internal\n * `#transact` calls `checkLocalNetworkAccessPermission()` before opening the\n * localhost WebSocket. That helper renders a three-stage UX flow Solana\n * Mobile designed specifically to defuse Chrome's Local Network Access\n * permission dialog (which renders with disabled buttons on Android Chrome,\n * the source of the long-running Seeker MWA bug):\n *\n * 1. \"Allow connections to your wallet\" informational modal.\n * 2. Chrome's permission prompt (interactive because it's spawned as a\n * fresh user gesture from step 1).\n * 3. \"Ready to connect!\" success modal.\n *\n * `checkLocalNetworkAccessPermission` is internal to the library — it's not\n * exported. The only way to invoke it is to go through the wallet's\n * `standard:connect` / `solana:sign*` features, which is what this provider\n * does.\n *\n * Notes on UX: login uses two wallet popups in succession — `standard:connect`\n * (authorize) and `solana:signMessage` (sign the Bounded nonce). The\n * previous implementation combined both inside a single `transact` callback;\n * splitting them is the cost of going through wallet-standard, and is\n * acceptable given the alternative was broken on Seeker.\n */\nexport class SolanaMobileWalletProvider {\n constructor(networkUrl = null, config = {}, configuredNetwork = null) {\n var _a;\n /** LocalSolanaMobileWalletAdapterWallet, lazy-constructed in ensureWallet(). */\n this.wallet = null;\n /**\n * Cached MWA auth_token returned by `wallet.authorize()`. Reused by\n * subsequent native transact() calls (signMessage / signTransaction)\n * so the user doesn't get the wallet-pick popup on every operation.\n * Persisted to platform storage and hydrated by the constructor on\n * native; cleared by logout() and on `ERROR_REAUTHORIZE`.\n */\n this.nativeAuthToken = null;\n /** Cached public key string for the connected MWA wallet (native). */\n this.nativeAddress = null;\n this.networkUrl = networkUrl;\n this.configuredNetwork = configuredNetwork;\n this.config = config;\n // Allow construction in true React Native environments: getPlatform().hasDOM\n // is false there even though `typeof window === 'object'` (RN exposes a\n // partial window global). Web/PWA paths still keep their original guard:\n // they need real window+document for wallet-standard-mobile's deep-link\n // mechanism, so missing-window in those builds remains a fail-fast.\n const hasDOM = getPlatform().hasDOM;\n if (!hasDOM && typeof window === 'undefined') {\n throw new Error('SolanaMobileWalletProvider can only be instantiated in a browser or React Native environment');\n }\n if (hasDOM && typeof window === 'undefined') {\n throw new Error('SolanaMobileWalletProvider can only be instantiated in a browser environment');\n }\n if (SolanaMobileWalletProvider.instance) {\n return SolanaMobileWalletProvider.instance;\n }\n // `appIdentity.uri` is what Phantom Android (and other MWA wallets)\n // display in their approval modal. On web/PWA this is the page\n // origin; on native there's no `window.location`, so fall back to\n // a stable identifier the user can recognize. Apps can override\n // entirely via `config.appIdentity.uri`.\n const fallbackUri = hasDOM\n ? getPlatform().getLocationOrigin()\n : 'bounded://app';\n this.appIdentity = config.appIdentity || {\n name: 'Bounded App',\n uri: fallbackUri,\n };\n this.cluster = (_a = config.cluster) !== null && _a !== void 0 ? _a : '';\n // Hydrate cached MWA auth_token from storage on native so we can\n // skip the wallet-pick popup after a cold-start when the underlying\n // wallet authorization is still valid. Sync storage call per the\n // PlatformAdapter contract; safe to swallow read errors (a fresh\n // login() just re-authorizes).\n if (!hasDOM) {\n try {\n const raw = getPlatform().storage.getItem(MWA_AUTH_TOKEN_STORAGE_KEY);\n if (raw) {\n const parsed = JSON.parse(raw);\n if (typeof parsed.token === 'string' && typeof parsed.address === 'string') {\n this.nativeAuthToken = parsed.token;\n this.nativeAddress = parsed.address;\n }\n }\n }\n catch (_b) {\n // Corrupt or unreadable cache — ignore. login() will re-auth.\n }\n }\n SolanaMobileWalletProvider.instance = this;\n }\n static getInstance(networkUrl, config, configuredNetwork = null) {\n if (!SolanaMobileWalletProvider.instance) {\n new SolanaMobileWalletProvider(networkUrl, config, configuredNetwork);\n }\n return SolanaMobileWalletProvider.instance;\n }\n /** Lazy-construct LocalSolanaMobileWalletAdapterWallet on first need. */\n async ensureWallet() {\n if (this.wallet)\n return this.wallet;\n const mod = await import('@solana-mobile/wallet-standard-mobile');\n const chain = mapChainToWalletStandard(this.cluster);\n this.wallet = new mod.LocalSolanaMobileWalletAdapterWallet({\n appIdentity: this.appIdentity,\n authorizationCache: mod.createDefaultAuthorizationCache(),\n chains: [chain],\n chainSelector: mod.createDefaultChainSelector(),\n // Suppress the default \"We can't find a wallet\" modal — that\n // modal is misleading when ERROR_WALLET_NOT_FOUND fires during\n // a first-time-consent race on Seeker (the wallet IS installed,\n // the protocol just gave up before the user finished consenting).\n // login()'s withMwaAssociationRetry handles this case; on second\n // failure it surfaces a clean error message to the host app.\n onWalletNotFound: async () => {\n // intentional no-op\n },\n });\n return this.wallet;\n }\n /**\n * Ensure the wallet has an active authorization. After a Bounded session\n * is restored from storage on cold-start, `wallet.accounts` is empty until\n * we silently reconnect from the AuthorizationCache. If the cache is also\n * empty, fall back to interactive `login()` (which surfaces the three-stage\n * Solana Mobile LNA flow + wallet popups).\n *\n * Returns the wallet-standard `WalletAccount` to use for sign operations.\n */\n async ensureAuthorized() {\n const wallet = await this.ensureWallet();\n if (wallet.accounts.length === 0) {\n try {\n const connectFeat = getConnectFeature(wallet);\n await connectFeat.connect({ silent: true });\n }\n catch (e) {\n console.warn('[SolanaMobileWallet] silent connect failed:', e === null || e === void 0 ? void 0 : e.message);\n }\n }\n if (wallet.accounts.length === 0) {\n const user = await this.login();\n if (!user)\n throw new Error('MWA not connected');\n }\n return wallet.accounts[0];\n }\n /** Returns the active wallet-standard chain identifier (e.g. 'solana:mainnet'). */\n getChain(network) {\n if (network) {\n return resolveSolanaWalletStandardChain(network, \"Solana mobile wallet transaction\");\n }\n if (this.configuredNetwork) {\n return resolveSolanaWalletStandardChain(this.configuredNetwork, \"Solana mobile wallet transaction\");\n }\n return mapChainToWalletStandard(this.cluster);\n }\n /**\n * Dynamically import and unwrap `transact` from the MWA web3js\n * package. The package is externalized in rollup.config.js so this\n * resolves to `lib/cjs/index.native.js` (TurboModule-backed) on\n * Metro and `lib/esm/index.browser.js` (WebSocket) on webpack/vite\n * per their respective platform conditions. Handles Metro's CJS-to-\n * ESM interop variance (`mod.transact` vs `mod.default?.transact`).\n */\n async loadTransact() {\n var _a;\n const mod = await import('@solana-mobile/mobile-wallet-adapter-protocol-web3js');\n const t = mod.transact || ((_a = mod.default) === null || _a === void 0 ? void 0 : _a.transact);\n if (typeof t !== 'function') {\n throw new Error('MWA transact API not available on this platform');\n }\n return t;\n }\n /**\n * Cache and persist a fresh MWA auth_token + address. Called from\n * `_loginNative` after a successful authorize. Storage failures are\n * non-fatal (next cold-start re-auths).\n */\n persistNativeAuth(token, address) {\n this.nativeAuthToken = token;\n this.nativeAddress = address;\n try {\n getPlatform().storage.setItem(MWA_AUTH_TOKEN_STORAGE_KEY, JSON.stringify({ token, address }));\n }\n catch (_a) {\n // non-fatal — token still in-memory for this process\n }\n }\n /** Clear cached + persisted native auth state. */\n clearNativeAuth() {\n this.nativeAuthToken = null;\n this.nativeAddress = null;\n try {\n getPlatform().storage.removeItem(MWA_AUTH_TOKEN_STORAGE_KEY);\n }\n catch (_a) {\n // ignore\n }\n }\n /**\n * Classify an MWA-native error as a user cancellation. User-cancel\n * shouldn't surface as a red console.error; callers can swallow or\n * show a softer message. MWA spec codes plus the same substring\n * checks the web path uses to catch wallet-specific phrasing.\n */\n isNativeUserCancel(err) {\n var _a;\n if (!err)\n return false;\n const code = err.code;\n if (code === 'ERROR_NOT_SIGNED')\n return true;\n const msg = String((_a = err.message) !== null && _a !== void 0 ? _a : '').toLowerCase();\n return /user (rejected|denied|cancelled|canceled|declined)/.test(msg);\n }\n /**\n * Native MWA login via @solana-mobile/mobile-wallet-adapter-protocol-web3js.\n * Used in true React Native (Expo) environments where wallet-standard-mobile's\n * web universal-link path doesn't apply. Does authorize + signMessage in a\n * single transact() roundtrip — intent-based MWA doesn't need the two-popup\n * dance the web path uses (no Chrome activation-loss concern). Persists the\n * resulting auth_token so cold-start can reauthorize without a fresh popup.\n */\n async _loginNative() {\n const transact = await this.loadTransact();\n const existingSession = await SessionManager().getSession();\n const nonce = await genAuthNonce();\n const result = await transact(async (wallet) => {\n const auth = await wallet.authorize({\n chain: this.getChain(),\n identity: this.appIdentity,\n });\n if (!auth.accounts || auth.accounts.length === 0) {\n throw new Error('MWA returned no accounts');\n }\n const account = auth.accounts[0];\n // account.address is base64-encoded per MWA spec; convert to\n // the base58 form Bounded + the rest of the SDK use.\n const base58Addr = new PublicKey(Buffer.from(account.address, 'base64')).toBase58();\n // Reuse session if already valid for this address — skip the\n // signMessages roundtrip entirely.\n if (existingSession && existingSession.address === base58Addr) {\n return {\n base58Addr,\n authToken: auth.auth_token,\n signatureBase64: null,\n };\n }\n const messageText = await genSolanaMessage(base58Addr, nonce);\n const messageBytes = getPlatform().textEncode(messageText);\n const signatures = await wallet.signMessages({\n addresses: [account.address],\n payloads: [messageBytes],\n });\n if (!signatures || signatures.length === 0) {\n throw new Error('MWA returned no signature');\n }\n // Per spec, signMessages returns Uint8Array[] of signatures\n // (one per payload), not message+signature concatenations.\n const signatureBase64 = Buffer.from(signatures[0]).toString('base64');\n return {\n base58Addr,\n authToken: auth.auth_token,\n signatureBase64,\n messageText,\n };\n });\n this.persistNativeAuth(result.authToken, result.base58Addr);\n // Existing valid session — short-circuit before re-creating server-side.\n if (existingSession && existingSession.address === result.base58Addr) {\n const user = { provider: this, address: result.base58Addr };\n setCurrentUser(user);\n return user;\n }\n // Create Bounded session on the server.\n if (!result.signatureBase64 || !result.messageText) {\n throw new Error('MWA login completed without signature');\n }\n const createSessionResult = await createSessionWithSignature(result.base58Addr, result.messageText, result.signatureBase64);\n await SessionManager().storeSession(result.base58Addr, createSessionResult.accessToken, createSessionResult.idToken, createSessionResult.refreshToken);\n const user = { provider: this, address: result.base58Addr };\n setCurrentUser(user);\n return user;\n }\n async login() {\n var _a, _b, _c, _d, _e;\n setAuthLoading(true);\n // Mark the auth method early so a concurrent Phantom auto-create-session\n // effect (see phantom-wallet-provider) sees 'mobile-wallet-adapter'\n // during our slow connect/sign roundtrip and backs off. Capture the\n // previous value so we can restore it if login fails.\n const prevAuthMethod = readAuthMethod();\n writeAuthMethod(MWA_AUTH_METHOD);\n try {\n // True React Native: skip the wallet-standard-mobile path (which\n // requires window.isSecureContext and a real DOM) and use the raw\n // MWA protocol via Android intents.\n if (!getPlatform().hasDOM) {\n const user = await this._loginNative();\n return user;\n }\n const wallet = await this.ensureWallet();\n // Quick-check: wallet may already have authorization (e.g. from a\n // previous in-page login) and a matching Bounded session — skip\n // popups in that case.\n if (wallet.accounts.length > 0) {\n const accountPubkey = new PublicKey(wallet.accounts[0].publicKey);\n const base58Addr = accountPubkey.toBase58();\n const existingSession = await SessionManager().getSession();\n if (existingSession && existingSession.address === base58Addr) {\n const user = { provider: this, address: base58Addr };\n setCurrentUser(user);\n return user;\n }\n }\n // Wallet popup #1: standard:connect performs MWA authorize. This\n // is where wallet-standard's checkLocalNetworkAccessPermission()\n // fires the three-stage LNA UX (info modal → permission prompt →\n // success modal) before opening the localhost WebSocket.\n //\n // Wrap with single-retry: on a Seeker origin's first MWA usage,\n // the protocol's session-establishment timer often races Seeker's\n // first-time consent UI and throws ERROR_WALLET_NOT_FOUND before\n // the user finishes tapping. The retry hits Seeker's cached\n // consent on the second pass and completes quickly. See\n // withMwaAssociationRetry for details.\n const connectFeat = getConnectFeature(wallet);\n const { accounts } = await withMwaAssociationRetry(() => connectFeat.connect());\n if (!accounts || accounts.length === 0) {\n throw new Error('MWA returned no accounts');\n }\n const account = accounts[0];\n const accountPubkey = new PublicKey(account.publicKey);\n const base58Addr = accountPubkey.toBase58();\n // If we happen to already have a matching Bounded session, reuse it.\n const existingSession = await SessionManager().getSession();\n if (existingSession && existingSession.address === base58Addr) {\n const user = { provider: this, address: base58Addr };\n setCurrentUser(user);\n return user;\n }\n // Wallet popup #2: sign the Bounded nonce message.\n //\n // We cannot call signMessageFeat.signMessage() directly here:\n // it would run as a JS continuation from the connect() resolve,\n // with no fresh Chrome transient user activation. The wallet-\n // standard sign path internally dispatches a new solana-wallet:\n // Android intent via window.location.assign() (see\n // @solana-mobile/mobile-wallet-adapter-protocol launchAssociation\n // at lib/cjs/index.browser.js:459). Chrome blocks the assign\n // without activation, the blur event never fires, and the\n // protocol's 3-second getDetectionPromise rejects with\n // ERROR_WALLET_NOT_FOUND.\n //\n // Insert a Bounded modal: the user's tap on \"Sign in\" provides a\n // fresh activation, and signMessage is invoked synchronously\n // inside the click handler so the activation propagates.\n // C1: fetch the nonce HERE (after connect), not before — a pre-connect\n // network round-trip was decaying the Chrome user activation needed for\n // the connect's solana-wallet: navigation, intermittently causing\n // ERROR_WALLET_NOT_FOUND. The nonce is only needed for the message below.\n const nonce = await genAuthNonce();\n const messageText = await genSolanaMessage(base58Addr, nonce);\n const messageBytes = getPlatform().textEncode(messageText);\n const signMessageFeat = getSignMessageFeature(wallet);\n const signResult = await awaitSignInGestureAndSign(this.config.theme, () => signMessageFeat.signMessage({ account, message: messageBytes }));\n if (!signResult) {\n throw new Error('MWA returned no signature');\n }\n const { signature: sigBytes } = signResult;\n const signatureBase64 = Buffer.from(sigBytes).toString('base64');\n // Create Bounded session on the server.\n const createSessionResult = await createSessionWithSignature(base58Addr, messageText, signatureBase64);\n await SessionManager().storeSession(base58Addr, createSessionResult.accessToken, createSessionResult.idToken, createSessionResult.refreshToken);\n // Auth-method marker is already 'mobile-wallet-adapter' from above.\n const user = { provider: this, address: base58Addr };\n setCurrentUser(user);\n return user;\n }\n catch (error) {\n // Restore the previous auth-method marker since this login attempt failed.\n writeAuthMethod(prevAuthMethod);\n const isUserRejection = (error === null || error === void 0 ? void 0 : error.code) === 4001 ||\n ((_a = error === null || error === void 0 ? void 0 : error.message) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes('user rejected')) ||\n ((_b = error === null || error === void 0 ? void 0 : error.message) === null || _b === void 0 ? void 0 : _b.toLowerCase().includes('user denied')) ||\n ((_c = error === null || error === void 0 ? void 0 : error.message) === null || _c === void 0 ? void 0 : _c.toLowerCase().includes('user cancelled')) ||\n ((_d = error === null || error === void 0 ? void 0 : error.message) === null || _d === void 0 ? void 0 : _d.toLowerCase().includes('user canceled')) ||\n ((_e = error === null || error === void 0 ? void 0 : error.message) === null || _e === void 0 ? void 0 : _e.toLowerCase().includes('user declined'));\n if (!isUserRejection) {\n console.error('[SolanaMobileWallet] Login failed:', error);\n }\n throw error;\n }\n finally {\n setAuthLoading(false);\n }\n }\n async restoreSession() {\n const session = await SessionManager().getSession();\n if (session) {\n return { provider: this, address: session.address };\n }\n return null;\n }\n async logout() {\n if (!getPlatform().hasDOM) {\n // Native path: deauthorize the cached MWA auth_token if we have\n // one (failures non-fatal — the wallet app may have been\n // uninstalled or the token already revoked), then clear local\n // and persisted state.\n const token = this.nativeAuthToken;\n if (token) {\n try {\n const transact = await this.loadTransact();\n await transact(async (wallet) => {\n await wallet.deauthorize({ auth_token: token });\n });\n }\n catch (error) {\n console.warn('[SolanaMobileWallet] Native deauthorize error:', error);\n }\n }\n this.clearNativeAuth();\n SessionManager().clearSession();\n writeAuthMethod(null);\n setCurrentUser(null);\n return;\n }\n try {\n const wallet = await this.ensureWallet();\n const disconnectFeat = getDisconnectFeature(wallet);\n if (disconnectFeat) {\n // Disconnect clears the AuthorizationCache and resets\n // wallet.#authorization internally (no LNA dialog).\n await disconnectFeat.disconnect();\n }\n }\n catch (error) {\n console.error('[SolanaMobileWallet] Disconnect error:', error);\n }\n SessionManager().clearSession();\n // Clear the auth-method marker so Phantom auto-create is unblocked\n // for any subsequent fresh login on this device.\n writeAuthMethod(null);\n setCurrentUser(null);\n }\n async signMessage(message) {\n var _a, _b, _c;\n // Native: reauthorize with cached auth_token, then signMessages inside\n // the same transact() session. No wallet-pick popup if the auth_token\n // is still valid for the user's wallet.\n if (!getPlatform().hasDOM) {\n if (!this.nativeAuthToken || !this.nativeAddress) {\n throw new Error('Wallet not connected. Call login() first.');\n }\n const transact = await this.loadTransact();\n const messageBytes = getPlatform().textEncode(message);\n const addressBase64 = new PublicKey(this.nativeAddress).toBuffer().toString('base64');\n const authToken = this.nativeAuthToken;\n try {\n const signature = await transact(async (wallet) => {\n await wallet.reauthorize({ auth_token: authToken, identity: this.appIdentity });\n const sigs = await wallet.signMessages({\n addresses: [addressBase64],\n payloads: [messageBytes],\n });\n if (!sigs || sigs.length === 0)\n throw new Error('MWA returned no signature');\n return sigs[0];\n });\n return Buffer.from(signature).toString('base64');\n }\n catch (error) {\n if (this.isNativeUserCancel(error)) {\n throw new Error('User declined to sign');\n }\n if ((error === null || error === void 0 ? void 0 : error.code) === 'ERROR_AUTHORIZATION_FAILED' || (error === null || error === void 0 ? void 0 : error.code) === 'ERROR_REAUTHORIZE') {\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n throw new Error(`Failed to sign message: ${(_a = error === null || error === void 0 ? void 0 : error.message) !== null && _a !== void 0 ? _a : error}`);\n }\n }\n const account = await this.ensureAuthorized();\n const wallet = await this.ensureWallet();\n try {\n const signMessageFeat = getSignMessageFeature(wallet);\n const messageBytes = getPlatform().textEncode(message);\n const results = await signMessageFeat.signMessage({ account, message: messageBytes });\n if (!results || results.length === 0) {\n throw new Error('MWA returned no signature');\n }\n const { signature: sigBytes } = results[0];\n return Buffer.from(sigBytes).toString('base64');\n }\n catch (error) {\n if (((_b = error === null || error === void 0 ? void 0 : error.message) === null || _b === void 0 ? void 0 : _b.includes('not connected')) || ((_c = error === null || error === void 0 ? void 0 : error.message) === null || _c === void 0 ? void 0 : _c.includes('not authorized')) ||\n (error === null || error === void 0 ? void 0 : error.code) === 'ERROR_AUTHORIZATION_FAILED') {\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n throw new Error(`Failed to sign message: ${error.message}`);\n }\n }\n async signTransaction(transaction) {\n var _a, _b, _c;\n // Native: fill blockhash/feePayer if missing, then signTransactions\n // inside a transact() session keyed by the cached auth_token.\n if (!getPlatform().hasDOM) {\n if (!this.nativeAuthToken || !this.nativeAddress) {\n throw new Error('Wallet not connected. Call login() first.');\n }\n const connectedPubkey = new PublicKey(this.nativeAddress);\n const isLegacyTransaction = 'recentBlockhash' in transaction && !('message' in transaction && 'staticAccountKeys' in transaction.message);\n if (isLegacyTransaction) {\n const legacyTx = transaction;\n if (!legacyTx.recentBlockhash) {\n const conn = new Connection(this.getRpcUrl(), 'confirmed');\n const { blockhash, lastValidBlockHeight } = await conn.getLatestBlockhash('confirmed');\n legacyTx.recentBlockhash = blockhash;\n legacyTx.lastValidBlockHeight = lastValidBlockHeight;\n }\n if (!legacyTx.feePayer) {\n legacyTx.feePayer = connectedPubkey;\n }\n }\n else {\n const versionedTx = transaction;\n if (!versionedTx.message.recentBlockhash) {\n const conn = new Connection(this.getRpcUrl(), 'confirmed');\n const { blockhash } = await conn.getLatestBlockhash('confirmed');\n versionedTx.message.recentBlockhash = blockhash;\n }\n }\n const transact = await this.loadTransact();\n const authToken = this.nativeAuthToken;\n try {\n const signed = await transact(async (wallet) => {\n await wallet.reauthorize({ auth_token: authToken, identity: this.appIdentity });\n const results = await wallet.signTransactions({ transactions: [transaction] });\n if (!results || results.length === 0)\n throw new Error('MWA returned no signed transaction');\n return results[0];\n });\n return signed;\n }\n catch (error) {\n if (this.isNativeUserCancel(error)) {\n throw new Error('User declined to sign');\n }\n if ((error === null || error === void 0 ? void 0 : error.code) === 'ERROR_AUTHORIZATION_FAILED' || (error === null || error === void 0 ? void 0 : error.code) === 'ERROR_REAUTHORIZE') {\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n throw new Error(`Failed to sign transaction: ${(_a = error === null || error === void 0 ? void 0 : error.message) !== null && _a !== void 0 ? _a : error}`);\n }\n }\n const account = await this.ensureAuthorized();\n const connectedPubkey = new PublicKey(account.publicKey);\n const wallet = await this.ensureWallet();\n const chain = this.getChain();\n // Preserve existing prep: fill missing blockhash / fee payer so call\n // sites that build a tx without these fields don't regress.\n const isLegacyTransaction = 'recentBlockhash' in transaction && !('message' in transaction && 'staticAccountKeys' in transaction.message);\n if (isLegacyTransaction) {\n const legacyTx = transaction;\n if (!legacyTx.recentBlockhash) {\n const conn = new Connection(this.getRpcUrl(), 'confirmed');\n const { blockhash, lastValidBlockHeight } = await conn.getLatestBlockhash('confirmed');\n legacyTx.recentBlockhash = blockhash;\n legacyTx.lastValidBlockHeight = lastValidBlockHeight;\n }\n if (!legacyTx.feePayer) {\n legacyTx.feePayer = connectedPubkey;\n }\n }\n else {\n const versionedTx = transaction;\n if (!versionedTx.message.recentBlockhash) {\n const conn = new Connection(this.getRpcUrl(), 'confirmed');\n const { blockhash } = await conn.getLatestBlockhash('confirmed');\n versionedTx.message.recentBlockhash = blockhash;\n }\n }\n try {\n const signTxFeat = getSignTransactionFeature(wallet);\n const wireBytes = txToWireBytes(transaction);\n // signTransaction navigates to `solana-wallet:`; only show the\n // gesture modal if the tap activation has decayed (see runTransaction).\n const signResult = await signWithFreshActivation(this.config.theme, () => signTxFeat.signTransaction({ account, transaction: wireBytes, chain }), 'MWA returned no signed transaction');\n const { signedTransaction: signedBytes } = signResult;\n return txFromWireBytes(new Uint8Array(signedBytes));\n }\n catch (error) {\n if (((_b = error === null || error === void 0 ? void 0 : error.message) === null || _b === void 0 ? void 0 : _b.includes('not connected')) || ((_c = error === null || error === void 0 ? void 0 : error.message) === null || _c === void 0 ? void 0 : _c.includes('not authorized')) ||\n (error === null || error === void 0 ? void 0 : error.code) === 'ERROR_AUTHORIZATION_FAILED') {\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n throw new Error(`Failed to sign transaction: ${error.message}`);\n }\n }\n async signAndSubmitTransaction(transaction, feePayer) {\n var _a, _b, _c, _d, _e, _f, _g;\n // Native: signAndSendTransactions inside a transact() session.\n // The wallet submits to its own RPC; we then await confirmation on\n // ours. Surfnet (custom RPC) needs manual submission because the\n // wallet won't route there — we fall back to sign-only + manual send.\n if (!getPlatform().hasDOM) {\n if (!this.nativeAuthToken || !this.nativeAddress) {\n throw new Error('Wallet not connected. Call login() first.');\n }\n const connectedPubkey = new PublicKey(this.nativeAddress);\n const rpcUrl = this.getRpcUrl();\n const connection = new Connection(rpcUrl, 'confirmed');\n const isSurfnet = rpcUrl === SURFNET_RPC_URL;\n const { blockhash, lastValidBlockHeight } = await connection.getLatestBlockhash('confirmed');\n const isLegacyTransaction = 'recentBlockhash' in transaction && !('message' in transaction && 'staticAccountKeys' in transaction.message);\n if (isLegacyTransaction) {\n const legacyTx = transaction;\n legacyTx.recentBlockhash = blockhash;\n legacyTx.lastValidBlockHeight = lastValidBlockHeight;\n if (!legacyTx.feePayer)\n legacyTx.feePayer = feePayer !== null && feePayer !== void 0 ? feePayer : connectedPubkey;\n }\n else {\n const versionedTx = transaction;\n versionedTx.message.recentBlockhash = blockhash;\n }\n const transact = await this.loadTransact();\n const authToken = this.nativeAuthToken;\n try {\n if (isSurfnet) {\n // Surfnet: sign only, submit manually to Surfnet RPC\n // (the wallet would route signAndSend to its own RPC).\n const signed = await transact(async (wallet) => {\n await wallet.reauthorize({ auth_token: authToken, identity: this.appIdentity });\n const results = await wallet.signTransactions({ transactions: [transaction] });\n if (!results || results.length === 0)\n throw new Error('MWA returned no signed transaction');\n return results[0];\n });\n const sig = await connection.sendRawTransaction(signed.serialize(), { preflightCommitment: 'confirmed' });\n await confirmAndCheckTransaction(connection, sig);\n return sig;\n }\n const sig = await transact(async (wallet) => {\n await wallet.reauthorize({ auth_token: authToken, identity: this.appIdentity });\n const results = await wallet.signAndSendTransactions({ transactions: [transaction] });\n if (!results || results.length === 0)\n throw new Error('MWA returned no signature');\n return results[0];\n });\n await confirmAndCheckTransaction(connection, sig);\n return sig;\n }\n catch (error) {\n if (this.isNativeUserCancel(error)) {\n throw new Error('User declined to sign');\n }\n if ((error === null || error === void 0 ? void 0 : error.code) === 'ERROR_AUTHORIZATION_FAILED' || (error === null || error === void 0 ? void 0 : error.code) === 'ERROR_REAUTHORIZE') {\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n throw new Error(`Failed to sign+submit transaction: ${(_a = error === null || error === void 0 ? void 0 : error.message) !== null && _a !== void 0 ? _a : error}`);\n }\n }\n const account = await this.ensureAuthorized();\n const connectedPubkey = new PublicKey(account.publicKey);\n const wallet = await this.ensureWallet();\n const chain = this.getChain();\n const rpcUrl = this.getRpcUrl();\n const connection = new Connection(rpcUrl, 'confirmed');\n const isSurfnet = rpcUrl === SURFNET_RPC_URL;\n try {\n // Preserve existing prep: refresh blockhash and set fee payer.\n const { blockhash, lastValidBlockHeight } = await connection.getLatestBlockhash('confirmed');\n const isLegacyTransaction = 'recentBlockhash' in transaction && !('message' in transaction && 'staticAccountKeys' in transaction.message);\n if (isLegacyTransaction) {\n const legacyTx = transaction;\n legacyTx.recentBlockhash = blockhash;\n legacyTx.lastValidBlockHeight = lastValidBlockHeight;\n if (!legacyTx.feePayer) {\n legacyTx.feePayer = feePayer !== null && feePayer !== void 0 ? feePayer : connectedPubkey;\n }\n }\n else {\n const versionedTx = transaction;\n versionedTx.message.recentBlockhash = blockhash;\n }\n if (isSurfnet) {\n // Surfnet: sign locally via wallet-standard, submit manually\n // to the Surfnet RPC. Don't route through signAndSendTransaction\n // because the wallet would submit to its own RPC.\n const signTxFeat = getSignTransactionFeature(wallet);\n const wireBytes = txToWireBytes(transaction);\n // Gesture modal only if activation decayed (see runTransaction).\n const signResult = await signWithFreshActivation(this.config.theme, () => signTxFeat.signTransaction({ account, transaction: wireBytes, chain }), 'MWA returned no signed transaction');\n const { signedTransaction: signedBytes } = signResult;\n const signedTx = txFromWireBytes(new Uint8Array(signedBytes));\n const signature = await connection.sendRawTransaction(signedTx.serialize(), {\n preflightCommitment: 'confirmed',\n });\n const confirmation = await connection.confirmTransaction({\n signature,\n blockhash,\n lastValidBlockHeight,\n }, 'confirmed');\n if (confirmation.value.err) {\n throw new Error(`Transaction failed: ${confirmation.value.err.toString()}`);\n }\n return signature;\n }\n // Non-Surfnet: wallet signs and submits to its own RPC.\n // Gesture modal only if activation decayed (see runTransaction).\n const signSendFeat = getSignAndSendTransactionFeature(wallet);\n const wireBytes = txToWireBytes(transaction);\n const sendResult = await signWithFreshActivation(this.config.theme, () => signSendFeat.signAndSendTransaction({\n account,\n transaction: wireBytes,\n chain,\n options: { commitment: 'confirmed' },\n }));\n const { signature: sigBytes } = sendResult;\n const signature = bs58.encode(sigBytes);\n await confirmAndCheckTransaction(connection, signature);\n return signature;\n }\n catch (error) {\n if (((_b = error === null || error === void 0 ? void 0 : error.message) === null || _b === void 0 ? void 0 : _b.includes('not connected')) || ((_c = error === null || error === void 0 ? void 0 : error.message) === null || _c === void 0 ? void 0 : _c.includes('not authorized')) ||\n (error === null || error === void 0 ? void 0 : error.code) === 'ERROR_AUTHORIZATION_FAILED') {\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n const isUserRejection = (error === null || error === void 0 ? void 0 : error.code) === 4001 ||\n ((_d = error === null || error === void 0 ? void 0 : error.message) === null || _d === void 0 ? void 0 : _d.toLowerCase().includes('user rejected')) ||\n ((_e = error === null || error === void 0 ? void 0 : error.message) === null || _e === void 0 ? void 0 : _e.toLowerCase().includes('user denied')) ||\n ((_f = error === null || error === void 0 ? void 0 : error.message) === null || _f === void 0 ? void 0 : _f.toLowerCase().includes('user cancelled')) ||\n ((_g = error === null || error === void 0 ? void 0 : error.message) === null || _g === void 0 ? void 0 : _g.toLowerCase().includes('user canceled'));\n if (!isUserRejection) {\n console.error('[SolanaMobileWallet] Transaction failed:', error);\n }\n throw new Error(`Failed to execute transaction: ${error.message}`);\n }\n }\n async runTransaction(_evmTransactionData, solTransactionData, options) {\n var _a, _b, _c, _d, _e, _f, _g, _h;\n if (!solTransactionData) {\n throw new Error('Solana transaction data is required for mobile wallet');\n }\n const account = await this.ensureAuthorized();\n const connectedPubkey = new PublicKey(account.publicKey);\n const wallet = await this.ensureWallet();\n const chain = this.getChain(solTransactionData.network);\n const rpcUrl = this.getRpcUrl(solTransactionData.network);\n const connection = new Connection(rpcUrl, 'confirmed');\n const isSurfnet = rpcUrl === SURFNET_RPC_URL;\n try {\n const remainingAccounts = convertRemainingAccounts(solTransactionData.txArgs[0].remainingAccounts);\n const app_id = solTransactionData.appId;\n if (!app_id) {\n throw new Error('App ID is required');\n }\n // Mock wallet adapter for Anchor — only publicKey is read during build.\n const mockWalletAdapter = {\n publicKey: connectedPubkey,\n signTransaction: async (tx) => tx,\n signAllTransactions: async (txs) => txs,\n };\n const anchorProvider = new anchor.AnchorProvider(connection, mockWalletAdapter, anchor.AnchorProvider.defaultOptions());\n const finalDeduped = [];\n for (const acc of remainingAccounts) {\n const existing = finalDeduped.find((d) => d.pubkey.equals(acc.pubkey));\n if (existing) {\n existing.isSigner = existing.isSigner || acc.isSigner;\n existing.isWritable = existing.isWritable || acc.isWritable;\n }\n else {\n finalDeduped.push(acc);\n }\n }\n let tx;\n if (solTransactionData.signedTransaction) {\n // Server has co-signed a CPI attestation. Do NOT mutate its\n // blockhash — that would invalidate the server's signature.\n tx = VersionedTransaction.deserialize(Buffer.from(solTransactionData.signedTransaction, 'base64'));\n }\n else {\n const result = await buildSetDocumentsTransaction(connection, solTransactionData.txArgs[0].idl, anchorProvider, connectedPubkey, {\n app_id,\n documents: solTransactionData.txArgs[0].setDocumentData,\n delete_paths: solTransactionData.txArgs[0].deletePaths,\n txData: solTransactionData.txArgs[0].txData\n }, finalDeduped, solTransactionData.lutKey, solTransactionData.preInstructions, false, solTransactionData.additionalLutAddresses);\n tx = result.tx;\n }\n // Sign-only branch — sign the tx but don't submit.\n if ((options === null || options === void 0 ? void 0 : options.shouldSubmitTx) === false) {\n const signTxFeat = getSignTransactionFeature(wallet);\n const wireBytes = txToWireBytes(tx);\n // signTransaction also navigates to `solana-wallet:`; only\n // surface the gesture modal if the tap activation has decayed.\n const signOnlyResult = await signWithFreshActivation(this.config.theme, () => signTxFeat.signTransaction({ account, transaction: wireBytes, chain }), 'MWA returned no signed transaction');\n if (!signOnlyResult) {\n throw new Error('MWA returned no signed transaction');\n }\n const { signedTransaction: signedBytes } = signOnlyResult;\n const signedTx = txFromWireBytes(new Uint8Array(signedBytes));\n return {\n signedTransaction: signedTx,\n blockNumber: 0,\n gasUsed: '0',\n data: ''\n };\n }\n if (isSurfnet) {\n // Surfnet: sign locally via wallet-standard, submit manually.\n const signTxFeat = getSignTransactionFeature(wallet);\n const wireBytes = txToWireBytes(tx);\n // signTransaction also navigates to `solana-wallet:`; only\n // surface the gesture modal if the tap activation has decayed.\n const surfnetResult = await signWithFreshActivation(this.config.theme, () => signTxFeat.signTransaction({ account, transaction: wireBytes, chain }), 'MWA returned no signed transaction');\n if (!surfnetResult) {\n throw new Error('MWA returned no signed transaction');\n }\n const { signedTransaction: signedBytes } = surfnetResult;\n const signedTx = txFromWireBytes(new Uint8Array(signedBytes));\n const { blockhash, lastValidBlockHeight } = await connection.getLatestBlockhash('confirmed');\n const signature = await connection.sendRawTransaction(signedTx.serialize(), {\n preflightCommitment: 'confirmed',\n });\n const confirmation = await connection.confirmTransaction({\n signature,\n blockhash,\n lastValidBlockHeight,\n }, 'confirmed');\n if (confirmation.value.err) {\n throw new Error(`Transaction failed: ${confirmation.value.err.toString()}`);\n }\n const txInfo = await connection.getParsedTransaction(signature, {\n maxSupportedTransactionVersion: 0,\n commitment: 'confirmed',\n });\n return {\n transactionSignature: signature,\n blockNumber: (txInfo === null || txInfo === void 0 ? void 0 : txInfo.slot) || 0,\n gasUsed: ((_a = txInfo === null || txInfo === void 0 ? void 0 : txInfo.meta) === null || _a === void 0 ? void 0 : _a.fee.toString()) || '0',\n data: txInfo === null || txInfo === void 0 ? void 0 : txInfo.meta,\n };\n }\n // Non-Surfnet: wallet signs and submits to its own RPC.\n // signAndSendTransaction dispatches a `solana-wallet:` navigation\n // that Chrome blocks without transient user activation. Fast txs\n // still hold the tap activation and navigate directly; slow ones\n // (e.g. a swap whose server build exceeds Chrome's ~5s window)\n // have lost it, so signWithFreshActivation shows the \"Sign in\"\n // modal to mint a fresh activation — no modal when not needed.\n const signSendFeat = getSignAndSendTransactionFeature(wallet);\n const wireBytes = txToWireBytes(tx);\n const sendResult = await signWithFreshActivation(this.config.theme, () => signSendFeat.signAndSendTransaction({\n account,\n transaction: wireBytes,\n chain,\n options: { commitment: 'confirmed' },\n }));\n if (!sendResult) {\n throw new Error('MWA returned no signature');\n }\n const { signature: sigBytes } = sendResult;\n const signature = bs58.encode(sigBytes);\n const txInfo = await confirmAndCheckTransaction(connection, signature);\n return {\n transactionSignature: signature,\n blockNumber: (txInfo === null || txInfo === void 0 ? void 0 : txInfo.slot) || 0,\n gasUsed: ((_b = txInfo === null || txInfo === void 0 ? void 0 : txInfo.meta) === null || _b === void 0 ? void 0 : _b.fee.toString()) || '0',\n data: txInfo === null || txInfo === void 0 ? void 0 : txInfo.meta,\n };\n }\n catch (error) {\n if (((_c = error === null || error === void 0 ? void 0 : error.message) === null || _c === void 0 ? void 0 : _c.includes('not connected')) || ((_d = error === null || error === void 0 ? void 0 : error.message) === null || _d === void 0 ? void 0 : _d.includes('not authorized')) ||\n (error === null || error === void 0 ? void 0 : error.code) === 'ERROR_AUTHORIZATION_FAILED') {\n await this.logout();\n throw new Error('Wallet connection lost. Please reconnect.');\n }\n const isUserRejection = (error === null || error === void 0 ? void 0 : error.code) === 4001 ||\n ((_e = error === null || error === void 0 ? void 0 : error.message) === null || _e === void 0 ? void 0 : _e.toLowerCase().includes('user rejected')) ||\n ((_f = error === null || error === void 0 ? void 0 : error.message) === null || _f === void 0 ? void 0 : _f.toLowerCase().includes('user denied')) ||\n ((_g = error === null || error === void 0 ? void 0 : error.message) === null || _g === void 0 ? void 0 : _g.toLowerCase().includes('user cancelled')) ||\n ((_h = error === null || error === void 0 ? void 0 : error.message) === null || _h === void 0 ? void 0 : _h.toLowerCase().includes('user canceled'));\n if (!isUserRejection) {\n console.error('[SolanaMobileWallet] Transaction failed:', error);\n }\n throw new Error(`Failed to execute transaction: ${error.message}`);\n }\n }\n async getNativeMethods() {\n var _a, _b, _c;\n // Synchronous-ish state read; tolerate the wallet being unauthorized\n // (return nulls). Don't trigger ensureAuthorized() here — callers that\n // need the wallet active should sign through one of the sign methods.\n const wallet = this.wallet;\n if (!wallet) {\n return {\n authToken: null,\n walletUriBase: null,\n publicKey: null,\n base64Address: null,\n wallet: null,\n currentAuthorization: null,\n };\n }\n const acct = (_a = wallet.accounts) === null || _a === void 0 ? void 0 : _a[0];\n const auth = wallet.currentAuthorization;\n let publicKey = null;\n let base64Address = null;\n if (acct) {\n publicKey = new PublicKey(acct.publicKey);\n base64Address = btoa(String.fromCharCode(...acct.publicKey));\n }\n return {\n authToken: (_b = auth === null || auth === void 0 ? void 0 : auth.auth_token) !== null && _b !== void 0 ? _b : null,\n walletUriBase: (_c = auth === null || auth === void 0 ? void 0 : auth.wallet_uri_base) !== null && _c !== void 0 ? _c : null,\n publicKey,\n base64Address,\n wallet,\n currentAuthorization: auth !== null && auth !== void 0 ? auth : null,\n };\n }\n /* ----------------------------------------------------------- *\n * Private Helpers\n * ----------------------------------------------------------- */\n getRpcUrl(network) {\n var _a;\n return resolveSolanaRpcUrl(this.networkUrl, (_a = network !== null && network !== void 0 ? network : this.configuredNetwork) !== null && _a !== void 0 ? _a : mapClusterToRpcNetwork(this.cluster), \"Solana mobile wallet transaction\");\n }\n}\nSolanaMobileWalletProvider.instance = null;\n","import { getActiveSessionManager as SessionManager, createSessionWithSignature, genAuthNonce, genSolanaMessage, buildSetDocumentsTransaction, convertRemainingAccounts } from '@bounded-sh/core';\nimport { Buffer } from 'buffer';\nimport { setCurrentUser } from '../../global';\nimport { getPlatform } from '../../platform';\nimport { PublicKey, Connection, Transaction, VersionedTransaction } from '@solana/web3.js';\nimport * as anchor from '@coral-xyz/anchor';\nimport { normalizeSolanaRpcUrl, resolveSolanaRpcUrl, resolveSolanaWalletStandardChain, SURFNET_RPC_URL, } from '../solana-rpc';\nimport { confirmAndCheckTransaction } from './transaction-utils';\nimport bs58 from 'bs58';\n// React/react-dom are externalized peer deps (see rollup.config.js\n// sharedExternal / isExternal) — rollup emits these as bare ESM imports the\n// consumer's bundler resolves; they are NOT inlined. Static top-level ESM\n// imports (instead of a runtime require() behind a `typeof window` guard) so\n// the browser ESM bundle never evaluates `require`, which is undefined in a\n// production ESM/Vite build (it would throw ReferenceError at module eval).\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom/client';\n// @privy-io/react-auth(/solana) are OPTIONAL peer deps. They are loaded lazily\n// via dynamic import() rather than a static top-level import: a static import\n// would (a) in the ESM bundle still be a bare `import` the consumer resolves —\n// fine — but (b) in the CJS bundle become an eager top-level require() that\n// throws for any consumer who hasn't installed Privy (this module is pulled\n// into the entry via a static re-export). The lazy import keeps the browser\n// ESM bundle free of any runtime `require('@privy-io...')` AND lets a consumer\n// who never uses Privy load the package without it installed. Populated once\n// in `initialize()` (browser-only) before the Privy React tree renders.\nlet privyImports;\nlet privySolana;\nasync function loadPrivyModules() {\n if (privyImports && privySolana)\n return;\n [privyImports, privySolana] = await Promise.all([\n import('@privy-io/react-auth'),\n import('@privy-io/react-auth/solana'),\n ]);\n}\n// @solana/kit is an OPTIONAL wallet-only dep, used only to build the Privy\n// Solana RPC transports. Loaded lazily (like the Privy SDKs) via dynamic\n// import() rather than a static top-level import: a static import is hoisted by\n// rollup into the entry chunk, forcing every consumer (including vanilla,\n// non-wallet web apps) to have @solana/kit installed and eagerly require()d.\n// Deferring it here keeps it out of the entry bundle.\nlet solanaKit;\nasync function loadSolanaKit() {\n if (!solanaKit) {\n solanaKit = await import('@solana/kit');\n }\n return solanaKit;\n}\nfunction requirePrivyWalletConfig(privyConfig) {\n if (!privyConfig || typeof privyConfig.appId !== 'string' || privyConfig.appId.trim() === '') {\n throw new Error('Privy auth requires config.privyConfig.appId; no default Privy app is used.');\n }\n if (!privyConfig.config || typeof privyConfig.config !== 'object') {\n throw new Error('Privy auth requires config.privyConfig.config for the app-scoped Privy provider.');\n }\n return {\n appId: privyConfig.appId,\n config: privyConfig.config,\n };\n}\nexport class PrivyWalletProvider {\n constructor(appName, appLogoUrl, privyConfig, networkUrl = null, configuredNetwork = null) {\n this.containerElement = null;\n this.chainId = null;\n this.root = null;\n this.privyMethods = null;\n this.pendingLogin = null;\n // Resolved Solana RPC URLs (computed in the constructor; consumed in\n // initialize() where @solana/kit is lazily loaded to build the transports).\n this.configuredRpcUrl = null;\n // This is used to store the pending transaction until the wallet is connected for workaround for the wallet not being connected after login completion\n this.pendingTransaction = null;\n // This is used to store pending signTransaction calls until the wallet is connected\n this.pendingSignTransaction = null;\n // This is used to store pending signMessage calls until the wallet is connected\n this.pendingSignMessage = null;\n // This is used to store pending signAndSubmitTransaction calls until the wallet is connected\n this.pendingSignAndSubmitTransaction = null;\n this.networkUrl = normalizeSolanaRpcUrl(networkUrl);\n this.configuredNetwork = configuredNetwork;\n if (typeof window === 'undefined') {\n throw new Error('PrivyWalletProvider can only be instantiated in a browser environment');\n }\n const requiredPrivyConfig = requirePrivyWalletConfig(privyConfig);\n if (PrivyWalletProvider.instance) {\n return PrivyWalletProvider.instance;\n }\n this.containerElement = null;\n this.root = null;\n this.privyMethods = null;\n this.privyConfig = requiredPrivyConfig;\n if (!this.privyConfig.config.appearance) {\n this.privyConfig.config.appearance = {};\n }\n if (appName != null && appName != '' && !this.privyConfig.config.appearance.landingHeader) {\n this.privyConfig.config.appearance.landingHeader = appName;\n }\n if (appLogoUrl != null && appLogoUrl != '' && !this.privyConfig.config.appearance.logo) {\n this.privyConfig.config.appearance.logo = appLogoUrl;\n }\n // (externalWallets connectors are configured in initialize() once the\n // Privy SDK is lazily loaded — see loadPrivyModules.)\n // Resolve Solana RPC URLs for v3. The @solana/kit transports are built\n // lazily in initialize() so a non-Privy consumer never needs @solana/kit.\n if (this.networkUrl || configuredNetwork) {\n this.configuredRpcUrl = resolveSolanaRpcUrl(this.networkUrl, configuredNetwork, \"Privy Solana RPC\");\n }\n if (configuredNetwork) {\n this.chainId = resolveSolanaWalletStandardChain(configuredNetwork, \"Privy Solana transaction\");\n }\n const existingProviders = document.querySelectorAll('[data-privy-provider]');\n existingProviders.forEach(el => el.remove());\n // Fire-and-forget: initialize() lazily loads the Privy SDK then renders\n // the hidden React tree. privyMethods stays null until that render runs,\n // which the login/connect methods already wait for. Surface a clear error\n // if the optional @privy-io/react-auth peer dep isn't installed.\n this.initialize().catch((err) => {\n console.error('PrivyWalletProvider: failed to load @privy-io/react-auth — ensure it is installed to use Privy login.', err);\n });\n // Assign this instance to the static instance property\n PrivyWalletProvider.instance = this;\n }\n // Optional: Provide a static method to get the instance\n static getInstance(appName, appLogoUrl, privyConfig, networkUrl = null, configuredNetwork = null) {\n if (!PrivyWalletProvider.instance) {\n new PrivyWalletProvider(appName, appLogoUrl, privyConfig, networkUrl, configuredNetwork);\n }\n return PrivyWalletProvider.instance;\n }\n async initialize() {\n // Lazily load the Privy SDK (browser-only) before building the React tree.\n await loadPrivyModules();\n // Build the Solana RPC transports now that we're on the async path, so\n // @solana/kit can be lazily imported (kept out of the entry bundle).\n const { createSolanaRpc, createSolanaRpcSubscriptions } = await loadSolanaKit();\n if (this.configuredRpcUrl && this.chainId && !this.privyConfig.config.solana) {\n this.privyConfig.config.solana = {};\n }\n if (this.configuredRpcUrl && this.chainId) {\n this.privyConfig.config.solana.rpcs = {\n [this.chainId]: {\n rpc: createSolanaRpc(this.configuredRpcUrl),\n rpcSubscriptions: createSolanaRpcSubscriptions(this.configuredRpcUrl.replace('https://', 'wss://'))\n }\n };\n }\n // Ensure externalWallets connectors are always configured — required for\n // useWallets().ready to resolve even when no browser extension is present.\n if (!this.privyConfig.config.externalWallets && privySolana) {\n this.privyConfig.config.externalWallets = {\n solana: { connectors: privySolana.toSolanaWalletConnectors() }\n };\n }\n if (!this.containerElement) {\n this.containerElement = document.createElement('div');\n this.containerElement.setAttribute('data-privy-provider', 'true');\n document.body.appendChild(this.containerElement);\n const that = this;\n const PrivyComponent = () => {\n const privy = privyImports.usePrivy();\n const useOAuthTokens = privyImports.useOAuthTokens();\n const useFundWalletSolana = privySolana.useFundWallet();\n const useSendTransactionSolana = privySolana.useSignAndSendTransaction();\n const { signTransaction } = privySolana.useSignTransaction();\n const { signMessage: signMessageHook } = privySolana.useSignMessage();\n const { ready: walletReady, wallets } = privySolana.useWallets();\n const { createWallet } = privySolana.useCreateWallet();\n const { exportWallet } = privySolana.useExportWallet();\n const useSolanaWallets = { createWallet, exportWallet, ready: walletReady, wallets };\n const useIdentityToken = privyImports.useIdentityToken();\n const { connectWallet } = privyImports.useConnectWallet({\n onSuccess: async ({ wallet }) => {\n await that.createSession(wallet.address, await privy.getAccessToken(), useIdentityToken.identityToken);\n // If there's a pending transaction, execute it now\n if (that.pendingTransaction) {\n const { evmTransactionData, solTransactionData, options, resolve, reject } = that.pendingTransaction;\n try {\n const result = await that.runTransaction(evmTransactionData, solTransactionData, options);\n resolve(result);\n }\n catch (error) {\n reject(error);\n }\n that.pendingTransaction = null;\n }\n // If there's a pending signTransaction, execute it now\n if (that.pendingSignTransaction) {\n const { transaction, resolve, reject } = that.pendingSignTransaction;\n try {\n const result = await that.signTransaction(transaction);\n resolve(result);\n }\n catch (error) {\n reject(error);\n }\n that.pendingSignTransaction = null;\n }\n // If there's a pending signMessage, execute it now\n if (that.pendingSignMessage) {\n const { message, resolve, reject } = that.pendingSignMessage;\n try {\n const result = await that.signMessage(message);\n resolve(result);\n }\n catch (error) {\n reject(error);\n }\n that.pendingSignMessage = null;\n }\n // If there's a pending signAndSubmitTransaction, execute it now\n if (that.pendingSignAndSubmitTransaction) {\n const { transaction, feePayer, resolve, reject } = that.pendingSignAndSubmitTransaction;\n try {\n const result = await that.signAndSubmitTransaction(transaction, feePayer);\n resolve(result);\n }\n catch (error) {\n reject(error);\n }\n that.pendingSignAndSubmitTransaction = null;\n }\n },\n onError: (error) => {\n // Only log errors that aren't user-initiated cancellations\n if (error !== 'exited_auth_flow' && (error === null || error === void 0 ? void 0 : error.message) !== 'exited_auth_flow') {\n console.error('Wallet connection error:', error);\n }\n if (that.pendingTransaction) {\n that.pendingTransaction.reject(error);\n that.pendingTransaction = null;\n }\n if (that.pendingSignTransaction) {\n that.pendingSignTransaction.reject(error);\n that.pendingSignTransaction = null;\n }\n if (that.pendingSignMessage) {\n that.pendingSignMessage.reject(error);\n that.pendingSignMessage = null;\n }\n if (that.pendingSignAndSubmitTransaction) {\n that.pendingSignAndSubmitTransaction.reject(error);\n that.pendingSignAndSubmitTransaction = null;\n }\n }\n });\n const { login } = privyImports.useLogin({\n onComplete: async ({ user }) => {\n var _a;\n // This is a hack to indicate to the app that privy login is not complete\n // @ts-ignore\n window.runningPrivyOnComplete = true;\n if (!user) {\n SessionManager().clearSession();\n return;\n }\n const solanaLinkedAccounts = user.linkedAccounts.filter((account) => account.chainType === 'solana');\n const sortedLinkedAccounts = solanaLinkedAccounts.sort((a, b) => new Date(b.latestVerifiedAt).getTime() - new Date(a.latestVerifiedAt).getTime());\n let finalAddress = (_a = sortedLinkedAccounts[0]) === null || _a === void 0 ? void 0 : _a.address;\n if (!finalAddress) {\n const solanaWallet = await createWallet();\n finalAddress = solanaWallet.address;\n SessionManager().clearSession();\n return;\n }\n const session = await SessionManager().getSession();\n if (!session || finalAddress !== session.address) {\n try {\n const accessToken = await privy.getAccessToken();\n const idToken = useIdentityToken.identityToken;\n await that.createSession(finalAddress, accessToken, idToken);\n }\n catch (error) {\n console.error('Error creating session:', error);\n }\n }\n // @ts-ignore\n window.runningPrivyOnComplete = false;\n setCurrentUser({ address: finalAddress, provider: that });\n if (that.pendingLogin) {\n that.pendingLogin.resolve({ address: finalAddress, provider: that });\n that.pendingLogin = null;\n }\n },\n onError: (error) => {\n // Only log errors that aren't user-initiated cancellations\n if (error !== 'exited_auth_flow' && (error === null || error === void 0 ? void 0 : error.message) !== 'exited_auth_flow') {\n console.error('Login error:', error);\n }\n if (that.pendingLogin) {\n that.pendingLogin.reject(error);\n that.pendingLogin = null;\n }\n }\n });\n const { logout } = privyImports.useLogout({\n onSuccess: () => {\n SessionManager().clearSession();\n setCurrentUser(null);\n }\n });\n React.useEffect(() => {\n if (privy.ready) {\n that.privyMethods = {\n ready: privy.ready,\n walletReady: walletReady,\n authenticated: privy.authenticated,\n wallets,\n login,\n logout,\n connectWallet,\n getAccessToken: privy.getAccessToken,\n identityToken: useIdentityToken.identityToken,\n usePrivy: privy,\n useOAuthTokens: useOAuthTokens,\n useFundWalletSolana: useFundWalletSolana,\n useSendTransactionSolana: useSendTransactionSolana,\n useSolanaWallets: useSolanaWallets,\n signTransaction: signTransaction,\n signMessage: signMessageHook,\n };\n }\n }, [privy.ready, privy.authenticated, wallets, login, logout, walletReady]);\n return null;\n };\n const FinalPrivyComponent = () => {\n if (typeof window === 'undefined') {\n return null;\n }\n return React.createElement(privyImports.PrivyProvider, {\n appId: this.privyConfig.appId,\n config: this.privyConfig.config,\n children: React.createElement(PrivyComponent)\n });\n };\n this.root = ReactDOM.createRoot(this.containerElement);\n this.root.render(React.createElement(FinalPrivyComponent));\n }\n }\n async login() {\n var _a, _b;\n await this.ensureReady();\n // Check if we have a valid session that matches an authenticated wallet\n const session = await SessionManager().getSession();\n if (((_a = this.privyMethods) === null || _a === void 0 ? void 0 : _a.authenticated) && ((_b = this.privyMethods.wallets) === null || _b === void 0 ? void 0 : _b.length) > 0 && session) {\n // Find the wallet matching the session\n const matchingWallet = this.privyMethods.wallets.find((wallet) => wallet.address === session.address);\n if (matchingWallet) {\n // Valid session with matching wallet, return immediately\n setCurrentUser({ address: matchingWallet.address, provider: this });\n return {\n address: matchingWallet.address,\n provider: this\n };\n }\n // Session exists but doesn't match any connected wallet\n // This can happen after wallet switching - force fresh login\n console.log('Session wallet mismatch detected, forcing fresh login flow');\n }\n // If no valid session or wallet mismatch, force a fresh login flow\n // This ensures the user can select the correct wallet, especially after logout\n if (this.pendingLogin) {\n return new Promise((resolve, reject) => {\n this.pendingLogin.resolve = resolve;\n this.pendingLogin.reject = reject;\n });\n }\n return new Promise((resolve, reject) => {\n this.pendingLogin = { resolve, reject };\n // open Privy modal to let user select/verify wallet\n this.privyMethods.login();\n // safety timeout\n setTimeout(() => {\n if (this.pendingLogin) {\n this.pendingLogin.reject(new Error(\"Login timed out\"));\n this.pendingLogin = null;\n }\n }, 180000);\n });\n }\n async getNativeMethods() {\n var _a;\n await this.ensureReady();\n return (_a = this.privyMethods) === null || _a === void 0 ? void 0 : _a.usePrivy;\n }\n async logout() {\n await this.ensureReady();\n await this.privyMethods.logout();\n }\n async runTransaction(_evmTransactionData, solTransactionData, options) {\n var _a, _b, _c;\n await this.ensureReady({ waitForWallets: true });\n let session = await SessionManager().getSession();\n let sessionAddress = session === null || session === void 0 ? void 0 : session.address;\n let privyWallets = (_a = this.privyMethods) === null || _a === void 0 ? void 0 : _a.wallets;\n let privyWallet = privyWallets === null || privyWallets === void 0 ? void 0 : privyWallets.find((wallet) => wallet.address === sessionAddress);\n // If wallet not found yet, it may be an embedded wallet (email login) that hasn't\n // appeared in the wallets array due to React state timing. Wait for it before\n // falling back to connectWallet() which shows an unwanted wallet selection modal.\n if (!privyWallets || privyWallets.length === 0 || !privyWallet) {\n if (((_b = this.privyMethods) === null || _b === void 0 ? void 0 : _b.authenticated) && sessionAddress) {\n privyWallet = await this.waitForMatchingWallet(sessionAddress);\n }\n }\n if (!privyWallet) {\n // If there's already a pending transaction, throw an error to prevent overlapping calls\n if (this.pendingTransaction) {\n throw new Error(\"Oops... something went wrong. Please try again.\");\n }\n // Create a promise to wait for the transaction result\n return new Promise((resolve, reject) => {\n this.pendingTransaction = {\n resolve,\n reject,\n evmTransactionData: _evmTransactionData,\n solTransactionData,\n options\n };\n this.privyMethods.connectWallet();\n // Set a timeout to reject the promise if connection takes too long\n setTimeout(() => {\n if (this.pendingTransaction) {\n this.pendingTransaction.reject(new Error(\"Wallet connection timed out\"));\n this.pendingTransaction = null;\n }\n }, 30000); // 30 seconds timeout\n });\n }\n // Proceed with the transaction using privyWallet\n const wallet = privyWallet;\n if (solTransactionData == null) {\n throw new Error(\"Solana transaction data is required\");\n }\n const rpcUrl = this.getRpcUrl(solTransactionData.network);\n const connection = new Connection(rpcUrl, \"confirmed\");\n const remainingAccounts = convertRemainingAccounts(solTransactionData.txArgs[0].remainingAccounts);\n const app_id = solTransactionData.appId;\n if (!app_id) {\n throw new Error(\"App ID is required\");\n }\n const anchorProvider = new anchor.AnchorProvider(connection, wallet.provider, anchor.AnchorProvider.defaultOptions());\n const finalDeduped = [];\n for (const acc of remainingAccounts) {\n const existing = finalDeduped.find((d) => d.pubkey.equals(acc.pubkey));\n if (existing) {\n existing.isSigner = existing.isSigner || acc.isSigner;\n existing.isWritable = existing.isWritable || acc.isWritable;\n }\n else {\n finalDeduped.push(acc);\n }\n }\n let tx;\n let blockhash;\n let lastValidBlockHeight;\n if (solTransactionData.signedTransaction) {\n // Server already set the blockhash and co-signed — do NOT overwrite\n // the blockhash or it will invalidate the server's signature.\n tx = VersionedTransaction.deserialize(Buffer.from(solTransactionData.signedTransaction, 'base64'));\n // Extract the blockhash that was baked into the signed message\n blockhash = tx.message.recentBlockhash;\n const latestBlockhash = await connection.getLatestBlockhash('confirmed');\n lastValidBlockHeight = latestBlockhash.lastValidBlockHeight;\n }\n else {\n const result = await buildSetDocumentsTransaction(connection, solTransactionData.txArgs[0].idl, anchorProvider, new PublicKey(wallet.address), { app_id, documents: solTransactionData.txArgs[0].setDocumentData, delete_paths: solTransactionData.txArgs[0].deletePaths, txData: solTransactionData.txArgs[0].txData }, finalDeduped, solTransactionData.lutKey, solTransactionData.preInstructions, false, solTransactionData.additionalLutAddresses);\n tx = result.tx;\n blockhash = result.blockhash;\n lastValidBlockHeight = result.lastValidBlockHeight;\n }\n // Use duck typing instead of instanceof to handle multiple @solana/web3.js versions\n const isLegacyTx = 'recentBlockhash' in tx && !('message' in tx && 'staticAccountKeys' in tx.message);\n if (isLegacyTx) {\n tx.recentBlockhash = blockhash;\n tx.lastValidBlockHeight = lastValidBlockHeight;\n }\n else {\n tx.message.recentBlockhash = blockhash;\n }\n try {\n if ((options === null || options === void 0 ? void 0 : options.shouldSubmitTx) === false) {\n // Just sign, don't submit - return raw signed bytes (same as original runTransaction)\n const signedTx = await this.signTransactionRaw(tx, privyWallet, solTransactionData.network);\n return {\n signedTransaction: signedTx, // Raw Uint8Array from Privy\n blockNumber: 0,\n gasUsed: \"0\",\n data: \"\"\n };\n }\n // Sign and submit using shared helper\n const { signature, txInfo } = await this.signAndSubmitInternal(tx, privyWallet, rpcUrl, connection, solTransactionData.network);\n return {\n transactionSignature: signature,\n blockNumber: (txInfo === null || txInfo === void 0 ? void 0 : txInfo.slot) || 0,\n gasUsed: ((_c = txInfo === null || txInfo === void 0 ? void 0 : txInfo.meta) === null || _c === void 0 ? void 0 : _c.fee.toString()) || '0',\n data: txInfo === null || txInfo === void 0 ? void 0 : txInfo.meta,\n };\n }\n catch (err) {\n console.error(err);\n throw err;\n }\n }\n /**\n * Signs a Solana transaction without submitting it.\n *\n * This method handles blockhash automatically if not set - you do NOT need to\n * set recentBlockhash on the transaction before calling this method.\n * The network/RPC URL is derived from the provider's configuration (set during initialization).\n *\n * @param transaction - The transaction to sign (Transaction or VersionedTransaction)\n * @returns The signed transaction\n */\n async signTransaction(transaction) {\n var _a, _b;\n await this.ensureReady({ waitForWallets: true });\n let privyWallets = (_a = this.privyMethods) === null || _a === void 0 ? void 0 : _a.wallets;\n let session = await SessionManager().getSession();\n let sessionAddress = session === null || session === void 0 ? void 0 : session.address;\n let privyWallet = privyWallets === null || privyWallets === void 0 ? void 0 : privyWallets.find((wallet) => wallet.address === sessionAddress);\n // If there's already a pending sign transaction, throw an error to prevent overlapping calls\n if (this.pendingSignTransaction) {\n throw new Error(\"Oops... something went wrong. Please try again.\");\n }\n // If wallet not found yet, it may be an embedded wallet (email login) that hasn't\n // appeared in the wallets array due to React state timing. Wait for it before\n // falling back to connectWallet() which shows an unwanted wallet selection modal.\n if (!privyWallets || privyWallets.length === 0 || !privyWallet) {\n if (((_b = this.privyMethods) === null || _b === void 0 ? void 0 : _b.authenticated) && sessionAddress) {\n privyWallet = await this.waitForMatchingWallet(sessionAddress);\n }\n }\n // If still no wallet after waiting, trigger connection and queue the signing\n if (!privyWallet) {\n return new Promise((resolve, reject) => {\n this.pendingSignTransaction = {\n resolve,\n reject,\n transaction\n };\n this.privyMethods.connectWallet();\n // Set a timeout to reject the promise if connection takes too long\n setTimeout(() => {\n if (this.pendingSignTransaction) {\n this.pendingSignTransaction.reject(new Error(\"Wallet connection timed out\"));\n this.pendingSignTransaction = null;\n }\n }, 30000); // 30 seconds timeout\n });\n }\n // Privy requires serialized transaction bytes, which requires a blockhash.\n // If the transaction doesn't have one, get a fresh blockhash and set it.\n // Use duck typing instead of instanceof to handle multiple @solana/web3.js versions\n const isLegacyTransaction = 'recentBlockhash' in transaction && !('message' in transaction && 'staticAccountKeys' in transaction.message);\n if (isLegacyTransaction) {\n const legacyTx = transaction;\n if (!legacyTx.recentBlockhash) {\n const rpcUrl = this.getRpcUrl();\n const connection = new Connection(rpcUrl, 'confirmed');\n const { blockhash, lastValidBlockHeight } = await connection.getLatestBlockhash('confirmed');\n legacyTx.recentBlockhash = blockhash;\n legacyTx.lastValidBlockHeight = lastValidBlockHeight;\n }\n // Set feePayer if not already set\n if (!legacyTx.feePayer) {\n legacyTx.feePayer = new PublicKey(privyWallet.address);\n }\n }\n else {\n // VersionedTransaction\n const versionedTx = transaction;\n if (!versionedTx.message.recentBlockhash) {\n const rpcUrl = this.getRpcUrl();\n const connection = new Connection(rpcUrl, 'confirmed');\n const { blockhash } = await connection.getLatestBlockhash('confirmed');\n versionedTx.message.recentBlockhash = blockhash;\n }\n }\n // Sign using raw method, then deserialize for the public API\n const signedTxRaw = await this.signTransactionRaw(transaction, privyWallet);\n return this.deserializeSignedTransaction(signedTxRaw);\n }\n /**\n * Signs and submits a Solana transaction to the network.\n *\n * This method handles blockhash and transaction confirmation automatically - you do NOT need to\n * set recentBlockhash or lastValidBlockHeight on the transaction before calling this method.\n * The network/RPC URL is derived from the provider's configuration (set during initialization).\n *\n * @param transaction - The transaction to sign and submit (Transaction or VersionedTransaction)\n * @param feePayer - Optional fee payer public key. If not provided and the transaction doesn't\n * already have a feePayer set, the connected wallet address will be used.\n * Useful for co-signing scenarios where a different account pays the fees.\n * @returns The transaction signature\n */\n async signAndSubmitTransaction(transaction, feePayer) {\n var _a, _b;\n await this.ensureReady({ waitForWallets: true });\n let privyWallets = (_a = this.privyMethods) === null || _a === void 0 ? void 0 : _a.wallets;\n let session = await SessionManager().getSession();\n let sessionAddress = session === null || session === void 0 ? void 0 : session.address;\n let privyWallet = privyWallets === null || privyWallets === void 0 ? void 0 : privyWallets.find((wallet) => wallet.address === sessionAddress);\n // If there's already a pending signAndSubmitTransaction, throw an error to prevent overlapping calls\n if (this.pendingSignAndSubmitTransaction) {\n throw new Error(\"Oops... something went wrong. Please try again.\");\n }\n // If wallet not found yet, it may be an embedded wallet (email login) that hasn't\n // appeared in the wallets array due to React state timing. Wait for it before\n // falling back to connectWallet() which shows an unwanted wallet selection modal.\n if (!privyWallets || privyWallets.length === 0 || !privyWallet) {\n if (((_b = this.privyMethods) === null || _b === void 0 ? void 0 : _b.authenticated) && sessionAddress) {\n privyWallet = await this.waitForMatchingWallet(sessionAddress);\n }\n }\n // If still no wallet after waiting, trigger connection and queue the signing\n if (!privyWallet) {\n return new Promise((resolve, reject) => {\n this.pendingSignAndSubmitTransaction = {\n resolve,\n reject,\n transaction,\n feePayer\n };\n this.privyMethods.connectWallet();\n // Set a timeout to reject the promise if connection takes too long\n setTimeout(() => {\n if (this.pendingSignAndSubmitTransaction) {\n this.pendingSignAndSubmitTransaction.reject(new Error(\"Wallet connection timed out\"));\n this.pendingSignAndSubmitTransaction = null;\n }\n }, 30000); // 30 seconds timeout\n });\n }\n // Get RPC URL and create connection\n const rpcUrl = this.getRpcUrl();\n const connection = new Connection(rpcUrl, 'confirmed');\n // Get fresh blockhash and set it on the transaction before signing\n const { blockhash, lastValidBlockHeight } = await connection.getLatestBlockhash('confirmed');\n // Use duck typing instead of instanceof to handle multiple @solana/web3.js versions\n const isLegacyTransaction = 'recentBlockhash' in transaction && !('message' in transaction && 'staticAccountKeys' in transaction.message);\n if (isLegacyTransaction) {\n const legacyTx = transaction;\n legacyTx.recentBlockhash = blockhash;\n legacyTx.lastValidBlockHeight = lastValidBlockHeight;\n // Set feePayer if not already set\n if (!legacyTx.feePayer) {\n legacyTx.feePayer = feePayer !== null && feePayer !== void 0 ? feePayer : new PublicKey(privyWallet.address);\n }\n }\n else {\n // VersionedTransaction\n const versionedTx = transaction;\n versionedTx.message.recentBlockhash = blockhash;\n // Note: VersionedTransaction feePayer is set in the message at creation time\n // and cannot be modified after creation\n }\n // Use shared sign and submit logic\n const { signature } = await this.signAndSubmitInternal(transaction, privyWallet, rpcUrl, connection);\n return signature;\n }\n // ============ Private Helpers ============\n getRpcUrl(network) {\n return resolveSolanaRpcUrl(this.networkUrl, network !== null && network !== void 0 ? network : this.configuredNetwork, \"Privy Solana transaction\");\n }\n getChainId(network) {\n if (network) {\n return resolveSolanaWalletStandardChain(network, \"Privy Solana transaction\");\n }\n if (this.chainId)\n return this.chainId;\n if (this.configuredNetwork) {\n return resolveSolanaWalletStandardChain(this.configuredNetwork, \"Privy Solana transaction\");\n }\n throw new Error(\"Privy Solana transaction requires config.chain as solana_devnet, solana_mainnet, or surfnet.\");\n }\n /**\n * Internal sign transaction - serializes and signs via Privy\n * Returns the raw result from Privy (Uint8Array)\n * This mirrors exactly what runTransaction was doing\n */\n async signTransactionRaw(transaction, privyWallet, network) {\n var _a;\n // Serialize the transaction\n // Use duck typing instead of instanceof to handle multiple @solana/web3.js versions\n const isLegacyTransaction = 'recentBlockhash' in transaction && !('message' in transaction && 'staticAccountKeys' in transaction.message);\n let serializedForSign;\n if (isLegacyTransaction) {\n serializedForSign = transaction.serialize({ requireAllSignatures: false, verifySignatures: false });\n }\n else {\n serializedForSign = transaction.serialize();\n }\n // Sign via Privy - returns { signedTransaction: Uint8Array }\n const result = await ((_a = this.privyMethods) === null || _a === void 0 ? void 0 : _a.signTransaction({\n transaction: serializedForSign,\n wallet: privyWallet,\n chain: this.getChainId(network)\n }));\n // Privy returns { signedTransaction: Uint8Array }, unwrap it\n const signedTx = (result === null || result === void 0 ? void 0 : result.signedTransaction) || result;\n return signedTx;\n }\n /**\n * Deserialize a signed transaction from Uint8Array to Transaction object\n */\n deserializeSignedTransaction(signedTxRaw) {\n // Handle different formats Privy might return\n let signedTx;\n if (signedTxRaw instanceof Uint8Array) {\n signedTx = signedTxRaw;\n }\n else if (Array.isArray(signedTxRaw)) {\n signedTx = new Uint8Array(signedTxRaw);\n }\n else if (signedTxRaw && typeof signedTxRaw === 'object' && 'signedTransaction' in signedTxRaw) {\n // Privy might wrap the result\n signedTx = signedTxRaw.signedTransaction instanceof Uint8Array\n ? signedTxRaw.signedTransaction\n : new Uint8Array(signedTxRaw.signedTransaction);\n }\n else if (Buffer.isBuffer(signedTxRaw)) {\n signedTx = new Uint8Array(signedTxRaw);\n }\n else {\n throw new Error(`Unexpected signed transaction format: ${typeof signedTxRaw}`);\n }\n // Try to deserialize as VersionedTransaction first, fall back to legacy Transaction\n try {\n return VersionedTransaction.deserialize(signedTx);\n }\n catch (_a) {\n return Transaction.from(signedTx);\n }\n }\n /**\n * Internal sign and submit - handles Surfnet vs non-Surfnet logic\n * This is the core submission logic used by both signAndSubmitTransaction and runTransaction\n *\n * For Surfnet: sign with signTransactionRaw, then sendRawTransaction\n * For non-Surfnet: use Privy's signAndSendTransaction (combined operation)\n */\n async signAndSubmitInternal(transaction, privyWallet, rpcUrl, connection, network) {\n var _a;\n const isSurfnet = rpcUrl === SURFNET_RPC_URL;\n let signature;\n if (isSurfnet) {\n // For Surfnet: sign with signTransactionRaw, then sendRawTransaction\n const signedTx = await this.signTransactionRaw(transaction, privyWallet, network);\n signature = await connection.sendRawTransaction(signedTx);\n }\n else {\n // For non-Surfnet: use Privy's combined signAndSendTransaction\n // Serialize the transaction for Privy API\n // Use duck typing instead of instanceof to handle multiple @solana/web3.js versions\n const isLegacyTransaction = 'recentBlockhash' in transaction && !('message' in transaction && 'staticAccountKeys' in transaction.message);\n let serializedTx;\n if (isLegacyTransaction) {\n serializedTx = transaction.serialize({ requireAllSignatures: false, verifySignatures: false });\n }\n else {\n serializedTx = transaction.serialize();\n }\n const result = await ((_a = this.privyMethods) === null || _a === void 0 ? void 0 : _a.useSendTransactionSolana.signAndSendTransaction({\n transaction: serializedTx,\n wallet: privyWallet,\n chain: this.getChainId(network)\n }));\n // Handle case where signature might be bytes instead of string\n const rawSig = result.signature;\n if (rawSig instanceof Uint8Array || Array.isArray(rawSig)) {\n signature = bs58.encode(rawSig instanceof Uint8Array ? rawSig : new Uint8Array(rawSig));\n }\n else {\n signature = rawSig;\n }\n }\n const txInfo = await confirmAndCheckTransaction(connection, signature);\n return { signature, txInfo };\n }\n async signMessage(message) {\n var _a, _b, _c;\n await this.ensureReady({ waitForWallets: true });\n const session = await SessionManager().getSession();\n let sessionAddress = session === null || session === void 0 ? void 0 : session.address;\n // If there's already a pending sign message, throw an error to prevent overlapping calls\n if (this.pendingSignMessage) {\n throw new Error(\"Oops... something went wrong. Please try again.\");\n }\n // If no wallets connected yet, it may be an embedded wallet (email login) that hasn't\n // appeared in the wallets array due to React state timing. Wait for it before\n // falling back to connectWallet() which shows an unwanted wallet selection modal.\n if (!((_a = this.privyMethods) === null || _a === void 0 ? void 0 : _a.wallets) || this.privyMethods.wallets.length === 0) {\n if (((_b = this.privyMethods) === null || _b === void 0 ? void 0 : _b.authenticated) && sessionAddress) {\n const matchedWallet = await this.waitForMatchingWallet(sessionAddress);\n if (!matchedWallet) {\n return new Promise((resolve, reject) => {\n this.pendingSignMessage = {\n resolve,\n reject,\n message\n };\n this.privyMethods.connectWallet();\n // Set a timeout to reject the promise if connection takes too long\n setTimeout(() => {\n if (this.pendingSignMessage) {\n this.pendingSignMessage.reject(new Error(\"Wallet connection timed out\"));\n this.pendingSignMessage = null;\n }\n }, 30000); // 30 seconds timeout\n });\n }\n }\n else {\n return new Promise((resolve, reject) => {\n this.pendingSignMessage = {\n resolve,\n reject,\n message\n };\n this.privyMethods.connectWallet();\n // Set a timeout to reject the promise if connection takes too long\n setTimeout(() => {\n if (this.pendingSignMessage) {\n this.pendingSignMessage.reject(new Error(\"Wallet connection timed out\"));\n this.pendingSignMessage = null;\n }\n }, 30000); // 30 seconds timeout\n });\n }\n }\n let privyWallet = this.privyMethods.wallets.find((wallet) => wallet.address === sessionAddress);\n if (!privyWallet) {\n throw new Error('Active Privy wallets do not include the authenticated session wallet; please log in again.');\n }\n // Use the Privy signMessage hook for Solana wallets\n // The message needs to be passed as a Uint8Array\n const messageBytes = getPlatform().textEncode(message);\n const result = await ((_c = this.privyMethods) === null || _c === void 0 ? void 0 : _c.signMessage({\n message: messageBytes,\n wallet: privyWallet,\n }));\n // The signature is returned as a Uint8Array, encode it as base58 (standard Solana format)\n const signatureBytes = (result === null || result === void 0 ? void 0 : result.signature) || result;\n const bs58 = await import('bs58');\n return bs58.default.encode(signatureBytes);\n }\n async restoreSession() {\n const session = await SessionManager().getSession();\n if (session) {\n return { provider: this, address: session.address };\n }\n else {\n return null;\n }\n }\n // NOTE: accessToken/idToken are accepted for backwards-compat with existing\n // call sites but are no longer used. The session is minted by having the Privy\n // Solana wallet SIGN the canonical SIWS challenge (the same wallet-signature\n // path Phantom/MWA/guest use), so the bounded /session issuer needs no\n // Privy-specific token verification — it arrives as a Solana signature and is\n // recorded server-side as authMethod 'phantom'.\n async createSession(address, _accessToken, _idToken) {\n var _a, _b, _c, _d;\n const privyWallet = (_b = (_a = this.privyMethods) === null || _a === void 0 ? void 0 : _a.wallets) === null || _b === void 0 ? void 0 : _b.find((w) => w.address === address);\n if (!privyWallet) {\n throw new Error('No Privy Solana wallet matching the requested session address is available.');\n }\n const nonce = await genAuthNonce();\n const message = await genSolanaMessage(address, nonce);\n const messageBytes = getPlatform().textEncode(message);\n // Low-level Privy sign hook — signs WITHOUT touching the session (the public\n // signMessage() bootstraps sessions, which would recurse here).\n const signResult = await ((_c = this.privyMethods) === null || _c === void 0 ? void 0 : _c.signMessage({\n message: messageBytes,\n wallet: privyWallet,\n }));\n const signatureBytes = (_d = signResult === null || signResult === void 0 ? void 0 : signResult.signature) !== null && _d !== void 0 ? _d : signResult;\n // base64-encoded detached signature (matches Phantom + guest providers).\n const signature = Buffer.from(signatureBytes).toString('base64');\n const createSessionResult = await createSessionWithSignature(address, message, signature);\n if (createSessionResult) {\n await SessionManager().storeSession(address, createSessionResult.accessToken, createSessionResult.idToken, createSessionResult.refreshToken);\n }\n }\n /**\n * Waits for a wallet matching the session address to appear in the wallets array.\n * This handles the timing gap where Privy's embedded wallet (created for email login users)\n * may not yet be in the useWallets() array when signTransaction is called immediately after login.\n */\n async waitForMatchingWallet(sessionAddress, timeoutMs = 10000) {\n var _a;\n const startTime = Date.now();\n while (Date.now() - startTime < timeoutMs) {\n const wallets = (_a = this.privyMethods) === null || _a === void 0 ? void 0 : _a.wallets;\n if (wallets && wallets.length > 0) {\n const wallet = wallets.find((w) => w.address === sessionAddress);\n if (wallet)\n return wallet;\n }\n await new Promise(resolve => setTimeout(resolve, 200));\n }\n return null;\n }\n async ensureReady({ waitForWallets = false, timeoutMs = 15000 } = {}) {\n const isReady = () => {\n var _a, _b;\n if (!((_a = this.privyMethods) === null || _a === void 0 ? void 0 : _a.ready))\n return false;\n if (waitForWallets && !((_b = this.privyMethods) === null || _b === void 0 ? void 0 : _b.walletReady))\n return false;\n return true;\n };\n if (isReady())\n return;\n return new Promise((resolve, reject) => {\n const startTime = Date.now();\n const check = () => {\n if (isReady()) {\n resolve();\n }\n else if (Date.now() - startTime > timeoutMs) {\n reject(new Error('Login provider failed to initialize. This can happen in incognito mode or when third-party cookies are blocked. Try using a regular browser window.'));\n }\n else {\n setTimeout(check, 100);\n }\n };\n check();\n });\n }\n}\nPrivyWalletProvider.instance = null;\n","/**\n * Privy Expo Auth Provider — React Native implementation of AuthProvider.\n *\n * Uses @privy-io/expo instead of @privy-io/react-auth.\n * Persists the session through getActiveSessionManager() (the RN store on React\n * Native), and mints it via the SIWS wallet-signature path — identical to\n * Phantom/MWA — so no Privy-specific backend verification is required.\n *\n * IMPORTANT — Expo/RN consumers must:\n * 1. Install polyfills: fast-text-encoding, react-native-get-random-values\n * 2. Install @privy-io/expo, @privy-io/expo-native-extensions\n * 3. Call ReactNativeSessionManager.configure({ storage, atob }) at startup\n * 4. Call setPlatform({ ... }) from @bounded-sh/web at startup\n * 5. Wrap their app tree with PrivyProvider from @privy-io/expo\n * 6. Create this provider and pass the Privy hooks/methods via setPrivyMethods()\n *\n * Unlike the web PrivyWalletProvider which renders a hidden React DOM tree\n * to host Privy's React context, this provider expects the RN app itself\n * to render <PrivyProvider> and then bridge the hooks via setPrivyMethods().\n */\nimport { getActiveSessionManager as SessionManager, createSessionWithSignature, genAuthNonce, genSolanaMessage, buildSetDocumentsTransaction, convertRemainingAccounts, } from '@bounded-sh/core';\nimport { Buffer } from 'buffer';\nimport { setCurrentUser } from '../../global';\nimport { getPlatform } from '../../platform';\nimport { PublicKey, Connection, Transaction, VersionedTransaction, } from '@solana/web3.js';\nimport * as anchor from '@coral-xyz/anchor';\nimport { normalizeSolanaRpcUrl, resolveSolanaRpcUrl, SURFNET_RPC_URL } from '../solana-rpc';\nimport { confirmAndCheckTransaction } from './transaction-utils';\nimport bs58 from 'bs58';\n// -----------------------------------------------------------------------\n// Provider implementation\n// -----------------------------------------------------------------------\nexport class PrivyExpoProvider {\n constructor(appId, networkUrl = null) {\n this.privyMethods = null;\n this.appId = appId;\n this.networkUrl = normalizeSolanaRpcUrl(networkUrl);\n }\n /**\n * Bridge Privy hooks from the app's React tree into this provider.\n *\n * Call this from a component rendered inside <PrivyProvider>:\n * ```tsx\n * const privy = usePrivy();\n * const wallet = useEmbeddedSolanaWallet();\n * const { getAccessToken } = usePrivy();\n * const { getIdentityToken } = useIdentityToken();\n *\n * useEffect(() => {\n * provider.setPrivyMethods({\n * isReady: privy.isReady,\n * isAuthenticated: !!privy.user,\n * user: privy.user,\n * login: privy.login,\n * logout: privy.logout,\n * getAccessToken,\n * getIdentityToken,\n * getWalletProvider: async () => {\n * if (!wallet.wallets[0]) return null;\n * const provider = await wallet.wallets[0].getProvider();\n * return {\n * address: wallet.wallets[0].address,\n * signMessage: provider.signMessage,\n * signTransaction: provider.signTransaction,\n * signAndSendTransaction: provider.signAndSendTransaction,\n * };\n * },\n * });\n * }, [privy.isReady, privy.user, wallet.wallets]);\n * ```\n */\n setPrivyMethods(methods) {\n this.privyMethods = methods;\n }\n // -------------------------------------------------------------------\n // AuthProvider interface\n // -------------------------------------------------------------------\n async login() {\n var _a;\n await this.ensureReady();\n // Check for existing session — verify the stored address matches the\n // currently authenticated Privy wallet (guards against account switches\n // without an explicit logout).\n const session = await SessionManager().getSession();\n if (session && ((_a = this.privyMethods) === null || _a === void 0 ? void 0 : _a.isAuthenticated)) {\n const wallet = await this.privyMethods.getWalletProvider();\n if (wallet && wallet.address === session.address) {\n return { provider: this, address: session.address };\n }\n // Stale session — clear and continue to fresh login flow\n SessionManager().clearSession();\n }\n // Trigger Privy login\n const privyUser = await this.privyMethods.login();\n if (!privyUser)\n return null;\n // Get the wallet\n const wallet = await this.privyMethods.getWalletProvider();\n if (!wallet) {\n throw new Error('No embedded Solana wallet found after login. Ensure embeddedWallets.solana.createOnLogin is configured.');\n }\n // Mint a Bounded session by having the Privy Solana wallet sign the\n // standard SIWS challenge — identical to Phantom/MWA, so the backend mints\n // the session via the proven wallet-signature path (no Privy-specific\n // token verification needed).\n await this.createSession(wallet.address, wallet);\n const user = { provider: this, address: wallet.address };\n setCurrentUser(user);\n return user;\n }\n async runTransaction(_evmTransactionData, solTransactionData, options) {\n var _a;\n await this.ensureReady();\n if (!solTransactionData) {\n throw new Error('Solana transaction data is required');\n }\n const wallet = await this.getWalletOrThrow();\n const rpcUrl = this.getRpcUrl(solTransactionData.network);\n const connection = new Connection(rpcUrl, 'confirmed');\n const remainingAccounts = convertRemainingAccounts(solTransactionData.txArgs[0].remainingAccounts);\n const app_id = solTransactionData.appId;\n if (!app_id) {\n throw new Error('App ID is required');\n }\n // Create a mock wallet adapter for Anchor (only publicKey needed for building TX)\n const walletPublicKey = new PublicKey(wallet.address);\n const anchorWallet = {\n publicKey: walletPublicKey,\n signTransaction: async (tx) => tx,\n signAllTransactions: async (txs) => txs,\n };\n const anchorProvider = new anchor.AnchorProvider(connection, anchorWallet, anchor.AnchorProvider.defaultOptions());\n const finalDeduped = [];\n for (const acc of remainingAccounts) {\n const existing = finalDeduped.find((d) => d.pubkey.equals(acc.pubkey));\n if (existing) {\n existing.isSigner = existing.isSigner || acc.isSigner;\n existing.isWritable = existing.isWritable || acc.isWritable;\n }\n else {\n finalDeduped.push(acc);\n }\n }\n const { tx, blockhash, lastValidBlockHeight } = await buildSetDocumentsTransaction(connection, solTransactionData.txArgs[0].idl, anchorProvider, walletPublicKey, {\n app_id,\n documents: solTransactionData.txArgs[0].setDocumentData,\n delete_paths: solTransactionData.txArgs[0].deletePaths,\n txData: solTransactionData.txArgs[0].txData,\n }, finalDeduped, solTransactionData.lutKey, solTransactionData.preInstructions, false, solTransactionData.additionalLutAddresses);\n // Set blockhash\n const isLegacyTx = 'recentBlockhash' in tx &&\n !('message' in tx && 'staticAccountKeys' in tx.message);\n if (isLegacyTx) {\n tx.recentBlockhash = blockhash;\n tx.lastValidBlockHeight = lastValidBlockHeight;\n }\n else {\n tx.message.recentBlockhash = blockhash;\n }\n try {\n if ((options === null || options === void 0 ? void 0 : options.shouldSubmitTx) === false) {\n // Sign only — don't submit\n const signed = await wallet.signTransaction(tx);\n return {\n signedTransaction: signed.signedTransaction,\n blockNumber: 0,\n gasUsed: '0',\n data: '',\n };\n }\n // Sign and submit\n const { signature, txInfo } = await this.signAndSubmitInternal(tx, wallet, rpcUrl, connection);\n return {\n transactionSignature: signature,\n blockNumber: (txInfo === null || txInfo === void 0 ? void 0 : txInfo.slot) || 0,\n gasUsed: ((_a = txInfo === null || txInfo === void 0 ? void 0 : txInfo.meta) === null || _a === void 0 ? void 0 : _a.fee.toString()) || '0',\n data: txInfo === null || txInfo === void 0 ? void 0 : txInfo.meta,\n };\n }\n catch (err) {\n console.error(err);\n throw err;\n }\n }\n async signMessage(message) {\n await this.ensureReady();\n const wallet = await this.getWalletOrThrow();\n const messageBytes = getPlatform().textEncode(message);\n const result = await wallet.signMessage(messageBytes);\n return bs58.encode(result.signature);\n }\n async signTransaction(transaction) {\n await this.ensureReady();\n const wallet = await this.getWalletOrThrow();\n // Ensure blockhash is set\n const isLegacyTx = 'recentBlockhash' in transaction &&\n !('message' in transaction && 'staticAccountKeys' in transaction.message);\n if (isLegacyTx) {\n const legacyTx = transaction;\n if (!legacyTx.recentBlockhash) {\n const rpcUrl = this.getRpcUrl();\n const connection = new Connection(rpcUrl, 'confirmed');\n const { blockhash, lastValidBlockHeight } = await connection.getLatestBlockhash('confirmed');\n legacyTx.recentBlockhash = blockhash;\n legacyTx.lastValidBlockHeight = lastValidBlockHeight;\n }\n if (!legacyTx.feePayer) {\n legacyTx.feePayer = new PublicKey(wallet.address);\n }\n }\n else {\n const versionedTx = transaction;\n if (!versionedTx.message.recentBlockhash) {\n const rpcUrl = this.getRpcUrl();\n const connection = new Connection(rpcUrl, 'confirmed');\n const { blockhash } = await connection.getLatestBlockhash('confirmed');\n versionedTx.message.recentBlockhash = blockhash;\n }\n }\n const result = await wallet.signTransaction(transaction);\n // Deserialize the signed transaction\n const signedBytes = result.signedTransaction;\n try {\n return VersionedTransaction.deserialize(signedBytes);\n }\n catch (_a) {\n return Transaction.from(signedBytes);\n }\n }\n async signAndSubmitTransaction(transaction, feePayer) {\n await this.ensureReady();\n const wallet = await this.getWalletOrThrow();\n const rpcUrl = this.getRpcUrl();\n const connection = new Connection(rpcUrl, 'confirmed');\n // Ensure blockhash\n const isLegacyTx = 'recentBlockhash' in transaction &&\n !('message' in transaction && 'staticAccountKeys' in transaction.message);\n if (isLegacyTx) {\n const legacyTx = transaction;\n const { blockhash, lastValidBlockHeight } = await connection.getLatestBlockhash('confirmed');\n legacyTx.recentBlockhash = blockhash;\n legacyTx.lastValidBlockHeight = lastValidBlockHeight;\n legacyTx.feePayer = feePayer || new PublicKey(wallet.address);\n }\n else {\n const versionedTx = transaction;\n const { blockhash } = await connection.getLatestBlockhash('confirmed');\n versionedTx.message.recentBlockhash = blockhash;\n }\n const { signature } = await this.signAndSubmitInternal(transaction, wallet, rpcUrl, connection);\n return signature;\n }\n async restoreSession() {\n const session = await SessionManager().getSession();\n if (session) {\n return { provider: this, address: session.address };\n }\n return null;\n }\n async logout() {\n var _a;\n if ((_a = this.privyMethods) === null || _a === void 0 ? void 0 : _a.isAuthenticated) {\n await this.privyMethods.logout();\n }\n SessionManager().clearSession();\n }\n async getNativeMethods() {\n return this.privyMethods;\n }\n // -------------------------------------------------------------------\n // Private helpers\n // -------------------------------------------------------------------\n /**\n * Mint a Bounded session from a Privy Solana wallet by signing the canonical\n * SIWS challenge (nonce -> genSolanaMessage -> wallet.signMessage). This reuses\n * createSessionWithSignature — the exact path Phantom, the mobile wallet\n * adapter, and the guest device-key use — so the bounded /session issuer mints\n * the session with no Privy-specific verification (it arrives as a Solana\n * wallet signature, defaulting to authMethod 'phantom' server-side).\n */\n async createSession(address, wallet) {\n const nonce = await genAuthNonce();\n const message = await genSolanaMessage(address, nonce);\n const messageBytes = getPlatform().textEncode(message);\n const signResult = await wallet.signMessage(messageBytes);\n // createSessionWithSignature expects a base64-encoded detached signature\n // (matches the Phantom + guest providers).\n const signature = Buffer.from(signResult.signature).toString('base64');\n const result = await createSessionWithSignature(address, message, signature);\n if (result) {\n await SessionManager().storeSession(address, result.accessToken, result.idToken, result.refreshToken);\n }\n }\n async getWalletOrThrow() {\n var _a;\n const wallet = await ((_a = this.privyMethods) === null || _a === void 0 ? void 0 : _a.getWalletProvider());\n if (!wallet) {\n throw new Error('No Privy wallet available. Ensure the user is logged in and an embedded Solana wallet exists.');\n }\n return wallet;\n }\n async signAndSubmitInternal(transaction, wallet, rpcUrl, connection) {\n let signature;\n if (rpcUrl.includes('surfpool') || rpcUrl === SURFNET_RPC_URL) {\n // Surfnet: sign locally, then submit raw\n const signed = await wallet.signTransaction(transaction);\n const txSig = await connection.sendRawTransaction(signed.signedTransaction, {\n skipPreflight: true,\n maxRetries: 3,\n });\n signature = txSig;\n }\n else {\n // Non-Surfnet: use Privy's combined sign+send\n const result = await wallet.signAndSendTransaction(transaction, connection);\n signature = result.signature;\n }\n const txInfo = await confirmAndCheckTransaction(connection, signature);\n return { signature, txInfo };\n }\n getRpcUrl(network) {\n return resolveSolanaRpcUrl(this.networkUrl, network, \"Privy Expo Solana transaction\");\n }\n async ensureReady(timeoutMs = 15000) {\n if (!this.privyMethods) {\n throw new Error('PrivyExpoProvider.setPrivyMethods() must be called before using auth. ' +\n 'Bridge the Privy hooks from your React Native component tree.');\n }\n if (this.privyMethods.isReady)\n return;\n return new Promise((resolve, reject) => {\n const startTime = Date.now();\n const check = () => {\n var _a;\n if ((_a = this.privyMethods) === null || _a === void 0 ? void 0 : _a.isReady) {\n resolve();\n }\n else if (Date.now() - startTime > timeoutMs) {\n reject(new Error('Privy Expo SDK failed to initialize within timeout.'));\n }\n else {\n setTimeout(check, 100);\n }\n };\n check();\n });\n }\n}\n"],"names":["require$$0","require$$1","exports","SessionManager","sessionManager","decodeJwt","userFromIdToken","sendEmailOtp","sendTextOtp","verifyEmailOtp","verifyTextOtp","STORED_AUTH_METHOD_KEY","emailSend","textSend","emailVerify","textVerify","emailLink","login","logout","configInit","authLogin","authLogout","_a","isSSR","React","sdkLogin","sdkLogout","getIdTokenCore","Buffer","ReactDOM"],"mappings":";;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,aAAa,CAAC;AACpB,IAAI,WAAW,GAAG;AAClB,QAAQ,IAAI,CAAC,KAAK,GAAG,IAAI,GAAG,EAAE;AAC9B,IAAI;AACJ,IAAI,OAAO,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,IAAI,IAAI,EAAE,KAAK,MAAM,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC;AACpG,IAAI,OA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AAC,CAAC,YAAY,CAAC,CAAC;AACvH,gBAAgB;AAChB,gBAAgB,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC;AACxC,YAAY;AACZ,QAAQ;AACR,QAAQ,OAAO,IAAI;AACnB,IAAI;AACJ,IAAI,cAAc,GAAG;AACrB,QAAQ,OAAO;AACf;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA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