const n=typeof chrome<"u"&&chrome.storage?.local;async function c(e){if(n)return(await chrome.storage.local.get(e))[e]??null;try{const t=localStorage.getItem(e);return t?JSON.parse(t):null}catch{return null}}async function s(e,t){if(n){await chrome.storage.local.set({[e]:t});return}try{localStorage.setItem(e,JSON.stringify(t))}catch{}}function l(e,t){if(n){const a=(o,r)=>{r==="local"&&e in o&&t(o[e].newValue)};chrome.storage.onChanged.addListener(a)}}const i="lvonce-theme",g="lvonce-search-recent",u="lvonce-default-engine";export{u as D,g as R,i as T,c as g,l as o,s};
