function r(t){try{sessionStorage.removeItem(t)}catch{}}function c(t,e=5e3){try{const n=sessionStorage.getItem(t);if(!n)return null;const{data:s,timestamp:a}=JSON.parse(n);return Date.now()-a>e?null:s}catch{return null}}function o(t,e){try{sessionStorage.setItem(t,JSON.stringify({data:e,timestamp:Date.now()}))}catch{}}export{r as c,c as g,o as s};
