PageSourceSearch

https://www.sfe.ru/wp-content/cache/min/1/wp-content/themes/medica…ort-units-buggyfill.hacks.js?ver=1790255942

js sfe.ru collected 2026-09-24 20:29:40 UTC 1,942 bytes, 1 lines download raw bytes

1(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===!0){supportsVminmaxCalc=!1;supportsVminmax=!1}function checkHacks(declarations,rule,name,value){var needsHack=name==='content'&&value.indexOf('viewport-units-buggyfill')>-1;if(!needsHack){return}var fakeRules=value.replace(quoteExpression,'');fakeRules.split(';').forEach(function(fakeRuleElement){var fakeRule=fakeRuleElement.split(':');if(fakeRule.length!==2){return}var name=fakeRule[0].trim();if(name==='viewport-units-buggyfill'){return}var 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])}})}return{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}if(isBuggyIE&&!options._listeningToResize){window.addEventListener('resize',_refresh,!0);options._listeningToResize=!0}},findDeclarations:function(declarations,rule,name,value){if(name===null){return}checkHacks(declarations,rule,name,value)},overwriteDeclaration:function(rule,name,_value){if(isBuggyIE&&name==='filter'){_value=_value.replace(/px/g,'')}return _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.