mirror of
https://github.com/holo-gfx/mangadex.git
synced 2024-11-28 19:28:21 -05:00
3 lines
7.4 KiB
JavaScript
3 lines
7.4 KiB
JavaScript
/*! modernizr 3.6.0 (Custom Build) | MIT *
|
|
* https://modernizr.com/download/?-classlist-cssvhunit-cssvwunit-dataset-flexbox-flexboxlegacy-flexwrap-fullscreen-history-input-inputtypes-localstorage-queryselector-requestanimationframe-xhr2-setclasses !*/
|
|
!function(e,t,n){function r(e,t){return typeof e===t}function i(){var e,t,n,i,s,a,o;for(var l in S)if(S.hasOwnProperty(l)){if(e=[],t=S[l],t.name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n<t.options.aliases.length;n++)e.push(t.options.aliases[n].toLowerCase());for(i=r(t.fn,"function")?t.fn():t.fn,s=0;s<e.length;s++)a=e[s],o=a.split("."),1===o.length?Modernizr[o[0]]=i:(!Modernizr[o[0]]||Modernizr[o[0]]instanceof Boolean||(Modernizr[o[0]]=new Boolean(Modernizr[o[0]])),Modernizr[o[0]][o[1]]=i),C.push((i?"":"no-")+o.join("-"))}}function s(e){var t=b.className,n=Modernizr._config.classPrefix||"";if(T&&(t=t.baseVal),Modernizr._config.enableJSClass){var r=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(r,"$1"+n+"js$2")}Modernizr._config.enableClasses&&(t+=" "+n+e.join(" "+n),T?b.className.baseVal=t:b.className=t)}function a(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):T?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function o(t,n,r){var i;if("getComputedStyle"in e){i=getComputedStyle.call(e,t,n);var s=e.console;if(null!==i)r&&(i=i.getPropertyValue(r));else if(s){var a=s.error?"error":"log";s[a].call(s,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else i=!n&&t.currentStyle&&t.currentStyle[r];return i}function l(e,t){return e-1===t||e===t||e+1===t}function u(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,n){return t+n.toUpperCase()}).replace(/^-/,"")}function f(){var e=t.body;return e||(e=a(T?"svg":"body"),e.fake=!0),e}function d(e,n,r,i){var s,o,l,u,d="modernizr",c=a("div"),p=f();if(parseInt(r,10))for(;r--;)l=a("div"),l.id=i?i[r]:d+(r+1),c.appendChild(l);return s=a("style"),s.type="text/css",s.id="s"+d,(p.fake?p:c).appendChild(s),p.appendChild(c),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(t.createTextNode(e)),c.id=d,p.fake&&(p.style.background="",p.style.overflow="hidden",u=b.style.overflow,b.style.overflow="hidden",b.appendChild(p)),o=n(c,e),p.fake?(p.parentNode.removeChild(p),b.style.overflow=u,b.offsetHeight):c.parentNode.removeChild(c),!!o}function c(e,t){return!!~(""+e).indexOf(t)}function p(e,t){return function(){return e.apply(t,arguments)}}function m(e,t,n){var i;for(var s in e)if(e[s]in t)return n===!1?e[s]:(i=t[e[s]],r(i,"function")?p(i,n||t):i);return!1}function h(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function v(t,r){var i=t.length;if("CSS"in e&&"supports"in e.CSS){for(;i--;)if(e.CSS.supports(h(t[i]),r))return!0;return!1}if("CSSSupportsRule"in e){for(var s=[];i--;)s.push("("+h(t[i])+":"+r+")");return s=s.join(" or "),d("@supports ("+s+") { #modernizr { position: absolute; } }",function(e){return"absolute"==o(e,null,"position")})}return n}function y(e,t,i,s){function o(){f&&(delete R.style,delete R.modElem)}if(s=r(s,"undefined")?!1:s,!r(i,"undefined")){var l=v(e,i);if(!r(l,"undefined"))return l}for(var f,d,p,m,h,y=["modernizr","tspan","samp"];!R.style&&y.length;)f=!0,R.modElem=a(y.shift()),R.style=R.modElem.style;for(p=e.length,d=0;p>d;d++)if(m=e[d],h=R.style[m],c(m,"-")&&(m=u(m)),R.style[m]!==n){if(s||r(i,"undefined"))return o(),"pfx"==t?m:!0;try{R.style[m]=i}catch(g){}if(R.style[m]!=h)return o(),"pfx"==t?m:!0}return o(),!1}function g(e,t,n,i,s){var a=e.charAt(0).toUpperCase()+e.slice(1),o=(e+" "+k.join(a+" ")+a).split(" ");return r(t,"string")||r(t,"undefined")?y(o,t,i,s):(o=(e+" "+N.join(a+" ")+a).split(" "),m(o,t,n))}function x(e,t,r){return g(e,n,n,t,r)}var C=[],S=[],w={_version:"3.6.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){S.push({name:e,fn:t,options:n})},addAsyncTest:function(e){S.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=w,Modernizr=new Modernizr,Modernizr.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:!1}),Modernizr.addTest("queryselector","querySelector"in t&&"querySelectorAll"in t),Modernizr.addTest("localstorage",function(){var e="modernizr";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(t){return!1}});var b=t.documentElement;Modernizr.addTest("classlist","classList"in b);var T="svg"===b.nodeName.toLowerCase();Modernizr.addTest("dataset",function(){var e=a("div");return e.setAttribute("data-a-b","c"),!(!e.dataset||"c"!==e.dataset.aB)});var _=a("input"),A="autocomplete autofocus list placeholder max min multiple pattern required step".split(" "),q={};Modernizr.input=function(t){for(var n=0,r=t.length;r>n;n++)q[t[n]]=!!(t[n]in _);return q.list&&(q.list=!(!a("datalist")||!e.HTMLDataListElement)),q}(A);var z="search tel url email datetime date month week time datetime-local number range color".split(" "),E={};Modernizr.inputtypes=function(e){for(var r,i,s,a=e.length,o="1)",l=0;a>l;l++)_.setAttribute("type",r=e[l]),s="text"!==_.type&&"style"in _,s&&(_.value=o,_.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(r)&&_.style.WebkitAppearance!==n?(b.appendChild(_),i=t.defaultView,s=i.getComputedStyle&&"textfield"!==i.getComputedStyle(_,null).WebkitAppearance&&0!==_.offsetHeight,b.removeChild(_)):/^(search|tel)$/.test(r)||(s=/^(url|email)$/.test(r)?_.checkValidity&&_.checkValidity()===!1:_.value!=o)),E[e[l]]=!!s;return E}(z);var L=w.testStyles=d;L("#modernizr { height: 50vh; }",function(t){var n=parseInt(e.innerHeight/2,10),r=parseInt(o(t,null,"height"),10);Modernizr.addTest("cssvhunit",l(r,n))}),L("#modernizr { width: 50vw; }",function(t){var n=parseInt(e.innerWidth/2,10),r=parseInt(o(t,null,"width"),10);Modernizr.addTest("cssvwunit",l(r,n))});var P="Moz O ms Webkit",k=w._config.usePrefixes?P.split(" "):[];w._cssomPrefixes=k;var O=function(t){var r,i=prefixes.length,s=e.CSSRule;if("undefined"==typeof s)return n;if(!t)return!1;if(t=t.replace(/^@/,""),r=t.replace(/-/g,"_").toUpperCase()+"_RULE",r in s)return"@"+t;for(var a=0;i>a;a++){var o=prefixes[a],l=o.toUpperCase()+"_"+r;if(l in s)return"@-"+o.toLowerCase()+"-"+t}return!1};w.atRule=O;var N=w._config.usePrefixes?P.toLowerCase().split(" "):[];w._domPrefixes=N;var I={elem:a("modernizr")};Modernizr._q.push(function(){delete I.elem});var R={style:I.elem.style};Modernizr._q.unshift(function(){delete R.style}),w.testAllProps=g;var j=w.prefixed=function(e,t,n){return 0===e.indexOf("@")?O(e):(-1!=e.indexOf("-")&&(e=u(e)),t?g(e,t,n):g(e,"pfx"))};Modernizr.addTest("fullscreen",!(!j("exitFullscreen",t,!1)&&!j("cancelFullScreen",t,!1))),Modernizr.addTest("requestanimationframe",!!j("requestAnimationFrame",e),{aliases:["raf"]}),w.testAllProps=x,Modernizr.addTest("flexbox",x("flexBasis","1px",!0)),Modernizr.addTest("flexboxlegacy",x("boxDirection","reverse",!0)),Modernizr.addTest("flexwrap",x("flexWrap","wrap",!0)),Modernizr.addTest("xhr2","XMLHttpRequest"in e&&"withCredentials"in new XMLHttpRequest),i(),s(C),delete w.addTest,delete w.addAsyncTest;for(var V=0;V<Modernizr._q.length;V++)Modernizr._q[V]();e.Modernizr=Modernizr}(window,document); |