{"version":3,"sources":["jsdelivr-header.js","/npm/@decky/api@1.1.3/dist/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCNO,cAAe,wBACb,KAAK,UACd,MAAM,SAAW,UACX,YAAc,EACpB,IAAK,UAAU,KACX,MAAM,IAAI,MAAM,iDAEpB,MAAM,sBAAwB,OAAO,4EACrC,IAAK,sBACD,MAAM,IAAI,MAAM,iIAEpB,IAAI,IACJ,IACI,IAAM,sBAAsB,QAVZ,EAUiC,SAAS,KAC9D,CACA,MACI,IAAM,sBAAsB,QAAQ,EAAG,SAAS,MAChD,QAAQ,KAAK,mHACjB,CAfoB,GAgBhB,IAAI,UACJ,QAAQ,KAAK,qFAAkG,IAAI,gDAEhH,MAAM,KAAO,IAAI,YACjB,MAAM,SAAW,IAAI,gBACrB,MAAM,iBAAmB,IAAI,wBAC7B,MAAM,oBAAsB,IAAI,2BAChC,MAAM,WAAa,IAAI,kBACvB,MAAM,QAAU,IAAI,eACpB,MAAM,eAAiB,IAAI,sBAC3B,MAAM,aAAe,IAAI,oBACzB,MAAM,iBAAmB,IAAI,wBAC7B,MAAM,iBAAmB,IAAI,wBAC7B,MAAM,YAAc,IAAI,mBACxB,MAAM,uBAAyB,IAAI,8BACnC,MAAM,sBAAwB,IAAI,6BAClC,MAAM,aAAgB,GAClB,IAAI,IACA,KAAM","file":"/npm/@decky/api@1.1.3/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@decky/api@1.1.3/dist/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 _manifest from '@decky/manifest';\nexport * from \"./types\";\nconst manifest = _manifest;\nconst API_VERSION = 2;\nif (!manifest?.name) {\n    throw new Error('[@decky/api]: Failed to find plugin manifest.');\n}\nconst internalAPIConnection = window.__DECKY_SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_deckyLoaderAPIInit;\nif (!internalAPIConnection) {\n    throw new Error('[@decky/api]: Failed to connect to the loader as as the loader API was not initialized. This is likely a bug in Decky Loader.');\n}\nlet api;\ntry {\n    api = internalAPIConnection.connect(API_VERSION, manifest.name);\n}\ncatch {\n    api = internalAPIConnection.connect(1, manifest.name);\n    console.warn(`[@decky/api] Requested API version ${API_VERSION} but the running loader only supports version 1. Some features may not work.`);\n}\nif (api._version != API_VERSION) {\n    console.warn(`[@decky/api] Requested API version ${API_VERSION} but the running loader only supports version ${api._version}. Some features may not work.`);\n}\nexport const call = api.call;\nexport const callable = api.callable;\nexport const addEventListener = api.addEventListener;\nexport const removeEventListener = api.removeEventListener;\nexport const routerHook = api.routerHook;\nexport const toaster = api.toaster;\nexport const openFilePicker = api.openFilePicker;\nexport const executeInTab = api.executeInTab;\nexport const injectCssIntoTab = api.injectCssIntoTab;\nexport const removeCssFromTab = api.removeCssFromTab;\nexport const fetchNoCors = api.fetchNoCors;\nexport const getExternalResourceURL = api.getExternalResourceURL;\nexport const useQuickAccessVisible = api.useQuickAccessVisible;\nexport const definePlugin = (fn) => {\n    return (...args) => {\n        return fn(...args);\n    };\n};\n"]}