1import{B as g,V as p}from"#entry";import{q as f}from"./BXKBaJyj.js";import{u as d}from"./Bg8QjOew.js";const h={"E-commerce":"var(--color-blue)",Games:"var(--color-purple)",Infrastructure:"var(--color-red)",Insights:"var(--color-green)",Miner:"var(--color-neutral)",Wallets:"var(--color-orange)",Bots:"var(--color-gold)",Faucet:"#FA7268",Promotion:"#795548"},c=["Nimiq Wallet","Nimiq Pay App","Crypto Map"],m=["Cryptopayment.link","Nimiq Game Store","Trust Wallet","Twini","Nimiq Tip Bot","Nimiq Shop","Pixels","Nimiq FM","Nimiq Gift Cards","Nimiq DOOM","NimWorld","Nimiq 2048","Multisig Wallet","Nimtris","NIM Donations","Staking Calculator","Nimiq Sunset Cyberspace"],v=["Insights","E-commerce","Games","Faucet","Promotion","Miner","Wallets","Infrastructure","Bots"];function y(t){const o=v.includes(t.type)?t.type:"Infrastructure";return{...t,type:o,developer:t.developer||"@nimiq",isHighlighted:c.includes(t.name),color:h[o]}}async function w(){const{data:t}=await g("all-apps",async()=>{const o=await f("allApps").first();if(!o?.apps?.length)throw new Error("Failed to fetch apps data. Build cannot continue without apps.");const n=o.apps.map(y),l=n.filter(e=>e.isHighlighted),a=n.filter(e=>!e.isHighlighted);l.sort((e,i)=>c.indexOf(e.name)-c.indexOf(i.name)),a.sort((e,i)=>{const r=m.indexOf(e.name),u=m.indexOf(i.name);return(r===-1?1/0:r)-(u===-1?1/0:u)});const s=[...l,...a];return{apps:s,spotlightApps:l,communityApps:s.filter(e=>e.developer!=="@nimiq"),officialApps:s.filter(e=>e.developer==="@nimiq")}});return t.value}function x(t){const o=d("made-by","anyone"),n=p(()=>t.value?o.value==="official"?t.value.filter(e=>e.developer==="@nimiq"):o.value==="community"?t.value.filter(e=>e.developer!=="@nimiq"):t.value:[]),l=p(()=>{const e=n.value.filter(r=>r.isHighlighted).length,i=n.value.filter(r=>!r.isHighlighted).length;return i>=e*2?"zigzag":i>=e?"pair":"dense"}),a=p(()=>{const e=n.value.filter(r=>r.isHighlighted),i=n.value.filter(r=>!r.isHighlighted);return l.value==="dense"?[...i,...e]:[...e,...i]});function s(e){if(!e.isHighlighted)return;const i=c.indexOf(e.name),r=i%2===1?"spotlight-right":"spotlight-left",u=l.value==="zigzag"?` spotlight-row-${i}`:"";return{class:`spotlight-app ${r}${u}`}}return{madeBy:o,filteredApps:a,getSpotlightPosition:s}}export{x as a,w 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.