File size: 8,818 Bytes
a0762a6
1
var 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="cffi_example.data";var REMOTE_PACKAGE_BASE="cffi_example.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","cffi_example",true,true);Module["FS_createPath"]("/lib/python3.9/site-packages","cffi_example-0.1-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:356625,cachedIndexes:[-1,-1],cachedChunks:[null,null],offsets:[0,1285,2586,3875,5556,7025,8400,9583,11167,12591,13959,15658,17295,18962,20634,22146,23574,24633,25681,26975,28297,29751,31335,32857,34238,35613,37180,38763,40348,42034,43344,44857,46379,47845,49338,51040,52760,54249,55887,57505,59122,60848,62509,64216,65938,67680,69351,71098,72834,74494,76247,77942,79626,81153,82943,84550,86104,87772,89319,90729,92315,93949,95487,97087,98725,100332,101829,103523,104971,106425,107927,109433,110791,112328,113883,115559,117128,118583,120092,121484,123135,124744,126277,127873,129350,130887,132586,134100,135690,137331,138974,140519,142119,143684,145267,146630,148148,149669,151161,152731,154399,155999,157545,159084,160673,161989,163564,165262,166799,168485,170177,171403,173059,174770,176435,178044,179631,181332,182999,184555,186274,187827,189510,191172,192858,194602,196243,197775,198963,199444,200332,201456,202579,203512,204258,205107,205870,206510,207824,209746,211794,213730,214901,215767,217161,218866,220419,222417,224455,226310,228298,229861,231366,232722,234335,236383,238431,240479,242527,244575,246623,248671,250719,252767,254815,256863,258911,260959,263007,265055,267103,269151,271199,273247,275295,277343,279391,281439,283277,285325,287373,289421,291463,293441,294271,295956,298004,300052,302029,304077,306125,307966,310014,312062,314110,316158,318206,320194,322242,324290,326338,328386,330434,332482,334530,336448,337875,339923,341805,343853,345901,347949,349997,351938,352144,352169,353019,354393,355857],sizes:[1285,1301,1289,1681,1469,1375,1183,1584,1424,1368,1699,1637,1667,1672,1512,1428,1059,1048,1294,1322,1454,1584,1522,1381,1375,1567,1583,1585,1686,1310,1513,1522,1466,1493,1702,1720,1489,1638,1618,1617,1726,1661,1707,1722,1742,1671,1747,1736,1660,1753,1695,1684,1527,1790,1607,1554,1668,1547,1410,1586,1634,1538,1600,1638,1607,1497,1694,1448,1454,1502,1506,1358,1537,1555,1676,1569,1455,1509,1392,1651,1609,1533,1596,1477,1537,1699,1514,1590,1641,1643,1545,1600,1565,1583,1363,1518,1521,1492,1570,1668,1600,1546,1539,1589,1316,1575,1698,1537,1686,1692,1226,1656,1711,1665,1609,1587,1701,1667,1556,1719,1553,1683,1662,1686,1744,1641,1532,1188,481,888,1124,1123,933,746,849,763,640,1314,1922,2048,1936,1171,866,1394,1705,1553,1998,2038,1855,1988,1563,1505,1356,1613,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,1838,2048,2048,2048,2042,1978,830,1685,2048,2048,1977,2048,2048,1841,2048,2048,2048,2048,2048,1988,2048,2048,2048,2048,2048,2048,2048,1918,1427,2048,1882,2048,2048,2048,2048,1941,206,25,850,1374,1464,768],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,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,1,1,1,0,0,1,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,1,1,0,1,0,0,0,0,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_cffi_example.data")}Module["addRunDependency"]("datafile_cffi_example.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/cffi_example/__init__.py",start:0,end:0,audio:0},{filename:"/lib/python3.9/site-packages/cffi_example/build_fnmatch.py",start:0,end:825,audio:0},{filename:"/lib/python3.9/site-packages/cffi_example/build_person.py",start:825,end:2333,audio:0},{filename:"/lib/python3.9/site-packages/cffi_example/fnmatch.py",start:2333,end:3229,audio:0},{filename:"/lib/python3.9/site-packages/cffi_example/person.py",start:3229,end:5882,audio:0},{filename:"/lib/python3.9/site-packages/cffi_example/utils.py",start:5882,end:6285,audio:0},{filename:"/lib/python3.9/site-packages/cffi_example/_person.so",start:6285,end:9655,audio:0},{filename:"/lib/python3.9/site-packages/cffi_example/_fnmatch.so",start:9655,end:441185,audio:0},{filename:"/lib/python3.9/site-packages/cffi_example-0.1-py3.9.egg-info/PKG-INFO",start:441185,end:447013,audio:0},{filename:"/lib/python3.9/site-packages/cffi_example-0.1-py3.9.egg-info/dependency_links.txt",start:447013,end:447014,audio:0},{filename:"/lib/python3.9/site-packages/cffi_example-0.1-py3.9.egg-info/requires.txt",start:447014,end:447026,audio:0},{filename:"/lib/python3.9/site-packages/cffi_example-0.1-py3.9.egg-info/top_level.txt",start:447026,end:447039,audio:0},{filename:"/lib/python3.9/site-packages/cffi_example-0.1-py3.9.egg-info/SOURCES.txt",start:447039,end:447478,audio:0}],remote_package_size:360721,package_uuid:"dfff96fb-405e-4bd1-b801-a7ab0d8d4e67"})})();