tinkerbell/web/html5lib.js

1 line
No EOL
12 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="html5lib.data";var REMOTE_PACKAGE_BASE="html5lib.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","html5lib",true,true);Module["FS_createPath"]("/lib/python3.8/site-packages/html5lib","treewalkers",true,true);Module["FS_createPath"]("/lib/python3.8/site-packages/html5lib","treebuilders",true,true);Module["FS_createPath"]("/lib/python3.8/site-packages/html5lib","treeadapters",true,true);Module["FS_createPath"]("/lib/python3.8/site-packages/html5lib","filters",true,true);Module["FS_createPath"]("/lib/python3.8/site-packages/html5lib","_trie",true,true);Module["FS_createPath"]("/lib/python3.8/site-packages","html5lib-1.1-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:236117,cachedIndexes:[-1,-1],cachedChunks:[null,null],offsets:[0,1280,2548,3741,4866,5899,6817,7603,8870,10155,11448,12762,13945,15404,16941,18240,19207,20461,21652,22753,23843,24583,25667,26779,27877,29080,30257,30866,31427,32146,32979,33956,34923,35786,36719,37772,38786,39667,40447,41093,41885,42758,43568,44439,45334,46071,47102,48016,48901,49699,50634,51700,52842,53691,54619,55574,56448,57368,58262,59235,59852,60882,61784,62720,63712,64415,65301,66208,67088,67999,68910,69735,70531,71282,72463,73806,74923,76142,77301,78468,79716,80887,82105,83319,84472,85339,86405,87417,88501,89484,90596,91445,92447,93798,94803,95946,96958,98051,98980,99788,100528,101248,102109,102755,103373,103991,104495,105078,105774,106272,106803,107557,108544,109338,109983,110637,111330,112312,112875,113369,113937,114545,115234,116065,116687,117208,117710,118260,118817,119408,120540,121348,122063,122897,123602,124273,125114,125682,126284,127387,128428,129560,130665,131626,132521,133483,134330,135093,136071,136953,137869,138811,139715,140644,141563,142503,143438,144351,145274,146152,147118,147942,148739,149668,150588,151526,152423,153272,154197,155101,156103,157445,158398,159372,160312,161562,162566,163528,164811,165660,166692,167618,168724,169852,170958,172115,173197,174309,175324,176422,177426,178648,180046,181192,182052,183042,184e3,184925,185897,186817,187700,188643,189580,190515,191858,192744,193644,194710,195515,196502,197688,198862,200059,201167,201970,202899,203359,203886,204631,205345,206097,206837,207785,208852,209672,210851,211933,213118,214357,215456,216221,217233,218198,218998,219776,220442,221542,222813,223810,225136,226389,227693,229045,230300,231624,232990,233887,234864,235414,235758],sizes:[1280,1268,1193,1125,1033,918,786,1267,1285,1293,1314,1183,1459,1537,1299,967,1254,1191,1101,1090,740,1084,1112,1098,1203,1177,609,561,719,833,977,967,863,933,1053,1014,881,780,646,792,873,810,871,895,737,1031,914,885,798,935,1066,1142,849,928,955,874,920,894,973,617,1030,902,936,992,703,886,907,880,911,911,825,796,751,1181,1343,1117,1219,1159,1167,1248,1171,1218,1214,1153,867,1066,1012,1084,983,1112,849,1002,1351,1005,1143,1012,1093,929,808,740,720,861,646,618,618,504,583,696,498,531,754,987,794,645,654,693,982,563,494,568,608,689,831,622,521,502,550,557,591,1132,808,715,834,705,671,841,568,602,1103,1041,1132,1105,961,895,962,847,763,978,882,916,942,904,929,919,940,935,913,923,878,966,824,797,929,920,938,897,849,925,904,1002,1342,953,974,940,1250,1004,962,1283,849,1032,926,1106,1128,1106,1157,1082,1112,1015,1098,1004,1222,1398,1146,860,990,958,925,972,920,883,943,937,935,1343,886,900,1066,805,987,1186,1174,1197,1108,803,929,460,527,745,714,752,740,948,1067,820,1179,1082,1185,1239,1099,765,1012,965,800,778,666,1100,1271,997,1326,1253,1304,1352,1255,1324,1366,897,977,550,344,359],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,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,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_html5lib.data")}Module["addRunDependency"]("datafile_html5lib.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/html5lib/serializer.py",start:0,end:15747,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/__init__.py",start:15747,end:16890,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/_ihatexml.py",start:16890,end:33618,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/html5parser.py",start:33618,end:150792,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/_utils.py",start:150792,end:155711,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/_inputstream.py",start:155711,end:188011,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/_tokenizer.py",start:188011,end:265039,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/constants.py",start:265039,end:348503,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/treewalkers/base.py",start:348503,end:355979,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/treewalkers/__init__.py",start:355979,end:361698,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/treewalkers/dom.py",start:361698,end:363111,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/treewalkers/etree.py",start:363111,end:367650,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/treewalkers/etree_lxml.py",start:367650,end:373995,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/treewalkers/genshi.py",start:373995,end:376304,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/treebuilders/base.py",start:376304,end:390857,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/treebuilders/__init__.py",start:390857,end:394449,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/treebuilders/dom.py",start:394449,end:403374,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/treebuilders/etree.py",start:403374,end:416198,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/treebuilders/etree_lxml.py",start:416198,end:430952,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/treeadapters/sax.py",start:430952,end:432728,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/treeadapters/__init__.py",start:432728,end:433378,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/treeadapters/genshi.py",start:433378,end:435093,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/filters/base.py",start:435093,end:435379,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/filters/inject_meta_charset.py",start:435379,end:438324,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/filters/sanitizer.py",start:438324,end:465209,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/filters/alphabeticalattributes.py",start:465209,end:466128,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/filters/whitespace.py",start:466128,end:467342,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/filters/__init__.py",start:467342,end:467342,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/filters/lint.py",start:467342,end:470973,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/filters/optionaltags.py",start:470973,end:481561,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/_trie/__init__.py",start:481561,end:481670,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/_trie/py.py",start:481670,end:483433,audio:0},{filename:"/lib/python3.8/site-packages/html5lib/_trie/_base.py",start:483433,end:484446,audio:0},{filename:"/lib/python3.8/site-packages/html5lib-1.1-py3.8.egg-info/top_level.txt",start:484446,end:484455,audio:0},{filename:"/lib/python3.8/site-packages/html5lib-1.1-py3.8.egg-info/PKG-INFO",start:484455,end:504219,audio:0},{filename:"/lib/python3.8/site-packages/html5lib-1.1-py3.8.egg-info/dependency_links.txt",start:504219,end:504220,audio:0},{filename:"/lib/python3.8/site-packages/html5lib-1.1-py3.8.egg-info/SOURCES.txt",start:504220,end:510693,audio:0},{filename:"/lib/python3.8/site-packages/html5lib-1.1-py3.8.egg-info/requires.txt",start:510693,end:510896,audio:0}],remote_package_size:240213,package_uuid:"f385a5b5-ba45-4a8f-a471-bbe38d9c17d2"})})();