@nexus-cross/crossx-sdk-core 2.6.0-beta.1 → 2.6.0

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.
@@ -16,7 +16,7 @@ class p extends Error {
16
16
  };
17
17
  }
18
18
  }
19
- const ar = 2e3, ct = 6e4, cr = 1e3, lr = 1e4, dr = "0x77359400", lt = "0x3B9ACA00", dt = 130, Ze = 6, pt = 18, _t = 3e4, pr = 300 * 1e3, _r = 30 * 1e3, ze = 100, hr = 300 * 1e3, ht = 60 * 1e3, Ce = "crossx-sdk-js/2.6.0-beta.1", ur = "X-SDK-Version", xr = !1, gr = "x-sdk-deprecation", ke = -10050, Qe = "ONEpocket";
19
+ const ar = 2e3, ct = 6e4, cr = 1e3, lr = 1e4, dr = "0x77359400", lt = "0x3B9ACA00", dt = 130, Ze = 6, pt = 18, _t = 3e4, pr = 300 * 1e3, _r = 30 * 1e3, ze = 100, hr = 300 * 1e3, ht = 60 * 1e3, Ce = "crossx-sdk-js/2.6.0", ur = "X-SDK-Version", xr = !1, gr = "x-sdk-deprecation", ke = -10050, Qe = "ONEpocket";
20
20
  var me = /* @__PURE__ */ ((i) => (i.MetaMask = "io.metamask", i.Binance = "com.binance.wallet", i.CROSSx = "crossx", i))(me || {});
21
21
  const fr = {
22
22
  "io.metamask": "MetaMask",
@@ -107,7 +107,7 @@ const De = {
107
107
  rpcUrl: "https://saigon-testnet.roninchain.com/rpc",
108
108
  testnet: !0
109
109
  }
110
- }, dn = Object.fromEntries(
110
+ }, pn = Object.fromEntries(
111
111
  Object.entries(De).map(([i, e]) => [i, e.caipId])
112
112
  ), Er = new Map(
113
113
  Object.values(De).map((i) => [i.caipId, i])
@@ -3204,7 +3204,7 @@ const Q = class Q extends Jr {
3204
3204
  }
3205
3205
  async _doInitialize(e) {
3206
3206
  var r, t;
3207
- l.log("[CROSSx SDK] v2.6.0-beta.1 초기화 중..."), this.confirmation.setMessages(ee(this._config.locale));
3207
+ l.log("[CROSSx SDK] v2.6.0 초기화 중..."), this.confirmation.setMessages(ee(this._config.locale));
3208
3208
  try {
3209
3209
  const s = Re();
3210
3210
  this.internalConfig.oauthServiceUrl = s.oauthServiceUrl, this.internalConfig.legacyOauthServiceUrl = s.legacyOauthServiceUrl, this.internalConfig.authApiUrl = s.authApiUrl, this.internalConfig.walletGatewayUrl = s.walletGatewayUrl, this.adapterConfig.gatewayUrl = s.walletGatewayUrl, (t = (r = this.crypto).setJWKSEndpoint) == null || t.call(r, `${s.authApiUrl}/.well-known/jwks.json`);
@@ -3240,7 +3240,7 @@ const Q = class Q extends Jr {
3240
3240
  throw u;
3241
3241
  }
3242
3242
  }
3243
- return this.initialized = !0, l.info("[CROSSx SDK] v2.6.0-beta.1 초기화 완료"), this.emit("initialized", { restored: !!(c != null && c.success) }), c ?? null;
3243
+ return this.initialized = !0, l.info("[CROSSx SDK] v2.6.0 초기화 완료"), this.emit("initialized", { restored: !!(c != null && c.success) }), c ?? null;
3244
3244
  } catch (s) {
3245
3245
  throw new p(d.AUTH_NOT_INITIALIZED, "SDK 초기화에 실패했습니다", s);
3246
3246
  }
@@ -3260,7 +3260,7 @@ const Q = class Q extends Jr {
3260
3260
  l.log("[CROSSx] RN Bridge 감지 — Handshake 시도"), l.info("[CROSSx][RNBridge trace] Bootstrap config", {
3261
3261
  appId: this._config.projectId,
3262
3262
  appVersion: "1.0.0",
3263
- sdkVersion: "2.6.0-beta.1",
3263
+ sdkVersion: "2.6.0",
3264
3264
  keyId: "key-id-1",
3265
3265
  userIdHash: "user-hash-placeholder",
3266
3266
  projectId: this._config.projectId
@@ -3268,7 +3268,7 @@ const Q = class Q extends Jr {
3268
3268
  const e = new Y({
3269
3269
  appId: this._config.projectId,
3270
3270
  appVersion: "1.0.0",
3271
- sdkVersion: "2.6.0-beta.1",
3271
+ sdkVersion: "2.6.0",
3272
3272
  keyId: "key-id-1",
3273
3273
  userIdHash: "user-hash-placeholder",
3274
3274
  projectId: this._config.projectId
@@ -5450,21 +5450,23 @@ class Ls {
5450
5450
  }
5451
5451
  inspect(e) {
5452
5452
  var s, n, o, a;
5453
- const r = Ms(e.headers, gr);
5453
+ const r = Fs(e.headers, gr);
5454
5454
  r && ((n = (s = this.options).onDeprecation) == null || n.call(s, Ds(r)));
5455
5455
  const t = e.data;
5456
- t && t.code === ke && ((a = (o = this.options).onUnsupported) == null || a.call(o, {
5457
- message: typeof t.message == "string" ? t.message : void 0
5458
- }));
5456
+ t && t.code === ke && ((a = (o = this.options).onUnsupported) == null || a.call(o, { message: Ms(t) }));
5459
5457
  }
5460
5458
  }
5461
- function Ms(i, e) {
5459
+ function Ms(i) {
5460
+ for (const e of [i.data, i.message])
5461
+ if (typeof e == "string" && e.trim()) return e;
5462
+ }
5463
+ function Fs(i, e) {
5462
5464
  if (!i) return;
5463
5465
  const r = e.toLowerCase();
5464
5466
  for (const [t, s] of Object.entries(i))
5465
5467
  if (t.toLowerCase() === r && s) return s;
5466
5468
  }
5467
- const Fs = [
5469
+ const $s = [
5468
5470
  /CROSSx\/([\d.]+)/i,
5469
5471
  /ONE\s?wallet[^\s/]*\/([\d.]+)/i,
5470
5472
  /ONE\s?pocket[^\s/]*\/([\d.]+)/i
@@ -5472,18 +5474,18 @@ const Fs = [
5472
5474
  function tt() {
5473
5475
  return typeof window > "u" ? void 0 : window;
5474
5476
  }
5475
- function $s() {
5477
+ function Us() {
5476
5478
  const i = tt();
5477
5479
  return i == null ? void 0 : i.__crossx;
5478
5480
  }
5479
- function Us(i) {
5481
+ function Bs(i) {
5480
5482
  return i === "ios" || i === "android" ? i : null;
5481
5483
  }
5482
5484
  function Be() {
5483
5485
  const i = typeof navigator > "u" ? "" : navigator.userAgent;
5484
5486
  return /Android/i.test(i) ? "android" : /iPhone|iPad|iPod|Macintosh/i.test(i) ? "ios" : null;
5485
5487
  }
5486
- function Bs(i, e) {
5488
+ function Ws(i, e) {
5487
5489
  const r = (o) => o.split(/[^\d]+/).filter((a) => a !== "").map((a) => Number.parseInt(a, 10)), t = r(i), s = r(e), n = Math.max(t.length, s.length);
5488
5490
  for (let o = 0; o < n; o += 1) {
5489
5491
  const a = (t[o] ?? 0) - (s[o] ?? 0);
@@ -5491,7 +5493,7 @@ function Bs(i, e) {
5491
5493
  }
5492
5494
  return 0;
5493
5495
  }
5494
- function Ws() {
5496
+ function Hs() {
5495
5497
  const i = tt();
5496
5498
  if (!i) return !1;
5497
5499
  const e = i.__crossxRNBridge;
@@ -5499,20 +5501,20 @@ function Ws() {
5499
5501
  }
5500
5502
  function Rt() {
5501
5503
  const i = typeof navigator > "u" ? "" : navigator.userAgent;
5502
- for (const e of Fs) {
5504
+ for (const e of $s) {
5503
5505
  const r = e.exec(i);
5504
5506
  if (r) return r[1] ?? null;
5505
5507
  }
5506
5508
  }
5507
5509
  function Ne() {
5508
- const i = $s();
5510
+ const i = Us();
5509
5511
  if (i != null && i.browser)
5510
5512
  return {
5511
5513
  version: i.version ?? null,
5512
- platform: Us(i.platform) ?? Be(),
5514
+ platform: Bs(i.platform) ?? Be(),
5513
5515
  detectedBy: "marker"
5514
5516
  };
5515
- if (Ws())
5517
+ if (Hs())
5516
5518
  return {
5517
5519
  version: Rt() ?? null,
5518
5520
  platform: Be(),
@@ -5521,10 +5523,10 @@ function Ne() {
5521
5523
  const e = Rt();
5522
5524
  return e !== void 0 ? { version: e, platform: Be(), detectedBy: "user-agent" } : null;
5523
5525
  }
5524
- function pn() {
5526
+ function _n() {
5525
5527
  return Ne() !== null;
5526
5528
  }
5527
- function _n(i = 3e3) {
5529
+ function hn(i = 3e3) {
5528
5530
  const e = Ne();
5529
5531
  return e ? Promise.resolve(e) : tt() ? new Promise((r) => {
5530
5532
  const t = Date.now(), s = setInterval(() => {
@@ -5537,16 +5539,16 @@ function _n(i = 3e3) {
5537
5539
  }, 50);
5538
5540
  }) : Promise.resolve(null);
5539
5541
  }
5540
- const Hs = /* @__PURE__ */ new Set([
5542
+ const Gs = /* @__PURE__ */ new Set([
5541
5543
  "https://cross-wallet-oauth.crosstoken.io",
5542
5544
  "https://stg-cross-wallet-oauth.crosstoken.io",
5543
5545
  "https://dev-cross-wallet-oauth.crosstoken.io",
5544
5546
  "https://one-wallet-oauth.onechain.nexus",
5545
5547
  "https://stg-one-wallet-oauth.onechain.nexus",
5546
5548
  "https://dev-one-wallet-oauth.onechain.nexus"
5547
- ]), Gs = "crossx://oauth-callback", Ks = "2.3.2";
5548
- function Vs(i) {
5549
- return i.platform !== "ios" ? !1 : i.version ? Bs(i.version, Ks) <= 0 : !0;
5549
+ ]), Ks = "crossx://oauth-callback", Vs = "2.3.2";
5550
+ function zs(i) {
5551
+ return i.platform !== "ios" ? !1 : i.version ? Ws(i.version, Vs) <= 0 : !0;
5550
5552
  }
5551
5553
  class ae {
5552
5554
  constructor() {
@@ -5624,14 +5626,14 @@ class ae {
5624
5626
  return new Promise((r, t) => {
5625
5627
  const s = Math.max(e.width ?? 500, 500), n = Math.max(e.height ?? 700, 700), o = window.screenX + (window.outerWidth - s) / 2, a = window.screenY + (window.outerHeight - n) / 2, c = ae.generateRandom16Hex(), _ = ae.generateRandom16Hex(), h = Ne();
5626
5628
  let u = e.authUrl;
5627
- h && e.legacyAuthUrl && Vs(h) && (u = e.legacyAuthUrl, l.info("[CROSSx] 구버전 iOS 지갑 감지 — 이관 전 OAuth 호스트 사용", {
5629
+ h && e.legacyAuthUrl && zs(h) && (u = e.legacyAuthUrl, l.info("[CROSSx] 구버전 iOS 지갑 감지 — 이관 전 OAuth 호스트 사용", {
5628
5630
  appVersion: h.version ?? "(unknown)",
5629
5631
  detectedBy: h.detectedBy,
5630
5632
  authUrlBase: e.legacyAuthUrl
5631
5633
  }));
5632
5634
  const x = u.includes("?") ? "&" : "?", w = encodeURIComponent(window.location.origin);
5633
5635
  let y = `${u}${x}state=${c}&nonce=${_}&origin=${w}`;
5634
- h && !y.includes("redirectUrl=") && (y += `&redirectUrl=${encodeURIComponent(Gs)}`, l.info("[CROSSx] 지갑 인앱 브라우저 감지 — redirectUrl 콜백 자동 부착", {
5636
+ h && !y.includes("redirectUrl=") && (y += `&redirectUrl=${encodeURIComponent(Ks)}`, l.info("[CROSSx] 지갑 인앱 브라우저 감지 — redirectUrl 콜백 자동 부착", {
5635
5637
  detectedBy: h.detectedBy,
5636
5638
  appVersion: h.version ?? "(unknown)",
5637
5639
  platform: h.platform ?? "(unknown)"
@@ -5675,7 +5677,7 @@ class ae {
5675
5677
  }, 1e3), C = () => {
5676
5678
  this.abortPending = null, clearTimeout(g), clearInterval(N), A && clearTimeout(A), window.removeEventListener("message", P);
5677
5679
  }, P = (M) => {
5678
- if (!Hs.has(M.origin)) return;
5680
+ if (!Gs.has(M.origin)) return;
5679
5681
  C();
5680
5682
  const z = typeof M.data.status == "string", I = z ? M.data.data ?? {} : M.data;
5681
5683
  l.log("[CROSSx] OAuth postMessage 수신 —", {
@@ -5721,7 +5723,7 @@ class ae {
5721
5723
  }
5722
5724
  }
5723
5725
  const fe = "crossx_wallet_data", le = "crossx_mock_pin_hash";
5724
- class zs {
5726
+ class qs {
5725
5727
  constructor(e, r) {
5726
5728
  this.storage = e, this.pinStore = r ?? null;
5727
5729
  }
@@ -5866,7 +5868,7 @@ class zs {
5866
5868
  ).join("");
5867
5869
  }
5868
5870
  }
5869
- const qs = ["password", "newPassword", "recoveryPin"];
5871
+ const js = ["password", "newPassword", "recoveryPin"];
5870
5872
  class ce {
5871
5873
  constructor(e, r, t, s, n, o) {
5872
5874
  this._refreshPromise = null, this._walletStatusCache = null, this.adapterConfig = e, this.projectId = e.projectId, this.storage = r, this.transport = t, this.tokenStore = s, this.pinStore = n ?? null, this.pinEncryptor = o ?? null;
@@ -5932,7 +5934,7 @@ class ce {
5932
5934
  async sealPinFields(e) {
5933
5935
  if (!this.pinEncryptor || !e || typeof e != "object") return e;
5934
5936
  let r = null;
5935
- for (const t of qs) {
5937
+ for (const t of js) {
5936
5938
  const s = e[t];
5937
5939
  if (typeof s != "string" || s === "") continue;
5938
5940
  const n = await this.pinEncryptor.seal(s);
@@ -6403,7 +6405,7 @@ class ce {
6403
6405
  }
6404
6406
  }
6405
6407
  }
6406
- class js {
6408
+ class Ys {
6407
6409
  constructor(e, r, t, s = () => {
6408
6410
  }, n = () => {
6409
6411
  }, o = () => {
@@ -6665,7 +6667,7 @@ class ye {
6665
6667
  }
6666
6668
  }
6667
6669
  }
6668
- const We = "linear(0, 0.0152, 0.0546, 0.1107, 0.1771, 0.2494, 0.3236, 0.3973, 0.4684, 0.5356, 0.598, 0.655, 0.7066, 0.7526, 0.7933, 0.829, 0.8599, 0.8865, 0.9092, 0.9283, 0.9443, 0.9576, 0.9685, 0.9774, 0.9845, 0.9901, 0.9945, 0.9979, 1.0004, 1.0022, 1.0035, 1.0043, 1.0048, 1.005, 1.005, 1.0049, 1.0046, 1.0043, 1.004, 1.0036, 1.0032, 1.0029, 1.0025, 1.0022, 1.0019, 1.0016, 1.0014, 1.0011, 1.0009, 1.0008, 1.0006)", Ys = [
6670
+ const We = "linear(0, 0.0152, 0.0546, 0.1107, 0.1771, 0.2494, 0.3236, 0.3973, 0.4684, 0.5356, 0.598, 0.655, 0.7066, 0.7526, 0.7933, 0.829, 0.8599, 0.8865, 0.9092, 0.9283, 0.9443, 0.9576, 0.9685, 0.9774, 0.9845, 0.9901, 0.9945, 0.9979, 1.0004, 1.0022, 1.0035, 1.0043, 1.0048, 1.005, 1.005, 1.0049, 1.0046, 1.0043, 1.004, 1.0036, 1.0032, 1.0029, 1.0025, 1.0022, 1.0019, 1.0016, 1.0014, 1.0011, 1.0009, 1.0008, 1.0006)", Xs = [
6669
6671
  '<span class="__crossx-wc-part __crossx-wc-sparkle" style="left:28.16%;top:32.04%;width:0.96%;height:1%;--x0:64.9347px;--y0:44.2101px;--r0:46.0deg;--x1:-14.2856px;--y1:-9.7262px;--r1:-11.0deg"><svg preserveAspectRatio="none" width="2.65719" height="2.63854" viewBox="0 0 2.65719 2.63854" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.3286 2.63854C2.06236 2.63854 2.65719 2.04788 2.65719 1.31927C2.65719 0.590657 2.06236 0 1.3286 0C0.594835 0 0 0.590657 0 1.31927C0 2.04788 0.594835 2.63854 1.3286 2.63854Z" fill="white"/></svg></span>',
6670
6672
  '<span class="__crossx-wc-part __crossx-wc-sparkle" style="left:16.05%;top:64.23%;width:0.97%;height:1%;--x0:98.3418px;--y0:-41.6939px;--r0:46.0deg;--x1:-21.6352px;--y1:9.1727px;--r1:-11.0deg"><svg preserveAspectRatio="none" width="2.65719" height="2.63854" viewBox="0 0 2.65719 2.63854" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.3286 2.63854C2.06236 2.63854 2.65719 2.04788 2.65719 1.31927C2.65719 0.590657 2.06236 0 1.3286 0C0.594835 0 0 0.590657 0 1.31927C0 2.04788 0.594835 2.63854 1.3286 2.63854Z" fill="white"/></svg></span>',
6671
6673
  '<span class="__crossx-wc-part __crossx-wc-sparkle" style="left:40.21%;top:23.2%;width:1.11%;height:1.15%;--x0:31.463px;--y0:67.6121px;--r0:46.0deg;--x1:-6.9219px;--y1:-14.8747px;--r1:-11.0deg"><svg preserveAspectRatio="none" width="3.06599" height="3.04447" viewBox="0 0 3.06599 3.04447" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.53299 3.04447C2.37964 3.04447 3.06599 2.36294 3.06599 1.52223C3.06599 0.681528 2.37964 0 1.53299 0C0.686344 0 0 0.681528 0 1.52223C0 2.36294 0.686344 3.04447 1.53299 3.04447Z" fill="white"/></svg></span>',
@@ -6682,7 +6684,7 @@ const We = "linear(0, 0.0152, 0.0546, 0.1107, 0.1771, 0.2494, 0.3236, 0.3973, 0.
6682
6684
  '<span class="__crossx-wc-part" style="left:75.64%;top:27.76%;width:8.3%;height:10.48%;--x0:-76.2471px;--y0:42.9853px;--r0:-46.0deg;--x1:16.7744px;--y1:-9.4568px;--r1:11.0deg"><svg preserveAspectRatio="none" width="22.8957" height="27.775" viewBox="0 0 22.8957 27.775" fill="none" xmlns="http://www.w3.org/2000/svg"><g><path d="M14.2637 27.5528C12.1073 28.7908 7.40613 24.7315 3.76783 18.4904C0.119304 12.2391 -1.08665 6.18058 1.06976 4.93235L5.70963 2.24306L18.9036 24.8635L14.2637 27.5528Z" fill="#6D45D2"/><path d="M19.026 24.74C21.1632 23.4729 19.8745 17.4211 16.1477 11.223C12.4208 5.02483 7.66706 1.02742 5.52988 2.2945C3.39269 3.56159 4.68137 9.61335 8.40822 15.8115C12.1351 22.0096 16.8888 26.007 19.026 24.74Z" fill="#A872FF"/><path d="M15.1838 11.7804C18.4951 17.2706 19.8748 22.5173 18.26 23.461C18.0965 23.5625 17.9126 23.6031 17.7184 23.6031C17.7695 23.593 17.8206 23.5727 17.8615 23.5422C19.466 22.5984 18.0863 17.362 14.7852 11.8616C11.8112 6.90928 8.28536 3.42843 6.43555 3.48932C8.12184 2.78909 11.9748 6.43231 15.1838 11.7804Z" fill="#6D45D2"/><path d="M8.50038 6.8516L7.92883 10.3329C7.82678 10.9448 8.24482 11.9586 8.85575 12.5835C9.46668 13.2085 10.0504 13.2176 10.1525 12.6057L10.6355 9.6603L10.8741 11.8917L14.8619 18.9437C15.3424 19.7935 16.0565 20.3077 16.4508 20.0878C16.8451 19.868 16.7747 18.9949 16.2942 18.1452L10.3257 7.59022C10.159 7.29542 9.95265 7.03032 9.79113 6.86948C9.17811 6.2533 8.59648 6.23544 8.49443 6.84732L8.50038 6.8516Z" fill="white"/></g></svg></span>',
6683
6685
  '<span class="__crossx-wc-part __crossx-wc-part--rotated" style="left:19.56%;top:63.74%;width:9%;height:10.13%;--x0:81.0429px;--y0:-56.7374px;--r0:46.0deg;--x1:-17.8294px;--y1:12.4822px;--r1:-11.0deg"><svg style="transform:matrix(0.92726,-0.37441,0.37920,0.92531,0,0)" preserveAspectRatio="none" width="17.8794" height="21.7754" viewBox="0 0 17.8794 21.7754" fill="none" xmlns="http://www.w3.org/2000/svg"><g><path d="M11.1385 21.5985C9.45751 22.5682 5.78879 19.3821 2.94775 14.4856C0.0987301 9.58109 -0.845253 4.82918 0.835783 3.8515L4.45281 1.74512L14.7556 19.4921L11.1385 21.5985Z" fill="#6D45D2"/><path d="M14.8635 19.3867C16.5291 18.3968 15.5168 13.6557 12.6025 8.79715C9.68823 3.9386 5.97547 0.802455 4.30984 1.79238C2.64422 2.7823 3.65647 7.52343 6.57077 12.382C9.48508 17.2405 13.1979 20.3767 14.8635 19.3867Z" fill="#A872FF"/><path d="M11.8531 9.22923C14.4381 13.5359 15.5168 17.6505 14.2582 18.3897C14.1308 18.4692 13.9874 18.5009 13.836 18.5008C13.8758 18.4929 13.9157 18.477 13.9475 18.4531C15.1981 17.714 14.1194 13.6073 11.5424 9.29267C9.22073 5.40791 6.46956 2.67665 5.02725 2.72338C6.34171 2.17526 9.34796 5.03401 11.8531 9.22923Z" fill="#6D45D2"/><path d="M6.63149 5.36631L6.18974 8.09188C6.11085 8.57093 6.43802 9.36528 6.91517 9.85536C7.39233 10.3454 7.84757 10.3532 7.92645 9.87417L8.29976 7.5682L8.48844 9.31584L11.6064 14.8428C11.9821 15.5087 12.5396 15.9122 12.8468 15.7405C13.1541 15.5688 13.0982 14.885 12.7225 14.2191L8.05583 5.94677C7.92549 5.71573 7.76427 5.5079 7.63813 5.38176C7.15934 4.89855 6.70573 4.8839 6.62685 5.36295L6.63149 5.36631Z" fill="white"/></g></svg></span>',
6684
6686
  '<span class="__crossx-wc-wallet"><svg style="transform:matrix(0.97379,0.22745,-0.22745,0.97379,0,0)" width="88.42" height="88.42" viewBox="0 0 88.42 88.42" fill="none" xmlns="http://www.w3.org/2000/svg"><defs><clipPath id="__cx-wc-wallet-clip"><path d="M44.2101 1.58818e-05C9.30971 1.58818e-05 0 9.30973 0 44.2101C0 79.1105 9.30971 88.4202 44.2101 88.4202C79.1105 88.4202 88.4202 79.1105 88.4202 44.2101C88.4202 9.30973 79.1105 1.58818e-05 44.2101 1.58818e-05Z"/></clipPath><clipPath id="__cx-wc-wallet-clip2"><path transform="translate(0.1 0.01)" d="M44.2101 1.58818e-05C9.30971 1.58818e-05 0 9.30973 0 44.2101C0 79.1105 9.30971 88.4202 44.2101 88.4202C79.1105 88.4202 88.4202 79.1105 88.4202 44.2101C88.4202 9.30973 79.1105 1.58818e-05 44.2101 1.58818e-05Z"/></clipPath></defs><g clip-path="url(#__cx-wc-wallet-clip)"><svg x="0.000" y="0.044" width="88.393" height="88.376" viewBox="0 0 88.3978 88.3761" preserveAspectRatio="none" overflow="visible"><g><path d="M88.3761 0L0 0L0 88.3761H88.3761V0Z" fill="url(#__cx-wc-ab720-paint0_linear_0_228)"/><g><path d="M30.885 88.3759H88.3978V16.8103L30.885 53.652L30.885 88.3759Z" fill="url(#__cx-wc-ab720-paint1_linear_0_228)"/><path d="M30.8867 88.3754H0.00143051L0.00143051 21.0013L30.8867 53.6515L30.8867 88.3754Z" fill="url(#__cx-wc-ab720-paint2_linear_0_228)"/></g></g><defs><linearGradient id="__cx-wc-ab720-paint0_linear_0_228" x1="-10.2363" y1="-10.6554" x2="94.2222" y2="94.5531" gradientUnits="userSpaceOnUse"><stop stop-color="#F3752D"/><stop offset="1" stop-color="#EC1272"/></linearGradient><linearGradient id="__cx-wc-ab720-paint1_linear_0_228" x1="22.0606" y1="20.2959" x2="65.1015" y2="57.2921" gradientUnits="userSpaceOnUse"><stop stop-color="white" stop-opacity="0.5"/><stop offset="1" stop-color="white" stop-opacity="0"/></linearGradient><linearGradient id="__cx-wc-ab720-paint2_linear_0_228" x1="55.1317" y1="3.02165" x2="14.4513" y2="55.9899" gradientUnits="userSpaceOnUse"><stop stop-color="white" stop-opacity="0.5"/><stop offset="1" stop-color="white" stop-opacity="0"/></linearGradient></defs></svg></g><g clip-path="url(#__cx-wc-wallet-clip2)"><rect y="0.44" width="88.42" height="88.42" fill="#fff"/><svg x="-2.750" y="0.413" width="93.929" height="93.140" viewBox="0 0 93.9211 93.1421" preserveAspectRatio="none" overflow="visible"><g><path d="M91.1837 0H2.76347L2.76347 88.4202H91.1837V0Z" fill="#CE3E35"/><path d="M13.5066 17.7839C13.5066 13.7731 16.758 10.5216 20.7689 10.5216H73.1521C77.163 10.5216 80.4144 13.7731 80.4144 17.7839V47.0786H13.5066L13.5066 17.7839Z" fill="white"/><g filter="url(#__cx-wc-050c7-filter0_d_0_83)"><path d="M91.158 91.0698H2.76313L2.76313 24.5964C2.76313 21.5443 5.23732 19.0701 8.28939 19.0701H32.9437C35.5525 19.0701 37.6858 21.0278 39.2584 23.1092C41.0469 25.4762 43.8319 26.9978 46.9604 26.9978C50.0889 26.9978 52.874 25.4762 54.6625 23.1092C56.2352 21.0278 58.3685 19.0701 60.9772 19.0701H85.6317C88.6838 19.0701 91.158 21.5443 91.158 24.5964V91.0698Z" fill="url(#__cx-wc-050c7-paint0_linear_0_83)"/></g><g><path d="M33.643 91.0285H91.1559V27.7523L33.643 64.594V91.0285Z" fill="url(#__cx-wc-050c7-paint1_linear_0_83)"/><path d="M33.6463 91.0735H2.76103L2.76103 32.0876L33.6463 64.7378V91.0735Z" fill="url(#__cx-wc-050c7-paint2_linear_0_83)"/></g></g><defs><filter id="__cx-wc-050c7-filter0_d_0_83" x="8.9407e-08" y="15.6162" width="93.9211" height="77.5259" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dy="-0.690783"/><feGaussianBlur stdDeviation="1.38157"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix type="matrix" values="0 0 0 0 0.892803 0 0 0 0 0.220099 0 0 0 0 0.293135 0 0 0 0.5 0"/><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_0_83"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_0_83" result="shape"/></filter><linearGradient id="__cx-wc-050c7-paint0_linear_0_83" x1="-7.47531" y1="10.2228" x2="77.666" y2="113.52" gradientUnits="userSpaceOnUse"><stop stop-color="#F3752D"/><stop offset="1" stop-color="#EC1272"/></linearGradient><linearGradient id="__cx-wc-050c7-paint1_linear_0_83" x1="24.8187" y1="31.2379" x2="67.8595" y2="68.2341" gradientUnits="userSpaceOnUse"><stop stop-color="white" stop-opacity="0.5"/><stop offset="1" stop-color="white" stop-opacity="0"/></linearGradient><linearGradient id="__cx-wc-050c7-paint2_linear_0_83" x1="57.8913" y1="14.108" x2="17.211" y2="67.0762" gradientUnits="userSpaceOnUse"><stop stop-color="white" stop-opacity="0.5"/><stop offset="1" stop-color="white" stop-opacity="0"/></linearGradient></defs></svg><svg x="26.299" y="32.289" width="29.201" height="48.231" viewBox="0 0 29.1992 48.2295" preserveAspectRatio="none" overflow="visible"><g filter="url(#__cx-wc-2c959-filter0_d_0_4)"><path d="M17.5095 3.62052L5.20252 10.7339C3.03172 11.9822 2.27963 14.7865 3.52741 16.9582C4.7752 19.1298 7.57844 19.8822 9.74925 18.6339L20.1589 12.6149L15.2019 17.9328L15.2019 38.7943C15.2019 41.3079 17.2531 43.3598 19.7657 43.3598C22.2784 43.3598 24.3295 41.3079 24.3295 38.7943V7.57051C24.3295 6.69844 24.0561 5.84346 23.7142 5.27917C22.4322 3.12463 19.6632 2.35515 17.4924 3.60342L17.5095 3.62052Z" fill="white"/><g></g></g><defs><filter id="__cx-wc-2c959-filter0_d_0_4" x="-4.91855e-08" y="0.0794639" width="29.1992" height="48.15" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="0.972558" dy="0.972558"/><feGaussianBlur stdDeviation="1.94855"/><feColorMatrix type="matrix" values="0 0 0 0 0.831373 0 0 0 0 0.113725 0 0 0 0 0.356863 0 0 0 0.3 0"/><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_0_4"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_0_4" result="shape"/></filter></defs></svg></g></svg></span>'
6685
- ].join(""), Xs = `
6687
+ ].join(""), Js = `
6686
6688
  .__crossx-wallet-created-illust {
6687
6689
  display: block;
6688
6690
  position: relative;
@@ -6779,7 +6781,7 @@ const We = "linear(0, 0.0152, 0.0546, 0.1107, 0.1771, 0.2494, 0.3236, 0.3973, 0.
6779
6781
  animation: none;
6780
6782
  }
6781
6783
  }
6782
- `, Nt = "__crossx-confirm-style", D = "__crossx-confirm-overlay", Js = {
6784
+ `, Nt = "__crossx-confirm-style", D = "__crossx-confirm-overlay", Zs = {
6783
6785
  light: {
6784
6786
  bg: "#FFFFFF",
6785
6787
  border: "rgba(0,0,0,0.07)",
@@ -6853,14 +6855,14 @@ const We = "linear(0, 0.0152, 0.0546, 0.1107, 0.1771, 0.2494, 0.3236, 0.3973, 0.
6853
6855
  warningColor: "#FF9F21"
6854
6856
  }
6855
6857
  };
6856
- function Zs(i, e) {
6858
+ function Qs(i, e) {
6857
6859
  const r = /^#([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(i.trim());
6858
6860
  if (!r) return;
6859
6861
  const t = r[1].length === 3 ? r[1].split("").map((n) => n + n).join("") : r[1], s = parseInt(t, 16);
6860
6862
  return `rgba(${s >> 16 & 255},${s >> 8 & 255},${s & 255},${e})`;
6861
6863
  }
6862
6864
  function Ot(i, e) {
6863
- const r = Js[i], t = e == null ? void 0 : e[i];
6865
+ const r = Zs[i], t = e == null ? void 0 : e[i];
6864
6866
  return t ? {
6865
6867
  ...r,
6866
6868
  // ── Brand
@@ -6869,7 +6871,7 @@ function Ot(i, e) {
6869
6871
  ...t.primary !== void 0 && {
6870
6872
  primary: t.primary,
6871
6873
  primaryGradient: t.primary,
6872
- primaryGlow: Zs(t.primary, 0.2) ?? r.primaryGlow
6874
+ primaryGlow: Qs(t.primary, 0.2) ?? r.primaryGlow
6873
6875
  },
6874
6876
  ...t.secondary !== void 0 && { secondary: t.secondary },
6875
6877
  ...t.onPrimary !== void 0 && { onPrimary: t.onPrimary },
@@ -6900,7 +6902,7 @@ function Ot(i, e) {
6900
6902
  ...t.error !== void 0 && { errorColor: t.error }
6901
6903
  } : r;
6902
6904
  }
6903
- const Qs = `
6905
+ const ei = `
6904
6906
  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&family=Sora:wght@400;600&display=swap');
6905
6907
 
6906
6908
  #${D} {
@@ -8827,17 +8829,19 @@ button.__crossx-connect-other-block:active {
8827
8829
  padding-right: 0 !important;
8828
8830
  }
8829
8831
  .__crossx-card--login .__crossx-close { display: none; }
8830
- /* ── 모든 모달 모바일 시트 헤더 통일 (로그인·PIN·지갑 생성과 같은 방식) ──
8831
- 손잡이(30×6) + 여백 16, 우상단 X 숨김. 손잡이는 ::before 로 그려 마크업을 바꾸지 않는다.
8832
- 닫기는 배경 탭(백드롭)·본문 버튼으로 가능하다. 비밀번호 화면(--password)은 X 외 취소 수단이
8833
- 없어 제외한다. 로그인·PIN·지갑 생성·지갑 선택은 자체 손잡이가 있어 제외. */
8834
- :is(.__crossx-card--migration, .__crossx-card--sign-tx, .__crossx-card--sign-msg, .__crossx-card--sign-typed, .__crossx-card--send-tx):not(.__crossx-card--login) > .__crossx-header {
8832
+ /* ── 모바일 시트 헤더 통일 (로그인·PIN·지갑 생성과 같은 방식) ──
8833
+ 손잡이(30×6) + 여백 16, 우상단 X 숨김. 손잡이는 ::before 로 그린다.
8834
+ X 를 숨겨도 본문에 닫기·거절 버튼이 있는 모달에만 --sheet 를 붙인다
8835
+ (서명·거래 결과·세션 만료·업데이트 안내·마이그레이션 발견).
8836
+ 전송 승인(--send-tx)은 거절 버튼이, 복구 PIN 입력·잠금과 비밀번호 화면은 X 외 닫기 수단이
8837
+ 없어 X 를 유지한다. 로그인·PIN·지갑 생성·지갑 선택은 자체 손잡이가 있어 제외. */
8838
+ .__crossx-card.__crossx-card--sheet > .__crossx-header {
8835
8839
  display: flex;
8836
8840
  flex-direction: column;
8837
8841
  align-items: stretch;
8838
8842
  padding: 16px;
8839
8843
  }
8840
- :is(.__crossx-card--migration, .__crossx-card--sign-tx, .__crossx-card--sign-msg, .__crossx-card--sign-typed, .__crossx-card--send-tx):not(.__crossx-card--login) > .__crossx-header::before {
8844
+ .__crossx-card.__crossx-card--sheet > .__crossx-header::before {
8841
8845
  content: '';
8842
8846
  align-self: center;
8843
8847
  width: 30px;
@@ -8847,8 +8851,8 @@ button.__crossx-connect-other-block:active {
8847
8851
  background: var(--cx-surface-high);
8848
8852
  flex-shrink: 0;
8849
8853
  }
8850
- :is(.__crossx-card--migration, .__crossx-card--sign-tx, .__crossx-card--sign-msg, .__crossx-card--sign-typed, .__crossx-card--send-tx):not(.__crossx-card--login) > .__crossx-header > .__crossx-close { display: none; }
8851
- :is(.__crossx-card--migration, .__crossx-card--sign-tx, .__crossx-card--sign-msg, .__crossx-card--sign-typed, .__crossx-card--send-tx):not(.__crossx-card--login) > .__crossx-header .__crossx-title { padding-right: 0 !important; }
8854
+ .__crossx-card.__crossx-card--sheet > .__crossx-header > .__crossx-close { display: none; }
8855
+ .__crossx-card.__crossx-card--sheet > .__crossx-header .__crossx-title { padding-right: 0 !important; }
8852
8856
  /* ── Password card: mobile bottom sheet ── */
8853
8857
  .__crossx-card--password {
8854
8858
  width: 100% !important;
@@ -9543,7 +9547,7 @@ button.__crossx-connect-other-block:active {
9543
9547
  justify-content: center;
9544
9548
  width: 100%;
9545
9549
  }
9546
- ${Xs}
9550
+ ${Js}
9547
9551
  .__crossx-wallet-created-footer {
9548
9552
  padding: 12px 24px 24px;
9549
9553
  width: 100%;
@@ -9596,9 +9600,9 @@ ${Xs}
9596
9600
  `;
9597
9601
  function K() {
9598
9602
  let i = document.getElementById(Nt);
9599
- i || (i = document.createElement("style"), i.id = Nt, document.head.appendChild(i)), i.textContent = Qs;
9603
+ i || (i = document.createElement("style"), i.id = Nt, document.head.appendChild(i)), i.textContent = ei;
9600
9604
  }
9601
- function ei() {
9605
+ function ti() {
9602
9606
  const i = `#${D}`, e = (t) => {
9603
9607
  var s, n;
9604
9608
  (n = (s = t.target) == null ? void 0 : s.closest) != null && n.call(s, i) && t.stopImmediatePropagation();
@@ -9638,12 +9642,12 @@ function V(i) {
9638
9642
  }
9639
9643
  o.preventDefault();
9640
9644
  }, { passive: !1 });
9641
- const t = ei(), s = ti(i), n = i.remove.bind(i);
9645
+ const t = ti(), s = ri(i), n = i.remove.bind(i);
9642
9646
  i.remove = () => {
9643
9647
  s(), t(), n();
9644
9648
  }, document.body.appendChild(i);
9645
9649
  }
9646
- function ti(i) {
9650
+ function ri(i) {
9647
9651
  if (typeof window > "u") return () => {
9648
9652
  };
9649
9653
  const e = window.visualViewport;
@@ -9658,7 +9662,7 @@ function ti(i) {
9658
9662
  e.removeEventListener("resize", t), e.removeEventListener("scroll", t), i.style.removeProperty("--cx-keyboard-inset");
9659
9663
  };
9660
9664
  }
9661
- function ri(i) {
9665
+ function si(i) {
9662
9666
  const e = Array.from(i.querySelectorAll(".__crossx-amount-tip"));
9663
9667
  if (!e.length) return;
9664
9668
  const r = document.createElement("div");
@@ -9682,9 +9686,9 @@ function ri(i) {
9682
9686
  o.target.closest(".__crossx-amount-tip") || n();
9683
9687
  }, { passive: !0 });
9684
9688
  }
9685
- const si = () => /iPad|iPhone|iPod/.test(navigator.userAgent) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1;
9689
+ const ii = () => /iPad|iPhone|iPod/.test(navigator.userAgent) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1;
9686
9690
  function ne() {
9687
- if (si()) {
9691
+ if (ii()) {
9688
9692
  const e = window.scrollY;
9689
9693
  return document.body.style.position = "fixed", document.body.style.top = `-${e}px`, document.body.style.left = "0", document.body.style.right = "0", () => {
9690
9694
  document.body.style.position = "", document.body.style.top = "", document.body.style.left = "", document.body.style.right = "", window.scrollTo(0, e);
@@ -9738,7 +9742,7 @@ const Pt = {
9738
9742
  612055: "CROSS Mainnet"
9739
9743
  }, rt = /* @__PURE__ */ new Map();
9740
9744
  let He = !1;
9741
- function ii() {
9745
+ function ni() {
9742
9746
  if (He || (He = !0, typeof fetch > "u")) return;
9743
9747
  const i = Re().contentsBaseUrl;
9744
9748
  i && fetch(`${i}/chains.json`, { cache: "no-store" }).then((e) => e.ok ? e.json() : null).then((e) => {
@@ -9797,18 +9801,18 @@ function Ge(i) {
9797
9801
  return i;
9798
9802
  }
9799
9803
  }
9800
- function ni(i) {
9804
+ function oi(i) {
9801
9805
  try {
9802
9806
  return BigInt(i).toLocaleString();
9803
9807
  } catch {
9804
9808
  return i;
9805
9809
  }
9806
9810
  }
9807
- function oi(i, e) {
9811
+ function ai(i, e) {
9808
9812
  const { gasLimit: r, gasPrice: t, maxFeePerGas: s, maxPriorityFeePerGas: n, nativeDecimals: o = 18 } = i, a = st(i.chainId, i.nativeSymbol ?? "ETH");
9809
9813
  if (!r) return null;
9810
9814
  try {
9811
- const c = BigInt(r), _ = ni(r);
9815
+ const c = BigInt(r), _ = oi(r);
9812
9816
  if (s) {
9813
9817
  const h = c * BigInt(s);
9814
9818
  return {
@@ -9840,7 +9844,7 @@ function oi(i, e) {
9840
9844
  }
9841
9845
  }
9842
9846
  function qt(i, e, r) {
9843
- const t = oi(i, e);
9847
+ const t = ai(i, e);
9844
9848
  if (!t) return $((r == null ? void 0 : r.label_estimated_fee) ?? "Estimated fee", "<span>—</span>");
9845
9849
  let s = $((r == null ? void 0 : r.label_est_tx_fee) ?? "Est. Tx Fee", `<span>${t.estTxFee}</span>`);
9846
9850
  return t.isDynamic ? (t.maxPriorityFeeGwei !== void 0 && (s += $((r == null ? void 0 : r.label_max_priority_fee) ?? "Max Priority Fee", `<span>${t.maxPriorityFeeGwei} Gwei</span>`)), t.maxFeeGwei !== void 0 && (s += $((r == null ? void 0 : r.label_max_gas_fee) ?? "Max Gas Fee", `<span>${t.maxFeeGwei} Gwei</span>`))) : t.gasPriceGwei !== void 0 && (s += $((r == null ? void 0 : r.label_gas_price) ?? "Gas Price", `<span>${t.gasPriceGwei} Gwei</span>`)), t.gasLimitFormatted && (s += $((r == null ? void 0 : r.label_gas_limit) ?? "Gas Limit", `<span>${t.gasLimitFormatted}</span>`)), s;
@@ -9848,17 +9852,17 @@ function qt(i, e, r) {
9848
9852
  const te = `<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
9849
9853
  <rect x="9" y="9" width="13" height="13" rx="2"/>
9850
9854
  <path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/>
9851
- </svg>`, W = '<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6L6 18M6 6L18 18"/></svg>', ai = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 318.6 318.6" aria-hidden="true"><style>.st1,.st6{fill:#e4761b;stroke:#e4761b;stroke-linecap:round;stroke-linejoin:round}.st6{fill:#f6851b;stroke:#f6851b}</style><path fill="#e2761b" stroke="#e2761b" stroke-linecap="round" stroke-linejoin="round" d="m274.1 35.5-99.5 73.9L193 65.8z"/><path d="m44.4 35.5 98.7 74.6-17.5-44.3zm193.9 171.3-26.5 40.6 56.7 15.6 16.3-55.3zm-204.4.9L50.1 263l56.7-15.6-26.5-40.6z" class="st1"/><path d="m103.6 138.2-15.8 23.9 56.3 2.5-2-60.5zm111.3 0-39-34.8-1.3 61.2 56.2-2.5zM106.8 247.4l33.8-16.5-29.2-22.8zm71.1-16.5 33.9 16.5-4.7-39.3z" class="st1"/><path fill="#d7c1b3" stroke="#d7c1b3" stroke-linecap="round" stroke-linejoin="round" d="m211.8 247.4-33.9-16.5 2.7 22.1-.3 9.3zm-105 0 31.5 14.9-.2-9.3 2.5-22.1z"/><path fill="#233447" stroke="#233447" stroke-linecap="round" stroke-linejoin="round" d="m138.8 193.5-28.2-8.3 19.9-9.1zm40.9 0 8.3-17.4 20 9.1z"/><path fill="#cd6116" stroke="#cd6116" stroke-linecap="round" stroke-linejoin="round" d="m106.8 247.4 4.8-40.6-31.3.9zM207 206.8l4.8 40.6 26.5-39.7zm23.8-44.7-56.2 2.5 5.2 28.9 8.3-17.4 20 9.1zm-120.2 23.1 20-9.1 8.2 17.4 5.3-28.9-56.3-2.5z"/><path fill="#e4751f" stroke="#e4751f" stroke-linecap="round" stroke-linejoin="round" d="m87.8 162.1 23.6 46-.8-22.9zm120.3 23.1-1 22.9 23.7-46zm-64-20.6-5.3 28.9 6.6 34.1 1.5-44.9zm30.5 0-2.7 18 1.2 45 6.7-34.1z"/><path d="m179.8 193.5-6.7 34.1 4.8 3.3 29.2-22.8 1-22.9zm-69.2-8.3.8 22.9 29.2 22.8 4.8-3.3-6.6-34.1z" class="st6"/><path fill="#c0ad9e" stroke="#c0ad9e" stroke-linecap="round" stroke-linejoin="round" d="m180.3 262.3.3-9.3-2.5-2.2h-37.7l-2.3 2.2.2 9.3-31.5-14.9 11 9 22.3 15.5h38.3l22.4-15.5 11-9z"/><path fill="#161616" stroke="#161616" stroke-linecap="round" stroke-linejoin="round" d="m177.9 230.9-4.8-3.3h-27.7l-4.8 3.3-2.5 22.1 2.3-2.2h37.7l2.5 2.2z"/><path fill="#763d16" stroke="#763d16" stroke-linecap="round" stroke-linejoin="round" d="m278.3 114.2 8.5-40.8-12.7-37.9-96.2 71.4 37 31.3 52.3 15.3 11.6-13.5-5-3.6 8-7.3-6.2-4.8 8-6.1zM31.8 73.4l8.5 40.8-5.4 4 8 6.1-6.1 4.8 8 7.3-5 3.6 11.5 13.5 52.3-15.3 37-31.3-96.2-71.4z"/><path d="m267.2 153.5-52.3-15.3 15.9 23.9-23.7 46 31.2-.4h46.5zm-163.6-15.3-52.3 15.3-17.4 54.2h46.4l31.1.4-23.6-46zm71 26.4 3.3-57.7 15.2-41.1h-67.5l15 41.1 3.5 57.7 1.2 18.2.1 44.8h27.7l.2-44.8z" class="st6"/></svg>', ci = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 126.611 126.611" aria-hidden="true"><polygon fill="#F3BA2F" points="38.171,53.203 62.759,28.616 87.36,53.216 101.667,38.909 62.759,0 23.864,38.896 "/><rect x="3.644" y="53.188" transform="matrix(0.7071 0.7071 -0.7071 0.7071 48.7933 8.8106)" fill="#F3BA2F" width="20.233" height="20.234"/><polygon fill="#F3BA2F" points="38.171,73.408 62.759,97.995 87.359,73.396 101.674,87.695 101.667,87.703 62.759,126.611 23.863,87.716 23.843,87.696 "/><rect x="101.64" y="53.189" transform="matrix(-0.7071 0.7071 -0.7071 -0.7071 235.5457 29.0503)" fill="#F3BA2F" width="20.234" height="20.233"/><polygon fill="#F3BA2F" points="77.271,63.298 77.277,63.298 62.759,48.78 52.03,59.509 52.029,59.509 50.797,60.742 48.254,63.285 48.254,63.285 48.234,63.305 48.254,63.326 62.759,77.831 77.277,63.313 77.284,63.305 "/></svg>';
9855
+ </svg>`, W = '<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6L6 18M6 6L18 18"/></svg>', ci = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 318.6 318.6" aria-hidden="true"><style>.st1,.st6{fill:#e4761b;stroke:#e4761b;stroke-linecap:round;stroke-linejoin:round}.st6{fill:#f6851b;stroke:#f6851b}</style><path fill="#e2761b" stroke="#e2761b" stroke-linecap="round" stroke-linejoin="round" d="m274.1 35.5-99.5 73.9L193 65.8z"/><path d="m44.4 35.5 98.7 74.6-17.5-44.3zm193.9 171.3-26.5 40.6 56.7 15.6 16.3-55.3zm-204.4.9L50.1 263l56.7-15.6-26.5-40.6z" class="st1"/><path d="m103.6 138.2-15.8 23.9 56.3 2.5-2-60.5zm111.3 0-39-34.8-1.3 61.2 56.2-2.5zM106.8 247.4l33.8-16.5-29.2-22.8zm71.1-16.5 33.9 16.5-4.7-39.3z" class="st1"/><path fill="#d7c1b3" stroke="#d7c1b3" stroke-linecap="round" stroke-linejoin="round" d="m211.8 247.4-33.9-16.5 2.7 22.1-.3 9.3zm-105 0 31.5 14.9-.2-9.3 2.5-22.1z"/><path fill="#233447" stroke="#233447" stroke-linecap="round" stroke-linejoin="round" d="m138.8 193.5-28.2-8.3 19.9-9.1zm40.9 0 8.3-17.4 20 9.1z"/><path fill="#cd6116" stroke="#cd6116" stroke-linecap="round" stroke-linejoin="round" d="m106.8 247.4 4.8-40.6-31.3.9zM207 206.8l4.8 40.6 26.5-39.7zm23.8-44.7-56.2 2.5 5.2 28.9 8.3-17.4 20 9.1zm-120.2 23.1 20-9.1 8.2 17.4 5.3-28.9-56.3-2.5z"/><path fill="#e4751f" stroke="#e4751f" stroke-linecap="round" stroke-linejoin="round" d="m87.8 162.1 23.6 46-.8-22.9zm120.3 23.1-1 22.9 23.7-46zm-64-20.6-5.3 28.9 6.6 34.1 1.5-44.9zm30.5 0-2.7 18 1.2 45 6.7-34.1z"/><path d="m179.8 193.5-6.7 34.1 4.8 3.3 29.2-22.8 1-22.9zm-69.2-8.3.8 22.9 29.2 22.8 4.8-3.3-6.6-34.1z" class="st6"/><path fill="#c0ad9e" stroke="#c0ad9e" stroke-linecap="round" stroke-linejoin="round" d="m180.3 262.3.3-9.3-2.5-2.2h-37.7l-2.3 2.2.2 9.3-31.5-14.9 11 9 22.3 15.5h38.3l22.4-15.5 11-9z"/><path fill="#161616" stroke="#161616" stroke-linecap="round" stroke-linejoin="round" d="m177.9 230.9-4.8-3.3h-27.7l-4.8 3.3-2.5 22.1 2.3-2.2h37.7l2.5 2.2z"/><path fill="#763d16" stroke="#763d16" stroke-linecap="round" stroke-linejoin="round" d="m278.3 114.2 8.5-40.8-12.7-37.9-96.2 71.4 37 31.3 52.3 15.3 11.6-13.5-5-3.6 8-7.3-6.2-4.8 8-6.1zM31.8 73.4l8.5 40.8-5.4 4 8 6.1-6.1 4.8 8 7.3-5 3.6 11.5 13.5 52.3-15.3 37-31.3-96.2-71.4z"/><path d="m267.2 153.5-52.3-15.3 15.9 23.9-23.7 46 31.2-.4h46.5zm-163.6-15.3-52.3 15.3-17.4 54.2h46.4l31.1.4-23.6-46zm71 26.4 3.3-57.7 15.2-41.1h-67.5l15 41.1 3.5 57.7 1.2 18.2.1 44.8h27.7l.2-44.8z" class="st6"/></svg>', li = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 126.611 126.611" aria-hidden="true"><polygon fill="#F3BA2F" points="38.171,53.203 62.759,28.616 87.36,53.216 101.667,38.909 62.759,0 23.864,38.896 "/><rect x="3.644" y="53.188" transform="matrix(0.7071 0.7071 -0.7071 0.7071 48.7933 8.8106)" fill="#F3BA2F" width="20.233" height="20.234"/><polygon fill="#F3BA2F" points="38.171,73.408 62.759,97.995 87.359,73.396 101.674,87.695 101.667,87.703 62.759,126.611 23.863,87.716 23.843,87.696 "/><rect x="101.64" y="53.189" transform="matrix(-0.7071 0.7071 -0.7071 -0.7071 235.5457 29.0503)" fill="#F3BA2F" width="20.234" height="20.233"/><polygon fill="#F3BA2F" points="77.271,63.298 77.277,63.298 62.759,48.78 52.03,59.509 52.029,59.509 50.797,60.742 48.254,63.285 48.254,63.285 48.234,63.305 48.254,63.326 62.759,77.831 77.277,63.313 77.284,63.305 "/></svg>';
9852
9856
  function jt(i, e) {
9853
9857
  return `<svg width="${i}" height="${i}" viewBox="0 0 229 229" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><g clip-path="url(#clip0_${e})"><rect width="228.273" height="228.273" rx="87" fill="white"/><path d="M228.307 -0.0644531H0.0332031V228.209H228.307V-0.0644531Z" fill="#CE3E35"/><path d="M33.9219 43.7533C33.9219 31.934 43.5033 22.3527 55.3225 22.3527H173.019C184.838 22.3527 194.419 31.9341 194.419 43.7533V123.107H33.9219V43.7533Z" fill="white"/><g filter="url(#filter0_d_${e})"><path d="M228.241 228.21H0.0332031V56.5961C0.0332031 48.7166 6.4208 42.329 14.3003 42.329H77.9502C84.6851 42.329 90.1926 47.3831 94.2527 52.7566C98.8699 58.8676 106.06 62.7958 114.137 62.7958C122.214 62.7958 129.404 58.8676 134.021 52.7566C138.081 47.3831 143.589 42.329 150.324 42.329H213.974C221.854 42.329 228.241 48.7166 228.241 56.5961V228.21Z" fill="url(#paint0_linear_${e})"/></g><path d="M79.7598 228.096H228.24V64.7367L79.7598 159.851V228.096Z" fill="url(#paint1_linear_${e})"/><path d="M79.7694 228.209H0.0332031V75.9257L79.7694 160.218V228.209Z" fill="url(#paint2_linear_${e})"/><g filter="url(#filter1_d_${e})"><path d="M113.105 89.2908L81.3322 107.655C75.7279 110.878 73.7862 118.118 77.0076 123.724C80.229 129.331 87.4661 131.273 93.0704 128.051L119.945 112.511L107.147 126.241V180.098C107.147 186.588 112.443 191.885 118.93 191.885C125.417 191.885 130.712 186.588 130.712 180.098V99.4884C130.712 97.237 130.006 95.0297 129.124 93.5729C125.814 88.0106 118.665 86.024 113.061 89.2466L113.105 89.2908Z" fill="white"/></g></g><defs><filter id="filter0_d_${e}" x="-7.10034" y="33.4121" width="242.474" height="200.148" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dy="-1.78339"/><feGaussianBlur stdDeviation="3.56677"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix type="matrix" values="0 0 0 0 0.892803 0 0 0 0 0.220099 0 0 0 0 0.293135 0 0 0 0.5 0"/><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_${e}"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_${e}" result="shape"/></filter><filter id="filter1_d_${e}" x="67.9009" y="80.1489" width="75.3839" height="124.308" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="2.51084" dy="2.51084"/><feGaussianBlur stdDeviation="5.03056"/><feColorMatrix type="matrix" values="0 0 0 0 0.831373 0 0 0 0 0.113725 0 0 0 0 0.356863 0 0 0 0.3 0"/><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_${e}"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_${e}" result="shape"/></filter><linearGradient id="paint0_linear_${e}" x1="-26.3993" y1="19.4879" x2="193.409" y2="286.17" gradientUnits="userSpaceOnUse"><stop stop-color="#F3752D"/><stop offset="1" stop-color="#EC1272"/></linearGradient><linearGradient id="paint1_linear_${e}" x1="56.978" y1="73.7355" x2="168.096" y2="169.248" gradientUnits="userSpaceOnUse"><stop stop-color="white" stop-opacity="0.5"/><stop offset="1" stop-color="white" stop-opacity="0"/></linearGradient><linearGradient id="paint2_linear_${e}" x1="142.362" y1="29.5078" x2="37.3384" y2="166.255" gradientUnits="userSpaceOnUse"><stop stop-color="white" stop-opacity="0.5"/><stop offset="1" stop-color="white" stop-opacity="0"/></linearGradient><clipPath id="clip0_${e}"><rect width="228.273" height="228.273" rx="87" fill="white"/></clipPath></defs></svg>`;
9854
9858
  }
9855
- const li = jt(16, "connect-inline"), di = {
9856
- [me.MetaMask]: ai,
9857
- [me.Binance]: ci,
9858
- [me.CROSSx]: li
9859
- }, pi = '<path d="M22.6667 11.8333V10.1667C22.6667 9.2475 21.9192 8.5 21.0001 8.5H10.1667C8.78841 8.5 7.66675 9.62167 7.66675 11V21C7.66675 22.8342 9.16175 23.5 10.1667 23.5H22.6667C23.5859 23.5 24.3334 22.7525 24.3334 21.8333V13.5C24.3334 12.5808 23.5859 11.8333 22.6667 11.8333ZM21.0001 19.3333H19.3334V16H21.0001V19.3333ZM10.1667 11.8333C9.95218 11.8237 9.74959 11.7317 9.60114 11.5765C9.4527 11.4213 9.36986 11.2148 9.36986 11C9.36986 10.7852 9.4527 10.5787 9.60114 10.4235C9.74959 10.2683 9.95218 10.1763 10.1667 10.1667H21.0001V11.8333H10.1667Z"/>', it = '<svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M17.4076 5.37036V3.51851C17.4076 2.49722 16.5771 1.66666 15.5558 1.66666H3.51874C1.98726 1.66666 0.740967 2.91296 0.740967 4.44444V15.5555C0.740967 17.5935 2.40208 18.3333 3.51874 18.3333H17.4076C18.4289 18.3333 19.2595 17.5028 19.2595 16.4815V7.22222C19.2595 6.20092 18.4289 5.37036 17.4076 5.37036ZM15.5558 13.7037H13.7039V9.99999H15.5558V13.7037ZM3.51874 5.37036C3.28034 5.3597 3.05523 5.25749 2.8903 5.08501C2.72536 4.91253 2.63331 4.68308 2.63331 4.44444C2.63331 4.20579 2.72536 3.97634 2.8903 3.80387C3.05523 3.63139 3.28034 3.52918 3.51874 3.51851H15.5558V5.37036H3.51874Z"/></svg>', _i = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none">
9859
+ const di = jt(16, "connect-inline"), pi = {
9860
+ [me.MetaMask]: ci,
9861
+ [me.Binance]: li,
9862
+ [me.CROSSx]: di
9863
+ }, _i = '<path d="M22.6667 11.8333V10.1667C22.6667 9.2475 21.9192 8.5 21.0001 8.5H10.1667C8.78841 8.5 7.66675 9.62167 7.66675 11V21C7.66675 22.8342 9.16175 23.5 10.1667 23.5H22.6667C23.5859 23.5 24.3334 22.7525 24.3334 21.8333V13.5C24.3334 12.5808 23.5859 11.8333 22.6667 11.8333ZM21.0001 19.3333H19.3334V16H21.0001V19.3333ZM10.1667 11.8333C9.95218 11.8237 9.74959 11.7317 9.60114 11.5765C9.4527 11.4213 9.36986 11.2148 9.36986 11C9.36986 10.7852 9.4527 10.5787 9.60114 10.4235C9.74959 10.2683 9.95218 10.1763 10.1667 10.1667H21.0001V11.8333H10.1667Z"/>', it = '<svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M17.4076 5.37036V3.51851C17.4076 2.49722 16.5771 1.66666 15.5558 1.66666H3.51874C1.98726 1.66666 0.740967 2.91296 0.740967 4.44444V15.5555C0.740967 17.5935 2.40208 18.3333 3.51874 18.3333H17.4076C18.4289 18.3333 19.2595 17.5028 19.2595 16.4815V7.22222C19.2595 6.20092 18.4289 5.37036 17.4076 5.37036ZM15.5558 13.7037H13.7039V9.99999H15.5558V13.7037ZM3.51874 5.37036C3.28034 5.3597 3.05523 5.25749 2.8903 5.08501C2.72536 4.91253 2.63331 4.68308 2.63331 4.44444C2.63331 4.20579 2.72536 3.97634 2.8903 3.80387C3.05523 3.63139 3.28034 3.52918 3.51874 3.51851H15.5558V5.37036H3.51874Z"/></svg>', hi = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none">
9860
9864
  <path d="M12 0C18.6274 0 24 5.37258 24 12C23.9999 18.6273 18.6274 24 12 24C5.37264 24 9.89594e-05 18.6273 0 12C0 5.37258 5.37258 0 12 0ZM10.875 15.127V17.377H13.125V15.127H10.875ZM10.875 6.62207V13.627H13.125V6.62207H10.875Z" fill="var(--cx-error)"/>
9861
- </svg>`, hi = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none">
9865
+ </svg>`, ui = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none">
9862
9866
  <circle cx="12" cy="12" r="12" fill="var(--cx-error)"/>
9863
9867
  <circle cx="12" cy="12" r="5.5" stroke="white" stroke-width="1.5"/>
9864
9868
  <path d="M12 9.5v3l2 1.5" stroke="white" stroke-width="1.5" stroke-linecap="round"/>
@@ -9898,7 +9902,7 @@ function G(i) {
9898
9902
  `--cx-warning:${i.warningColor}`
9899
9903
  ].join(";");
9900
9904
  }
9901
- function ui(i, e) {
9905
+ function xi(i, e) {
9902
9906
  i.style.setProperty("--cx-bg", e.bg), i.style.setProperty("--cx-border", e.border), i.style.setProperty("--cx-border-medium", e.borderMedium), i.style.setProperty("--cx-title", e.titleColor), i.style.setProperty("--cx-subtitle", e.subtitleColor), i.style.setProperty("--cx-label", e.labelColor), i.style.setProperty("--cx-value", e.valueColor), i.style.setProperty("--cx-pill-bg", e.pillBg), i.style.setProperty("--cx-pill-from", e.pillFromColor), i.style.setProperty("--cx-pill-amt", e.pillAmtColor), i.style.setProperty("--cx-divider", e.divider), i.style.setProperty("--cx-close", e.closeColor), i.style.setProperty("--cx-close-hover", e.closeHoverBg), i.style.setProperty("--cx-copy", e.copyColor), i.style.setProperty("--cx-input-bg", e.inputBg), i.style.setProperty("--cx-input-border", e.inputBorder), i.style.setProperty("--cx-hint", e.hintColor), i.style.setProperty("--cx-surface-subtle", e.surfaceSubtle), i.style.setProperty("--cx-surface-high", e.surfaceHigh), i.style.setProperty("--cx-primary", e.primary), i.style.setProperty("--cx-primary-glow", e.primaryGlow), i.style.setProperty("--cx-primary-gradient", e.primaryGradient), i.style.setProperty("--cx-secondary", e.secondary), i.style.setProperty("--cx-error", e.errorColor), i.style.setProperty("--cx-notice-bg", e.noticeBg), i.style.setProperty("--cx-notice-border", e.noticeBorder), i.style.setProperty("--cx-notice-title", e.noticeTitleColor), i.style.setProperty("--cx-on-primary", e.onPrimary), i.style.setProperty("--cx-wc-sparkle", e.sparkleColor), i.style.setProperty("--cx-warning", e.warningColor);
9903
9907
  }
9904
9908
  function $(i, e) {
@@ -9908,11 +9912,11 @@ function $(i, e) {
9908
9912
  <div class="__crossx-row-value">${e}</div>
9909
9913
  </div>`;
9910
9914
  }
9911
- function xi(i, e, r, t) {
9915
+ function gi(i, e, r, t) {
9912
9916
  const s = e, n = st(i.chainId, i.nativeSymbol ?? "ETH"), o = i.nativeDecimals ?? 18, a = Le(i.dappName), c = i.to ? `<span class="__crossx-addr-text">${re(i.to)}</span>
9913
9917
  <button class="__crossx-copy-btn" data-copy="${f(i.to)}" title="Copy address">${te}</button>` : "<span>—</span>", _ = qt(i, r, t), h = Kt(i.value, n, o, r), u = h ? $((t == null ? void 0 : t.label_value) ?? "Value", `<span>${h}</span>`) : "", x = i.data ?? "0x", w = /^(0x)?$/i.test(x.trim()) ? "" : `<pre class="__crossx-raw-tx">${f(x)}</pre>`, y = document.createElement("div");
9914
9918
  return y.id = D, y.innerHTML = `
9915
- <div class="__crossx-card __crossx-card--migration __crossx-card--sign-tx" style="${G(s)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
9919
+ <div class="__crossx-card __crossx-card--migration __crossx-card--sheet __crossx-card--sign-tx" style="${G(s)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
9916
9920
  <div class="__crossx-header">
9917
9921
  <p class="__crossx-title" id="__crossx-ttl">${f((t == null ? void 0 : t.sign_transaction_title) ?? "Signature Request")}</p>
9918
9922
  <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>
@@ -9949,7 +9953,7 @@ function xi(i, e, r, t) {
9949
9953
  </div>
9950
9954
  `, y;
9951
9955
  }
9952
- const gi = /* @__PURE__ */ new Set([
9956
+ const fi = /* @__PURE__ */ new Set([
9953
9957
  "0x095ea7b3",
9954
9958
  // approve(address,uint256) — ERC20 / ERC721
9955
9959
  "0xa22cb465",
@@ -9959,12 +9963,12 @@ const gi = /* @__PURE__ */ new Set([
9959
9963
  "0x8fcbaf0c"
9960
9964
  // permit(address,address,uint256,uint256,bool,uint8,bytes32,bytes32) — DAI 스타일
9961
9965
  ]);
9962
- function fi(i) {
9963
- return i ? gi.has(i.slice(0, 10).toLowerCase()) : !1;
9966
+ function wi(i) {
9967
+ return i ? fi.has(i.slice(0, 10).toLowerCase()) : !1;
9964
9968
  }
9965
- function wi(i, e, r, t) {
9969
+ function mi(i, e, r, t) {
9966
9970
  const s = e, n = st(i.chainId, i.nativeSymbol ?? "ETH"), o = i.nativeDecimals ?? 18, a = Le(i.dappName), c = i.to ? `<span class="__crossx-addr-text">${re(i.to)}</span>
9967
- <button class="__crossx-copy-btn" data-copy="${f(i.to)}" title="Copy address">${te}</button>` : "<span>—</span>", _ = qt(i, r, t), u = Kt(i.value, n, o, r) ?? "—", x = fi(i.data) ? (t == null ? void 0 : t.send_tx_approve_button) ?? "Approve" : (t == null ? void 0 : t.send_tx_confirm_button) ?? "Confirm", w = document.createElement("div");
9971
+ <button class="__crossx-copy-btn" data-copy="${f(i.to)}" title="Copy address">${te}</button>` : "<span>—</span>", _ = qt(i, r, t), u = Kt(i.value, n, o, r) ?? "—", x = wi(i.data) ? (t == null ? void 0 : t.send_tx_approve_button) ?? "Approve" : (t == null ? void 0 : t.send_tx_confirm_button) ?? "Confirm", w = document.createElement("div");
9968
9972
  return w.id = D, w.innerHTML = `
9969
9973
  <div class="__crossx-card __crossx-card--migration __crossx-card--send-tx" style="${G(s)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
9970
9974
  <div class="__crossx-header">
@@ -10004,10 +10008,10 @@ function Le(i) {
10004
10008
  function f(i) {
10005
10009
  return i.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
10006
10010
  }
10007
- function mi(i) {
10011
+ function yi(i) {
10008
10012
  return typeof i == "string" && /^0x[0-9a-fA-F]{40}$/i.test(i);
10009
10013
  }
10010
- function yi(i) {
10014
+ function Si(i) {
10011
10015
  if (typeof i == "string") return f(i);
10012
10016
  if (typeof i == "number" || typeof i == "bigint" || typeof i == "boolean") return String(i);
10013
10017
  try {
@@ -10016,25 +10020,25 @@ function yi(i) {
10016
10020
  return String(i);
10017
10021
  }
10018
10022
  }
10019
- function Si(i) {
10023
+ function bi(i) {
10020
10024
  return i.includes(":") ? i.split(":")[1] ?? i : i;
10021
10025
  }
10022
- function bi(i) {
10026
+ function vi(i) {
10023
10027
  return `https://www.crossscan.io/address/${i}?tab=txs`;
10024
10028
  }
10025
- function vi(i, e) {
10026
- return `https://explorer.crosstoken.io/${Si(i)}/tx/${e}`;
10029
+ function Ei(i, e) {
10030
+ return `https://explorer.crosstoken.io/${bi(i)}/tx/${e}`;
10027
10031
  }
10028
10032
  function Yt(i, e) {
10029
10033
  return `<a class="__crossx-addr-text __crossx-row-link" href="${f(e)}" target="_blank" rel="noopener noreferrer">${f(i)}</a>`;
10030
10034
  }
10031
10035
  function Oe(i) {
10032
- return Yt(re(i), bi(i));
10036
+ return Yt(re(i), vi(i));
10033
10037
  }
10034
10038
  function Xt(i, e) {
10035
- return Yt(re(e), vi(i, e));
10039
+ return Yt(re(e), Ei(i, e));
10036
10040
  }
10037
- function Ei(i, e, r) {
10041
+ function Ii(i, e, r) {
10038
10042
  const t = $(
10039
10043
  (r == null ? void 0 : r.label_from) ?? "From",
10040
10044
  `${Oe(i.from)}
@@ -10046,7 +10050,7 @@ function Ei(i, e, r) {
10046
10050
  <span class="__crossx-total-amount">${f(i.total)}</span>
10047
10051
  </div>` : "", _ = document.createElement("div");
10048
10052
  return _.id = D, _.innerHTML = `
10049
- <div class="__crossx-card __crossx-card--migration" style="${G(e)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
10053
+ <div class="__crossx-card __crossx-card--migration __crossx-card--sheet" style="${G(e)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
10050
10054
  <div class="__crossx-header">
10051
10055
  <p class="__crossx-title" id="__crossx-ttl">${f((r == null ? void 0 : r.tx_success) ?? "Transaction complete")}</p>
10052
10056
  <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>
@@ -10066,10 +10070,10 @@ function Ei(i, e, r) {
10066
10070
  </div>
10067
10071
  `, _;
10068
10072
  }
10069
- function Ii(i, e, r) {
10073
+ function Ai(i, e, r) {
10070
10074
  const t = document.createElement("div");
10071
10075
  return t.id = D, t.innerHTML = `
10072
- <div class="__crossx-card __crossx-card--migration" style="${G(e)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
10076
+ <div class="__crossx-card __crossx-card--migration __crossx-card--sheet" style="${G(e)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
10073
10077
  <div class="__crossx-header">
10074
10078
  <p class="__crossx-title" id="__crossx-ttl">${f((r == null ? void 0 : r.tx_progress_waiting_title) ?? "Waiting for confirmation")}</p>
10075
10079
  </div>
@@ -10083,10 +10087,10 @@ function Ii(i, e, r) {
10083
10087
  </div>
10084
10088
  `, t;
10085
10089
  }
10086
- function Ai(i, e, r, t) {
10090
+ function Ti(i, e, r, t) {
10087
10091
  const s = e.status !== "reverted" && e.status !== "timeout", n = e.status === "timeout", o = i.querySelector("#__crossx-ttl"), a = i.querySelector(".__crossx-header");
10088
10092
  if (o) {
10089
- const S = n ? hi : s ? "" : _i, g = n ? (t == null ? void 0 : t.tx_timeout) ?? "Transaction timeout" : s ? (t == null ? void 0 : t.tx_success) ?? "Transaction complete" : (t == null ? void 0 : t.tx_failed) ?? "Transaction failed";
10093
+ const S = n ? ui : s ? "" : hi, g = n ? (t == null ? void 0 : t.tx_timeout) ?? "Transaction timeout" : s ? (t == null ? void 0 : t.tx_success) ?? "Transaction complete" : (t == null ? void 0 : t.tx_failed) ?? "Transaction failed";
10090
10094
  S ? (o.style.display = "flex", o.style.alignItems = "center", o.style.gap = "8px", o.innerHTML = `${S}<span>${f(g)}</span>`) : o.textContent = g;
10091
10095
  }
10092
10096
  if (a && !i.querySelector("#__crossx-close-btn")) {
@@ -10122,10 +10126,10 @@ function Ai(i, e, r, t) {
10122
10126
  });
10123
10127
  });
10124
10128
  }
10125
- function Ti(i, e, r) {
10129
+ function Ci(i, e, r) {
10126
10130
  const t = e, s = Le(i.dappName), n = f(i.message), o = document.createElement("div");
10127
10131
  return o.id = D, o.innerHTML = `
10128
- <div class="__crossx-card __crossx-card--migration __crossx-card--sign-msg" style="${G(t)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
10132
+ <div class="__crossx-card __crossx-card--migration __crossx-card--sheet __crossx-card--sign-msg" style="${G(t)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
10129
10133
  <div class="__crossx-header">
10130
10134
  <p class="__crossx-title" id="__crossx-ttl">${f((r == null ? void 0 : r.sign_message_title) ?? "Signature Request")}</p>
10131
10135
  <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>
@@ -10154,7 +10158,7 @@ function Ti(i, e, r) {
10154
10158
  </div>
10155
10159
  `, o;
10156
10160
  }
10157
- function Ci(i, e, r) {
10161
+ function ki(i, e, r) {
10158
10162
  const t = e, s = Le(i.dappName);
10159
10163
  let n = {};
10160
10164
  if (typeof i.typedData == "string")
@@ -10170,7 +10174,7 @@ function Ci(i, e, r) {
10170
10174
  <span class="__crossx-td-value">${f(o)}</span>
10171
10175
  </div>`;
10172
10176
  for (const [h, u] of Object.entries(a)) {
10173
- const x = yi(u), y = mi(u) ? `<span class="__crossx-addr-text">${re(u)}</span>
10177
+ const x = Si(u), y = yi(u) ? `<span class="__crossx-addr-text">${re(u)}</span>
10174
10178
  <button class="__crossx-copy-btn" data-copy="${f(String(u))}" title="Copy">${te}</button>` : `<span>${x}</span>`;
10175
10179
  c += `
10176
10180
  <div class="__crossx-td-row">
@@ -10180,7 +10184,7 @@ function Ci(i, e, r) {
10180
10184
  }
10181
10185
  const _ = document.createElement("div");
10182
10186
  return _.id = D, _.innerHTML = `
10183
- <div class="__crossx-card __crossx-card--migration __crossx-card--sign-typed" style="${G(t)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
10187
+ <div class="__crossx-card __crossx-card--migration __crossx-card--sheet __crossx-card--sign-typed" style="${G(t)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
10184
10188
  <div class="__crossx-header">
10185
10189
  <p class="__crossx-title" id="__crossx-ttl">${f((r == null ? void 0 : r.sign_typed_data_title) ?? "Signature Request")}</p>
10186
10190
  <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>
@@ -10209,29 +10213,29 @@ function Ci(i, e, r) {
10209
10213
  </div>
10210
10214
  `, _;
10211
10215
  }
10212
- const ki = '<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12H19M12 5V19"/></svg>', Ri = '<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="12" fill="var(--cx-primary, #00ceb2)"/><path d="M7.5 12.5L10.5 15.5L16.5 8.5" stroke="var(--cx-on-primary, #000)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';
10216
+ const Ri = '<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12H19M12 5V19"/></svg>', Ni = '<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="12" fill="var(--cx-primary, #00ceb2)"/><path d="M7.5 12.5L10.5 15.5L16.5 8.5" stroke="var(--cx-on-primary, #000)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';
10213
10217
  function Jt(i) {
10214
10218
  return i.name || `Account ${i.index + 1}`;
10215
10219
  }
10216
- function Ni() {
10217
- return `<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="32" height="32" rx="16" fill="#121212" fill-opacity="0.1"/><g fill="#121212" fill-opacity="0.5">${pi}</g></svg>`;
10220
+ function Oi() {
10221
+ return `<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="32" height="32" rx="16" fill="#121212" fill-opacity="0.1"/><g fill="#121212" fill-opacity="0.5">${_i}</g></svg>`;
10218
10222
  }
10219
- const Oi = Re().portraitBaseUrl;
10220
- function Pi(i, e) {
10223
+ const Pi = Re().portraitBaseUrl;
10224
+ function Di(i, e) {
10221
10225
  const r = e.replace("#", "");
10222
- return `${Oi}/portrait/evm/${encodeURIComponent(i)}.png?size=256&bg=${encodeURIComponent(r)}`;
10226
+ return `${Pi}/portrait/evm/${encodeURIComponent(i)}.png?size=256&bg=${encodeURIComponent(r)}`;
10223
10227
  }
10224
10228
  function Zt(i, e, r) {
10225
- const t = Pi(i, r), n = Ni().replace(/"/g, "&quot;");
10229
+ const t = Di(i, r), n = Oi().replace(/"/g, "&quot;");
10226
10230
  return `<span class="__crossx-wallet-avatar"><img class="__crossx-wallet-avatar-img" src="${f(t)}" alt="" onerror="this.style.display='none';this.nextElementSibling.innerHTML='${n}';this.nextElementSibling.style.display='flex';"><span class="__crossx-wallet-avatar-fallback"></span></span>`;
10227
10231
  }
10228
- function Di(i, e, r, t, s = !0) {
10232
+ function Li(i, e, r, t, s = !0) {
10229
10233
  const n = i.length === 0, o = s || n ? `<button class="__crossx-wallet-add" id="__crossx-add-wallet-btn" type="button">
10230
- <span class="__crossx-wallet-add-icon">${ki}</span>
10234
+ <span class="__crossx-wallet-add-icon">${Ri}</span>
10231
10235
  <span class="__crossx-wallet-add-label">${f((t == null ? void 0 : t.wallet_selector_add_button) ?? "Add Wallet")}</span>
10232
10236
  </button>
10233
10237
  <p class="__crossx-wallet-add-error" id="__crossx-add-wallet-error" role="alert" aria-live="polite" hidden></p>` : "", a = r == null ? void 0 : r.toLowerCase(), c = i.map((u) => {
10234
- const x = a && u.address.toLowerCase() === a, w = x ? " __crossx-wallet-item--selected" : "", y = x ? `<span class="__crossx-wallet-selected">${f((t == null ? void 0 : t.wallet_selector_selected) ?? "Selected")}</span><span class="__crossx-wallet-check">${Ri}</span>` : "";
10238
+ const x = a && u.address.toLowerCase() === a, w = x ? " __crossx-wallet-item--selected" : "", y = x ? `<span class="__crossx-wallet-selected">${f((t == null ? void 0 : t.wallet_selector_selected) ?? "Selected")}</span><span class="__crossx-wallet-check">${Ni}</span>` : "";
10235
10239
  return `<button class="__crossx-wallet-item${w}" data-wallet-index="${f(String(u.index))}" data-wallet-address="${f(u.address)}">
10236
10240
  ${Zt(u.address, u.index, e.bg)}<span class="__crossx-wallet-info"><span class="__crossx-wallet-idx">${f(Jt(u))}</span><span class="__crossx-wallet-addr">${f(Gt(u.address))}</span></span>${y}
10237
10241
  </button>`;
@@ -10264,11 +10268,11 @@ function Di(i, e, r, t, s = !0) {
10264
10268
  </div>
10265
10269
  `, h;
10266
10270
  }
10267
- function Li(i, e) {
10271
+ function Mi(i, e) {
10268
10272
  const r = document.createElement("div");
10269
10273
  r.id = D;
10270
10274
  const t = document.createElement("div");
10271
- t.className = "__crossx-card __crossx-card--wallet-created", ui(t, i), t.role = "dialog", t.ariaModal = "true", t.setAttribute("aria-labelledby", "__crossx-ttl");
10275
+ t.className = "__crossx-card __crossx-card--wallet-created", xi(t, i), t.role = "dialog", t.ariaModal = "true", t.setAttribute("aria-labelledby", "__crossx-ttl");
10272
10276
  const s = document.createElement("div");
10273
10277
  s.className = "__crossx-header";
10274
10278
  const n = document.createElement("span");
@@ -10284,28 +10288,28 @@ function Li(i, e) {
10284
10288
  const h = document.createElement("div");
10285
10289
  h.className = "__crossx-wallet-created-hero";
10286
10290
  const u = document.createElement("span");
10287
- u.className = "__crossx-wallet-created-illust", u.ariaHidden = "true", u.innerHTML = Ys, h.appendChild(u), _.appendChild(h);
10291
+ u.className = "__crossx-wallet-created-illust", u.ariaHidden = "true", u.innerHTML = Xs, h.appendChild(u), _.appendChild(h);
10288
10292
  const x = document.createElement("div");
10289
10293
  x.className = "__crossx-wallet-created-footer";
10290
10294
  const w = document.createElement("button");
10291
10295
  return w.className = "__crossx-wallet-created-btn", w.id = "__crossx-wallet-created-done", w.type = "button", w.textContent = (e == null ? void 0 : e.wallet_created_button) ?? "Got it", x.appendChild(w), t.append(s, c, _, x), r.appendChild(t), r;
10292
10296
  }
10293
- const Mi = `<svg width="32" height="32" viewBox="4.62 5.5 30.16 30.16" fill="none" xmlns="http://www.w3.org/2000/svg">
10297
+ const Fi = `<svg width="32" height="32" viewBox="4.62 5.5 30.16 30.16" fill="none" xmlns="http://www.w3.org/2000/svg">
10294
10298
  <path d="M26.693 21.193c-.028-3.168 2.587-4.712 2.706-4.786-1.477-2.16-3.77-2.454-4.58-2.484-1.944-.197-3.804 1.148-4.793 1.148-.992 0-2.52-1.12-4.147-1.09-2.13.032-4.1 1.239-5.198 3.133-2.222 3.855-.569 9.562 1.593 12.69 1.061 1.535 2.318 3.258 3.975 3.196 1.6-.064 2.2-1.03 4.133-1.03 1.928 0 2.48 1.03 4.172.997 1.72-.03 2.806-1.56 3.862-3.1 1.211-1.779 1.713-3.495 1.74-3.583-.037-.017-3.427-1.316-3.463-5.09z" fill="currentColor"/>
10295
10299
  <path d="M23.527 11.876c.877-1.065 1.471-2.545 1.31-4.024-1.266.053-2.807.845-3.718 1.907-.813.946-1.53 2.468-1.34 3.915 1.41.107 2.852-.716 3.748-1.798z" fill="currentColor"/>
10296
- </svg>`, Fi = `<svg width="32" height="32" viewBox="-2.77 -2.77 45.54 45.54" fill="none" xmlns="http://www.w3.org/2000/svg">
10300
+ </svg>`, $i = `<svg width="32" height="32" viewBox="-2.77 -2.77 45.54 45.54" fill="none" xmlns="http://www.w3.org/2000/svg">
10297
10301
  <path d="M38.06 20.44c0-1.34-.12-2.63-.34-3.87H20.5v7.32h9.84c-.42 2.28-1.71 4.21-3.65 5.51v4.57h5.91c3.46-3.19 5.46-7.88 5.46-13.53z" fill="#4285F4"/>
10298
10302
  <path d="M20.5 38.5c4.94 0 9.09-1.64 12.12-4.44l-5.91-4.57c-1.64 1.1-3.73 1.75-6.21 1.75-4.77 0-8.82-3.22-10.26-7.55H4.16v4.72A18.49 18.49 0 0 0 20.5 38.5z" fill="#34A853"/>
10299
10303
  <path d="M10.24 23.69A11.16 11.16 0 0 1 9.66 20c0-1.28.22-2.52.58-3.69v-4.72H4.16A18.49 18.49 0 0 0 2 20c0 2.97.71 5.78 1.97 8.28l6.27-4.59z" fill="#FBBC05"/>
10300
10304
  <path d="M20.5 8.76c2.69 0 5.1.92 7 2.73l5.24-5.24C29.58 3.36 25.43 1.5 20.5 1.5A18.49 18.49 0 0 0 4.16 11.59l6.08 4.72C11.68 11.98 15.73 8.76 20.5 8.76z" fill="#EA4335"/>
10301
10305
  </svg>`;
10302
- function $i(i) {
10306
+ function Ui(i) {
10303
10307
  const e = mr(i);
10304
- return `<span class="__crossx-connect-other-wallet-desc-part"><span class="__crossx-connect-other-wallet-icon" aria-hidden="true">${di[i] ?? ""}</span><span class="__crossx-connect-other-wallet-name">${f(e)}</span></span>`;
10308
+ return `<span class="__crossx-connect-other-wallet-desc-part"><span class="__crossx-connect-other-wallet-icon" aria-hidden="true">${pi[i] ?? ""}</span><span class="__crossx-connect-other-wallet-name">${f(e)}</span></span>`;
10305
10309
  }
10306
- function Ui(i) {
10310
+ function Bi(i) {
10307
10311
  if (i.length === 0) return "";
10308
- const e = (s) => $i(i[s]), r = "Supported wallets include ";
10312
+ const e = (s) => Ui(i[s]), r = "Supported wallets include ";
10309
10313
  if (i.length === 1)
10310
10314
  return `${r}${e(0)}.`;
10311
10315
  if (i.length === 2)
@@ -10315,7 +10319,7 @@ function Ui(i) {
10315
10319
  const t = i.length - 3;
10316
10320
  return `${r}${e(0)}, ${e(1)}, ${e(2)}, and ${t} more.`;
10317
10321
  }
10318
- function Bi(i, e = [], r) {
10322
+ function Wi(i, e = [], r) {
10319
10323
  const t = i, s = f(String(e[0])), n = f((r == null ? void 0 : r.login_selector_or) ?? "or"), o = e.length > 0 ? `
10320
10324
  <div class="__crossx-login-or-divider">
10321
10325
  <hr><span>${n}</span><hr>
@@ -10323,7 +10327,7 @@ function Bi(i, e = [], r) {
10323
10327
  <button type="button" class="__crossx-connect-other-block" id="__crossx-connect-other-wallet-btn" data-wallet-id="${s}" aria-labelledby="__crossx-connect-other-heading">
10324
10328
  <span class="__crossx-connect-other-text">
10325
10329
  <span class="__crossx-connect-other-title" id="__crossx-connect-other-heading">${f((r == null ? void 0 : r.login_selector_connect_other_wallets) ?? "Connect with Other Wallets")}</span>
10326
- <span class="__crossx-connect-other-desc __crossx-connect-other-summary">${Ui(e)}</span>
10330
+ <span class="__crossx-connect-other-desc __crossx-connect-other-summary">${Bi(e)}</span>
10327
10331
  </span>
10328
10332
  </button>` : "", a = document.createElement("div");
10329
10333
  return a.id = D, a.innerHTML = `
@@ -10340,11 +10344,11 @@ function Bi(i, e = [], r) {
10340
10344
  <div class="__crossx-body">
10341
10345
  <div class="__crossx-login-btn-row">
10342
10346
  <button class="__crossx-login-btn" id="__crossx-apple-btn" type="button">
10343
- <span class="__crossx-login-icon" style="color:var(--cx-value);">${Mi}</span>
10347
+ <span class="__crossx-login-icon" style="color:var(--cx-value);">${Fi}</span>
10344
10348
  <span class="__crossx-login-btn-label">${f((r == null ? void 0 : r.login_selector_apple) ?? "Sign in with Apple")}</span>
10345
10349
  </button>
10346
10350
  <button class="__crossx-login-btn" id="__crossx-google-btn" type="button">
10347
- <span class="__crossx-login-icon">${Fi}</span>
10351
+ <span class="__crossx-login-icon">${$i}</span>
10348
10352
  <span class="__crossx-login-btn-label">${f((r == null ? void 0 : r.login_selector_google) ?? "Sign in with Google")}</span>
10349
10353
  </button>
10350
10354
  </div>${o}
@@ -10355,7 +10359,7 @@ function Bi(i, e = [], r) {
10355
10359
  </div>
10356
10360
  `, a;
10357
10361
  }
10358
- function Wi(i, e) {
10362
+ function Hi(i, e) {
10359
10363
  const r = i, t = document.createElement("div");
10360
10364
  t.id = D;
10361
10365
  const s = f(e.message).replace(/\n/g, "<br>"), n = e.email ? `<div class="__crossx-session-account-card">
@@ -10363,7 +10367,7 @@ function Wi(i, e) {
10363
10367
  <p class="__crossx-session-account-email">${f(e.email)}</p>
10364
10368
  </div>` : "";
10365
10369
  return t.innerHTML = `
10366
- <div class="__crossx-card __crossx-card--migration" style="${G(r)}" role="alertdialog" aria-modal="true" aria-labelledby="__crossx-session-header-title" aria-describedby="__crossx-session-msg">
10370
+ <div class="__crossx-card __crossx-card--migration __crossx-card--sheet" style="${G(r)}" role="alertdialog" aria-modal="true" aria-labelledby="__crossx-session-header-title" aria-describedby="__crossx-session-msg">
10367
10371
  <div class="__crossx-header">
10368
10372
  <p class="__crossx-title" id="__crossx-session-header-title">${f(e.title)}</p>
10369
10373
  <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>
@@ -10383,12 +10387,12 @@ function Wi(i, e) {
10383
10387
  </div>
10384
10388
  `, t;
10385
10389
  }
10386
- function Hi(i, e) {
10390
+ function Gi(i, e) {
10387
10391
  const r = document.createElement("div");
10388
10392
  r.id = D;
10389
10393
  const t = f(e.message).replace(/\n/g, "<br>");
10390
10394
  return r.innerHTML = `
10391
- <div class="__crossx-card __crossx-card--migration" style="${G(i)}" role="alertdialog" aria-modal="true" aria-labelledby="__crossx-update-title" aria-describedby="__crossx-update-msg">
10395
+ <div class="__crossx-card __crossx-card--migration __crossx-card--sheet" style="${G(i)}" role="alertdialog" aria-modal="true" aria-labelledby="__crossx-update-title" aria-describedby="__crossx-update-msg">
10392
10396
  <div class="__crossx-header">
10393
10397
  <p class="__crossx-title" id="__crossx-update-title">${f(e.title)}</p>
10394
10398
  <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>
@@ -10405,10 +10409,10 @@ function Hi(i, e) {
10405
10409
  </div>
10406
10410
  `, r;
10407
10411
  }
10408
- function Gi(i, e = !0) {
10412
+ function Ki(i, e = !0) {
10409
10413
  const r = i, t = e ? `<button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>` : "", s = e ? '<button class="__crossx-skip-btn" id="__crossx-skip-btn">Skip for Now</button>' : "", n = document.createElement("div");
10410
10414
  return n.id = D, n.innerHTML = `
10411
- <div class="__crossx-card __crossx-card--migration" style="${G(r)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
10415
+ <div class="__crossx-card __crossx-card--migration __crossx-card--sheet" style="${G(r)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
10412
10416
  <div class="__crossx-header">
10413
10417
  <p class="__crossx-title" id="__crossx-ttl">Wallet Found on Social Account 🎉</p>
10414
10418
  <p class="__crossx-subtitle--body">We found a wallet linked to your social account. Enter your 4-digit PIN to restore your assets.</p>
@@ -10429,7 +10433,7 @@ function Gi(i, e = !0) {
10429
10433
  </div>
10430
10434
  `, n;
10431
10435
  }
10432
- function Ki(i, e) {
10436
+ function Vi(i, e) {
10433
10437
  const r = i, { errorMessage: t, attemptCount: s, maxAttempts: n = 5 } = e ?? {}, o = !!t, a = o ? " --error" : "", c = s != null && s > 0 ? `<p class="__crossx-pin-attempt">${s}/${n}</p>` : "", _ = s != null && s >= 3 ? '<p class="__crossx-pin-warning">Your account will be locked after further failures.</p>' : "", h = o ? `<p class="__crossx-pin-error-text">${t}</p>` : "", u = document.createElement("div");
10434
10438
  return u.id = D, u.innerHTML = `
10435
10439
  <div class="__crossx-card __crossx-card--migration" style="${G(r)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
@@ -10453,12 +10457,12 @@ function Ki(i, e) {
10453
10457
  </div>
10454
10458
  `, u;
10455
10459
  }
10456
- function Vi(i) {
10460
+ function zi(i) {
10457
10461
  const e = new Date(i), r = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], t = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], s = r[e.getDay()], n = t[e.getMonth()], o = e.getDate(), a = String(e.getHours()).padStart(2, "0"), c = String(e.getMinutes()).padStart(2, "0");
10458
10462
  return `${s}, ${n} ${o} ${a}:${c}`;
10459
10463
  }
10460
- function zi(i, e, r) {
10461
- const t = i, s = e <= 0, n = s ? null : Date.now() + e * 1e3, o = n ? Vi(n) : null, a = document.createElement("div");
10464
+ function qi(i, e, r) {
10465
+ const t = i, s = e <= 0, n = s ? null : Date.now() + e * 1e3, o = n ? zi(n) : null, a = document.createElement("div");
10462
10466
  return a.id = D, a.innerHTML = `
10463
10467
  <div class="__crossx-card __crossx-card--migration" style="${G(t)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
10464
10468
  <div class="__crossx-header">
@@ -10488,10 +10492,10 @@ function zi(i, e, r) {
10488
10492
  return () => clearInterval(u);
10489
10493
  } };
10490
10494
  }
10491
- function qi(i) {
10495
+ function ji(i) {
10492
10496
  const r = [i.check1, i.check2].map((t, s) => `
10493
10497
  <div class="__crossx-pw-notice-item" data-check-index="${s}" role="checkbox" aria-checked="false" tabindex="0">
10494
- <div class="__crossx-pw-notice-check" id="__crossx-notice-check-${s}">${Ji}</div>
10498
+ <div class="__crossx-pw-notice-check" id="__crossx-notice-check-${s}">${Zi}</div>
10495
10499
  <span class="__crossx-pw-notice-item-text">${f(t)}</span>
10496
10500
  </div>
10497
10501
  `).join("");
@@ -10507,7 +10511,7 @@ function qi(i) {
10507
10511
  <div class="__crossx-pw-fields __crossx-pw-fields--notice">
10508
10512
  <div class="__crossx-pw-notice-header">
10509
10513
  <div class="__crossx-pw-notice-title-row">
10510
- <span class="__crossx-pw-notice-icon">${Zi}</span>
10514
+ <span class="__crossx-pw-notice-icon">${Qi}</span>
10511
10515
  <p class="__crossx-pw-notice-title">${f(i.noticeTitle)}</p>
10512
10516
  </div>
10513
10517
  <p class="__crossx-pw-notice-desc">${f(i.noticeDesc)}</p>
@@ -10557,7 +10561,7 @@ function Ke(i) {
10557
10561
  <div class="__crossx-pin6-numpad-row">
10558
10562
  <button type="button" class="__crossx-pin6-numpad-key --empty" aria-hidden="true"></button>
10559
10563
  <button type="button" class="__crossx-pin6-numpad-key${w}" data-key="0">0</button>
10560
- <button type="button" class="__crossx-pin6-numpad-key --delete${w}" data-key="backspace" aria-label="Delete">${Xi}</button>
10564
+ <button type="button" class="__crossx-pin6-numpad-key --delete${w}" data-key="backspace" aria-label="Delete">${Ji}</button>
10561
10565
  </div>
10562
10566
  </div>`;
10563
10567
  return `
@@ -10592,14 +10596,14 @@ function Dt(i, e) {
10592
10596
  </div>
10593
10597
  `, r;
10594
10598
  }
10595
- function ji(i, e) {
10599
+ function Yi(i, e) {
10596
10600
  if (i.length !== 6) return e.tooShort;
10597
10601
  if (!/^\d+$/.test(i)) return e.numbersOnly;
10598
10602
  if (/(.)\1{2}/.test(i)) return e.repeatingDigit;
10599
10603
  const r = i.split("").map(Number), t = r.every((n, o) => o === 0 || n === (r[o - 1] + 1) % 10), s = r.every((n, o) => o === 0 || n === (r[o - 1] + 9) % 10);
10600
10604
  return t || s ? e.sequential : i[0] !== i[1] && i === i.slice(0, 2).repeat(3) ? e.alternatingPattern : null;
10601
10605
  }
10602
- function Yi(i) {
10606
+ function Xi(i) {
10603
10607
  const e = Math.max(0, Math.ceil(i / 1e3)), r = Math.floor(e / 3600), t = Math.floor(e % 3600 / 60), s = e % 60;
10604
10608
  return r > 0 ? `${r}h ${String(t).padStart(2, "0")}m` : `${String(t).padStart(2, "0")}:${String(s).padStart(2, "0")}`;
10605
10609
  }
@@ -10677,7 +10681,7 @@ function Ve(i, e, r, t, s, n, o) {
10677
10681
  H <= 0 ? (clearInterval(O), C(!1), (se = x()) == null || se.remove(), E && (E.textContent = ""), N(), setTimeout(() => {
10678
10682
  var be;
10679
10683
  return (be = _()[0]) == null ? void 0 : be.focus();
10680
- }, 50)) : j && (j.textContent = ` ${Yi(H)}`);
10684
+ }, 50)) : j && (j.textContent = ` ${Xi(H)}`);
10681
10685
  }, O = setInterval(k, 1e3);
10682
10686
  k();
10683
10687
  const L = new MutationObserver(() => {
@@ -10778,19 +10782,19 @@ function Ve(i, e, r, t, s, n, o) {
10778
10782
  }), J.addEventListener("pointercancel", E), J.addEventListener("pointerleave", E, !0), T(), n && n > Date.now() && N();
10779
10783
  }
10780
10784
  }
10781
- const Xi = `<svg width="22" height="17" viewBox="0 0 22 17" fill="none" xmlns="http://www.w3.org/2000/svg">
10785
+ const Ji = `<svg width="22" height="17" viewBox="0 0 22 17" fill="none" xmlns="http://www.w3.org/2000/svg">
10782
10786
  <path d="M7.36 0.5H19.5C20.6046 0.5 21.5 1.39543 21.5 2.5V14.5C21.5 15.6046 20.6046 16.5 19.5 16.5H7.36C6.76 16.5 6.19 16.24 5.8 15.79L0.94 10.02C0.35 9.32 0.35 8.3 0.94 7.6L5.8 1.71C6.19 1.26 6.76 0.5 7.36 0.5Z" stroke="currentColor" stroke-width="1.2" fill="none"/>
10783
10787
  <line x1="10" y1="5.5" x2="16" y2="11.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
10784
10788
  <line x1="16" y1="5.5" x2="10" y2="11.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
10785
10789
  </svg>`, Qt = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
10786
10790
  <path d="M14.5 8.5H14V6.5C14 4.015 11.985 2 9.5 2C7.015 2 5 4.015 5 6.5V8.5H4.5C3.672 8.5 3 9.172 3 10V16.5C3 17.328 3.672 18 4.5 18H14.5C15.328 18 16 17.328 16 16.5V10C16 9.172 15.328 8.5 14.5 8.5ZM10.5 13.415V15C10.5 15.276 10.276 15.5 10 15.5H9C8.724 15.5 8.5 15.276 8.5 15V13.415C8.187 13.196 8 12.847 8 12.5C8 11.672 8.672 11 9.5 11C10.328 11 11 11.672 11 12.5C11 12.847 10.813 13.196 10.5 13.415ZM12.5 8.5H6.5V6.5C6.5 4.843 7.843 3.5 9.5 3.5C11.157 3.5 12.5 4.843 12.5 6.5V8.5Z" fill="currentColor"/>
10787
- </svg>`, Ji = `<svg width="11" height="9" viewBox="0 0 11 9" fill="none" xmlns="http://www.w3.org/2000/svg">
10791
+ </svg>`, Zi = `<svg width="11" height="9" viewBox="0 0 11 9" fill="none" xmlns="http://www.w3.org/2000/svg">
10788
10792
  <path d="M1 4.5L4 7.5L10 1" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
10789
- </svg>`, Zi = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
10793
+ </svg>`, Qi = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
10790
10794
  <circle cx="12" cy="12" r="10" fill="currentColor"/>
10791
10795
  <path d="M11.0625 13.3564H12.9375V7.51895H11.0625V13.3564ZM11.0625 16.4814H12.9375V14.6064H11.0625V16.4814Z" fill="#FFFFFF"/>
10792
10796
  </svg>`;
10793
- function Qi(i, e, r) {
10797
+ function en(i, e, r) {
10794
10798
  var n;
10795
10799
  const t = i.querySelectorAll(".__crossx-pin-input");
10796
10800
  t.forEach((o, a) => {
@@ -10823,9 +10827,9 @@ function Qi(i, e, r) {
10823
10827
  }
10824
10828
  }), (n = t[0]) == null || n.focus();
10825
10829
  }
10826
- class en {
10830
+ class tn {
10827
10831
  constructor(e = "light", r, t = Ze, s) {
10828
- this.theme = e, this.overrides = r, this.tokens = Ot(e, r), this.displayDecimals = t, this.pinKeyboard = s, ii();
10832
+ this.theme = e, this.overrides = r, this.tokens = Ot(e, r), this.displayDecimals = t, this.pinKeyboard = s, ni();
10829
10833
  }
10830
10834
  setPinKeyboard(e) {
10831
10835
  this.pinKeyboard = e;
@@ -10868,7 +10872,7 @@ class en {
10868
10872
  return new Promise((n, o) => {
10869
10873
  var R;
10870
10874
  K();
10871
- const a = [...e], c = Di(
10875
+ const a = [...e], c = Li(
10872
10876
  a,
10873
10877
  this.tokens,
10874
10878
  t,
@@ -10932,7 +10936,7 @@ class en {
10932
10936
  return new Promise((e) => {
10933
10937
  var a, c;
10934
10938
  K();
10935
- const r = Li(this.tokens, this.messages), t = ne();
10939
+ const r = Mi(this.tokens, this.messages), t = ne();
10936
10940
  V(r);
10937
10941
  let s = !1, n = null;
10938
10942
  const o = () => {
@@ -10973,7 +10977,7 @@ class en {
10973
10977
  return new Promise((s) => {
10974
10978
  var x, w, y, S;
10975
10979
  K();
10976
- const n = Bi(this.tokens, r, this.messages), o = ne();
10980
+ const n = Wi(this.tokens, r, this.messages), o = ne();
10977
10981
  V(n);
10978
10982
  const a = () => {
10979
10983
  n.remove(), o();
@@ -11002,7 +11006,7 @@ class en {
11002
11006
  return new Promise((r) => {
11003
11007
  var _, h;
11004
11008
  K();
11005
- const t = this.messages, s = Hi(this.tokens, {
11009
+ const t = this.messages, s = Gi(this.tokens, {
11006
11010
  title: (e == null ? void 0 : e.title) ?? (t == null ? void 0 : t.update_required_title) ?? "Update required",
11007
11011
  message: (e == null ? void 0 : e.message) ?? (t == null ? void 0 : t.update_required_message) ?? "This service is using a wallet version that is no longer supported. Please try again after the service is updated.",
11008
11012
  confirmLabel: (t == null ? void 0 : t.update_required_confirm_button) ?? "OK"
@@ -11021,7 +11025,7 @@ class en {
11021
11025
  return new Promise((r) => {
11022
11026
  var h, u, x;
11023
11027
  K();
11024
- const t = this.messages, s = Wi(this.tokens, {
11028
+ const t = this.messages, s = Hi(this.tokens, {
11025
11029
  title: e.title,
11026
11030
  message: e.message,
11027
11031
  email: e.email,
@@ -11051,7 +11055,7 @@ class en {
11051
11055
  return new Promise((t) => {
11052
11056
  var a, c, _;
11053
11057
  K();
11054
- const s = Gi(this.tokens, r);
11058
+ const s = Ki(this.tokens, r);
11055
11059
  V(s);
11056
11060
  const n = () => s.remove(), o = () => {
11057
11061
  n(), t("recover");
@@ -11098,7 +11102,7 @@ class en {
11098
11102
  title: (t == null ? void 0 : t.pin_setup_confirm_title) ?? "Confirm PIN",
11099
11103
  headerSubtitle: (t == null ? void 0 : t.pin_setup_header_subtitle) ?? "This PIN is used to authorize your transactions.",
11100
11104
  subtitle: (t == null ? void 0 : t.pin_setup_confirm_subtitle) ?? "Confirm your 6-digit PIN"
11101
- }, a = Dt(this.tokens, qi(s)), c = ne();
11105
+ }, a = Dt(this.tokens, ji(s)), c = ne();
11102
11106
  V(a);
11103
11107
  let _ = !1;
11104
11108
  const h = () => {
@@ -11130,7 +11134,7 @@ class en {
11130
11134
  subtitle: n.subtitle,
11131
11135
  errorMessage: b
11132
11136
  }), this.applyPinKeyboardMode(w), (R = w.querySelector("#__crossx-close-btn")) == null || R.addEventListener("click", x), Ve(w, (A) => {
11133
- const T = ji(A, y);
11137
+ const T = Yi(A, y);
11134
11138
  T ? g(T) : S(A);
11135
11139
  }, x);
11136
11140
  };
@@ -11225,14 +11229,14 @@ class en {
11225
11229
  return new Promise((r) => {
11226
11230
  var c;
11227
11231
  K();
11228
- const t = Ki(this.tokens, e);
11232
+ const t = Vi(this.tokens, e);
11229
11233
  V(t);
11230
11234
  const s = () => t.remove(), n = (_) => {
11231
11235
  s(), r(_);
11232
11236
  }, o = () => {
11233
11237
  s(), r(null);
11234
11238
  }, a = t.querySelector(".__crossx-card");
11235
- a && this.applyPinKeyboardMode(a), Qi(t, n, o), (c = t.querySelector("#__crossx-close-btn")) == null || c.addEventListener("click", o), t.addEventListener("click", (_) => {
11239
+ a && this.applyPinKeyboardMode(a), en(t, n, o), (c = t.querySelector("#__crossx-close-btn")) == null || c.addEventListener("click", o), t.addEventListener("click", (_) => {
11236
11240
  _.target === t && o();
11237
11241
  });
11238
11242
  });
@@ -11247,7 +11251,7 @@ class en {
11247
11251
  return new Promise((t) => {
11248
11252
  var _;
11249
11253
  K();
11250
- const { overlay: s, startCountdown: n } = zi(this.tokens, e, r);
11254
+ const { overlay: s, startCountdown: n } = qi(this.tokens, e, r);
11251
11255
  V(s);
11252
11256
  const o = () => {
11253
11257
  c(), s.remove();
@@ -11267,7 +11271,7 @@ class en {
11267
11271
  return new Promise((r) => {
11268
11272
  var a, c;
11269
11273
  K();
11270
- const t = Ei(e, this.tokens, this.messages);
11274
+ const t = Ii(e, this.tokens, this.messages);
11271
11275
  V(t);
11272
11276
  const s = () => t.remove(), n = () => {
11273
11277
  s(), r();
@@ -11296,7 +11300,7 @@ class en {
11296
11300
  showTransactionProgress(e, r) {
11297
11301
  return new Promise((t) => {
11298
11302
  K();
11299
- const s = Ii(e, this.tokens, this.messages);
11303
+ const s = Ai(e, this.tokens, this.messages);
11300
11304
  V(s);
11301
11305
  const n = () => s.remove();
11302
11306
  let o = !1;
@@ -11313,7 +11317,7 @@ class en {
11313
11317
  document.addEventListener("keydown", _);
11314
11318
  };
11315
11319
  r.then((_) => {
11316
- o || (Ai(s, _, this.tokens, this.messages), c());
11320
+ o || (Ti(s, _, this.tokens, this.messages), c());
11317
11321
  });
11318
11322
  });
11319
11323
  }
@@ -11322,7 +11326,7 @@ class en {
11322
11326
  var _, h, u;
11323
11327
  K();
11324
11328
  let t;
11325
- e.type === "sign-message" ? t = Ti(e, this.tokens, this.messages) : e.type === "sign-typed-data" ? t = Ci(e, this.tokens, this.messages) : e.type === "sign" ? t = xi(e, this.tokens, this.displayDecimals, this.messages) : t = wi(e, this.tokens, this.displayDecimals, this.messages);
11329
+ e.type === "sign-message" ? t = Ci(e, this.tokens, this.messages) : e.type === "sign-typed-data" ? t = ki(e, this.tokens, this.messages) : e.type === "sign" ? t = gi(e, this.tokens, this.displayDecimals, this.messages) : t = mi(e, this.tokens, this.displayDecimals, this.messages);
11326
11330
  const s = ne();
11327
11331
  V(t);
11328
11332
  const n = () => {
@@ -11340,7 +11344,7 @@ class en {
11340
11344
  y && ((S = navigator.clipboard) == null || S.writeText(y).catch(() => {
11341
11345
  }));
11342
11346
  });
11343
- }), ri(t), t.addEventListener("click", (x) => {
11347
+ }), si(t), t.addEventListener("click", (x) => {
11344
11348
  x.target === t && a();
11345
11349
  });
11346
11350
  const c = (x) => {
@@ -11350,7 +11354,7 @@ class en {
11350
11354
  });
11351
11355
  }
11352
11356
  }
11353
- class tn {
11357
+ class rn {
11354
11358
  constructor(e, r, t, s = () => !1) {
11355
11359
  this.browserConfirmation = e, this.getBridge = r, this.getOrigin = t, this.isAuthenticatedViaRNBridge = s;
11356
11360
  }
@@ -11523,7 +11527,7 @@ class tn {
11523
11527
  (t = (r = this.browserConfirmation).setPinKeyboard) == null || t.call(r, e);
11524
11528
  }
11525
11529
  }
11526
- class rn {
11530
+ class sn {
11527
11531
  constructor() {
11528
11532
  this._accessToken = null, this._expiresAt = 0;
11529
11533
  }
@@ -11556,10 +11560,10 @@ class rn {
11556
11560
  }
11557
11561
  }
11558
11562
  const er = /* @__PURE__ */ new WeakMap();
11559
- function sn(i, e) {
11563
+ function nn(i, e) {
11560
11564
  er.set(i, e);
11561
11565
  }
11562
- function hn(i) {
11566
+ function un(i) {
11563
11567
  const e = er.get(i);
11564
11568
  if (!e)
11565
11569
  throw new Error(
@@ -11567,10 +11571,10 @@ function hn(i) {
11567
11571
  );
11568
11572
  return e;
11569
11573
  }
11570
- function nn(i) {
11574
+ function on(i) {
11571
11575
  return tr(i);
11572
11576
  }
11573
- function un(i, e) {
11577
+ function xn(i, e) {
11574
11578
  return tr(i, e);
11575
11579
  }
11576
11580
  function tr(i, e) {
@@ -11604,9 +11608,9 @@ Example: createCROSSxSDK({ projectId: "your-project-id", ... })`
11604
11608
  getGatewayBaseUrls: () => [s.gatewayUrl],
11605
11609
  onDeprecation: (P) => c == null ? void 0 : c.handleSdkVersionDeprecation(P),
11606
11610
  onUnsupported: (P) => c == null ? void 0 : c.handleSdkVersionUnsupported(P)
11607
- }), h = new ae(), u = new rn(), x = new $t(), w = new Es(s, _);
11611
+ }), h = new ae(), u = new sn(), x = new $t(), w = new Es(s, _);
11608
11612
  let y;
11609
- i.useMockWallet ? (l.log("[CROSSx] Mock Wallet Provider 사용"), y = new zs(o, x)) : (l.log("[CROSSx] Remote Wallet Provider 사용"), y = new ce(
11613
+ i.useMockWallet ? (l.log("[CROSSx] Mock Wallet Provider 사용"), y = new qs(o, x)) : (l.log("[CROSSx] Remote Wallet Provider 사용"), y = new ce(
11610
11614
  s,
11611
11615
  o,
11612
11616
  _,
@@ -11624,7 +11628,7 @@ Example: createCROSSxSDK({ projectId: "your-project-id", ... })`
11624
11628
  var M;
11625
11629
  (M = c == null ? void 0 : c.clearRNBridgeDelegation) == null || M.call(c, P);
11626
11630
  };
11627
- y = new js(
11631
+ y = new Ys(
11628
11632
  y,
11629
11633
  () => {
11630
11634
  var P;
@@ -11635,12 +11639,12 @@ Example: createCROSSxSDK({ projectId: "your-project-id", ... })`
11635
11639
  () => i.appName,
11636
11640
  m
11637
11641
  );
11638
- const b = new ye(s, _), R = new en(
11642
+ const b = new ye(s, _), R = new tn(
11639
11643
  i.theme ?? "light",
11640
11644
  i.themeTokens,
11641
11645
  i.displayDecimals,
11642
11646
  i.pinKeyboard
11643
- ), A = new tn(
11647
+ ), A = new rn(
11644
11648
  R,
11645
11649
  () => {
11646
11650
  var P;
@@ -11663,7 +11667,7 @@ Example: createCROSSxSDK({ projectId: "your-project-id", ... })`
11663
11667
  w,
11664
11668
  new Kr()
11665
11669
  );
11666
- c = N, sn(N, {
11670
+ c = N, nn(N, {
11667
11671
  transport: _,
11668
11672
  storage: o,
11669
11673
  walletProvider: y,
@@ -11676,25 +11680,25 @@ Example: createCROSSxSDK({ projectId: "your-project-id", ... })`
11676
11680
  const C = N.signInUseCase;
11677
11681
  return C && typeof C.setFreshTokenCallback == "function" && C.setFreshTokenCallback(() => N.requestFreshFirebaseIdTokenFromBridge()), typeof window < "u" && (window.__crossxSDK = N), N;
11678
11682
  }
11679
- const xn = nn;
11683
+ const gn = on;
11680
11684
  export {
11681
11685
  wr as C,
11682
11686
  d as E,
11683
11687
  ze as M,
11684
11688
  $t as P,
11685
- rn as T,
11689
+ sn as T,
11686
11690
  Qe as W,
11687
11691
  p as a,
11688
11692
  Tr as b,
11689
- un as c,
11693
+ xn as c,
11690
11694
  je as d,
11691
- dn as e,
11695
+ pn as e,
11692
11696
  me as f,
11693
- hn as g,
11694
- nn as h,
11695
- xn as i,
11697
+ un as g,
11698
+ on as h,
11699
+ gn as i,
11696
11700
  mr as j,
11697
11701
  Ne as k,
11698
- pn as l,
11699
- _n as w
11702
+ _n as l,
11703
+ hn as w
11700
11704
  };