1import{ad as i,aw as g,b as f,f as y,r as c}from"./CjBIF-Iw.js";function d(r,e=!0){return i("accounts","/categories",{query:{basketIdent:r,includePackages:e?1:0}})}const S=g("category",()=>{const r=f();y();const e=c([]),s=c(0),l=10*60*1e3;let a=null;return{categories:e,fetchCategories:async(u=!1)=>{const n=Date.now();return!u&&e.value.length>0&&n-s.value<l?e.value:a||(a=(async()=>{try{const t=await d(r.basketId,!0);return e.value=t,s.value=n,t}finally{a=null}})(),a)},findPackageBySlug:(u,n)=>{if(e.value.length===0)return null;const t=e.value.find(o=>o.slug===u);return!t||!t.packages?null:t.packages.find(o=>o.slug===n)||null}}});export{S 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.