vendor: 5,158 bytes, lines 1-3
1import{_ as g}from"./C1FmrZbK.js";var pe=Object.defineProperty,o=(e,t)=>pe(e,"name",{value:t,configurable:!0}),V=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),ye=(()=>{for(var e=new Uint8Array(128),t=0;t<64;t++)e[t<26?t+65:t<52?t+71:t<62?t-4:t*4-205]=t;return r=>{for(var s=r.length,a=new Uint8Array((s-(r[s-1]=="=")-(r[s-2]=="="))*3/4|0),i=0,n=0;i<s;){var l=e[r.charCodeAt(i++)],c=e[r.charCodeAt(i++)],u=e[r.charCodeAt(i++)],d=e[r.charCodeAt(i++)];a[n++]=l<<2|c>>4,a[n++]=c<<4|u>>2,a[n++]=u<<6|d}return a}})();function M(e){return!isNaN(parseFloat(e))&&isFinite(e)}o(M,"_isNumber");function w(e){return e.charAt(0).toUpperCase()+e.substring(1)}o(w,"_capitalize");function L(e){return function(){return this[e]}}o(L,"_getter");var A=["isConstructor","isEval","isNative","isToplevel"],S=["columnNumber","lineNumber"],k=["fileName","functionName","source"],ge=["args"],he=["evalOrigin"],I=A.concat(S,k,ge,he);function y(e){if(e)for(var t=0;t<I.length;t++)e[I[t]]!==void 0&&this["set"+w(I[t])](e[I[t]])}o(y,"StackFrame");y.prototype={getArgs:o(function(){return this.args},"getArgs"),setArgs:o(function(e){if(Object.prototype.toString.call(e)!=="[object Array]")throw new TypeError("Args must be an Array");this.args=e},"setArgs"),getEvalOrigin:o(function(){return this.evalOrigin},"getEvalOrigin"),setEvalOrigin:o(function(e){if(e instanceof y)this.evalOrigin=e;else if(e instanceof Object)this.evalOrigin=new y(e);else throw new TypeError("Eval Origin must be an Object or StackFrame")},"setEvalOrigin"),toString:o(function(){var e=this.getFileName()||"",t=this.getLineNumber()||"",r=this.getColumnNumber()||"",s=this.getFunctionName()||"";return this.getIsEval()?e?"[eval] ("+e+":"+t+":"+r+")":"[eval]:"+t+":"+r:s?s+" ("+e+":"+t+":"+r+")":e+":"+t+":"+r},"toString")};y.fromString=o(function(e){var t=e.indexOf("("),r=e.lastIndexOf(")"),s=e.substring(0,t),a=e.substring(t+1,r).split(","),i=e.substring(r+1);if(i.indexOf("@")===0)var n=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(i,""),l=n[1],c=n[2],u=n[3];return new y({functionName:s,args:a||void 0,fileName:l,lineNumber:c||void 0,columnNumber:u||void 0})},"StackFrame$$fromString");for(v=0;v<A.length;v++)y.prototype["get"+w(A[v])]=L(A[v]),y.prototype["set"+w(A[v])]=function(e){return function(t){this[e]=!!t}}(A[v]);var v;for(E=0;E<S.length;E++)y.prototype["get"+w(S[E])]=L(S[E]),y.prototype["set"+w(S[E])]=function(e){return function(t){if(!M(t))throw new TypeError(e+" must be a Number");this[e]=Number(t)}}(S[E]);var E;for(b=0;b<k.length;b++)y.prototype["get"+w(k[b])]=L(k[b]),y.prototype["set"+w(k[b])]=function(e){return function(t){this[e]=String(t)}}(k[b]);var b,x=y;function W(){var e=/^\s*at .*(\S+:\d+|\(native\))/m,t=/^(eval@)?(\[native code])?$/;return{parse:o(function(r){if(r.stack&&r.stack.match(e))return this.parseV8OrIE(r);if(r.stack)return this.parseFFOrSafari(r);throw new Error("Cannot parse given Error object")},"ErrorStackParser$$parse"),extractLocation:o(function(r){if(r.indexOf(":")===-1)return[r];var s=/(.+?)(?::(\d+))?(?::(\d+))?$/,a=s.exec(r.replace(/[()]/g,""));return[a[1],a[2]||void 0,a[3]||void 0]},"ErrorStackParser$$extractLocation"),parseV8OrIE:o(function(r){var s=r.stack.split(` 2`).filter(function(a){return!!a.match(e)},this);return s.map(function(a){a.indexOf("(eval ")>-1&&(a=a.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var i=a.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),n=i.match(/ (\(.+\)$)/);i=n?i.replace(n[0],""):i;var l=this.extractLocation(n?n[1]:i),c=n&&i||void 0,u=["eval","<anonymous>"].indexOf(l[0])>-1?void 0:l[0];return new x({functionName:c,fileName:u,lineNumber:l[1],columnNumber:l[2],source:a})},this)},"ErrorStackParser$$parseV8OrIE"),parseFFOrSafari:o(function(r){var s=r.stack.split(` 3`).filter(function(a){return!a.match(t)},this);return s.map(function(a){if(a.indexOf(" > eval")>-1&&(a=a.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),a.indexOf("@")===-1&&a.indexOf(":")===-1)return new x({functionName:a});var i=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=a.match(i),l=n&&n[1]?n[1]:void 0,c=this.extractLocation(a.replace(i,""));return new x({functionName:l,fileName:c[0],lineNumber:c[1],columnNumber:c[2],source:a})},this)},"ErrorStackParser$$parseFFOrSafari")}}o(W,"ErrorStackParser");var we=new W,ve=we,h=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&!process.browser,B=h&&typeof module<"u"&&typeof module.exports<"u"&&typeof V<"u"&&typeof __dirname<"u",Ee=h&&!B,be=typeof Deno<"u",H=!h&&!be,_e=H&&typeof window=="object"&&typeof document=="object"&&typeof document.createElement=="function"&&"sessionStorage"in window&&typeof importScripts!="function",Ae=H&&typeof importScripts=="function"&&typeof self=="object";typeof navigator=="object"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Chrome")==-1&&navigator.userAgent.indexOf("Safari")>-1;var D=typeof read=="function"&&typeof load=="function",z,N,q,j,U;
3async function C(){if(!h||(z=(await g(async()=>{const{default:i}=await import("./BIHI7g3E.js");return{default:i}},[],import.meta.url)).default,j=await g(()=>import("./BIHI7g3E.js"),[],import.meta.url),U=await g(()=>import("./BIHI7g3E.js"),[],import.meta.url),q=(await g(async()=>{const{default:i}=await import("./BIHI7g3E.js");return{default:i}},[],import.meta.url)).default,N=await g(()=>import("./BIHI7g3E.js"),[],import.meta.url),$=N.sep,typeof V<"u"))return;let e=j,t=await g(()=>import("./BIHI7g3E.js"),[],import.meta.url),r=await g(()=>import("./BIHI7g3E.js"),[],import.meta.url),s=await g(()=>import("./BIHI7g3E.js"),[],import.meta.url),a={fs:e,crypto:t,ws:r,child_process:s};globalThis.require=function(i){return a[i]}}o(C,"initNodeModules");function G(e,t){return N.resolve(t||".",e)}o(G,"node_resolvePath");function Y(e,t){return t===void 0&&(t=location),new URL(e,t).toString()}o(Y,"browser_resolvePath");var O;h?O=G:D?O=o(e=>e,"resolvePath"):O=Y;var $;h||($="/");function Z(e,t){return e.startsWith("file://")&&(e=e.slice(7)),e.includes("://")?{response:fetch(e)}:{binary:U.readFile(e).then(r=>new Uint8Array(r.buffer,r.byteOffset,r.byteLength))}}o(Z,"node_getBinaryResponse");function J(e,t){if(e.startsWith("file://")&&(e=e.slice(7)),e.includes("://"))throw new Error("Shell cannot fetch urls");return{binary:Promise.resolve(new Uint8Array(readbuffer(e)))}}o(J,"shell_getBinaryResponse");function K(e,t){let r=new URL(e,location);return{response:fetch(r,t?{integrity:t}:{})}}o(K,"browser_getBinaryResponse");var R;
vendor: 10,173 bytes, lines 3-4
3h?R=Z:D?R=J:R=K;async function Q(e,t){let{response:r,binary:s}=R(e,t);if(s)return s;let a=await r;if(!a.ok)throw new Error(`Failed to load '${e}': request failed.`);return new Uint8Array(await a.arrayBuffer())}o(Q,"loadBinaryFile");var F;if(_e)F=o(async e=>await import(e),"loadScript");else if(Ae)F=o(async e=>{try{globalThis.importScripts(e)}catch(t){if(t instanceof TypeError)await import(e);else throw t}},"loadScript");else if(h)F=X;else if(D)F=load;else throw new Error("Cannot determine runtime environment");async function X(e){e.startsWith("file://")&&(e=e.slice(7)),e.includes("://")?q.runInThisContext(await(await fetch(e)).text()):await import(z.pathToFileURL(e).href)}o(X,"nodeLoadScript");async function ee(e){if(h){await C();let t=await U.readFile(e,{encoding:"utf8"});return JSON.parse(t)}else if(D){let t=read(e);return JSON.parse(t)}else return await(await fetch(e)).json()}o(ee,"loadLockFile");async function te(){if(B)return __dirname;let e;try{throw new Error}catch(s){e=s}let t=ve.parse(e)[0].fileName;if(h&&!t.startsWith("file://")&&(t=`file://${t}`),Ee){let s=await g(()=>import("./BIHI7g3E.js"),[],import.meta.url);return(await g(async()=>{const{fileURLToPath:a}=await import("./BIHI7g3E.js");return{fileURLToPath:a}},[],import.meta.url)).fileURLToPath(s.dirname(t))}let r=t.lastIndexOf($);if(r===-1)throw new Error("Could not extract indexURL path from pyodide module location");return t.slice(0,r)}o(te,"calculateDirname");function re(e){var t;return e.substring(0,e.lastIndexOf("/")+1)||((t=globalThis.location)==null?void 0:t.toString())||"."}o(re,"calculateInstallBaseUrl");function ie(e){let t=e.FS,r=e.FS.filesystems.MEMFS,s=e.PATH,a={DIR_MODE:16895,FILE_MODE:33279,mount:o(function(i){if(!i.opts.fileSystemHandle)throw new Error("opts.fileSystemHandle is required");return r.mount.apply(null,arguments)},"mount"),syncfs:o(async(i,n,l)=>{try{let c=a.getLocalSet(i),u=await a.getRemoteSet(i),d=n?u:c,p=n?c:u;await a.reconcile(i,d,p),l(null)}catch(c){l(c)}},"syncfs"),getLocalSet:o(i=>{let n=Object.create(null);function l(d){return d!=="."&&d!==".."}o(l,"isRealDir");function c(d){return p=>s.join2(d,p)}o(c,"toAbsolute");let u=t.readdir(i.mountpoint).filter(l).map(c(i.mountpoint));for(;u.length;){let d=u.pop(),p=t.stat(d);t.isDir(p.mode)&&u.push.apply(u,t.readdir(d).filter(l).map(c(d))),n[d]={timestamp:p.mtime,mode:p.mode}}return{type:"local",entries:n}},"getLocalSet"),getRemoteSet:o(async i=>{let n=Object.create(null),l=await Se(i.opts.fileSystemHandle);for(let[c,u]of l)c!=="."&&(n[s.join2(i.mountpoint,c)]={timestamp:u.kind==="file"?new Date((await u.getFile()).lastModified):new Date,mode:u.kind==="file"?a.FILE_MODE:a.DIR_MODE});return{type:"remote",entries:n,handles:l}},"getRemoteSet"),loadLocalEntry:o(i=>{let n=t.lookupPath(i).node,l=t.stat(i);if(t.isDir(l.mode))return{timestamp:l.mtime,mode:l.mode};if(t.isFile(l.mode))return n.contents=r.getFileDataAsTypedArray(n),{timestamp:l.mtime,mode:l.mode,contents:n.contents};throw new Error("node type not supported")},"loadLocalEntry"),storeLocalEntry:o((i,n)=>{if(t.isDir(n.mode))t.mkdirTree(i,n.mode);else if(t.isFile(n.mode))t.writeFile(i,n.contents,{canOwn:!0});else throw new Error("node type not supported");t.chmod(i,n.mode),t.utime(i,n.timestamp,n.timestamp)},"storeLocalEntry"),removeLocalEntry:o(i=>{var n=t.stat(i);t.isDir(n.mode)?t.rmdir(i):t.isFile(n.mode)&&t.unlink(i)},"removeLocalEntry"),loadRemoteEntry:o(async i=>{if(i.kind==="file"){let n=await i.getFile();return{contents:new Uint8Array(await n.arrayBuffer()),mode:a.FILE_MODE,timestamp:new Date(n.lastModified)}}else{if(i.kind==="directory")return{mode:a.DIR_MODE,timestamp:new Date};throw new Error("unknown kind: "+i.kind)}},"loadRemoteEntry"),storeRemoteEntry:o(async(i,n,l)=>{let c=i.get(s.dirname(n)),u=t.isFile(l.mode)?await c.getFileHandle(s.basename(n),{create:!0}):await c.getDirectoryHandle(s.basename(n),{create:!0});if(u.kind==="file"){let d=await u.createWritable();await d.write(l.contents),await d.close()}i.set(n,u)},"storeRemoteEntry"),removeRemoteEntry:o(async(i,n)=>{await i.get(s.dirname(n)).removeEntry(s.basename(n)),i.delete(n)},"removeRemoteEntry"),reconcile:o(async(i,n,l)=>{let c=0,u=[];Object.keys(n.entries).forEach(function(m){let f=n.entries[m],_=l.entries[m];(!_||t.isFile(f.mode)&&f.timestamp.getTime()>_.timestamp.getTime())&&(u.push(m),c++)}),u.sort();let d=[];if(Object.keys(l.entries).forEach(function(m){n.entries[m]||(d.push(m),c++)}),d.sort().reverse(),!c)return;let p=n.type==="remote"?n.handles:l.handles;for(let m of u){let f=s.normalize(m.replace(i.mountpoint,"/")).substring(1);if(l.type==="local"){let _=p.get(f),me=await a.loadRemoteEntry(_);a.storeLocalEntry(m,me)}else{let _=a.loadLocalEntry(m);await a.storeRemoteEntry(p,f,_)}}for(let m of d)if(l.type==="local")a.removeLocalEntry(m);else{let f=s.normalize(m.replace(i.mountpoint,"/")).substring(1);await a.removeRemoteEntry(p,f)}},"reconcile")};e.FS.filesystems.NATIVEFS_ASYNC=a}o(ie,"initializeNativeFS");var Se=o(async e=>{let t=[];async function r(a){for await(let i of a.values())t.push(i),i.kind==="directory"&&await r(i)}o(r,"collect"),await r(e);let s=new Map;s.set(".",e);for(let a of t){let i=(await e.resolve(a)).join("/");s.set(i,a)}return s},"getFsHandles"),ke=ye("AGFzbQEAAAABDANfAGAAAW9gAW8BfwMDAgECByECD2NyZWF0ZV9zZW50aW5lbAAAC2lzX3NlbnRpbmVsAAEKEwIHAPsBAPsbCwkAIAD7GvsUAAs="),Fe=async function(){if(!(globalThis.navigator&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&typeof navigator.maxTouchPoints<"u"&&navigator.maxTouchPoints>1)))try{let e=await WebAssembly.compile(ke);return await WebAssembly.instantiate(e)}catch(e){if(e instanceof WebAssembly.CompileError)return;throw e}}();async function ne(){let e=await Fe;if(e)return e.exports;let t=Symbol("error marker");return{create_sentinel:o(()=>t,"create_sentinel"),is_sentinel:o(r=>r===t,"is_sentinel")}}o(ne,"getSentinelImport");function ae(e){let t={noImageDecoding:!0,noAudioDecoding:!0,noWasmDecoding:!1,preRun:de(e),print:e.stdout,printErr:e.stderr,onExit(r){t.exitCode=r},thisProgram:e._sysExecutable,arguments:e.args,API:{config:e},locateFile:o(r=>e.indexURL+r,"locateFile"),instantiateWasm:fe(e.indexURL)};return t}o(ae,"createSettings");function oe(e){return function(t){let r="/";try{t.FS.mkdirTree(e)}catch(s){console.error(`Error occurred while making a home directory '${e}':`),console.error(s),console.error(`Using '${r}' for a home directory instead`),e=r}t.FS.chdir(e)}}o(oe,"createHomeDirectory");function se(e){return function(t){Object.assign(t.ENV,e)}}o(se,"setEnvironment");function le(e){return e?[async t=>{t.addRunDependency("fsInitHook");try{await e(t.FS,{sitePackages:t.API.sitePackages})}finally{t.removeRunDependency("fsInitHook")}}]:[]}o(le,"callFsInitHook");function ce(e){let t=e.HEAPU32[e._Py_Version>>>2],r=t>>>24&255,s=t>>>16&255,a=t>>>8&255;return[r,s,a]}o(ce,"computeVersionTuple");function ue(e){let t=Q(e);return async r=>{r.API.pyVersionTuple=ce(r);let[s,a]=r.API.pyVersionTuple;r.FS.mkdirTree("/lib"),r.API.sitePackages=`/lib/python${s}.${a}/site-packages`,r.FS.mkdirTree(r.API.sitePackages),r.addRunDependency("install-stdlib");try{let i=await t;r.FS.writeFile(`/lib/python${s}${a}.zip`,i)}catch(i){console.error("Error occurred while installing the standard library:"),console.error(i)}finally{r.removeRunDependency("install-stdlib")}}}o(ue,"installStdlib");function de(e){let t;return e.stdLibURL!=null?t=e.stdLibURL:t=e.indexURL+"python_stdlib.zip",[ue(t),oe(e.env.HOME),se(e.env),ie,...le(e.fsInit)]}o(de,"getFileSystemInitializationFuncs");function fe(e){if(typeof WasmOffsetConverter<"u")return;let{binary:t,response:r}=R(e+"pyodide.asm.wasm"),s=ne();return function(a,i){return async function(){a.sentinel=await s;try{let n;r?n=await WebAssembly.instantiateStreaming(r,a):n=await WebAssembly.instantiate(await t,a);let{instance:l,module:c}=n;i(l,c)}catch(n){console.warn("wasm instantiation failed!"),console.warn(n)}}(),{}}}o(fe,"getInstantiateWasmFunc");var Pe="0.28.3";function P(e){return e===void 0||e.endsWith("/")?e:e+"/"}o(P,"withTrailingSlash");var T=Pe;async function Oe(e={}){var p,m;if(e.lockFileContents&&e.lockFileURL)throw new Error("Can't pass both lockFileContents and lockFileURL");await C();let t=e.indexURL||await te();t=P(O(t));let r=e;if(r.packageBaseUrl=P(r.packageBaseUrl),r.cdnUrl=P(r.packageBaseUrl??`https://cdn.jsdelivr.net/pyodide/v${T}/full/`),!e.lockFileContents){let f=e.lockFileURL??t+"pyodide-lock.json";r.lockFileContents=ee(f),r.packageBaseUrl??(r.packageBaseUrl=re(f))}r.indexURL=t,r.packageCacheDir&&(r.packageCacheDir=P(O(r.packageCacheDir)));let s={fullStdLib:!1,jsglobals:globalThis,stdin:globalThis.prompt?globalThis.prompt:void 0,args:[],env:{},packages:[],packageCacheDir:r.packageBaseUrl,enableRunUntilComplete:!0,checkAPIVersion:!0,BUILD_ID:"cc7a4bb4c6f36f12592fef0934292b5fddb0e313ca5dc4a5a9519bb7610c67e3"},a=Object.assign(s,r);(p=a.env).HOME??(p.HOME="/home/pyodide"),(m=a.env).PYTHONINSPECT??(m.PYTHONINSPECT="1");let i=ae(a),n=i.API;if(n.lockFilePromise=Promise.resolve(r.lockFileContents),typeof _createPyodideModule!="function"){let f=`${a.indexURL}pyodide.asm.js`;await F(f)}let l;if(e._loadSnapshot){let f=await e._loadSnapshot;ArrayBuffer.isView(f)?l=f:l=new Uint8Array(f),i.noInitialRun=!0,i.INITIAL_MEMORY=l.length}let c=await _createPyodideModule(i);if(i.exitCode!==void 0)throw new c.ExitStatus(i.exitCode);if(e.pyproxyToStringRepr&&n.setPyProxyToStringMethod(!0),e.convertNullToNone&&n.setCompatNullToNone(!0),n.version!==T&&a.checkAPIVersion)throw new Error(`Pyodide version does not match: '${T}' <==> '${n.version}'. If you updated the Pyodide version, make sure you also updated the 'indexURL' parameter passed to loadPyodide.`);c.locateFile=f=>{throw f.endsWith(".so")?new Error(`Failed to find dynamic library "${f}"`):new Error(`Unexpected call to locateFile("${f}")`)};let u;l&&(u=n.restoreSnapshot(l));let d=n.finalizeBootstrap(u,e._snapshotDeserializer);return n.sys.path.insert(0,""),n._pyodide.set_excepthook(),await n.packageIndexReady,n.initializeStreams(a.stdin,a.stdout,a.stderr),d}o(Oe,"loadPyodide");export{Oe as loadPyodide,T as version}; 4//# sourceMappingURL=ChV_zIvi.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.