1import{a6 as h,bn as _,bo as v,Y as y,J as u}from"./B2ZqSKZl.js";function b(){const{url:o}=h(),s=_("metrics-cache"),{data:r,refresh:a,pending:d,error:c}=v("metrics",()=>$fetch(`${o}/.netlify/functions/metrics`));y(r,e=>{e!=null&&(s.value=e)},{immediate:!0});function f(e){return e.split(".").reduce((t,i)=>{if(t!=null){if(Array.isArray(t)){const n=Number(i);return Number.isInteger(n)?t[n]:void 0}if(typeof t=="object")return t[i]}},r.value??s.value)}function l(e){return!!e&&typeof e=="object"&&u(e,["chain","asset_tvl_usd_display"])}function p(e){return!!e&&typeof e=="object"&&u(e,["pool","chain","asset","pool_depth_usd_display","rune_depth","rune_depth_usd_display"])}return{resolveByPath:f,isValidChain:l,isValidPool:p,data:r,refresh:a,pending:d,error:c}}export{b as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.