1 line
No EOL
9.9 KiB
JavaScript
1 line
No EOL
9.9 KiB
JavaScript
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="uncertainties.data";var REMOTE_PACKAGE_BASE="uncertainties.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.8",true,true);Module["FS_createPath"]("/lib/python3.8","site-packages",true,true);Module["FS_createPath"]("/lib/python3.8/site-packages","uncertainties",true,true);Module["FS_createPath"]("/lib/python3.8/site-packages/uncertainties","lib1to2",true,true);Module["FS_createPath"]("/lib/python3.8/site-packages/uncertainties/lib1to2","fixes",true,true);Module["FS_createPath"]("/lib/python3.8/site-packages/uncertainties","unumpy",true,true);Module["FS_createPath"]("/lib/python3.8/site-packages","uncertainties-3.1.4-py3.8.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:192352,cachedIndexes:[-1,-1],cachedChunks:[null,null],offsets:[0,991,2406,3507,4852,5839,7187,8510,9879,11209,12662,14170,15571,16946,18227,19564,20951,22143,23339,24679,25933,27299,28433,29739,30916,32072,33410,34209,35692,37064,38578,40051,41488,42789,44011,45270,46405,47550,48789,50050,51235,52602,53938,55210,56570,57883,59285,60703,62016,63323,64589,65696,66814,67998,69127,70345,71574,72935,74302,75717,76978,78258,79273,80715,82126,83171,84384,85824,87144,88497,89701,90973,92394,93760,95144,96301,97340,98500,99606,100636,101611,102846,104116,105592,106943,107928,109132,110001,110819,111431,112397,113039,114177,115338,116244,117198,118243,119259,120572,121565,122698,123716,124942,126017,126999,127753,128588,129784,131094,132170,133370,134378,135338,136512,137762,139232,140624,141729,143101,144467,145701,147164,148533,149404,150206,151317,152319,153514,154781,156243,157599,158597,159947,161251,162508,163729,164951,166282,167470,168696,169994,171427,172760,174148,175303,176697,178040,179090,180188,181326,182616,183845,185210,186615,187774,189155,190412,191491],sizes:[991,1415,1101,1345,987,1348,1323,1369,1330,1453,1508,1401,1375,1281,1337,1387,1192,1196,1340,1254,1366,1134,1306,1177,1156,1338,799,1483,1372,1514,1473,1437,1301,1222,1259,1135,1145,1239,1261,1185,1367,1336,1272,1360,1313,1402,1418,1313,1307,1266,1107,1118,1184,1129,1218,1229,1361,1367,1415,1261,1280,1015,1442,1411,1045,1213,1440,1320,1353,1204,1272,1421,1366,1384,1157,1039,1160,1106,1030,975,1235,1270,1476,1351,985,1204,869,818,612,966,642,1138,1161,906,954,1045,1016,1313,993,1133,1018,1226,1075,982,754,835,1196,1310,1076,1200,1008,960,1174,1250,1470,1392,1105,1372,1366,1234,1463,1369,871,802,1111,1002,1195,1267,1462,1356,998,1350,1304,1257,1221,1222,1331,1188,1226,1298,1433,1333,1388,1155,1394,1343,1050,1098,1138,1290,1229,1365,1405,1159,1381,1257,1079,861],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]};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_uncertainties.data")}Module["addRunDependency"]("datafile_uncertainties.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.8/site-packages/uncertainties/test_umath.py",start:0,end:11844,audio:0},{filename:"/lib/python3.8/site-packages/uncertainties/__init__.py",start:11844,end:21199,audio:0},{filename:"/lib/python3.8/site-packages/uncertainties/core.py",start:21199,end:147075,audio:0},{filename:"/lib/python3.8/site-packages/uncertainties/1to2.py",start:147075,end:147459,audio:0},{filename:"/lib/python3.8/site-packages/uncertainties/umath.py",start:147459,end:148778,audio:0},{filename:"/lib/python3.8/site-packages/uncertainties/test_uncertainties.py",start:148778,end:232469,audio:0},{filename:"/lib/python3.8/site-packages/uncertainties/umath_core.py",start:232469,end:247280,audio:0},{filename:"/lib/python3.8/site-packages/uncertainties/lib1to2/__init__.py",start:247280,end:247280,audio:0},{filename:"/lib/python3.8/site-packages/uncertainties/lib1to2/test_1to2.py",start:247280,end:254338,audio:0},{filename:"/lib/python3.8/site-packages/uncertainties/lib1to2/fixes/fix_std_devs.py",start:254338,end:254828,audio:0},{filename:"/lib/python3.8/site-packages/uncertainties/lib1to2/fixes/fix_ufloat.py",start:254828,end:257869,audio:0},{filename:"/lib/python3.8/site-packages/uncertainties/lib1to2/fixes/__init__.py",start:257869,end:257869,audio:0},{filename:"/lib/python3.8/site-packages/uncertainties/lib1to2/fixes/fix_uarray_umatrix.py",start:257869,end:260425,audio:0},{filename:"/lib/python3.8/site-packages/uncertainties/lib1to2/fixes/fix_std_dev.py",start:260425,end:261462,audio:0},{filename:"/lib/python3.8/site-packages/uncertainties/unumpy/__init__.py",start:261462,end:264303,audio:0},{filename:"/lib/python3.8/site-packages/uncertainties/unumpy/core.py",start:264303,end:292559,audio:0},{filename:"/lib/python3.8/site-packages/uncertainties/unumpy/test_ulinalg.py",start:292559,end:295420,audio:0},{filename:"/lib/python3.8/site-packages/uncertainties/unumpy/test_unumpy.py",start:295420,end:306122,audio:0},{filename:"/lib/python3.8/site-packages/uncertainties/unumpy/ulinalg.py",start:306122,end:306493,audio:0},{filename:"/lib/python3.8/site-packages/uncertainties-3.1.4-py3.8.egg-info/top_level.txt",start:306493,end:306507,audio:0},{filename:"/lib/python3.8/site-packages/uncertainties-3.1.4-py3.8.egg-info/PKG-INFO",start:306507,end:322200,audio:0},{filename:"/lib/python3.8/site-packages/uncertainties-3.1.4-py3.8.egg-info/dependency_links.txt",start:322200,end:322201,audio:0},{filename:"/lib/python3.8/site-packages/uncertainties-3.1.4-py3.8.egg-info/SOURCES.txt",start:322201,end:323349,audio:0},{filename:"/lib/python3.8/site-packages/uncertainties-3.1.4-py3.8.egg-info/requires.txt",start:323349,end:323434,audio:0}],remote_package_size:196448,package_uuid:"1d77811e-bfc9-4eb9-a796-89090a539ae8"})})(); |