text: !function(e){var t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=0)}([function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var a=function(e){return"tesuto-storage:"+e},i=(t.Local={get:function(e){if(!e)throw new Error("We need a key to look up data from Local Storage");var t=localStorage.getItem(a(e));return!!t&&JSON.parse(t).data},set:function(e,t){if(!e)throw new Error("We need a key to set data to Local Storage");var o={timestamp:Date.now(),data:t};return localStorage.setItem(a(e),JSON.stringify(o))},remove:function(e){if(!e)throw new Error("We need a key to look up data from Local Storage");return localStorage.removeItem(a(e))}},t.Session={get:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)throw new Error("We need a key to look up data from Session Storage");var o=sessionStorage.getItem(a(e)),r=!!o&&JSON.parse(o);return!!r&&(t?r:r.data)},set:function(e,t){if(!e)throw new Error("We need a key to set data to Session Storage");if("object"!==(void 0===t?"undefined":n(t))&&"string"!=typeof t)throw new Error("We can only store JS objects or stings to Session Storage. '"+(void 0===t?"undefined":n(t))+"' was passed in.");var o='{\n      "data": '+("object"===(void 0===t?"undefined":n(t))?JSON.stringify(t):t)+',\n      "meta": {\n        "timestamp": '+Date.now()+"\n      }\n    }";return sessionStorage.setItem(a(e),o)},remove:function(e){if(!e)throw new Error("We need a key to look up data from Local Storage");return sessionStorage.removeItem(a(e))}},function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store={}}return r(e,[{key:"set",value:function(e,t,o){var r=void 0;if(!e)throw new Error("We need a key to look up data from the Cookies");if(!t)throw new Error("We need a value to store in the Cookie");o?r=new Date(o):(r=new Date).setTime(r.getTime()+5184e6);var n=e+"="+t+"; expires="+r.toUTCString()+"; path=/";document.cookie=n,this.store[e]&&delete this.store[e]}},{key:"get",value:function(e){if(this.store[e])return this.store[e];for(var t=e+"=",o=document.cookie.split(";"),r=0;r<o.length;r++){for(var n=o[r];" "==n.charAt(0);)n=n.substring(1,n.length);if(0==n.indexOf(t))return this.store[e]=n.substring(t.length,n.length),this.store[e]}return null}},{key:"remove",value:function(e){document.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;",delete this.store[e]}}]),e}()),u=t.Cookie=new i;t.PurgeStorage=function(){sessionStorage.clear(),localStorage.clear(),u.remove("authToken")}}]);
  //# sourceMappingURL=store.min.js.map