jahresbericht2018/assets/js/compat/modernizr.js

1 line
11 KiB
JavaScript
Raw Normal View History

2024-01-12 13:54:37 +00:00
!function(e,t,n){var o=[],i={_version:"3.5.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){o.push({name:e,fn:t,options:n})},addAsyncTest:function(e){o.push({name:null,fn:e})}},r=function(){};r.prototype=i,(r=new r).addTest("geolocation","geolocation"in navigator),r.addTest("history",function(){var t=navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone")||"file:"===location.protocol)&&(e.history&&"pushState"in e.history)}),r.addTest("webaudio",function(){var t="webkitAudioContext"in e,n="AudioContext"in e;return r._config.usePrefixes&&t||n}),r.addTest("filereader",!!(e.File&&e.FileList&&e.FileReader));var a=i._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];i._prefixes=a;var s=[];function l(e,t){return typeof e===t}var u,c,d=i._config.usePrefixes?"Moz O ms Webkit".toLowerCase().split(" "):[];i._domPrefixes=d,u=l(c={}.hasOwnProperty,"undefined")||l(c.call,"undefined")?function(e,t){return t in e&&l(e.constructor.prototype[t],"undefined")}:function(e,t){return c.call(e,t)};var f=i._config.usePrefixes?"Moz O ms Webkit".split(" "):[];i._cssomPrefixes=f;var p=function(t){var o,i=a.length,r=e.CSSRule;if(void 0===r)return n;if(!t)return!1;if((o=(t=t.replace(/^@/,"")).replace(/-/g,"_").toUpperCase()+"_RULE")in r)return"@"+t;for(var s=0;s<i;s++){var l=a[s];if(l.toUpperCase()+"_"+o in r)return"@-"+l.toLowerCase()+"-"+t}return!1};function h(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,n){return t+n.toUpperCase()}).replace(/^-/,"")}function v(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}i.atRule=p;var m=t.documentElement;function y(t,n,o){var i;if("getComputedStyle"in e){i=getComputedStyle.call(e,t,n);var r=e.console;if(null!==i)o&&(i=i.getPropertyValue(o));else if(r)r[r.error?"error":"log"].call(r,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}else i=!n&&t.currentStyle&&t.currentStyle[o];return i}function g(e,t){return e-1===t||e===t||e+1===t}var w="svg"===m.nodeName.toLowerCase();function x(e,t){if("object"==typeof e)for(var n in e)u(e,n)&&x(n,e[n]);else{var o=(e=e.toLowerCase()).split("."),i=r[o[0]];if(2==o.length&&(i=i[o[1]]),void 0!==i)return r;t="function"==typeof t?t():t,1==o.length?r[o[0]]=t:(!r[o[0]]||r[o[0]]instanceof Boolean||(r[o[0]]=new Boolean(r[o[0]])),r[o[0]][o[1]]=t),function(e){var t=m.className,n=r._config.classPrefix||"";if(w&&(t=t.baseVal),r._config.enableJSClass){var o=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(o,"$1"+n+"js$2")}r._config.enableClasses&&(t+=" "+n+e.join(" "+n),w?m.className.baseVal=t:m.className=t)}([(t&&0!=t?"":"no-")+o.join("-")]),r._trigger(e,t)}return r}function b(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):w?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}i._l={},i.on=function(e,t){this._l[e]||(this._l[e]=[]),this._l[e].push(t),r.hasOwnProperty(e)&&setTimeout(function(){r._trigger(e,r[e])},0)},i._trigger=function(e,t){if(this._l[e]){var n=this._l[e];setTimeout(function(){var e;for(e=0;e<n.length;e++)(0,n[e])(t)},0),delete this._l[e]}},r._q.push(function(){i.addTest=x});var T=function(){var e=!("onblur"in t.documentElement);return function(t,o){var i;return!!t&&(o&&"string"!=typeof o||(o=b(o||"div")),!(i=(t="on"+t)in o)&&e&&(o.setAttribute||(o=b("div")),o.setAttribute(t,""),i="function"==typeof o[t],o[t]!==n&&(o[t]=n),o.removeAttribute(t)),i)}}();i.hasEvent=T,r.addTest("hashchange",function(){return!1!==T("hashchange",e)&&(t.documentMode===n||t.documentMode>7)});i.prefixedCSSValue=function(e,t){var n=!1,o=b("div").style;if(e in o){var i=d.length;for(o[e]=t,n=o[e];i--&&!n;)o[e]="-"+d[i]+"-"+t,n=o[e]}return""===n&&(n=!1),n},r.addTest("audio",function(){var e=b("audio"),t=!1;try{(t=!!e.canPlayType)&&((t=new Boolean(t)).ogg=e.canPlayType('audio/ogg;