PageSourceSearch

https://www.wilsonautosalestx.com/js/css-variables-polyfill.min.js

js wilsonautosalestx.com collected 2026-09-29 17:13:30 UTC 2,674 bytes, 1 lines download raw bytes

1var cssVariables={};function findCSSVariables(e){for(var s=0;s<e.length;s++)for(var r=e[s],l=0;l<r.rules.length;l++){var a=r.rules[l];for(var t in a.styles)0===t.indexOf("--")&&(cssVariables[t]=cssVariables[t]||{},cssVariables[t][a.selector]=a.styles[t])}function i(e){for(var s,r=!1,l=/var\(([^,]*)(?:,(.*))?\)/g;s=l.exec(e.value);){r=!0;var a=[],t=s[1];s[2];if(cssVariables[t])for(var i in cssVariables[t]){var n={selector:combineSelectors(i,e.selector),value:e.value.replace(s[0],cssVariables[t][i])};a.push(n)}}return r?a:null}for(var n in cssVariables)for(var c in cssVariables[n]){var o=i({selector:c,value:cssVariables[n][c]});if(o){delete cssVariables[n][c];for(s=0;s<o.length;s++)cssVariables[n][o[s].selector]=o[s].value}}}function combineSelectors(e,s){if(":root"===e.trim())return s;var r=e.split(","),l=s.split(","),a="";return r.forEach((function(e){e=e.trim(),l.forEach((function(s){0!==(s=s.trim()).indexOf(".")&&0!==s.indexOf("#")||(a+=e+s+","),a+=e+" "+s+","}))})),a.slice(0,-1)}function replaceVars(e){for(var s,r=/var\(([^,]*)(?:,(.*))?\)/g,l=[];s=r.exec(e.value);){!0;var a=s[1];s[2];for(var t in cssVariables[a])l.push({selector:combineSelectors(t,e.selector),style:e.style,value:e.value.replace(s[0],cssVariables[a][t])})}return l}function createPolyfilledStyle(e){for(var s=0;s<e.length;s++){for(var r="",l=e[s],a=0;a<l.rules.length;a++){var t=l.rules[a];for(var i in t.styles)for(var n=replaceVars({selector:t.selector,style:i,value:t.styles[i]}),c=0;c<n.length;c++)r+=n[c].selector+"{"+n[c].style+":"+n[c].value+"}"}r.trim()&&$("head").append($('<style type="text/css">').addClass("inserted").attr("for",l.src).text(r))}}function getPageCSS(e){var s=[],r=[],l=/([^{]+){([^}]+)}/g,a=/([^:]*):([^;]*);?/g;function t(e,s){s=s.replace(/\/\*[\s\S]*?\*\//g,"");for(var t,i={src:e,rules:[]},n="";t=l.exec(s);){var c=t[1].trim(),o=t[2].trim();if(0===c.indexOf("@media"))n=c;else{0===c.indexOf("}")&&n&&(c=c.substring(1).trim(),n="");for(var f={selector:c,styles:{},media:n};styleMatch=a.exec(o);){var u=styleMatch[1].trim(),v=styleMatch[2].trim();f.styles[u]=v}i.rules.push(f)}}r.push(i)}$('link[rel="stylesheet"]').each((function(){var e=$.Deferred(),r=$(this).attr("href");console.log("Fetching CSS: "+r),s.push(e),$.get(r,(function(e){console.log("Parsing CSS: "+r),t(r,e)})).always(e.resolve)})),$.when.apply($,s).done((function(){$("style:not(.inserted)").each((function(){t("inl
1ine",$(this).text())})),e(r)}))}console.time("Processing CSS Variables"),$("body").addClass("cssvars-polyfilled"),getPageCSS((function(e){console.log("Finished Loading CSS files"),findCSSVariables(e),createPolyfilledStyle(e),console.timeEnd("Processing CSS Variables")}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.