1/*! 2 * viewport-units-buggyfill.hacks v0.6.0 3 * @web: https://github.com/rodneyrehm/viewport-units-buggyfill/ 4 * @author: Zoltan Hawryluk - http://www.useragentman.com/ 5 */ 6(function(root,factory){'use strict';if(typeof define==='function'&&define.amd){define([],factory)}else if(typeof exports==='object'){module.exports=factory()}else{root.viewportUnitsBuggyfillHacks=factory()}}(this,function(){'use strict';var options;var calcExpression=/calc\(/g;var quoteExpression=/[\"\']/g;var urlExpression=/url\([^\)]*\)/g;var userAgent=window.navigator.userAgent;var isBuggyIE=/MSIE [0-9]\./i.test(userAgent);var isOldIE=/MSIE [0-8]\./i.test(userAgent);var supportsVminmax=!0;var supportsVminmaxCalc=!0;if(!isBuggyIE){isBuggyIE=!!navigator.userAgent.match(/MSIE 10\.|Trident.*rv[ :]*1[01]\.| Edge\/1\d\./)} 7if(isBuggyIE===!0){supportsVminmaxCalc=!1;supportsVminmax=!1} 8function checkHacks(declarations,rule,name,value){var needsHack=name==='content'&&value.indexOf('viewport-units-buggyfill')>-1;if(!needsHack){return} 9var fakeRules=value.replace(quoteExpression,'');fakeRules.split(';').forEach(function(fakeRuleElement){var fakeRule=fakeRuleElement.split(':');if(fakeRule.length!==2){return} 10var name=fakeRule[0].trim();if(name==='viewport-units-buggyfill'){return} 11var value=fakeRule[1].trim();declarations.push([rule,name,value]);if(calcExpression.test(value)){var webkitValue=value.replace(calcExpression,'-webkit-calc(');declarations.push([rule,name,webkitValue])}})} 12return{required:function(options){return options.isMobileSafari||isBuggyIE},initialize:function(initOptions){options=initOptions;var div=document.createElement('div');div.style.width='1vmax';supportsVminmax=div.style.width!=='';if(options.isMobileSafari||options.isBadStockAndroid){supportsVminmaxCalc=!1}},initializeEvents:function(options,refresh,_refresh){if(options.force){return} 13if(isBuggyIE&&!options._listeningToResize){window.addEventListener('resize',_refresh,!0);options._listeningToResize=!0}},findDeclarations:function(declarations,rule,name,value){if(name===null){return} 14checkHacks(declarations,rule,name,value)},overwriteDeclaration:function(rule,name,_value){if(isBuggyIE&&name==='filter'){_value=_value.replace(/px/g,'')} 15return _value}}}))
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.