1import{a as l}from"/build/_shared/chunk-H6S7FWVP.js";import{d as y}from"/build/_shared/chunk-T36URGAI.js";var d=y(l());function i(o,t){if(typeof document=="undefined")return[t,e=>e];let[n,s]=(0,d.useState)(()=>{try{let e=window.localStorage.getItem(o);if(!e)return window.localStorage.setItem(o,JSON.stringify(t)),t;let r=JSON.parse(e);return typeof r==typeof t&&Array.isArray(r)===Array.isArray(t)?r:t}catch(e){return console.warn(e),t}});function c(e){try{let r=e instanceof Function?e(n):e;s(r),window.localStorage.setItem(o,JSON.stringify(r))}catch(r){console.warn(r)}}return[n,c]}var p=13,a=()=>{let[o,t]=i("recently-viewed",[]);return{addRecentlyViewed:s=>{let c=s.key;c&&t([c,...o.filter(e=>!!e&&e!==c)].splice(0,p))},localRecentlyViewed:o}};export{i as a,a as b};
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.