"use strict";const i=require("js-cookie"),o=require("./base-iCmnU-fv.cjs");class r{static getItem(t){let e=i.get(t);return o.CommonBase.isString(e)&&e.indexOf('\\"')>-1&&(e=e.replace(/\\"/gi,'"')),o.CommonBase.isJson(e)&&(e=JSON.parse(e)),e}static setItem(t,e){let s;return!o.CommonBase.isEmpty(e)&&o.CommonBase.isJson(e)&&o.CommonBase.isObject(e)&&(s=JSON.stringify(e)),i.set(t,s||e)}static removeItem(t){i.remove(t)}static removeList(t){o.CommonBase.isEmpty(t)||t.forEach(e=>{this.removeItem(e)})}static clearAll(){const t=document.cookie.split(";");for(let e=0;e<t.length;e++){const s=t[e],m=s.indexOf("="),n=m>-1?s.substring(0,m):s;this.removeItem(n)}}}exports.Cookie=r;
//# sourceMappingURL=Tools_cookie-CCTgXZb7.cjs.map
