@alphafi/alphafi-sdk 0.0.55 → 0.0.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (303) hide show
  1. package/dist/cjs/common/coins.d.ts.map +1 -1
  2. package/dist/cjs/common/coins.js +6 -0
  3. package/dist/cjs/common/coins.js.map +1 -1
  4. package/dist/cjs/common/constants.d.ts +62 -0
  5. package/dist/cjs/common/constants.d.ts.map +1 -1
  6. package/dist/cjs/common/constants.js +55 -22
  7. package/dist/cjs/common/constants.js.map +1 -1
  8. package/dist/cjs/common/maps.d.ts.map +1 -1
  9. package/dist/cjs/common/maps.js +91 -39
  10. package/dist/cjs/common/maps.js.map +1 -1
  11. package/dist/cjs/common/pyth.d.ts +1 -1
  12. package/dist/cjs/common/pyth.d.ts.map +1 -1
  13. package/dist/cjs/common/pyth.js.map +1 -1
  14. package/dist/cjs/common/types.d.ts +4 -4
  15. package/dist/cjs/common/types.d.ts.map +1 -1
  16. package/dist/cjs/common/types.js.map +1 -1
  17. package/dist/cjs/getLastAutoCompoundTime.js +2 -2
  18. package/dist/cjs/getLastAutoCompoundTime.js.map +1 -1
  19. package/dist/cjs/sui-sdk/events/fetchAutoCompoundingEvents.d.ts.map +1 -1
  20. package/dist/cjs/sui-sdk/events/fetchAutoCompoundingEvents.js +2 -1
  21. package/dist/cjs/sui-sdk/events/fetchAutoCompoundingEvents.js.map +1 -1
  22. package/dist/cjs/sui-sdk/functions/getReceipts.d.ts +1 -0
  23. package/dist/cjs/sui-sdk/functions/getReceipts.d.ts.map +1 -1
  24. package/dist/cjs/transactions/7k.d.ts +1 -1
  25. package/dist/cjs/transactions/7k.d.ts.map +1 -1
  26. package/dist/cjs/transactions/7k.js +2 -1
  27. package/dist/cjs/transactions/7k.js.map +1 -1
  28. package/dist/cjs/transactions/blueRewards.d.ts.map +1 -1
  29. package/dist/cjs/transactions/blueRewards.js +18 -6
  30. package/dist/cjs/transactions/blueRewards.js.map +1 -1
  31. package/dist/cjs/transactions/bluefin.d.ts.map +1 -1
  32. package/dist/cjs/transactions/bluefin.js +280 -12
  33. package/dist/cjs/transactions/bluefin.js.map +1 -1
  34. package/dist/cjs/transactions/collect_rewards.d.ts.map +1 -1
  35. package/dist/cjs/transactions/collect_rewards.js +5 -1
  36. package/dist/cjs/transactions/collect_rewards.js.map +1 -1
  37. package/dist/cjs/transactions/deposit.d.ts.map +1 -1
  38. package/dist/cjs/transactions/deposit.js +2 -4
  39. package/dist/cjs/transactions/deposit.js.map +1 -1
  40. package/dist/cjs/transactions/navi.d.ts.map +1 -1
  41. package/dist/cjs/transactions/navi.js +64 -0
  42. package/dist/cjs/transactions/navi.js.map +1 -1
  43. package/dist/cjs/transactions/zapDeposit.d.ts.map +1 -1
  44. package/dist/cjs/transactions/zapDeposit.js +89 -38
  45. package/dist/cjs/transactions/zapDeposit.js.map +1 -1
  46. package/dist/cjs/utils/constants.d.ts.map +1 -1
  47. package/dist/cjs/utils/constants.js +5 -0
  48. package/dist/cjs/utils/constants.js.map +1 -1
  49. package/dist/esm/common/coins.d.ts.map +1 -1
  50. package/dist/esm/common/coins.js +6 -0
  51. package/dist/esm/common/coins.js.map +1 -1
  52. package/dist/esm/common/constants.d.ts +62 -0
  53. package/dist/esm/common/constants.d.ts.map +1 -1
  54. package/dist/esm/common/constants.js +55 -22
  55. package/dist/esm/common/constants.js.map +1 -1
  56. package/dist/esm/common/maps.d.ts.map +1 -1
  57. package/dist/esm/common/maps.js +91 -39
  58. package/dist/esm/common/maps.js.map +1 -1
  59. package/dist/esm/common/pyth.d.ts +1 -1
  60. package/dist/esm/common/pyth.d.ts.map +1 -1
  61. package/dist/esm/common/pyth.js.map +1 -1
  62. package/dist/esm/common/types.d.ts +4 -4
  63. package/dist/esm/common/types.d.ts.map +1 -1
  64. package/dist/esm/common/types.js.map +1 -1
  65. package/dist/esm/getLastAutoCompoundTime.js +2 -2
  66. package/dist/esm/getLastAutoCompoundTime.js.map +1 -1
  67. package/dist/esm/sui-sdk/events/fetchAutoCompoundingEvents.d.ts.map +1 -1
  68. package/dist/esm/sui-sdk/events/fetchAutoCompoundingEvents.js +2 -1
  69. package/dist/esm/sui-sdk/events/fetchAutoCompoundingEvents.js.map +1 -1
  70. package/dist/esm/sui-sdk/functions/getReceipts.d.ts +1 -0
  71. package/dist/esm/sui-sdk/functions/getReceipts.d.ts.map +1 -1
  72. package/dist/esm/transactions/7k.d.ts +1 -1
  73. package/dist/esm/transactions/7k.d.ts.map +1 -1
  74. package/dist/esm/transactions/7k.js +2 -1
  75. package/dist/esm/transactions/7k.js.map +1 -1
  76. package/dist/esm/transactions/blueRewards.d.ts.map +1 -1
  77. package/dist/esm/transactions/blueRewards.js +18 -6
  78. package/dist/esm/transactions/blueRewards.js.map +1 -1
  79. package/dist/esm/transactions/bluefin.d.ts.map +1 -1
  80. package/dist/esm/transactions/bluefin.js +280 -12
  81. package/dist/esm/transactions/bluefin.js.map +1 -1
  82. package/dist/esm/transactions/collect_rewards.d.ts.map +1 -1
  83. package/dist/esm/transactions/collect_rewards.js +5 -1
  84. package/dist/esm/transactions/collect_rewards.js.map +1 -1
  85. package/dist/esm/transactions/deposit.d.ts.map +1 -1
  86. package/dist/esm/transactions/deposit.js +2 -4
  87. package/dist/esm/transactions/deposit.js.map +1 -1
  88. package/dist/esm/transactions/navi.d.ts.map +1 -1
  89. package/dist/esm/transactions/navi.js +64 -0
  90. package/dist/esm/transactions/navi.js.map +1 -1
  91. package/dist/esm/transactions/zapDeposit.d.ts.map +1 -1
  92. package/dist/esm/transactions/zapDeposit.js +89 -38
  93. package/dist/esm/transactions/zapDeposit.js.map +1 -1
  94. package/dist/esm/utils/constants.d.ts.map +1 -1
  95. package/dist/esm/utils/constants.js +5 -0
  96. package/dist/esm/utils/constants.js.map +1 -1
  97. package/docs/assets/highlight.css +74 -51
  98. package/docs/assets/icons.js +20 -17
  99. package/docs/assets/main.js +2163 -5
  100. package/docs/assets/navigation.js +2 -1
  101. package/docs/assets/search.js +2 -1
  102. package/docs/assets/style.css +846 -850
  103. package/docs/functions/alphaLpBreakdown.html +253 -1
  104. package/docs/functions/cetusLpBreakdown.html +253 -1
  105. package/docs/functions/claimBlueRewardTxb.html +258 -1
  106. package/docs/functions/claimRewardTxb.html +243 -1
  107. package/docs/functions/coinAmountToXTokensDoubleAsset.html +267 -1
  108. package/docs/functions/coinAmountToXTokensSingleAsset.html +260 -1
  109. package/docs/functions/coinsInPool.html +438 -1
  110. package/docs/functions/collectRewards.html +242 -1
  111. package/docs/functions/deposit.html +246 -1
  112. package/docs/functions/depositDoubleAssetTxb.html +270 -1
  113. package/docs/functions/depositSingleAssetTxb.html +263 -1
  114. package/docs/functions/fetchAfterTransactionEvents.html +328 -1
  115. package/docs/functions/fetchAutoCompoundingEvents.html +257 -1
  116. package/docs/functions/fetchAutoCompoundingEventsGql.html +251 -1
  117. package/docs/functions/fetchCetusPools.html +231 -1
  118. package/docs/functions/fetchChainIdentifier.html +233 -1
  119. package/docs/functions/fetchCheckRatioEvents.html +249 -1
  120. package/docs/functions/fetchLiquidityChangeEvents.html +257 -1
  121. package/docs/functions/fetchMultiCategoryEvents.html +348 -1
  122. package/docs/functions/fetchMultiReceipts.html +261 -1
  123. package/docs/functions/fetchNftHolders.html +233 -1
  124. package/docs/functions/fetchPools.html +230 -1
  125. package/docs/functions/fetchPortfolioData.html +243 -1
  126. package/docs/functions/fetchProtocolData.html +231 -1
  127. package/docs/functions/fetchTVL.html +253 -1
  128. package/docs/functions/fetchUserVaultBalances.html +245 -1
  129. package/docs/functions/fetchUserVaults.html +243 -1
  130. package/docs/functions/fetchUserWalletData.html +243 -1
  131. package/docs/functions/fetchVoloExchangeRate.html +251 -1
  132. package/docs/functions/fetchWithdrawV2Events.html +255 -1
  133. package/docs/functions/getAirdropShare.html +243 -1
  134. package/docs/functions/getAllDoubleAssetVaults.html +235 -1
  135. package/docs/functions/getAllSingleAssetVaults.html +235 -1
  136. package/docs/functions/getAllVaultBalances.html +265 -1
  137. package/docs/functions/getAllVaults.html +233 -1
  138. package/docs/functions/getAlphaUnlocks.html +245 -1
  139. package/docs/functions/getAlphaVaultBalance.html +255 -1
  140. package/docs/functions/getAmounts.html +272 -1
  141. package/docs/functions/getApr.html +243 -1
  142. package/docs/functions/getAprs.html +255 -1
  143. package/docs/functions/getApy.html +243 -1
  144. package/docs/functions/getApys.html +255 -1
  145. package/docs/functions/getCetusInvestorTicksMap.html +284 -1
  146. package/docs/functions/getCetusPool.html +270 -1
  147. package/docs/functions/getCetusSqrtPriceMap.html +249 -1
  148. package/docs/functions/getCoinAmountsFromLiquidity.html +273 -1
  149. package/docs/functions/getConf.html +13163 -1
  150. package/docs/functions/getCurrentTick.html +247 -1
  151. package/docs/functions/getDistributor.html +252 -1
  152. package/docs/functions/getDoubleAssetVaultBalance.html +268 -1
  153. package/docs/functions/getDoubleAssetVaults.html +253 -1
  154. package/docs/functions/getHoldersFromTransactions.html +299 -1
  155. package/docs/functions/getInvestor.html +259 -1
  156. package/docs/functions/getInvestorPoolMap.html +241 -1
  157. package/docs/functions/getLastAutoCompoundTime.html +249 -1
  158. package/docs/functions/getLatestPrices.html +253 -1
  159. package/docs/functions/getLiquidity.html +260 -1
  160. package/docs/functions/getMultiCetusPool.html +231 -1
  161. package/docs/functions/getMultiInvestor.html +231 -1
  162. package/docs/functions/getMultiLatestPrices.html +233 -1
  163. package/docs/functions/getMultiParentPool.html +231 -1
  164. package/docs/functions/getMultiPool.html +231 -1
  165. package/docs/functions/getMultiReceipts.html +243 -1
  166. package/docs/functions/getParentPool.html +266 -1
  167. package/docs/functions/getPool.html +262 -1
  168. package/docs/functions/getPoolExchangeRate.html +254 -1
  169. package/docs/functions/getPoolExchangeRateMap.html +249 -1
  170. package/docs/functions/getPoolsWeightDistribution.html +266 -1
  171. package/docs/functions/getPositionRange.html +283 -1
  172. package/docs/functions/getPositionRanges.html +289 -1
  173. package/docs/functions/getPositionTicks.html +249 -1
  174. package/docs/functions/getPriceToTick.html +264 -1
  175. package/docs/functions/getRebalanceHistories.html +269 -1
  176. package/docs/functions/getRebalanceHistory.html +255 -1
  177. package/docs/functions/getReceipts.html +268 -1
  178. package/docs/functions/getSingleAssetVaultBalance.html +268 -1
  179. package/docs/functions/getSingleAssetVaults.html +253 -1
  180. package/docs/functions/getSuiClient.html +247 -3
  181. package/docs/functions/getSuiNodeUrl.html +232 -3
  182. package/docs/functions/getTVLs-1.html +243 -1
  183. package/docs/functions/getTickSpacing.html +247 -1
  184. package/docs/functions/getTickToPrice.html +248 -1
  185. package/docs/functions/getTvls.html +259 -1
  186. package/docs/functions/getUserTokensFromTransactions.html +269 -1
  187. package/docs/functions/getUserTokensInUsdFromTransactions.html +263 -1
  188. package/docs/functions/getVaultBalance.html +277 -1
  189. package/docs/functions/getVaultBalanceForActiveUsers.html +261 -1
  190. package/docs/functions/getVaults.html +250 -1
  191. package/docs/functions/getXTokenVaultBalanceForActiveUsers.html +261 -1
  192. package/docs/functions/getZapAmounts.html +323 -1
  193. package/docs/functions/lastAutocompoundTime.html +249 -1
  194. package/docs/functions/liquidityToTokens.html +253 -1
  195. package/docs/functions/multiLiquidityToTokens.html +271 -1
  196. package/docs/functions/multiTokensToUsd.html +262 -1
  197. package/docs/functions/multiXTokensToLiquidity.html +257 -1
  198. package/docs/functions/parseUserWalletData.html +243 -1
  199. package/docs/functions/pendingBlueRewardAmount.html +256 -1
  200. package/docs/functions/setCustomSuiClient.html +251 -5
  201. package/docs/functions/setSuiClient.html +255 -7
  202. package/docs/functions/setSuiNodeUrl.html +249 -5
  203. package/docs/functions/setWeights.html +270 -1
  204. package/docs/functions/withdraw.html +249 -1
  205. package/docs/functions/withdrawAlphaTxb.html +257 -1
  206. package/docs/functions/withdrawTxb.html +260 -1
  207. package/docs/functions/zapDepositTxb.html +300 -1
  208. package/docs/index.html +587 -41
  209. package/docs/interfaces/Coin.html +474 -12
  210. package/docs/interfaces/CoinPair.html +358 -3
  211. package/docs/interfaces/NaviVoloData.html +514 -3
  212. package/docs/interfaces/PoolData.html +579 -8
  213. package/docs/interfaces/PoolWeightDistribution.html +414 -4
  214. package/docs/interfaces/RebalanceHistoryType.html +652 -9
  215. package/docs/modules.html +1430 -198
  216. package/docs/types/AfterTransactionEventNode.html +305 -1
  217. package/docs/types/Allocator.html +321 -1
  218. package/docs/types/AlphaFiDoubleAssetVault.html +258 -1
  219. package/docs/types/AlphaFiMultiVaultBalance.html +219 -1
  220. package/docs/types/AlphaFiSingleAssetVault.html +244 -1
  221. package/docs/types/AlphaFiVault.html +214 -1
  222. package/docs/types/AlphaFiVaultBalance.html +220 -1
  223. package/docs/types/AlphaPoolType.html +383 -1
  224. package/docs/types/AlphaReceipt.html +220 -1
  225. package/docs/types/AlphaReceiptFields.html +421 -1
  226. package/docs/types/AlphaVaultBalance.html +245 -1
  227. package/docs/types/AutoBalancePoolNames.html +226 -1
  228. package/docs/types/AutoCompoundingEventNode.html +230 -1
  229. package/docs/types/BluefinInvestor.html +209 -1
  230. package/docs/types/BluefinPoolType.html +440 -1
  231. package/docs/types/BucketInvestor.html +249 -1
  232. package/docs/types/CetusInvestor.html +240 -1
  233. package/docs/types/CetusPoolType.html +433 -1
  234. package/docs/types/CetusSwapOptions.html +209 -1
  235. package/docs/types/CoinAmounts.html +216 -1
  236. package/docs/types/CoinName.html +293 -1
  237. package/docs/types/CoinType.html +294 -1
  238. package/docs/types/CommonInvestorFields.html +276 -1
  239. package/docs/types/CreatePoolOptions.html +246 -1
  240. package/docs/types/Distributor.html +341 -1
  241. package/docs/types/DoubleAssetMultiVaultBalance.html +236 -1
  242. package/docs/types/DoubleAssetPoolNames.html +297 -1
  243. package/docs/types/DoubleAssetTokenHoldings.html +232 -1
  244. package/docs/types/DoubleAssetVaultBalance.html +229 -1
  245. package/docs/types/EventCategory.html +209 -1
  246. package/docs/types/EventNode.html +229 -1
  247. package/docs/types/GetHoldersParams.html +221 -1
  248. package/docs/types/GetTokenHoldingsParams.html +227 -1
  249. package/docs/types/GetUserTokensFromTransactionsParams.html +233 -1
  250. package/docs/types/GetUserTokensInUsdFromTransactionsParams.html +244 -1
  251. package/docs/types/GetVaultBalanceForActiveUsersParams.html +231 -1
  252. package/docs/types/GetVaultBalanceParams.html +217 -1
  253. package/docs/types/HoldingsObj.html +223 -1
  254. package/docs/types/Icon.html +266 -1
  255. package/docs/types/Investor.html +245 -1
  256. package/docs/types/LiquidityChangeEventNode.html +220 -1
  257. package/docs/types/LiquidityToTokensParams.html +255 -1
  258. package/docs/types/LiquidityToUsdParams.html +267 -1
  259. package/docs/types/LoopingDebt.html +258 -1
  260. package/docs/types/LoopingPoolNames.html +216 -1
  261. package/docs/types/LpBreakdownType.html +238 -1
  262. package/docs/types/MemberPoolDataType.html +276 -1
  263. package/docs/types/MemberType.html +269 -1
  264. package/docs/types/MultiGetVaultBalancesParams.html +229 -1
  265. package/docs/types/NaviInvestor.html +235 -1
  266. package/docs/types/OtherReceiptFields.html +373 -1
  267. package/docs/types/PoolName.html +214 -1
  268. package/docs/types/PoolReceipt.html +253 -1
  269. package/docs/types/PoolType.html +388 -1
  270. package/docs/types/Receipt.html +475 -1
  271. package/docs/types/ReceiptGQL.html +374 -1
  272. package/docs/types/SingleAssetMultiVaultBalance.html +232 -1
  273. package/docs/types/SingleAssetPoolNames.html +244 -1
  274. package/docs/types/SingleAssetTokenHoldings.html +228 -1
  275. package/docs/types/SingleAssetVaultBalance.html +223 -1
  276. package/docs/types/SingleGetVaultBalancesParams.html +224 -1
  277. package/docs/types/StrategyType.html +221 -1
  278. package/docs/types/SuiNetwork.html +213 -1
  279. package/docs/types/SwapOptions.html +248 -1
  280. package/docs/types/TickSpacing.html +212 -1
  281. package/docs/types/TotalWeightType.html +246 -1
  282. package/docs/types/TransactionBlockType.html +358 -1
  283. package/docs/types/UserPoolLiquidity.html +221 -1
  284. package/docs/types/UserPoolTokenHoldings.html +217 -1
  285. package/docs/types/UserUsdHoldings.html +223 -1
  286. package/docs/types/VaultBalance.html +216 -1
  287. package/docs/types/WithdrawV2EventNode.html +208 -1
  288. package/docs/variables/bluefinPoolMap.html +214 -1
  289. package/docs/variables/cetusPoolMap.html +214 -1
  290. package/docs/variables/coinsList.html +220 -1
  291. package/docs/variables/defunctPoolsSet.html +209 -1
  292. package/docs/variables/doubleAssetPoolCoinMap.html +237 -1
  293. package/docs/variables/eventCategories.html +210 -1
  294. package/docs/variables/ignoredWalletsForDailyRevenue.html +218 -1
  295. package/docs/variables/loopingAccountAddresses.html +219 -1
  296. package/docs/variables/loopingPoolCoinMap.html +233 -1
  297. package/docs/variables/naviAssetMap.html +215 -1
  298. package/docs/variables/poolIdPoolNameMap.html +218 -1
  299. package/docs/variables/poolInfo.html +319 -1
  300. package/docs/variables/singleAssetPoolCoinMap.html +229 -1
  301. package/docs/variables/stableCoins.html +207 -1
  302. package/package.json +2 -2
  303. package/prettier.config.js +3 -0
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAEA,uBAAuB;AACvB,MAAM,CAAC,MAAM,aAAa,GAAkB;IAC1C,SAAS,EAAE;QACT,MAAM,EAAE,gBAAgB;QACxB,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,KAAK;KACZ;IACD,UAAU,EAAE;QACV,MAAM,EAAE,iBAAiB;QACzB,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,MAAM;KACb;IACD,WAAW,EAAE;QACX,MAAM,EAAE,kBAAkB;QAC1B,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,OAAO;KACd;IACD,WAAW,EAAE;QACX,MAAM,EAAE,kBAAkB;QAC1B,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,OAAO;KACd;IACD,UAAU,EAAE;QACV,MAAM,EAAE,iBAAiB;QACzB,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,MAAM;KACb;IACD,UAAU,EAAE;QACV,MAAM,EAAE,iBAAiB;QACzB,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,MAAM;KACb;IACD,UAAU,EAAE;QACV,MAAM,EAAE,iBAAiB;QACzB,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,MAAM;KACb;IACD,WAAW,EAAE;QACX,MAAM,EAAE,kBAAkB;QAC1B,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,OAAO;KACd;IACD,YAAY,EAAE;QACZ,MAAM,EAAE,mBAAmB;QAC3B,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,QAAQ;KACf;IACD,SAAS,EAAE;QACT,IAAI,EAAE,KAAK;QACX,OAAO,EACL,oEAAoE;QACtE,MAAM,EAAE,gBAAgB;KACzB;IACD,UAAU,EAAE;QACV,IAAI,EAAE,MAAM;QACZ,OAAO,EACL,oEAAoE;QACtE,MAAM,EAAE,iBAAiB;KAC1B;IACD,SAAS,EAAE;QACT,IAAI,EAAE,KAAK;QACX,OAAO,EACL,oEAAoE;QACtE,MAAM,EAAE,gBAAgB;KACzB;IACD,SAAS,EAAE;QACT,IAAI,EAAE,KAAK;QACX,OAAO,EACL,oEAAoE;QACtE,MAAM,EAAE,gBAAgB;KACzB;IACD,SAAS,EAAE;QACT,IAAI,EAAE,KAAK;QACX,OAAO,EACL,oEAAoE;QACtE,MAAM,EAAE,gBAAgB;KACzB;IACD,UAAU,EAAE;QACV,IAAI,EAAE,MAAM;QACZ,OAAO,EACL,oEAAoE;QACtE,MAAM,EAAE,iBAAiB;KAC1B;IACD,UAAU,EAAE;QACV,IAAI,EAAE,MAAM;QACZ,OAAO,EACL,oEAAoE;QACtE,MAAM,EAAE,iBAAiB;KAC1B;IACD,4CAA4C;IAC5C,WAAW,EAAE;QACX,MAAM,EAAE,kBAAkB;QAC1B,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,OAAO;KACd;IACD,4CAA4C;IAC5C,UAAU,EAAE;QACV,MAAM,EAAE,iBAAiB;QACzB,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,MAAM;KACb;IACD,UAAU,EAAE;QACV,MAAM,EAAE,iBAAiB;QACzB,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,MAAM;KACb;CACF,CAAC","sourcesContent":["import { PythPriceFeed } from \"../common/pyth.js\";\n\n// TODO: add more pairs\nexport const pythPriceFeed: PythPriceFeed = {\n \"SUI/USD\": {\n symbol: \"Crypto.SUI/USD\",\n priceId:\n \"0x23d7315113f5b1d3ba7a83604c44b94d79f4fd69af77f804fc7f920a6dc65744\",\n name: \"SUI\",\n },\n \"VSUI/USD\": {\n symbol: \"Crypto.VSUI/USD\",\n priceId:\n \"0x57ff7100a282e4af0c91154679c5dae2e5dcacb93fd467ea9cb7e58afdcfde27\",\n name: \"VSUI\",\n },\n \"AFSUI/USD\": {\n symbol: \"Crypto.AFSUI/USD\",\n priceId:\n \"0x17cd845b16e874485b2684f8b8d1517d744105dbb904eec30222717f4bc9ee0d\",\n name: \"AFSUI\",\n },\n \"HASUI/USD\": {\n symbol: \"Crypto.HASUI/USD\",\n priceId:\n \"0x6120ffcf96395c70aa77e72dcb900bf9d40dccab228efca59a17b90ce423d5e8\",\n name: \"HASUI\",\n },\n \"USDC/USD\": {\n symbol: \"Crypto.USDC/USD\",\n priceId:\n \"0xeaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a\",\n name: \"USDC\",\n },\n \"USDT/USD\": {\n symbol: \"Crypto.USDT/USD\",\n priceId:\n \"0x2b89b9dc8fdf9f34709a5b106b472f0f39bb6ca9ce04b0fd7f2e971688e2e53b\",\n name: \"USDT\",\n },\n \"NAVX/USD\": {\n symbol: \"Crypto.NAVX/USD\",\n priceId:\n \"0x88250f854c019ef4f88a5c073d52a18bb1c6ac437033f5932cd017d24917ab46\",\n name: \"NAVX\",\n },\n \"CETUS/USD\": {\n symbol: \"Crypto.CETUS/USD\",\n priceId:\n \"0xe5b274b2611143df055d6e7cd8d93fe1961716bcd4dca1cad87a83bc1e78c1ef\",\n name: \"CETUS\",\n },\n \"TURBOS/USD\": {\n symbol: \"Crypto.TURBOS/USD\",\n priceId:\n \"0xf9c2e890443dd995d0baafc08eea3358be1ffb874f93f99c30b3816c460bbac3\",\n name: \"TURBOS\",\n },\n \"SCA/USD\": {\n name: \"SCA\",\n priceId:\n \"0x7e17f0ac105abe9214deb9944c30264f5986bf292869c6bd8e8da3ccd92d79bc\",\n symbol: \"Crypto.SCA/USD\",\n },\n \"WETH/USD\": {\n name: \"WETH\",\n priceId:\n \"0x9d4294bbcd1174d6f2003ec365831e64cc31d9f6f15a2b85399db8d5000960f6\",\n symbol: \"Crypto.WETH/USD\",\n },\n \"APT/USD\": {\n name: \"APT\",\n priceId:\n \"0x03ae4db29ed4ae33d323568895aa00337e658e348b37509f5372ae51f0af00d5\",\n symbol: \"Crypto.APT/USD\",\n },\n \"SOL/USD\": {\n name: \"SOL\",\n priceId:\n \"0xef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d\",\n symbol: \"Crypto.SOL/USD\",\n },\n \"SLP/USD\": {\n name: \"SLP\",\n priceId:\n \"0xfba17701be318087db58d9797d5f1e89dcf5b95773ae2227c8a8eb4cf1d4e554\",\n symbol: \"Crypto.SLP/USD\",\n },\n \"WBTC/USD\": {\n name: \"WBTC\",\n priceId:\n \"0xc9d8b075a5c69303365ae23633d4e085199bf5c520a3b90fed1322a0342ffc33\",\n symbol: \"Crypto.WBTC/USD\",\n },\n \"CELO/USD\": {\n name: \"CELO\",\n priceId:\n \"0x7d669ddcdd23d9ef1fa9a9cc022ba055ec900e91c4cb960f3c20429d4447a411\",\n symbol: \"Crypto.CELO/USD\",\n },\n //TODO --> to change priceId when its listed\n \"ALPHA/USD\": {\n symbol: \"Crypto.ALPHA/USD\",\n priceId:\n \"0x2b89b9dc8fdf9f34709a5b106b472f0f39bb6ca9ce04b0fd7f2e971688e2e53b\",\n name: \"ALPHA\",\n },\n //TODO --> to change priceId when its listed\n \"USDY/USD\": {\n symbol: \"Crypto.USDY/USD\",\n priceId:\n \"0xe393449f6aff8a4b6d3e1165a7c9ebec103685f3b41e60db4277b5b6d10e7326\",\n name: \"USDY\",\n },\n \"BUCK/USD\": {\n symbol: \"Crypto.BUCK/USD\",\n priceId:\n \"0xfdf28a46570252b25fd31cb257973f865afc5ca2f320439e45d95e0394bc7382\",\n name: \"BUCK\",\n },\n};\n"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAEA,uBAAuB;AACvB,MAAM,CAAC,MAAM,aAAa,GAAkB;IAC1C,SAAS,EAAE;QACT,MAAM,EAAE,gBAAgB;QACxB,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,KAAK;KACZ;IACD,UAAU,EAAE;QACV,MAAM,EAAE,iBAAiB;QACzB,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,MAAM;KACb;IACD,WAAW,EAAE;QACX,MAAM,EAAE,kBAAkB;QAC1B,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,OAAO;KACd;IACD,WAAW,EAAE;QACX,MAAM,EAAE,kBAAkB;QAC1B,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,OAAO;KACd;IACD,UAAU,EAAE;QACV,MAAM,EAAE,iBAAiB;QACzB,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,MAAM;KACb;IACD,UAAU,EAAE;QACV,MAAM,EAAE,iBAAiB;QACzB,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,MAAM;KACb;IACD,UAAU,EAAE;QACV,MAAM,EAAE,iBAAiB;QACzB,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,MAAM;KACb;IACD,WAAW,EAAE;QACX,MAAM,EAAE,kBAAkB;QAC1B,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,OAAO;KACd;IACD,YAAY,EAAE;QACZ,MAAM,EAAE,mBAAmB;QAC3B,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,QAAQ;KACf;IACD,SAAS,EAAE;QACT,IAAI,EAAE,KAAK;QACX,OAAO,EACL,oEAAoE;QACtE,MAAM,EAAE,gBAAgB;KACzB;IACD,UAAU,EAAE;QACV,IAAI,EAAE,MAAM;QACZ,OAAO,EACL,oEAAoE;QACtE,MAAM,EAAE,iBAAiB;KAC1B;IACD,SAAS,EAAE;QACT,IAAI,EAAE,KAAK;QACX,OAAO,EACL,oEAAoE;QACtE,MAAM,EAAE,gBAAgB;KACzB;IACD,SAAS,EAAE;QACT,IAAI,EAAE,KAAK;QACX,OAAO,EACL,oEAAoE;QACtE,MAAM,EAAE,gBAAgB;KACzB;IACD,SAAS,EAAE;QACT,IAAI,EAAE,KAAK;QACX,OAAO,EACL,oEAAoE;QACtE,MAAM,EAAE,gBAAgB;KACzB;IACD,UAAU,EAAE;QACV,IAAI,EAAE,MAAM;QACZ,OAAO,EACL,oEAAoE;QACtE,MAAM,EAAE,iBAAiB;KAC1B;IACD,UAAU,EAAE;QACV,IAAI,EAAE,MAAM;QACZ,OAAO,EACL,oEAAoE;QACtE,MAAM,EAAE,iBAAiB;KAC1B;IACD,4CAA4C;IAC5C,WAAW,EAAE;QACX,MAAM,EAAE,kBAAkB;QAC1B,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,OAAO;KACd;IACD,4CAA4C;IAC5C,UAAU,EAAE;QACV,MAAM,EAAE,iBAAiB;QACzB,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,MAAM;KACb;IACD,UAAU,EAAE;QACV,MAAM,EAAE,iBAAiB;QACzB,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,MAAM;KACb;IACD,UAAU,EAAE;QACV,MAAM,EAAE,iBAAiB;QACzB,OAAO,EACL,oEAAoE;QACtE,IAAI,EAAE,MAAM;KACb;CACF,CAAC","sourcesContent":["import { PythPriceFeed } from \"../common/pyth.js\";\n\n// TODO: add more pairs\nexport const pythPriceFeed: PythPriceFeed = {\n \"SUI/USD\": {\n symbol: \"Crypto.SUI/USD\",\n priceId:\n \"0x23d7315113f5b1d3ba7a83604c44b94d79f4fd69af77f804fc7f920a6dc65744\",\n name: \"SUI\",\n },\n \"VSUI/USD\": {\n symbol: \"Crypto.VSUI/USD\",\n priceId:\n \"0x57ff7100a282e4af0c91154679c5dae2e5dcacb93fd467ea9cb7e58afdcfde27\",\n name: \"VSUI\",\n },\n \"AFSUI/USD\": {\n symbol: \"Crypto.AFSUI/USD\",\n priceId:\n \"0x17cd845b16e874485b2684f8b8d1517d744105dbb904eec30222717f4bc9ee0d\",\n name: \"AFSUI\",\n },\n \"HASUI/USD\": {\n symbol: \"Crypto.HASUI/USD\",\n priceId:\n \"0x6120ffcf96395c70aa77e72dcb900bf9d40dccab228efca59a17b90ce423d5e8\",\n name: \"HASUI\",\n },\n \"USDC/USD\": {\n symbol: \"Crypto.USDC/USD\",\n priceId:\n \"0xeaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a\",\n name: \"USDC\",\n },\n \"USDT/USD\": {\n symbol: \"Crypto.USDT/USD\",\n priceId:\n \"0x2b89b9dc8fdf9f34709a5b106b472f0f39bb6ca9ce04b0fd7f2e971688e2e53b\",\n name: \"USDT\",\n },\n \"NAVX/USD\": {\n symbol: \"Crypto.NAVX/USD\",\n priceId:\n \"0x88250f854c019ef4f88a5c073d52a18bb1c6ac437033f5932cd017d24917ab46\",\n name: \"NAVX\",\n },\n \"CETUS/USD\": {\n symbol: \"Crypto.CETUS/USD\",\n priceId:\n \"0xe5b274b2611143df055d6e7cd8d93fe1961716bcd4dca1cad87a83bc1e78c1ef\",\n name: \"CETUS\",\n },\n \"TURBOS/USD\": {\n symbol: \"Crypto.TURBOS/USD\",\n priceId:\n \"0xf9c2e890443dd995d0baafc08eea3358be1ffb874f93f99c30b3816c460bbac3\",\n name: \"TURBOS\",\n },\n \"SCA/USD\": {\n name: \"SCA\",\n priceId:\n \"0x7e17f0ac105abe9214deb9944c30264f5986bf292869c6bd8e8da3ccd92d79bc\",\n symbol: \"Crypto.SCA/USD\",\n },\n \"WETH/USD\": {\n name: \"WETH\",\n priceId:\n \"0x9d4294bbcd1174d6f2003ec365831e64cc31d9f6f15a2b85399db8d5000960f6\",\n symbol: \"Crypto.WETH/USD\",\n },\n \"APT/USD\": {\n name: \"APT\",\n priceId:\n \"0x03ae4db29ed4ae33d323568895aa00337e658e348b37509f5372ae51f0af00d5\",\n symbol: \"Crypto.APT/USD\",\n },\n \"SOL/USD\": {\n name: \"SOL\",\n priceId:\n \"0xef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d\",\n symbol: \"Crypto.SOL/USD\",\n },\n \"SLP/USD\": {\n name: \"SLP\",\n priceId:\n \"0xfba17701be318087db58d9797d5f1e89dcf5b95773ae2227c8a8eb4cf1d4e554\",\n symbol: \"Crypto.SLP/USD\",\n },\n \"WBTC/USD\": {\n name: \"WBTC\",\n priceId:\n \"0xc9d8b075a5c69303365ae23633d4e085199bf5c520a3b90fed1322a0342ffc33\",\n symbol: \"Crypto.WBTC/USD\",\n },\n \"CELO/USD\": {\n name: \"CELO\",\n priceId:\n \"0x7d669ddcdd23d9ef1fa9a9cc022ba055ec900e91c4cb960f3c20429d4447a411\",\n symbol: \"Crypto.CELO/USD\",\n },\n //TODO --> to change priceId when its listed\n \"ALPHA/USD\": {\n symbol: \"Crypto.ALPHA/USD\",\n priceId:\n \"0x2b89b9dc8fdf9f34709a5b106b472f0f39bb6ca9ce04b0fd7f2e971688e2e53b\",\n name: \"ALPHA\",\n },\n //TODO --> to change priceId when its listed\n \"USDY/USD\": {\n symbol: \"Crypto.USDY/USD\",\n priceId:\n \"0xe393449f6aff8a4b6d3e1165a7c9ebec103685f3b41e60db4277b5b6d10e7326\",\n name: \"USDY\",\n },\n \"BUCK/USD\": {\n symbol: \"Crypto.BUCK/USD\",\n priceId:\n \"0xfdf28a46570252b25fd31cb257973f865afc5ca2f320439e45d95e0394bc7382\",\n name: \"BUCK\",\n },\n \"MUSD/USD\": {\n symbol: \"Crypto.USDT/USD\",\n priceId:\n \"0x2b89b9dc8fdf9f34709a5b106b472f0f39bb6ca9ce04b0fd7f2e971688e2e53b\",\n name: \"USDT\",\n },\n};\n"]}
@@ -1,25 +1,26 @@
1
1
  :root {
2
- --light-hl-0: #795E26;
3
- --dark-hl-0: #DCDCAA;
4
- --light-hl-1: #000000;
5
- --dark-hl-1: #D4D4D4;
6
- --light-hl-2: #A31515;
7
- --dark-hl-2: #CE9178;
8
- --light-hl-3: #AF00DB;
9
- --dark-hl-3: #C586C0;
10
- --light-hl-4: #001080;
11
- --dark-hl-4: #9CDCFE;
12
- --light-hl-5: #0000FF;
13
- --dark-hl-5: #569CD6;
14
- --light-hl-6: #0070C1;
15
- --dark-hl-6: #4FC1FF;
16
- --light-hl-7: #267F99;
17
- --dark-hl-7: #4EC9B0;
18
- --light-code-background: #FFFFFF;
19
- --dark-code-background: #1E1E1E;
2
+ --light-hl-0: #795e26;
3
+ --dark-hl-0: #dcdcaa;
4
+ --light-hl-1: #000000;
5
+ --dark-hl-1: #d4d4d4;
6
+ --light-hl-2: #a31515;
7
+ --dark-hl-2: #ce9178;
8
+ --light-hl-3: #af00db;
9
+ --dark-hl-3: #c586c0;
10
+ --light-hl-4: #001080;
11
+ --dark-hl-4: #9cdcfe;
12
+ --light-hl-5: #0000ff;
13
+ --dark-hl-5: #569cd6;
14
+ --light-hl-6: #0070c1;
15
+ --dark-hl-6: #4fc1ff;
16
+ --light-hl-7: #267f99;
17
+ --dark-hl-7: #4ec9b0;
18
+ --light-code-background: #ffffff;
19
+ --dark-code-background: #1e1e1e;
20
20
  }
21
21
 
22
- @media (prefers-color-scheme: light) { :root {
22
+ @media (prefers-color-scheme: light) {
23
+ :root {
23
24
  --hl-0: var(--light-hl-0);
24
25
  --hl-1: var(--light-hl-1);
25
26
  --hl-2: var(--light-hl-2);
@@ -29,9 +30,11 @@
29
30
  --hl-6: var(--light-hl-6);
30
31
  --hl-7: var(--light-hl-7);
31
32
  --code-background: var(--light-code-background);
32
- } }
33
+ }
34
+ }
33
35
 
34
- @media (prefers-color-scheme: dark) { :root {
36
+ @media (prefers-color-scheme: dark) {
37
+ :root {
35
38
  --hl-0: var(--dark-hl-0);
36
39
  --hl-1: var(--dark-hl-1);
37
40
  --hl-2: var(--dark-hl-2);
@@ -41,38 +44,58 @@
41
44
  --hl-6: var(--dark-hl-6);
42
45
  --hl-7: var(--dark-hl-7);
43
46
  --code-background: var(--dark-code-background);
44
- } }
47
+ }
48
+ }
45
49
 
46
- :root[data-theme='light'] {
47
- --hl-0: var(--light-hl-0);
48
- --hl-1: var(--light-hl-1);
49
- --hl-2: var(--light-hl-2);
50
- --hl-3: var(--light-hl-3);
51
- --hl-4: var(--light-hl-4);
52
- --hl-5: var(--light-hl-5);
53
- --hl-6: var(--light-hl-6);
54
- --hl-7: var(--light-hl-7);
55
- --code-background: var(--light-code-background);
50
+ :root[data-theme="light"] {
51
+ --hl-0: var(--light-hl-0);
52
+ --hl-1: var(--light-hl-1);
53
+ --hl-2: var(--light-hl-2);
54
+ --hl-3: var(--light-hl-3);
55
+ --hl-4: var(--light-hl-4);
56
+ --hl-5: var(--light-hl-5);
57
+ --hl-6: var(--light-hl-6);
58
+ --hl-7: var(--light-hl-7);
59
+ --code-background: var(--light-code-background);
56
60
  }
57
61
 
58
- :root[data-theme='dark'] {
59
- --hl-0: var(--dark-hl-0);
60
- --hl-1: var(--dark-hl-1);
61
- --hl-2: var(--dark-hl-2);
62
- --hl-3: var(--dark-hl-3);
63
- --hl-4: var(--dark-hl-4);
64
- --hl-5: var(--dark-hl-5);
65
- --hl-6: var(--dark-hl-6);
66
- --hl-7: var(--dark-hl-7);
67
- --code-background: var(--dark-code-background);
62
+ :root[data-theme="dark"] {
63
+ --hl-0: var(--dark-hl-0);
64
+ --hl-1: var(--dark-hl-1);
65
+ --hl-2: var(--dark-hl-2);
66
+ --hl-3: var(--dark-hl-3);
67
+ --hl-4: var(--dark-hl-4);
68
+ --hl-5: var(--dark-hl-5);
69
+ --hl-6: var(--dark-hl-6);
70
+ --hl-7: var(--dark-hl-7);
71
+ --code-background: var(--dark-code-background);
68
72
  }
69
73
 
70
- .hl-0 { color: var(--hl-0); }
71
- .hl-1 { color: var(--hl-1); }
72
- .hl-2 { color: var(--hl-2); }
73
- .hl-3 { color: var(--hl-3); }
74
- .hl-4 { color: var(--hl-4); }
75
- .hl-5 { color: var(--hl-5); }
76
- .hl-6 { color: var(--hl-6); }
77
- .hl-7 { color: var(--hl-7); }
78
- pre, code { background: var(--code-background); }
74
+ .hl-0 {
75
+ color: var(--hl-0);
76
+ }
77
+ .hl-1 {
78
+ color: var(--hl-1);
79
+ }
80
+ .hl-2 {
81
+ color: var(--hl-2);
82
+ }
83
+ .hl-3 {
84
+ color: var(--hl-3);
85
+ }
86
+ .hl-4 {
87
+ color: var(--hl-4);
88
+ }
89
+ .hl-5 {
90
+ color: var(--hl-5);
91
+ }
92
+ .hl-6 {
93
+ color: var(--hl-6);
94
+ }
95
+ .hl-7 {
96
+ color: var(--hl-7);
97
+ }
98
+ pre,
99
+ code {
100
+ background: var(--code-background);
101
+ }
@@ -1,18 +1,21 @@
1
- (function() {
2
- addIcons();
3
- function addIcons() {
4
- if (document.readyState === "loading") return document.addEventListener("DOMContentLoaded", addIcons);
5
- const svg = document.body.appendChild(document.createElementNS("http://www.w3.org/2000/svg", "svg"));
6
- svg.innerHTML = `<g id="icon-1" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-2" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-4" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">N</text></g><g id="icon-8" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">E</text></g><g id="icon-16" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-32" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">V</text></g><g id="icon-64" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">F</text></g><g id="icon-128" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-256" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">I</text></g><g id="icon-512" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-1024" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-2048" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-method)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-4096" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">F</text></g><g id="icon-8192" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-16384" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-32768" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-65536" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-131072" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-262144" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-524288" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-1048576" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-2097152" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-4194304" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-reference)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">R</text></g><g id="icon-8388608" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="6,5 6,19 18,19, 18,10 13,5"></polygon><line x1="9" y1="9" x2="13" y2="9"></line><line x1="9" y1="12" x2="15" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line></g></g><g id="icon-folder" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="5,5 10,5 12,8 19,8 19,18 5,18"></polygon></g></g><g id="icon-chevronDown" class="tsd-no-select"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-icon-text)"></path></g><g id="icon-chevronSmall" class="tsd-no-select"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-icon-text)"></path></g><g id="icon-checkbox" class="tsd-no-select"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></g><g id="icon-menu" class="tsd-no-select"><rect x="1" y="3" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-icon-text)"></rect></g><g id="icon-search" class="tsd-no-select"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-icon-text)"></path></g><g id="icon-anchor" class="tsd-no-select"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></g>`;
7
- svg.style.display = "none";
8
- if (location.protocol === "file:") updateUseElements();
9
- }
1
+ (function () {
2
+ addIcons();
3
+ function addIcons() {
4
+ if (document.readyState === "loading")
5
+ return document.addEventListener("DOMContentLoaded", addIcons);
6
+ const svg = document.body.appendChild(
7
+ document.createElementNS("http://www.w3.org/2000/svg", "svg"),
8
+ );
9
+ svg.innerHTML = `<g id="icon-1" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-2" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-4" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">N</text></g><g id="icon-8" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">E</text></g><g id="icon-16" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-32" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">V</text></g><g id="icon-64" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">F</text></g><g id="icon-128" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-256" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">I</text></g><g id="icon-512" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-1024" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-2048" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-method)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-4096" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">F</text></g><g id="icon-8192" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-16384" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-32768" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-65536" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-131072" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-262144" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-524288" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-1048576" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-2097152" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-4194304" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-reference)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">R</text></g><g id="icon-8388608" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="6,5 6,19 18,19, 18,10 13,5"></polygon><line x1="9" y1="9" x2="13" y2="9"></line><line x1="9" y1="12" x2="15" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line></g></g><g id="icon-folder" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="5,5 10,5 12,8 19,8 19,18 5,18"></polygon></g></g><g id="icon-chevronDown" class="tsd-no-select"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-icon-text)"></path></g><g id="icon-chevronSmall" class="tsd-no-select"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-icon-text)"></path></g><g id="icon-checkbox" class="tsd-no-select"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></g><g id="icon-menu" class="tsd-no-select"><rect x="1" y="3" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-icon-text)"></rect></g><g id="icon-search" class="tsd-no-select"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-icon-text)"></path></g><g id="icon-anchor" class="tsd-no-select"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></g>`;
10
+ svg.style.display = "none";
11
+ if (location.protocol === "file:") updateUseElements();
12
+ }
10
13
 
11
- function updateUseElements() {
12
- document.querySelectorAll("use").forEach(el => {
13
- if (el.getAttribute("href").includes("#icon-")) {
14
- el.setAttribute("href", el.getAttribute("href").replace(/.*#/, "#"));
15
- }
16
- });
17
- }
18
- })()
14
+ function updateUseElements() {
15
+ document.querySelectorAll("use").forEach((el) => {
16
+ if (el.getAttribute("href").includes("#icon-")) {
17
+ el.setAttribute("href", el.getAttribute("href").replace(/.*#/, "#"));
18
+ }
19
+ });
20
+ }
21
+ })();