/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/devicebox@3.3.3/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
import Ajax from"./lib/ajax.js";import mock from"./lib/mock.js";import browser from"./lib/browser.js";import Wajax from"./lib/wajax.js";import DEvents from"./lib/event.js";import Touch from"./lib/touch.js";export default{mockJson:null,apiJson:{},before(){},after(){},install(o,t){const e=Ajax(this);if(o.prototype.$browser=browser,this.mockJson)mock(this),o.prototype.$wajax=e.send;else{const t=Wajax(this);o.prototype.$wajax=t.send}o.prototype.$ajax=e.send,o.prototype.$http=e.axios,o.prototype.$event=DEvents.event(),o.prototype.$clear=function(o){o?localstorage.removeItem("ajax_cache_"+o):localStorage.clear()},o.prototype.$touch=Touch},api(o){this.apiJson=o},mock(o){this.mockJson=o},browser(o){browser.use(o)}};
//# sourceMappingURL=/sm/7b836493a479f0097f0baf6c3ca954ba44655e9bc287affd418ede17a6bb14ee.map