{"version":3,"sources":["jsdelivr-header.js","/npm/@jupyterlite/xeus-python-kernel@1.0.0/lib/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCHS,0BAA6B,6BAC7B,6BAAgC,+BAChC,iBAAoB,6BACpB,oBAAuB,6BACzB,WAAY,sEACZ,WAAY,+DACnB,MAAM,cAAgB,CAClB,GAAI,mDACJ,WAAW,EACX,SAAU,CAAC,cACX,SAAU,CAAC,sBAAuB,0BAClC,SAAU,CAAC,EAAK,EAAa,EAAe,KACxC,EAAY,SAAS,CACjB,KAAM,CACF,KAAM,cACN,aAAc,mBACd,SAAU,SACV,KAAM,GACN,UAAW,CACP,aAAc,OACd,aAAc,SAGtB,OAAQ,MAAO,IACX,MAAM,MAAiB,aAAqD,EAAS,EAAc,YAAa,aAA2D,EAAS,EAAiB,UAOrM,OANI,EACA,QAAQ,KAAK,6DAGb,QAAQ,KAAK,iEAEV,IAAI,gBAAgB,IACpB,EACH,cACF,GAER,GAGJ,QAAU,CAAC,8BACF","file":"/npm/@jupyterlite/xeus-python-kernel@1.0.0/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/@jupyterlite/xeus-python-kernel@1.0.0/lib/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","// Copyright (c) Thorsten Beier\n// Copyright (c) JupyterLite Contributors\n// Distributed under the terms of the Modified BSD License.\nimport { IServiceWorkerManager } from '@jupyterlite/server';\nimport { IBroadcastChannelWrapper } from '@jupyterlite/contents';\nimport { IKernelSpecs } from '@jupyterlite/kernel';\nimport { WebWorkerKernel } from './web_worker_kernel';\nimport logo32 from '!!file-loader?context=.!../style/logos/python-logo-32x32.png';\nimport logo64 from '!!file-loader?context=.!../style/logos/python-logo-64x64.png';\nconst server_kernel = {\n    id: '@jupyterlite/xeus-python-kernel-extension:kernel',\n    autoStart: true,\n    requires: [IKernelSpecs],\n    optional: [IServiceWorkerManager, IBroadcastChannelWrapper],\n    activate: (app, kernelspecs, serviceWorker, broadcastChannel) => {\n        kernelspecs.register({\n            spec: {\n                name: 'xeus-python',\n                display_name: 'Python (XPython)',\n                language: 'python',\n                argv: [],\n                resources: {\n                    'logo-32x32': logo32,\n                    'logo-64x64': logo64\n                }\n            },\n            create: async (options) => {\n                const mountDrive = !!((serviceWorker === null || serviceWorker === void 0 ? void 0 : serviceWorker.enabled) && (broadcastChannel === null || broadcastChannel === void 0 ? void 0 : broadcastChannel.enabled));\n                if (mountDrive) {\n                    console.info('xeus-python contents will be synced with Jupyter Contents');\n                }\n                else {\n                    console.warn('xeus-python contents will NOT be synced with Jupyter Contents');\n                }\n                return new WebWorkerKernel({\n                    ...options,\n                    mountDrive\n                });\n            }\n        });\n    }\n};\nconst plugins = [server_kernel];\nexport default plugins;\n"]}