-
Notifications
You must be signed in to change notification settings - Fork 4
/
toolz.js
1 lines (1 loc) · 9.7 KB
/
toolz.js
1
var Module=typeof pyodide._module!=="undefined"?pyodide._module:{};Module.checkABI(1);if(!Module.expectedDataFileDownloads){Module.expectedDataFileDownloads=0;Module.finishedDataFileDownloads=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 location!=="undefined"){PACKAGE_PATH=encodeURIComponent(location.pathname.toString().substring(0,location.pathname.toString().lastIndexOf("/"))+"/")}else{throw"using preloaded data can only be done on a web page or in a web worker"}var PACKAGE_NAME="toolz.data";var REMOTE_PACKAGE_BASE="toolz.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){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.7",true,true);Module["FS_createPath"]("/lib/python3.7","site-packages",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages","toolz",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages/toolz","tests",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages/toolz","sandbox",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages/toolz","curried",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages","tlz",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages","toolz-0.10.0-py3.7.egg-info",true,true);function DataRequest(start,end,audio){this.start=start;this.end=end;this.audio=audio}DataRequest.prototype={requests:{},open:function(mode,name){this.name=name;this.requests[name]=this;Module["addRunDependency"]("fp "+this.name)},send:function(){},onload:function(){var byteArray=this.byteArray.subarray(this.start,this.end);this.finish(byteArray)},finish:function(byteArray){var that=this;Module["FS_createPreloadedFile"](this.name,null,byteArray,true,true,function(){Module["removeRunDependency"]("fp "+that.name)},function(){if(that.audio){Module["removeRunDependency"]("fp "+that.name)}else{err("Preloading file "+that.name+" failed")}},false,true);this.requests[this.name]=null}};function processPackageData(arrayBuffer){Module.finishedDataFileDownloads++;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:98817,cachedIndexes:[-1,-1],cachedChunks:[null,null],offsets:[0,1412,2581,3386,4251,5067,5818,6205,6727,7704,8812,9694,10547,11599,12678,13889,14831,15896,17172,18377,19495,20641,21990,23257,24172,25106,25888,26839,27698,28932,29970,30885,32102,33322,34679,35980,36699,37855,39007,40239,41608,42878,44108,45497,46690,47666,48871,50077,51162,52219,53188,53953,54673,55792,56638,57495,58584,59540,60585,61385,62253,63210,64267,65228,66332,67190,68273,69168,70279,71286,72391,73305,74297,74848,76087,76687,77444,78642,79645,80555,81091,81663,82427,83225,83890,85059,86102,87401,88744,90179,91571,92455,93668,94798,95958,97148,98400],sizes:[1412,1169,805,865,816,751,387,522,977,1108,882,853,1052,1079,1211,942,1065,1276,1205,1118,1146,1349,1267,915,934,782,951,859,1234,1038,915,1217,1220,1357,1301,719,1156,1152,1232,1369,1270,1230,1389,1193,976,1205,1206,1085,1057,969,765,720,1119,846,857,1089,956,1045,800,868,957,1057,961,1104,858,1083,895,1111,1007,1105,914,992,551,1239,600,757,1198,1003,910,536,572,764,798,665,1169,1043,1299,1343,1435,1392,884,1213,1130,1160,1190,1252,417],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]};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});Module["removeRunDependency"]("datafile_toolz.data")}Module["addRunDependency"]("datafile_toolz.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.7/site-packages/toolz/recipes.py",start:0,end:1287,audio:0},{filename:"/lib/python3.7/site-packages/toolz/__init__.py",start:1287,end:1611,audio:0},{filename:"/lib/python3.7/site-packages/toolz/_signatures.py",start:1611,end:24079,audio:0},{filename:"/lib/python3.7/site-packages/toolz/functoolz.py",start:24079,end:58584,audio:0},{filename:"/lib/python3.7/site-packages/toolz/dicttoolz.py",start:58584,end:67583,audio:0},{filename:"/lib/python3.7/site-packages/toolz/utils.py",start:67583,end:67722,audio:0},{filename:"/lib/python3.7/site-packages/toolz/itertoolz.py",start:67722,end:95384,audio:0},{filename:"/lib/python3.7/site-packages/toolz/compatibility.py",start:95384,end:96541,audio:0},{filename:"/lib/python3.7/site-packages/toolz/tests/test_curried.py",start:96541,end:100188,audio:0},{filename:"/lib/python3.7/site-packages/toolz/tests/test_compatibility.py",start:100188,end:100733,audio:0},{filename:"/lib/python3.7/site-packages/toolz/tests/test_serialization.py",start:100733,end:106591,audio:0},{filename:"/lib/python3.7/site-packages/toolz/tests/test_itertoolz.py",start:106591,end:124794,audio:0},{filename:"/lib/python3.7/site-packages/toolz/tests/test_functoolz.py",start:124794,end:145131,audio:0},{filename:"/lib/python3.7/site-packages/toolz/tests/test_tlz.py",start:145131,end:146640,audio:0},{filename:"/lib/python3.7/site-packages/toolz/tests/test_curried_doctests.py",start:146640,end:146914,audio:0},{filename:"/lib/python3.7/site-packages/toolz/tests/test_signatures.py",start:146914,end:149841,audio:0},{filename:"/lib/python3.7/site-packages/toolz/tests/test_recipes.py",start:149841,end:150661,audio:0},{filename:"/lib/python3.7/site-packages/toolz/tests/test_utils.py",start:150661,end:150817,audio:0},{filename:"/lib/python3.7/site-packages/toolz/tests/test_dicttoolz.py",start:150817,end:159750,audio:0},{filename:"/lib/python3.7/site-packages/toolz/tests/test_inspect_args.py",start:159750,end:175966,audio:0},{filename:"/lib/python3.7/site-packages/toolz/sandbox/core.py",start:175966,end:180302,audio:0},{filename:"/lib/python3.7/site-packages/toolz/sandbox/__init__.py",start:180302,end:180370,audio:0},{filename:"/lib/python3.7/site-packages/toolz/sandbox/parallel.py",start:180370,end:183201,audio:0},{filename:"/lib/python3.7/site-packages/toolz/curried/__init__.py",start:183201,end:185901,audio:0},{filename:"/lib/python3.7/site-packages/toolz/curried/exceptions.py",start:185901,end:186238,audio:0},{filename:"/lib/python3.7/site-packages/toolz/curried/operator.py",start:186238,end:186728,audio:0},{filename:"/lib/python3.7/site-packages/tlz/__init__.py",start:186728,end:187066,audio:0},{filename:"/lib/python3.7/site-packages/tlz/_build_tlz.py",start:187066,end:190413,audio:0},{filename:"/lib/python3.7/site-packages/toolz-0.10.0-py3.7.egg-info/SOURCES.txt",start:190413,end:191314,audio:0},{filename:"/lib/python3.7/site-packages/toolz-0.10.0-py3.7.egg-info/not-zip-safe",start:191314,end:191315,audio:0},{filename:"/lib/python3.7/site-packages/toolz-0.10.0-py3.7.egg-info/top_level.txt",start:191315,end:191325,audio:0},{filename:"/lib/python3.7/site-packages/toolz-0.10.0-py3.7.egg-info/dependency_links.txt",start:191325,end:191326,audio:0},{filename:"/lib/python3.7/site-packages/toolz-0.10.0-py3.7.egg-info/PKG-INFO",start:191326,end:197540,audio:0}],remote_package_size:102913,package_uuid:"e5ec06ab-859c-4da0-b9de-e60ac0f6a9d8"})})();