"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}function safeGetStorageJSON(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var r=wx.getStorageSync(t);if(!r)return e;if("string"==typeof r)try{var o=JSON.parse(r);return o&&"object"===_typeof(o)?o:e}catch(r){try{wx.removeStorageSync(t)}catch(t){}return e}return r&&"object"===_typeof(r)?r:e}catch(t){return e}}function safeSetStorageJSON(t,e){try{return wx.setStorageSync(t,JSON.stringify(e||{})),!0}catch(t){return!1}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.safeGetStorageJSON=safeGetStorageJSON,exports.safeSetStorageJSON=safeSetStorageJSON;