Nymbo/self-hosted-python
1
1var Module=typeof globalThis.__pyodide_module!=="undefined"?globalThis.__pyodide_module:{};if(!Module.expectedDataFileDownloads){Module.expectedDataFileDownloads=0}Module.expectedDataFileDownloads++;(function(){var loadPackage=function(metadata){var PACKAGE_PATH="";if(typeof window==="object"){PACKAGE_PATH=window["encodeURIComponent"](window.location.pathname.toString().substring(0,window.location.pathname.toString().lastIndexOf("/"))+"/")}else if(typeof process==="undefined"&&typeof location!=="undefined"){PACKAGE_PATH=encodeURIComponent(location.pathname.toString().substring(0,location.pathname.toString().lastIndexOf("/"))+"/")}var PACKAGE_NAME="parso.data";var REMOTE_PACKAGE_BASE="parso.data";if(typeof Module["locateFilePackage"]==="function"&&!Module["locateFile"]){Module["locateFile"]=Module["locateFilePackage"];err("warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)")}var REMOTE_PACKAGE_NAME=Module["locateFile"]?Module["locateFile"](REMOTE_PACKAGE_BASE,""):REMOTE_PACKAGE_BASE;var REMOTE_PACKAGE_SIZE=metadata["remote_package_size"];var PACKAGE_UUID=metadata["package_uuid"];function fetchRemotePackage(packageName,packageSize,callback,errback){if(typeof process==="object"){require("fs").readFile(packageName,(function(err,contents){if(err){errback(err)}else{callback(contents.buffer)}}));return}var xhr=new XMLHttpRequest;xhr.open("GET",packageName,true);xhr.responseType="arraybuffer";xhr.onprogress=function(event){var url=packageName;var size=packageSize;if(event.total)size=event.total;if(event.loaded){if(!xhr.addedTotal){xhr.addedTotal=true;if(!Module.dataFileDownloads)Module.dataFileDownloads={};Module.dataFileDownloads[url]={loaded:event.loaded,total:size}}else{Module.dataFileDownloads[url].loaded=event.loaded}var total=0;var loaded=0;var num=0;for(var download in Module.dataFileDownloads){var data=Module.dataFileDownloads[download];total+=data.total;loaded+=data.loaded;num++}total=Math.ceil(total*Module.expectedDataFileDownloads/num);if(Module["setStatus"])Module["setStatus"]("Downloading data... ("+loaded+"/"+total+")")}else if(!Module.dataFileDownloads){if(Module["setStatus"])Module["setStatus"]("Downloading data...")}};xhr.onerror=function(event){throw new Error("NetworkError for: "+packageName)};xhr.onload=function(event){if(xhr.status==200||xhr.status==304||xhr.status==206||xhr.status==0&&xhr.response){var packageData=xhr.response;callback(packageData)}else{throw new Error(xhr.statusText+" : "+xhr.responseURL)}};xhr.send(null)}function handleError(error){console.error("package error:",error)}var fetchedCallback=null;var fetched=Module["getPreloadedPackage"]?Module["getPreloadedPackage"](REMOTE_PACKAGE_NAME,REMOTE_PACKAGE_SIZE):null;if(!fetched)fetchRemotePackage(REMOTE_PACKAGE_NAME,REMOTE_PACKAGE_SIZE,(function(data){if(fetchedCallback){fetchedCallback(data);fetchedCallback=null}else{fetched=data}}),handleError);function runWithFS(){function assert(check,msg){if(!check)throw msg+(new Error).stack}Module["FS_createPath"]("/","lib",true,true);Module["FS_createPath"]("/lib","python3.9",true,true);Module["FS_createPath"]("/lib/python3.9","site-packages",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages","parso",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/parso","pgen2",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages/parso","python",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages","parso-0.8.3-py3.9.egg-info",true,true);function processPackageData(arrayBuffer){assert(arrayBuffer,"Loading data file failed.");assert(arrayBuffer instanceof ArrayBuffer,"bad input to processPackageData");var byteArray=new Uint8Array(arrayBuffer);var curr;var compressedData={data:null,cachedOffset:186064,cachedIndexes:[-1,-1],cachedChunks:[null,null],offsets:[0,1475,2966,4137,5332,6610,7966,9257,10531,11531,12596,13822,14967,16004,17452,18745,19891,21257,22345,23082,24382,25378,26611,27734,28811,30205,31570,32943,34175,35579,36864,38245,39416,40563,41776,42783,43948,44922,46076,47583,48761,50038,51265,52559,53684,54747,55886,57077,58130,59242,60261,61431,62587,63605,64738,66052,67012,68207,69305,70533,71549,72657,73814,74874,75926,76948,78161,79257,80298,81412,82438,83335,84385,85380,86208,87208,88345,89285,90283,91418,92650,93872,95014,96329,97261,98379,99485,100513,101575,102655,103767,104697,105387,105904,106964,107867,108728,109721,110731,111984,113205,114414,115697,116869,118132,119356,120408,121783,122908,123859,124840,125874,126764,128007,129452,130669,131758,132822,133888,135197,136429,137636,138459,139731,140811,141958,143045,144200,145257,146426,147380,148645,149596,150769,152105,153574,154451,155664,157068,158294,159332,160691,162033,163281,164498,165926,167260,168440,169785,171275,172112,173320,174751,176089,177085,178390,179749,180828,182345,183769,185088,185854],sizes:[1475,1491,1171,1195,1278,1356,1291,1274,1e3,1065,1226,1145,1037,1448,1293,1146,1366,1088,737,1300,996,1233,1123,1077,1394,1365,1373,1232,1404,1285,1381,1171,1147,1213,1007,1165,974,1154,1507,1178,1277,1227,1294,1125,1063,1139,1191,1053,1112,1019,1170,1156,1018,1133,1314,960,1195,1098,1228,1016,1108,1157,1060,1052,1022,1213,1096,1041,1114,1026,897,1050,995,828,1e3,1137,940,998,1135,1232,1222,1142,1315,932,1118,1106,1028,1062,1080,1112,930,690,517,1060,903,861,993,1010,1253,1221,1209,1283,1172,1263,1224,1052,1375,1125,951,981,1034,890,1243,1445,1217,1089,1064,1066,1309,1232,1207,823,1272,1080,1147,1087,1155,1057,1169,954,1265,951,1173,1336,1469,877,1213,1404,1226,1038,1359,1342,1248,1217,1428,1334,1180,1345,1490,837,1208,1431,1338,996,1305,1359,1079,1517,1424,1319,766,210],successes:[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]};compressedData["data"]=byteArray;assert(typeof Module.LZ4==="object","LZ4 not present - was your app build with -s LZ4=1 ?");Module.LZ4.loadPackage({metadata:metadata,compressedData:compressedData},true);Module["removeRunDependency"]("datafile_parso.data")}Module["addRunDependency"]("datafile_parso.data");if(!Module.preloadResults)Module.preloadResults={};Module.preloadResults[PACKAGE_NAME]={fromCache:false};if(fetched){processPackageData(fetched);fetched=null}else{fetchedCallback=processPackageData}}if(Module["calledRun"]){runWithFS()}else{if(!Module["preRun"])Module["preRun"]=[];Module["preRun"].push(runWithFS)}};loadPackage({files:[{filename:"/lib/python3.9/site-packages/parso/__init__.py",start:0,end:1607,audio:0},{filename:"/lib/python3.9/site-packages/parso/_compatibility.py",start:1607,end:1677,audio:0},{filename:"/lib/python3.9/site-packages/parso/cache.py",start:1677,end:10129,audio:0},{filename:"/lib/python3.9/site-packages/parso/file_io.py",start:10129,end:11152,audio:0},{filename:"/lib/python3.9/site-packages/parso/grammar.py",start:11152,end:21635,audio:0},{filename:"/lib/python3.9/site-packages/parso/normalizer.py",start:21635,end:27232,audio:0},{filename:"/lib/python3.9/site-packages/parso/parser.py",start:27232,end:34414,audio:0},{filename:"/lib/python3.9/site-packages/parso/tree.py",start:34414,end:50567,audio:0},{filename:"/lib/python3.9/site-packages/parso/utils.py",start:50567,end:57187,audio:0},{filename:"/lib/python3.9/site-packages/parso/pgen2/__init__.py",start:57187,end:57569,audio:0},{filename:"/lib/python3.9/site-packages/parso/pgen2/generator.py",start:57569,end:72139,audio:0},{filename:"/lib/python3.9/site-packages/parso/pgen2/grammar_parser.py",start:72139,end:77654,audio:0},{filename:"/lib/python3.9/site-packages/parso/python/__init__.py",start:77654,end:77654,audio:0},{filename:"/lib/python3.9/site-packages/parso/python/diff.py",start:77654,end:111860,audio:0},{filename:"/lib/python3.9/site-packages/parso/python/errors.py",start:111860,end:159815,audio:0},{filename:"/lib/python3.9/site-packages/parso/python/parser.py",start:159815,end:167923,audio:0},{filename:"/lib/python3.9/site-packages/parso/python/pep8.py",start:167923,end:201702,audio:0},{filename:"/lib/python3.9/site-packages/parso/python/prefix.py",start:201702,end:204445,audio:0},{filename:"/lib/python3.9/site-packages/parso/python/token.py",start:204445,end:205354,audio:0},{filename:"/lib/python3.9/site-packages/parso/python/tokenize.py",start:205354,end:231149,audio:0},{filename:"/lib/python3.9/site-packages/parso/python/tree.py",start:231149,end:268336,audio:0},{filename:"/lib/python3.9/site-packages/parso/python/grammar310.txt",start:268336,end:275847,audio:0},{filename:"/lib/python3.9/site-packages/parso/python/grammar311.txt",start:275847,end:283358,audio:0},{filename:"/lib/python3.9/site-packages/parso/python/grammar312.txt",start:283358,end:290869,audio:0},{filename:"/lib/python3.9/site-packages/parso/python/grammar36.txt",start:290869,end:297817,audio:0},{filename:"/lib/python3.9/site-packages/parso/python/grammar37.txt",start:297817,end:304621,audio:0},{filename:"/lib/python3.9/site-packages/parso/python/grammar38.txt",start:304621,end:312212,audio:0},{filename:"/lib/python3.9/site-packages/parso/python/grammar39.txt",start:312212,end:319711,audio:0},{filename:"/lib/python3.9/site-packages/parso-0.8.3-py3.9.egg-info/PKG-INFO",start:319711,end:327120,audio:0},{filename:"/lib/python3.9/site-packages/parso-0.8.3-py3.9.egg-info/SOURCES.txt",start:327120,end:330209,audio:0},{filename:"/lib/python3.9/site-packages/parso-0.8.3-py3.9.egg-info/dependency_links.txt",start:330209,end:330210,audio:0},{filename:"/lib/python3.9/site-packages/parso-0.8.3-py3.9.egg-info/requires.txt",start:330210,end:330273,audio:0},{filename:"/lib/python3.9/site-packages/parso-0.8.3-py3.9.egg-info/top_level.txt",start:330273,end:330279,audio:0}],remote_package_size:190160,package_uuid:"2bc726e7-38d1-47b8-b0b0-942b27860169"})})();