PageSourceSearch

https://ilga-portugal.pt/files/themes/ilga_theme/assets/third-party/modernizr/modernizr-custom.js?ver=3.6.0

js ilga-portugal.pt collected 2026-10-02 03:38:42 UTC 8,042 bytes, 3 lines download raw bytes

1/*! modernizr 3.6.0 (Custom Build) | MIT *
2 * https://modernizr.com/download/?-objectfit-texttrackapi_track-webp-webpalpha-webpanimation-xhrresponsetypeblob-prefixedcss-setclasses !*/
3!function(e,n,t){function r(){return"function"!=typeof n.createElement?n.createElement(arguments[0]):b?n.createElementNS.call(n,"http://www.w3.org/2000/svg",arguments[0]):n.createElement.apply(n,arguments)}function A(e,n){return typeof e===n}function o(e){var n=y.className,t=Modernizr._config.classPrefix||"";if(b&&(n=n.baseVal),Modernizr._config.enableJSClass){var r=new RegExp("(^|\\s)"+t+"no-js(\\s|$)");n=n.replace(r,"$1"+t+"js$2")}Modernizr._config.enableClasses&&(n+=" "+t+e.join(" "+t),b?y.className.baseVal=n:y.className=n)}function i(){var e,n,t,r,o,i,a;for(var s in C)if(C.hasOwnProperty(s)){if(e=[],n=C[s],n.name&&(e.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length))for(t=0;t<n.options.aliases.length;t++)e.push(n.options.aliases[t].toLowerCase());for(r=A(n.fn,"function")?n.fn():n.fn,o=0;o<e.length;o++)i=e[o],a=i.split("."),1===a.length?Modernizr[a[0]]=r:(!Modernizr[a[0]]||Modernizr[a[0]]instanceof Boolean||(Modernizr[a[0]]=new Boolean(Modernizr[a[0]])),Modernizr[a[0]][a[1]]=r),w.push((r?"":"no-")+a.join("-"))}}function a(e){return e.replace(/([A-Z])/g,function(e,n){return"-"+n.toLowerCase()}).replace(/^ms-/,"-ms-")}function s(e,n){if("object"==typeof e)for(var t in e)_(e,t)&&s(t,e[t]);else{e=e.toLowerCase();var r=e.split("."),A=Modernizr[r[0]];if(2==r.length&&(A=A[r[1]]),"undefined"!=typeof A)return Modernizr;n="function"==typeof n?n():n,1==r.length?Modernizr[r[0]]=n:(!Modernizr[r[0]]||Modernizr[r[0]]instanceof Boolean||(Modernizr[r[0]]=new Boolean(Modernizr[r[0]])),Modernizr[r[0]][r[1]]=n),o([(n&&0!=n?"":"no-")+r.join("-")]),Modernizr._trigger(e,n)}return Modernizr}function l(e){return e.replace(/([a-z])-([a-z])/g,function(e,n,t){return n+t.toUpperCase()}).replace(/^-/,"")}function f(e,n){return!!~(""+e).indexOf(n)}function u(e,n){return function(){return e.apply(n,arguments)}}function p(e,n,t){var r;for(var o in e)if(e[o]in n)return t===!1?e[o]:(r=n[e[o]],A(r,"function")?u(r,t||n):r);return!1}function c(n,t,r){var A;if("getComputedStyle"in e){A=getComputedStyle.call(e,n,t);var o=e.console;if(null!==A)r&&(A=A.getPropertyValue(r));else if(o){var i=o.error?"error":"log";o[i].call(o,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else A=!t&&n.currentStyle&&n.currentStyle[r];return A}function d(){var e=n.body;return e||(e=r(b?"svg":"body"),e.fake=!0),e}function m(e,t,A,o){var i,a,s,l,f="modernizr",u=r("div"),p=d();if(parseInt(A,10))for(;A--;)s=r("div"),s.id=o?o[A]:f+(A+1),u.appendChild(s);return i=r("style"),i.type="text/css",i.id="s"+f,(p.fake?p:u).appendChild(i),p.appendChild(u),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(n.createTextNode(e)),u.id=f,p.fake&&(p.style.background="",p.style.overflow="hidden",l=y.style.overflow,y.style.overflow="hidden",y.appendChild(p)),a=t(u,e),p.fake?(p.parentNode.removeChild(p),y.style.overflow=l,y.offsetHeight):u.parentNode.removeChild(u),!!a}function g(n,r){var A=n.length;if("CSS"in e&&"supports"in e.CSS){for(;A--;)if(e.CSS.supports(a(n[A]),r))return!0;return!1}if("CSSSupportsRule"in e){for(var o=[];A--;)o.push("("+a(n[A])+":"+r+")");return o=o.join(" or "),m("@supports ("+o+") { #modernizr { position: absolute; } }",function(e){return"absolute"==c(e,null,"position")})}return t}function h(e,n,o,i){function a(){u&&(delete k.style,delete k.modElem)}if(i=A(i,"undefined")?!1:i,!A(o,"undefined")){var s=g(e,o);if(!A(s,"undefined"))return s}for(var u,p,c,d,m,h=["modernizr","tspan","samp"];!k.style&&h.length;)u=!0,k.modElem=r(h.shift()),k.style=k.modElem.style;for(c=e.length,p=0;c>p;p++)if(d=e[p],m=k.style[d],f(d,"-")&&(d=l(d)),k.style[d]!==t){if(i||A(o,"undefined"))return a(),"pfx"==n?d:!0;try{k.style[d]=o}catch(v){}if(k.style[d]!=m)return a(),"pfx"==n?d:!0}return a(),!1}function v(e,n,t,r,o){var i=e.charAt(0).toUpperCase()+e.slice(1),a=(e+" "+R.join(i+" ")+i).split(" ");return A(n,"string")||A(n,"undefined")?h(a,n,r,o):(a=(e+" "+S.join(i+" ")+i).split(" "),p(a,n,t))}var w=[],y=n.documentElement,b="svg"===y.nodeName.toLowerCase(),C=[],Q={_version:"3.6.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,n){var t=this;setTimeout(function(){n(t[e])},0)},addTest:function(e,n,t){C.push({name:e,fn:n,options:t})},addAsyncTest:function(e){C.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=Q,Modernizr=new Modernizr,Modernizr.addTest("texttrackapi","function"==typeof r("video").addTextTrack),Modernizr.addTest("track","kind"in r("track"));var B=function(e){if("undefined"==typeof XMLHttpRequest)return!1;var n=new XMLHttpRequest;n.open("get","/",!0);try{n.responseType=e}catch(t){return!1}return"response"in n&&n.responseType==e};Modernizr.addTest("xhrresponsetypeblob",B("blob"));var _;!function(){var e={}.hasOwnProperty;_=A(e,"undefined")||A(e.call,"undefined")?function(e,n){return n in e&&A(e.constructor.prototype[n],"undefined")}:function(n,t){return e.call(n,t)}}(),Q._l={},Q.on=function(e,n){this._l[e]||(this._l[e]=[]),this._l[e].push(n),Modernizr.hasOwnProperty(e)&&setTimeout(function(){Modernizr._trigger(e,Modernizr[e])},0)},Q._trigger=function(e,n){if(this._l[e]){var t=this._l[e];setTimeout(function(){var e,r;for(e=0;e<t.length;e++)(r=t[e])(n)},0),delete this._l[e]}},Modernizr._q.push(function(){Q.addTest=s}),Modernizr.addAsyncTest(function(){var e=new Image;e.onerror=function(){s("webpanimation",!1,{aliases:["webp-animation"]})},e.onload=function(){s("webpanimation",1==e.width,{aliases:["webp-animation"]})},e.src="data:image/webp;base64,UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"}),Modernizr.addAsyncTest(function(){var e=new Image;e.onerror=function(){s("webpalpha",!1,{aliases:["webp-alpha"]})},e.onload=function(){s("webpalpha",1==e.width,{aliases:["webp-alpha"]})},e.src="data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA=="}),Modernizr.addAsyncTest(function(){function e(e,n,t){function r(n){var r=n&&"load"===n.type?1==A.width:!1,o="webp"===e;s(e,o&&r?new Boolean(r):r),t&&t(n)}var A=new Image;A.onerror=r,A.onload=r,A.src=n}var n=[{uri:"data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAwA0JaQAA3AA/vuUAAA=",name:"webp"},{uri:"data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA==",name:"webp.alpha"},{uri:"data:image/webp;base64,UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA",name:"webp.animation"},{uri:"data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA=",name:"webp.lossless"}],t=n.shift();e(t.name,t.uri,function(t){if(t&&"load"===t.type)for(var r=0;r<n.length;r++)e(n[r].name,n[r].uri)})});var x="Moz O ms Webkit",S=Q._config.usePrefixes?x.toLowerCase().split(" "):[];Q._domPrefixes=S;var R=Q._config.usePrefixes?x.split(" "):[];Q._cssomPrefixes=R;var T=function(n){var r,A=prefixes.length,o=e.CSSRule;if("undefined"==typeof o)return t;if(!n)return!1;if(n=n.replace(/^@/,""),r=n.replace(/-/g,"_").toUpperCase()+"_RULE",r in o)return"@"+n;for(var i=0;A>i;i++){var a=prefixes[i],s=a.toUpperCase()+"_"+r;if(s in o)return"@-"+a.toLowerCase()+"-"+n}return!1};Q.atRule=T;var U={elem:r("modernizr")};Modernizr._q.push(function(){delete U.elem});var k={style:U.elem.style};Modernizr._q.unshift(function(){delete k.style}),Q.testAllProps=v;var D=Q.prefixed=function(e,n,t){return 0===e.indexOf("@")?T(e):(-1!=e.indexOf("-")&&(e=l(e)),n?v(e,n,t):v(e,"pfx"))};Q.prefixedCSS=function(e){var n=D(e);return n&&a(n)};Modernizr.addTest("objectfit",!!D("objectFit"),{aliases:["object-fit"]}),i(),o(w),delete Q.addTest,delete Q.addAsyncTest;for(var E=0;E<Modernizr._q.length;E++)Modernizr._q[E]();e.Modernizr=Modernizr}(window,document);

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.