This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsoupsieve.js
1 lines (1 loc) · 16.9 KB
/
soupsieve.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="soupsieve.data";var REMOTE_PACKAGE_BASE="soupsieve.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","soupsieve-1.8-py3.7.egg-info",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages","soupsieve",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages","tests",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages/tests","test_level1",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages/tests","test_extra",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages/tests","test_level3",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages/tests","test_level2",true,true);Module["FS_createPath"]("/lib/python3.7/site-packages/tests","test_level4",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:130534,cachedIndexes:[-1,-1],cachedChunks:[null,null],offsets:[0,926,1760,3057,4475,5628,6914,8226,9575,10719,11578,12392,13613,14714,15701,16750,17585,18527,19630,20711,21712,22395,23345,24207,25121,26183,27171,28267,29219,30238,31289,32208,33051,34136,35360,36601,37849,39199,40404,41352,42321,43295,44453,45236,45934,46814,47938,49015,49977,50891,51586,52550,53741,54865,55792,56689,58077,58999,60108,61659,62644,63434,64320,65203,66248,66978,67812,68628,69496,70074,71045,72184,72792,73735,74671,75521,76416,77195,78208,78742,79405,80207,80962,81585,82114,82741,83679,84400,85087,85928,86650,87374,88250,88679,89613,90494,91422,92157,92850,93587,94341,95211,96132,97323,98174,99028,99845,100795,101711,102502,103459,104282,104901,105735,106700,107511,108343,109016,109626,110256,110905,111793,112614,113392,114206,115106,116070,117040,118005,118672,119453,120227,121261,122111,123026,123735,124850,125757,126638,127326,127954,128625,129185,129891],sizes:[926,834,1297,1418,1153,1286,1312,1349,1144,859,814,1221,1101,987,1049,835,942,1103,1081,1001,683,950,862,914,1062,988,1096,952,1019,1051,919,843,1085,1224,1241,1248,1350,1205,948,969,974,1158,783,698,880,1124,1077,962,914,695,964,1191,1124,927,897,1388,922,1109,1551,985,790,886,883,1045,730,834,816,868,578,971,1139,608,943,936,850,895,779,1013,534,663,802,755,623,529,627,938,721,687,841,722,724,876,429,934,881,928,735,693,737,754,870,921,1191,851,854,817,950,916,791,957,823,619,834,965,811,832,673,610,630,649,888,821,778,814,900,964,970,965,667,781,774,1034,850,915,709,1115,907,881,688,628,671,560,706,643],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]};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_soupsieve.data")}Module["addRunDependency"]("datafile_soupsieve.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/soupsieve-1.8-py3.7.egg-info/SOURCES.txt",start:0,end:3748,audio:0},{filename:"/lib/python3.7/site-packages/soupsieve-1.8-py3.7.egg-info/PKG-INFO",start:3748,end:9478,audio:0},{filename:"/lib/python3.7/site-packages/soupsieve-1.8-py3.7.egg-info/dependency_links.txt",start:9478,end:9479,audio:0},{filename:"/lib/python3.7/site-packages/soupsieve-1.8-py3.7.egg-info/top_level.txt",start:9479,end:9495,audio:0},{filename:"/lib/python3.7/site-packages/soupsieve-1.8-py3.7.egg-info/requires.txt",start:9495,end:9550,audio:0},{filename:"/lib/python3.7/site-packages/soupsieve/util.py",start:9550,end:15140,audio:0},{filename:"/lib/python3.7/site-packages/soupsieve/css_types.py",start:15140,end:23466,audio:0},{filename:"/lib/python3.7/site-packages/soupsieve/css_match.py",start:23466,end:69287,audio:0},{filename:"/lib/python3.7/site-packages/soupsieve/css_parser.py",start:69287,end:112073,audio:0},{filename:"/lib/python3.7/site-packages/soupsieve/__meta__.py",start:112073,end:118694,audio:0},{filename:"/lib/python3.7/site-packages/soupsieve/__init__.py",start:118694,end:122534,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level1/test_escapes.py",start:122534,end:123265,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level1/test_pseudo_element.py",start:123265,end:123813,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level1/test_pseudo_class.py",start:123813,end:124489,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level1/test_at_rule.py",start:124489,end:124939,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level1/test_list.py",start:124939,end:126202,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level1/test_link.py",start:126202,end:127186,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level1/test_class.py",start:127186,end:129296,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level1/test_comments.py",start:129296,end:130786,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level1/test_active.py",start:130786,end:131563,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level1/test_visited.py",start:131563,end:132349,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level1/test_descendant.py",start:132349,end:133096,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level1/test_id.py",start:133096,end:134140,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level1/__init__.py",start:134140,end:134170,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level1/test_type.py",start:134170,end:136634,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_extra/test_attribute.py",start:136634,end:138349,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_extra/test_custom.py",start:138349,end:142150,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_extra/test_defined.py",start:142150,end:144847,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_extra/test_contains.py",start:144847,end:148664,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_extra/__init__.py",start:148664,end:148728,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level3/test_attribute.py",start:148728,end:150638,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level3/test_nth_last_of_type.py",start:150638,end:152199,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level3/test_subsequent_sibling.py",start:152199,end:153195,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level3/test_not.py",start:153195,end:154549,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level3/test_empty.py",start:154549,end:155594,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level3/test_nth_last_child.py",start:155594,end:157196,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level3/test_namespace.py",start:157196,end:167593,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level3/test_disabled.py",start:167593,end:172274,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level3/test_last_of_type.py",start:172274,end:174483,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level3/test_last_child.py",start:174483,end:175624,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level3/test_enabled.py",start:175624,end:180045,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level3/test_only_child.py",start:180045,end:180999,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level3/test_first_of_type.py",start:180999,end:183228,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level3/test_only_of_type.py",start:183228,end:184119,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level3/test_nth_of_type.py",start:184119,end:186016,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level3/test_root.py",start:186016,end:187262,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level3/test_nth_child.py",start:187262,end:192416,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level3/test_checked.py",start:192416,end:193635,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level3/test_target.py",start:193635,end:194554,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level3/__init__.py",start:194554,end:194584,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level2/test_focus.py",start:194584,end:196303,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level2/test_attribute.py",start:196303,end:206505,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level2/test_first_child.py",start:206505,end:207470,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level2/test_child.py",start:207470,end:210335,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level2/test_hover.py",start:210335,end:211100,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level2/test_universal_type.py",start:211100,end:212145,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level2/test_lang.py",start:212145,end:213128,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level2/test_next_sibling.py",start:213128,end:214568,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level2/__init__.py",start:214568,end:214598,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_attribute.py",start:214598,end:216879,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_focus_visible.py",start:216879,end:217788,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_not.py",start:217788,end:218717,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_required.py",start:218717,end:219815,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_default.py",start:219815,end:223865,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_focus_within.py",start:223865,end:224762,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_any_link.py",start:224762,end:226365,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_has.py",start:226365,end:231035,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_host_context.py",start:231035,end:231692,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_read_write.py",start:231692,end:233705,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_future.py",start:233705,end:234723,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_matches.py",start:234723,end:235061,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_host.py",start:235061,end:235858,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_out_of_range.py",start:235858,end:247015,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_optional.py",start:247015,end:248085,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_local_link.py",start:248085,end:249039,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_placeholder_shown.py",start:249039,end:251576,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_current.py",start:251576,end:253500,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_paused.py",start:253500,end:254646,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_is.py",start:254646,end:257639,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_playing.py",start:257639,end:258797,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_read_only.py",start:258797,end:260809,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_past.py",start:260809,end:261803,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_lang.py",start:261803,end:269819,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_where.py",start:269819,end:270786,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_nth_child.py",start:270786,end:272033,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_indeterminate.py",start:272033,end:273873,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_dir.py",start:273873,end:278009,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_scope.py",start:278009,end:281147,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_user_invalid.py",start:281147,end:281969,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_in_range.py",start:281969,end:293151,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/test_target_within.py",start:293151,end:294211,audio:0},{filename:"/lib/python3.7/site-packages/tests/test_level4/__init__.py",start:294211,end:294241,audio:0}],remote_package_size:134630,package_uuid:"e05b08be-c7f2-4da4-beac-da620fb893a4"})})();