"use strict";const r=require("./base-iCmnU-fv.cjs");class i{static _guard(e,t){try{return e()}catch{return t}}static getItem(e){return this._guard(()=>{const t=window.localStorage.getItem(e);if(!r.CommonBase.isString(t))return t;try{return JSON.parse(t)}catch{return t}},null)}static setItem(e,t){return this._guard(()=>{let o;return r.CommonBase.isJson(t)&&r.CommonBase.isObject(t)&&(o=JSON.stringify(t)),window.localStorage.setItem(e,o||t)},void 0)}static removeItem(e){this._guard(()=>{window.localStorage.removeItem(e)},void 0)}static removeList(e){this._guard(()=>{r.CommonBase.isEmpty(e)||e.forEach(t=>{window.localStorage.removeItem(t)})},void 0)}static clearAll(){this._guard(()=>{window.localStorage.clear()},void 0)}}exports.LocalStorage=i;
//# sourceMappingURL=Tools_localStorage-Cbecy4gj.cjs.map
