@txnlab/use-wallet 4.3.0 → 4.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -14,43 +14,43 @@ var __export = (target, all) => {
14
14
  __defProp(target, name, { get: all[name], enumerable: true });
15
15
  };
16
16
 
17
- // ../../node_modules/.pnpm/@magic-sdk+types@24.19.0/node_modules/@magic-sdk/types/dist/es/index.mjs
18
- var m, v, u, _, f, g, Z, E, x, y, A, I, R, N, h, T, O, S, b, C, F, U, k, L, w, D, V, G, H, q, W, J, Y, B, P, j, Q, X, z;
17
+ // ../../node_modules/.pnpm/@magic-sdk+types@24.21.0/node_modules/@magic-sdk/types/dist/es/index.mjs
18
+ var m, v, u, _, f, g, Z, E, y, x, A, R, I, N, h, T, O, S, b, C, F, U, k, L, w, D, V, G, H, q, W, J, Y, B, P, j, Q, X, z;
19
19
  var init_es = __esm({
20
- "../../node_modules/.pnpm/@magic-sdk+types@24.19.0/node_modules/@magic-sdk/types/dist/es/index.mjs"() {
20
+ "../../node_modules/.pnpm/@magic-sdk+types@24.21.0/node_modules/@magic-sdk/types/dist/es/index.mjs"() {
21
21
  "use strict";
22
- m = ((p2) => (p2.MissingApiKey = "MISSING_API_KEY", p2.ModalNotReady = "MODAL_NOT_READY", p2.ConnectionLost = "CONNECTION_WAS_LOST", p2.MalformedResponse = "MALFORMED_RESPONSE", p2.InvalidArgument = "INVALID_ARGUMENT", p2.ExtensionNotInitialized = "EXTENSION_NOT_INITIALIZED", p2.IncompatibleExtensions = "INCOMPATIBLE_EXTENSIONS", p2))(m || {});
23
- v = ((o) => (o.SyncWeb3Method = "SYNC_WEB3_METHOD", o.DuplicateIframe = "DUPLICATE_IFRAME", o.ReactNativeEndpointConfiguration = "REACT_NATIVE_ENDPOINT_CONFIGURATION", o.DeprecationNotice = "DEPRECATION_NOTICE", o.ProductAnnouncement = "ANNOUNCEMENT", o))(v || {});
22
+ m = ((o) => (o.MissingApiKey = "MISSING_API_KEY", o.ModalNotReady = "MODAL_NOT_READY", o.ConnectionLost = "CONNECTION_WAS_LOST", o.MalformedResponse = "MALFORMED_RESPONSE", o.InvalidArgument = "INVALID_ARGUMENT", o.ExtensionNotInitialized = "EXTENSION_NOT_INITIALIZED", o.IncompatibleExtensions = "INCOMPATIBLE_EXTENSIONS", o))(m || {});
23
+ v = ((s) => (s.SyncWeb3Method = "SYNC_WEB3_METHOD", s.DuplicateIframe = "DUPLICATE_IFRAME", s.ReactNativeEndpointConfiguration = "REACT_NATIVE_ENDPOINT_CONFIGURATION", s.DeprecationNotice = "DEPRECATION_NOTICE", s.ProductAnnouncement = "ANNOUNCEMENT", s))(v || {});
24
24
  u = ((i) => (i[i.ParseError = -32700] = "ParseError", i[i.InvalidRequest = -32600] = "InvalidRequest", i[i.MethodNotFound = -32601] = "MethodNotFound", i[i.InvalidParams = -32602] = "InvalidParams", i[i.InternalError = -32603] = "InternalError", i[i.MagicLinkFailedVerification = -1e4] = "MagicLinkFailedVerification", i[i.MagicLinkExpired = -10001] = "MagicLinkExpired", i[i.MagicLinkRateLimited = -10002] = "MagicLinkRateLimited", i[i.MagicLinkInvalidRedirectURL = -10006] = "MagicLinkInvalidRedirectURL", i[i.UserAlreadyLoggedIn = -10003] = "UserAlreadyLoggedIn", i[i.UpdateEmailFailed = -10004] = "UpdateEmailFailed", i[i.UserRequestEditEmail = -10005] = "UserRequestEditEmail", i[i.InactiveRecipient = -10010] = "InactiveRecipient", i[i.AccessDeniedToUser = -10011] = "AccessDeniedToUser", i[i.RedirectLoginComplete = -10015] = "RedirectLoginComplete", i[i.DpopInvalidated = -10019] = "DpopInvalidated", i))(u || {});
25
25
  _ = ((t) => (t.PROVIDER = "magic_3pw_provider", t.ADDRESS = "magic_3pw_address", t.CHAIN_ID = "magic_3pw_chainId", t))(_ || {});
26
26
  f = ((t) => (t.WalletConnected = "wallet_connected", t.WalletRejected = "wallet_rejected", t.Web3ModalSelected = "web3modal_selected", t))(f || {});
27
27
  g = ((e) => (e.LoginWithSms = "magic_auth_login_with_sms", e.LoginWithEmailOTP = "magic_auth_login_with_email_otp", e.LoginWithMagicLink = "magic_auth_login_with_magic_link", e.LoginWithCredential = "magic_auth_login_with_credential", e.SetAuthorizationToken = "magic_auth_set_authorization_token", e.GetIdToken = "magic_auth_get_id_token", e.GenerateIdToken = "magic_auth_generate_id_token", e.GetMetadata = "magic_auth_get_metadata", e.IsLoggedIn = "magic_is_logged_in", e.Logout = "magic_auth_logout", e.UpdateEmail = "magic_auth_update_email", e.UserSettings = "magic_auth_settings", e.UserSettingsTestMode = "magic_auth_settings_testing_mode", e.LoginWithSmsTestMode = "magic_auth_login_with_sms_testing_mode", e.LoginWithEmailOTPTestMode = "magic_auth_login_with_email_otp_testing_mode", e.LoginWithMagicLinkTestMode = "magic_login_with_magic_link_testing_mode", e.LoginWithCredentialTestMode = "magic_auth_login_with_credential_testing_mode", e.GetIdTokenTestMode = "magic_auth_get_id_token_testing_mode", e.GenerateIdTokenTestMode = "magic_auth_generate_id_token_testing_mode", e.GetMetadataTestMode = "magic_auth_get_metadata_testing_mode", e.IsLoggedInTestMode = "magic_auth_is_logged_in_testing_mode", e.LogoutTestMode = "magic_auth_logout_testing_mode", e.UpdateEmailTestMode = "magic_auth_update_email_testing_mode", e.IntermediaryEvent = "magic_intermediary_event", e.RequestAccounts = "eth_requestAccounts", e.GetInfo = "magic_get_info", e.ShowUI = "magic_wallet", e.NFTPurchase = "magic_nft_purchase", e.NFTCheckout = "magic_nft_checkout", e.NFTTransfer = "magic_nft_transfer", e.RequestUserInfoWithUI = "mc_request_user_info", e.Disconnect = "mc_disconnect", e.RecoverAccount = "magic_auth_recover_account", e.RecoverAccountTestMode = "magic_auth_recover_account_testing_mode", e.MagicBoxHeartBeat = "magic_box_heart_beat", e.AutoConnect = "mc_auto_connect", e.Login = "mc_login", e.EncryptV1 = "magic_auth_encrypt_v1", e.DecryptV1 = "magic_auth_decrypt_v1", e.ShowNFTs = "magic_show_nfts", e.ShowOnRamp = "magic_show_fiat_onramp", e.ShowSendTokensUI = "magic_show_send_tokens_ui", e.ShowAddress = "magic_show_address", e.ShowBalances = "magic_show_balances", e.SendGaslessTransaction = "eth_sendGaslessTransaction", e.RevealPK = "magic_reveal_key", e.EnableMFA = "magic_auth_enable_mfa_flow", e.DisableMFA = "magic_auth_disable_mfa_flow", e))(g || {});
28
28
  Z = ["magic_intermediary_event", "magic_nft_checkout", "mc_login"];
29
- E = ((s) => (s.MAGIC_HANDLE_RESPONSE = "MAGIC_HANDLE_RESPONSE", s.MAGIC_OVERLAY_READY = "MAGIC_OVERLAY_READY", s.MAGIC_SHOW_OVERLAY = "MAGIC_SHOW_OVERLAY", s.MAGIC_HIDE_OVERLAY = "MAGIC_HIDE_OVERLAY", s.MAGIC_HANDLE_EVENT = "MAGIC_HANDLE_EVENT", s.MAGIC_MG_BOX_SEND_RECEIPT = "MAGIC_MG_BOX_SEND_RECEIPT", s.MAGIC_SEND_PRODUCT_ANNOUNCEMENT = "MAGIC_SEND_PRODUCT_ANNOUNCEMENT", s.MAGIC_PONG = "MAGIC_PONG", s.MAGIC_POPUP_RESPONSE = "MAGIC_POPUP_RESPONSE", s.MAGIC_POPUP_OAUTH_VERIFY_RESPONSE = "MAGIC_POPUP_OAUTH_VERIFY_RESPONSE", s))(E || {});
30
- x = ((d) => (d.MAGIC_HANDLE_REQUEST = "MAGIC_HANDLE_REQUEST", d.MAGIC_PING = "MAGIC_PING", d))(x || {});
31
- y = ((t) => (t.UpdateEmail = "update-email", t.MFA = "mfa", t.Recovery = "recovery", t))(y || {});
29
+ E = ((c) => (c.MAGIC_HANDLE_RESPONSE = "MAGIC_HANDLE_RESPONSE", c.MAGIC_OVERLAY_READY = "MAGIC_OVERLAY_READY", c.MAGIC_SHOW_OVERLAY = "MAGIC_SHOW_OVERLAY", c.MAGIC_HIDE_OVERLAY = "MAGIC_HIDE_OVERLAY", c.MAGIC_HANDLE_EVENT = "MAGIC_HANDLE_EVENT", c.MAGIC_MG_BOX_SEND_RECEIPT = "MAGIC_MG_BOX_SEND_RECEIPT", c.MAGIC_SEND_PRODUCT_ANNOUNCEMENT = "MAGIC_SEND_PRODUCT_ANNOUNCEMENT", c.MAGIC_PONG = "MAGIC_PONG", c.MAGIC_POPUP_RESPONSE = "MAGIC_POPUP_RESPONSE", c.MAGIC_POPUP_OAUTH_VERIFY_RESPONSE = "MAGIC_POPUP_OAUTH_VERIFY_RESPONSE", c))(E || {});
30
+ y = ((l) => (l.MAGIC_HANDLE_REQUEST = "MAGIC_HANDLE_REQUEST", l.MAGIC_PING = "MAGIC_PING", l))(y || {});
31
+ x = ((t) => (t.UpdateEmail = "update-email", t.MFA = "mfa", t.Recovery = "recovery", t))(x || {});
32
32
  A = ((r10) => (r10.Retry = "retry", r10))(A || {});
33
- I = ((d) => (d.EmailSent = "email-sent", d.EmailNotDeliverable = "email-not-deliverable", d))(I || {});
34
- R = ((o) => (o.VerifyEmailOtp = "verify-email-otp", o.VerifyMFACode = "verify-mfa-code", o.LostDevice = "lost-device", o.VerifyRecoveryCode = "verify-recovery-code", o.Cancel = "cancel", o))(R || {});
33
+ R = ((l) => (l.EmailSent = "email-sent", l.EmailNotDeliverable = "email-not-deliverable", l))(R || {});
34
+ I = ((s) => (s.VerifyEmailOtp = "verify-email-otp", s.VerifyMFACode = "verify-mfa-code", s.LostDevice = "lost-device", s.VerifyRecoveryCode = "verify-recovery-code", s.Cancel = "cancel", s))(I || {});
35
35
  N = ((t) => (t.VerifySmsOtp = "verify-sms-otp", t.Cancel = "cancel", t.Retry = "retry", t))(N || {});
36
36
  h = ((t) => (t.SmsOTPSent = "sms-otp-sent", t.InvalidSmsOtp = "invalid-sms-otp", t.ExpiredSmsOtp = "expired-sms-otp", t))(h || {});
37
- T = ((c) => (c.EmailOTPSent = "email-otp-sent", c.InvalidEmailOtp = "invalid-email-otp", c.InvalidMfaOtp = "invalid-mfa-otp", c.ExpiredEmailOtp = "expired-email-otp", c.MfaSentHandle = "mfa-sent-handle", c.RecoveryCodeSentHandle = "recovery-code-sent-handle", c.InvalidRecoveryCode = "invalid-recovery-code", c.RecoveryCodeSuccess = "recovery-code-success", c.LoginThrottled = "login-throttled", c))(T || {});
37
+ T = ((d) => (d.EmailOTPSent = "email-otp-sent", d.InvalidEmailOtp = "invalid-email-otp", d.InvalidMfaOtp = "invalid-mfa-otp", d.ExpiredEmailOtp = "expired-email-otp", d.MfaSentHandle = "mfa-sent-handle", d.RecoveryCodeSentHandle = "recovery-code-sent-handle", d.InvalidRecoveryCode = "invalid-recovery-code", d.RecoveryCodeSuccess = "recovery-code-success", d.LoginThrottled = "login-throttled", d))(T || {});
38
38
  O = ((r10) => (r10.Retry = "device-retry", r10))(O || {});
39
39
  S = ((n) => (n.DeviceApproved = "device-approved", n.DeviceNeedsApproval = "device-needs-approval", n.DeviceVerificationLinkExpired = "device-verification-link-expired", n.DeviceVerificationEmailSent = "device-verification-email-sent", n))(S || {});
40
40
  b = ((n) => (n.Retry = "Recency/auth-factor-retry", n.Cancel = "Recency/auth-factor-verification-cancel", n.VerifyEmailOtp = "Recency/auth-factor-verify-email-otp", n.VerifyMFACode = "Recency/verify-mfa-code", n))(b || {});
41
41
  C = ((a) => (a.PrimaryAuthFactorNeedsVerification = "Recency/auth-factor-needs-verification", a.PrimaryAuthFactorVerified = "Recency/auth-factor-verified", a.InvalidEmailOtp = "Recency/auth-factor-invalid-email-otp", a.EmailExpired = "Recency/auth-factor-verification-email-expired", a.EmailSent = "Recency/auth-factor-verification-email-sent", a.EmailNotDeliverable = "Recency/auth-factor-verification-email-not-deliverable", a))(C || {});
42
42
  F = ((t) => (t.RetryWithNewEmail = "UpdateEmail/retry-with-new-email", t.Cancel = "UpdateEmail/new-email-verification-cancel", t.VerifyEmailOtp = "UpdateEmail/new-email-verify-otp", t))(F || {});
43
- U = ((l) => (l.NewAuthFactorNeedsVerification = "UpdateEmail/new-email-needs-verification", l.EmailUpdated = "UpdateEmail/email-updated", l.InvalidEmailOtp = "UpdateEmail/new-email-invalid-email-otp", l.EmailExpired = "UpdateEmail/new-email-verification-email-expired", l.EmailSent = "UpdateEmail/new-email-verification-email-sent", l.EmailNotDeliverable = "UpdateEmail/new-email-verification-email-not-deliverable", l.InvalidEmail = "UpdateEmail/new-email-invalid", l.EmailAlreadyExists = "UpdateEmail/new-email-already-exists", l))(U || {});
43
+ U = ((p2) => (p2.NewAuthFactorNeedsVerification = "UpdateEmail/new-email-needs-verification", p2.EmailUpdated = "UpdateEmail/email-updated", p2.InvalidEmailOtp = "UpdateEmail/new-email-invalid-email-otp", p2.EmailExpired = "UpdateEmail/new-email-verification-email-expired", p2.EmailSent = "UpdateEmail/new-email-verification-email-sent", p2.EmailNotDeliverable = "UpdateEmail/new-email-verification-email-not-deliverable", p2.InvalidEmail = "UpdateEmail/new-email-invalid", p2.EmailAlreadyExists = "UpdateEmail/new-email-already-exists", p2))(U || {});
44
44
  k = ((r10) => (r10.IDTokenCreated = "Auth/id-token-created", r10))(k || {});
45
45
  L = ((r10) => (r10.Cancel = "Farcaster/cancel", r10))(L || {});
46
46
  w = ((t) => (t.MFASecretGenerated = "mfa-secret-generated", t.InvalidMFAOtp = "invalid-mfa-otp", t.MFARecoveryCodes = "mfa-recovery-codes", t))(w || {});
47
- D = ((d) => (d.VerifyMFACode = "verify-mfa-code", d.Cancel = "cancel-mfa-setup", d))(D || {});
47
+ D = ((l) => (l.VerifyMFACode = "verify-mfa-code", l.Cancel = "cancel-mfa-setup", l))(D || {});
48
48
  V = ((t) => (t.MFACodeRequested = "mfa-code-requested", t.InvalidMFAOtp = "invalid-mfa-otp", t.InvalidRecoveryCode = "invalid-recovery-code", t))(V || {});
49
49
  G = ((t) => (t.VerifyMFACode = "verify-mfa-code", t.LostDevice = "lost-device", t.Cancel = "cancel-mfa-disable", t))(G || {});
50
50
  H = ((r10) => (r10.Harmony = "HARMONY", r10))(H || {});
51
51
  q = ((r10) => (r10.ClosedByUser = "closed-by-user", r10))(q || {});
52
52
  W = ((r10) => (r10.ClosedByUser = "closed-by-user-on-received", r10))(W || {});
53
- J = ((o) => (o.EnterNewPhoneNumber = "enter-new-phone-number", o.EnterOtpCode = "enter-otp-code", o.RecoveryFactorAlreadyExists = "recovery-factor-already-exists", o.MalformedPhoneNumber = "malformed-phone-number", o.InvalidOtpCode = "invalid-otp-code", o))(J || {});
53
+ J = ((o) => (o.EnterNewPhoneNumber = "enter-new-phone-number", o.EnterOtpCode = "enter-otp-code", o.RecoveryFactorAlreadyExists = "recovery-factor-already-exists", o.MalformedPhoneNumber = "malformed-phone-number", o.InvalidOtpCode = "invalid-otp-code", o.RecoveryFactorUpdated = "recovery-factor-updated", o.RecoveryFactorDeleted = "recovery-factor-deleted", o))(J || {});
54
54
  Y = ((n) => (n.SendNewPhoneNumber = "send-new-phone-number", n.SendOtpCode = "send-otp-code", n.Cancel = "cancel", n.StartEditPhoneNumber = "start-edit-phone-number", n))(Y || {});
55
55
  B = ((r10) => (r10.PhoneNumber = "phone_number", r10))(B || {});
56
56
  P = ((a) => (a.SmsOtpSent = "sms-otp-sent", a.LoginThrottled = "login-throttled", a.InvalidSmsOtp = "invalid-sms-otp", a.SmsVerified = "sms-verified", a.AccountRecovered = "account-recovered", a.UpdateEmailRequired = "update-email-required", a))(P || {});
@@ -61,7 +61,7 @@ var init_es = __esm({
61
61
  }
62
62
  });
63
63
 
64
- // ../../node_modules/.pnpm/@magic-sdk+provider@29.1.0_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.mjs
64
+ // ../../node_modules/.pnpm/@magic-sdk+provider@29.4.2_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.mjs
65
65
  function or(r10) {
66
66
  let e = { exports: {} };
67
67
  return r10(e, e.exports), e.exports;
@@ -78,28 +78,28 @@ function Gr(r10) {
78
78
  function Kr(r10) {
79
79
  return decodeURIComponent(Array.from(atob(r10), Jr).join(""));
80
80
  }
81
- function le(r10) {
81
+ function ce(r10) {
82
82
  return Gr(JSON.stringify(r10));
83
83
  }
84
84
  function at(r10) {
85
85
  return JSON.parse(Kr(r10));
86
86
  }
87
- function C2(r10) {
87
+ function N2(r10) {
88
88
  return typeof r10 > "u";
89
89
  }
90
90
  function Br(r10) {
91
91
  return r10 === null;
92
92
  }
93
- function de(r10) {
94
- return Br(r10) || C2(r10);
93
+ function le(r10) {
94
+ return Br(r10) || N2(r10);
95
95
  }
96
96
  function ct(r10) {
97
- return de(r10) ? false : !C2(r10.jsonrpc) && !C2(r10.id) && (!C2(r10.result) || !C2(r10.error));
97
+ return le(r10) ? false : !N2(r10.jsonrpc) && !N2(r10.id) && (!N2(r10.result) || !N2(r10.error));
98
98
  }
99
99
  function lt(r10) {
100
- return de(r10) ? false : typeof r10 == "number" && Object.values(u).includes(r10);
100
+ return le(r10) ? false : typeof r10 == "number" && Object.values(u).includes(r10);
101
101
  }
102
- function te(r10) {
102
+ function ee(r10) {
103
103
  if (!r10) return true;
104
104
  for (let e in r10) if (Object.hasOwnProperty.call(r10, e)) return false;
105
105
  return true;
@@ -154,11 +154,11 @@ function* zr() {
154
154
  let r10 = 0;
155
155
  for (; ; ) r10 < Number.MAX_SAFE_INTEGER ? yield ++r10 : r10 = 0;
156
156
  }
157
- function Le() {
157
+ function $e() {
158
158
  return Yr.next().value;
159
159
  }
160
160
  function O2(r10) {
161
- return async (...e) => (me || (me = await m2.configureStorage()), await me.ready(), me[r10](...e));
161
+ return async (...e) => (pe || (pe = await m2.configureStorage()), await pe.ready(), pe[r10](...e));
162
162
  }
163
163
  function vt() {
164
164
  let r10 = window.crypto.getRandomValues(new Uint8Array(16));
@@ -166,12 +166,12 @@ function vt() {
166
166
  let e = "";
167
167
  return e += r10[0].toString(16), e += r10[1].toString(16), e += r10[2].toString(16), e += r10[3].toString(16), e += "-", e += r10[4].toString(16), e += r10[5].toString(16), e += "-", e += r10[6].toString(16), e += r10[7].toString(16), e += "-", e += r10[8].toString(16), e += r10[9].toString(16), e += "-", e += r10[10].toString(16), e += r10[11].toString(16), e += r10[12].toString(16), e += r10[13].toString(16), e += r10[14].toString(16), e += r10[15].toString(16), e;
168
168
  }
169
- function ne() {
169
+ function re() {
170
170
  let r10 = typeof window < "u" && !!window.crypto, e = r10 && !!window.crypto.subtle;
171
171
  return r10 && e;
172
172
  }
173
173
  function bt() {
174
- A2(Ee), A2(_e);
174
+ A2(he), A2(Oe);
175
175
  }
176
176
  async function Pt() {
177
177
  let r10 = await sn();
@@ -179,7 +179,7 @@ async function Pt() {
179
179
  console.info("unable to create public key or webcrypto is unsupported");
180
180
  return;
181
181
  }
182
- let { subtle: e } = window.crypto, t = await R2(_e);
182
+ let { subtle: e } = window.crypto, t = await R2(Oe);
183
183
  if (!t || !e) {
184
184
  console.info("unable to find private key or webcrypto unsupported");
185
185
  return;
@@ -188,15 +188,15 @@ async function Pt() {
188
188
  return `${o.protected}.${o.claims}.${c}`;
189
189
  }
190
190
  async function sn() {
191
- if (!ne()) {
191
+ if (!re()) {
192
192
  console.info("webcrypto is not supported");
193
193
  return;
194
194
  }
195
- return await R2(Ee) || await on(), R2(Ee);
195
+ return await R2(he) || await on(), R2(he);
196
196
  }
197
197
  async function on() {
198
198
  let { subtle: r10 } = window.crypto, e = await r10.generateKey(nn, false, ["sign"]), t = await r10.exportKey("jwk", e.publicKey);
199
- await S2(_e, e.privateKey), await S2(Ee, t);
199
+ await S2(Oe, e.privateKey), await S2(he, t);
200
200
  }
201
201
  function Tt(r10) {
202
202
  return wt(cn(r10));
@@ -223,20 +223,20 @@ function un(r10) {
223
223
  return !!r10[St];
224
224
  }
225
225
  function F2(r10) {
226
- return un(r10) || (r10.jsonrpc = r10.jsonrpc ?? "2.0", r10.id = Le(), r10.method = r10.method ?? "noop", r10.params = r10.params ?? [], xt(r10)), r10;
226
+ return un(r10) || (r10.jsonrpc = r10.jsonrpc ?? "2.0", r10.id = $e(), r10.method = r10.method ?? "noop", r10.params = r10.params ?? [], xt(r10)), r10;
227
227
  }
228
228
  function p(r10, e = []) {
229
- return xt({ params: e, method: r10, jsonrpc: "2.0", id: Le() });
229
+ return xt({ params: e, method: r10, jsonrpc: "2.0", id: $e() });
230
230
  }
231
- function ge() {
232
- let r10 = new De();
231
+ function fe() {
232
+ let r10 = new ke();
233
233
  return { emitter: r10, createChainingEmitterMethod: (s, n) => (...o) => (r10[s].apply(r10, o), n), createBoundEmitterMethod: (s) => (...n) => r10[s].apply(r10, n) };
234
234
  }
235
235
  function $t(r10) {
236
236
  return !!r10[At];
237
237
  }
238
238
  function b2(r10) {
239
- let e = qe(r10), { createBoundEmitterMethod: t, createChainingEmitterMethod: s } = ge(), n = Symbol("Promise.then"), o = Symbol("Promise.catch"), i = Symbol("Promise.finally"), a = (l, u2) => (...P2) => {
239
+ let e = De(r10), { createBoundEmitterMethod: t, createChainingEmitterMethod: s } = fe(), n = Symbol("Promise.then"), o = Symbol("Promise.catch"), i = Symbol("Promise.finally"), a = (l, u2) => (...P2) => {
240
240
  let w2 = u2[l].apply(u2, P2);
241
241
  return c(w2);
242
242
  }, c = (l) => Object.assign(l, { [At]: true, [n]: l[n] || l.then, [o]: l[o] || l.catch, [i]: l[i] || l.finally, then: a(n, l), catch: a(o, l), finally: a(i, l), on: s("on", l), once: s("once", l), addListener: s("addListener", l), off: s("off", l), removeListener: s("removeListener", l), removeAllListeners: s("removeAllListeners", l), emit: t("emit"), eventNames: t("eventNames"), listeners: t("listeners"), listenerCount: t("listenerCount") }), d = c(e.then((l) => (d.emit("done", l), d.emit("settled"), l), (l) => {
@@ -246,7 +246,7 @@ function b2(r10) {
246
246
  d.emit(q.ClosedByUser);
247
247
  }), d;
248
248
  }
249
- function qe(r10) {
249
+ function De(r10) {
250
250
  return new Promise((e, t) => {
251
251
  let s = r10(e, t);
252
252
  Promise.resolve(s).catch(t);
@@ -256,10 +256,10 @@ function Lt(r10, e) {
256
256
  let [t] = r10.split(".").map(Number);
257
257
  return t >= e;
258
258
  }
259
- async function ve() {
259
+ async function Re() {
260
260
  let r10 = [];
261
- await Oe((e, t, s) => {
262
- t.startsWith(`${Ue}_`) && r10.push(t);
261
+ await Le((e, t, s) => {
262
+ t.startsWith(`${qe}_`) && r10.push(t);
263
263
  });
264
264
  for (let e of r10) await A2(e);
265
265
  }
@@ -274,72 +274,67 @@ function kt(r10) {
274
274
  return s.buffer;
275
275
  }
276
276
  async function In() {
277
- if (!ne()) {
277
+ if (!re()) {
278
278
  console.info("webcrypto is not supported");
279
279
  return;
280
280
  }
281
- let { crypto: r10 } = window, e = await R2(We);
281
+ let { crypto: r10 } = window, e = await R2(Fe);
282
282
  return e || r10.getRandomValues(new Uint8Array(12));
283
283
  }
284
284
  async function bn() {
285
- if (!ne()) {
285
+ if (!re()) {
286
286
  console.info("webcrypto is not supported");
287
287
  return;
288
288
  }
289
- let { subtle: r10 } = window.crypto, e = await R2(Fe);
290
- return e || await r10.generateKey({ name: Je, length: Tn }, false, ["encrypt", "decrypt"]);
289
+ let { subtle: r10 } = window.crypto, e = await R2(Ue);
290
+ return e || await r10.generateKey({ name: We, length: Tn }, false, ["encrypt", "decrypt"]);
291
291
  }
292
292
  async function Dt(r10, e) {
293
293
  let t = await In(), s = await bn();
294
294
  if (!t || !s || !r10) return;
295
- let n = kt(r10), { subtle: o } = window.crypto, i = await o.encrypt({ name: Je, iv: t }, s, n), a = _t(i);
296
- await S2(`${Ue}_${e}`, a), await S2(Fe, s), await S2(We, t);
295
+ let n = kt(r10), { subtle: o } = window.crypto, i = await o.encrypt({ name: We, iv: t }, s, n), a = _t(i);
296
+ await S2(`${qe}_${e}`, a), await S2(Ue, s), await S2(Fe, t);
297
297
  }
298
298
  async function qt(r10) {
299
- let e = await R2(`${Ue}_${r10}`), t = await R2(We), s = await R2(Fe);
300
- if (!t || !e || !s || !ne()) return;
301
- let { subtle: n } = window.crypto, o = await n.decrypt({ name: Je, iv: t }, s, kt(e));
299
+ let e = await R2(`${qe}_${r10}`), t = await R2(Fe), s = await R2(Ue);
300
+ if (!t || !e || !s || !re()) return;
301
+ let { subtle: n } = window.crypto, o = await n.decrypt({ name: We, iv: t }, s, kt(e));
302
302
  return _t(o);
303
303
  }
304
- function Ge(r10, e) {
304
+ function Je(r10, e) {
305
305
  return e ? new URL(r10, e) : new URL(r10);
306
306
  }
307
- function wn(r10) {
308
- let e = Object.getPrototypeOf(r10), t = [e];
309
- for (; e !== f2.prototype; ) e = Object.getPrototypeOf(e), t.push(e);
310
- return t;
311
- }
312
- function Jt(r10) {
307
+ function Wt(r10) {
313
308
  return r10.compat && r10.compat[m2.sdkName] != null ? typeof r10.compat[m2.sdkName] == "string" ? ot(it(m2.version), r10.compat[m2.sdkName]) : !!r10.compat[m2.sdkName] : true;
314
309
  }
315
- function Sn(r10, e, t) {
310
+ function wn(r10, e, t) {
316
311
  return !e && !t ? `${r10}_eth_mainnet` : t ? `${r10}_${JSON.stringify(t)}` : e ? typeof e == "string" ? `${r10}_eth_${e}` : `${r10}_${e.rpcUrl}_${e.chainId}_${e.chainType}` : `${r10}_unknown`;
317
312
  }
318
- function xn(r10) {
313
+ function Sn(r10) {
319
314
  let e = r10?.extensions ?? [], t = {}, s = [];
320
315
  if (Array.isArray(e) ? e.forEach((n) => {
321
- Jt(n) ? (n.init(this), n.name && (this[n.name] = n), n instanceof X2.Internal && (te(n.config) || (t[n.name] = n.config))) : s.push(n);
316
+ Wt(n) ? (n.init(this), n.name && (this[n.name] = n), ee(n.config) || (t[n.name] = n.config)) : s.push(n);
322
317
  }) : Object.keys(e).forEach((n) => {
323
- if (Jt(e[n])) {
318
+ if (Wt(e[n])) {
324
319
  e[n].init(this);
325
320
  let o = e[n];
326
- this[n] = o, o instanceof X2.Internal && (te(o.config) || (t[e[n].name] = o.config));
321
+ this[n] = o, ee(o.config) || (t[e[n].name] = o.config);
327
322
  } else s.push(e[n]);
328
323
  }), s.length) throw Et(s);
329
324
  return t;
330
325
  }
331
- function Mn(r10, e) {
326
+ function xn(r10, e) {
332
327
  return e && Array.isArray(r10) ? r10.find((t) => t.id === e) : r10;
333
328
  }
334
- function Gt(r10, e) {
335
- let t = e.data.response?.id, s = Mn(r10, t);
329
+ function Jt(r10, e) {
330
+ let t = e.data.response?.id, s = xn(r10, t);
336
331
  if (t && s) {
337
332
  let n = new K(s).applyResult(e.data.response.result).applyError(e.data.response.error);
338
333
  return { id: t, response: n };
339
334
  }
340
335
  return {};
341
336
  }
342
- async function Kt(r10, e, t) {
337
+ async function Gt(r10, e, t) {
343
338
  let s = await R2("rt"), n;
344
339
  if (m2.platform === "web") try {
345
340
  n = await R2("jwt") ?? await Pt();
@@ -351,10 +346,10 @@ async function Kt(r10, e, t) {
351
346
  let i = await qt(t);
352
347
  return i && (o.deviceShare = i), o;
353
348
  }
354
- async function jt(r10) {
349
+ async function Kt(r10) {
355
350
  r10.data.rt && await S2("rt", r10.data.rt);
356
351
  }
357
- function Vt(r10, e) {
352
+ function jt(r10, e) {
358
353
  let t = null;
359
354
  return function(...s) {
360
355
  t && clearTimeout(t), t = setTimeout(() => {
@@ -362,9 +357,14 @@ function Vt(r10, e) {
362
357
  }, e);
363
358
  };
364
359
  }
365
- var zt, Ce, Yt, Qt, Zt, er, tr, rr, nr, sr, Nt, ir, $e, ar, h2, ee, Xe, st, cr, lr, ze, ie, Ye, Qe, z2, M, dr, J2, ur, pr, mr, hr, Er, fr, gr, yr, Rr, vr, Tr, Ir, br, Ae, Y2, Q2, Ze, et, Z2, y2, E2, Pr, wr, Sr, tt, xr, T2, Mr, Nr, Cr, Ar, $r, Lr, Or, _r, kr, Dr, ot, qr, rt, nt, Ur, Fr, ae, ce, it, m2, dt, $, U2, L2, ue, re, Yr, he, me, R2, S2, A2, Qr, Zr, en, tn, Oe, _e, Ee, It, rn, nn, St, K, Ct, De, At, f2, vn, Re, Ue, Fe, We, Je, Tn, Ie, be, we, Se, H2, xe, Wt, Ke, je, X2, Ne, Be, An, Ht, Bt, $n, He;
360
+ function $n(r10) {
361
+ let e = Object.getPrototypeOf(r10), t = [e];
362
+ for (; e !== f2.prototype; ) e = Object.getPrototypeOf(e), t.push(e);
363
+ return t;
364
+ }
365
+ var zt, Ce, Yt, Qt, Zt, er, tr, rr, nr, sr, Ct, ir, Ae, ar, h2, Z2, Xe, st, cr, lr, ze, oe, Ye, Qe, X2, M, dr, J2, ur, pr, mr, hr, Er, fr, gr, yr, Rr, vr, Tr, Ir, br, Ne, z2, Y2, Ze, et, Q2, y2, E2, Pr, wr, Sr, tt, xr, T2, Mr, Cr, Nr, Ar, $r, Lr, Or, _r, kr, Dr, ot, qr, rt, nt, Ur, Fr, ie, ae, it, m2, dt, $, U2, L2, de, te, Yr, me, pe, R2, S2, A2, Qr, Zr, en, tn, Le, Oe, he, It, rn, nn, St, K, Nt, ke, At, f2, vn, ye, qe, Ue, Fe, We, Tn, Te, Ie, Pe, we, H2, Se, Me, Ke, Nn, Bt, Vt, An, je, Ht, Ve, Be, He;
366
366
  var init_es2 = __esm({
367
- "../../node_modules/.pnpm/@magic-sdk+provider@29.1.0_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.mjs"() {
367
+ "../../node_modules/.pnpm/@magic-sdk+provider@29.4.2_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.mjs"() {
368
368
  "use strict";
369
369
  init_es();
370
370
  init_es();
@@ -393,12 +393,12 @@ var init_es2 = __esm({
393
393
  return r10;
394
394
  };
395
395
  sr = (r10, e, t) => (t = r10 != null ? zt(Zt(r10)) : {}, nr(e || !r10 || !r10.__esModule ? Ce(t, "default", { value: r10, enumerable: true }) : t, r10));
396
- Nt = tr((ls, ke) => {
396
+ Ct = tr((ls, _e) => {
397
397
  "use strict";
398
398
  var pn = Object.prototype.hasOwnProperty, I2 = "~";
399
- function se() {
399
+ function ne() {
400
400
  }
401
- Object.create && (se.prototype = /* @__PURE__ */ Object.create(null), new se().__proto__ || (I2 = false));
401
+ Object.create && (ne.prototype = /* @__PURE__ */ Object.create(null), new ne().__proto__ || (I2 = false));
402
402
  function mn(r10, e, t) {
403
403
  this.fn = r10, this.context = e, this.once = t || false;
404
404
  }
@@ -407,11 +407,11 @@ var init_es2 = __esm({
407
407
  var o = new mn(t, s || r10, n), i = I2 ? I2 + e : e;
408
408
  return r10._events[i] ? r10._events[i].fn ? r10._events[i] = [r10._events[i], o] : r10._events[i].push(o) : (r10._events[i] = o, r10._eventsCount++), r10;
409
409
  }
410
- function fe(r10, e) {
411
- --r10._eventsCount === 0 ? r10._events = new se() : delete r10._events[e];
410
+ function Ee(r10, e) {
411
+ --r10._eventsCount === 0 ? r10._events = new ne() : delete r10._events[e];
412
412
  }
413
413
  function v2() {
414
- this._events = new se(), this._eventsCount = 0;
414
+ this._events = new ne(), this._eventsCount = 0;
415
415
  }
416
416
  v2.prototype.eventNames = function() {
417
417
  var e = [], t, s;
@@ -482,32 +482,32 @@ var init_es2 = __esm({
482
482
  v2.prototype.removeListener = function(e, t, s, n) {
483
483
  var o = I2 ? I2 + e : e;
484
484
  if (!this._events[o]) return this;
485
- if (!t) return fe(this, o), this;
485
+ if (!t) return Ee(this, o), this;
486
486
  var i = this._events[o];
487
- if (i.fn) i.fn === t && (!n || i.once) && (!s || i.context === s) && fe(this, o);
487
+ if (i.fn) i.fn === t && (!n || i.once) && (!s || i.context === s) && Ee(this, o);
488
488
  else {
489
489
  for (var a = 0, c = [], d = i.length; a < d; a++) (i[a].fn !== t || n && !i[a].once || s && i[a].context !== s) && c.push(i[a]);
490
- c.length ? this._events[o] = c.length === 1 ? c[0] : c : fe(this, o);
490
+ c.length ? this._events[o] = c.length === 1 ? c[0] : c : Ee(this, o);
491
491
  }
492
492
  return this;
493
493
  };
494
494
  v2.prototype.removeAllListeners = function(e) {
495
495
  var t;
496
- return e ? (t = I2 ? I2 + e : e, this._events[t] && fe(this, t)) : (this._events = new se(), this._eventsCount = 0), this;
496
+ return e ? (t = I2 ? I2 + e : e, this._events[t] && Ee(this, t)) : (this._events = new ne(), this._eventsCount = 0), this;
497
497
  };
498
498
  v2.prototype.off = v2.prototype.removeListener;
499
499
  v2.prototype.addListener = v2.prototype.on;
500
500
  v2.prefixed = I2;
501
501
  v2.EventEmitter = v2;
502
- typeof ke < "u" && (ke.exports = v2);
502
+ typeof _e < "u" && (_e.exports = v2);
503
503
  });
504
504
  ir = Number.MAX_SAFE_INTEGER || 9007199254740991;
505
- $e = { SEMVER_SPEC_VERSION: "2.0.0", MAX_LENGTH: 256, MAX_SAFE_INTEGER: ir, MAX_SAFE_COMPONENT_LENGTH: 16 };
505
+ Ae = { SEMVER_SPEC_VERSION: "2.0.0", MAX_LENGTH: 256, MAX_SAFE_INTEGER: ir, MAX_SAFE_COMPONENT_LENGTH: 16 };
506
506
  ar = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...r10) => console.error("SEMVER", ...r10) : () => {
507
507
  };
508
508
  h2 = ar;
509
- ee = or(function(r10, e) {
510
- let { MAX_SAFE_COMPONENT_LENGTH: t } = $e, s = (e = r10.exports = {}).re = [], n = e.src = [], o = e.t = {}, i = 0, a = (c, d, l) => {
509
+ Z2 = or(function(r10, e) {
510
+ let { MAX_SAFE_COMPONENT_LENGTH: t } = Ae, s = (e = r10.exports = {}).re = [], n = e.src = [], o = e.t = {}, i = 0, a = (c, d, l) => {
511
511
  let u2 = i++;
512
512
  h2(u2, d), o[c] = u2, n[u2] = d, s[u2] = new RegExp(d, l ? "g" : void 0);
513
513
  };
@@ -520,9 +520,9 @@ var init_es2 = __esm({
520
520
  };
521
521
  cr = (r10, e) => st(e, r10);
522
522
  lr = { compareIdentifiers: st, rcompareIdentifiers: cr };
523
- ({ MAX_LENGTH: ze, MAX_SAFE_INTEGER: ie } = $e);
524
- ({ re: Ye, t: Qe } = ee);
525
- ({ compareIdentifiers: z2 } = lr);
523
+ ({ MAX_LENGTH: ze, MAX_SAFE_INTEGER: oe } = Ae);
524
+ ({ re: Ye, t: Qe } = Z2);
525
+ ({ compareIdentifiers: X2 } = lr);
526
526
  M = class r {
527
527
  constructor(e, t) {
528
528
  if (t && typeof t == "object" || (t = { loose: !!t, includePrerelease: false }), e instanceof r) {
@@ -533,13 +533,13 @@ var init_es2 = __esm({
533
533
  h2("SemVer", e, t), this.options = t, this.loose = !!t.loose, this.includePrerelease = !!t.includePrerelease;
534
534
  let s = e.trim().match(t.loose ? Ye[Qe.LOOSE] : Ye[Qe.FULL]);
535
535
  if (!s) throw new TypeError(`Invalid Version: ${e}`);
536
- if (this.raw = e, this.major = +s[1], this.minor = +s[2], this.patch = +s[3], this.major > ie || this.major < 0) throw new TypeError("Invalid major version");
537
- if (this.minor > ie || this.minor < 0) throw new TypeError("Invalid minor version");
538
- if (this.patch > ie || this.patch < 0) throw new TypeError("Invalid patch version");
536
+ if (this.raw = e, this.major = +s[1], this.minor = +s[2], this.patch = +s[3], this.major > oe || this.major < 0) throw new TypeError("Invalid major version");
537
+ if (this.minor > oe || this.minor < 0) throw new TypeError("Invalid minor version");
538
+ if (this.patch > oe || this.patch < 0) throw new TypeError("Invalid patch version");
539
539
  s[4] ? this.prerelease = s[4].split(".").map((n) => {
540
540
  if (/^[0-9]+$/.test(n)) {
541
541
  let o = +n;
542
- if (o >= 0 && o < ie) return o;
542
+ if (o >= 0 && o < oe) return o;
543
543
  }
544
544
  return n;
545
545
  }) : this.prerelease = [], this.build = s[5] ? s[5].split(".") : [], this.format();
@@ -558,7 +558,7 @@ var init_es2 = __esm({
558
558
  return e.version === this.version ? 0 : this.compareMain(e) || this.comparePre(e);
559
559
  }
560
560
  compareMain(e) {
561
- return e instanceof r || (e = new r(e, this.options)), z2(this.major, e.major) || z2(this.minor, e.minor) || z2(this.patch, e.patch);
561
+ return e instanceof r || (e = new r(e, this.options)), X2(this.major, e.major) || X2(this.minor, e.minor) || X2(this.patch, e.patch);
562
562
  }
563
563
  comparePre(e) {
564
564
  if (e instanceof r || (e = new r(e, this.options)), this.prerelease.length && !e.prerelease.length) return -1;
@@ -570,7 +570,7 @@ var init_es2 = __esm({
570
570
  if (h2("prerelease compare", t, s, n), s === void 0 && n === void 0) return 0;
571
571
  if (n === void 0) return 1;
572
572
  if (s === void 0) return -1;
573
- if (s !== n) return z2(s, n);
573
+ if (s !== n) return X2(s, n);
574
574
  } while (++t);
575
575
  }
576
576
  compareBuild(e) {
@@ -581,7 +581,7 @@ var init_es2 = __esm({
581
581
  if (h2("prerelease compare", t, s, n), s === void 0 && n === void 0) return 0;
582
582
  if (n === void 0) return 1;
583
583
  if (s === void 0) return -1;
584
- if (s !== n) return z2(s, n);
584
+ if (s !== n) return X2(s, n);
585
585
  } while (++t);
586
586
  }
587
587
  inc(e, t) {
@@ -660,49 +660,49 @@ var init_es2 = __esm({
660
660
  throw new TypeError(`Invalid operator: ${e}`);
661
661
  }
662
662
  };
663
- Ae = br;
664
- Y2 = Symbol("SemVer ANY");
665
- Q2 = class r2 {
663
+ Ne = br;
664
+ z2 = Symbol("SemVer ANY");
665
+ Y2 = class r2 {
666
666
  static get ANY() {
667
- return Y2;
667
+ return z2;
668
668
  }
669
669
  constructor(e, t) {
670
670
  if (t && typeof t == "object" || (t = { loose: !!t, includePrerelease: false }), e instanceof r2) {
671
671
  if (e.loose === !!t.loose) return e;
672
672
  e = e.value;
673
673
  }
674
- h2("comparator", e, t), this.options = t, this.loose = !!t.loose, this.parse(e), this.semver === Y2 ? this.value = "" : this.value = this.operator + this.semver.version, h2("comp", this);
674
+ h2("comparator", e, t), this.options = t, this.loose = !!t.loose, this.parse(e), this.semver === z2 ? this.value = "" : this.value = this.operator + this.semver.version, h2("comp", this);
675
675
  }
676
676
  parse(e) {
677
677
  let t = this.options.loose ? Ze[et.COMPARATORLOOSE] : Ze[et.COMPARATOR], s = e.match(t);
678
678
  if (!s) throw new TypeError(`Invalid comparator: ${e}`);
679
- this.operator = s[1] !== void 0 ? s[1] : "", this.operator === "=" && (this.operator = ""), s[2] ? this.semver = new M(s[2], this.options.loose) : this.semver = Y2;
679
+ this.operator = s[1] !== void 0 ? s[1] : "", this.operator === "=" && (this.operator = ""), s[2] ? this.semver = new M(s[2], this.options.loose) : this.semver = z2;
680
680
  }
681
681
  toString() {
682
682
  return this.value;
683
683
  }
684
684
  test(e) {
685
- if (h2("Comparator.test", e, this.options.loose), this.semver === Y2 || e === Y2) return true;
685
+ if (h2("Comparator.test", e, this.options.loose), this.semver === z2 || e === z2) return true;
686
686
  if (typeof e == "string") try {
687
687
  e = new M(e, this.options);
688
688
  } catch {
689
689
  return false;
690
690
  }
691
- return Ae(e, this.operator, this.semver, this.options);
691
+ return Ne(e, this.operator, this.semver, this.options);
692
692
  }
693
693
  intersects(e, t) {
694
694
  if (!(e instanceof r2)) throw new TypeError("a Comparator is required");
695
- if (t && typeof t == "object" || (t = { loose: !!t, includePrerelease: false }), this.operator === "") return this.value === "" || new Z2(e.value, t).test(this.value);
696
- if (e.operator === "") return e.value === "" || new Z2(this.value, t).test(e.semver);
697
- let s = !(this.operator !== ">=" && this.operator !== ">" || e.operator !== ">=" && e.operator !== ">"), n = !(this.operator !== "<=" && this.operator !== "<" || e.operator !== "<=" && e.operator !== "<"), o = this.semver.version === e.semver.version, i = !(this.operator !== ">=" && this.operator !== "<=" || e.operator !== ">=" && e.operator !== "<="), a = Ae(this.semver, "<", e.semver, t) && (this.operator === ">=" || this.operator === ">") && (e.operator === "<=" || e.operator === "<"), c = Ae(this.semver, ">", e.semver, t) && (this.operator === "<=" || this.operator === "<") && (e.operator === ">=" || e.operator === ">");
695
+ if (t && typeof t == "object" || (t = { loose: !!t, includePrerelease: false }), this.operator === "") return this.value === "" || new Q2(e.value, t).test(this.value);
696
+ if (e.operator === "") return e.value === "" || new Q2(this.value, t).test(e.semver);
697
+ let s = !(this.operator !== ">=" && this.operator !== ">" || e.operator !== ">=" && e.operator !== ">"), n = !(this.operator !== "<=" && this.operator !== "<" || e.operator !== "<=" && e.operator !== "<"), o = this.semver.version === e.semver.version, i = !(this.operator !== ">=" && this.operator !== "<=" || e.operator !== ">=" && e.operator !== "<="), a = Ne(this.semver, "<", e.semver, t) && (this.operator === ">=" || this.operator === ">") && (e.operator === "<=" || e.operator === "<"), c = Ne(this.semver, ">", e.semver, t) && (this.operator === "<=" || this.operator === "<") && (e.operator === ">=" || e.operator === ">");
698
698
  return s || n || o && i || a || c;
699
699
  }
700
700
  };
701
- ({ re: Ze, t: et } = ee);
702
- Z2 = class r3 {
701
+ ({ re: Ze, t: et } = Z2);
702
+ Q2 = class r3 {
703
703
  constructor(e, t) {
704
704
  if (t && typeof t == "object" || (t = { loose: !!t, includePrerelease: false }), e instanceof r3) return e.loose === !!t.loose && e.includePrerelease === !!t.includePrerelease ? e : new r3(e.raw, t);
705
- if (e instanceof Q2) return this.raw = e.value, this.set = [[e]], this.format(), this;
705
+ if (e instanceof Y2) return this.raw = e.value, this.set = [[e]], this.format(), this;
706
706
  if (this.options = t, this.loose = !!t.loose, this.includePrerelease = !!t.includePrerelease, this.raw = e, this.set = e.split(/\s*\|\|\s*/).map((s) => this.parseRange(s.trim())).filter((s) => s.length), !this.set.length) throw new TypeError(`Invalid SemVer Range: ${e}`);
707
707
  this.format();
708
708
  }
@@ -718,7 +718,7 @@ var init_es2 = __esm({
718
718
  let s = t ? y2[E2.HYPHENRANGELOOSE] : y2[E2.HYPHENRANGE];
719
719
  e = e.replace(s, kr(this.options.includePrerelease)), h2("hyphen replace", e), e = e.replace(y2[E2.COMPARATORTRIM], Pr), h2("comparator trim", e, y2[E2.COMPARATORTRIM]), e = (e = (e = e.replace(y2[E2.TILDETRIM], wr)).replace(y2[E2.CARETTRIM], Sr)).split(/\s+/).join(" ");
720
720
  let n = t ? y2[E2.COMPARATORLOOSE] : y2[E2.COMPARATOR];
721
- return e.split(" ").map((o) => xr(o, this.options)).join(" ").split(/\s+/).map((o) => _r(o, this.options)).filter(this.options.loose ? (o) => !!o.match(n) : () => true).map((o) => new Q2(o, this.options));
721
+ return e.split(" ").map((o) => xr(o, this.options)).join(" ").split(/\s+/).map((o) => _r(o, this.options)).filter(this.options.loose ? (o) => !!o.match(n) : () => true).map((o) => new Y2(o, this.options));
722
722
  }
723
723
  intersects(e, t) {
724
724
  if (!(e instanceof r3)) throw new TypeError("a Range is required");
@@ -735,23 +735,23 @@ var init_es2 = __esm({
735
735
  return false;
736
736
  }
737
737
  };
738
- ({ re: y2, t: E2, comparatorTrimReplace: Pr, tildeTrimReplace: wr, caretTrimReplace: Sr } = ee);
738
+ ({ re: y2, t: E2, comparatorTrimReplace: Pr, tildeTrimReplace: wr, caretTrimReplace: Sr } = Z2);
739
739
  tt = (r10, e) => {
740
740
  let t = true, s = r10.slice(), n = s.pop();
741
741
  for (; t && s.length; ) t = s.every((o) => n.intersects(o, e)), n = s.pop();
742
742
  return t;
743
743
  };
744
- xr = (r10, e) => (h2("comp", r10, e), r10 = Cr(r10, e), h2("caret", r10), r10 = Mr(r10, e), h2("tildes", r10), r10 = $r(r10, e), h2("xrange", r10), r10 = Or(r10, e), h2("stars", r10), r10);
744
+ xr = (r10, e) => (h2("comp", r10, e), r10 = Nr(r10, e), h2("caret", r10), r10 = Mr(r10, e), h2("tildes", r10), r10 = $r(r10, e), h2("xrange", r10), r10 = Or(r10, e), h2("stars", r10), r10);
745
745
  T2 = (r10) => !r10 || r10.toLowerCase() === "x" || r10 === "*";
746
- Mr = (r10, e) => r10.trim().split(/\s+/).map((t) => Nr(t, e)).join(" ");
747
- Nr = (r10, e) => {
746
+ Mr = (r10, e) => r10.trim().split(/\s+/).map((t) => Cr(t, e)).join(" ");
747
+ Cr = (r10, e) => {
748
748
  let t = e.loose ? y2[E2.TILDELOOSE] : y2[E2.TILDE];
749
749
  return r10.replace(t, (s, n, o, i, a) => {
750
750
  let c;
751
751
  return h2("tilde", r10, s, n, o, i, a), T2(n) ? c = "" : T2(o) ? c = `>=${n}.0.0 <${+n + 1}.0.0-0` : T2(i) ? c = `>=${n}.${o}.0 <${n}.${+o + 1}.0-0` : a ? (h2("replaceTilde pr", a), c = `>=${n}.${o}.${i}-${a} <${n}.${+o + 1}.0-0`) : c = `>=${n}.${o}.${i} <${n}.${+o + 1}.0-0`, h2("tilde return", c), c;
752
752
  });
753
753
  };
754
- Cr = (r10, e) => r10.trim().split(/\s+/).map((t) => Ar(t, e)).join(" ");
754
+ Nr = (r10, e) => r10.trim().split(/\s+/).map((t) => Ar(t, e)).join(" ");
755
755
  Ar = (r10, e) => {
756
756
  h2("caret", r10, e);
757
757
  let t = e.loose ? y2[E2.CARETLOOSE] : y2[E2.CARET], s = e.includePrerelease ? "-0" : "";
@@ -776,7 +776,7 @@ var init_es2 = __esm({
776
776
  Dr = (r10, e, t) => {
777
777
  for (let s = 0; s < r10.length; s++) if (!r10[s].test(e)) return false;
778
778
  if (e.prerelease.length && !t.includePrerelease) {
779
- for (let s = 0; s < r10.length; s++) if (h2(r10[s].semver), r10[s].semver !== Q2.ANY && r10[s].semver.prerelease.length > 0) {
779
+ for (let s = 0; s < r10.length; s++) if (h2(r10[s].semver), r10[s].semver !== Y2.ANY && r10[s].semver.prerelease.length > 0) {
780
780
  let n = r10[s].semver;
781
781
  if (n.major === e.major && n.minor === e.minor && n.patch === e.patch) return true;
782
782
  }
@@ -786,14 +786,14 @@ var init_es2 = __esm({
786
786
  };
787
787
  ot = (r10, e, t) => {
788
788
  try {
789
- e = new Z2(e, t);
789
+ e = new Q2(e, t);
790
790
  } catch {
791
791
  return false;
792
792
  }
793
793
  return e.test(r10);
794
794
  };
795
- ({ MAX_LENGTH: qr } = $e);
796
- ({ re: rt, t: nt } = ee);
795
+ ({ MAX_LENGTH: qr } = Ae);
796
+ ({ re: rt, t: nt } = Z2);
797
797
  Ur = (r10, e) => {
798
798
  if (e && typeof e == "object" || (e = { loose: !!e, includePrerelease: false }), r10 instanceof M) return r10;
799
799
  if (typeof r10 != "string" || r10.length > qr || !(e.loose ? rt[nt.LOOSE] : rt[nt.FULL]).test(r10)) return null;
@@ -804,16 +804,16 @@ var init_es2 = __esm({
804
804
  }
805
805
  };
806
806
  Fr = Ur;
807
- ({ re: ae, t: ce } = ee);
807
+ ({ re: ie, t: ae } = Z2);
808
808
  it = (r10, e) => {
809
809
  if (r10 instanceof M) return r10;
810
810
  if (typeof r10 == "number" && (r10 = String(r10)), typeof r10 != "string") return null;
811
811
  let t = null;
812
812
  if ((e = e || {}).rtl) {
813
813
  let s;
814
- for (; (s = ae[ce.COERCERTL].exec(r10)) && (!t || t.index + t[0].length !== r10.length); ) t && s.index + s[0].length === t.index + t[0].length || (t = s), ae[ce.COERCERTL].lastIndex = s.index + s[1].length + s[2].length;
815
- ae[ce.COERCERTL].lastIndex = -1;
816
- } else t = r10.match(ae[ce.COERCE]);
814
+ for (; (s = ie[ae.COERCERTL].exec(r10)) && (!t || t.index + t[0].length !== r10.length); ) t && s.index + s[0].length === t.index + t[0].length || (t = s), ie[ae.COERCERTL].lastIndex = s.index + s[1].length + s[2].length;
815
+ ie[ae.COERCERTL].lastIndex = -1;
816
+ } else t = r10.match(ie[ae.COERCE]);
817
817
  return t === null ? null : Fr(`${t[2]}.${t[3] || "0"}.${t[4] || "0"}`, e);
818
818
  };
819
819
  m2 = {};
@@ -849,7 +849,7 @@ var init_es2 = __esm({
849
849
  console.warn(this.message);
850
850
  }
851
851
  };
852
- ue = class r6 extends Error {
852
+ de = class r6 extends Error {
853
853
  constructor(t, s, n, o) {
854
854
  super(`Magic Extension Error (${t.name}): [${s}] ${n}`);
855
855
  this.code = s;
@@ -859,7 +859,7 @@ var init_es2 = __esm({
859
859
  }
860
860
  __proto__ = Error;
861
861
  };
862
- re = class {
862
+ te = class {
863
863
  constructor(e, t, s) {
864
864
  this.code = t;
865
865
  this.rawMessage = s;
@@ -871,8 +871,8 @@ var init_es2 = __esm({
871
871
  }
872
872
  };
873
873
  Yr = zr();
874
- he = {};
875
- rr(he, { clear: () => Qr, getItem: () => R2, iterate: () => Oe, key: () => en, keys: () => tn, length: () => Zr, removeItem: () => A2, setItem: () => S2 });
874
+ me = {};
875
+ rr(me, { clear: () => Qr, getItem: () => R2, iterate: () => Le, key: () => en, keys: () => tn, length: () => Zr, removeItem: () => A2, setItem: () => S2 });
876
876
  R2 = O2("getItem");
877
877
  S2 = O2("setItem");
878
878
  A2 = O2("removeItem");
@@ -880,9 +880,9 @@ var init_es2 = __esm({
880
880
  Zr = O2("length");
881
881
  en = O2("key");
882
882
  tn = O2("keys");
883
- Oe = O2("iterate");
884
- _e = "STORE_KEY_PRIVATE_KEY";
885
- Ee = "STORE_KEY_PUBLIC_JWK";
883
+ Le = O2("iterate");
884
+ Oe = "STORE_KEY_PRIVATE_KEY";
885
+ he = "STORE_KEY_PUBLIC_JWK";
886
886
  It = "ECDSA";
887
887
  rn = "P-256";
888
888
  nn = { name: It, namedCurve: rn };
@@ -911,8 +911,8 @@ var init_es2 = __esm({
911
911
  return { jsonrpc: this._jsonrpc, id: this._id, result: this._result, error: this._error };
912
912
  }
913
913
  };
914
- Ct = sr(Nt());
915
- De = class extends Ct.default {
914
+ Nt = sr(Ct());
915
+ ke = class extends Nt.default {
916
916
  };
917
917
  At = Symbol("isPromiEvent");
918
918
  f2 = class {
@@ -926,7 +926,7 @@ var init_es2 = __esm({
926
926
  if (this.sdk.thirdPartyWallets.isConnected && !Z.includes(e.method)) return b2((i, a) => {
927
927
  this.sdk.thirdPartyWallets.requestOverride(e).then(i).catch(a);
928
928
  });
929
- let t = this.overlay.post(x.MAGIC_HANDLE_REQUEST, F2(e)), s = b2((o, i) => {
929
+ let t = this.overlay.post(y.MAGIC_HANDLE_REQUEST, F2(e)), s = b2((o, i) => {
930
930
  t.then((a) => {
931
931
  if (n(), a.hasError) i(new U2(a.payload.error));
932
932
  else if (a.hasResult) o(a.payload.result);
@@ -951,10 +951,10 @@ var init_es2 = __esm({
951
951
  }
952
952
  };
953
953
  vn = { "magic-sdk": "v18.0.0", "@magic-sdk/react-native": "v14.0.0", "@magic-sdk/react-native-bare": "v19.0.0", "@magic-sdk/react-native-expo": "v19.0.0" };
954
- Re = class extends f2 {
954
+ ye = class extends f2 {
955
955
  loginWithMagicLink(e) {
956
956
  let t = m2.sdkName === "@magic-sdk/react-native" || m2.sdkName === "@magic-sdk/react-native-bare" || m2.sdkName === "@magic-sdk/react-native-expo";
957
- if (t && Lt(m2.version, 19)) throw new Error("loginWithMagicLink() is deprecated for this package, please utlize a passcode method like loginWithSMS or loginWithEmailOTP instead.");
957
+ if (t && Lt(m2.version, 19)) throw new Error("loginWithMagicLink() is deprecated for this package, please utilize a passcode method like loginWithSMS or loginWithEmailOTP instead.");
958
958
  t && Rt({ method: "auth.loginWithMagicLink()", removalVersions: vn, useInstead: "auth.loginWithEmailOTP()" }).log();
959
959
  let { email: s, showUI: n = true, redirectURI: o, overrides: i, lifespan: a } = e, c = p(this.sdk.testMode ? g.LoginWithMagicLinkTestMode : g.LoginWithMagicLink, [{ email: s, showUI: n, redirectURI: o, overrides: i, lifespan: a }]);
960
960
  return this.request(c);
@@ -971,16 +971,16 @@ var init_es2 = __esm({
971
971
  let { email: t, showUI: s, deviceCheckUI: n, overrides: o, lifespan: i } = e, a = p(this.sdk.testMode ? g.LoginWithEmailOTPTestMode : g.LoginWithEmailOTP, [{ email: t, showUI: s, deviceCheckUI: n, overrides: o, lifespan: i }]), c = this.request(a);
972
972
  return !n && c && c.on(O.Retry, () => {
973
973
  this.createIntermediaryEvent(O.Retry, a.id)();
974
- }), !s && c && (c.on(R.VerifyEmailOtp, (d) => {
975
- this.createIntermediaryEvent(R.VerifyEmailOtp, a.id)(d);
976
- }), c.on(R.VerifyMFACode, (d) => {
977
- this.createIntermediaryEvent(R.VerifyMFACode, a.id)(d);
978
- }), c.on(R.LostDevice, () => {
979
- this.createIntermediaryEvent(R.LostDevice, a.id)();
980
- }), c.on(R.VerifyRecoveryCode, (d) => {
981
- this.createIntermediaryEvent(R.VerifyRecoveryCode, a.id)(d);
982
- }), c.on(R.Cancel, () => {
983
- this.createIntermediaryEvent(R.Cancel, a.id)();
974
+ }), !s && c && (c.on(I.VerifyEmailOtp, (d) => {
975
+ this.createIntermediaryEvent(I.VerifyEmailOtp, a.id)(d);
976
+ }), c.on(I.VerifyMFACode, (d) => {
977
+ this.createIntermediaryEvent(I.VerifyMFACode, a.id)(d);
978
+ }), c.on(I.LostDevice, () => {
979
+ this.createIntermediaryEvent(I.LostDevice, a.id)();
980
+ }), c.on(I.VerifyRecoveryCode, (d) => {
981
+ this.createIntermediaryEvent(I.VerifyRecoveryCode, a.id)(d);
982
+ }), c.on(I.Cancel, () => {
983
+ this.createIntermediaryEvent(I.Cancel, a.id)();
984
984
  })), c;
985
985
  }
986
986
  loginWithCredential(e) {
@@ -1016,12 +1016,12 @@ var init_es2 = __esm({
1016
1016
  })), o;
1017
1017
  }
1018
1018
  };
1019
- Ue = "ds";
1020
- Fe = "ek";
1021
- We = "iv";
1022
- Je = "AES-GCM";
1019
+ qe = "ds";
1020
+ Ue = "ek";
1021
+ Fe = "iv";
1022
+ We = "AES-GCM";
1023
1023
  Tn = 256;
1024
- Ie = class extends f2 {
1024
+ Te = class extends f2 {
1025
1025
  getIdToken(e) {
1026
1026
  let t = p(this.sdk.testMode ? g.GetIdTokenTestMode : g.GetIdToken, [e]);
1027
1027
  return this.request(t);
@@ -1047,7 +1047,7 @@ var init_es2 = __esm({
1047
1047
  });
1048
1048
  }
1049
1049
  logout() {
1050
- return A2(this.localForageIsLoggedInKey), ve(), b2(async (e, t) => {
1050
+ return A2(this.localForageIsLoggedInKey), Re(), b2(async (e, t) => {
1051
1051
  try {
1052
1052
  let s = p(this.sdk.testMode ? g.LogoutTestMode : g.Logout), n = await this.request(s);
1053
1053
  this.sdk.useStorageCache && this.emitUserLoggedOut(n), e(n);
@@ -1125,7 +1125,7 @@ var init_es2 = __esm({
1125
1125
  localForageIsLoggedInKey = "magic_auth_is_logged_in";
1126
1126
  userLoggedOutCallbacks = [];
1127
1127
  };
1128
- be = class extends f2 {
1128
+ Ie = class extends f2 {
1129
1129
  connectWithUI(e) {
1130
1130
  let t = b2(async (s, n) => {
1131
1131
  try {
@@ -1165,7 +1165,7 @@ var init_es2 = __esm({
1165
1165
  return this.request(p(g.SendGaslessTransaction, [e, t]));
1166
1166
  }
1167
1167
  };
1168
- we = class extends f2 {
1168
+ Pe = class extends f2 {
1169
1169
  eventListeners = [];
1170
1170
  enabledWallets = {};
1171
1171
  isConnected = false;
@@ -1249,12 +1249,12 @@ var init_es2 = __esm({
1249
1249
  });
1250
1250
  }
1251
1251
  };
1252
- ({ createBoundEmitterMethod: Se, createChainingEmitterMethod: H2 } = ge());
1253
- xe = class extends f2 {
1252
+ ({ createBoundEmitterMethod: we, createChainingEmitterMethod: H2 } = fe());
1253
+ Se = class extends f2 {
1254
1254
  isMagic = true;
1255
1255
  sendAsync(e, t) {
1256
1256
  if (!t) throw ft({ procedure: "Magic.rpcProvider.sendAsync", argument: 1, expected: "function", received: t === null ? "null" : typeof t });
1257
- if (Array.isArray(e)) this.overlay.post(x.MAGIC_HANDLE_REQUEST, e.map((s) => {
1257
+ if (Array.isArray(e)) this.overlay.post(y.MAGIC_HANDLE_REQUEST, e.map((s) => {
1258
1258
  let n = F2(s);
1259
1259
  return this.prefixPayloadMethodForTestMode(n), n;
1260
1260
  })).then((s) => {
@@ -1262,7 +1262,7 @@ var init_es2 = __esm({
1262
1262
  });
1263
1263
  else {
1264
1264
  let s = F2(e);
1265
- this.prefixPayloadMethodForTestMode(s), this.overlay.post(x.MAGIC_HANDLE_REQUEST, s).then((n) => {
1265
+ this.prefixPayloadMethodForTestMode(s), this.overlay.post(y.MAGIC_HANDLE_REQUEST, s).then((n) => {
1266
1266
  t(n.hasError ? new U2(n.payload.error) : null, n.payload);
1267
1267
  });
1268
1268
  }
@@ -1296,52 +1296,12 @@ var init_es2 = __esm({
1296
1296
  off = H2("off", this);
1297
1297
  removeListener = H2("removeListener", this);
1298
1298
  removeAllListeners = H2("removeAllListeners", this);
1299
- emit = Se("emit");
1300
- eventNames = Se("eventNames");
1301
- listeners = Se("listeners");
1302
- listenerCount = Se("listenerCount");
1303
- };
1304
- Wt = ["request", "overlay", "sdk"];
1305
- Ke = class extends f2 {
1306
- compat;
1307
- __sdk_access_field_descriptors__ = /* @__PURE__ */ new Map();
1308
- __is_initialized__ = false;
1309
- utils = { createPromiEvent: b2, isPromiEvent: $t, encodeJSON: le, decodeJSON: at, createJsonRpcRequestPayload: p, standardizeJsonRpcRequestPayload: F2, storage: he };
1310
- constructor() {
1311
- super(void 0);
1312
- let e = [this, ...wn(this)];
1313
- Wt.forEach((t) => {
1314
- let s = e.map((a) => Object.getOwnPropertyDescriptor(a, t)), n = s.findIndex((a) => !!a), o = n > 0, i = s[n];
1315
- i && (this.__sdk_access_field_descriptors__.set(t, { descriptor: i, isPrototypeField: o }), Object.defineProperty(this, t, { configurable: true, get: () => {
1316
- throw ht(t);
1317
- } }));
1318
- });
1319
- }
1320
- init(e) {
1321
- this.__is_initialized__ || (Wt.forEach((t) => {
1322
- if (this.__sdk_access_field_descriptors__.has(t)) {
1323
- let { descriptor: s, isPrototypeField: n } = this.__sdk_access_field_descriptors__.get(t);
1324
- n ? delete this[t] : Object.defineProperty(this, t, s);
1325
- }
1326
- }), this.sdk = e, this.__is_initialized__ = true);
1327
- }
1328
- createDeprecationWarning(e) {
1329
- let { method: t, removalVersion: s, useInstead: n } = e, o = n ? ` Use \`${n}\` instead.` : "", i = `\`${t}\` will be removed from this Extension in version \`${s}\`.${o}`;
1330
- return new re(this, "DEPRECATION_NOTICE", i);
1331
- }
1332
- createWarning(e, t) {
1333
- return new re(this, e, t);
1334
- }
1335
- createError(e, t, s) {
1336
- return new ue(this, e, t, s);
1337
- }
1338
- };
1339
- je = class extends Ke {
1299
+ emit = we("emit");
1300
+ eventNames = we("eventNames");
1301
+ listeners = we("listeners");
1302
+ listenerCount = we("listenerCount");
1340
1303
  };
1341
- X2 = class {
1342
- static Internal = je;
1343
- };
1344
- Ne = class extends f2 {
1304
+ Me = class extends f2 {
1345
1305
  purchase(e) {
1346
1306
  let t = p(g.NFTPurchase, [e]);
1347
1307
  return this.request(t);
@@ -1364,15 +1324,15 @@ var init_es2 = __esm({
1364
1324
  return this.request(t);
1365
1325
  }
1366
1326
  };
1367
- Be = class r8 {
1327
+ Ke = class r8 {
1368
1328
  constructor(e, t) {
1369
1329
  this.apiKey = e;
1370
1330
  if (!e) throw ut();
1371
1331
  m2.platform === "react-native" && t?.endpoint && yt().log();
1372
1332
  let { defaultEndpoint: s, version: n } = m2;
1373
- this.testMode = !!t?.testMode, this.useStorageCache = !!t?.useStorageCache, this.endpoint = Ge(t?.endpoint ?? s).origin, this.auth = new Re(this), this.user = new Ie(this), this.wallet = new be(this), this.nft = new Ne(this), this.thirdPartyWallets = new we(this), this.rpcProvider = new xe(this);
1374
- let o = xn.call(this, t);
1375
- this.parameters = le({ API_KEY: this.apiKey, DOMAIN_ORIGIN: window.location ? window.location.origin : "", ETH_NETWORK: t?.network, host: Ge(this.endpoint).host, sdk: dt[m2.sdkName], version: n, ext: te(o) ? void 0 : o, locale: t?.locale || "en_US", ...m2.bundleId ? { bundleId: m2.bundleId } : {}, meta: t?.meta }), this.networkHash = Sn(this.apiKey, t?.network, te(o) ? void 0 : o), t?.deferPreload || this.preload();
1333
+ this.testMode = !!t?.testMode, this.useStorageCache = !!t?.useStorageCache, this.endpoint = Je(t?.endpoint ?? s).origin, this.auth = new ye(this), this.user = new Te(this), this.wallet = new Ie(this), this.nft = new Me(this), this.thirdPartyWallets = new Pe(this), this.rpcProvider = new Se(this);
1334
+ let o = Sn.call(this, t);
1335
+ this.parameters = ce({ API_KEY: this.apiKey, DOMAIN_ORIGIN: typeof window < "u" && window?.location ? window?.location.origin : "", ETH_NETWORK: t?.network, host: Je(this.endpoint).host, sdk: dt[m2.sdkName], version: n, ext: ee(o) ? void 0 : o, locale: t?.locale || "en_US", authConfig: t?.authConfig ? { ...t.authConfig } : void 0, ...m2.bundleId ? { bundleId: m2.bundleId } : {}, meta: t?.meta }), this.networkHash = wn(this.apiKey, t?.network, ee(o) ? void 0 : o), t?.deferPreload || this.preload();
1376
1336
  }
1377
1337
  static __overlays__ = /* @__PURE__ */ new Map();
1378
1338
  endpoint;
@@ -1397,11 +1357,11 @@ var init_es2 = __esm({
1397
1357
  await this.overlay.waitForReady();
1398
1358
  }
1399
1359
  };
1400
- An = 1e3;
1401
- Ht = 60 * An;
1402
- Bt = 5 * Ht;
1403
- $n = 60 * Ht;
1404
- He = class {
1360
+ Nn = 1e3;
1361
+ Bt = 60 * Nn;
1362
+ Vt = 5 * Bt;
1363
+ An = 60 * Bt;
1364
+ je = class {
1405
1365
  constructor(e, t, s) {
1406
1366
  this.endpoint = e;
1407
1367
  this.parameters = t;
@@ -1413,21 +1373,21 @@ var init_es2 = __esm({
1413
1373
  isConnectedToInternet = true;
1414
1374
  lastPongTime = null;
1415
1375
  heartbeatIntervalTimer = null;
1416
- heartbeatDebounce = Vt(() => {
1376
+ heartbeatDebounce = jt(() => {
1417
1377
  this.endpoint === "https://auth.magic.link/" && this.heartBeatCheck();
1418
- }, $n);
1378
+ }, An);
1419
1379
  async post(e, t) {
1420
- return qe(async (s, n) => {
1380
+ return De(async (s, n) => {
1421
1381
  if (!this.isConnectedToInternet) {
1422
1382
  let l = pt();
1423
1383
  n(l);
1424
1384
  }
1425
1385
  await this.checkRelayerExistsInDOM() || (this.isReadyForRequest = false, await this.reloadRelayer()), this.isReadyForRequest || await this.waitForReady();
1426
- let o = [], i = Array.isArray(t) ? t.map((l) => l.id) : [], a = await Kt(`${e}-${this.parameters}`, t, this.networkHash);
1386
+ let o = [], i = Array.isArray(t) ? t.map((l) => l.id) : [], a = await Gt(`${e}-${this.parameters}`, t, this.networkHash);
1427
1387
  await this._post(a);
1428
1388
  let c = (l) => (u2) => {
1429
- let { id: P2, response: w2 } = Gt(t, u2);
1430
- if (jt(u2), w2?.payload.error?.message === "User denied account access.") ve();
1389
+ let { id: P2, response: w2 } = Jt(t, u2);
1390
+ if (Kt(u2), w2?.payload.error?.message === "User denied account access.") Re();
1431
1391
  else if (u2.data.deviceShare) {
1432
1392
  let { deviceShare: Xt } = u2.data;
1433
1393
  Dt(Xt, this.networkHash);
@@ -1460,12 +1420,12 @@ var init_es2 = __esm({
1460
1420
  }
1461
1421
  heartBeatCheck() {
1462
1422
  let e = true, t = async () => {
1463
- let s = { msgType: `${x.MAGIC_PING}-${this.parameters}`, payload: [] };
1423
+ let s = { msgType: `${y.MAGIC_PING}-${this.parameters}`, payload: [] };
1464
1424
  await this._post(s);
1465
1425
  };
1466
1426
  this.heartbeatIntervalTimer = setInterval(async () => {
1467
1427
  if (this.lastPongTime) {
1468
- if (Date.now() - this.lastPongTime > Bt * 2) {
1428
+ if (Date.now() - this.lastPongTime > Vt * 2) {
1469
1429
  this.reloadRelayer(), e = true;
1470
1430
  return;
1471
1431
  }
@@ -1474,29 +1434,69 @@ var init_es2 = __esm({
1474
1434
  return;
1475
1435
  }
1476
1436
  await t(), e = false;
1477
- }, Bt);
1437
+ }, Vt);
1478
1438
  }
1479
1439
  stopHeartBeat() {
1480
1440
  this.heartbeatDebounce(), this.lastPongTime = null, this.heartbeatIntervalTimer && (clearInterval(this.heartbeatIntervalTimer), this.heartbeatIntervalTimer = null);
1481
1441
  }
1482
1442
  };
1443
+ Ht = ["request", "overlay", "sdk"];
1444
+ Ve = class extends f2 {
1445
+ compat;
1446
+ __sdk_access_field_descriptors__ = /* @__PURE__ */ new Map();
1447
+ __is_initialized__ = false;
1448
+ utils = { createPromiEvent: b2, isPromiEvent: $t, encodeJSON: ce, decodeJSON: at, createJsonRpcRequestPayload: p, standardizeJsonRpcRequestPayload: F2, storage: me };
1449
+ constructor() {
1450
+ super(void 0);
1451
+ let e = [this, ...$n(this)];
1452
+ Ht.forEach((t) => {
1453
+ let s = e.map((a) => Object.getOwnPropertyDescriptor(a, t)), n = s.findIndex((a) => !!a), o = n > 0, i = s[n];
1454
+ i && (this.__sdk_access_field_descriptors__.set(t, { descriptor: i, isPrototypeField: o }), Object.defineProperty(this, t, { configurable: true, get: () => {
1455
+ throw ht(t);
1456
+ } }));
1457
+ });
1458
+ }
1459
+ init(e) {
1460
+ this.__is_initialized__ || (Ht.forEach((t) => {
1461
+ if (this.__sdk_access_field_descriptors__.has(t)) {
1462
+ let { descriptor: s, isPrototypeField: n } = this.__sdk_access_field_descriptors__.get(t);
1463
+ n ? delete this[t] : Object.defineProperty(this, t, s);
1464
+ }
1465
+ }), this.sdk = e, this.__is_initialized__ = true);
1466
+ }
1467
+ createDeprecationWarning(e) {
1468
+ let { method: t, removalVersion: s, useInstead: n } = e, o = n ? ` Use \`${n}\` instead.` : "", i = `\`${t}\` will be removed from this Extension in version \`${s}\`.${o}`;
1469
+ return new te(this, "DEPRECATION_NOTICE", i);
1470
+ }
1471
+ createWarning(e, t) {
1472
+ return new te(this, e, t);
1473
+ }
1474
+ createError(e, t, s) {
1475
+ return new de(this, e, t, s);
1476
+ }
1477
+ };
1478
+ Be = class extends Ve {
1479
+ };
1480
+ He = class {
1481
+ static Internal = Be;
1482
+ };
1483
1483
  }
1484
1484
  });
1485
1485
 
1486
- // ../../node_modules/.pnpm/@magic-sdk+commons@25.1.0_@magic-sdk+provider@29.1.0_localforage@1.10.0__@magic-sdk+types@24.19.0/node_modules/@magic-sdk/commons/dist/es/index.mjs
1486
+ // ../../node_modules/.pnpm/@magic-sdk+commons@25.4.2_@magic-sdk+provider@29.4.2_localforage@1.10.0__@magic-sdk+types@24.21.0/node_modules/@magic-sdk/commons/dist/es/index.mjs
1487
1487
  var init_es3 = __esm({
1488
- "../../node_modules/.pnpm/@magic-sdk+commons@25.1.0_@magic-sdk+provider@29.1.0_localforage@1.10.0__@magic-sdk+types@24.19.0/node_modules/@magic-sdk/commons/dist/es/index.mjs"() {
1488
+ "../../node_modules/.pnpm/@magic-sdk+commons@25.4.2_@magic-sdk+provider@29.4.2_localforage@1.10.0__@magic-sdk+types@24.21.0/node_modules/@magic-sdk/commons/dist/es/index.mjs"() {
1489
1489
  "use strict";
1490
1490
  init_es2();
1491
1491
  init_es();
1492
1492
  }
1493
1493
  });
1494
1494
 
1495
- // ../../node_modules/.pnpm/magic-sdk@29.1.0/node_modules/magic-sdk/dist/es/index.mjs
1495
+ // ../../node_modules/.pnpm/magic-sdk@29.4.2/node_modules/magic-sdk/dist/es/index.mjs
1496
1496
  var es_exports = {};
1497
1497
  __export(es_exports, {
1498
1498
  AuthEventOnReceived: () => k,
1499
- DeepLinkPage: () => y,
1499
+ DeepLinkPage: () => x,
1500
1500
  DeviceVerificationEventEmit: () => O,
1501
1501
  DeviceVerificationEventOnReceived: () => S,
1502
1502
  DisableMFAEventEmit: () => G,
@@ -1504,20 +1504,20 @@ __export(es_exports, {
1504
1504
  EnableMFAEventEmit: () => D,
1505
1505
  EnableMFAEventOnReceived: () => w,
1506
1506
  EthChainType: () => H,
1507
- Extension: () => X2,
1508
- ExtensionError: () => ue,
1509
- ExtensionWarning: () => re,
1507
+ Extension: () => He,
1508
+ ExtensionError: () => de,
1509
+ ExtensionWarning: () => te,
1510
1510
  FarcasterLoginEventEmit: () => L,
1511
1511
  LocalStorageKeys: () => _,
1512
- LoginWithEmailOTPEventEmit: () => R,
1512
+ LoginWithEmailOTPEventEmit: () => I,
1513
1513
  LoginWithEmailOTPEventOnReceived: () => T,
1514
1514
  LoginWithMagicLinkEventEmit: () => A,
1515
- LoginWithMagicLinkEventOnReceived: () => I,
1515
+ LoginWithMagicLinkEventOnReceived: () => R,
1516
1516
  LoginWithSmsOTPEventEmit: () => N,
1517
1517
  LoginWithSmsOTPEventOnReceived: () => h,
1518
1518
  Magic: () => wt2,
1519
1519
  MagicIncomingWindowMessage: () => E,
1520
- MagicOutgoingWindowMessage: () => x,
1520
+ MagicOutgoingWindowMessage: () => y,
1521
1521
  MagicPayloadMethod: () => g,
1522
1522
  NftCheckoutIntermediaryEvents: () => Q,
1523
1523
  RPCError: () => U2,
@@ -1549,9 +1549,9 @@ function ft2(_2) {
1549
1549
  function st2(_2) {
1550
1550
  return !![].slice.call(document.querySelectorAll(".magic-iframe")).find((O3) => O3.src.includes(_2));
1551
1551
  }
1552
- var $r2, Qe2, Zr2, qr2, kr2, et2, de2, Je2, rt2, $e2, qe2, er2, pe, Te, at2, ye, wt2;
1552
+ var $r2, Qe2, Zr2, qr2, kr2, et2, de2, Je2, rt2, $e2, qe2, er2, pe2, Te2, at2, ye2, wt2;
1553
1553
  var init_es4 = __esm({
1554
- "../../node_modules/.pnpm/magic-sdk@29.1.0/node_modules/magic-sdk/dist/es/index.mjs"() {
1554
+ "../../node_modules/.pnpm/magic-sdk@29.4.2/node_modules/magic-sdk/dist/es/index.mjs"() {
1555
1555
  "use strict";
1556
1556
  init_es2();
1557
1557
  init_es2();
@@ -1568,8 +1568,8 @@ var init_es4 = __esm({
1568
1568
  throw Error('Dynamic require of "' + _2 + '" is not supported');
1569
1569
  });
1570
1570
  Je2 = (_2, y3) => () => (y3 || _2((y3 = { exports: {} }).exports, y3), y3.exports);
1571
- rt2 = (_2, y3, O3, C3) => {
1572
- if (y3 && typeof y3 == "object" || typeof y3 == "function") for (let W2 of qr2(y3)) !et2.call(_2, W2) && W2 !== O3 && Qe2(_2, W2, { get: () => y3[W2], enumerable: !(C3 = Zr2(y3, W2)) || C3.enumerable });
1571
+ rt2 = (_2, y3, O3, C2) => {
1572
+ if (y3 && typeof y3 == "object" || typeof y3 == "function") for (let W2 of qr2(y3)) !et2.call(_2, W2) && W2 !== O3 && Qe2(_2, W2, { get: () => y3[W2], enumerable: !(C2 = Zr2(y3, W2)) || C2.enumerable });
1573
1573
  return _2;
1574
1574
  };
1575
1575
  $e2 = (_2, y3, O3) => (O3 = _2 != null ? $r2(kr2(_2)) : {}, rt2(y3 || !_2 || !_2.__esModule ? Qe2(O3, "default", { value: _2, enumerable: true }) : O3, _2));
@@ -1584,7 +1584,7 @@ var init_es4 = __esm({
1584
1584
  }
1585
1585
  })(function() {
1586
1586
  var _2, y3, O3;
1587
- return function C3(W2, Z3, L3) {
1587
+ return (function C2(W2, Z3, L3) {
1588
1588
  function V2(K2, J3) {
1589
1589
  if (!Z3[K2]) {
1590
1590
  if (!W2[K2]) {
@@ -1598,13 +1598,13 @@ var init_es4 = __esm({
1598
1598
  W2[K2][0].call(T3.exports, function(F3) {
1599
1599
  var $2 = W2[K2][1][F3];
1600
1600
  return V2($2 || F3);
1601
- }, T3, T3.exports, C3, W2, Z3, L3);
1601
+ }, T3, T3.exports, C2, W2, Z3, L3);
1602
1602
  }
1603
1603
  return Z3[K2].exports;
1604
1604
  }
1605
1605
  for (var D2 = typeof de2 == "function" && de2, z3 = 0; z3 < L3.length; z3++) V2(L3[z3]);
1606
1606
  return V2;
1607
- }({ 1: [function(C3, W2, Z3) {
1607
+ })({ 1: [function(C2, W2, Z3) {
1608
1608
  (function(L3) {
1609
1609
  "use strict";
1610
1610
  var V2 = L3.MutationObserver || L3.WebKitMutationObserver, D2;
@@ -1640,9 +1640,9 @@ var init_es4 = __esm({
1640
1640
  T3.push(P2) === 1 && !w2 && D2();
1641
1641
  }
1642
1642
  }).call(this, typeof global < "u" ? global : typeof self < "u" ? self : typeof window < "u" ? window : {});
1643
- }, {}], 2: [function(C3, W2, Z3) {
1643
+ }, {}], 2: [function(C2, W2, Z3) {
1644
1644
  "use strict";
1645
- var L3 = C3(1);
1645
+ var L3 = C2(1);
1646
1646
  function V2() {
1647
1647
  }
1648
1648
  var D2 = {}, z3 = ["REJECTED"], K2 = ["FULFILLED"], J3 = ["PENDING"];
@@ -1657,8 +1657,8 @@ var init_es4 = __esm({
1657
1657
  if (typeof h3 != "function" && this.state === K2 || typeof A3 != "function" && this.state === z3) return this;
1658
1658
  var E3 = new this.constructor(V2);
1659
1659
  if (this.state !== J3) {
1660
- var N2 = this.state === K2 ? h3 : A3;
1661
- T3(E3, N2, this.outcome);
1660
+ var N3 = this.state === K2 ? h3 : A3;
1661
+ T3(E3, N3, this.outcome);
1662
1662
  } else this.queue.push(new w2(E3, h3, A3));
1663
1663
  return E3;
1664
1664
  };
@@ -1676,20 +1676,20 @@ var init_es4 = __esm({
1676
1676
  };
1677
1677
  function T3(h3, A3, E3) {
1678
1678
  L3(function() {
1679
- var N2;
1679
+ var N3;
1680
1680
  try {
1681
- N2 = A3(E3);
1681
+ N3 = A3(E3);
1682
1682
  } catch (H3) {
1683
1683
  return D2.reject(h3, H3);
1684
1684
  }
1685
- N2 === h3 ? D2.reject(h3, new TypeError("Cannot resolve promise with itself")) : D2.resolve(h3, N2);
1685
+ N3 === h3 ? D2.reject(h3, new TypeError("Cannot resolve promise with itself")) : D2.resolve(h3, N3);
1686
1686
  });
1687
1687
  }
1688
1688
  D2.resolve = function(h3, A3) {
1689
1689
  var E3 = P2(F3, A3);
1690
1690
  if (E3.status === "error") return D2.reject(h3, E3.value);
1691
- var N2 = E3.value;
1692
- if (N2) $2(h3, N2);
1691
+ var N3 = E3.value;
1692
+ if (N3) $2(h3, N3);
1693
1693
  else {
1694
1694
  h3.state = K2, h3.outcome = A3;
1695
1695
  for (var H3 = -1, j2 = h3.queue.length; ++H3 < j2; ) h3.queue[H3].callFulfilled(A3);
@@ -1697,7 +1697,7 @@ var init_es4 = __esm({
1697
1697
  return h3;
1698
1698
  }, D2.reject = function(h3, A3) {
1699
1699
  h3.state = z3, h3.outcome = A3;
1700
- for (var E3 = -1, N2 = h3.queue.length; ++E3 < N2; ) h3.queue[E3].callRejected(A3);
1700
+ for (var E3 = -1, N3 = h3.queue.length; ++E3 < N3; ) h3.queue[E3].callRejected(A3);
1701
1701
  return h3;
1702
1702
  };
1703
1703
  function F3(h3) {
@@ -1708,24 +1708,24 @@ var init_es4 = __esm({
1708
1708
  }
1709
1709
  function $2(h3, A3) {
1710
1710
  var E3 = false;
1711
- function N2(Q3) {
1711
+ function N3(Q3) {
1712
1712
  E3 || (E3 = true, D2.reject(h3, Q3));
1713
1713
  }
1714
1714
  function H3(Q3) {
1715
1715
  E3 || (E3 = true, D2.resolve(h3, Q3));
1716
1716
  }
1717
1717
  function j2() {
1718
- A3(H3, N2);
1718
+ A3(H3, N3);
1719
1719
  }
1720
1720
  var X3 = P2(j2);
1721
- X3.status === "error" && N2(X3.value);
1721
+ X3.status === "error" && N3(X3.value);
1722
1722
  }
1723
1723
  function P2(h3, A3) {
1724
1724
  var E3 = {};
1725
1725
  try {
1726
1726
  E3.value = h3(A3), E3.status = "success";
1727
- } catch (N2) {
1728
- E3.status = "error", E3.value = N2;
1727
+ } catch (N3) {
1728
+ E3.status = "error", E3.value = N3;
1729
1729
  }
1730
1730
  return E3;
1731
1731
  }
@@ -1742,16 +1742,16 @@ var init_es4 = __esm({
1742
1742
  function ae2(h3) {
1743
1743
  var A3 = this;
1744
1744
  if (Object.prototype.toString.call(h3) !== "[object Array]") return this.reject(new TypeError("must be an array"));
1745
- var E3 = h3.length, N2 = false;
1745
+ var E3 = h3.length, N3 = false;
1746
1746
  if (!E3) return this.resolve([]);
1747
1747
  for (var H3 = new Array(E3), j2 = 0, X3 = -1, Q3 = new this(V2); ++X3 < E3; ) ee2(h3[X3], X3);
1748
1748
  return Q3;
1749
- function ee2(oe, a) {
1750
- A3.resolve(oe).then(u2, function(v2) {
1751
- N2 || (N2 = true, D2.reject(Q3, v2));
1749
+ function ee2(oe2, a) {
1750
+ A3.resolve(oe2).then(u2, function(v2) {
1751
+ N3 || (N3 = true, D2.reject(Q3, v2));
1752
1752
  });
1753
1753
  function u2(v2) {
1754
- H3[a] = v2, ++j2 === E3 && !N2 && (N2 = true, D2.resolve(Q3, H3));
1754
+ H3[a] = v2, ++j2 === E3 && !N3 && (N3 = true, D2.resolve(Q3, H3));
1755
1755
  }
1756
1756
  }
1757
1757
  }
@@ -1759,24 +1759,24 @@ var init_es4 = __esm({
1759
1759
  function re2(h3) {
1760
1760
  var A3 = this;
1761
1761
  if (Object.prototype.toString.call(h3) !== "[object Array]") return this.reject(new TypeError("must be an array"));
1762
- var E3 = h3.length, N2 = false;
1762
+ var E3 = h3.length, N3 = false;
1763
1763
  if (!E3) return this.resolve([]);
1764
1764
  for (var H3 = -1, j2 = new this(V2); ++H3 < E3; ) X3(h3[H3]);
1765
1765
  return j2;
1766
1766
  function X3(Q3) {
1767
1767
  A3.resolve(Q3).then(function(ee2) {
1768
- N2 || (N2 = true, D2.resolve(j2, ee2));
1768
+ N3 || (N3 = true, D2.resolve(j2, ee2));
1769
1769
  }, function(ee2) {
1770
- N2 || (N2 = true, D2.reject(j2, ee2));
1770
+ N3 || (N3 = true, D2.reject(j2, ee2));
1771
1771
  });
1772
1772
  }
1773
1773
  }
1774
- }, { 1: 1 }], 3: [function(C3, W2, Z3) {
1774
+ }, { 1: 1 }], 3: [function(C2, W2, Z3) {
1775
1775
  (function(L3) {
1776
1776
  "use strict";
1777
- typeof L3.Promise != "function" && (L3.Promise = C3(2));
1777
+ typeof L3.Promise != "function" && (L3.Promise = C2(2));
1778
1778
  }).call(this, typeof global < "u" ? global : typeof self < "u" ? self : typeof window < "u" ? window : {});
1779
- }, { 2: 2 }], 4: [function(C3, W2, Z3) {
1779
+ }, { 2: 2 }], 4: [function(C2, W2, Z3) {
1780
1780
  "use strict";
1781
1781
  var L3 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1782
1782
  return typeof e;
@@ -1817,7 +1817,7 @@ var init_es4 = __esm({
1817
1817
  return o.getBlob(t.type);
1818
1818
  }
1819
1819
  }
1820
- typeof Promise > "u" && C3(3);
1820
+ typeof Promise > "u" && C2(3);
1821
1821
  var m3 = Promise;
1822
1822
  function w2(e, t) {
1823
1823
  t && e.then(function(r10) {
@@ -1853,7 +1853,7 @@ var init_es4 = __esm({
1853
1853
  return false;
1854
1854
  });
1855
1855
  }
1856
- function N2(e) {
1856
+ function N3(e) {
1857
1857
  return typeof k2 == "boolean" ? m3.resolve(k2) : E3(e).then(function(t) {
1858
1858
  return k2 = t, k2;
1859
1859
  });
@@ -1902,7 +1902,7 @@ var init_es4 = __esm({
1902
1902
  function ee2(e) {
1903
1903
  return Q3(e, false);
1904
1904
  }
1905
- function oe(e) {
1905
+ function oe2(e) {
1906
1906
  return Q3(e, true);
1907
1907
  }
1908
1908
  function a(e, t) {
@@ -1947,7 +1947,7 @@ var init_es4 = __esm({
1947
1947
  i._dbInfo.db && (i._dbInfo.db.close(), i._dbInfo.db = null);
1948
1948
  }
1949
1949
  return e.db = null, ee2(e).then(function(n) {
1950
- return e.db = n, a(e) ? oe(e) : n;
1950
+ return e.db = n, a(e) ? oe2(e) : n;
1951
1951
  }).then(function(n) {
1952
1952
  e.db = t.db = n;
1953
1953
  for (var f3 = 0; f3 < r10.length; f3++) r10[f3]._dbInfo.db = n;
@@ -1962,7 +1962,7 @@ var init_es4 = __esm({
1962
1962
  r10(null, i);
1963
1963
  } catch (n) {
1964
1964
  if (o > 0 && (!e.db || n.name === "InvalidStateError" || n.name === "NotFoundError")) return m3.resolve().then(function() {
1965
- if (!e.db || n.name === "NotFoundError" && !e.db.objectStoreNames.contains(e.storeName) && e.version <= e.db.version) return e.db && (e.version = e.db.version + 1), oe(e);
1965
+ if (!e.db || n.name === "NotFoundError" && !e.db.objectStoreNames.contains(e.storeName) && e.version <= e.db.version) return e.db && (e.version = e.db.version + 1), oe2(e);
1966
1966
  }).then(function() {
1967
1967
  return I2(e).then(function() {
1968
1968
  R3(e, t, r10, o - 1);
@@ -1974,7 +1974,7 @@ var init_es4 = __esm({
1974
1974
  function G2() {
1975
1975
  return { forages: [], db: null, dbReady: null, deferredOperations: [] };
1976
1976
  }
1977
- function fe(e) {
1977
+ function fe2(e) {
1978
1978
  var t = this, r10 = { db: null };
1979
1979
  if (e) for (var o in e) r10[o] = e[o];
1980
1980
  var i = M2[r10.name];
@@ -1991,7 +1991,7 @@ var init_es4 = __esm({
1991
1991
  return m3.all(n).then(function() {
1992
1992
  return r10.db = i.db, ee2(r10);
1993
1993
  }).then(function(d) {
1994
- return r10.db = d, a(r10, t._defaultConfig.version) ? oe(r10) : d;
1994
+ return r10.db = d, a(r10, t._defaultConfig.version) ? oe2(r10) : d;
1995
1995
  }).then(function(d) {
1996
1996
  r10.db = i.db = d, t._dbInfo = r10;
1997
1997
  for (var p2 = 0; p2 < l.length; p2++) {
@@ -2023,7 +2023,7 @@ var init_es4 = __esm({
2023
2023
  });
2024
2024
  return w2(o, t), o;
2025
2025
  }
2026
- function ue2(e, t) {
2026
+ function ue(e, t) {
2027
2027
  var r10 = this, o = new m3(function(i, n) {
2028
2028
  r10.ready().then(function() {
2029
2029
  R3(r10._dbInfo, re2, function(f3, s) {
@@ -2055,7 +2055,7 @@ var init_es4 = __esm({
2055
2055
  var i = new m3(function(n, f3) {
2056
2056
  var s;
2057
2057
  o.ready().then(function() {
2058
- return s = o._dbInfo, ae2.call(t) === "[object Blob]" ? N2(s.db).then(function(c) {
2058
+ return s = o._dbInfo, ae2.call(t) === "[object Blob]" ? N3(s.db).then(function(c) {
2059
2059
  return c ? t : u2(t);
2060
2060
  }) : t;
2061
2061
  }).then(function(c) {
@@ -2280,11 +2280,11 @@ var init_es4 = __esm({
2280
2280
  }
2281
2281
  return w2(i, t), i;
2282
2282
  }
2283
- var ur2 = { _driver: "asyncStorage", _initStorage: fe, _support: K2(), iterate: ue2, getItem: ie2, setItem: tr2, removeItem: nr2, clear: or2, length: ir2, key: ar2, keys: fr2, dropInstance: sr2 };
2283
+ var ur2 = { _driver: "asyncStorage", _initStorage: fe2, _support: K2(), iterate: ue, getItem: ie2, setItem: tr2, removeItem: nr2, clear: or2, length: ir2, key: ar2, keys: fr2, dropInstance: sr2 };
2284
2284
  function cr2() {
2285
2285
  return typeof openDatabase == "function";
2286
2286
  }
2287
- var te2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", lr2 = "~~local_forage_type~", Be2 = /^~~local_forage_type~([^~]+)~/, ve2 = "__lfsc__:", ge2 = ve2.length, be2 = "arbf", _e2 = "blob", Ne2 = "si08", xe2 = "ui08", Oe2 = "uic8", Ce2 = "si16", Le2 = "si32", Pe = "ur16", Me = "ui32", Fe2 = "fl32", Ue2 = "fl64", We2 = ge2 + be2.length, ze2 = Object.prototype.toString;
2287
+ var te2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", lr2 = "~~local_forage_type~", Be2 = /^~~local_forage_type~([^~]+)~/, ve = "__lfsc__:", ge = ve.length, be = "arbf", _e = "blob", Ne2 = "si08", xe = "ui08", Oe2 = "uic8", Ce2 = "si16", Le2 = "si32", Pe2 = "ur16", Me2 = "ui32", Fe2 = "fl32", Ue2 = "fl64", We2 = ge + be.length, ze2 = Object.prototype.toString;
2288
2288
  function Ye2(e) {
2289
2289
  var t = e.length * 0.75, r10 = e.length, o, i = 0, n, f3, s, c;
2290
2290
  e[e.length - 1] === "=" && (t--, e[e.length - 2] === "=" && t--);
@@ -2300,13 +2300,13 @@ var init_es4 = __esm({
2300
2300
  function dr2(e, t) {
2301
2301
  var r10 = "";
2302
2302
  if (e && (r10 = ze2.call(e)), e && (r10 === "[object ArrayBuffer]" || e.buffer && ze2.call(e.buffer) === "[object ArrayBuffer]")) {
2303
- var o, i = ve2;
2304
- e instanceof ArrayBuffer ? (o = e, i += be2) : (o = e.buffer, r10 === "[object Int8Array]" ? i += Ne2 : r10 === "[object Uint8Array]" ? i += xe2 : r10 === "[object Uint8ClampedArray]" ? i += Oe2 : r10 === "[object Int16Array]" ? i += Ce2 : r10 === "[object Uint16Array]" ? i += Pe : r10 === "[object Int32Array]" ? i += Le2 : r10 === "[object Uint32Array]" ? i += Me : r10 === "[object Float32Array]" ? i += Fe2 : r10 === "[object Float64Array]" ? i += Ue2 : t(new Error("Failed to get type for BinaryArray"))), t(i + we2(o));
2303
+ var o, i = ve;
2304
+ e instanceof ArrayBuffer ? (o = e, i += be) : (o = e.buffer, r10 === "[object Int8Array]" ? i += Ne2 : r10 === "[object Uint8Array]" ? i += xe : r10 === "[object Uint8ClampedArray]" ? i += Oe2 : r10 === "[object Int16Array]" ? i += Ce2 : r10 === "[object Uint16Array]" ? i += Pe2 : r10 === "[object Int32Array]" ? i += Le2 : r10 === "[object Uint32Array]" ? i += Me2 : r10 === "[object Float32Array]" ? i += Fe2 : r10 === "[object Float64Array]" ? i += Ue2 : t(new Error("Failed to get type for BinaryArray"))), t(i + we2(o));
2305
2305
  } else if (r10 === "[object Blob]") {
2306
2306
  var n = new FileReader();
2307
2307
  n.onload = function() {
2308
2308
  var f3 = lr2 + e.type + "~" + we2(this.result);
2309
- t(ve2 + _e2 + f3);
2309
+ t(ve + _e + f3);
2310
2310
  }, n.readAsArrayBuffer(e);
2311
2311
  } else try {
2312
2312
  t(JSON.stringify(e));
@@ -2315,31 +2315,31 @@ var init_es4 = __esm({
2315
2315
  }
2316
2316
  }
2317
2317
  function vr2(e) {
2318
- if (e.substring(0, ge2) !== ve2) return JSON.parse(e);
2319
- var t = e.substring(We2), r10 = e.substring(ge2, We2), o;
2320
- if (r10 === _e2 && Be2.test(t)) {
2318
+ if (e.substring(0, ge) !== ve) return JSON.parse(e);
2319
+ var t = e.substring(We2), r10 = e.substring(ge, We2), o;
2320
+ if (r10 === _e && Be2.test(t)) {
2321
2321
  var i = t.match(Be2);
2322
2322
  o = i[1], t = t.substring(i[0].length);
2323
2323
  }
2324
2324
  var n = Ye2(t);
2325
2325
  switch (r10) {
2326
- case be2:
2326
+ case be:
2327
2327
  return n;
2328
- case _e2:
2328
+ case _e:
2329
2329
  return J3([n], { type: o });
2330
2330
  case Ne2:
2331
2331
  return new Int8Array(n);
2332
- case xe2:
2332
+ case xe:
2333
2333
  return new Uint8Array(n);
2334
2334
  case Oe2:
2335
2335
  return new Uint8ClampedArray(n);
2336
2336
  case Ce2:
2337
2337
  return new Int16Array(n);
2338
- case Pe:
2338
+ case Pe2:
2339
2339
  return new Uint16Array(n);
2340
2340
  case Le2:
2341
2341
  return new Int32Array(n);
2342
- case Me:
2342
+ case Me2:
2343
2343
  return new Uint32Array(n);
2344
2344
  case Fe2:
2345
2345
  return new Float32Array(n);
@@ -2372,7 +2372,7 @@ var init_es4 = __esm({
2372
2372
  });
2373
2373
  return r10.serializer = Ie2, i;
2374
2374
  }
2375
- function ne2(e, t, r10, o, i, n) {
2375
+ function ne(e, t, r10, o, i, n) {
2376
2376
  e.executeSql(r10, o, i, function(f3, s) {
2377
2377
  s.code === s.SYNTAX_ERR ? f3.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [t.storeName], function(c, l) {
2378
2378
  l.rows.length ? n(c, s) : Ke2(c, t, function() {
@@ -2388,7 +2388,7 @@ var init_es4 = __esm({
2388
2388
  r10.ready().then(function() {
2389
2389
  var f3 = r10._dbInfo;
2390
2390
  f3.db.transaction(function(s) {
2391
- ne2(s, f3, "SELECT * FROM " + f3.storeName + " WHERE key = ? LIMIT 1", [e], function(c, l) {
2391
+ ne(s, f3, "SELECT * FROM " + f3.storeName + " WHERE key = ? LIMIT 1", [e], function(c, l) {
2392
2392
  var d = l.rows.length ? l.rows.item(0).value : null;
2393
2393
  d && (d = f3.serializer.deserialize(d)), i(d);
2394
2394
  }, function(c, l) {
@@ -2404,7 +2404,7 @@ var init_es4 = __esm({
2404
2404
  r10.ready().then(function() {
2405
2405
  var f3 = r10._dbInfo;
2406
2406
  f3.db.transaction(function(s) {
2407
- ne2(s, f3, "SELECT * FROM " + f3.storeName, [], function(c, l) {
2407
+ ne(s, f3, "SELECT * FROM " + f3.storeName, [], function(c, l) {
2408
2408
  for (var d = l.rows, p2 = d.length, S3 = 0; S3 < p2; S3++) {
2409
2409
  var B2 = d.item(S3), x2 = B2.value;
2410
2410
  if (x2 && (x2 = f3.serializer.deserialize(x2)), x2 = e(x2, B2.key, S3 + 1), x2 !== void 0) {
@@ -2430,7 +2430,7 @@ var init_es4 = __esm({
2430
2430
  var c = t, l = i._dbInfo;
2431
2431
  l.serializer.serialize(t, function(d, p2) {
2432
2432
  p2 ? s(p2) : l.db.transaction(function(S3) {
2433
- ne2(S3, l, "INSERT OR REPLACE INTO " + l.storeName + " (key, value) VALUES (?, ?)", [e, d], function() {
2433
+ ne(S3, l, "INSERT OR REPLACE INTO " + l.storeName + " (key, value) VALUES (?, ?)", [e, d], function() {
2434
2434
  f3(c);
2435
2435
  }, function(B2, x2) {
2436
2436
  s(x2);
@@ -2459,7 +2459,7 @@ var init_es4 = __esm({
2459
2459
  r10.ready().then(function() {
2460
2460
  var f3 = r10._dbInfo;
2461
2461
  f3.db.transaction(function(s) {
2462
- ne2(s, f3, "DELETE FROM " + f3.storeName + " WHERE key = ?", [e], function() {
2462
+ ne(s, f3, "DELETE FROM " + f3.storeName + " WHERE key = ?", [e], function() {
2463
2463
  i();
2464
2464
  }, function(c, l) {
2465
2465
  n(l);
@@ -2474,7 +2474,7 @@ var init_es4 = __esm({
2474
2474
  t.ready().then(function() {
2475
2475
  var n = t._dbInfo;
2476
2476
  n.db.transaction(function(f3) {
2477
- ne2(f3, n, "DELETE FROM " + n.storeName, [], function() {
2477
+ ne(f3, n, "DELETE FROM " + n.storeName, [], function() {
2478
2478
  o();
2479
2479
  }, function(s, c) {
2480
2480
  i(c);
@@ -2489,7 +2489,7 @@ var init_es4 = __esm({
2489
2489
  t.ready().then(function() {
2490
2490
  var n = t._dbInfo;
2491
2491
  n.db.transaction(function(f3) {
2492
- ne2(f3, n, "SELECT COUNT(key) as c FROM " + n.storeName, [], function(s, c) {
2492
+ ne(f3, n, "SELECT COUNT(key) as c FROM " + n.storeName, [], function(s, c) {
2493
2493
  var l = c.rows.item(0).c;
2494
2494
  o(l);
2495
2495
  }, function(s, c) {
@@ -2505,7 +2505,7 @@ var init_es4 = __esm({
2505
2505
  r10.ready().then(function() {
2506
2506
  var f3 = r10._dbInfo;
2507
2507
  f3.db.transaction(function(s) {
2508
- ne2(s, f3, "SELECT key FROM " + f3.storeName + " WHERE id = ? LIMIT 1", [e + 1], function(c, l) {
2508
+ ne(s, f3, "SELECT key FROM " + f3.storeName + " WHERE id = ? LIMIT 1", [e + 1], function(c, l) {
2509
2509
  var d = l.rows.length ? l.rows.item(0).key : null;
2510
2510
  i(d);
2511
2511
  }, function(c, l) {
@@ -2521,7 +2521,7 @@ var init_es4 = __esm({
2521
2521
  t.ready().then(function() {
2522
2522
  var n = t._dbInfo;
2523
2523
  n.db.transaction(function(f3) {
2524
- ne2(f3, n, "SELECT key FROM " + n.storeName, [], function(s, c) {
2524
+ ne(f3, n, "SELECT key FROM " + n.storeName, [], function(s, c) {
2525
2525
  for (var l = [], d = 0; d < c.rows.length; d++) l.push(c.rows.item(d).key);
2526
2526
  o(l);
2527
2527
  }, function(s, c) {
@@ -2586,7 +2586,7 @@ var init_es4 = __esm({
2586
2586
  return false;
2587
2587
  }
2588
2588
  }
2589
- function Ve(e, t) {
2589
+ function Ve2(e, t) {
2590
2590
  var r10 = e.name + "/";
2591
2591
  return e.storeName !== t.storeName && (r10 += e.storeName + "/"), r10;
2592
2592
  }
@@ -2604,7 +2604,7 @@ var init_es4 = __esm({
2604
2604
  function Br2(e) {
2605
2605
  var t = this, r10 = {};
2606
2606
  if (e) for (var o in e) r10[o] = e[o];
2607
- return r10.keyPrefix = Ve(e, t._defaultConfig), Tr2() ? (t._dbInfo = r10, r10.serializer = Ie2, m3.resolve()) : m3.reject();
2607
+ return r10.keyPrefix = Ve2(e, t._defaultConfig), Tr2() ? (t._dbInfo = r10, r10.serializer = Ie2, m3.resolve()) : m3.reject();
2608
2608
  }
2609
2609
  function Nr2(e) {
2610
2610
  var t = this, r10 = t.ready().then(function() {
@@ -2700,7 +2700,7 @@ var init_es4 = __esm({
2700
2700
  }
2701
2701
  var o = this, i;
2702
2702
  return e.name ? i = new m3(function(n) {
2703
- e.storeName ? n(Ve(e, o._defaultConfig)) : n(e.name + "/");
2703
+ e.storeName ? n(Ve2(e, o._defaultConfig)) : n(e.name + "/");
2704
2704
  }).then(function(n) {
2705
2705
  for (var f3 = localStorage.length - 1; f3 >= 0; f3--) {
2706
2706
  var s = localStorage.key(f3);
@@ -2716,9 +2716,9 @@ var init_es4 = __esm({
2716
2716
  i++;
2717
2717
  }
2718
2718
  return false;
2719
- }, Ge2 = Array.isArray || function(e) {
2719
+ }, Ge = Array.isArray || function(e) {
2720
2720
  return Object.prototype.toString.call(e) === "[object Array]";
2721
- }, ce2 = {}, je2 = {}, se = { INDEXEDDB: ur2, WEBSQL: Ar2, LOCALSTORAGE: Wr2 }, Kr2 = [se.INDEXEDDB._driver, se.WEBSQL._driver, se.LOCALSTORAGE._driver], he2 = ["dropInstance"], Ee2 = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(he2), Hr2 = { description: "", driver: Kr2.slice(), name: "localforage", size: 4980736, storeName: "keyvaluepairs", version: 1 };
2721
+ }, ce2 = {}, je2 = {}, se = { INDEXEDDB: ur2, WEBSQL: Ar2, LOCALSTORAGE: Wr2 }, Kr2 = [se.INDEXEDDB._driver, se.WEBSQL._driver, se.LOCALSTORAGE._driver], he2 = ["dropInstance"], Ee = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(he2), Hr2 = { description: "", driver: Kr2.slice(), name: "localforage", size: 4980736, storeName: "keyvaluepairs", version: 1 };
2722
2722
  function Vr(e, t) {
2723
2723
  e[t] = function() {
2724
2724
  var r10 = arguments;
@@ -2730,11 +2730,11 @@ var init_es4 = __esm({
2730
2730
  function Se2() {
2731
2731
  for (var e = 1; e < arguments.length; e++) {
2732
2732
  var t = arguments[e];
2733
- if (t) for (var r10 in t) t.hasOwnProperty(r10) && (Ge2(t[r10]) ? arguments[0][r10] = t[r10].slice() : arguments[0][r10] = t[r10]);
2733
+ if (t) for (var r10 in t) t.hasOwnProperty(r10) && (Ge(t[r10]) ? arguments[0][r10] = t[r10].slice() : arguments[0][r10] = t[r10]);
2734
2734
  }
2735
2735
  return arguments[0];
2736
2736
  }
2737
- var Gr2 = function() {
2737
+ var Gr2 = (function() {
2738
2738
  function e(t) {
2739
2739
  V2(this, e);
2740
2740
  for (var r10 in se) if (se.hasOwnProperty(r10)) {
@@ -2761,7 +2761,7 @@ var init_es4 = __esm({
2761
2761
  s(l);
2762
2762
  return;
2763
2763
  }
2764
- for (var d = Ee2.concat("_initStorage"), p2 = 0, S3 = d.length; p2 < S3; p2++) {
2764
+ for (var d = Ee.concat("_initStorage"), p2 = 0, S3 = d.length; p2 < S3; p2++) {
2765
2765
  var B2 = d[p2], x2 = !Yr2(he2, B2);
2766
2766
  if ((x2 || r10[B2]) && typeof r10[B2] != "function") {
2767
2767
  s(l);
@@ -2804,7 +2804,7 @@ var init_es4 = __esm({
2804
2804
  return T3(i, r10, r10), i;
2805
2805
  }, e.prototype.setDriver = function(r10, o, i) {
2806
2806
  var n = this;
2807
- Ge2(r10) || (r10 = [r10]);
2807
+ Ge(r10) || (r10 = [r10]);
2808
2808
  var f3 = this._getSupportedDrivers(r10);
2809
2809
  function s() {
2810
2810
  n._config.driver = n.driver();
@@ -2851,19 +2851,19 @@ var init_es4 = __esm({
2851
2851
  }
2852
2852
  return o;
2853
2853
  }, e.prototype._wrapLibraryMethodsWithReady = function() {
2854
- for (var r10 = 0, o = Ee2.length; r10 < o; r10++) Vr(this, Ee2[r10]);
2854
+ for (var r10 = 0, o = Ee.length; r10 < o; r10++) Vr(this, Ee[r10]);
2855
2855
  }, e.prototype.createInstance = function(r10) {
2856
2856
  return new e(r10);
2857
2857
  }, e;
2858
- }(), jr = new Gr2();
2858
+ })(), jr = new Gr2();
2859
2859
  W2.exports = jr;
2860
2860
  }, { 3: 3 }] }, {}, [4])(4);
2861
2861
  });
2862
2862
  });
2863
- er2 = Je2((me2, ke) => {
2863
+ er2 = Je2((me2, ke2) => {
2864
2864
  "use strict";
2865
2865
  (function(_2, y3) {
2866
- typeof me2 == "object" && typeof ke < "u" ? y3(me2) : typeof define == "function" && define.amd ? define("localforage-driver-memory", ["exports"], y3) : y3(_2.LocalforageDriverMemory = {});
2866
+ typeof me2 == "object" && typeof ke2 < "u" ? y3(me2) : typeof define == "function" && define.amd ? define("localforage-driver-memory", ["exports"], y3) : y3(_2.LocalforageDriverMemory = {});
2867
2867
  })(typeof self < "u" ? self : me2, function(_2) {
2868
2868
  "use strict";
2869
2869
  var y3 = "localforage-driver-memory";
@@ -2873,7 +2873,7 @@ var init_es4 = __esm({
2873
2873
  return a && v2 >= a.length && (a = void 0), { value: a && a[v2++], done: !a };
2874
2874
  } };
2875
2875
  }
2876
- function C3(a, u2) {
2876
+ function C2(a, u2) {
2877
2877
  a = a || [], u2 = u2 || {};
2878
2878
  try {
2879
2879
  return new Blob(a, u2);
@@ -2888,8 +2888,8 @@ var init_es4 = __esm({
2888
2888
  var u2 = a.length * 0.75, v2 = a.length;
2889
2889
  a[a.length - 1] === "=" && (u2--, a[a.length - 2] === "=" && u2--);
2890
2890
  for (var g2 = new ArrayBuffer(u2), b3 = new Uint8Array(g2), I2 = 0, R3 = 0; I2 < v2; I2 += 4) {
2891
- var G2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I2]), fe = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I2 + 1]), ie2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I2 + 2]), ue2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I2 + 3]);
2892
- b3[R3++] = G2 << 2 | fe >> 4, b3[R3++] = (fe & 15) << 4 | ie2 >> 2, b3[R3++] = (ie2 & 3) << 6 | ue2 & 63;
2891
+ var G2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I2]), fe2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I2 + 1]), ie2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I2 + 2]), ue = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I2 + 3]);
2892
+ b3[R3++] = G2 << 2 | fe2 >> 4, b3[R3++] = (fe2 & 15) << 4 | ie2 >> 2, b3[R3++] = (ie2 & 3) << 6 | ue & 63;
2893
2893
  }
2894
2894
  return g2;
2895
2895
  }
@@ -2926,7 +2926,7 @@ var init_es4 = __esm({
2926
2926
  case "arbf":
2927
2927
  return I2;
2928
2928
  case "blob":
2929
- return C3([I2], { type: g2 });
2929
+ return C2([I2], { type: g2 });
2930
2930
  case "si08":
2931
2931
  return new Int8Array(I2);
2932
2932
  case "ui08":
@@ -2997,7 +2997,7 @@ var init_es4 = __esm({
2997
2997
  function P2(a) {
2998
2998
  return typeof a != "string" && (console.warn(a + " used as a key, but it is not a string."), a = String(a)), a;
2999
2999
  }
3000
- var k2 = { bufferToString: z3, deserialize: J3, serialize: K2, stringToBuffer: D2 }, M2 = {}, ae2 = function() {
3000
+ var k2 = { bufferToString: z3, deserialize: J3, serialize: K2, stringToBuffer: D2 }, M2 = {}, ae2 = (function() {
3001
3001
  function a(u2) {
3002
3002
  this.kp = u2, this.data = {};
3003
3003
  }
@@ -3018,7 +3018,7 @@ var init_es4 = __esm({
3018
3018
  }, a.prototype.set = function(u2, v2) {
3019
3019
  this.data[u2] = v2;
3020
3020
  }, a;
3021
- }();
3021
+ })();
3022
3022
  function re2(a) {
3023
3023
  var u2 = a ? m3(a) : {}, v2 = w2(u2, this._defaultConfig), g2 = ae2.resolve(v2);
3024
3024
  return this._dbInfo = u2, this._dbInfo.serializer = k2, this._dbInfo.keyPrefix = v2, this._dbInfo.mStore = g2, Promise.resolve();
@@ -3044,7 +3044,7 @@ var init_es4 = __esm({
3044
3044
  });
3045
3045
  return T3(g2, u2), g2;
3046
3046
  }
3047
- function N2(a, u2) {
3047
+ function N3(a, u2) {
3048
3048
  var v2 = this, g2 = this.ready().then(function() {
3049
3049
  for (var b3 = v2._dbInfo.mStore, I2 = b3.keys(), R3 = 0; R3 < I2.length; R3++) {
3050
3050
  var G2 = b3.get(I2[R3]);
@@ -3092,36 +3092,36 @@ var init_es4 = __esm({
3092
3092
  u2 === void 0 && (u2 = null);
3093
3093
  var I2 = u2;
3094
3094
  return new Promise(function(R3, G2) {
3095
- g2._dbInfo.serializer.serialize(u2, function(fe, ie2) {
3095
+ g2._dbInfo.serializer.serialize(u2, function(fe2, ie2) {
3096
3096
  if (ie2) G2(ie2);
3097
3097
  else try {
3098
- g2._dbInfo.mStore.set(a, fe), R3(I2);
3099
- } catch (ue2) {
3100
- G2(ue2);
3098
+ g2._dbInfo.mStore.set(a, fe2), R3(I2);
3099
+ } catch (ue) {
3100
+ G2(ue);
3101
3101
  }
3102
3102
  });
3103
3103
  });
3104
3104
  });
3105
3105
  return T3(b3, v2), b3;
3106
3106
  }
3107
- var oe = true;
3108
- _2._support = oe, _2._driver = y3, _2._initStorage = re2, _2.clear = h3, _2.dropInstance = A3, _2.getItem = E3, _2.iterate = N2, _2.key = H3, _2.keys = j2, _2.length = X3, _2.removeItem = Q3, _2.setItem = ee2, Object.defineProperty(_2, "__esModule", { value: true });
3107
+ var oe2 = true;
3108
+ _2._support = oe2, _2._driver = y3, _2._initStorage = re2, _2.clear = h3, _2.dropInstance = A3, _2.getItem = E3, _2.iterate = N3, _2.key = H3, _2.keys = j2, _2.length = X3, _2.removeItem = Q3, _2.setItem = ee2, Object.defineProperty(_2, "__esModule", { value: true });
3109
3109
  });
3110
3110
  });
3111
- pe = $e2(qe2());
3112
- Te = $e2(er2());
3113
- at2 = { display: "block", visibility: "hidden", position: "fixed", top: "0", right: "0", width: "100%", height: "100%", borderRadius: "0", border: "none", opacity: "0", zIndex: "-1" };
3114
- ye = class extends He {
3111
+ pe2 = $e2(qe2());
3112
+ Te2 = $e2(er2());
3113
+ at2 = { display: "none", position: "fixed", top: "0", right: "0", width: "100%", height: "100%", borderRadius: "0", border: "none", opacity: "0", zIndex: "-1" };
3114
+ ye2 = class extends je {
3115
3115
  activeElement = null;
3116
3116
  iframe;
3117
- relayerSrc = Ge(`/send?params=${encodeURIComponent(this.parameters)}`, this.endpoint).href;
3117
+ relayerSrc = Je(`/send?params=${encodeURIComponent(this.parameters)}`, this.endpoint).href;
3118
3118
  init() {
3119
3119
  this.test = "hello", this.iframe = new Promise((y3) => {
3120
3120
  let O3 = () => {
3121
3121
  if (st2(encodeURIComponent(this.parameters))) Bn().log();
3122
3122
  else {
3123
- let C3 = document.createElement("iframe");
3124
- C3.classList.add("magic-iframe"), C3.dataset.magicIframeLabel = Ge(this.endpoint).host, C3.title = "Secure Modal", C3.src = this.relayerSrc, C3.allow = "clipboard-read; clipboard-write", ft2(C3), document.body.appendChild(C3), y3(C3);
3123
+ let C2 = document.createElement("iframe");
3124
+ C2.classList.add("magic-iframe"), C2.dataset.magicIframeLabel = Je(this.endpoint).host, C2.title = "Secure Modal", C2.src = this.relayerSrc, C2.allow = "clipboard-read; clipboard-write", ft2(C2), document.body.appendChild(C2), y3(C2);
3125
3125
  }
3126
3126
  };
3127
3127
  ["loaded", "interactive", "complete"].includes(document.readyState) ? O3() : window.addEventListener("load", O3, false);
@@ -3140,11 +3140,11 @@ var init_es4 = __esm({
3140
3140
  }
3141
3141
  async showOverlay() {
3142
3142
  let y3 = await this.iframe;
3143
- y3.style.visibility = "visible", y3.style.zIndex = "2147483647", y3.style.opacity = "1", this.activeElement = document.activeElement, y3.focus();
3143
+ y3.style.display = "block", y3.style.zIndex = "2147483647", y3.style.opacity = "1", this.activeElement = document.activeElement, y3.focus();
3144
3144
  }
3145
3145
  async hideOverlay() {
3146
3146
  let y3 = await this.iframe;
3147
- y3.style.visibility = "hidden", y3.style.zIndex = "-1", y3.style.opacity = "0", this.activeElement?.focus && this.activeElement.focus(), this.activeElement = null;
3147
+ y3.style.display = "none", y3.style.zIndex = "-1", y3.style.opacity = "0", this.activeElement?.focus && this.activeElement.focus(), this.activeElement = null;
3148
3148
  }
3149
3149
  async _post(y3) {
3150
3150
  let O3 = await this.iframe;
@@ -3153,7 +3153,7 @@ var init_es4 = __esm({
3153
3153
  }
3154
3154
  async checkRelayerExistsInDOM() {
3155
3155
  let y3 = await this.iframe;
3156
- return !y3 || !y3.contentWindow ? false : !![].slice.call(document.querySelectorAll(".magic-iframe")).find((C3) => C3.src.includes(encodeURIComponent(this.parameters)));
3156
+ return !y3 || !y3.contentWindow ? false : !![].slice.call(document.querySelectorAll(".magic-iframe")).find((C2) => C2.src.includes(encodeURIComponent(this.parameters)));
3157
3157
  }
3158
3158
  async reloadRelayer() {
3159
3159
  let y3 = await this.iframe;
@@ -3168,28 +3168,28 @@ var init_es4 = __esm({
3168
3168
  y3 && (y3.src = this.relayerSrc);
3169
3169
  }
3170
3170
  };
3171
- wt2 = Hr(Be, { platform: "web", sdkName: "magic-sdk", version: "29.1.0", defaultEndpoint: "https://auth.magic.link/", ViewController: ye, configureStorage: async () => {
3172
- let _2 = pe.default.createInstance({ name: "MagicAuthLocalStorageDB", storeName: "MagicAuthLocalStorage" });
3173
- return await _2.defineDriver(Te), await _2.setDriver([pe.default.INDEXEDDB, pe.default.LOCALSTORAGE, Te._driver]), _2;
3171
+ wt2 = Hr(Ke, { platform: "web", sdkName: "magic-sdk", version: "29.4.2", defaultEndpoint: "https://auth.magic.link/", ViewController: ye2, configureStorage: async () => {
3172
+ let _2 = pe2.default.createInstance({ name: "MagicAuthLocalStorageDB", storeName: "MagicAuthLocalStorage" });
3173
+ return await _2.defineDriver(Te2), await _2.setDriver([pe2.default.INDEXEDDB, pe2.default.LOCALSTORAGE, Te2._driver]), _2;
3174
3174
  } });
3175
3175
  }
3176
3176
  });
3177
3177
 
3178
- // ../../node_modules/.pnpm/@magic-ext+algorand@24.1.0/node_modules/@magic-ext/algorand/dist/es/index.mjs
3178
+ // ../../node_modules/.pnpm/@magic-ext+algorand@24.4.2/node_modules/@magic-ext/algorand/dist/es/index.mjs
3179
3179
  var es_exports2 = {};
3180
3180
  __export(es_exports2, {
3181
3181
  AlgorandExtension: () => r9
3182
3182
  });
3183
3183
  var r9;
3184
3184
  var init_es5 = __esm({
3185
- "../../node_modules/.pnpm/@magic-ext+algorand@24.1.0/node_modules/@magic-ext/algorand/dist/es/index.mjs"() {
3185
+ "../../node_modules/.pnpm/@magic-ext+algorand@24.4.2/node_modules/@magic-ext/algorand/dist/es/index.mjs"() {
3186
3186
  "use strict";
3187
3187
  init_es3();
3188
- r9 = class extends X2.Internal {
3188
+ r9 = class extends He.Internal {
3189
3189
  constructor(n) {
3190
3190
  super();
3191
3191
  this.algorandConfig = n;
3192
- this.config = { rpcUrl: n.rpcUrl, chainType: "ALOGD" };
3192
+ this.config = { rpcUrl: n.rpcUrl, chainType: "ALGOD" };
3193
3193
  }
3194
3194
  name = "algod";
3195
3195
  config = {};
@@ -3485,7 +3485,6 @@ var WalletId = /* @__PURE__ */ ((WalletId2) => {
3485
3485
  WalletId2["EXODUS"] = "exodus";
3486
3486
  WalletId2["KIBISIS"] = "kibisis";
3487
3487
  WalletId2["KMD"] = "kmd";
3488
- WalletId2["LIQUID"] = "liquid";
3489
3488
  WalletId2["LUTE"] = "lute";
3490
3489
  WalletId2["MAGIC"] = "magic";
3491
3490
  WalletId2["MNEMONIC"] = "mnemonic";
@@ -5469,119 +5468,6 @@ var KmdWallet = class extends BaseWallet {
5469
5468
  }
5470
5469
  };
5471
5470
 
5472
- // src/wallets/liquid.ts
5473
- var ICON9 = `data:image/svg+xml;base64,${btoa(`
5474
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="249" height="249" viewBox="0 0 249 249" xml:space="preserve">
5475
- <g transform="matrix(2.52 0 0 2.52 124.74 124.74)">
5476
- <circle style="stroke: rgb(0,0,0); stroke-width: 19; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: miter; stroke-miterlimit: 4; fill: rgb(0,0,0); fill-rule: nonzero; opacity: 1;" cx="0" cy="0" r="40"/>
5477
- </g>
5478
- <g transform="matrix(-1.16 -0.01 0.01 -0.97 125.63 187.7)">
5479
- <path style="stroke: rgb(0,0,0); stroke-width: 0; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: miter; stroke-miterlimit: 4; fill: rgb(170,0,255); fill-rule: nonzero; opacity: 1;" transform=" translate(-57.95, -28.98)" d="m 0 57.952755 l 0 0 c 0 -32.006424 25.946333 -57.952755 57.952755 -57.952755 c 32.006428 0 57.952755 25.946333 57.952755 57.952755 l -28.97638 0 c 0 -16.003212 -12.97316 -28.976377 -28.976376 -28.976377 c -16.003212 0 -28.976377 12.9731655 -28.976377 28.976377 z" stroke-linecap="round"/>
5480
- </g>
5481
- <g transform="matrix(1.16 0 0 2.21 126.06 96.74)">
5482
- <path style="stroke: rgb(255,4,233); stroke-width: 0; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: miter; stroke-miterlimit: 4; fill: rgb(170,0,255); fill-rule: nonzero; opacity: 1;" transform=" translate(-57.95, -28.98)" d="m 0 57.952755 l 0 0 c 0 -32.006424 25.946333 -57.952755 57.952755 -57.952755 c 32.006428 0 57.952755 25.946333 57.952755 57.952755 l -28.97638 0 c 0 -16.003212 -12.97316 -28.976377 -28.976376 -28.976377 c -16.003212 0 -28.976377 12.9731655 -28.976377 28.976377 z" stroke-linecap="round"/>
5483
- </g>
5484
- </svg>
5485
- `)}`;
5486
- var LiquidWallet = class extends BaseWallet {
5487
- store;
5488
- authClient;
5489
- options;
5490
- constructor({
5491
- id,
5492
- store,
5493
- subscribe,
5494
- getAlgodClient,
5495
- options,
5496
- metadata = {}
5497
- }) {
5498
- super({ id, metadata, getAlgodClient, store, subscribe });
5499
- this.store = store;
5500
- this.options = options ?? {
5501
- RTC_config_username: "username",
5502
- RTC_config_credential: "credential"
5503
- };
5504
- }
5505
- static defaultMetadata = {
5506
- name: "Liquid",
5507
- icon: ICON9
5508
- };
5509
- async initializeClient() {
5510
- this.logger.info("Initializing client...");
5511
- const { LiquidAuthClient } = await import("@algorandfoundation/liquid-auth-use-wallet-client");
5512
- const client = new LiquidAuthClient(this.options);
5513
- this.authClient = client;
5514
- this.logger.info("Client initialized");
5515
- return client;
5516
- }
5517
- connect = async (_args) => {
5518
- this.logger.info("Connecting...");
5519
- const authClient = this.authClient || await this.initializeClient();
5520
- const account = await authClient.connect();
5521
- if (!account || account.length === 0) {
5522
- this.logger.error("No accounts found!");
5523
- throw new Error("No accounts found!");
5524
- }
5525
- const walletAccounts = [
5526
- {
5527
- name: `${this.metadata.name} Account 1`,
5528
- address: account.toString()
5529
- }
5530
- ];
5531
- const walletState = {
5532
- accounts: walletAccounts,
5533
- activeAccount: walletAccounts[0]
5534
- };
5535
- addWallet(this.store, {
5536
- walletId: this.id,
5537
- wallet: walletState
5538
- });
5539
- this.logger.info("Connected successfully", walletState);
5540
- authClient.hideModal();
5541
- return Promise.resolve(walletAccounts);
5542
- };
5543
- disconnect = async () => {
5544
- this.logger.info("Disconnecting...");
5545
- if (!this.authClient) {
5546
- throw new Error("No auth client to disconnect");
5547
- }
5548
- await this.authClient.disconnect();
5549
- this.onDisconnect();
5550
- this.logger.info("Disconnected.");
5551
- this.authClient = null;
5552
- };
5553
- resumeSession = async () => {
5554
- try {
5555
- const state = this.store.state;
5556
- const walletState = state.wallets[this.id];
5557
- if (walletState) {
5558
- await this.disconnect();
5559
- }
5560
- } catch (error) {
5561
- this.logger.error("Error resuming session", error);
5562
- this.onDisconnect();
5563
- throw error;
5564
- }
5565
- };
5566
- signTransactions = async (txnGroup, indexesToSign) => {
5567
- try {
5568
- if (!this.activeAddress) {
5569
- throw new Error("No active account");
5570
- }
5571
- this.logger.debug("Signing transactions...", { txnGroup, indexesToSign });
5572
- const authClient = this.authClient || await this.initializeClient();
5573
- if (!authClient.client.peerClient) {
5574
- await authClient.connect();
5575
- authClient.hideModal();
5576
- }
5577
- return authClient.signTransactions(txnGroup, this.activeAddress, indexesToSign);
5578
- } catch (error) {
5579
- this.logger.error("Error signing transactions", error);
5580
- throw error;
5581
- }
5582
- };
5583
- };
5584
-
5585
5471
  // src/wallets/lute.ts
5586
5472
  import algosdk7 from "algosdk";
5587
5473
  function isSignTxnsError(error) {
@@ -5590,7 +5476,7 @@ function isSignTxnsError(error) {
5590
5476
  function isSignDataError(error) {
5591
5477
  return error instanceof Error && "code" in error;
5592
5478
  }
5593
- var ICON10 = `data:image/svg+xml;base64,${btoa(`
5479
+ var ICON9 = `data:image/svg+xml;base64,${btoa(`
5594
5480
  <svg viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg">
5595
5481
  <path fill="#AB47BC" d="M283.7,263.6c-0.6,0-1.3-0.1-1.8-0.4c-0.6-0.3-1.1-0.8-1.5-1.3c-0.4-0.6-0.7-1.3-0.8-2 c-0.1-0.8-0.1-1.7,0.1-2.5c0.2-0.9,0.6-1.8,1.2-2.6c0.6-0.8,1.4-1.7,2.2-2.3c0.9-0.7,2.1-1.2,3.2-1.6c1.2-0.4,2.7-0.5,4-0.5 c1.4,0,3,0.3,4.4,0.8c1.5,0.5,3.1,1.4,4.3,2.3c1.4,1,2.8,2.4,3.8,3.7c1.1,1.5,2.1,3.3,2.8,5.1c0.7,1.9,1.2,4.1,1.3,6.1 c0.2,2.1,0,4.6-0.4,6.7c-0.5,2.2-1.4,4.7-2.4,6.7c-1.1,2.1-2.8,4.4-4.4,6.2c-1.8,1.9-4.1,3.7-6.3,5c-2.3,1.4-5.2,2.6-7.9,3.3 c-2.8,0.7-6.1,1.1-8.9,1.1c-3,0-6.5-0.6-9.3-1.4c-3-0.9-6.4-2.4-9.1-4c-2.8-1.7-5.8-4.2-8-6.6c-2.3-2.5-4.6-5.8-6.2-8.9 c-1.7-3.2-3.1-7.1-3.8-10.7c-0.8-3.7-1.1-8-0.9-11.8c0.2-3.9,1.1-8.3,2.3-12c1.3-3.8,3.4-8.1,5.7-11.4c2.3-3.5,5.6-7.1,8.8-9.9 c3.3-2.8,7.5-5.6,11.5-7.5c4.1-1.9,9-3.5,13.5-4.3c4.6-0.8,10-1.1,14.6-0.7c4.8,0.4,10.2,1.6,14.7,3.3c4.7,1.7,9.7,4.4,13.8,7.3 c4.2,3,8.5,7,11.7,10.9c3.3,4.1,6.5,9.2,8.7,14c2.2,4.9,4,10.9,4.9,16.3c0.9,5.5,1,11.9,0.4,17.5c-0.6,5.7-2.2,12.1-4.3,17.4 c-2.1,5.5-5.4,11.4-8.9,16.1c-3.6,4.8-8.4,9.8-13.1,13.6c-4.8,3.8-11,7.5-16.6,9.9c-5.8,2.5-12.8,4.5-19.1,5.4 c-6.4,0.9-13.9,1-20.3,0.2c-6.6-0.8-14-2.7-20.1-5.2c-6.3-2.5-13.1-6.4-18.5-10.5c-5.5-4.2-11.2-9.8-15.4-15.3 c-4.3-5.6-8.4-12.7-11.2-19.2c-2.8-6.7-4.9-14.7-5.9-21.9c-0.9-5.9-2.8-12.6-5.2-18.1c-2.3-5.4-5.9-11.2-9.5-15.8 c-3.6-4.5-8.3-9-13-12.4c-4.5-3.3-10.1-6.4-15.3-8.3c-5-1.9-11.1-3.4-16.5-3.9c-5.2-0.5-11.3-0.3-16.5,0.5c-5,0.8-10.7,2.6-15.3,4.7 c-4.5,2.1-9.4,5.1-13.2,8.3c-3.7,3.1-7.5,7.2-10.2,11.1c-2.7,3.8-5.2,8.6-6.7,13c-1.5,4.2-2.6,9.3-3,13.8c-0.3,4.3-0.1,9.4,0.7,13.7 c0.8,4.1,2.3,8.8,4.2,12.5c1.8,3.6,4.4,7.6,7.1,10.6c2.6,2.9,6,5.9,9.3,8.1c3.1,2.1,7.1,4,10.6,5.1c3.4,1.1,7.5,1.9,11.1,2 c3.5,0.2,7.4-0.2,10.8-1c3.2-0.7,6.8-2.1,9.7-3.6c2.8-1.5,5.7-3.6,8-5.8c2.2-2.1,4.3-4.8,5.9-7.4c1.5-2.5,2.8-5.5,3.5-8.3 c0.7-2.6,1.1-5.7,1.1-8.5c0-2.6-0.5-5.5-1.2-8c-0.7-2.3-1.8-4.9-3.1-6.9c-1.2-1.9-2.9-3.9-4.6-5.4c-1.6-1.4-3.6-2.8-5.5-3.7 c-1.8-0.9-4-1.6-5.9-1.9c-1.8-0.3-3.9-0.4-5.8-0.1c-1.7,0.2-3.6,0.7-5.1,1.4c-1.4,0.6-2.9,1.6-4.1,2.6c-1.1,0.9-2.1,2.2-2.9,3.4 c-0.7,1.1-1.2,2.5-1.5,3.7c-0.3,1.1-0.4,2.4-0.3,3.6c0.1,1,0.4,2.2,0.8,3.1c0.4,0.8,1,1.7,1.6,2.3c0.6,0.5,1.3,1,2.1,1.3 c0.6,0.2,1.5,0.4,2.1,0.3c0.6-0.1,1.3-0.3,1.8-0.6c0.5-0.3,1-0.8,1.2-1.4c0.3-0.5,0.7-1,1.2-1.4c0.5-0.3,1.2-0.6,1.8-0.6 c0.7-0.1,1.5,0.1,2.1,0.3c0.7,0.3,1.5,0.8,2.1,1.3c0.6,0.6,1.3,1.5,1.6,2.3c0.4,0.9,0.7,2.1,0.8,3.1c0.1,1.1,0,2.5-0.3,3.6 c-0.3,1.2-0.9,2.6-1.5,3.7c-0.7,1.2-1.8,2.4-2.9,3.4c-1.2,1-2.7,2-4.1,2.6c-1.5,0.7-3.4,1.2-5.1,1.4c-1.8,0.2-4,0.2-5.8-0.1 c-2-0.3-4.1-1-5.9-1.9c-1.9-0.9-4-2.3-5.5-3.7c-1.7-1.5-3.4-3.5-4.6-5.4c-1.3-2-2.4-4.6-3.1-6.9c-0.7-2.5-1.2-5.4-1.2-8 c0-2.7,0.4-5.8,1.1-8.5c0.7-2.8,2-5.8,3.5-8.3c1.5-2.6,3.7-5.3,5.9-7.4c2.3-2.2,5.2-4.3,8-5.8c2.9-1.6,6.5-2.9,9.7-3.6 c3.4-0.8,7.4-1.1,10.8-1c3.6,0.2,7.7,0.9,11.1,2c3.6,1.2,7.5,3.1,10.6,5.1c3.3,2.1,6.7,5.1,9.3,8.1c2.7,3,5.3,7,7.1,10.6 c1.8,3.8,3.4,8.4,4.2,12.5c0.8,4.3,1.1,9.3,0.7,13.7c-0.4,4.5-1.5,9.6-3,13.8c-1.6,4.4-4.1,9.2-6.7,13c-2.8,3.9-6.5,8-10.2,11.1 c-3.8,3.2-8.7,6.2-13.2,8.3c-4.6,2.1-10.3,3.8-15.3,4.7c-5.2,0.9-11.3,1-16.5,0.5c-5.4-0.5-11.5-2-16.5-3.9 c-5.2-2-10.8-5.1-15.3-8.3c-4.6-3.4-9.4-7.9-13-12.4c-3.7-4.6-7.2-10.4-9.5-15.8c-2.4-5.5-4.3-12.2-5.2-18.1 c-0.9-6.1-1-13.2-0.3-19.3c0.7-6.3,2.5-13.4,4.9-19.2c2.4-6,6.1-12.5,10-17.7c4-5.3,9.3-10.7,14.6-14.8c5.3-4.2,12.1-8.1,18.3-10.7 c6.4-2.7,14.1-4.8,21-5.7c7-1,15.2-1,22.2-0.1c7.2,0.9,15.2,3.1,21.9,5.8c5.6,2.2,12.3,3.9,18.3,4.6c5.8,0.7,12.6,0.5,18.4-0.4 c5.6-0.9,12-2.7,17.2-5c5.1-2.3,10.6-5.6,14.9-9.1c4.2-3.4,8.5-8,11.7-12.3c3.1-4.3,6-9.6,7.8-14.5c1.8-4.8,3.1-10.5,3.6-15.6 c0.5-4.9,0.3-10.7-0.6-15.6c-0.8-4.7-2.5-10.1-4.5-14.4c-2-4.2-4.9-8.8-7.9-12.3c-2.9-3.4-6.8-6.9-10.5-9.5 c-3.6-2.5-8.1-4.8-12.2-6.2c-4-1.4-8.7-2.4-12.9-2.7c-4-0.3-8.7,0-12.7,0.8c-3.8,0.8-8.1,2.2-11.6,4c-3.4,1.7-7,4.1-9.7,6.6 c-2.7,2.4-5.4,5.6-7.3,8.6c-1.9,2.9-3.6,6.5-4.6,9.8c-1,3.2-1.6,6.9-1.7,10.2c-0.1,3.2,0.3,6.8,1,9.9c0.7,2.9,2,6.2,3.5,8.8 c1.4,2.5,3.4,5.1,5.4,7.2c1.9,1.9,4.4,3.8,6.8,5.2c2.2,1.3,5,2.4,7.5,3c2.3,0.6,5.1,0.9,7.6,0.8c2.3-0.1,4.9-0.5,7-1.3 c2-0.7,4.2-1.7,6-2.9c1.6-1.1,3.3-2.7,4.6-4.2c1.2-1.4,2.3-3.2,3-4.9c0.7-1.6,1.2-3.5,1.3-5.1c0.2-1.5,0.1-3.3-0.2-4.9 c-0.3-1.4-0.8-2.9-1.5-4.2c-0.6-1.1-1.5-2.3-2.4-3.2c-0.8-0.8-1.9-1.5-3-2c-0.9-0.4-2.1-0.7-3.1-0.8c-0.9-0.1-1.9,0-2.8,0.3 c-0.7,0.2-1.6,0.6-2.2,1.1c-0.5,0.4-1,1.1-1.3,1.7c-0.3,0.6-0.4,1.3-0.4,1.9c0,0.6,0.2,1.2,0.6,1.7c0.3,0.5,0.5,1.2,0.6,1.7 c0,0.6-0.1,1.3-0.4,1.9c-0.3,0.6-0.8,1.3-1.3,1.7c-0.6,0.5-1.4,0.9-2.2,1.1c-0.9,0.3-1.9,0.3-2.8,0.3c-1-0.1-2.2-0.4-3.1-0.8 c-1-0.5-2.1-1.2-3-2c-0.9-0.9-1.8-2.1-2.4-3.2c-0.7-1.2-1.2-2.8-1.5-4.2c-0.3-1.5-0.4-3.3-0.2-4.9c0.2-1.7,0.7-3.6,1.3-5.1 c0.7-1.7,1.8-3.5,3-4.9c1.3-1.5,3-3.1,4.6-4.2c1.8-1.2,4-2.3,6-2.9c2.2-0.7,4.8-1.2,7-1.3c2.4-0.1,5.2,0.2,7.6,0.8 c2.5,0.6,5.3,1.7,7.5,3c2.4,1.3,4.9,3.2,6.8,5.2c2,2,4,4.7,5.4,7.2c1.5,2.6,2.7,5.9,3.5,8.8c0.8,3.1,1.1,6.7,1,9.9 c-0.1,3.3-0.7,7.1-1.7,10.2c-1,3.3-2.7,6.9-4.6,9.8c-1.9,3-4.7,6.2-7.3,8.6c-2.8,2.5-6.4,5-9.7,6.6c-3.5,1.8-7.8,3.2-11.6,4 c-4,0.8-8.7,1.1-12.7,0.8c-4.2-0.3-9-1.3-12.9-2.7c-4.1-1.4-8.6-3.7-12.2-6.2c-3.7-2.6-7.6-6.1-10.5-9.5c-3-3.6-5.9-8.1-7.9-12.3 c-2-4.4-3.7-9.7-4.5-14.4c-0.8-4.9-1.1-10.6-0.6-15.6c0.5-5.1,1.8-10.8,3.6-15.6c1.8-4.9,4.7-10.3,7.8-14.5 c3.2-4.4,7.5-8.9,11.7-12.3c4.3-3.5,9.8-6.9,14.9-9.1c5.2-2.3,11.6-4.2,17.2-5c5.8-0.9,12.6-1,18.4-0.4c6,0.7,12.7,2.4,18.3,4.6 c5.7,2.3,12,5.7,16.9,9.4c5.1,3.8,10.3,8.9,14.2,13.8c4,5.1,7.8,11.5,10.3,17.5c2.6,6.1,4.6,13.5,5.5,20c0.9,6.7,1,14.5,0.1,21.2 c-0.9,6.9-2.9,14.6-5.5,21c-2.7,6.5-6.8,13.6-11,19.3c-4.4,5.7-10.3,11.7-16,16c-4.7,3.7-9.5,8.7-13.1,13.6 c-3.5,4.7-6.8,10.7-8.9,16.1c-2.1,5.3-3.6,11.7-4.3,17.4c-0.6,5.5-0.4,12,0.4,17.5c0.9,5.3,2.6,11.3,4.9,16.3c2.2,4.8,5.4,10,8.7,14 c3.2,3.9,7.6,8,11.7,10.9c4,2.9,9.1,5.6,13.8,7.3c4.5,1.7,9.9,2.9,14.7,3.3c4.6,0.4,10,0.2,14.6-0.7c4.4-0.8,9.4-2.4,13.5-4.3 c3.9-1.9,8.2-4.6,11.5-7.5c3.2-2.7,6.4-6.4,8.8-9.9c2.3-3.4,4.4-7.6,5.7-11.4c1.2-3.7,2.1-8.1,2.3-12c0.2-3.7-0.1-8.1-0.9-11.8 c-0.8-3.5-2.2-7.5-3.8-10.7c-1.6-3.1-3.9-6.3-6.2-8.9c-2.2-2.4-5.2-4.9-8-6.6c-2.7-1.7-6-3.2-9.1-4c-2.9-0.8-6.3-1.4-9.3-1.4 c-2.9,0-6.2,0.4-8.9,1.1c-2.6,0.7-5.5,1.9-7.9,3.3c-2.2,1.3-4.5,3.2-6.3,5c-1.7,1.8-3.3,4-4.4,6.2c-1.1,2-2,4.5-2.4,6.7 c-0.4,2.1-0.6,4.5-0.4,6.7c0.2,2,0.6,4.2,1.3,6.1c0.6,1.7,1.7,3.6,2.8,5.1c1,1.3,2.4,2.7,3.8,3.7c1.3,0.9,2.8,1.8,4.3,2.3 c1.3,0.5,2.9,0.8,4.4,0.8c1.3,0,2.7-0.1,4-0.5c1.1-0.3,2.3-0.9,3.2-1.6c0.8-0.6,1.7-1.4,2.2-2.3c0.5-0.7,0.9-1.7,1.2-2.6 c0.2-0.8,0.2-1.7,0.1-2.5c-0.1-0.7-0.4-1.4-0.8-2c-0.4-0.5-0.9-1-1.5-1.3C285,263.7,284.3,263.6,283.7,263.6L283.7,263.6z" />
5596
5482
  </svg>
@@ -5613,7 +5499,7 @@ var LuteWallet = class extends BaseWallet {
5613
5499
  }
5614
5500
  static defaultMetadata = {
5615
5501
  name: "Lute",
5616
- icon: ICON10
5502
+ icon: ICON9
5617
5503
  };
5618
5504
  async initializeClient() {
5619
5505
  this.logger.info("Initializing client...");
@@ -5761,7 +5647,7 @@ var LuteWallet = class extends BaseWallet {
5761
5647
 
5762
5648
  // src/wallets/magic.ts
5763
5649
  import algosdk8 from "algosdk";
5764
- var ICON11 = `data:image/svg+xml;base64,${btoa(`
5650
+ var ICON10 = `data:image/svg+xml;base64,${btoa(`
5765
5651
  <svg viewBox="0 0 47 47" xmlns="http://www.w3.org/2000/svg">
5766
5652
  <path fill="#6851FF" d="M 23.960861 1.80769 C 25.835077 4.103153 27.902216 6.23489 30.137539 8.178169 C 28.647968 13.009323 27.846092 18.142094 27.846092 23.462154 C 27.846092 28.782307 28.648062 33.915169 30.13763 38.746368 C 27.902216 40.689724 25.835077 42.821476 23.960861 45.116985 C 22.086554 42.821476 20.019415 40.689632 17.783998 38.746368 C 19.273476 33.915169 20.075445 28.7824 20.075445 23.462337 C 20.075445 18.142277 19.273476 13.009506 17.783998 8.178318 C 20.019415 6.235001 22.086554 4.10321 23.960861 1.80769 Z M 13.511427 35.406403 C 11.145139 33.747814 8.633816 32.282063 6.000269 31.031937 C 6.730776 28.637476 7.123754 26.095783 7.123754 23.462429 C 7.123754 20.828892 6.730762 18.287201 6.000235 15.892738 C 8.633816 14.642616 11.145175 13.176861 13.511501 11.518276 C 14.416311 15.352554 14.895074 19.351414 14.895074 23.462154 C 14.895074 27.572985 14.416283 31.571938 13.511427 35.406403 Z M 33.027046 23.462337 C 33.027046 27.572985 33.505753 31.571846 34.410553 35.406124 C 36.776859 33.747631 39.288094 32.281876 41.921539 31.031845 C 41.191017 28.637384 40.798061 26.095692 40.798061 23.462246 C 40.798061 20.8288 41.191017 18.287201 41.921539 15.89283 C 39.288094 14.642708 36.776768 13.177048 34.410553 11.518555 C 33.505753 15.352831 33.027046 19.351692 33.027046 23.462337 Z" />
5767
5653
  </svg>
@@ -5789,7 +5675,7 @@ var MagicAuth = class extends BaseWallet {
5789
5675
  }
5790
5676
  static defaultMetadata = {
5791
5677
  name: "Magic",
5792
- icon: ICON11
5678
+ icon: ICON10
5793
5679
  };
5794
5680
  async initializeClient() {
5795
5681
  this.logger.info("Initializing client...");
@@ -5971,7 +5857,7 @@ var MagicAuth = class extends BaseWallet {
5971
5857
  // src/wallets/mnemonic.ts
5972
5858
  import algosdk9 from "algosdk";
5973
5859
  var LOCAL_STORAGE_MNEMONIC_KEY = `${LOCAL_STORAGE_KEY}_mnemonic`;
5974
- var ICON12 = `data:image/svg+xml;base64,${btoa(`
5860
+ var ICON11 = `data:image/svg+xml;base64,${btoa(`
5975
5861
  <svg viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg">
5976
5862
  <rect fill="#525252" width="400" height="400" />
5977
5863
  <path fill="#FFFFFF" d="M309.2,309.3H275l-22.2-82.7l-47.9,82.7h-38.3l73.9-128l-11.9-44.5l-99.6,172.6H90.8L217.1,90.6 h33.5l14.7,54.3h34.6l-23.6,41L309.2,309.3z" />
@@ -6004,7 +5890,7 @@ var MnemonicWallet = class extends BaseWallet {
6004
5890
  }
6005
5891
  static defaultMetadata = {
6006
5892
  name: "Mnemonic",
6007
- icon: ICON12
5893
+ icon: ICON11
6008
5894
  };
6009
5895
  loadMnemonicFromStorage() {
6010
5896
  return StorageAdapter.getItem(LOCAL_STORAGE_MNEMONIC_KEY);
@@ -6147,7 +6033,7 @@ var MnemonicWallet = class extends BaseWallet {
6147
6033
 
6148
6034
  // src/wallets/pera.ts
6149
6035
  import algosdk10 from "algosdk";
6150
- var ICON13 = `data:image/svg+xml;base64,${btoa(`
6036
+ var ICON12 = `data:image/svg+xml;base64,${btoa(`
6151
6037
  <svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
6152
6038
  <rect fill="#FFEE55" width="200" height="200" />
6153
6039
  <path fill="#1C1C1C" d="M106.1,64.3c2.2,9.1,1.5,17-1.7,17.8c-3.1,0.8-7.4-6-9.6-15c-2.2-9.1-1.5-17,1.7-17.8 C99.6,48.5,103.9,55.2,106.1,64.3z" />
@@ -6176,7 +6062,7 @@ var PeraWallet = class extends BaseWallet {
6176
6062
  }
6177
6063
  static defaultMetadata = {
6178
6064
  name: "Pera",
6179
- icon: ICON13
6065
+ icon: ICON12
6180
6066
  };
6181
6067
  async initializeClient() {
6182
6068
  this.logger.info("Initializing client...");
@@ -6362,7 +6248,7 @@ var PeraWallet = class extends BaseWallet {
6362
6248
 
6363
6249
  // src/wallets/w3wallet.ts
6364
6250
  import algosdk11 from "algosdk";
6365
- var ICON14 = `data:image/svg+xml;base64,${btoa(`
6251
+ var ICON13 = `data:image/svg+xml;base64,${btoa(`
6366
6252
  <svg width="860" height="860" viewBox="0 0 860 860" fill="none" xmlns="http://www.w3.org/2000/svg">
6367
6253
  <rect width="860" height="860" rx="30" fill="#151923"/>
6368
6254
  <path d="M766 207L496.627 623.406C463.521 675.336 382.014 652.248 382.014 590.941V432.568L260.638 623.28C227.559 675.255 146 652.186 146 590.854V274.844H234.646V499.761L356.022 309.049C389.101 257.074 470.66 280.143 470.66 341.475V499.978L660.146 207L766 207Z" fill="#4BB7D1"/>
@@ -6383,7 +6269,7 @@ var W3Wallet = class extends BaseWallet {
6383
6269
  }
6384
6270
  static defaultMetadata = {
6385
6271
  name: "W3 Wallet",
6386
- icon: ICON14
6272
+ icon: ICON13
6387
6273
  };
6388
6274
  async initializeClient() {
6389
6275
  this.logger.info("Initializing client...");
@@ -6511,7 +6397,6 @@ function createWalletMap() {
6511
6397
  ["exodus" /* EXODUS */]: ExodusWallet,
6512
6398
  ["kibisis" /* KIBISIS */]: KibisisWallet,
6513
6399
  ["kmd" /* KMD */]: KmdWallet,
6514
- ["liquid" /* LIQUID */]: LiquidWallet,
6515
6400
  ["lute" /* LUTE */]: LuteWallet,
6516
6401
  ["magic" /* MAGIC */]: MagicAuth,
6517
6402
  ["mnemonic" /* MNEMONIC */]: MnemonicWallet,
@@ -6944,7 +6829,6 @@ var WalletManager = class {
6944
6829
  // src/webpack.ts
6945
6830
  var webpackFallback = {
6946
6831
  "@agoralabs-sh/avm-web-provider": false,
6947
- "@algorandfoundation/liquid-auth-use-wallet-client": false,
6948
6832
  "@blockshake/defly-connect": false,
6949
6833
  "@magic-ext/algorand": false,
6950
6834
  "@perawallet/connect": false,
@@ -6968,7 +6852,6 @@ export {
6968
6852
  KibisisWallet,
6969
6853
  KmdWallet,
6970
6854
  LOCAL_STORAGE_MNEMONIC_KEY,
6971
- LiquidWallet,
6972
6855
  LogLevel,
6973
6856
  LuteWallet,
6974
6857
  MagicAuth,