{"version":3,"sources":["jsdelivr-header.js","/npm/AsyncStorage@0.1.5/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCNO,0BAA2B,kCAE3B,MAAM,qBAAqB,sBAC9B,cAAO,CAAQ,EAAK,EAAO,GACvB,OAAO,IAAI,SAAQ,SAAU,GACzB,aAAa,iBAAiB,KAAS,EACpC,GAAU,IACb,GACJ,GACJ,CAEA,cAAO,CAAQ,EAAK,GAChB,OAAO,IAAI,SAAQ,SAAU,GACzB,IAAI,EAAQ,aAAa,iBAAiB,KAEvC,GAAU,EADT,UACyB,GAC7B,EAAQ,EACZ,GACJ","file":"/npm/AsyncStorage@0.1.5/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/AsyncStorage@0.1.5/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","import AsyncStorageInterface from './interface/AsyncStorage';\n\nexport class AsyncStorage extends AsyncStorageInterface{\n    static setItem(key, value, callback){\n        return new Promise(function (resolve) {\n            localStorage[`@AsyncStorage:${key}`] = value;\n            if(callback) callback();\n            resolve();\n        })\n    } \n\n    static getItem(key, callback){\n        return new Promise(function (resolve) {\n            let value = localStorage[`@AsyncStorage:${key}`];\n            let error;\n            if(callback) callback(error, value);\n            resolve(value);\n        });\n    }\n}"]}