(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[8359],{408359(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{R:()=>l,t:()=>i});var t=__webpack_require__(361938);var e=__webpack_require__(142282);var n=__webpack_require__(662067);let a=new Map;function i(t){let{chain:n}=(0,e.Ts)(t);return n.namespace===e.wV.Eip155?t.toLowerCase():t}function r(t){return typeof t!=="object"||t===null?!1:(0,"assetId"in t&&typeof t.assetId=="string"&&"name"in t&&typeof t.name=="string"&&"symbol"in t&&typeof t.symbol=="string"&&"decimals"in t&&typeof t.decimals=="number")}function s(t){let e=new Map;return t.forEach(t=>{let n=i(t);e.set(n,n)}),[...e.values()].sort((t,e)=>i(t).localeCompare(i(e)))}async function l(e){let l=s(e);if(l.length===0)return[];let u=(0,n.et)("fetchTokenAssets",{assetIds:l.map(i),includeTokenSecurityData:!0});let o=a.get(u);if(o!==undefined)return await o;let c=(async()=>{let e=await (0,n.ig)(u);if(Array.isArray(e)&&e.every(r))return e;try{let e=await (0,t.DL)(l,{includeTokenSecurityData:!0});return e.length>0&&await (0,n.Wp)(e,u),e}catch{return[]}})().finally(()=>{a.delete(u)});return a.set(u,c),await c}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()}}]);