@rhinestone/deposit-modal 0.1.38 → 0.1.39

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.
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk4ZOF4A2Ncjs = require('./chunk-4ZOF4A2N.cjs');
3
+ var _chunkVTTEVMB6cjs = require('./chunk-VTTEVMB6.cjs');
4
4
 
5
5
 
6
6
 
7
7
  var _chunkV7I5T4SWcjs = require('./chunk-V7I5T4SW.cjs');
8
- require('./chunk-NULE6WII.cjs');
9
- require('./chunk-HYUITBRV.cjs');
8
+ require('./chunk-AHOFT42H.cjs');
9
+ require('./chunk-FLXTBFMZ.cjs');
10
10
 
11
11
  // src/DepositModalReown.tsx
12
12
  var _react = require('react');
@@ -20,7 +20,7 @@ function DepositModalWithReown(props) {
20
20
  reown.disconnect();
21
21
  }, [reown.disconnect]);
22
22
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
23
- _chunk4ZOF4A2Ncjs.DepositModalInner,
23
+ _chunkVTTEVMB6cjs.DepositModalInner,
24
24
  {
25
25
  ...props,
26
26
  reownWallet: reown,
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  DepositModalInner
3
- } from "./chunk-7HJ7TUHX.mjs";
3
+ } from "./chunk-TK7BVWX6.mjs";
4
4
  import {
5
5
  ReownWalletProvider,
6
6
  useReownWallet
7
7
  } from "./chunk-SJEIKMVO.mjs";
8
- import "./chunk-UBPIPY3L.mjs";
9
- import "./chunk-ZL4KPLWE.mjs";
8
+ import "./chunk-IC2M2DZ7.mjs";
9
+ import "./chunk-I7RYTI4G.mjs";
10
10
 
11
11
  // src/DepositModalReown.tsx
12
12
  import { useCallback } from "react";
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkG4EYX7SOcjs = require('./chunk-G4EYX7SO.cjs');
3
+ var _chunkK7BHCDJQcjs = require('./chunk-K7BHCDJQ.cjs');
4
4
 
5
5
 
6
6
 
7
7
  var _chunkV7I5T4SWcjs = require('./chunk-V7I5T4SW.cjs');
8
- require('./chunk-NULE6WII.cjs');
9
- require('./chunk-HYUITBRV.cjs');
8
+ require('./chunk-AHOFT42H.cjs');
9
+ require('./chunk-FLXTBFMZ.cjs');
10
10
 
11
11
  // src/WithdrawModalReown.tsx
12
12
  var _react = require('react');
@@ -20,7 +20,7 @@ function WithdrawModalWithReown(props) {
20
20
  reown.disconnect();
21
21
  }, [reown.disconnect]);
22
22
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
23
- _chunkG4EYX7SOcjs.WithdrawModalInner,
23
+ _chunkK7BHCDJQcjs.WithdrawModalInner,
24
24
  {
25
25
  ...props,
26
26
  reownWallet: reown,
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  WithdrawModalInner
3
- } from "./chunk-P7B7B6LU.mjs";
3
+ } from "./chunk-CFLZYWX7.mjs";
4
4
  import {
5
5
  ReownWalletProvider,
6
6
  useReownWallet
7
7
  } from "./chunk-SJEIKMVO.mjs";
8
- import "./chunk-UBPIPY3L.mjs";
9
- import "./chunk-ZL4KPLWE.mjs";
8
+ import "./chunk-IC2M2DZ7.mjs";
9
+ import "./chunk-I7RYTI4G.mjs";
10
10
 
11
11
  // src/WithdrawModalReown.tsx
12
12
  import { useCallback } from "react";
@@ -7,7 +7,7 @@
7
7
 
8
8
 
9
9
 
10
- var _chunkHYUITBRVcjs = require('./chunk-HYUITBRV.cjs');
10
+ var _chunkFLXTBFMZcjs = require('./chunk-FLXTBFMZ.cjs');
11
11
 
12
12
  // src/components/ui/Modal.tsx
13
13
 
@@ -360,14 +360,14 @@ function normalizeOrchestratorPortfolio(data) {
360
360
  const unlocked = _nullishCoalesce(_optionalChain([chainBalance, 'access', _4 => _4.balance, 'optionalAccess', _5 => _5.unlocked]), () => ( "0"));
361
361
  const normalizedName = tokenData.tokenName.trim();
362
362
  const isNativeSymbol = normalizedName.toUpperCase() === "ETH" || normalizedName.toUpperCase() === "ETHER";
363
- const tokenAddress = _nullishCoalesce(_nullishCoalesce(chainBalance.tokenAddress, () => ( extractTokenAddress(tokenData, chainBalance.chainId))), () => ( _chunkHYUITBRVcjs.getTokenAddress.call(void 0, tokenData.tokenName, chainBalance.chainId)));
364
- const resolvedTokenAddress = isNativeSymbol ? _chunkHYUITBRVcjs.NATIVE_TOKEN_ADDRESS : tokenAddress;
363
+ const tokenAddress = _nullishCoalesce(_nullishCoalesce(chainBalance.tokenAddress, () => ( extractTokenAddress(tokenData, chainBalance.chainId))), () => ( _chunkFLXTBFMZcjs.getTokenAddress.call(void 0, tokenData.tokenName, chainBalance.chainId)));
364
+ const resolvedTokenAddress = isNativeSymbol ? _chunkFLXTBFMZcjs.NATIVE_TOKEN_ADDRESS : tokenAddress;
365
365
  if (!resolvedTokenAddress) {
366
366
  continue;
367
367
  }
368
- const registrySymbol = _chunkHYUITBRVcjs.getTokenSymbol.call(void 0, resolvedTokenAddress, chainBalance.chainId);
368
+ const registrySymbol = _chunkFLXTBFMZcjs.getTokenSymbol.call(void 0, resolvedTokenAddress, chainBalance.chainId);
369
369
  const symbol = registrySymbol !== "Token" ? registrySymbol : normalizedName || "Token";
370
- const decimals = registrySymbol !== "Token" ? _chunkHYUITBRVcjs.getTokenDecimalsByAddress.call(void 0, resolvedTokenAddress, chainBalance.chainId) : _nullishCoalesce(tokenData.tokenDecimals, () => ( 18));
370
+ const decimals = registrySymbol !== "Token" ? _chunkFLXTBFMZcjs.getTokenDecimalsByAddress.call(void 0, resolvedTokenAddress, chainBalance.chainId) : _nullishCoalesce(tokenData.tokenDecimals, () => ( 18));
371
371
  tokens.push({
372
372
  chainId: chainBalance.chainId,
373
373
  address: resolvedTokenAddress,
@@ -394,14 +394,14 @@ function normalizeDirectToken(token) {
394
394
  const address = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(extractString(token, "address"), () => ( extractString(token, "tokenAddress"))), () => ( extractString(
395
395
  token.token,
396
396
  "address"
397
- ))), () => ( _chunkHYUITBRVcjs.getTokenAddress.call(void 0, symbol, chainId)));
397
+ ))), () => ( _chunkFLXTBFMZcjs.getTokenAddress.call(void 0, symbol, chainId)));
398
398
  if (!address) return null;
399
399
  const addressAsToken = address;
400
400
  const balanceUsd = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(extractNumber(token, "balanceUsd"), () => ( extractNumber(token, "usdValue"))), () => ( extractNumber(token, "valueUsd"))), () => ( extractNumericString(token, "balanceUsd"))), () => ( extractNumericString(token, "usdValue"))), () => ( extractNumericString(token, "valueUsd"))), () => ( 0));
401
- const registrySymbol = _chunkHYUITBRVcjs.getTokenSymbol.call(void 0, addressAsToken, chainId);
401
+ const registrySymbol = _chunkFLXTBFMZcjs.getTokenSymbol.call(void 0, addressAsToken, chainId);
402
402
  const resolvedSymbol = registrySymbol !== "Token" ? registrySymbol : symbol;
403
403
  const backendDecimals = _nullishCoalesce(extractNumber(token, "decimals"), () => ( extractNumber(token, "tokenDecimals")));
404
- const resolvedDecimals = registrySymbol !== "Token" ? _chunkHYUITBRVcjs.getTokenDecimalsByAddress.call(void 0, addressAsToken, chainId) : _nullishCoalesce(backendDecimals, () => ( 18));
404
+ const resolvedDecimals = registrySymbol !== "Token" ? _chunkFLXTBFMZcjs.getTokenDecimalsByAddress.call(void 0, addressAsToken, chainId) : _nullishCoalesce(backendDecimals, () => ( 18));
405
405
  return {
406
406
  chainId,
407
407
  address: addressAsToken,
@@ -995,25 +995,69 @@ function isRecord(value) {
995
995
  function asString(value) {
996
996
  return typeof value === "string" ? value : void 0;
997
997
  }
998
+ function asNumber(value) {
999
+ if (typeof value === "number" && Number.isFinite(value)) return value;
1000
+ if (typeof value !== "string") return void 0;
1001
+ const trimmed = value.trim();
1002
+ if (!trimmed) return void 0;
1003
+ const caipMatch = trimmed.match(/^eip155:(\d+)$/);
1004
+ if (_optionalChain([caipMatch, 'optionalAccess', _41 => _41[1]])) {
1005
+ const parsed2 = Number(caipMatch[1]);
1006
+ return Number.isFinite(parsed2) ? parsed2 : void 0;
1007
+ }
1008
+ const parsed = Number(trimmed);
1009
+ return Number.isFinite(parsed) ? parsed : void 0;
1010
+ }
1011
+ function asAmount(value) {
1012
+ if (typeof value === "string") return value;
1013
+ if (typeof value === "number" && Number.isFinite(value)) {
1014
+ return value.toString();
1015
+ }
1016
+ return void 0;
1017
+ }
1018
+ function asAddress(value) {
1019
+ if (typeof value !== "string") return void 0;
1020
+ return /^0x[a-fA-F0-9]{40}$/.test(value) ? value : void 0;
1021
+ }
998
1022
  function getEventTxHash(event) {
999
- if (!_optionalChain([event, 'optionalAccess', _41 => _41.type])) return void 0;
1023
+ if (!_optionalChain([event, 'optionalAccess', _42 => _42.type])) return void 0;
1000
1024
  if (event.type === "deposit-received") {
1001
- return asString(_optionalChain([event, 'access', _42 => _42.data, 'optionalAccess', _43 => _43.transactionHash]));
1025
+ return asString(_optionalChain([event, 'access', _43 => _43.data, 'optionalAccess', _44 => _44.transactionHash]));
1002
1026
  }
1003
1027
  if (event.type === "bridge-started" || event.type === "bridge-complete") {
1004
- const deposit = isRecord(_optionalChain([event, 'access', _44 => _44.data, 'optionalAccess', _45 => _45.deposit])) ? event.data.deposit : void 0;
1005
- const source = isRecord(_optionalChain([event, 'access', _46 => _46.data, 'optionalAccess', _47 => _47.source])) ? event.data.source : void 0;
1006
- return _nullishCoalesce(asString(_optionalChain([deposit, 'optionalAccess', _48 => _48.transactionHash])), () => ( asString(_optionalChain([source, 'optionalAccess', _49 => _49.transactionHash]))));
1028
+ const deposit = isRecord(_optionalChain([event, 'access', _45 => _45.data, 'optionalAccess', _46 => _46.deposit])) ? event.data.deposit : void 0;
1029
+ const source = isRecord(_optionalChain([event, 'access', _47 => _47.data, 'optionalAccess', _48 => _48.source])) ? event.data.source : void 0;
1030
+ return _nullishCoalesce(asString(_optionalChain([deposit, 'optionalAccess', _49 => _49.transactionHash])), () => ( asString(_optionalChain([source, 'optionalAccess', _50 => _50.transactionHash]))));
1007
1031
  }
1008
1032
  if (event.type === "bridge-failed" || event.type === "error") {
1009
- const deposit = isRecord(_optionalChain([event, 'access', _50 => _50.data, 'optionalAccess', _51 => _51.deposit])) ? event.data.deposit : void 0;
1010
- const source = isRecord(_optionalChain([event, 'access', _52 => _52.data, 'optionalAccess', _53 => _53.source])) ? event.data.source : void 0;
1011
- return _nullishCoalesce(asString(_optionalChain([deposit, 'optionalAccess', _54 => _54.transactionHash])), () => ( asString(_optionalChain([source, 'optionalAccess', _55 => _55.transactionHash]))));
1033
+ const deposit = isRecord(_optionalChain([event, 'access', _51 => _51.data, 'optionalAccess', _52 => _52.deposit])) ? event.data.deposit : void 0;
1034
+ const source = isRecord(_optionalChain([event, 'access', _53 => _53.data, 'optionalAccess', _54 => _54.source])) ? event.data.source : void 0;
1035
+ return _nullishCoalesce(asString(_optionalChain([deposit, 'optionalAccess', _55 => _55.transactionHash])), () => ( asString(_optionalChain([source, 'optionalAccess', _56 => _56.transactionHash]))));
1012
1036
  }
1013
1037
  return void 0;
1014
1038
  }
1039
+ function getEventSourceDetails(event) {
1040
+ if (!_optionalChain([event, 'optionalAccess', _57 => _57.type]) || !isRecord(event.data)) return {};
1041
+ if (event.type === "deposit-received") {
1042
+ return {
1043
+ chainId: asNumber(event.data.chain),
1044
+ amount: asAmount(event.data.amount),
1045
+ token: asAddress(event.data.token)
1046
+ };
1047
+ }
1048
+ const source = isRecord(event.data.source) ? event.data.source : void 0;
1049
+ const deposit = isRecord(event.data.deposit) ? event.data.deposit : void 0;
1050
+ if (event.type === "bridge-started" || event.type === "bridge-complete" || event.type === "bridge-failed" || event.type === "error") {
1051
+ return {
1052
+ chainId: _nullishCoalesce(asNumber(_optionalChain([source, 'optionalAccess', _58 => _58.chain])), () => ( asNumber(_optionalChain([deposit, 'optionalAccess', _59 => _59.chain])))),
1053
+ amount: _nullishCoalesce(asAmount(_optionalChain([source, 'optionalAccess', _60 => _60.amount])), () => ( asAmount(_optionalChain([deposit, 'optionalAccess', _61 => _61.amount])))),
1054
+ token: _nullishCoalesce(_nullishCoalesce(asAddress(_optionalChain([source, 'optionalAccess', _62 => _62.asset])), () => ( asAddress(_optionalChain([deposit, 'optionalAccess', _63 => _63.asset])))), () => ( asAddress(_optionalChain([deposit, 'optionalAccess', _64 => _64.token]))))
1055
+ };
1056
+ }
1057
+ return {};
1058
+ }
1015
1059
  function isDepositEvent(event) {
1016
- return _optionalChain([event, 'optionalAccess', _56 => _56.type]) === "deposit-received" || _optionalChain([event, 'optionalAccess', _57 => _57.type]) === "bridge-started";
1060
+ return _optionalChain([event, 'optionalAccess', _65 => _65.type]) === "deposit-received" || _optionalChain([event, 'optionalAccess', _66 => _66.type]) === "bridge-started" || _optionalChain([event, 'optionalAccess', _67 => _67.type]) === "bridge-complete" || _optionalChain([event, 'optionalAccess', _68 => _68.type]) === "bridge-failed" || _optionalChain([event, 'optionalAccess', _69 => _69.type]) === "error";
1017
1061
  }
1018
1062
 
1019
1063
  // src/components/steps/ProcessingStep.tsx
@@ -1028,7 +1072,7 @@ function isEventForTx(event, txHash) {
1028
1072
  return eventTxHash.toLowerCase() === txHash.toLowerCase();
1029
1073
  }
1030
1074
  function formatBridgeFailedMessage(event) {
1031
- const eventData = _nullishCoalesce(_optionalChain([event, 'optionalAccess', _58 => _58.data]), () => ( {}));
1075
+ const eventData = _nullishCoalesce(_optionalChain([event, 'optionalAccess', _70 => _70.data]), () => ( {}));
1032
1076
  const code = typeof eventData.errorCode === "string" ? eventData.errorCode : void 0;
1033
1077
  const backendMessage = typeof eventData.message === "string" ? eventData.message.trim() : "";
1034
1078
  if (backendMessage.length > 0) {
@@ -1068,7 +1112,7 @@ function ProcessingStep({
1068
1112
  const intervalRef = _react.useRef.call(void 0, null);
1069
1113
  _react.useEffect.call(void 0, () => {
1070
1114
  if (directTransfer) {
1071
- _optionalChain([onDepositComplete, 'optionalCall', _59 => _59(txHash)]);
1115
+ _optionalChain([onDepositComplete, 'optionalCall', _71 => _71(txHash)]);
1072
1116
  return;
1073
1117
  }
1074
1118
  }, [directTransfer, txHash, onDepositComplete]);
@@ -1111,40 +1155,40 @@ function ProcessingStep({
1111
1155
  console.log("[deposit-modal] status poll", {
1112
1156
  type: lastEvent2.type,
1113
1157
  matchesTx: eventMatchesTx,
1114
- intentId: _optionalChain([eventData, 'optionalAccess', _60 => _60.intentId]),
1158
+ intentId: _optionalChain([eventData, 'optionalAccess', _72 => _72.intentId]),
1115
1159
  data: eventData
1116
1160
  });
1117
1161
  }
1118
1162
  if (!isMounted) return;
1119
- if (_optionalChain([eventForCurrentTx, 'optionalAccess', _61 => _61.type]) === "bridge-complete") {
1163
+ if (_optionalChain([eventForCurrentTx, 'optionalAccess', _73 => _73.type]) === "bridge-complete") {
1120
1164
  setState({ type: "complete", lastEvent: eventForCurrentTx });
1121
- const destinationTxHash2 = _optionalChain([eventForCurrentTx, 'access', _62 => _62.data, 'optionalAccess', _63 => _63.destination, 'optionalAccess', _64 => _64.transactionHash]);
1122
- _optionalChain([onDepositComplete, 'optionalCall', _65 => _65(txHash, destinationTxHash2)]);
1165
+ const destinationTxHash2 = _optionalChain([eventForCurrentTx, 'access', _74 => _74.data, 'optionalAccess', _75 => _75.destination, 'optionalAccess', _76 => _76.transactionHash]);
1166
+ _optionalChain([onDepositComplete, 'optionalCall', _77 => _77(txHash, destinationTxHash2)]);
1123
1167
  return;
1124
1168
  }
1125
- if (!waitForFinalTx && _optionalChain([eventForCurrentTx, 'optionalAccess', _66 => _66.type]) === "bridge-started") {
1169
+ if (!waitForFinalTx && _optionalChain([eventForCurrentTx, 'optionalAccess', _78 => _78.type]) === "bridge-started") {
1126
1170
  setState({ type: "complete", lastEvent: eventForCurrentTx });
1127
- _optionalChain([onDepositComplete, 'optionalCall', _67 => _67(txHash)]);
1171
+ _optionalChain([onDepositComplete, 'optionalCall', _79 => _79(txHash)]);
1128
1172
  return;
1129
1173
  }
1130
- if (_optionalChain([eventForCurrentTx, 'optionalAccess', _68 => _68.type]) === "bridge-failed") {
1174
+ if (_optionalChain([eventForCurrentTx, 'optionalAccess', _80 => _80.type]) === "bridge-failed") {
1131
1175
  const formatted = formatBridgeFailedMessage(eventForCurrentTx);
1132
1176
  setState({
1133
1177
  type: "failed",
1134
1178
  message: formatted.message,
1135
1179
  lastEvent: eventForCurrentTx
1136
1180
  });
1137
- _optionalChain([onDepositFailed, 'optionalCall', _69 => _69(txHash, formatted.message)]);
1181
+ _optionalChain([onDepositFailed, 'optionalCall', _81 => _81(txHash, formatted.message)]);
1138
1182
  return;
1139
1183
  }
1140
- if (_optionalChain([eventForCurrentTx, 'optionalAccess', _70 => _70.type]) === "error") {
1141
- const errorMessage = _nullishCoalesce(_optionalChain([eventForCurrentTx, 'access', _71 => _71.data, 'optionalAccess', _72 => _72.message]), () => ( "Unknown error"));
1184
+ if (_optionalChain([eventForCurrentTx, 'optionalAccess', _82 => _82.type]) === "error") {
1185
+ const errorMessage = _nullishCoalesce(_optionalChain([eventForCurrentTx, 'access', _83 => _83.data, 'optionalAccess', _84 => _84.message]), () => ( "Unknown error"));
1142
1186
  setState({
1143
1187
  type: "failed",
1144
1188
  message: errorMessage,
1145
1189
  lastEvent: eventForCurrentTx
1146
1190
  });
1147
- _optionalChain([onDepositFailed, 'optionalCall', _73 => _73(txHash, errorMessage)]);
1191
+ _optionalChain([onDepositFailed, 'optionalCall', _85 => _85(txHash, errorMessage)]);
1148
1192
  return;
1149
1193
  }
1150
1194
  setState({ type: "processing", lastEvent: eventForCurrentTx });
@@ -1192,7 +1236,7 @@ function ProcessingStep({
1192
1236
  processTimeoutRef.current = setTimeout(() => {
1193
1237
  const message = "We couldn't confirm your transfer. Please contact support if funds do not arrive.";
1194
1238
  setState({ type: "error", message });
1195
- _optionalChain([onError, 'optionalCall', _74 => _74(message, "PROCESS_TIMEOUT")]);
1239
+ _optionalChain([onError, 'optionalCall', _86 => _86(message, "PROCESS_TIMEOUT")]);
1196
1240
  }, PROCESS_TIMEOUT_MS);
1197
1241
  return () => {
1198
1242
  if (processTimeoutRef.current) {
@@ -1205,12 +1249,16 @@ function ProcessingStep({
1205
1249
  const isComplete = state.type === "complete";
1206
1250
  const isProcessing = state.type === "processing";
1207
1251
  const lastEvent = state.type === "processing" || state.type === "complete" || state.type === "failed" ? state.lastEvent : void 0;
1208
- const isEarlyComplete = !waitForFinalTx && _optionalChain([lastEvent, 'optionalAccess', _75 => _75.type]) === "bridge-started";
1252
+ const isEarlyComplete = !waitForFinalTx && _optionalChain([lastEvent, 'optionalAccess', _87 => _87.type]) === "bridge-started";
1209
1253
  const flowNoun = flowLabel === "withdraw" ? "withdrawal" : "deposit";
1210
1254
  const flowCapitalized = flowLabel === "withdraw" ? "Withdrawal" : "Deposit";
1211
- const destinationTxHash = _optionalChain([lastEvent, 'optionalAccess', _76 => _76.data, 'optionalAccess', _77 => _77.destination, 'optionalAccess', _78 => _78.transactionHash]) || null;
1212
- const sourceExplorerUrl = _chunkHYUITBRVcjs.getExplorerTxUrl.call(void 0, sourceChain, txHash);
1213
- const destExplorerUrl = destinationTxHash ? _chunkHYUITBRVcjs.getExplorerTxUrl.call(void 0, targetChain, destinationTxHash) : null;
1255
+ const destinationTxHash = _optionalChain([lastEvent, 'optionalAccess', _88 => _88.data, 'optionalAccess', _89 => _89.destination, 'optionalAccess', _90 => _90.transactionHash]) || null;
1256
+ const sourceDetails = getEventSourceDetails(lastEvent);
1257
+ const displaySourceChain = _nullishCoalesce(sourceDetails.chainId, () => ( sourceChain));
1258
+ const displaySourceToken = _nullishCoalesce(sourceDetails.token, () => ( sourceToken));
1259
+ const displayAmount = _nullishCoalesce(sourceDetails.amount, () => ( amount));
1260
+ const sourceExplorerUrl = _chunkFLXTBFMZcjs.getExplorerTxUrl.call(void 0, displaySourceChain, txHash);
1261
+ const destExplorerUrl = destinationTxHash ? _chunkFLXTBFMZcjs.getExplorerTxUrl.call(void 0, targetChain, destinationTxHash) : null;
1214
1262
  const truncateHash = (hash) => `${hash.slice(0, 10)}...${hash.slice(-8)}`;
1215
1263
  const formatElapsedTime = (seconds) => {
1216
1264
  if (seconds < 60) return `${seconds} second${seconds !== 1 ? "s" : ""}`;
@@ -1218,16 +1266,19 @@ function ProcessingStep({
1218
1266
  const secs = seconds % 60;
1219
1267
  return `${mins}m ${secs}s`;
1220
1268
  };
1221
- const sourceSymbol = _chunkHYUITBRVcjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
1222
- const sourceDecimals = _chunkHYUITBRVcjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
1269
+ const sourceSymbol = _chunkFLXTBFMZcjs.getTokenSymbol.call(void 0, displaySourceToken, displaySourceChain);
1270
+ const sourceDecimals = _chunkFLXTBFMZcjs.getTokenDecimalsByAddress.call(void 0,
1271
+ displaySourceToken,
1272
+ displaySourceChain
1273
+ );
1223
1274
  const formattedReceivedAmount = (() => {
1224
1275
  try {
1225
- const raw = _viem.formatUnits.call(void 0, BigInt(amount), sourceDecimals);
1276
+ const raw = _viem.formatUnits.call(void 0, BigInt(displayAmount), sourceDecimals);
1226
1277
  const numeric = Number(raw);
1227
1278
  if (!Number.isFinite(numeric)) return raw;
1228
1279
  return numeric.toLocaleString("en-US", { maximumFractionDigits: 6 });
1229
1280
  } catch (e4) {
1230
- return Number(amount).toLocaleString("en-US", {
1281
+ return Number(displayAmount).toLocaleString("en-US", {
1231
1282
  maximumFractionDigits: 6
1232
1283
  });
1233
1284
  }
@@ -1290,15 +1341,15 @@ function ProcessingStep({
1290
1341
  className: "rs-card-value",
1291
1342
  style: { display: "flex", alignItems: "center", gap: 6 },
1292
1343
  children: [
1293
- _chunkHYUITBRVcjs.getChainIcon.call(void 0, sourceChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1344
+ _chunkFLXTBFMZcjs.getChainIcon.call(void 0, displaySourceChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1294
1345
  "img",
1295
1346
  {
1296
- src: _chunkHYUITBRVcjs.getChainIcon.call(void 0, sourceChain),
1347
+ src: _chunkFLXTBFMZcjs.getChainIcon.call(void 0, displaySourceChain),
1297
1348
  alt: "",
1298
1349
  style: { width: 14, height: 14, borderRadius: "50%" }
1299
1350
  }
1300
1351
  ),
1301
- _chunkHYUITBRVcjs.getChainName.call(void 0, sourceChain)
1352
+ _chunkFLXTBFMZcjs.getChainName.call(void 0, displaySourceChain)
1302
1353
  ]
1303
1354
  }
1304
1355
  )
@@ -1311,15 +1362,15 @@ function ProcessingStep({
1311
1362
  className: "rs-card-value",
1312
1363
  style: { display: "flex", alignItems: "center", gap: 6 },
1313
1364
  children: [
1314
- _chunkHYUITBRVcjs.getChainIcon.call(void 0, targetChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1365
+ _chunkFLXTBFMZcjs.getChainIcon.call(void 0, targetChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1315
1366
  "img",
1316
1367
  {
1317
- src: _chunkHYUITBRVcjs.getChainIcon.call(void 0, targetChain),
1368
+ src: _chunkFLXTBFMZcjs.getChainIcon.call(void 0, targetChain),
1318
1369
  alt: "",
1319
1370
  style: { width: 14, height: 14, borderRadius: "50%" }
1320
1371
  }
1321
1372
  ),
1322
- _chunkHYUITBRVcjs.getChainName.call(void 0, targetChain)
1373
+ _chunkFLXTBFMZcjs.getChainName.call(void 0, targetChain)
1323
1374
  ]
1324
1375
  }
1325
1376
  )
@@ -1441,7 +1492,7 @@ function ProcessingStep({
1441
1492
  {
1442
1493
  className: `rs-step-description ${isError ? "rs-text-error" : "rs-text-secondary"}`,
1443
1494
  children: [
1444
- state.type === "processing" && (_optionalChain([lastEvent, 'optionalAccess', _79 => _79.type]) === "deposit-received" ? "Transfer received. Preparing bridge..." : _optionalChain([lastEvent, 'optionalAccess', _80 => _80.type]) === "bridge-started" ? "Transfer confirmed. Funds arriving shortly..." : `Bridging your ${flowNoun} to ${_chunkHYUITBRVcjs.getChainName.call(void 0, targetChain)}.`),
1495
+ state.type === "processing" && (_optionalChain([lastEvent, 'optionalAccess', _91 => _91.type]) === "deposit-received" ? "Transfer received. Preparing bridge..." : _optionalChain([lastEvent, 'optionalAccess', _92 => _92.type]) === "bridge-started" ? "Transfer confirmed. Funds arriving shortly..." : `Bridging your ${flowNoun} to ${_chunkFLXTBFMZcjs.getChainName.call(void 0, targetChain)}.`),
1445
1496
  state.type === "failed" && state.message,
1446
1497
  state.type === "error" && state.message
1447
1498
  ]
@@ -1497,15 +1548,15 @@ function ProcessingStep({
1497
1548
  className: "rs-card-value",
1498
1549
  style: { display: "flex", alignItems: "center", gap: 8 },
1499
1550
  children: [
1500
- _chunkHYUITBRVcjs.getChainIcon.call(void 0, sourceChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1551
+ _chunkFLXTBFMZcjs.getChainIcon.call(void 0, displaySourceChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1501
1552
  "img",
1502
1553
  {
1503
- src: _chunkHYUITBRVcjs.getChainIcon.call(void 0, sourceChain),
1554
+ src: _chunkFLXTBFMZcjs.getChainIcon.call(void 0, displaySourceChain),
1504
1555
  alt: "",
1505
1556
  style: { width: 16, height: 16, borderRadius: "50%" }
1506
1557
  }
1507
1558
  ),
1508
- _chunkHYUITBRVcjs.getChainName.call(void 0, sourceChain)
1559
+ _chunkFLXTBFMZcjs.getChainName.call(void 0, displaySourceChain)
1509
1560
  ]
1510
1561
  }
1511
1562
  )
@@ -1518,15 +1569,15 @@ function ProcessingStep({
1518
1569
  className: "rs-card-value",
1519
1570
  style: { display: "flex", alignItems: "center", gap: 8 },
1520
1571
  children: [
1521
- _chunkHYUITBRVcjs.getChainIcon.call(void 0, targetChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1572
+ _chunkFLXTBFMZcjs.getChainIcon.call(void 0, targetChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1522
1573
  "img",
1523
1574
  {
1524
- src: _chunkHYUITBRVcjs.getChainIcon.call(void 0, targetChain),
1575
+ src: _chunkFLXTBFMZcjs.getChainIcon.call(void 0, targetChain),
1525
1576
  alt: "",
1526
1577
  style: { width: 16, height: 16, borderRadius: "50%" }
1527
1578
  }
1528
1579
  ),
1529
- _chunkHYUITBRVcjs.getChainName.call(void 0, targetChain)
1580
+ _chunkFLXTBFMZcjs.getChainName.call(void 0, targetChain)
1530
1581
  ]
1531
1582
  }
1532
1583
  )
@@ -1579,7 +1630,7 @@ var clientCache = /* @__PURE__ */ new Map();
1579
1630
  function getPublicClient(chainId) {
1580
1631
  let client = clientCache.get(chainId);
1581
1632
  if (!client) {
1582
- const chain = _chunkHYUITBRVcjs.CHAIN_BY_ID[chainId];
1633
+ const chain = _chunkFLXTBFMZcjs.CHAIN_BY_ID[chainId];
1583
1634
  client = _viem.createPublicClient.call(void 0, {
1584
1635
  chain,
1585
1636
  transport: _viem.http.call(void 0, )
@@ -1612,4 +1663,5 @@ function getPublicClient(chainId) {
1612
1663
 
1613
1664
 
1614
1665
 
1615
- exports.Modal = Modal; exports.Spinner = Spinner; exports.Button = Button; exports.ConnectStep = ConnectStep; exports.buildSessionDetails = buildSessionDetails; exports.createDepositService = createDepositService; exports.getAssetId = getAssetId; exports.portfolioToAssets = portfolioToAssets; exports.isNativeAsset = isNativeAsset; exports.loadSessionOwnerFromStorage = loadSessionOwnerFromStorage; exports.saveSessionOwnerToStorage = saveSessionOwnerToStorage; exports.createSessionOwnerKey = createSessionOwnerKey; exports.accountFromPrivateKey = accountFromPrivateKey; exports.PoweredBy = PoweredBy; exports.currencyFormatter = currencyFormatter; exports.tokenFormatter = tokenFormatter; exports.formatUserError = formatUserError; exports.getEventTxHash = getEventTxHash; exports.isDepositEvent = isDepositEvent; exports.ProcessingStep = ProcessingStep; exports.getPublicClient = getPublicClient; exports.applyTheme = applyTheme;
1666
+
1667
+ exports.Modal = Modal; exports.Spinner = Spinner; exports.Button = Button; exports.ConnectStep = ConnectStep; exports.buildSessionDetails = buildSessionDetails; exports.createDepositService = createDepositService; exports.getAssetId = getAssetId; exports.portfolioToAssets = portfolioToAssets; exports.isNativeAsset = isNativeAsset; exports.loadSessionOwnerFromStorage = loadSessionOwnerFromStorage; exports.saveSessionOwnerToStorage = saveSessionOwnerToStorage; exports.createSessionOwnerKey = createSessionOwnerKey; exports.accountFromPrivateKey = accountFromPrivateKey; exports.PoweredBy = PoweredBy; exports.currencyFormatter = currencyFormatter; exports.tokenFormatter = tokenFormatter; exports.formatUserError = formatUserError; exports.getEventTxHash = getEventTxHash; exports.getEventSourceDetails = getEventSourceDetails; exports.isDepositEvent = isDepositEvent; exports.ProcessingStep = ProcessingStep; exports.getPublicClient = getPublicClient; exports.applyTheme = applyTheme;
@@ -17,7 +17,7 @@ import {
17
17
  isNativeAsset,
18
18
  loadSessionOwnerFromStorage,
19
19
  saveSessionOwnerToStorage
20
- } from "./chunk-UBPIPY3L.mjs";
20
+ } from "./chunk-IC2M2DZ7.mjs";
21
21
  import {
22
22
  DEFAULT_BACKEND_URL,
23
23
  DEFAULT_SIGNER_ADDRESS,
@@ -30,7 +30,7 @@ import {
30
30
  getTokenDecimalsByAddress,
31
31
  getTokenIcon,
32
32
  getTokenSymbol
33
- } from "./chunk-ZL4KPLWE.mjs";
33
+ } from "./chunk-I7RYTI4G.mjs";
34
34
 
35
35
  // src/WithdrawModal.tsx
36
36
  import {
@@ -1340,7 +1340,7 @@ function WithdrawFlow({
1340
1340
  // src/WithdrawModal.tsx
1341
1341
  import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
1342
1342
  var ReownWithdrawInner = lazy(
1343
- () => import("./WithdrawModalReown-OIG2DANP.mjs").then((m) => ({
1343
+ () => import("./WithdrawModalReown-XXCOZYVU.mjs").then((m) => ({
1344
1344
  default: m.WithdrawModalReown
1345
1345
  }))
1346
1346
  );
@@ -7,6 +7,7 @@
7
7
 
8
8
 
9
9
 
10
+
10
11
  var _chains = require('viem/chains');
11
12
  var DEFAULT_BACKEND_URL = "https://v1.orchestrator.rhinestone.dev/deposit-widget";
12
13
  var DEFAULT_SIGNER_ADDRESS = "0x177bfcdd15bc01e99013dcc5d2b09cd87a18ce9c";
@@ -18,12 +19,13 @@ var ALL_CHAINS_BY_ID = {
18
19
  [_chains.arbitrum.id]: _chains.arbitrum,
19
20
  [_chains.polygon.id]: _chains.polygon,
20
21
  [_chains.bsc.id]: _chains.bsc,
21
- [_chains.plasma.id]: _chains.plasma
22
+ [_chains.plasma.id]: _chains.plasma,
23
+ [_chains.soneium.id]: _chains.soneium
22
24
  };
23
25
  var SUPPORTED_TOKEN_MATRIX = {
24
- ETH: [_chains.mainnet.id, _chains.base.id, _chains.arbitrum.id, _chains.optimism.id, _chains.polygon.id],
25
- WETH: [_chains.mainnet.id, _chains.base.id, _chains.arbitrum.id, _chains.optimism.id, _chains.polygon.id],
26
- USDC: [_chains.mainnet.id, _chains.base.id, _chains.arbitrum.id, _chains.optimism.id, _chains.polygon.id],
26
+ ETH: [_chains.mainnet.id, _chains.base.id, _chains.arbitrum.id, _chains.optimism.id, _chains.polygon.id, _chains.soneium.id],
27
+ WETH: [_chains.mainnet.id, _chains.base.id, _chains.arbitrum.id, _chains.optimism.id, _chains.polygon.id, _chains.soneium.id],
28
+ USDC: [_chains.mainnet.id, _chains.base.id, _chains.arbitrum.id, _chains.optimism.id, _chains.polygon.id, _chains.soneium.id],
27
29
  USDT: [_chains.mainnet.id, _chains.arbitrum.id, _chains.polygon.id, _chains.bsc.id, _chains.plasma.id]
28
30
  };
29
31
  var CHAIN_DISPLAY_ORDER = [
@@ -33,7 +35,8 @@ var CHAIN_DISPLAY_ORDER = [
33
35
  _chains.optimism.id,
34
36
  _chains.polygon.id,
35
37
  _chains.bsc.id,
36
- _chains.plasma.id
38
+ _chains.plasma.id,
39
+ _chains.soneium.id
37
40
  ];
38
41
  var supportedChainSet = /* @__PURE__ */ new Set();
39
42
  for (const chainIds of Object.values(SUPPORTED_TOKEN_MATRIX)) {
@@ -193,6 +196,22 @@ var chainRegistry = {
193
196
  decimals: 6
194
197
  }
195
198
  ]
199
+ },
200
+ [_chains.soneium.id]: {
201
+ name: _chains.soneium.name,
202
+ tokens: [
203
+ { symbol: "ETH", address: NATIVE_TOKEN_ADDRESS, decimals: 18 },
204
+ {
205
+ symbol: "USDC",
206
+ address: "0xbA9986D2381edf1DA03B0B9c1f8b00dc4AacC369",
207
+ decimals: 6
208
+ },
209
+ {
210
+ symbol: "WETH",
211
+ address: "0x4200000000000000000000000000000000000006",
212
+ decimals: 18
213
+ }
214
+ ]
196
215
  }
197
216
  };
198
217
  function getChainId(chain) {
@@ -364,7 +383,8 @@ var CHAIN_BADGES = {
364
383
  [_chains.arbitrum.id]: { shortLabel: "Arb", color: "#28A0F0", bg: "#E6F6FF" },
365
384
  [_chains.polygon.id]: { shortLabel: "Matic", color: "#8247E5", bg: "#EFE7FF" },
366
385
  [_chains.bsc.id]: { shortLabel: "BSC", color: "#F3BA2F", bg: "#FFF8E0" },
367
- [_chains.plasma.id]: { shortLabel: "Plasma", color: "#6C47FF", bg: "#EDE7FF" }
386
+ [_chains.plasma.id]: { shortLabel: "Plasma", color: "#6C47FF", bg: "#EDE7FF" },
387
+ [_chains.soneium.id]: { shortLabel: "Soneium", color: "#0D0D0D", bg: "#E8E8E8" }
368
388
  };
369
389
  function getChainName(chainId) {
370
390
  const chain = CHAIN_BY_ID[chainId];
@@ -400,6 +420,7 @@ var CHAIN_ICONS = {
400
420
  [_chains.arbitrum.id]: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2500 2500'%3E%3Crect width='2500' height='2500' fill='none'/%3E%3Cpath fill='%23213147' d='M226%2C760v980c0%2C63%2C33%2C120%2C88%2C152l849%2C490c54%2C31%2C121%2C31%2C175%2C0l849-490c54-31%2C88-89%2C88-152V760c0-63-33-120-88-152l-849-490c-54-31-121-31-175%2C0L314%2C608c-54%2C31-87%2C89-87%2C152H226z'/%3E%3Cpath fill='%2312AAFF' d='M1435%2C1440l-121%2C332c-3%2C9-3%2C19%2C0%2C29l208%2C571l241-139l-289-793C1467%2C1422%2C1442%2C1422%2C1435%2C1440z'/%3E%3Cpath fill='%2312AAFF' d='M1678%2C882c-7-18-32-18-39%2C0l-121%2C332c-3%2C9-3%2C19%2C0%2C29l341%2C935l241-139L1678%2C883V882z'/%3E%3Cpath fill='%239DCCED' d='M1250%2C155c6%2C0%2C12%2C2%2C17%2C5l918%2C530c11%2C6%2C17%2C18%2C17%2C30v1060c0%2C12-7%2C24-17%2C30l-918%2C530c-5%2C3-11%2C5-17%2C5s-12-2-17-5l-918-530c-11-6-17-18-17-30V719c0-12%2C7-24%2C17-30l918-530c5-3%2C11-5%2C17-5V155z M1250%2C0c-33%2C0-65%2C8-95%2C25L237%2C555c-59%2C34-95%2C96-95%2C164v1060c0%2C68%2C36%2C130%2C95%2C164l918%2C530c29%2C17%2C62%2C25%2C95%2C25s65-8%2C95-25l918-530c59-34%2C95-96%2C95-164V719c0-68-36-130-95-164L1344%2C25c-29-17-62-25-95-25H1250z'/%3E%3Cpolygon fill='%23213147' points='642%2C2179 727%2C1947 897%2C2088 738%2C2234'/%3E%3Cpath fill='%23FFFFFF' d='M1172%2C644H939c-17%2C0-33%2C11-39%2C27L401%2C2039l241%2C139l550-1507c5-14-5-28-19-28H1172z'/%3E%3Cpath fill='%23FFFFFF' d='M1580%2C644h-233c-17%2C0-33%2C11-39%2C27L738%2C2233l241%2C139l620-1701c5-14-5-28-19-28V644z'/%3E%3C/svg%3E",
401
421
  [_chains.polygon.id]: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 178 161'%3E%3Cpath fill='%236C00F6' d='M66.8%2C54.7l-16.7-9.7L0%2C74.1v58l50.1%2C29l50.1-29V41.9L128%2C25.8l27.8%2C16.1v32.2L128%2C90.2l-16.7-9.7v25.8l16.7%2C9.7l50.1-29V29L128%2C0L77.9%2C29v90.2l-27.8%2C16.1l-27.8-16.1V86.9l27.8-16.1l16.7%2C9.7V54.7z'/%3E%3C/svg%3E",
402
422
  [_chains.bsc.id]: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2496 2496'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' fill='%23F0B90B' d='M1248%2C0c689.3%2C0%2C1248%2C558.7%2C1248%2C1248s-558.7%2C1248-1248%2C1248S0%2C1937.3%2C0%2C1248S558.7%2C0%2C1248%2C0z'/%3E%3Cpath fill='%23FFFFFF' d='M685.9%2C1248l0.9%2C330l280.4%2C165v193.2l-444.5-260.7v-524L685.9%2C1248z M685.9%2C918v192.3l-163.3-96.6V821.4l163.3-96.6l164.1%2C96.6L685.9%2C918z M1084.3%2C821.4l163.3-96.6l164.1%2C96.6L1247.6%2C918L1084.3%2C821.4z'/%3E%3Cpath fill='%23FFFFFF' d='M803.9%2C1509.6v-193.2l163.3%2C96.6v192.3L803.9%2C1509.6z M1084.3%2C1812.2l163.3%2C96.6l164.1-96.6v192.3l-164.1%2C96.6l-163.3-96.6V1812.2z M1645.9%2C821.4l163.3-96.6l164.1%2C96.6v192.3l-164.1%2C96.6V918L1645.9%2C821.4z M1809.2%2C1578l0.9-330l163.3-96.6v524l-444.5%2C260.7v-193.2L1809.2%2C1578z'/%3E%3Cpolygon fill='%23FFFFFF' points='1692.1%2C1509.6 1528.8%2C1605.3 1528.8%2C1413 1692.1%2C1316.4 1692.1%2C1509.6'/%3E%3Cpath fill='%23FFFFFF' d='M1692.1%2C986.4l0.9%2C193.2l-281.2%2C165v330.8l-163.3%2C95.7l-163.3-95.7v-330.8l-281.2-165V986.4L968%2C889.8l279.5%2C165.8l281.2-165.8l164.1%2C96.6H1692.1z M803.9%2C656.5l443.7-261.6l444.5%2C261.6l-163.3%2C96.6l-281.2-165.8L967.2%2C753.1L803.9%2C656.5z'/%3E%3C/svg%3E",
423
+ [_chains.soneium.id]: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M13.153 16.867a4.99 4.99 0 0 1-4.69-1.32 4.845 4.845 0 0 1-.784-6.031 8.4 8.4 0 0 1 1.359-1.677c1.66-1.655 4.707-4.667 4.707-4.667A9 9 0 0 0 7.177 4.4a9.013 9.013 0 0 0-3.003 12.05 9 9 0 0 0 5.22 4.175z'/%3E%3Cpath fill='%23000' d='M10.839 7.136a4.98 4.98 0 0 1 4.69 1.321c1.644 1.647 1.965 4.09.778 6.022a8.5 8.5 0 0 1-1.36 1.68c-1.66 1.652-4.707 4.666-4.707 4.666a9 9 0 0 0 6.578-1.221 9.01 9.01 0 0 0 3.005-12.062A9 9 0 0 0 14.59 3.37z'/%3E%3C/svg%3E",
403
424
  [_chains.plasma.id]: "data:image/svg+xml,%3Csvg width='166' height='166' viewBox='0 0 166 166' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='166' height='166' fill='%23162F29'/%3E%3Cpath d='M133 83.268C133 83.7749 132.993 84.2819 132.978 84.7888H108.659V83.6808H85.2523C85.2523 83.449 85.2596 83.2173 85.2596 82.9928C85.2596 82.7682 85.2596 82.5293 85.2523 82.3047H108.659V81.2039H132.957C132.986 81.8919 133 82.58 133 83.268ZM84.8395 78.2781L107.747 75.4609L107.884 76.5617L132.073 73.5852C131.841 72.3974 131.566 71.2242 131.255 70.0727L107.442 73.0058L107.58 74.1066L84.5643 76.9383C84.6657 77.3873 84.7598 77.8363 84.8395 78.2926V78.2781ZM83.6446 73.8459L105.538 68.378L105.806 69.4499L129.039 63.6489C128.561 62.5264 128.046 61.4183 127.496 60.3392L104.944 65.9736L105.212 67.0455L83.1376 72.564C83.3187 72.9913 83.4852 73.4186 83.6446 73.8531V73.8459ZM81.7036 69.6961L102.17 61.9687L102.561 63.0043L124.215 54.8279C123.513 53.7995 122.774 52.8001 121.992 51.8297L101.294 59.644L101.685 60.6796L80.9722 68.5012C81.2257 68.8922 81.4719 69.2906 81.7036 69.6961ZM79.0168 65.8578L97.0933 56.4357L97.6002 57.4206L117.589 46.9991C116.669 46.1083 115.713 45.261 114.728 44.4426L95.9418 54.2341L96.4487 55.219L78.0681 64.8004C78.3867 65.148 78.7054 65.4957 79.0096 65.8578H79.0168ZM74.657 61.7152L91.0243 51.3082L91.6182 52.2425L109.68 40.7564C108.543 40.0322 107.384 39.3586 106.189 38.7286L89.699 49.2152L90.2929 50.1495L73.4548 60.8534C73.8676 61.1286 74.2659 61.4183 74.6642 61.7152H74.657ZM70.7897 59.2963L84.5064 48.0492L85.2089 48.9038L100.656 36.23C99.3456 35.7303 97.9985 35.2813 96.637 34.8902L82.9348 46.1301L83.6373 46.9846L69.4209 58.6446C69.8844 58.8473 70.3407 59.0646 70.7897 59.2963ZM65.6695 57.3048L76.5038 46.5211L77.2787 47.3033L91.0461 33.6228C89.5542 33.3766 88.0406 33.1955 86.5052 33.0797L74.7656 44.7613L75.5406 45.5435L64.0979 56.9282C64.6266 57.0368 65.148 57.1599 65.6695 57.3048ZM59.6802 56.3995L68.3201 45.9273L69.1747 46.6298L80.4218 33C78.7126 33.0797 77.0252 33.2462 75.3667 33.4925L66.4082 44.3485L67.2627 45.051L57.9058 56.3922C58.1666 56.385 58.4345 56.3777 58.6952 56.3777C59.0284 56.3777 59.3543 56.3778 59.6802 56.3922V56.3995ZM54.502 56.7109L61.1576 46.4125L62.0846 47.0136L70.1306 34.5571C68.2911 35.0351 66.4951 35.6144 64.7425 36.2879L59.0791 45.0582L60.0061 45.6593L52.6335 57.073C53.2491 56.9282 53.872 56.805 54.502 56.7036V56.7109ZM48.7517 58.3114L53.5388 49.3384L54.5093 49.8598L60.8462 37.9899C58.8111 38.982 56.8557 40.1046 54.9873 41.3502L51.3444 48.1724L52.3221 48.6938L46.6877 59.2529C47.354 58.9125 48.042 58.6011 48.7445 58.3187L48.7517 58.3114ZM44.6237 60.4189L46.6587 54.6396L47.7016 55.009L51.6559 43.7836C49.6498 45.3769 47.7668 47.115 46.0214 48.9907L44.3195 53.8213L45.3624 54.1906L42.6973 61.7515C43.3201 61.2807 43.9574 60.8389 44.6165 60.4261L44.6237 60.4189ZM39.5469 64.5542L40.445 60.3537L41.524 60.5855L43.3346 52.1266C41.4299 54.5455 39.7425 57.1454 38.3013 59.8902L39.1052 60.064L37.4539 67.0165C38.0985 66.1547 38.801 65.3291 39.5469 64.5542ZM35.8172 69.4644V63.9024C34.4702 67.4583 33.5142 71.8833 33 76.2213C33.6301 73.8169 34.586 71.5501 35.8172 69.4644ZM33.0362 89.909C33.5649 93.6098 34.4919 97.1802 35.781 100.577V96.4704C34.5933 94.4426 33.659 92.241 33.0362 89.909ZM37.6278 99.2152L39.0689 105.936L38.2651 106.11C39.7063 108.862 41.3937 111.455 43.2984 113.873L41.4878 105.415L40.4087 105.646L39.4962 101.395C38.8372 100.7 38.2071 99.9757 37.6278 99.208V99.2152ZM42.6466 104.212L45.3262 111.817L44.2833 112.186L45.9852 117.017C47.7306 118.892 49.6136 120.63 51.6196 122.224L47.6654 110.998L46.6225 111.368L44.5802 105.559C43.9212 105.139 43.2767 104.698 42.6538 104.227L42.6466 104.212ZM46.6443 106.725L52.2932 117.313L51.3155 117.835L54.9583 124.657C56.8268 125.903 58.7822 127.025 60.8172 128.017L54.4803 116.147L53.5026 116.669L48.701 107.674C47.9985 107.392 47.3105 107.073 46.637 106.733L46.6443 106.725ZM52.5901 108.913L59.9699 120.341L59.0429 120.942L64.7063 129.712C66.4589 130.386 68.2549 130.965 70.0944 131.443L62.0484 118.986L61.1214 119.587L54.4586 109.275C53.8285 109.173 53.1984 109.05 52.5828 108.905L52.5901 108.913ZM57.8624 109.608L67.2193 120.949L66.3647 121.652L75.3233 132.508C76.9817 132.754 78.6692 132.92 80.3783 133L69.1312 119.363L68.2766 120.065L59.6367 109.593C59.3253 109.608 59.0067 109.608 58.688 109.608C58.4128 109.608 58.1304 109.608 57.8552 109.593L57.8624 109.608ZM64.0689 109.072L75.5043 120.449L74.7294 121.231L86.469 132.913C88.0043 132.797 89.518 132.616 91.0098 132.37L77.2497 118.682L76.4676 119.472L65.6405 108.695C65.1263 108.833 64.5976 108.963 64.0689 109.072ZM69.3992 107.37L83.6011 119.023L82.8986 119.877L96.6008 131.117C97.9623 130.726 99.3094 130.277 100.62 129.777L85.1654 117.103L84.4629 117.958L70.7607 106.718C70.3117 106.95 69.8554 107.167 69.3919 107.37H69.3992ZM73.4258 105.154L90.2422 115.851L89.6483 116.785L106.139 127.271C107.334 126.641 108.5 125.961 109.629 125.244L91.5675 113.758L90.9736 114.692L74.628 104.299C74.2297 104.596 73.8314 104.886 73.4186 105.161L73.4258 105.154ZM78.0608 101.214L96.4198 110.781L95.9128 111.766L114.699 121.557C115.684 120.739 116.64 119.892 117.56 119.001L97.5713 108.579L97.0643 109.564L79.0096 100.157C78.7054 100.519 78.394 100.874 78.0681 101.214H78.0608ZM80.9649 97.5061L101.649 105.32L101.258 106.356L121.956 114.17C122.731 113.2 123.469 112.2 124.179 111.172L102.525 102.996L102.134 104.031L81.6964 96.3111C81.4646 96.7167 81.2184 97.115 80.9649 97.5061ZM83.1304 93.4505L105.168 98.9545L104.9 100.026L127.452 105.661C128.01 104.582 128.524 103.474 129.002 102.351L105.769 96.5501L105.501 97.622L83.6373 92.1614C83.478 92.5959 83.3042 93.0232 83.1304 93.4505ZM84.5643 89.0762L107.544 91.9006L107.406 93.0014L131.218 95.9345C131.53 94.7758 131.805 93.6026 132.037 92.4221L107.848 89.4455L107.71 90.5463L84.8395 87.7291C84.7598 88.1854 84.6657 88.6344 84.5643 89.0834V89.0762Z' fill='white'/%3E%3C/svg%3E"
404
425
  };
405
426
  var TOKEN_ICONS = {