/*! Respond.js v1.4.2: min/max-width media query polyfill * Copyright 2013 Scott Jehl
 * Licensed under https://github.com/scottjehl/Respond/blob/master/LICENSE-MIT
 *  */
!function(a){"use strict";a.matchMedia=a.matchMedia||function(a){var b,c=a.documentElement,d=c.firstElementChild||c.firstChild,e=a.createElement("body"),f=a.createElement("div");return f.id="mq-test-1",f.style.cssText="position:absolute;top:-100em",e.style.background="none",e.appendChild(f),function(a){return f.innerHTML='&shy;<style media="'+a+'"> #mq-test-1 { width: 42px; }</style>',c.insertBefore(e,d),b=42===f.offsetWidth,c.removeChild(e),{matches:b,media:a}}}(a.document)}(this),function(a){"use strict";function b(){u(!0)}var c={};a.respond=c,c.update=function(){};var d=[],e=function(){var b=!1;try{b=new a.XMLHttpRequest}catch(c){b=new a.ActiveXObject("Microsoft.XMLHTTP")}return function(){return b}}(),f=function(a,b){var c=e();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!==c.readyState||200!==c.status&&304!==c.status||b(c.responseText)},4!==c.readyState&&c.send(null))};if(c.ajax=f,c.queue=d,c.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/,maxw:/\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/},c.mediaQueriesSupported=a.matchMedia&&null!==a.matchMedia("only all")&&a.matchMedia("only all").matches,!c.mediaQueriesSupported){var g,h,i,j=a.document,k=j.documentElement,l=[],m=[],n=[],o={},p=30,q=j.getElementsByTagName("head")[0]||k,r=j.getElementsByTagName("base")[0],s=q.getElementsByTagName("link"),t=function(){var a,b=j.createElement("div"),c=j.body,d=k.style.fontSize,e=c&&c.style.fontSize,f=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",c||(c=f=j.createElement("body"),c.style.background="none"),k.style.fontSize="100%",c.style.fontSize="100%",c.appendChild(b),f&&k.insertBefore(c,k.firstChild),a=b.offsetWidth,f?k.removeChild(c):c.removeChild(b),k.style.fontSize=d,e&&(c.style.fontSize=e),a=i=parseFloat(a)},u=function(b){var c="clientWidth",d=k[c],e="CSS1Compat"===j.compatMode&&d||j.body[c]||d,f={},o=s[s.length-1],r=(new Date).getTime();if(b&&g&&p>r-g)return a.clearTimeout(h),h=a.setTimeout(u,p),void 0;g=r;for(var v in l)if(l.hasOwnProperty(v)){var w=l[v],x=w.href,y=w.media,z=w.rel&&"stylesheet"===w.rel.toLowerCase();x&&z&&!o[x]&&(w.styleSheet&&w.styleSheet.rawCssText?(A(w.styleSheet.rawCssText,x,y),o[x]=!0):(!/^([a-zA-Z:]*\/\/)/.test(x)&&!r||x.replace(RegExp.$1,"").split("/")[0]===a.location.host)&&("//"===x.substring(0,2)&&(x=a.location.protocol+x),f[x]=!0))}for(var B in f)f.hasOwnProperty(B)&&C(B,function(a,b){A(a,b,y)})},v=function(){if(n.length){var b=n.shift();f(b.href,function(a){A(a,b.href,b.media),o[b.href]=!0,a.setTimeout(function(){v()},0)})}},w=function(){for(var a=0;a<m.length;a++){var b=m[a],c=b.href,d=b.media,e=b.rel&&"stylesheet"===b.rel.toLowerCase();c&&e&&!o[c]&&(b.styleSheet&&b.styleSheet.rawCssText?(A(b.styleSheet.rawCssText,c,d),o[c]=!0):(!/^([a-zA-Z:]*\/\/)/.test(c)&&!r||c.replace(RegExp.$1,"").split("/")[0]===a.location.host)&&n.push({href:c,media:d}))}},x=function(a){var b=j.createElement("style"),c=a||j.createElement("div");return b.type="text/css",b.media="screen",c.appendChild(b),q.insertBefore(c,q.firstChild),b.styleSheet||b},y=function(a,b,c){var d=a.replace(c.regex.keyframes,"").match(c.regex.media),e=d&&d.length||0;b=b.substring(0,b.lastIndexOf("/"));var f=function(a){return a.replace(c.regex.urls,"$1"+b+"$2$3")},g=!e&&c.regex.findStyles.exec(a);if(g&&(a=g[1]),e){var h,i=0;for(i;e>i;i++)h=d[i].replace(c.regex.findStyles,"$1").replace(/^\s*|\s*$/g,""),z(h,f(g[1]))}else z(a,f(a))},z=function(a,b){if(a){var c=x();c.styleSheet?c.styleSheet.cssText=b:c.appendChild(j.createTextNode(b))}},A=function(a,b,d){var e=a.replace(c.regex.keyframes,"").match(c.regex.media),f=e&&e.length||0;d=d||"all";for(var g=0;f>g;g++){var h=e[g].replace(c.regex.findStyles,"$1").replace(/^\s*|\s*$/g,"");if(B(h,d)){var i=c.regex.findStyles.exec(e[g]),j=i&&i[1];j&&y(j,b,c)}}},B=function(a,b){var d=a.split(","),e=d.length,f=0;for(f;e>f;f++){var g=d[f],h=c.regex.only.exec(g);if(!h||h[2]&&"all"===h[2])if(h[2]?g=g.replace(c.regex.only,""):(h=c.regex.only.exec(b))&&h[2]&&"all"!==h[2]&&(b=b.replace(c.regex.only,"")),g===b)return!0;if(c.regex.minw.test(g)&&c.regex.minw.test(b)){var i=parseFloat(RegExp.$1),j=c.regex.minw.exec(b),k=parseFloat(j[1]),l=j[2];if(l===RegExp.$2){if("em"===l&&(i*=16,k*=16),i<=k)return!0}}else if(c.regex.maxw.test(g)&&c.regex.maxw.test(b)){var m=parseFloat(RegExp.$1),n=c.regex.maxw.exec(b),o=parseFloat(n[1]),p=n[2];if(p===RegExp.$2){if("em"===p&&(m*=16,o*=16),m>=o)return!0}}}return!1},C=function(a,b){if(o[a])return void 0;var c=e();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!==c.readyState||200!==c.status&&304!==c.status||b(c.responseText)},4!==c.readyState&&c.send(null))};t(),c.update=u,c.getEmValue=t,a.addEventListener?a.addEventListener("resize",b,!1):a.attachEvent&&a.attachEvent("onresize",b)}}(this);
