aboutsummaryrefslogtreecommitdiffstats
path: root/public/assets/modernizr-min-0cfed4c8c40566090aa12c92ae7776d8.js
blob: 70c6503f672bb733574a00e3f3eccf6aa8ce9602 (plain) (blame)
1
window.Modernizr=function(a,u,c){function r(e){b.cssText=e}function e(e,t){return r(S.join(e+";")+(t||""))}function i(e,t){return typeof e===t}function o(e,t){return!!~(""+e).indexOf(t)}function s(e,t){for(var n in e)if(b[e[n]]!==c)return"pfx"!=t||e[n];return!1}function l(e,t,n){for(var r in e){var o=t[e[r]];if(o!==c)return!1===n?e[r]:i(o,"function")?o.bind(n||t):o}return!1}function t(e,t,n){var r=e.charAt(0).toUpperCase()+e.substr(1),o=(e+" "+k.join(r+" ")+r).split(" ");return i(t,"string")||i(t,"undefined")?s(o,t):l(o=(e+" "+j.join(r+" ")+r).split(" "),t,n)}function n(){m.input=function(e){for(var t=0,n=e.length;t<n;t++)$[e[t]]=e[t]in E;return $.list&&($.list=!!u.createElement("datalist")&&!!a.HTMLDataListElement),$}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),m.inputtypes=function(e){for(var t,n,r,o=0,i=e.length;o<i;o++)E.setAttribute("type",n=e[o]),(t="text"!==E.type)&&(E.value=x,E.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(n)&&E.style.WebkitAppearance!==c?(g.appendChild(E),t=(r=u.defaultView).getComputedStyle&&"textfield"!==r.getComputedStyle(E,null).WebkitAppearance&&0!==E.offsetHeight,g.removeChild(E)):/^(search|tel)$/.test(n)||(/^(url|email)$/.test(n)?t=E.checkValidity&&!1===E.checkValidity():/^color$/.test(n)?(g.appendChild(E),g.offsetWidth,t=E.value!=x,g.removeChild(E)):t=E.value!=x)),P[e[o]]=!!t;return P}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var d,f,p="2.5.3",m={},h=!0,g=u.documentElement,v="modernizr",y=u.createElement(v),b=y.style,E=u.createElement("input"),x=":)",w={}.toString,S=" -webkit- -moz- -o- -ms- ".split(" "),C="Webkit Moz O ms",k=C.split(" "),j=C.toLowerCase().split(" "),T={svg:"http://www.w3.org/2000/svg"},N={},P={},$={},A=[],M=A.slice,L=function(e,t,n,r){var o,i,a,c=u.createElement("div"),s=u.body,l=s||u.createElement("body");if(parseInt(n,10))for(;n--;)(a=u.createElement("div")).id=r?r[n]:v+(n+1),c.appendChild(a);return o=["&#173;","<style>",e,"</style>"].join(""),c.id=v,l.innerHTML+=o,l.appendChild(c),s||(l.style.background="",g.appendChild(l)),i=t(c,e),s?c.parentNode.removeChild(c):l.parentNode.removeChild(l),!!i},O=function(){function e(e,t){t=t||u.createElement(r[e]||"div");var n=(e="on"+e)in t;return n||(t.setAttribute||(t=u.createElement("div")),t.setAttribute&&t.removeAttribute&&(t.setAttribute(e,""),n=i(t[e],"function"),i(t[e],"undefined")||(t[e]=c),t.removeAttribute(e))),t=null,n}var r={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return e}(),D={}.hasOwnProperty;f=i(D,"undefined")||i(D.call,"undefined")?function(e,t){return t in e&&i(e.constructor.prototype[t],"undefined")}:function(e,t){return D.call(e,t)},Function.prototype.bind||(Function.prototype.bind=function(r){var o=this;if("function"!=typeof o)throw new TypeError;var i=M.call(arguments,1),a=function(){if(this instanceof a){var e=function(){};e.prototype=o.prototype;var t=new e,n=o.apply(t,i.concat(M.call(arguments)));return Object(n)===n?n:t}return o.apply(r,i.concat(M.call(arguments)))};return a});var z,B,F;z=["fontface","touch","csstransforms3d","generatedcontent"],B=['@font-face {font-family:"font";src:url("https://")}',["@media (",S.join("touch-enabled),("),v,")","{#touch{top:9px;position:absolute}}"].join(""),["@media (",S.join("transform-3d),("),v,")","{#csstransforms3d{left:9px;position:absolute;height:3px;}}"].join(""),['#generatedcontent:after{content:"',x,'";visibility:hidden}'].join("")].join(""),F=z.length,L(B,function(e,t){for(var n=u.styleSheets[u.styleSheets.length-1],r=n?n.cssRules&&n.cssRules[0]?n.cssRules[0].cssText:n.cssText||"":"",o=e.childNodes,i={};F--;)i[o[F].id]=o[F];m.touch="ontouchstart"in a||a.DocumentTouch&&u instanceof DocumentTouch||9===(i.touch&&i.touch.offsetTop),m.csstransforms3d=9===(i.csstransforms3d&&i.csstransforms3d.offsetLeft)&&3===i.csstransforms3d.offsetHeight,m.generatedcontent=1<=(i.generatedcontent&&i.generatedcontent.offsetHeight),m.fontface=/src/i.test(r)&&0===r.indexOf(t.split(" ")[0])},F,z);for(var R in N.flexbox=function(){return t("flexOrder")},N.canvas=function(){var e=u.createElement("canvas");return!!e.getContext&&!!e.getContext("2d")},N.canvastext=function(){return!!m.canvas&&!!i(u.createElement("canvas").getContext("2d").fillText,"function")},N.webgl=function(){try{var e,t=u.createElement("canvas");e=!(!a.WebGLRenderingContext||!t.getContext("experimental-webgl")&&!t.getContext("webgl")),t=c}catch(h){e=!1}return e},N.touch=function(){return m.touch},N.geolocation=function(){return!!navigator.geolocation},N.postmessage=function(){return!!a.postMessage},N.websqldatabase=function(){return!!a.openDatabase},N.indexedDB=function(){return!!t("indexedDB",a)},N.hashchange=function(){return O("hashchange",a)&&(u.documentMode===c||7<u.documentMode)},N.history=function(){return!!a.history&&!!history.pushState},N.draganddrop=function(){var e=u.createElement("div");return"draggable"in e||"ondragstart"in e&&"ondrop"in e},N.websockets=function(){for(var e=-1,t=k.length;++e<t;)if(a[k[e]+"WebSocket"])return!0;return"WebSocket"in a},N.rgba=function(){return r("background-color:rgba(150,255,150,.5)"),o(b.backgroundColor,"rgba")},N.hsla=function(){return r("background-color:hsla(120,40%,100%,.5)"),o(b.backgroundColor,"rgba")||o(b.backgroundColor,"hsla")},N.multiplebgs=function(){return r("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(b.background)},N.backgroundsize=function(){return t("backgroundSize")},N.borderimage=function(){return t("borderImage")},N.borderradius=function(){return t("borderRadius")},N.boxshadow=function(){return t("boxShadow")},N.textshadow=function(){return""===u.createElement("div").style.textShadow},N.opacity=function(){return e("opacity:.55"),/^0.55$/.test(b.opacity)},N.cssanimations=function(){return t("animationName")},N.csscolumns=function(){return t("columnCount")},N.cssgradients=function(){var e="background-image:",t="gradient(linear,left top,right bottom,from(#9f9),to(white));",n="linear-gradient(left top,#9f9, white);";return r((e+"-webkit- ".split(" ").join(t+e)+S.join(n+e)).slice(0,-e.length)),o(b.backgroundImage,"gradient")},N.cssreflections=function(){return t("boxReflect")},N.csstransforms=function(){return!!t("transform")},N.csstransforms3d=function(){var e=!!t("perspective");return e&&"webkitPerspective"in g.style&&(e=m.csstransforms3d),e},N.csstransitions=function(){return t("transition")},N.fontface=function(){return m.fontface},N.generatedcontent=function(){return m.generatedcontent},N.video=function(){var e=u.createElement("video"),t=!1;try{(t=!!e.canPlayType)&&((t=new Boolean(t)).ogg=e.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),t.h264=e.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),t.webm=e.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(p){}return t},N.audio=function(){var e=u.createElement("audio"),t=!1;try{(t=!!e.canPlayType)&&((t=new Boolean(t)).ogg=e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),t.mp3=e.canPlayType("audio/mpeg;").replace(/^no$/,""),t.wav=e.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),t.m4a=(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(p){}return t},N.localstorage=function(){try{return localStorage.setItem(v,v),localStorage.removeItem(v),!0}catch(a){return!1}},N.sessionstorage=function(){try{return sessionStorage.setItem(v,v),sessionStorage.removeItem(v),!0}catch(a){return!1}},N.webworkers=function(){return!!a.Worker},N.applicationcache=function(){return!!a.applicationCache},N.svg=function(){return!!u.createElementNS&&!!u.createElementNS(T.svg,"svg").createSVGRect},N.inlinesvg=function(){var e=u.createElement("div");return e.innerHTML="<svg/>",(e.firstChild&&e.firstChild.namespaceURI)==T.svg},N.smil=function(){return!!u.createElementNS&&/SVGAnimate/.test(w.call(u.createElementNS(T.svg,"animate")))},N.svgclippaths=function(){return!!u.createElementNS&&/SVGClipPath/.test(w.call(u.createElementNS(T.svg,"clipPath")))},N)f(N,R)&&(d=R.toLowerCase(),m[d]=N[R](),A.push((m[d]?"":"no-")+d));return m.input||n(),r(""),y=E=null,m._version=p,m._prefixes=S,m._domPrefixes=j,m._cssomPrefixes=k,m.hasEvent=O,m.testProp=function(e){return s([e])},m.testAllProps=t,m.testStyles=L,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(h?" js "+A.join(" "):""),m}(this,this.document),function(e,t){function u(e,t){var n=e.createElement("p"),r=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>"+t+"</style>",r.insertBefore(n.lastChild,r.firstChild)}function a(){var e=g.elements;return"string"==typeof e?e.split(" "):e}function n(e){var n={},r=e.createElement,o=(0,e.createDocumentFragment)();e.createElement=function(e){var t=(n[e]||(n[e]=r(e))).cloneNode();return g.shivMethods&&t.canHaveChildren&&!h.test(e)?o.appendChild(t):t},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+a().join().replace(/\w+/g,function(e){return n[e]=r(e),o.createElement(e),'c("'+e+'")'})+");return n}")(g,o)}function r(e){var t;return e.documentShived||(g.shivCSS&&!s&&(t=!!u(e,"article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio{display:none}canvas,video{display:inline-block;*display:inline;*zoom:1}[hidden]{display:none}audio[controls]{display:inline-block;*display:inline;*zoom:1}mark{background:#FF0;color:#000}")),l||(t=!n(e)),t&&(e.documentShived=t)),e}function d(e){for(var t,n=e.getElementsByTagName("*"),r=n.length,o=RegExp("^(?:"+a().join("|")+")$","i"),i=[];r--;)t=n[r],o.test(t.nodeName)&&i.push(t.applyElement(c(t)));return i}function c(e){for(var t,n=e.attributes,r=n.length,o=e.ownerDocument.createElement(b+":"+e.nodeName);r--;)(t=n[r]).specified&&o.setAttribute(t.nodeName,t.nodeValue);return o.style.cssText=e.style.cssText,o}function f(e){for(var t,n=e.split("{"),r=n.length,o=RegExp("(^|[\\s,>+~])("+a().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),i="$1"+b+"\\:$2";r--;)(t=n[r]=n[r].split("}"))[t.length-1]=t[t.length-1].replace(o,i),n[r]=t.join("}");return n.join("{")}function o(e){for(var t=e.length;t--;)e[t].removeNode()}function i(c){var s,l,e=c.namespaces,t=c.parentWindow;return!E||c.printShived||("undefined"==typeof e[b]&&e.add(b),t.attachEvent("onbeforeprint",function(){for(var e,t,n,r=c.styleSheets,o=[],i=r.length,a=Array(i);i--;)a[i]=r[i];for(;n=a.pop();)if(!n.disabled&&y.test(n.media)){for(i=0,t=(e=n.imports).length;i<t;i++)a.push(e[i]);try{o.push(n.cssText)}catch(b){}}o=f(o.reverse().join("")),l=d(c),s=u(c,o)}),t.attachEvent("onafterprint",function(){o(l),s.removeNode(!0)}),c.printShived=!0),c}var s,l,p,m=e.html5||{},h=/^<|^(?:button|form|map|select|textarea)$/i;(p=t.createElement("a")).innerHTML="<xyz></xyz>",s="hidden"in p,l=1==p.childNodes.length||function(){try{t.createElement("a")}catch(p){return!0}var e=t.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}();var g={elements:m.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:!1!==m.shivCSS,shivMethods:!1!==m.shivMethods,type:"default",shivDocument:r};e.html5=g,r(t);var v,y=/^$|\b(?:all|print)\b/,b="html5shiv",E=!l&&(v=t.documentElement,"undefined"!=typeof t.namespaces&&"undefined"!=typeof t.parentWindow&&"undefined"!=typeof v.applyElement&&"undefined"!=typeof v.removeNode&&"undefined"!=typeof e.attachEvent);g.type+=" print",(g.shivPrint=i)(t)}(this,document),function(e,f,s){function d(e){return"[object Function]"==o.call(e)}function p(e){return"string"==typeof e}function m(){}function h(e){return!e||"loaded"==e||"complete"==e||"uninitialized"==e}function g(){var e=E.shift();x=1,e?e.t?y(function(){("c"==e.t?v.injectCss:v.injectJs)(e.s,0,e.a,e.x,e.e,1)},0):(e(),g()):x=0}function i(n,r,e,t,o,i,a){function c(e){if(!l&&h(s.readyState)&&(d.r=l=1,!x&&g(),s.onload=s.onreadystatechange=null,e))for(var t in"img"!=n&&y(function(){S.removeChild(s)},50),j[r])j[r].hasOwnProperty(t)&&j[r][t].onload()}a=a||v.errorTimeout;var s={},l=0,u=0,d={t:e,s:r,e:o,a:i,x:a};1===j[r]&&(u=1,j[r]=[],s=f.createElement(n)),"object"==n?s.data=r:(s.src=r,s.type=n),s.width=s.height="0",s.onerror=s.onload=s.onreadystatechange=function(){c.call(this,u)},E.splice(t,0,d),"img"!=n&&(u||2===j[r]?(S.insertBefore(s,w?null:b),y(c,a)):j[r].push(s))}function t(e,t,n,r,o){return x=0,t=t||"j",p(e)?i("c"==t?u:c,e,t,this.i++,n,r,o):(E.splice(this.i++,0,e),1==E.length&&g()),this}function l(){var e=v;return e.loader={load:t,i:0},e}var n,v,r=f.documentElement,y=e.setTimeout,b=f.getElementsByTagName("script")[0],o={}.toString,E=[],x=0,a="MozAppearance"in r.style,w=a&&!!f.createRange().compareNode,S=w?r:b.parentNode,c=(r=e.opera&&"[object Opera]"==o.call(e.opera),r=!!f.attachEvent&&!r,a?"object":r?"script":"img"),u=r?"script":c,C=Array.isArray||function(e){return"[object Array]"==o.call(e)},k=[],j={},T={timeout:function(e,t){return t.length&&(e.timeout=t[0]),e}};(v=function(e){function c(e){e=e.split("!");var t,n,r,o=k.length,i=e.pop(),a=e.length;i={url:i,origUrl:i,prefixes:e};for(n=0;n<a;n++)r=e[n].split("="),(t=T[r.shift()])&&(i=t(i,r));for(n=0;n<o;n++)i=k[n](i);return i}function u(e,t,n,r,o){var i=c(e),a=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(t&&(t=d(t)?t:t[e]||t[r]||t[e.split("/").pop().split("?")[0]]||g),i.instead?i.instead(e,t,n,r,o):(j[i.url]?i.noexec=!0:j[i.url]=1,n.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":s,i.noexec,i.attrs,i.timeout),(d(t)||d(a))&&n.load(function(){l(),t&&t(i.origUrl,o,r),a&&a(i.origUrl,o,r),j[i.url]=2})))}function t(e,t){function n(n,e){if(n){if(p(n))e||(c=function(){var e=[].slice.call(arguments);s.apply(this,e),l()}),u(n,c,t,0,i);else if(Object(n)===n)for(o in r=function(){var e,t=0;for(e in n)n.hasOwnProperty(e)&&t++;return t}(),n)n.hasOwnProperty(o)&&(!e&&!--r&&(d(c)?c=function(){var e=[].slice.call(arguments);s.apply(this,e),l()}:c[o]=function(t){return function(){var e=[].slice.call(arguments);t&&t.apply(this,e),l()}}(s[o])),u(n[o],c,t,o,i))}else!e&&l()}var r,o,i=!!e.test,a=e.load||e.both,c=e.callback||m,s=c,l=e.complete||m;n(i?e.yep:e.nope,!!a),a&&n(a)}var n,r,o=this.yepnope.loader;if(p(e))u(e,0,o,0);else if(C(e))for(n=0;n<e.length;n++)p(r=e[n])?u(r,0,o,0):C(r)?v(r):Object(r)===r&&t(r,o);else Object(e)===e&&t(e,o)}).addPrefix=function(e,t){T[e]=t},v.addFilter=function(e){k.push(e)},v.errorTimeout=1e4,null==f.readyState&&f.addEventListener&&(f.readyState="loading",f.addEventListener("DOMContentLoaded",n=function(){f.removeEventListener("DOMContentLoaded",n,0),f.readyState="complete"},0)),e.yepnope=l(),e.yepnope.executeStack=g,e.yepnope.injectJs=function(e,t,n,r,o,i){var a,c,s=f.createElement("script");r=r||v.errorTimeout;for(c in s.src=e,n)s.setAttribute(c,n[c]);t=i?g:t||m,s.onreadystatechange=s.onload=function(){!a&&h(s.readyState)&&(a=1,t(),s.onload=s.onreadystatechange=null)},y(function(){a||t(a=1)},r),o?s.onload():b.parentNode.insertBefore(s,b)},e.yepnope.injectCss=function(e,t,n,r,o,i){var a;r=f.createElement("link"),t=i?g:t||m;for(a in r.href=e,r.rel="stylesheet",r.type="text/css",n)r.setAttribute(a,n[a]);o||(b.parentNode.insertBefore(r,b),y(t,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};