@basthon/browser-bundle 0.63.0 → 0.64.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{0.63.0 → 0.64.0}/python3/basthon.tar +0 -0
- package/lib/{0.63.0 → 0.64.0}/python3/modules/IPython-0.0.1-py3-none-any.whl +0 -0
- package/lib/{0.63.0/python3-old → 0.64.0/python3}/modules/graphviz-0.0.1-py3-none-any.whl +0 -0
- package/lib/{0.63.0/python3-old → 0.64.0/python3}/modules/p5-0.0.1-py3-none-any.whl +0 -0
- package/lib/{0.63.0/python3-old → 0.64.0/python3}/modules/proj4py-0.0.1-py3-none-any.whl +0 -0
- package/lib/{0.63.0/python3-old → 0.64.0/python3}/modules/rcviz-0.0.1-py3-none-any.whl +0 -0
- package/lib/{0.63.0 → 0.64.0}/python3/modules/requests-0.0.1-py3-none-any.whl +0 -0
- package/lib/{0.63.0 → 0.64.0}/python3/modules/turtle-0.0.1-py3-none-any.whl +0 -0
- package/lib/{0.63.0/python3-old → 0.64.0/python3}/modules/tutor-0.0.1-py3-none-any.whl +0 -0
- package/lib/{0.63.0 → 0.64.0}/python3/repodata.json +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.js.map +1 -1
- package/lib/kernel-base_lib_kernel_js-node_modules_babel_runtime_helpers_esm_get_js.js +1 -1
- package/lib/kernel-base_lib_kernel_js-node_modules_babel_runtime_helpers_esm_get_js.js.map +1 -1
- package/lib/kernel-python3_lib_index_js.js +1 -1
- package/lib/kernel-python3_lib_index_js.js.map +1 -1
- package/package.json +3 -3
- package/lib/0.63.0/python3/modules/extern/pytutor-main.min.css +0 -35
- package/lib/0.63.0/python3/modules/extern/pytutor-main.min.js +0 -2
- package/lib/0.63.0/python3/modules/extern/pytutor-main.min.js.LICENSE.txt +0 -31
- package/lib/0.63.0/python3/modules/extern/pytutor-main.min.js.map +0 -1
- package/lib/0.63.0/python3/modules/graphviz-0.0.1-py3-none-any.whl +0 -0
- package/lib/0.63.0/python3/modules/p5-0.0.1-py3-none-any.whl +0 -0
- package/lib/0.63.0/python3/modules/proj4py-0.0.1-py3-none-any.whl +0 -0
- package/lib/0.63.0/python3/modules/rcviz-0.0.1-py3-none-any.whl +0 -0
- package/lib/0.63.0/python3/modules/tutor-0.0.1-py3-none-any.whl +0 -0
- package/lib/0.63.0/python3-old/basthon.data +0 -0
- package/lib/0.63.0/python3-old/basthon.js +0 -1
- package/lib/0.63.0/python3-old/modules/IPython-0.0.1-py3-none-any.whl +0 -0
- package/lib/0.63.0/python3-old/modules/ipythonblocks-0.0.1-py3-none-any.whl +0 -0
- package/lib/0.63.0/python3-old/modules/ivp-0.0.1-py3-none-any.whl +0 -0
- package/lib/0.63.0/python3-old/modules/lolviz-0.0.1-py3-none-any.whl +0 -0
- package/lib/0.63.0/python3-old/modules/requests-0.0.1-py3-none-any.whl +0 -0
- package/lib/0.63.0/python3-old/modules/turtle-0.0.1-py3-none-any.whl +0 -0
- package/lib/kernel-python3-old_lib_index_js.js +0 -2
- package/lib/kernel-python3-old_lib_index_js.js.map +0 -1
- /package/lib/{0.63.0/python3-old → 0.64.0/python3}/modules/extern/pytutor-main.min.css +0 -0
- /package/lib/{0.63.0/python3-old → 0.64.0/python3}/modules/extern/pytutor-main.min.js +0 -0
- /package/lib/{0.63.0/python3-old → 0.64.0/python3}/modules/extern/pytutor-main.min.js.LICENSE.txt +0 -0
- /package/lib/{0.63.0/python3-old → 0.64.0/python3}/modules/extern/pytutor-main.min.js.map +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kernel-base_lib_kernel_js-node_modules_babel_runtime_helpers_esm_get_js.js","mappings":"2hCAAA,IAGMA,EAAmB,SAAAC,GACrB,SAAAD,EAAYE,GAAU,IAAAC,E,MAEgB,OAFhBC,EAAAA,EAAAA,GAAA,KAAAJ,G,EAClB,K,EAAAA,E,EAAA,aAAAK,OAAkBH,EAAQ,sB,cAA1BC,G,8EACKG,KAAO,sBAAs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IuH,EAAG8B,EACX,CACA,SAASA,IACP,OEZN,SAAoB9B,EAAGJ,EAAGG,GACxB,GAAI,IAA4B,OAAOQ,QAAQoB,UAAUrO,MAAM,KAAMC,WACrE,IAAIkN,EAAI,CAAC,MACTA,EAAEsB,KAAKzO,MAAMmN,EAAGb,GAChB,IAAIY,EAAI,IAAKR,EAAEnG,KAAKvG,MAAM0M,EAAGS,IAC7B,OAAOV,IAAK,EAAAiB,EAAA,GAAeR,EAAGT,EAAEoB,WAAYX,CAC9C,CFMa,CAAUR,EAAGzM,WAAW,EAAAqN,EAAA,GAAe5J,MAAMqK,YACtD,CACA,OAAOS,EAAQX,UAAYlB,OAAOmB,OAAOpB,EAAEmB,UAAW,CACpDE,YAAa,CACXpJ,MAAO6J,EACP3B,YAAY,EACZE,UAAU,EACVD,cAAc,MAEd,EAAAY,EAAA,GAAec,EAAS9B,EAC9B,EAAG9O,EAAiB8O,EACtB,C","sources":["webpack://@basthon/browser-bundle/../kernel-base/lib/commons.js","webpack://@basthon/browser-bundle/../kernel-base/lib/kernel.js","webpack://@basthon/browser-bundle/../kernel-base/lib/version.js","webpack://@basthon/browser-bundle/../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","webpack://@basthon/browser-bundle/../../node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack://@basthon/browser-bundle/../../node_modules/@babel/runtime/helpers/esm/get.js","webpack://@basthon/browser-bundle/../../node_modules/@babel/runtime/helpers/esm/superPropBase.js","webpack://@basthon/browser-bundle/../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","webpack://@basthon/browser-bundle/../../node_modules/@babel/runtime/helpers/esm/inherits.js","webpack://@basthon/browser-bundle/../../node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js","webpack://@basthon/browser-bundle/../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://@basthon/browser-bundle/../../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js","webpack://@basthon/browser-bundle/../../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js","webpack://@basthon/browser-bundle/../../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js","webpack://@basthon/browser-bundle/../../node_modules/@babel/runtime/helpers/esm/construct.js"],"sourcesContent":["/**\n * An error thrown by not implemented API functions.\n */\nclass NotImplementedError extends Error {\n constructor(funcName) {\n super(`Function ${funcName} not implemented!`);\n this.name = \"NotImplementedError\";\n }\n}\n/* fetch from local FS */\nconst fetchFromLocalFS = async (localfsScheme, url) => {\n const toDataURL = async (content) => {\n return await new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.onloadend = () => {\n resolve(reader.result);\n };\n reader.onerror = reject;\n reader.readAsDataURL(new Blob([content]));\n });\n };\n const prefix = localfsScheme;\n const path = url.slice(prefix.length);\n let content = null;\n const options = {\n status: 200,\n statusText: \"OK\",\n headers: new Headers(),\n };\n try {\n //@ts-ignore\n content = await self.basthon.getFile(path);\n const dataURL = await toDataURL(content);\n const mime = dataURL.substring(dataURL.indexOf(\":\") + 1, dataURL.indexOf(\";\"));\n content = content.buffer;\n options.headers.append(\"Content-Type\", mime);\n options.headers.append(\"Content-Length\", content.byteLength);\n }\n catch (e) {\n options.status = 404;\n options.statusText = \"Not Found\";\n }\n return new Response(content, options);\n};\n/**\n * Get the origin of an url.\n */\nconst origin = (url) => new URL(url).origin;\n/**\n * Get the parent path of an url.\n */\nconst parent = (url) => {\n const abs = new URL(url).href;\n return abs.substring(0, abs.lastIndexOf(\"/\"));\n};\n/**\n * we mock the fetch function to:\n * - redirect queries to local FS\n * - bypass the worker's opaque origin\n */\nconst mockFetch = (legacy) => {\n // already mocked?\n if (self.fetch.name === \"mockedFetch\")\n return;\n const trueFetch = self.fetch;\n async function mockedFetch(request, init) {\n if (!legacy && (self.importScripts == null || self._assetsURL == null))\n return Response.error();\n // force all params to init object\n if (request instanceof Request)\n init = { ...request, ...init };\n // ensure credentials are not sent\n init = { ...init, ...{ credentials: \"omit\" } };\n const url = request.url ?? request.toString();\n const localfsScheme = \"filesystem:/\";\n try {\n // requests towards localfs\n if (url.startsWith(localfsScheme)) {\n return await fetchFromLocalFS(localfsScheme, url);\n }\n else if (!legacy && origin(url) === origin(self._assetsURL)) {\n // requests towards same origin\n // only url under the assets folder are proxyied\n if (parent(url).startsWith(self._assetsURL)) {\n const proxy = self._remoteProxy;\n const { body, options } = await proxy.fetch(url, init);\n return new Response(body, options);\n }\n throw new Error(\"Ressource is outside the proxy' scope\");\n }\n return await trueFetch(url, init);\n }\n catch (e) {\n console.error(`security proxy: request to ${url} throw error: ${e.toString()}`);\n return Response.error();\n }\n }\n self.fetch = mockedFetch;\n};\nexport { NotImplementedError, mockFetch };\n","import { PromiseDelegate } from \"promise-delegate\";\nimport { VERSION } from \"./version\";\nimport { NotImplementedError } from \"./commons\";\n// const desc = Object.getOwnPropertyDescriptor(\n// HTMLImageElement.prototype,\n// \"src\"\n// );\n// Object.defineProperty(HTMLImageElement.prototype, \"src\", {\n// ...desc,\n// get: function () {\n// return desc?.get?.call(this);\n// },\n// set: function (e) {\n// const prefix = _localfsScheme;\n// if (e.startsWith(prefix)) {\n// const path = e.slice(prefix.length);\n// //@ts-ignore\n// const content = window.Basthon.getFile(path).buffer;\n// (async () => desc?.set?.call(this, await toDataURL(content)))();\n// } else {\n// desc?.set?.call(this, e);\n// }\n// },\n// });\n/**\n * Event for Basthon's dispatch/listen.\n */\nclass BasthonEvent extends Event {\n constructor(id, data) {\n super(id);\n this.detail = data;\n }\n}\nexport { VERSION };\n/**\n * API that any Basthon kernel should fill to be supported\n * in console/notebook.\n */\nexport class KernelBase {\n constructor(options) {\n this._isReady = false;\n this._ready = new PromiseDelegate();\n this._stopped = Promise.resolve();\n this._execution_count = 0;\n this._pendingInput = undefined;\n // a map to register wrapped listeners to allow later remove\n this._listeners = new Map();\n this._files = new Map();\n this._modules = new Map();\n this._options = this.clone(options);\n // root path where kernel is installed\n this._rootPath = options.rootPath;\n }\n /**\n * Is this kernel safe? (loaded from an isolated web worker)\n */\n safeKernel() {\n return false;\n }\n /**\n * Kernel version number (string).\n */\n version() {\n return VERSION;\n }\n /**\n * Language implemented in the kernel (string).\n * Generally lower case.\n */\n language() {\n throw new NotImplementedError(\"language\");\n }\n /**\n * Language name implemented in the kernel (string).\n * As it should be displayed in text.\n */\n languageName() {\n throw new NotImplementedError(\"languageName\");\n }\n /**\n * Script (module) file extensions\n */\n moduleExts() {\n throw new NotImplementedError(\"moduleExts\");\n }\n /**\n * Execution count getter.\n */\n get execution_count() {\n return this._execution_count;\n }\n /**\n * Async code evaluation that resolves with the result.\n */\n evalAsync(code, outCallback, errCallback, data = null) {\n throw new NotImplementedError(\"evalAsync\");\n }\n async putFile(filename, content) {\n this._files.set(filename, content);\n }\n async putModule(filename, content) {\n this._modules.set(filename, content);\n }\n userModules() {\n return [];\n }\n /**\n * Get a file content from the VFS.\n */\n getFile(path) {\n throw new NotImplementedError(\"getFile\");\n }\n /**\n * Get a user module file content.\n */\n getUserModuleFile(filename) {\n throw new NotImplementedError(\"getUserModuleFile\");\n }\n async more(source) {\n throw new NotImplementedError(\"more\");\n }\n async complete(code) {\n return [];\n }\n banner() {\n return `Welcome to the ${this.languageName()} REPL!`;\n }\n ps1() {\n return \">>> \";\n }\n ps2() {\n return \"... \";\n }\n /**\n * Launch the kernel (used to wrap a promise around init).\n */\n async _init() { }\n /**\n * Initialize the kernel and start it.\n */\n async init() {\n if (!this.safeKernel())\n console.warn(`%c⚠ DANGER ⚠: this kernel is not safe!` +\n \" Please consider using a safe kernel.\", \"color: red; font-size: 20px;\");\n try {\n await this._init();\n }\n catch (error) {\n this._ready.reject(error);\n return;\n }\n // connecting eval to basthon.eval.request event.\n this.addEventListener(\"eval.request\", this.evalFromEvent.bind(this));\n await this.start();\n }\n /**\n * Start the kernel (used to wrap a promise around start).\n */\n async _start() { }\n /**\n * Start the kernel.\n */\n async start() {\n await this._stopped;\n this._execution_count = 0;\n try {\n await this._start();\n }\n catch (error) {\n this._ready.reject(error);\n return;\n }\n this._files.forEach((v, k) => this.putFile(k, v));\n this._modules.forEach((v, k) => this.putModule(k, v));\n this._isReady = true;\n this._ready.resolve();\n }\n /**\n * Perform async part of the stoping process.\n */\n async _stop() { }\n /**\n * Stop the kernel synchronously (to ensure kernel is stopped after the call).\n */\n stop() {\n this._isReady = false;\n this._ready = new PromiseDelegate();\n this._stopped = this._stop();\n }\n /**\n * Restart the kernel (stop and start).\n * Use await this.ready() to ensure kernel is started\n */\n restart() {\n this.stop(); // sync\n this.start(); // async\n }\n /**\n * Is the kernel ready?\n */\n get isReady() {\n return this._isReady;\n }\n /**\n * Promise that resolves when the kernel is ready (started).\n */\n async ready() {\n return this._ready.promise;\n }\n /**\n * Root for kernel files. This is always the language directory\n * inside the version number directory inside the kernel directory.\n */\n basthonRoot(absolute = false) {\n let url = this._rootPath + \"/\" + this.version() + \"/\" + this.language();\n if (absolute && !url.startsWith(\"http\")) {\n const base = window.location.origin + window.location.pathname;\n url = base.substring(0, base.lastIndexOf(\"/\")) + \"/\" + url;\n }\n return url;\n }\n /**\n * Downloading data (bytes array or data URL) as filename\n * (opening browser dialog).\n */\n download(data, filename) {\n if (!(typeof data === \"string\" || data instanceof String)) {\n const blob = new Blob([data], { type: \"application/octet-stream\" });\n data = window.URL.createObjectURL(blob);\n }\n const anchor = document.createElement(\"a\");\n anchor.download = filename;\n anchor.href = data;\n anchor.target = \"_blank\";\n anchor.style.display = \"none\"; // just to be safe!\n document.body.appendChild(anchor);\n anchor.click();\n document.body.removeChild(anchor);\n }\n /**\n * Dynamically load a script asynchronously.\n */\n static loadScript(url) {\n return new Promise(function (resolve, reject) {\n let script = document.createElement(\"script\");\n script.onload = resolve;\n script.onerror = reject;\n script.src = url;\n document.head.appendChild(script);\n });\n }\n /**\n * Wrapper around document.dispatchEvent.\n * It adds the 'basthon.' prefix to each event name and\n * manage the event lookup to retreive relevent data.\n */\n dispatchEvent(eventName, data) {\n document.dispatchEvent(new BasthonEvent(`basthon.${eventName}`, data));\n }\n /**\n * Wrapper around document.addEventListener.\n * It manages the 'basthon.' prefix to each event name and\n * manage the event lookup to retreive relevent data.\n */\n addEventListener(eventName, callback) {\n // wrapped callback\n const _callback = (event) => callback(event.detail);\n document.addEventListener(`basthon.${eventName}`, _callback);\n // register the wrapped callback in order to remove it\n let listeners = this._listeners.get(eventName);\n if (listeners == null) {\n listeners = new Map();\n this._listeners.set(eventName, listeners);\n }\n listeners.set(callback, _callback);\n }\n /**\n * Wrapper around document.removeEventListener.\n * It manages the 'basthon.' prefix to each event name.\n */\n removeEventListener(eventName, callback) {\n // get the wrapped callback\n const listeners = this._listeners.get(eventName);\n document.removeEventListener(`basthon.${eventName}`, listeners?.get(callback));\n }\n /**\n * Send eval.input event then wait for the user response and return it.\n */\n async inputAsync(prompt, password = false, data = undefined) {\n data = this.clone(data);\n data.content = { prompt, password };\n const pd = new PromiseDelegate();\n data.resolve = pd.resolve.bind(pd);\n data.reject = pd.reject.bind(pd);\n this._pendingInput = pd;\n this.dispatchEvent(\"eval.input\", data);\n const res = await pd.promise;\n this._pendingInput = undefined;\n return res;\n }\n /**\n * Close a pending input.\n */\n resolvePendingInput() {\n this._pendingInput?.resolve(\"\");\n }\n /**\n * Simple clone via JSON copy.\n */\n clone(obj) {\n // simple trick that is enough for our purpose.\n return JSON.parse(JSON.stringify(obj));\n }\n /**\n * Put a ressource (file or module).\n * Detection is based on extension.\n */\n async putRessource(filename, content) {\n const ext = filename.split(\".\").pop() ?? \"\";\n if (this.moduleExts().includes(ext)) {\n return await this.putModule(filename, content);\n }\n else {\n return await this.putFile(filename, content);\n }\n }\n /**\n * Is an input pending?\n */\n pendingInput() {\n return this._pendingInput != null;\n }\n /**\n * Internal. Code evaluation after an eval.request event.\n */\n async evalFromEvent(data) {\n const stdCallback = (std) => (text) => {\n let dataEvent = this.clone(data);\n dataEvent.stream = std;\n dataEvent.content = text;\n this.dispatchEvent(\"eval.output\", dataEvent);\n };\n const outCallback = stdCallback(\"stdout\");\n const errCallback = stdCallback(\"stderr\");\n let args;\n try {\n args = await this.evalAsync(data.code, outCallback, errCallback, data);\n }\n catch (error) {\n errCallback(error.toString());\n const dataEvent = this.clone(data);\n dataEvent.error = error;\n dataEvent.execution_count = this.execution_count;\n this.dispatchEvent(\"eval.error\", dataEvent);\n return;\n }\n if (args == null)\n return; // this should not happend\n const result = args[0];\n const executionCount = args[1];\n let dataEvent = this.clone(data);\n dataEvent.execution_count = executionCount;\n if (result != null)\n dataEvent.result = result;\n this.dispatchEvent(\"eval.finished\", dataEvent);\n }\n}\n","export const VERSION = \"0.63.0\";\n","function _assertThisInitialized(e) {\n if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return e;\n}\nexport { _assertThisInitialized as default };","import toPropertyKey from \"./toPropertyKey.js\";\nfunction _defineProperty(e, r, t) {\n return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n value: t,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[r] = t, e;\n}\nexport { _defineProperty as default };","import superPropBase from \"./superPropBase.js\";\nfunction _get() {\n return _get = \"undefined\" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {\n var p = superPropBase(e, t);\n if (p) {\n var n = Object.getOwnPropertyDescriptor(p, t);\n return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;\n }\n }, _get.apply(null, arguments);\n}\nexport { _get as default };","import getPrototypeOf from \"./getPrototypeOf.js\";\nfunction _superPropBase(t, o) {\n for (; !{}.hasOwnProperty.call(t, o) && null !== (t = getPrototypeOf(t)););\n return t;\n}\nexport { _superPropBase as default };","function _getPrototypeOf(t) {\n return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {\n return t.__proto__ || Object.getPrototypeOf(t);\n }, _getPrototypeOf(t);\n}\nexport { _getPrototypeOf as default };","import setPrototypeOf from \"./setPrototypeOf.js\";\nfunction _inherits(t, e) {\n if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\");\n t.prototype = Object.create(e && e.prototype, {\n constructor: {\n value: t,\n writable: !0,\n configurable: !0\n }\n }), Object.defineProperty(t, \"prototype\", {\n writable: !1\n }), e && setPrototypeOf(t, e);\n}\nexport { _inherits as default };","import _typeof from \"./typeof.js\";\nimport assertThisInitialized from \"./assertThisInitialized.js\";\nfunction _possibleConstructorReturn(t, e) {\n if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e;\n if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\");\n return assertThisInitialized(t);\n}\nexport { _possibleConstructorReturn as default };","function _setPrototypeOf(t, e) {\n return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {\n return t.__proto__ = e, t;\n }, _setPrototypeOf(t, e);\n}\nexport { _setPrototypeOf as default };","function _isNativeReflectConstruct() {\n try {\n var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n } catch (t) {}\n return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {\n return !!t;\n })();\n}\nexport { _isNativeReflectConstruct as default };","import getPrototypeOf from \"./getPrototypeOf.js\";\nimport setPrototypeOf from \"./setPrototypeOf.js\";\nimport isNativeFunction from \"./isNativeFunction.js\";\nimport construct from \"./construct.js\";\nfunction _wrapNativeSuper(t) {\n var r = \"function\" == typeof Map ? new Map() : void 0;\n return _wrapNativeSuper = function _wrapNativeSuper(t) {\n if (null === t || !isNativeFunction(t)) return t;\n if (\"function\" != typeof t) throw new TypeError(\"Super expression must either be null or a function\");\n if (void 0 !== r) {\n if (r.has(t)) return r.get(t);\n r.set(t, Wrapper);\n }\n function Wrapper() {\n return construct(t, arguments, getPrototypeOf(this).constructor);\n }\n return Wrapper.prototype = Object.create(t.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: !1,\n writable: !0,\n configurable: !0\n }\n }), setPrototypeOf(Wrapper, t);\n }, _wrapNativeSuper(t);\n}\nexport { _wrapNativeSuper as default };","function _isNativeFunction(t) {\n try {\n return -1 !== Function.toString.call(t).indexOf(\"[native code]\");\n } catch (n) {\n return \"function\" == typeof t;\n }\n}\nexport { _isNativeFunction as default };","import isNativeReflectConstruct from \"./isNativeReflectConstruct.js\";\nimport setPrototypeOf from \"./setPrototypeOf.js\";\nfunction _construct(t, e, r) {\n if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);\n var o = [null];\n o.push.apply(o, e);\n var p = new (t.bind.apply(t, o))();\n return r && setPrototypeOf(p, r.prototype), p;\n}\nexport { _construct as default };"],"names":["NotImplementedError","_Error","funcName","_this","_classCallCheck","concat","name","_inherits","_createClass","_wrapNativeSuper","Error","fetchFromLocalFS","_ref","_asyncToGenerator","_regeneratorRuntime","_callee2","localfsScheme","url","toDataURL","prefix","path","content","options","dataURL","mime","_context2","prev","next","_ref2","_callee","_context","Promise","resolve","reject","reader","FileReader","onloadend","result","onerror","readAsDataURL","Blob","abrupt","sent","stop","_x3","apply","arguments","slice","length","status","statusText","headers","Headers","self","basthon","getFile","substring","indexOf","buffer","append","byteLength","t0","Response","_x","_x2","origin","URL","parent","abs","href","lastIndexOf","mockFetch","legacy","fetch","trueFetch","_x4","_x5","_mockedFetch","_callee3","request","init","_request$url","proxy","_yield$proxy$fetch","body","_context3","importScripts","_assetsURL","error","Request","_objectSpread","credentials","toString","startsWith","_remoteProxy","console","BasthonEvent","_Event","id","data","detail","Event","KernelBase","this","_isReady","_ready","PromiseDelegate","_stopped","_execution_count","_pendingInput","undefined","_listeners","Map","_files","_modules","_options","clone","_rootPath","rootPath","key","value","VERSION","get","code","outCallback","errCallback","_putFile","filename","set","_putModule","_more","source","_complete","_callee4","_context4","_x6","languageName","_init2","_callee5","_context5","_init3","_callee6","_context6","safeKernel","warn","_init","addEventListener","evalFromEvent","bind","start","_start2","_callee7","_context7","_start3","_callee8","_this2","_context8","_start","forEach","v","k","putFile","putModule","_stop2","_callee9","_context9","_stop","_callee10","_context10","promise","absolute","version","language","base","window","location","pathname","String","blob","type","createObjectURL","anchor","document","createElement","download","target","style","display","appendChild","click","removeChild","eventName","dispatchEvent","callback","_callback","event","listeners","removeEventListener","_inputAsync","_callee11","prompt","password","pd","res","_args11","_context11","_x7","_this$_pendingInput","obj","JSON","parse","stringify","_putRessource","_callee12","_filename$split$pop","ext","_context12","split","pop","moduleExts","includes","_x8","_x9","_evalFromEvent","_callee13","stdCallback","args","_dataEvent","executionCount","dataEvent","_this3","_context13","std","text","stream","evalAsync","execution_count","_x10","script","onload","src","head","_assertThisInitialized","e","ReferenceError","_defineProperty","r","t","Object","defineProperty","enumerable","configurable","writable","_get","Reflect","p","o","hasOwnProperty","call","getPrototypeOf","n","getOwnPropertyDescriptor","_getPrototypeOf","setPrototypeOf","__proto__","TypeError","prototype","create","constructor","_possibleConstructorReturn","_setPrototypeOf","_isNativeReflectConstruct","Boolean","valueOf","construct","Function","has","Wrapper","push"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"kernel-base_lib_kernel_js-node_modules_babel_runtime_helpers_esm_get_js.js","mappings":"2hCAAA,IAGMA,EAAmB,SAAAC,GACrB,SAAAD,EAAYE,GAAU,IAAAC,E,MAEgB,OAFhBC,EAAAA,EAAAA,GAAA,KAAAJ,G,EAClB,K,EAAAA,E,EAAA,aAAAK,OAAkBH,EAAQ,sB,cAA1BC,G,8EACKG,KAAO,sBAAsBH,CACtC,CAAC,OAAAI,EAAAA,EAAAA,GAAAP,EAAAC,IAAAO,EAAAA,EAAAA,GAAAR,EAAA,CAJoB,EAIpBS,EAAAA,EAAAA,GAJ6BC,QAO5BC,EAAgB,eAAAC,GAAAC,EAAAA,EAAAA,GAAAC,IAAAA,MAAG,SAAAC,EAAOC,EAAeC,GAAG,IAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAA,OAAAV,IAAAA,MAAA,SAAAW,GAAA,cAAAA,EAAAC,KAAAD,EAAAE,MAAA,OAkB7C,OAjBKT,EAAS,eAAAU,GAAAf,EAAAA,EAAAA,GAAAC,IAAAA,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,OAAOmB,OAAOpB,EAAEmB,UAAW,CACpDE,YAAa,CACXpJ,MAAO6J,EACP3B,YAAY,EACZE,UAAU,EACVD,cAAc,MAEd,EAAAY,EAAA,GAAec,EAAS9B,EAC9B,EAAG9O,EAAiB8O,EACtB,C","sources":["webpack://@basthon/browser-bundle/../kernel-base/lib/commons.js","webpack://@basthon/browser-bundle/../kernel-base/lib/kernel.js","webpack://@basthon/browser-bundle/../kernel-base/lib/version.js","webpack://@basthon/browser-bundle/../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","webpack://@basthon/browser-bundle/../../node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack://@basthon/browser-bundle/../../node_modules/@babel/runtime/helpers/esm/get.js","webpack://@basthon/browser-bundle/../../node_modules/@babel/runtime/helpers/esm/superPropBase.js","webpack://@basthon/browser-bundle/../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","webpack://@basthon/browser-bundle/../../node_modules/@babel/runtime/helpers/esm/inherits.js","webpack://@basthon/browser-bundle/../../node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js","webpack://@basthon/browser-bundle/../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://@basthon/browser-bundle/../../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js","webpack://@basthon/browser-bundle/../../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js","webpack://@basthon/browser-bundle/../../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js","webpack://@basthon/browser-bundle/../../node_modules/@babel/runtime/helpers/esm/construct.js"],"sourcesContent":["/**\n * An error thrown by not implemented API functions.\n */\nclass NotImplementedError extends Error {\n constructor(funcName) {\n super(`Function ${funcName} not implemented!`);\n this.name = \"NotImplementedError\";\n }\n}\n/* fetch from local FS */\nconst fetchFromLocalFS = async (localfsScheme, url) => {\n const toDataURL = async (content) => {\n return await new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.onloadend = () => {\n resolve(reader.result);\n };\n reader.onerror = reject;\n reader.readAsDataURL(new Blob([content]));\n });\n };\n const prefix = localfsScheme;\n const path = url.slice(prefix.length);\n let content = null;\n const options = {\n status: 200,\n statusText: \"OK\",\n headers: new Headers(),\n };\n try {\n //@ts-ignore\n content = await self.basthon.getFile(path);\n const dataURL = await toDataURL(content);\n const mime = dataURL.substring(dataURL.indexOf(\":\") + 1, dataURL.indexOf(\";\"));\n content = content.buffer;\n options.headers.append(\"Content-Type\", mime);\n options.headers.append(\"Content-Length\", content.byteLength);\n }\n catch (e) {\n options.status = 404;\n options.statusText = \"Not Found\";\n }\n return new Response(content, options);\n};\n/**\n * Get the origin of an url.\n */\nconst origin = (url) => new URL(url).origin;\n/**\n * Get the parent path of an url.\n */\nconst parent = (url) => {\n const abs = new URL(url).href;\n return abs.substring(0, abs.lastIndexOf(\"/\"));\n};\n/**\n * we mock the fetch function to:\n * - redirect queries to local FS\n * - bypass the worker's opaque origin\n */\nconst mockFetch = (legacy) => {\n // already mocked?\n if (self.fetch.name === \"mockedFetch\")\n return;\n const trueFetch = self.fetch;\n async function mockedFetch(request, init) {\n if (!legacy && (self.importScripts == null || self._assetsURL == null))\n return Response.error();\n // force all params to init object\n if (request instanceof Request)\n init = { ...request, ...init };\n // ensure credentials are not sent\n init = { ...init, ...{ credentials: \"omit\" } };\n const url = request.url ?? request.toString();\n const localfsScheme = \"filesystem:/\";\n try {\n // requests towards localfs\n if (url.startsWith(localfsScheme)) {\n return await fetchFromLocalFS(localfsScheme, url);\n }\n else if (!legacy && origin(url) === origin(self._assetsURL)) {\n // requests towards same origin\n // only url under the assets folder are proxyied\n if (parent(url).startsWith(self._assetsURL)) {\n const proxy = self._remoteProxy;\n const { body, options } = await proxy.fetch(url, init);\n return new Response(body, options);\n }\n throw new Error(\"Ressource is outside the proxy' scope\");\n }\n return await trueFetch(url, init);\n }\n catch (e) {\n console.error(`security proxy: request to ${url} throw error: ${e.toString()}`);\n return Response.error();\n }\n }\n self.fetch = mockedFetch;\n};\nexport { NotImplementedError, mockFetch };\n","import { PromiseDelegate } from \"promise-delegate\";\nimport { VERSION } from \"./version\";\nimport { NotImplementedError } from \"./commons\";\n// const desc = Object.getOwnPropertyDescriptor(\n// HTMLImageElement.prototype,\n// \"src\"\n// );\n// Object.defineProperty(HTMLImageElement.prototype, \"src\", {\n// ...desc,\n// get: function () {\n// return desc?.get?.call(this);\n// },\n// set: function (e) {\n// const prefix = _localfsScheme;\n// if (e.startsWith(prefix)) {\n// const path = e.slice(prefix.length);\n// //@ts-ignore\n// const content = window.Basthon.getFile(path).buffer;\n// (async () => desc?.set?.call(this, await toDataURL(content)))();\n// } else {\n// desc?.set?.call(this, e);\n// }\n// },\n// });\n/**\n * Event for Basthon's dispatch/listen.\n */\nclass BasthonEvent extends Event {\n constructor(id, data) {\n super(id);\n this.detail = data;\n }\n}\nexport { VERSION };\n/**\n * API that any Basthon kernel should fill to be supported\n * in console/notebook.\n */\nexport class KernelBase {\n constructor(options) {\n this._isReady = false;\n this._ready = new PromiseDelegate();\n this._stopped = Promise.resolve();\n this._execution_count = 0;\n this._pendingInput = undefined;\n // a map to register wrapped listeners to allow later remove\n this._listeners = new Map();\n this._files = new Map();\n this._modules = new Map();\n this._options = this.clone(options);\n // root path where kernel is installed\n this._rootPath = options.rootPath;\n }\n /**\n * Is this kernel safe? (loaded from an isolated web worker)\n */\n safeKernel() {\n return false;\n }\n /**\n * Kernel version number (string).\n */\n version() {\n return VERSION;\n }\n /**\n * Language implemented in the kernel (string).\n * Generally lower case.\n */\n language() {\n throw new NotImplementedError(\"language\");\n }\n /**\n * Language name implemented in the kernel (string).\n * As it should be displayed in text.\n */\n languageName() {\n throw new NotImplementedError(\"languageName\");\n }\n /**\n * Script (module) file extensions\n */\n moduleExts() {\n throw new NotImplementedError(\"moduleExts\");\n }\n /**\n * Execution count getter.\n */\n get execution_count() {\n return this._execution_count;\n }\n /**\n * Async code evaluation that resolves with the result.\n */\n evalAsync(code, outCallback, errCallback, data = null) {\n throw new NotImplementedError(\"evalAsync\");\n }\n async putFile(filename, content) {\n this._files.set(filename, content);\n }\n async putModule(filename, content) {\n this._modules.set(filename, content);\n }\n userModules() {\n return [];\n }\n /**\n * Get a file content from the VFS.\n */\n getFile(path) {\n throw new NotImplementedError(\"getFile\");\n }\n /**\n * Get a user module file content.\n */\n getUserModuleFile(filename) {\n throw new NotImplementedError(\"getUserModuleFile\");\n }\n async more(source) {\n throw new NotImplementedError(\"more\");\n }\n async complete(code) {\n return [];\n }\n banner() {\n return `Welcome to the ${this.languageName()} REPL!`;\n }\n ps1() {\n return \">>> \";\n }\n ps2() {\n return \"... \";\n }\n /**\n * Launch the kernel (used to wrap a promise around init).\n */\n async _init() { }\n /**\n * Initialize the kernel and start it.\n */\n async init() {\n if (!this.safeKernel())\n console.warn(`%c⚠ DANGER ⚠: this kernel is not safe!` +\n \" Please consider using a safe kernel.\", \"color: red; font-size: 20px;\");\n try {\n await this._init();\n }\n catch (error) {\n this._ready.reject(error);\n return;\n }\n // connecting eval to basthon.eval.request event.\n this.addEventListener(\"eval.request\", this.evalFromEvent.bind(this));\n await this.start();\n }\n /**\n * Start the kernel (used to wrap a promise around start).\n */\n async _start() { }\n /**\n * Start the kernel.\n */\n async start() {\n await this._stopped;\n this._execution_count = 0;\n try {\n await this._start();\n }\n catch (error) {\n this._ready.reject(error);\n return;\n }\n this._files.forEach((v, k) => this.putFile(k, v));\n this._modules.forEach((v, k) => this.putModule(k, v));\n this._isReady = true;\n this._ready.resolve();\n }\n /**\n * Perform async part of the stoping process.\n */\n async _stop() { }\n /**\n * Stop the kernel synchronously (to ensure kernel is stopped after the call).\n */\n stop() {\n this._isReady = false;\n this._ready = new PromiseDelegate();\n this._stopped = this._stop();\n }\n /**\n * Restart the kernel (stop and start).\n * Use await this.ready() to ensure kernel is started\n */\n restart() {\n this.stop(); // sync\n this.start(); // async\n }\n /**\n * Is the kernel ready?\n */\n get isReady() {\n return this._isReady;\n }\n /**\n * Promise that resolves when the kernel is ready (started).\n */\n async ready() {\n return this._ready.promise;\n }\n /**\n * Root for kernel files. This is always the language directory\n * inside the version number directory inside the kernel directory.\n */\n basthonRoot(absolute = false) {\n let url = this._rootPath + \"/\" + this.version() + \"/\" + this.language();\n if (absolute && !url.startsWith(\"http\")) {\n const base = window.location.origin + window.location.pathname;\n url = base.substring(0, base.lastIndexOf(\"/\")) + \"/\" + url;\n }\n return url;\n }\n /**\n * Downloading data (bytes array or data URL) as filename\n * (opening browser dialog).\n */\n download(data, filename) {\n if (!(typeof data === \"string\" || data instanceof String)) {\n const blob = new Blob([data], { type: \"application/octet-stream\" });\n data = window.URL.createObjectURL(blob);\n }\n const anchor = document.createElement(\"a\");\n anchor.download = filename;\n anchor.href = data;\n anchor.target = \"_blank\";\n anchor.style.display = \"none\"; // just to be safe!\n document.body.appendChild(anchor);\n anchor.click();\n document.body.removeChild(anchor);\n }\n /**\n * Dynamically load a script asynchronously.\n */\n static loadScript(url) {\n return new Promise(function (resolve, reject) {\n let script = document.createElement(\"script\");\n script.onload = resolve;\n script.onerror = reject;\n script.src = url;\n document.head.appendChild(script);\n });\n }\n /**\n * Wrapper around document.dispatchEvent.\n * It adds the 'basthon.' prefix to each event name and\n * manage the event lookup to retreive relevent data.\n */\n dispatchEvent(eventName, data) {\n document.dispatchEvent(new BasthonEvent(`basthon.${eventName}`, data));\n }\n /**\n * Wrapper around document.addEventListener.\n * It manages the 'basthon.' prefix to each event name and\n * manage the event lookup to retreive relevent data.\n */\n addEventListener(eventName, callback) {\n // wrapped callback\n const _callback = (event) => callback(event.detail);\n document.addEventListener(`basthon.${eventName}`, _callback);\n // register the wrapped callback in order to remove it\n let listeners = this._listeners.get(eventName);\n if (listeners == null) {\n listeners = new Map();\n this._listeners.set(eventName, listeners);\n }\n listeners.set(callback, _callback);\n }\n /**\n * Wrapper around document.removeEventListener.\n * It manages the 'basthon.' prefix to each event name.\n */\n removeEventListener(eventName, callback) {\n // get the wrapped callback\n const listeners = this._listeners.get(eventName);\n document.removeEventListener(`basthon.${eventName}`, listeners?.get(callback));\n }\n /**\n * Send eval.input event then wait for the user response and return it.\n */\n async inputAsync(prompt, password = false, data = undefined) {\n data = this.clone(data);\n data.content = { prompt, password };\n const pd = new PromiseDelegate();\n data.resolve = pd.resolve.bind(pd);\n data.reject = pd.reject.bind(pd);\n this._pendingInput = pd;\n this.dispatchEvent(\"eval.input\", data);\n const res = await pd.promise;\n this._pendingInput = undefined;\n return res;\n }\n /**\n * Close a pending input.\n */\n resolvePendingInput() {\n this._pendingInput?.resolve(\"\");\n }\n /**\n * Simple clone via JSON copy.\n */\n clone(obj) {\n // simple trick that is enough for our purpose.\n return JSON.parse(JSON.stringify(obj));\n }\n /**\n * Put a ressource (file or module).\n * Detection is based on extension.\n */\n async putRessource(filename, content) {\n const ext = filename.split(\".\").pop() ?? \"\";\n if (this.moduleExts().includes(ext)) {\n return await this.putModule(filename, content);\n }\n else {\n return await this.putFile(filename, content);\n }\n }\n /**\n * Is an input pending?\n */\n pendingInput() {\n return this._pendingInput != null;\n }\n /**\n * Internal. Code evaluation after an eval.request event.\n */\n async evalFromEvent(data) {\n const stdCallback = (std) => (text) => {\n let dataEvent = this.clone(data);\n dataEvent.stream = std;\n dataEvent.content = text;\n this.dispatchEvent(\"eval.output\", dataEvent);\n };\n const outCallback = stdCallback(\"stdout\");\n const errCallback = stdCallback(\"stderr\");\n let args;\n try {\n args = await this.evalAsync(data.code, outCallback, errCallback, data);\n }\n catch (error) {\n errCallback(error.toString());\n const dataEvent = this.clone(data);\n dataEvent.error = error;\n dataEvent.execution_count = this.execution_count;\n this.dispatchEvent(\"eval.error\", dataEvent);\n return;\n }\n if (args == null)\n return; // this should not happend\n const result = args[0];\n const executionCount = args[1];\n let dataEvent = this.clone(data);\n dataEvent.execution_count = executionCount;\n if (result != null)\n dataEvent.result = result;\n this.dispatchEvent(\"eval.finished\", dataEvent);\n }\n}\n","export const VERSION = \"0.64.0\";\n","function _assertThisInitialized(e) {\n if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return e;\n}\nexport { _assertThisInitialized as default };","import toPropertyKey from \"./toPropertyKey.js\";\nfunction _defineProperty(e, r, t) {\n return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n value: t,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[r] = t, e;\n}\nexport { _defineProperty as default };","import superPropBase from \"./superPropBase.js\";\nfunction _get() {\n return _get = \"undefined\" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {\n var p = superPropBase(e, t);\n if (p) {\n var n = Object.getOwnPropertyDescriptor(p, t);\n return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;\n }\n }, _get.apply(null, arguments);\n}\nexport { _get as default };","import getPrototypeOf from \"./getPrototypeOf.js\";\nfunction _superPropBase(t, o) {\n for (; !{}.hasOwnProperty.call(t, o) && null !== (t = getPrototypeOf(t)););\n return t;\n}\nexport { _superPropBase as default };","function _getPrototypeOf(t) {\n return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {\n return t.__proto__ || Object.getPrototypeOf(t);\n }, _getPrototypeOf(t);\n}\nexport { _getPrototypeOf as default };","import setPrototypeOf from \"./setPrototypeOf.js\";\nfunction _inherits(t, e) {\n if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\");\n t.prototype = Object.create(e && e.prototype, {\n constructor: {\n value: t,\n writable: !0,\n configurable: !0\n }\n }), Object.defineProperty(t, \"prototype\", {\n writable: !1\n }), e && setPrototypeOf(t, e);\n}\nexport { _inherits as default };","import _typeof from \"./typeof.js\";\nimport assertThisInitialized from \"./assertThisInitialized.js\";\nfunction _possibleConstructorReturn(t, e) {\n if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e;\n if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\");\n return assertThisInitialized(t);\n}\nexport { _possibleConstructorReturn as default };","function _setPrototypeOf(t, e) {\n return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {\n return t.__proto__ = e, t;\n }, _setPrototypeOf(t, e);\n}\nexport { _setPrototypeOf as default };","function _isNativeReflectConstruct() {\n try {\n var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n } catch (t) {}\n return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {\n return !!t;\n })();\n}\nexport { _isNativeReflectConstruct as default };","import getPrototypeOf from \"./getPrototypeOf.js\";\nimport setPrototypeOf from \"./setPrototypeOf.js\";\nimport isNativeFunction from \"./isNativeFunction.js\";\nimport construct from \"./construct.js\";\nfunction _wrapNativeSuper(t) {\n var r = \"function\" == typeof Map ? new Map() : void 0;\n return _wrapNativeSuper = function _wrapNativeSuper(t) {\n if (null === t || !isNativeFunction(t)) return t;\n if (\"function\" != typeof t) throw new TypeError(\"Super expression must either be null or a function\");\n if (void 0 !== r) {\n if (r.has(t)) return r.get(t);\n r.set(t, Wrapper);\n }\n function Wrapper() {\n return construct(t, arguments, getPrototypeOf(this).constructor);\n }\n return Wrapper.prototype = Object.create(t.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: !1,\n writable: !0,\n configurable: !0\n }\n }), setPrototypeOf(Wrapper, t);\n }, _wrapNativeSuper(t);\n}\nexport { _wrapNativeSuper as default };","function _isNativeFunction(t) {\n try {\n return -1 !== Function.toString.call(t).indexOf(\"[native code]\");\n } catch (n) {\n return \"function\" == typeof t;\n }\n}\nexport { _isNativeFunction as default };","import isNativeReflectConstruct from \"./isNativeReflectConstruct.js\";\nimport setPrototypeOf from \"./setPrototypeOf.js\";\nfunction _construct(t, e, r) {\n if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);\n var o = [null];\n o.push.apply(o, e);\n var p = new (t.bind.apply(t, o))();\n return r && setPrototypeOf(p, r.prototype), p;\n}\nexport { _construct as default };"],"names":["NotImplementedError","_Error","funcName","_this","_classCallCheck","concat","name","_inherits","_createClass","_wrapNativeSuper","Error","fetchFromLocalFS","_ref","_asyncToGenerator","_regeneratorRuntime","_callee2","localfsScheme","url","toDataURL","prefix","path","content","options","dataURL","mime","_context2","prev","next","_ref2","_callee","_context","Promise","resolve","reject","reader","FileReader","onloadend","result","onerror","readAsDataURL","Blob","abrupt","sent","stop","_x3","apply","arguments","slice","length","status","statusText","headers","Headers","self","basthon","getFile","substring","indexOf","buffer","append","byteLength","t0","Response","_x","_x2","origin","URL","parent","abs","href","lastIndexOf","mockFetch","legacy","fetch","trueFetch","_x4","_x5","_mockedFetch","_callee3","request","init","_request$url","proxy","_yield$proxy$fetch","body","_context3","importScripts","_assetsURL","error","Request","_objectSpread","credentials","toString","startsWith","_remoteProxy","console","BasthonEvent","_Event","id","data","detail","Event","KernelBase","this","_isReady","_ready","PromiseDelegate","_stopped","_execution_count","_pendingInput","undefined","_listeners","Map","_files","_modules","_options","clone","_rootPath","rootPath","key","value","VERSION","get","code","outCallback","errCallback","_putFile","filename","set","_putModule","_more","source","_complete","_callee4","_context4","_x6","languageName","_init2","_callee5","_context5","_init3","_callee6","_context6","safeKernel","warn","_init","addEventListener","evalFromEvent","bind","start","_start2","_callee7","_context7","_start3","_callee8","_this2","_context8","_start","forEach","v","k","putFile","putModule","_stop2","_callee9","_context9","_stop","_callee10","_context10","promise","absolute","version","language","base","window","location","pathname","String","blob","type","createObjectURL","anchor","document","createElement","download","target","style","display","appendChild","click","removeChild","eventName","dispatchEvent","callback","_callback","event","listeners","removeEventListener","_inputAsync","_callee11","prompt","password","pd","res","_args11","_context11","_x7","_this$_pendingInput","obj","JSON","parse","stringify","_putRessource","_callee12","_filename$split$pop","ext","_context12","split","pop","moduleExts","includes","_x8","_x9","_evalFromEvent","_callee13","stdCallback","args","_dataEvent","executionCount","dataEvent","_this3","_context13","std","text","stream","evalAsync","execution_count","_x10","script","onload","src","head","_assertThisInitialized","e","ReferenceError","_defineProperty","r","t","Object","defineProperty","enumerable","configurable","writable","_get","Reflect","p","o","hasOwnProperty","call","getPrototypeOf","n","getOwnPropertyDescriptor","_getPrototypeOf","setPrototypeOf","__proto__","TypeError","prototype","create","constructor","_possibleConstructorReturn","_setPrototypeOf","_isNativeReflectConstruct","Boolean","valueOf","construct","Function","has","Wrapper","push"],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_basthon_browser_bundle=self.webpackChunk_basthon_browser_bundle||[]).push([["kernel-python3_lib_index_js"],{
|
|
1
|
+
"use strict";(self.webpackChunk_basthon_browser_bundle=self.webpackChunk_basthon_browser_bundle||[]).push([["kernel-python3_lib_index_js"],{4794:(e,t,n)=>{n.r(t),n.d(t,{Python3Kernel:()=>v});var r=n(6330),o=n(5152),a=n(414),i=n(5309),s=n(2715),u=n(5018),c=n(9296),l=n(5799),p=n.n(l),d=n(3297);function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw a}}}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function _(e,t,n,r){var o=(0,u.A)((0,s.A)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}var v=function(e){function t(e){var n,r,a,u,c;return(0,o.A)(this,t),a=this,u=t,c=[e],u=(0,s.A)(u),(r=(0,i.A)(a,y()?Reflect.construct(u,c||[],(0,s.A)(a).constructor):u.apply(a,c)))._pyodideURLs=["https://cdn.jsdelivr.net/pyodide/v{PYODIDE_VERSION}/full/pyodide.js"],r.__kernel__=null,r.pythonVersion="",r._pyodideURLs.unshift("".concat(r.basthonRoot(),"/pyodide/pyodide.js")),r._pyodideURLs=null!==(n=null==e?void 0:e.pyodideURLs)&&void 0!==n?n:r._pyodideURLs,r}return(0,c.A)(t,e),(0,a.A)(t,[{key:"basthonModulesRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.basthonRoot(e)+"/modules"}},{key:"language",value:function(){return"python3"}},{key:"languageName",value:function(){return"Python 3"}},{key:"moduleExts",value:function(){return["py"]}},{key:"_onload",value:(b=(0,r.A)(p().mark((function e(){var t,n,r,o,a,i;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=window.pyodide,n=t._api.repodata_packages,r=0,o=Object.keys(n);r<o.length;r++)a=o[r],(i=n[a]).file_name=i.file_name.replace("{basthonRoot}",this.basthonRoot(!0));return this.pythonVersion=t.runPython("import platform ; platform.python_version()"),e.next=6,t.loadPackage("basthon");case 6:this.__kernel__=t.pyimport("basthon").__kernel__;case 7:case"end":return e.stop()}}),e,this)}))),function(){return b.apply(this,arguments)})},{key:"_init",value:(w=(0,r.A)(p().mark((function e(){var n,r,o,a;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_(t,"_init",this,3)([]);case 2:n=this._pyodideURLs[0],r=f(this._pyodideURLs),e.prev=4,r.s();case 6:if((o=r.n()).done){e.next=22;break}return a=(a=o.value).replace("{PYODIDE_VERSION}","0.23.2"),e.prev=9,e.next=12,fetch(a,{method:"HEAD"});case 12:if(!e.sent.ok){e.next=16;break}return n=a,e.abrupt("break",22);case 16:e.next=20;break;case 18:e.prev=18,e.t0=e.catch(9);case 20:e.next=6;break;case 22:e.next=27;break;case 24:e.prev=24,e.t1=e.catch(4),r.e(e.t1);case 27:return e.prev=27,r.f(),e.finish(27);case 30:return e.prev=30,e.next=33,t.loadScript(n);case 33:e.next=40;break;case 35:throw e.prev=35,e.t2=e.catch(30),console.log(e.t2),console.error("Can't load pyodide.js"),e.t2;case 40:if(null!=window.loadPyodide){e.next=43;break}throw console.log("window.loadPyodide is null!"),new Error("Can't load pyodide.js");case 43:return e.prev=43,e.next=46,window.loadPyodide({lockFileURL:this.basthonRoot()+"/repodata.json"});case 46:window.pyodide=e.sent,e.next=54;break;case 49:throw e.prev=49,e.t3=e.catch(43),console.log(e.t3),console.error("Can't load Python from Pyodide"),e.t3;case 54:return e.next=56,this._onload();case 56:case"end":return e.stop()}}),e,this,[[4,24,27,30],[9,18],[30,35],[43,49]])}))),function(){return w.apply(this,arguments)})},{key:"execution_count",get:function(){return this.__kernel__.execution_count()}},{key:"evalAsync",value:(k=(0,r.A)(p().mark((function e(t,n,r){var o,a,i,s=arguments;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=s.length>3&&void 0!==s[3]?s[3]:null,void 0===n&&(n=function(e){console.log(e)}),void 0===r&&(r=function(e){console.error(e)}),e.next=5,this.__kernel__.eval(t,n,r,o);case 5:if((a=e.sent)instanceof window.pyodide.ffi.PyProxy){e.next=8;break}throw a;case 8:return i=a.toJs({create_proxies:!1,dict_converter:Object.fromEntries}),a.destroy(),e.abrupt("return",i);case 11:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return k.apply(this,arguments)})},{key:"_start",value:(v=(0,r.A)(p().mark((function e(){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_(t,"_start",this,3)([]);case 2:this.__kernel__.start();case 3:case"end":return e.stop()}}),e,this)}))),function(){return v.apply(this,arguments)})},{key:"_stop",value:(h=(0,r.A)(p().mark((function e(){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.__kernel__.stop(),e.next=3,_(t,"_stop",this,3)([]);case 3:case"end":return e.stop()}}),e,this)}))),function(){return h.apply(this,arguments)})},{key:"putFile",value:(d=(0,r.A)(p().mark((function e(t,n){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.__kernel__.put_file(t,n);case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return d.apply(this,arguments)})},{key:"putModule",value:(l=(0,r.A)(p().mark((function e(t,n){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.__kernel__.put_module(t,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"userModules",value:function(){var e=this.__kernel__.user_modules();if(!(e instanceof window.pyodide.ffi.PyProxy))return e;var t=e.toJs();return e.destroy(),t}},{key:"getFile",value:function(e){return this.__kernel__.get_file(e).toJs()}},{key:"getUserModuleFile",value:function(e){return this.__kernel__.get_user_module_file(e).toJs()}},{key:"more",value:(u=(0,r.A)(p().mark((function e(t){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.__kernel__.more(t));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"banner",value:function(){return'Python 3.11.2 (main, May 3 2023 04:00:05) on WebAssembly/Emscripten\nType "help", "copyright", "credits" or "license" for more information.'}},{key:"complete",value:(n=(0,r.A)(p().mark((function e(t){var n,r;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=this.__kernel__.complete(t))instanceof window.pyodide.ffi.PyProxy){e.next=3;break}return e.abrupt("return",n);case 3:return r=n.toJs(),n.destroy(),e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"chdir",value:function(e){window.pyodide._module.FS.chdir(e)}},{key:"mkdir",value:function(e){window.pyodide._module.F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2G,GAAA,cAAAA,EAAAlG,KAAAkG,EAAAjG,MAAA,cAAAiG,EAAApE,OAAA,SACN1C,KAAKd,WAAW6H,KAAKF,IAAO,wBAAAC,EAAAtF,OAAA,GAAAoF,EAAA,UACtC,SAFSI,GAAA,OAAAL,EAAAlF,MAAC,KAAD5B,UAAA,IAGV,CAAAH,IAAA,SAAAC,MAGA,WAKI,MAAO,8IACX,GACA,CAAAD,IAAA,WAAAC,OAAAsH,GAAA/G,EAAAA,EAAAA,GAAAC,IAAAA,MAMA,SAAA+G,EAAepD,GAAI,IAAAI,EAAAC,EAAA,OAAAhE,IAAAA,MAAA,SAAAgH,GAAA,cAAAA,EAAAvG,KAAAuG,EAAAtG,MAAA,OAC6B,IAAtCqD,EAAQlE,KAAKd,WAAWkI,SAAStD,cAChBhD,OAAOT,QAAQmE,IAAIC,QAAO,CAAA0C,EAAAtG,KAAA,eAAAsG,EAAAzE,OAAA,SACtCwB,GAAK,OAEA,OADVC,EAAMD,EAAMQ,OAClBR,EAAMY,UAAUqC,EAAAzE,OAAA,SACTyB,GAAG,wBAAAgD,EAAA3F,OAAA,GAAA0F,EAAA,UACb,SAPaG,GAAA,OAAAJ,EAAAxF,MAAC,KAAD5B,UAAA,IAQd,CAAAH,IAAA,QAAAC,MAGA,SAAM6G,GACF1F,OAAOT,QAAQiH,QAAQC,GAAGC,MAAMhB,EACpC,GACA,CAAA9G,IAAA,QAAAC,MAGA,SAAM6G,GACF1F,OAAOT,QAAQiH,QAAQC,GAAGE,MAAMjB,EACpC,KAzBA,IAAAS,EAjBAN,EA9BAV,EANAR,EAPAH,EAPAJ,EA1BAtB,EAhDAlC,EAjBAzB,CAuLC,CArNqB,CAASyH,EAAAA,E","sources":["webpack://@basthon/browser-bundle/../kernel-python3/lib/kernel.js"],"sourcesContent":["import { KernelBase } from \"@basthon/kernel-base\";\nconst PYODIDE_VERSION = \"0.23.2\";\n/**\n * A Python kernel that satisfies Basthon's API.\n */\nexport class Python3Kernel extends KernelBase {\n constructor(options) {\n super(options);\n /**\n * Where to find pyodide.js (private).\n */\n this._pyodideURLs = [\n `https://cdn.jsdelivr.net/pyodide/v{PYODIDE_VERSION}/full/pyodide.js`,\n ];\n this.__kernel__ = null;\n this.pythonVersion = \"\";\n // for locally installed Pyodide\n this._pyodideURLs.unshift(`${this.basthonRoot()}/pyodide/pyodide.js`);\n this._pyodideURLs = options?.pyodideURLs ?? this._pyodideURLs;\n }\n /**\n * Get the URL of Basthon modules dir.\n */\n basthonModulesRoot(absolute = false) {\n return this.basthonRoot(absolute) + \"/modules\";\n }\n language() {\n return \"python3\";\n }\n languageName() {\n return \"Python 3\";\n }\n moduleExts() {\n return [\"py\"];\n }\n /**\n * What to do when loaded (private).\n */\n async _onload() {\n const pyodide = window.pyodide;\n // reformat repodata\n const packages = pyodide._api.repodata_packages;\n for (let p of Object.keys(packages)) {\n const item = packages[p];\n item.file_name = item.file_name.replace(\"{basthonRoot}\", this.basthonRoot(true));\n }\n // get the version of Python from Python\n this.pythonVersion = pyodide.runPython(\"import platform ; platform.python_version()\");\n // load basthon and get kernel\n await pyodide.loadPackage(\"basthon\");\n this.__kernel__ = pyodide.pyimport(\"basthon\").__kernel__;\n }\n /**\n * Start the Basthon kernel asynchronously.\n */\n async _init() {\n await super._init();\n let pyodideURL = this._pyodideURLs[0];\n for (let url of this._pyodideURLs) {\n url = url.replace(\"{PYODIDE_VERSION}\", PYODIDE_VERSION);\n try {\n const response = await fetch(url, { method: \"HEAD\" });\n if (response.ok) {\n pyodideURL = url;\n break;\n }\n }\n catch (e) { }\n }\n try {\n await Python3Kernel.loadScript(pyodideURL);\n }\n catch (error) {\n console.log(error);\n console.error(\"Can't load pyodide.js\");\n throw error;\n }\n if (window.loadPyodide == null) {\n console.log(\"window.loadPyodide is null!\");\n throw new Error(\"Can't load pyodide.js\");\n }\n try {\n // loading with custom repodata.json\n window.pyodide = await window.loadPyodide({\n lockFileURL: this.basthonRoot() + \"/repodata.json\",\n });\n }\n catch (error) {\n console.log(error);\n console.error(\"Can't load Python from Pyodide\");\n throw error;\n }\n await this._onload();\n }\n /**\n * Execution count getter overload.\n */\n get execution_count() {\n return this.__kernel__.execution_count();\n }\n /**\n * Basthon async code evaluation function.\n */\n async evalAsync(code, outCallback, errCallback, data = null) {\n if (typeof outCallback === \"undefined\") {\n outCallback = function (text) {\n console.log(text);\n };\n }\n if (typeof errCallback === \"undefined\") {\n errCallback = function (text) {\n console.error(text);\n };\n }\n // dependencies are loaded by eval\n const proxy = await this.__kernel__.eval(code, outCallback, errCallback, data);\n // when an error occures, proxy should be the error message\n if (!(proxy instanceof window.pyodide.ffi.PyProxy))\n throw proxy;\n const res = proxy.toJs({\n create_proxies: false,\n dict_converter: Object.fromEntries,\n });\n proxy.destroy();\n return res;\n }\n /**\n * Start the kernel.\n */\n async _start() {\n await super._start();\n this.__kernel__.start();\n }\n /**\n * Stop the kernel.\n */\n async _stop() {\n this.__kernel__.stop();\n await super._stop();\n }\n /**\n * Put a file on the local (emulated) filesystem.\n */\n async putFile(filename, content) {\n this.__kernel__.put_file(filename, content);\n }\n /**\n * Put an importable module on the local (emulated) filesystem\n * and load dependencies.\n */\n async putModule(filename, content) {\n return await this.__kernel__.put_module(filename, content);\n }\n /**\n * List modules launched via putModule.\n */\n userModules() {\n const proxy = this.__kernel__.user_modules();\n if (!(proxy instanceof window.pyodide.ffi.PyProxy))\n return proxy;\n const res = proxy.toJs();\n proxy.destroy();\n return res;\n }\n /**\n * Get a file content from the VFS.\n */\n getFile(path) {\n return this.__kernel__.get_file(path).toJs();\n }\n /**\n * Get a user module file content.\n */\n getUserModuleFile(filename) {\n return this.__kernel__.get_user_module_file(filename).toJs();\n }\n /**\n * Is the source ready to be evaluated or want we more?\n * Usefull to set ps1/ps2 for teminal prompt.\n */\n async more(source) {\n return this.__kernel__.more(source);\n }\n /**\n * Mimic the CPython's REPL banner.\n */\n banner() {\n /* We don't return this.__kernel__.banner();\n * since the banner should be available ASAP.\n * In tests, we check this.banner() === this.__kernel__.banner().\n */\n return `Python 3.11.2 (main, May 3 2023 04:00:05) on WebAssembly/Emscripten\\nType \\\"help\\\", \\\"copyright\\\", \\\"credits\\\" or \\\"license\\\" for more information.`;\n }\n /**\n * Complete a code at the end (usefull for tab completion).\n *\n * Returns an array of two elements: the list of completions\n * and the start index.\n */\n async complete(code) {\n const proxy = this.__kernel__.complete(code);\n if (!(proxy instanceof window.pyodide.ffi.PyProxy))\n return proxy;\n const res = proxy.toJs();\n proxy.destroy();\n return res;\n }\n /**\n * Change current directory (Python's virtual FS).\n */\n chdir(path) {\n window.pyodide._module.FS.chdir(path);\n }\n /**\n * Create directory (Python's virtual FS).\n */\n mkdir(path) {\n window.pyodide._module.FS.mkdir(path);\n }\n}\n"],"names":["Python3Kernel","_KernelBase","options","_options$pyodideURLs","_this","_classCallCheck","_pyodideURLs","__kernel__","pythonVersion","unshift","concat","basthonRoot","pyodideURLs","_inherits","_createClass","key","value","absolute","arguments","length","undefined","this","_onload2","_asyncToGenerator","_regeneratorRuntime","_callee","pyodide","packages","_i","_Object$keys","p","item","_context","prev","next","window","_api","repodata_packages","Object","keys","file_name","replace","runPython","loadPackage","pyimport","stop","apply","_init2","_callee2","pyodideURL","_iterator","_step","url","_context2","_superPropGet","_createForOfIteratorHelper","s","n","done","fetch","method","sent","ok","abrupt","t0","t1","e","f","finish","loadScript","t2","console","log","error","loadPyodide","Error","lockFileURL","t3","_onload","get","execution_count","_evalAsync","_callee3","code","outCallback","errCallback","data","proxy","res","_args3","_context3","text","eval","ffi","PyProxy","toJs","create_proxies","dict_converter","fromEntries","destroy","_x","_x2","_x3","_start2","_callee4","_context4","start","_stop2","_callee5","_context5","_putFile","_callee6","filename","content","_context6","put_file","_x4","_x5","_putModule","_callee7","_context7","put_module","_x6","_x7","user_modules","path","get_file","get_user_module_file","_more","_callee8","source","_context8","more","_x8","_complete","_callee9","_context9","complete","_x9","_module","FS","chdir","mkdir","KernelBase"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"k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ACtC,SAFSI,GAAA,OAAAL,EAAAlF,MAAC,KAAD5B,UAAA,IAGV,CAAAH,IAAA,SAAAC,MAGA,WAKI,MAAO,8IACX,GACA,CAAAD,IAAA,WAAAC,OAAAsH,GAAA/G,EAAAA,EAAAA,GAAAC,IAAAA,MAMA,SAAA+G,EAAepD,GAAI,IAAAI,EAAAC,EAAA,OAAAhE,IAAAA,MAAA,SAAAgH,GAAA,cAAAA,EAAAvG,KAAAuG,EAAAtG,MAAA,OAC6B,IAAtCqD,EAAQlE,KAAKd,WAAWkI,SAAStD,cAChBhD,OAAOT,QAAQmE,IAAIC,QAAO,CAAA0C,EAAAtG,KAAA,eAAAsG,EAAAzE,OAAA,SACtCwB,GAAK,OAEA,OADVC,EAAMD,EAAMQ,OAClBR,EAAMY,UAAUqC,EAAAzE,OAAA,SACTyB,GAAG,wBAAAgD,EAAA3F,OAAA,GAAA0F,EAAA,UACb,SAPaG,GAAA,OAAAJ,EAAAxF,MAAC,KAAD5B,UAAA,IAQd,CAAAH,IAAA,QAAAC,MAGA,SAAM6G,GACF1F,OAAOT,QAAQiH,QAAQC,GAAGC,MAAMhB,EACpC,GACA,CAAA9G,IAAA,QAAAC,MAGA,SAAM6G,GACF1F,OAAOT,QAAQiH,QAAQC,GAAGE,MAAMjB,EACpC,KAzBA,IAAAS,EAjBAN,EA9BAV,EANAR,EAPAH,EAPAJ,EA1BAtB,EAhDAlC,EAjBAzB,CAuLC,CArNqB,CAASyH,EAAAA,E","sources":["webpack://@basthon/browser-bundle/../kernel-python3/lib/kernel.js"],"sourcesContent":["import { KernelBase } from \"@basthon/kernel-base\";\nconst PYODIDE_VERSION = \"0.23.2\";\n/**\n * A Python kernel that satisfies Basthon's API.\n */\nexport class Python3Kernel extends KernelBase {\n constructor(options) {\n super(options);\n /**\n * Where to find pyodide.js (private).\n */\n this._pyodideURLs = [\n `https://cdn.jsdelivr.net/pyodide/v{PYODIDE_VERSION}/full/pyodide.js`,\n ];\n this.__kernel__ = null;\n this.pythonVersion = \"\";\n // for locally installed Pyodide\n this._pyodideURLs.unshift(`${this.basthonRoot()}/pyodide/pyodide.js`);\n this._pyodideURLs = options?.pyodideURLs ?? this._pyodideURLs;\n }\n /**\n * Get the URL of Basthon modules dir.\n */\n basthonModulesRoot(absolute = false) {\n return this.basthonRoot(absolute) + \"/modules\";\n }\n language() {\n return \"python3\";\n }\n languageName() {\n return \"Python 3\";\n }\n moduleExts() {\n return [\"py\"];\n }\n /**\n * What to do when loaded (private).\n */\n async _onload() {\n const pyodide = window.pyodide;\n // reformat repodata\n const packages = pyodide._api.repodata_packages;\n for (let p of Object.keys(packages)) {\n const item = packages[p];\n item.file_name = item.file_name.replace(\"{basthonRoot}\", this.basthonRoot(true));\n }\n // get the version of Python from Python\n this.pythonVersion = pyodide.runPython(\"import platform ; platform.python_version()\");\n // load basthon and get kernel\n await pyodide.loadPackage(\"basthon\");\n this.__kernel__ = pyodide.pyimport(\"basthon\").__kernel__;\n }\n /**\n * Start the Basthon kernel asynchronously.\n */\n async _init() {\n await super._init();\n let pyodideURL = this._pyodideURLs[0];\n for (let url of this._pyodideURLs) {\n url = url.replace(\"{PYODIDE_VERSION}\", PYODIDE_VERSION);\n try {\n const response = await fetch(url, { method: \"HEAD\" });\n if (response.ok) {\n pyodideURL = url;\n break;\n }\n }\n catch (e) { }\n }\n try {\n await Python3Kernel.loadScript(pyodideURL);\n }\n catch (error) {\n console.log(error);\n console.error(\"Can't load pyodide.js\");\n throw error;\n }\n if (window.loadPyodide == null) {\n console.log(\"window.loadPyodide is null!\");\n throw new Error(\"Can't load pyodide.js\");\n }\n try {\n // loading with custom repodata.json\n window.pyodide = await window.loadPyodide({\n lockFileURL: this.basthonRoot() + \"/repodata.json\",\n });\n }\n catch (error) {\n console.log(error);\n console.error(\"Can't load Python from Pyodide\");\n throw error;\n }\n await this._onload();\n }\n /**\n * Execution count getter overload.\n */\n get execution_count() {\n return this.__kernel__.execution_count();\n }\n /**\n * Basthon async code evaluation function.\n */\n async evalAsync(code, outCallback, errCallback, data = null) {\n if (typeof outCallback === \"undefined\") {\n outCallback = function (text) {\n console.log(text);\n };\n }\n if (typeof errCallback === \"undefined\") {\n errCallback = function (text) {\n console.error(text);\n };\n }\n // dependencies are loaded by eval\n const proxy = await this.__kernel__.eval(code, outCallback, errCallback, data);\n // when an error occures, proxy should be the error message\n if (!(proxy instanceof window.pyodide.ffi.PyProxy))\n throw proxy;\n const res = proxy.toJs({\n create_proxies: false,\n dict_converter: Object.fromEntries,\n });\n proxy.destroy();\n return res;\n }\n /**\n * Start the kernel.\n */\n async _start() {\n await super._start();\n this.__kernel__.start();\n }\n /**\n * Stop the kernel.\n */\n async _stop() {\n this.__kernel__.stop();\n await super._stop();\n }\n /**\n * Put a file on the local (emulated) filesystem.\n */\n async putFile(filename, content) {\n this.__kernel__.put_file(filename, content);\n }\n /**\n * Put an importable module on the local (emulated) filesystem\n * and load dependencies.\n */\n async putModule(filename, content) {\n return await this.__kernel__.put_module(filename, content);\n }\n /**\n * List modules launched via putModule.\n */\n userModules() {\n const proxy = this.__kernel__.user_modules();\n if (!(proxy instanceof window.pyodide.ffi.PyProxy))\n return proxy;\n const res = proxy.toJs();\n proxy.destroy();\n return res;\n }\n /**\n * Get a file content from the VFS.\n */\n getFile(path) {\n return this.__kernel__.get_file(path).toJs();\n }\n /**\n * Get a user module file content.\n */\n getUserModuleFile(filename) {\n return this.__kernel__.get_user_module_file(filename).toJs();\n }\n /**\n * Is the source ready to be evaluated or want we more?\n * Usefull to set ps1/ps2 for teminal prompt.\n */\n async more(source) {\n return this.__kernel__.more(source);\n }\n /**\n * Mimic the CPython's REPL banner.\n */\n banner() {\n /* We don't return this.__kernel__.banner();\n * since the banner should be available ASAP.\n * In tests, we check this.banner() === this.__kernel__.banner().\n */\n return `Python 3.11.2 (main, May 3 2023 04:00:05) on WebAssembly/Emscripten\\nType \\\"help\\\", \\\"copyright\\\", \\\"credits\\\" or \\\"license\\\" for more information.`;\n }\n /**\n * Complete a code at the end (usefull for tab completion).\n *\n * Returns an array of two elements: the list of completions\n * and the start index.\n */\n async complete(code) {\n const proxy = this.__kernel__.complete(code);\n if (!(proxy instanceof window.pyodide.ffi.PyProxy))\n return proxy;\n const res = proxy.toJs();\n proxy.destroy();\n return res;\n }\n /**\n * Change current directory (Python's virtual FS).\n */\n chdir(path) {\n window.pyodide._module.FS.chdir(path);\n }\n /**\n * Create directory (Python's virtual FS).\n */\n mkdir(path) {\n window.pyodide._module.FS.mkdir(path);\n }\n}\n"],"names":["Python3Kernel","_KernelBase","options","_options$pyodideURLs","_this","_classCallCheck","_pyodideURLs","__kernel__","pythonVersion","unshift","concat","basthonRoot","pyodideURLs","_inherits","_createClass","key","value","absolute","arguments","length","undefined","this","_onload2","_asyncToGenerator","_regeneratorRuntime","_callee","pyodide","packages","_i","_Object$keys","p","item","_context","prev","next","window","_api","repodata_packages","Object","keys","file_name","replace","runPython","loadPackage","pyimport","stop","apply","_init2","_callee2","pyodideURL","_iterator","_step","url","_context2","_superPropGet","_createForOfIteratorHelper","s","n","done","fetch","method","sent","ok","abrupt","t0","t1","e","f","finish","loadScript","t2","console","log","error","loadPyodide","Error","lockFileURL","t3","_onload","get","execution_count","_evalAsync","_callee3","code","outCallback","errCallback","data","proxy","res","_args3","_context3","text","eval","ffi","PyProxy","toJs","create_proxies","dict_converter","fromEntries","destroy","_x","_x2","_x3","_start2","_callee4","_context4","start","_stop2","_callee5","_context5","_putFile","_callee6","filename","content","_context6","put_file","_x4","_x5","_putModule","_callee7","_context7","put_module","_x6","_x7","user_modules","path","get_file","get_user_module_file","_more","_callee8","source","_context8","more","_x8","_complete","_callee9","_context9","complete","_x9","_module","FS","chdir","mkdir","KernelBase"],"sourceRoot":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basthon/browser-bundle",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.64.0",
|
|
4
4
|
"description": "Basthon - Browser bundle",
|
|
5
5
|
"homepage": "https://basthon.fr",
|
|
6
6
|
"bugs": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"lib"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@basthon/kernel-loader": "0.
|
|
24
|
+
"@basthon/kernel-loader": "0.64.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@babel/core": "^7.24.4",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"build:prod": "webpack --config webpack.prod.config.js",
|
|
55
55
|
"clean": "rm -rf lib/"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "1e6bb930f8b51e2a307179afcd9426d2672af4e3"
|
|
58
58
|
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* jQuery UI CSS Framework 1.8.24
|
|
3
|
-
*
|
|
4
|
-
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
|
5
|
-
* Dual licensed under the MIT or GPL Version 2 licenses.
|
|
6
|
-
* http://jquery.org/license
|
|
7
|
-
*
|
|
8
|
-
* http://docs.jquery.com/UI/Theming/API
|
|
9
|
-
*/.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{position:absolute!important;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px)}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:after,.ui-helper-clearfix:before{content:"";display:table}.ui-helper-clearfix:after{clear:both}.ui-helper-clearfix{zoom:1}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-state-disabled{cursor:default!important}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-overlay{position:absolute;top:0;left:0;width:100%;height:100%}/*!
|
|
10
|
-
* jQuery UI CSS Framework 1.8.24
|
|
11
|
-
*
|
|
12
|
-
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
|
13
|
-
* Dual licensed under the MIT or GPL Version 2 licenses.
|
|
14
|
-
* http://jquery.org/license
|
|
15
|
-
*
|
|
16
|
-
* http://docs.jquery.com/UI/Theming/API
|
|
17
|
-
*
|
|
18
|
-
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Trebuchet%20MS,%20Tahoma,%20Verdana,%20Arial,%20sans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=f6a828&bgTextureHeader=12_gloss_wave.png&bgImgOpacityHeader=35&borderColorHeader=e78f08&fcHeader=ffffff&iconColorHeader=ffffff&bgColorContent=eeeeee&bgTextureContent=03_highlight_soft.png&bgImgOpacityContent=100&borderColorContent=dddddd&fcContent=333333&iconColorContent=222222&bgColorDefault=f6f6f6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=100&borderColorDefault=cccccc&fcDefault=1c94c4&iconColorDefault=ef8c08&bgColorHover=fdf5ce&bgTextureHover=02_glass.png&bgImgOpacityHover=100&borderColorHover=fbcb09&fcHover=c77405&iconColorHover=ef8c08&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=fbd850&fcActive=eb8f00&iconColorActive=ef8c08&bgColorHighlight=ffe45c&bgTextureHighlight=03_highlight_soft.png&bgImgOpacityHighlight=75&borderColorHighlight=fed22f&fcHighlight=363636&iconColorHighlight=228ef1&bgColorError=b81900&bgTextureError=08_diagonals_thick.png&bgImgOpacityError=18&borderColorError=cd0a0a&fcError=ffffff&iconColorError=ffd27a&bgColorOverlay=666666&bgTextureOverlay=08_diagonals_thick.png&bgImgOpacityOverlay=20&opacityOverlay=50&bgColorShadow=000000&bgTextureShadow=01_flat.png&bgImgOpacityShadow=10&opacityShadow=20&thicknessShadow=5px&offsetTopShadow=-5px&offsetLeftShadow=-5px&cornerRadiusShadow=5px
|
|
19
|
-
*/.ui-widget{font-family:Trebuchet MS,Tahoma,Verdana,Arial,sans-serif;font-size:1.1em}.ui-widget .ui-widget{font-size:1em}.ui-widget button,.ui-widget input,.ui-widget select,.ui-widget textarea{font-family:Trebuchet MS,Tahoma,Verdana,Arial,sans-serif;font-size:1em}.ui-widget-content{border:1px solid #ccc;background:#eee url(images/ui-bg_highlight-soft_100_eeeeee_1x100.png) 50% top repeat-x;color:#333}.ui-widget-content a{color:#333}.ui-widget-header{border:1px solid #e78f08;background:#f6a828 url(images/ui-bg_gloss-wave_35_f6a828_500x100.png) 50% 50% repeat-x;color:#fff;font-weight:700}.ui-widget-header a{color:#fff}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{border:1px solid #ccc;background:#f6f6f6 url(images/ui-bg_glass_100_f6f6f6_1x400.png) 50% 50% repeat-x;font-weight:700;color:#1c94c4}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited{color:#1c94c4;text-decoration:none}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{border:1px solid #fbd850;background:#fff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x;font-weight:700;color:#eb8f00}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#eb8f00;text-decoration:none}.ui-widget :active{outline:0}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #fed22f;background:#ffe45c url(images/ui-bg_highlight-soft_75_ffe45c_1x100.png) 50% top repeat-x;color:#363636}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#363636}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #cd0a0a;background:#b81900 url(images/ui-bg_diagonals-thick_18_b81900_40x40.png) 50% 50% repeat;color:#fff}.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a{color:#fff}.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#fff}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:700}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:400}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.ui-icon{width:16px;height:16px;background-image:url(images/ui-icons_222222_256x240.png)}.ui-widget-content .ui-icon{background-image:url(images/ui-icons_222222_256x240.png)}.ui-widget-header .ui-icon{background-image:url(images/ui-icons_ffffff_256x240.png)}.ui-state-default .ui-icon{background-image:url(images/ui-icons_ef8c08_256x240.png)}.ui-state-focus .ui-icon,.ui-state-hover .ui-icon{background-image:url(images/ui-icons_ef8c08_256x240.png)}.ui-state-active .ui-icon{background-image:url(images/ui-icons_ef8c08_256x240.png)}.ui-state-highlight .ui-icon{background-image:url(images/ui-icons_228ef1_256x240.png)}.ui-state-error .ui-icon,.ui-state-error-text .ui-icon{background-image:url(images/ui-icons_ffd27a_256x240.png)}.ui-icon-carat-1-n{background-position:0 0}.ui-icon-carat-1-ne{background-position:-16px 0}.ui-icon-carat-1-e{background-position:-32px 0}.ui-icon-carat-1-se{background-position:-48px 0}.ui-icon-carat-1-s{background-position:-64px 0}.ui-icon-carat-1-sw{background-position:-80px 0}.ui-icon-carat-1-w{background-position:-96px 0}.ui-icon-carat-1-nw{background-position:-112px 0}.ui-icon-carat-2-n-s{background-position:-128px 0}.ui-icon-carat-2-e-w{background-position:-144px 0}.ui-icon-triangle-1-n{background-position:0 -16px}.ui-icon-triangle-1-ne{background-position:-16px -16px}.ui-icon-triangle-1-e{background-position:-32px -16px}.ui-icon-triangle-1-se{background-position:-48px -16px}.ui-icon-triangle-1-s{background-position:-64px -16px}.ui-icon-triangle-1-sw{background-position:-80px -16px}.ui-icon-triangle-1-w{background-position:-96px -16px}.ui-icon-triangle-1-nw{background-position:-112px -16px}.ui-icon-triangle-2-n-s{background-position:-128px -16px}.ui-icon-triangle-2-e-w{background-position:-144px -16px}.ui-icon-arrow-1-n{background-position:0 -32px}.ui-icon-arrow-1-ne{background-position:-16px -32px}.ui-icon-arrow-1-e{background-position:-32px -32px}.ui-icon-arrow-1-se{background-position:-48px -32px}.ui-icon-arrow-1-s{background-position:-64px -32px}.ui-icon-arrow-1-sw{background-position:-80px -32px}.ui-icon-arrow-1-w{background-position:-96px -32px}.ui-icon-arrow-1-nw{background-position:-112px -32px}.ui-icon-arrow-2-n-s{background-position:-128px -32px}.ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.ui-icon-arrow-2-e-w{background-position:-160px -32px}.ui-icon-arrow-2-se-nw{background-position:-176px -32px}.ui-icon-arrowstop-1-n{background-position:-192px -32px}.ui-icon-arrowstop-1-e{background-position:-208px -32px}.ui-icon-arrowstop-1-s{background-position:-224px -32px}.ui-icon-arrowstop-1-w{background-position:-240px -32px}.ui-icon-arrowthick-1-n{background-position:0 -48px}.ui-icon-arrowthick-1-ne{background-position:-16px -48px}.ui-icon-arrowthick-1-e{background-position:-32px -48px}.ui-icon-arrowthick-1-se{background-position:-48px -48px}.ui-icon-arrowthick-1-s{background-position:-64px -48px}.ui-icon-arrowthick-1-sw{background-position:-80px -48px}.ui-icon-arrowthick-1-w{background-position:-96px -48px}.ui-icon-arrowthick-1-nw{background-position:-112px -48px}.ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.ui-icon-arrowreturn-1-w{background-position:-64px -64px}.ui-icon-arrowreturn-1-n{background-position:-80px -64px}.ui-icon-arrowreturn-1-e{background-position:-96px -64px}.ui-icon-arrowreturn-1-s{background-position:-112px -64px}.ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.ui-icon-arrow-4{background-position:0 -80px}.ui-icon-arrow-4-diag{background-position:-16px -80px}.ui-icon-extlink{background-position:-32px -80px}.ui-icon-newwin{background-position:-48px -80px}.ui-icon-refresh{background-position:-64px -80px}.ui-icon-shuffle{background-position:-80px -80px}.ui-icon-transfer-e-w{background-position:-96px -80px}.ui-icon-transferthick-e-w{background-position:-112px -80px}.ui-icon-folder-collapsed{background-position:0 -96px}.ui-icon-folder-open{background-position:-16px -96px}.ui-icon-document{background-position:-32px -96px}.ui-icon-document-b{background-position:-48px -96px}.ui-icon-note{background-position:-64px -96px}.ui-icon-mail-closed{background-position:-80px -96px}.ui-icon-mail-open{background-position:-96px -96px}.ui-icon-suitcase{background-position:-112px -96px}.ui-icon-comment{background-position:-128px -96px}.ui-icon-person{background-position:-144px -96px}.ui-icon-print{background-position:-160px -96px}.ui-icon-trash{background-position:-176px -96px}.ui-icon-locked{background-position:-192px -96px}.ui-icon-unlocked{background-position:-208px -96px}.ui-icon-bookmark{background-position:-224px -96px}.ui-icon-tag{background-position:-240px -96px}.ui-icon-home{background-position:0 -112px}.ui-icon-flag{background-position:-16px -112px}.ui-icon-calendar{background-position:-32px -112px}.ui-icon-cart{background-position:-48px -112px}.ui-icon-pencil{background-position:-64px -112px}.ui-icon-clock{background-position:-80px -112px}.ui-icon-disk{background-position:-96px -112px}.ui-icon-calculator{background-position:-112px -112px}.ui-icon-zoomin{background-position:-128px -112px}.ui-icon-zoomout{background-position:-144px -112px}.ui-icon-search{background-position:-160px -112px}.ui-icon-wrench{background-position:-176px -112px}.ui-icon-gear{background-position:-192px -112px}.ui-icon-heart{background-position:-208px -112px}.ui-icon-star{background-position:-224px -112px}.ui-icon-link{background-position:-240px -112px}.ui-icon-cancel{background-position:0 -128px}.ui-icon-plus{background-position:-16px -128px}.ui-icon-plusthick{background-position:-32px -128px}.ui-icon-minus{background-position:-48px -128px}.ui-icon-minusthick{background-position:-64px -128px}.ui-icon-close{background-position:-80px -128px}.ui-icon-closethick{background-position:-96px -128px}.ui-icon-key{background-position:-112px -128px}.ui-icon-lightbulb{background-position:-128px -128px}.ui-icon-scissors{background-position:-144px -128px}.ui-icon-clipboard{background-position:-160px -128px}.ui-icon-copy{background-position:-176px -128px}.ui-icon-contact{background-position:-192px -128px}.ui-icon-image{background-position:-208px -128px}.ui-icon-video{background-position:-224px -128px}.ui-icon-script{background-position:-240px -128px}.ui-icon-alert{background-position:0 -144px}.ui-icon-info{background-position:-16px -144px}.ui-icon-notice{background-position:-32px -144px}.ui-icon-help{background-position:-48px -144px}.ui-icon-check{background-position:-64px -144px}.ui-icon-bullet{background-position:-80px -144px}.ui-icon-radio-off{background-position:-96px -144px}.ui-icon-radio-on{background-position:-112px -144px}.ui-icon-pin-w{background-position:-128px -144px}.ui-icon-pin-s{background-position:-144px -144px}.ui-icon-play{background-position:0 -160px}.ui-icon-pause{background-position:-16px -160px}.ui-icon-seek-next{background-position:-32px -160px}.ui-icon-seek-prev{background-position:-48px -160px}.ui-icon-seek-end{background-position:-64px -160px}.ui-icon-seek-start{background-position:-80px -160px}.ui-icon-seek-first{background-position:-80px -160px}.ui-icon-stop{background-position:-96px -160px}.ui-icon-eject{background-position:-112px -160px}.ui-icon-volume-off{background-position:-128px -160px}.ui-icon-volume-on{background-position:-144px -160px}.ui-icon-power{background-position:0 -176px}.ui-icon-signal-diag{background-position:-16px -176px}.ui-icon-signal{background-position:-32px -176px}.ui-icon-battery-0{background-position:-48px -176px}.ui-icon-battery-1{background-position:-64px -176px}.ui-icon-battery-2{background-position:-80px -176px}.ui-icon-battery-3{background-position:-96px -176px}.ui-icon-circle-plus{background-position:0 -192px}.ui-icon-circle-minus{background-position:-16px -192px}.ui-icon-circle-close{background-position:-32px -192px}.ui-icon-circle-triangle-e{background-position:-48px -192px}.ui-icon-circle-triangle-s{background-position:-64px -192px}.ui-icon-circle-triangle-w{background-position:-80px -192px}.ui-icon-circle-triangle-n{background-position:-96px -192px}.ui-icon-circle-arrow-e{background-position:-112px -192px}.ui-icon-circle-arrow-s{background-position:-128px -192px}.ui-icon-circle-arrow-w{background-position:-144px -192px}.ui-icon-circle-arrow-n{background-position:-160px -192px}.ui-icon-circle-zoomin{background-position:-176px -192px}.ui-icon-circle-zoomout{background-position:-192px -192px}.ui-icon-circle-check{background-position:-208px -192px}.ui-icon-circlesmall-plus{background-position:0 -208px}.ui-icon-circlesmall-minus{background-position:-16px -208px}.ui-icon-circlesmall-close{background-position:-32px -208px}.ui-icon-squaresmall-plus{background-position:-48px -208px}.ui-icon-squaresmall-minus{background-position:-64px -208px}.ui-icon-squaresmall-close{background-position:-80px -208px}.ui-icon-grip-dotted-vertical{background-position:0 -224px}.ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.ui-icon-grip-solid-vertical{background-position:-32px -224px}.ui-icon-grip-solid-horizontal{background-position:-48px -224px}.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.ui-icon-grip-diagonal-se{background-position:-80px -224px}.ui-corner-all,.ui-corner-left,.ui-corner-tl,.ui-corner-top{-moz-border-radius-topleft:4px;-webkit-border-top-left-radius:4px;-khtml-border-top-left-radius:4px;border-top-left-radius:4px}.ui-corner-all,.ui-corner-right,.ui-corner-top,.ui-corner-tr{-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;-khtml-border-top-right-radius:4px;border-top-right-radius:4px}.ui-corner-all,.ui-corner-bl,.ui-corner-bottom,.ui-corner-left{-moz-border-radius-bottomleft:4px;-webkit-border-bottom-left-radius:4px;-khtml-border-bottom-left-radius:4px;border-bottom-left-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-br,.ui-corner-right{-moz-border-radius-bottomright:4px;-webkit-border-bottom-right-radius:4px;-khtml-border-bottom-right-radius:4px;border-bottom-right-radius:4px}.ui-widget-overlay{background:#666 url(images/ui-bg_diagonals-thick_20_666666_40x40.png) 50% 50% repeat;opacity:.5;filter:Alpha(Opacity=50)}.ui-widget-shadow{margin:-5px 0 0 -5px;padding:5px;background:#000 url(images/ui-bg_flat_10_000000_40x100.png) 50% 50% repeat-x;opacity:.2;filter:Alpha(Opacity=20);-moz-border-radius:5px;-khtml-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}/*!
|
|
20
|
-
* jQuery UI Resizable 1.8.24
|
|
21
|
-
*
|
|
22
|
-
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
|
23
|
-
* Dual licensed under the MIT or GPL Version 2 licenses.
|
|
24
|
-
* http://jquery.org/license
|
|
25
|
-
*
|
|
26
|
-
* http://docs.jquery.com/UI/Resizable#theming
|
|
27
|
-
*/.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:.1px;display:block}.ui-resizable-autohide .ui-resizable-handle,.ui-resizable-disabled .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}/*!
|
|
28
|
-
* jQuery UI Slider 1.8.24
|
|
29
|
-
*
|
|
30
|
-
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
|
31
|
-
* Dual licensed under the MIT or GPL Version 2 licenses.
|
|
32
|
-
* http://jquery.org/license
|
|
33
|
-
*
|
|
34
|
-
* http://docs.jquery.com/UI/Slider#theming
|
|
35
|
-
*/.ui-slider{position:relative;text-align:left}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:default}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:.8em;height:100px}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.ui-slider-vertical .ui-slider-range{left:0;width:100%}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}div.ExecutionVisualizer table.visualizer{font-family:verdana,arial,helvetica,sans-serif;font-size:10pt;margin-bottom:10px}div.ExecutionVisualizer table.visualizer td.vizLayoutTd{vertical-align:top}div.ExecutionVisualizer td#heap_td,div.ExecutionVisualizer td#stack_td{vertical-align:top;font-size:10pt}div.ExecutionVisualizer #selectiveHideStatus{font-size:9pt;margin-bottom:15px;margin-left:13px}div.ExecutionVisualizer div#pyCodeOutputDiv{max-height:460px;overflow:auto;margin-left:auto;margin-right:auto}div.ExecutionVisualizer table#pyCodeOutput{font-family:Andale mono,monospace;font-size:11pt;line-height:1.1em;border-collapse:separate;border-spacing:0px;border-top:1px solid #bbb;padding-top:3px;border-bottom:1px solid #bbb;margin:6px auto}div.ExecutionVisualizer table#pyCodeOutput td{white-space:nowrap;vertical-align:middle}div.ExecutionVisualizer #leftCodeGutterSVG{width:18px;min-width:18px;height:0}div.ExecutionVisualizer #curLegendArrowSVG,div.ExecutionVisualizer #prevLegendArrowSVG{width:18px;height:10px}div.ExecutionVisualizer .arrow{font-size:16pt}div.ExecutionVisualizer table#pyCodeOutput .lineNo{color:#aaa;padding:.2em;padding-left:.3em;padding-right:.5em;text-align:right}div.ExecutionVisualizer table#pyCodeOutput .cod{margin-left:3px;padding-left:7px;text-align:left}div.ExecutionVisualizer div#progOutputs{margin-left:13px;margin-bottom:3px}div.ExecutionVisualizer div#legendDiv{padding:0;text-align:left;color:#666;font-size:9pt}div.ExecutionVisualizer div#editCodeLinkDiv{text-align:center;margin:8px auto;font-size:11pt}div.ExecutionVisualizer div#annotateLinkDiv{margin-top:0;margin-bottom:12px}div.ExecutionVisualizer div#stepAnnotationDiv{margin-bottom:12px}div.ExecutionVisualizer textarea#stepAnnotationEditor,div.ExecutionVisualizer textarea#vizDescriptionEditor,div.ExecutionVisualizer textarea#vizTitleEditor{border:1px solid #999;padding:4px;overflow:auto;resize:none}div.ExecutionVisualizer #errorOutput{color:#e93f34;font-size:11pt;padding-top:2px;line-height:1.5em;margin-bottom:4px}div.ExecutionVisualizer #vcrControls{margin-top:15px;margin-bottom:6px;text-align:center}div.ExecutionVisualizer #vcrControls button{margin-left:2px;margin-right:2px}div.ExecutionVisualizer #curInstr{text-align:center}div.ExecutionVisualizer #pyStdout{border:1px solid #999;font-size:10pt;padding:3px;font-family:Andale mono,monospace;overflow:auto;resize:none}div.ExecutionVisualizer .vizFrame{margin-bottom:20px;padding-left:8px;border-left:2px solid #ccc}div.ExecutionVisualizer .importedObj{font-size:8pt}div.ExecutionVisualizer .customObj,div.ExecutionVisualizer .funcObj,div.ExecutionVisualizer .stringObj{font-family:Andale mono,monospace;white-space:nowrap}div.ExecutionVisualizer .funcCode{font-size:8pt}div.ExecutionVisualizer .retval{font-size:9pt}div.ExecutionVisualizer .stackFrame .retval{color:#e93f34}div.ExecutionVisualizer table.listTbl,div.ExecutionVisualizer table.setTbl,div.ExecutionVisualizer table.tupleTbl{background-color:#ffffc6}div.ExecutionVisualizer table.listTbl{border:0 solid #000;border-spacing:0px}div.ExecutionVisualizer table.listTbl td.listHeader,div.ExecutionVisualizer table.tupleTbl td.tupleHeader{padding-left:4px;padding-top:2px;padding-bottom:3px;font-size:8pt;color:#777;text-align:left;border-left:1px solid #555}div.ExecutionVisualizer table.tupleTbl{border-spacing:0px;color:#000;border-bottom:1px solid #555;border-top:1px solid #555;border-right:1px solid #555}div.ExecutionVisualizer table.listTbl td.listElt{border-bottom:1px solid #555;border-left:1px solid #555}div.ExecutionVisualizer table.cArrayTbl{background-color:#ffffc6;padding-left:0;padding-top:0;padding-bottom:0;font-size:8pt;color:#777;text-align:left;border:0 solid #000;border-spacing:0px}div.ExecutionVisualizer table.cArrayTbl td.cArrayHeader{padding-left:5px;padding-top:0;padding-bottom:2px;font-size:6pt;color:#777;text-align:left;border-bottom:0 solid #000}div.ExecutionVisualizer table.cArrayTbl td.cArrayElt{border-bottom:1px solid #888;border-left:1px solid #888;border-top:0 solid #000;color:#000;padding-top:2px;padding-bottom:4px;padding-left:5px;padding-right:4px;vertical-align:bottom}div.ExecutionVisualizer table.cArrayTbl td.cMultidimArrayHeader{padding-left:5px;padding-right:5px;padding-top:1px;padding-bottom:3px;font-size:6pt;color:#777;text-align:left;border-top:1px solid #888;border-left:1px solid #888;border-bottom:0 solid #000}div.ExecutionVisualizer table.cArrayTbl td.cMultidimArrayElt{border-left:1px solid #888;color:#000;padding-top:1px;padding-bottom:4px;padding-left:5px;padding-right:5px;vertical-align:bottom}div.ExecutionVisualizer .cdataHeader{font-size:6pt;color:#555;padding-bottom:2px}div.ExecutionVisualizer .cdataElt{font-size:10pt}div.ExecutionVisualizer .cdataUninit{color:#888}div.ExecutionVisualizer table.tupleTbl td.tupleElt{border-left:1px solid #555}div.ExecutionVisualizer table.customObjTbl{background-color:#fff;color:#000;border:1px solid #000}div.ExecutionVisualizer table.customObjTbl td.customObjElt{padding:5px;font-size:9pt}div.ExecutionVisualizer table.listTbl td.listElt,div.ExecutionVisualizer table.tupleTbl td.tupleElt{padding-top:0;padding-bottom:8px;padding-left:10px;padding-right:10px;vertical-align:bottom}div.ExecutionVisualizer table.setTbl{border:1px solid #555;border-spacing:0px;text-align:center}div.ExecutionVisualizer table.setTbl td.setElt{padding:8px}div.ExecutionVisualizer table.classTbl,div.ExecutionVisualizer table.dictTbl,div.ExecutionVisualizer table.instTbl{border-spacing:1px}div.ExecutionVisualizer table.classTbl td.classKey,div.ExecutionVisualizer table.dictTbl td.dictKey,div.ExecutionVisualizer table.instTbl td.instKey{background-color:#faebbf}div.ExecutionVisualizer table.classTbl td.classVal,div.ExecutionVisualizer table.dictTbl td.dictVal,div.ExecutionVisualizer table.instTbl td.instVal,div.ExecutionVisualizer td.funcCod{background-color:#ffffc6}div.ExecutionVisualizer table.classTbl td.classKey,div.ExecutionVisualizer table.dictTbl td.dictKey,div.ExecutionVisualizer table.instTbl td.instKey{padding-top:6px;padding-bottom:6px;padding-left:10px;padding-right:4px;text-align:right}div.ExecutionVisualizer table.classTbl td.classVal,div.ExecutionVisualizer table.dictTbl td.dictVal,div.ExecutionVisualizer table.instTbl td.instVal{padding-top:6px;padding-bottom:6px;padding-right:10px;padding-left:4px}div.ExecutionVisualizer td.funcCod{padding-left:4px}div.ExecutionVisualizer table.classTbl td,div.ExecutionVisualizer table.instTbl td{border-bottom:1px #888 solid}div.ExecutionVisualizer table.classTbl td.classVal,div.ExecutionVisualizer table.instTbl td.instVal{border-left:1px #888 solid}div.ExecutionVisualizer table.classTbl,div.ExecutionVisualizer table.funcTbl{border-collapse:collapse;border:1px #888 solid}div.ExecutionVisualizer td.classVal table.dictTbl,div.ExecutionVisualizer td.dictVal table.dictTbl,div.ExecutionVisualizer td.instVal table.dictTbl,div.ExecutionVisualizer td.listElt table.dictTbl,div.ExecutionVisualizer td.tupleElt table.dictTbl{border:1px #888 solid}div.ExecutionVisualizer .objectIdLabel{font-size:8pt;color:#444;margin-bottom:2px}div.ExecutionVisualizer .typeLabel{font-size:8pt;color:#555;margin-bottom:2px}div.ExecutionVisualizer div#globals_area,div.ExecutionVisualizer div#stack{padding-left:10px;padding-right:30px}div.ExecutionVisualizer div.stackFrame,div.ExecutionVisualizer div.zombieStackFrame{background-color:#fff;margin-bottom:15px;padding:2px;padding-left:6px;padding-right:6px;padding-bottom:4px;font-size:10pt}div.ExecutionVisualizer div.zombieStackFrame{border-left:1px dotted #aaa;color:#a0a0a0}div.ExecutionVisualizer div.highlightedStackFrame{background-color:#e2ebf6}div.ExecutionVisualizer div.highlightedStackFrame,div.ExecutionVisualizer div.stackFrame{border-left:1px solid #a6b3b6}div.ExecutionVisualizer div.stackFrameHeader{font-family:Andale mono,monospace;font-size:10pt;margin-top:4px;margin-bottom:3px;white-space:nowrap}div.ExecutionVisualizer td.stackFrameVar{text-align:right;padding-right:8px;padding-top:3px;padding-bottom:3px}div.ExecutionVisualizer td.stackFrameValue{text-align:left;border-bottom:1px solid #aaa;border-left:1px solid #aaa;vertical-align:middle;padding-top:3px;padding-left:3px;padding-bottom:3px}div.ExecutionVisualizer .stackFrameVarTable{text-align:right;padding-top:3px;margin-left:auto;margin-right:0;border-collapse:separate;border-spacing:2px}div.ExecutionVisualizer div#heap{float:left;padding-left:30px}div.ExecutionVisualizer td.toplevelHeapObject{padding-left:8px;padding-right:8px;padding-top:4px;padding-bottom:4px}div.ExecutionVisualizer table.heapRow{margin-bottom:10px}div.ExecutionVisualizer div.heapObject{padding-left:2px}div.ExecutionVisualizer div.heapPrimitive{padding-left:4px}div.ExecutionVisualizer div#stackHeader{margin-bottom:15px;text-align:right}div.ExecutionVisualizer div#heapHeader{margin-bottom:15px}div.ExecutionVisualizer div#langDisplayDiv{text-align:center;margin-top:2pt;margin-bottom:3pt}div.ExecutionVisualizer div#heapHeader,div.ExecutionVisualizer div#langDisplayDiv,div.ExecutionVisualizer div#stackHeader{color:#333;font-size:10pt}div.ExecutionVisualizer #executionSlider{margin-top:15px;margin-bottom:5px;width:98%}div.ExecutionVisualizer #executionSliderCaption{font-size:8pt;color:#666;margin-top:15px}div.ExecutionVisualizer #executionSliderFooter{margin-top:-7px}div.ExecutionVisualizer #codeFooterDocs,div.ExecutionVisualizer #printOutputDocs{margin-bottom:3px;font-size:8pt;color:#666}div.ExecutionVisualizer #codeFooterDocs{margin-top:5px;margin-bottom:12px;width:95%}div.ExecutionVisualizer .ui-slider .ui-slider-handle{border:1px solid #999}textarea.bubbleInputText{border:1px solid #ccc;outline:0;overflow:auto;resize:none;width:225px;max-width:225px;height:35px;max-height:35px}div.ExecutionVisualizer .annotationText,div.ExecutionVisualizer .vizDescriptionText{font-family:verdana,arial,helvetica,sans-serif;font-size:11pt;line-height:1.5em}div.ExecutionVisualizer .vizTitleText{font-family:verdana,arial,helvetica,sans-serif;font-size:16pt;margin-bottom:12pt}div.ExecutionVisualizer div#vizHeader{margin-bottom:10px;width:700px;max-width:700px}div.ExecutionVisualizer .highlight-prev{background-color:#f0f0ea}div.ExecutionVisualizer .highlight-cur{background-color:#ff6}div.ExecutionVisualizer .highlight-legend{padding:2px}.ui-resizable-e{background-color:#ddd;width:1px;border:3px solid #fff}.ui-resizable-e:hover{border-color:#ddd}div.ExecutionVisualizer a,div.ExecutionVisualizer a:hover,div.ExecutionVisualizer a:visited{color:#3d58a2}div.ExecutionVisualizer div#rawUserInputDiv{padding:5px;width:95%;margin:5px auto;text-align:center;border:1px #e93f34 solid}div.ExecutionVisualizer .pycrazy-highlight-prev{background-color:#eee}div.ExecutionVisualizer .pycrazy-highlight-cur{background-color:#ff6}div.ExecutionVisualizer .pycrazy-highlight-prev-and-cur{background-color:#ff6;text-decoration:none;border-bottom:1px solid #999}#optTabularView thead.stepTableThead{background-color:#bbb}#optTabularView td.stepTableTd{padding:3px 10px}#uiControlsPane{font-size:8pt}div.ExecutionVisualizer table.queueTbl,div.ExecutionVisualizer table.stackTbl{background-color:#ffffc6}div.ExecutionVisualizer table.queueTbl,div.ExecutionVisualizer table.stackTbl{border:0 solid #000;border-spacing:0px}div.ExecutionVisualizer table.queueTbl td.queueElt,div.ExecutionVisualizer table.stackTbl td.stackElt{padding-left:8px;padding-right:8px;padding-top:2px;padding-bottom:3px;border-top:1px solid #555;border-bottom:1px solid #555;border-left:1px dashed #555}div.ExecutionVisualizer table.queueTbl td.queueFElt,div.ExecutionVisualizer table.stackTbl td.stackFElt{background-color:#fff;border-top:1px solid #555;border-bottom:1px solid #555}div.ExecutionVisualizer table.stackTbl td.stackLElt{background-color:#fff;border-left:1px solid #555}div.ExecutionVisualizer table.queueTbl td.queueLElt{background-color:#fff;border-top:1px solid#555;border-bottom:1px solid #555;border-left:1px dashed #555}div.ExecutionVisualizer td.queueElt table.dictTbl,div.ExecutionVisualizer td.queueFElt table.dictTbl,div.ExecutionVisualizer td.queueLElt table.dictTbl,div.ExecutionVisualizer td.stackElt table.dictTbl,div.ExecutionVisualizer td.stackFElt table.dictTbl,div.ExecutionVisualizer td.stackLElt table.dictTbl{border:1px #888 solid}.symbolic{font-size:18pt}
|