From e485fe7497ed4c764f051ac9b5fbe007bf03b3ed Mon Sep 17 00:00:00 2001 From: Henry Blyth Date: Tue, 1 Dec 2015 12:37:09 +0000 Subject: [PATCH] Compile distribution for 6339f5c..807eda5 6339f5cd5ab30da7e0bacf1ae87dce918f5a46ed..807eda534e16aad9b00f8e8e4105a9271b6bacd9 --- dest/respond.matchmedia.addListener.min.js | 2 +- dest/respond.matchmedia.addListener.src.js | 5 +++-- dest/respond.min.js | 2 +- dest/respond.src.js | 5 +++-- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/dest/respond.matchmedia.addListener.min.js b/dest/respond.matchmedia.addListener.min.js index 42b201af..ec046575 100644 --- a/dest/respond.matchmedia.addListener.min.js +++ b/dest/respond.matchmedia.addListener.min.js @@ -3,4 +3,4 @@ * Licensed under MIT * http://j.mp/respondjs */ -!function(a){"use strict";a.matchMedia=a.matchMedia||function(a,b){var c,d=a.documentElement,e=d.firstElementChild||d.firstChild,f=a.createElement("body"),g=a.createElement("div");return g.id="mq-test-1",g.style.cssText="position:absolute;top:-100em",f.style.background="none",f.appendChild(g),function(a){return g.innerHTML='­',d.insertBefore(f,e),c=42===g.offsetWidth,d.removeChild(f),{matches:c,media:a}}}(a.document)}(this),function(a){"use strict";if(a.matchMedia&&a.matchMedia("all").addListener)return!1;var b=a.matchMedia,c=b("only all").matches,d=!1,e=0,f=[],g=function(c){a.clearTimeout(e),e=a.setTimeout(function(){for(var c=0,d=f.length;d>c;c++){var e=f[c].mql,g=f[c].listeners||[],h=b(e.media).matches;if(h!==e.matches){e.matches=h;for(var i=0,j=g.length;j>i;i++)g[i].call(a,e)}}},30)};a.matchMedia=function(e){var h=b(e),i=[],j=0;return h.addListener=function(b){c&&(d||(d=!0,a.addEventListener("resize",g,!0)),0===j&&(j=f.push({mql:h,listeners:i})),i.push(b))},h.removeListener=function(a){for(var b=0,c=i.length;c>b;b++)i[b]===a&&i.splice(b,1)},h}}(this),function(a){"use strict";function b(){y(!0)}a.RESPOND_REPLACE_STYLES=a.RESPOND_REPLACE_STYLES||!1;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))},g=function(a){return a.replace(c.regex.minmaxwh,"").match(c.regex.other)};if(c.ajax=f,c.queue=d,c.unsupportedmq=g,c.regex={media:/@media[^\{]+\{(([^\{\}]*\{[^\}\{]*\})+)[^\}]*\}/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,comments:/\/\*[^*]*\*+([^/][^*]*\*+)*\//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*\)/,minmaxwh:/\(\s*m(in|ax)\-(height|width)\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/gi,other:/\([^\)]*\)/g},c.mediaQueriesSupported=a.matchMedia&&null!==a.matchMedia("only all")&&a.matchMedia("only all").matches,!c.mediaQueriesSupported){var h,i,j,k=a.document,l=k.documentElement,m=[],n=[],o=[],p={},q={},r=30,s=k.getElementsByTagName("head")[0]||l,t=k.getElementsByTagName("base")[0],u=s.getElementsByTagName("link"),v=function(){var a,b=k.createElement("div"),c=k.body,d=l.style.fontSize,e=c&&c.style.fontSize,f=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",c||(c=f=k.createElement("body"),c.style.background="none"),l.style.fontSize="100%",c.style.fontSize="100%",c.appendChild(b),f&&l.insertBefore(c,l.firstChild),a=b.offsetWidth,f?l.removeChild(c):c.removeChild(b),l.style.fontSize=d,e&&(c.style.fontSize=e),a=j=parseFloat(a)},w=function(a,b,c){var d="clientWidth",e=l[d],f="CSS1Compat"===k.compatMode&&e||k.body[d]||e,g=null===b,h=null===c,i="em";return b&&(b=parseFloat(b)*(b.indexOf(i)>-1?j||v():1)),c&&(c=parseFloat(c)*(c.indexOf(i)>-1?j||v():1)),!a||(!g||!h)&&(g||f>=b)&&(h||c>=f)},x=function(a,b,c,d){return a.substring(0,c)+b+a.substring(d)},y=function(b){var c,d=(new Date).getTime();return c=a.RESPOND_REPLACE_STYLES?A:B,b&&h&&r>d-h?(a.clearTimeout(i),void(i=a.setTimeout(c,r))):(h=d,void c())},z=function(){for(var a in o)o.hasOwnProperty(a)&&o[a]&&o[a].parentNode===s&&s.removeChild(o[a]);o.length=0},A=function(){u[u.length-1];z();for(var a in p)if(p.hasOwnProperty(a)){var b,c,d,e=p[a],f=e.styles,g=e.sheet,h=f,i={},j=[],k={};for(var l in e.mediastyles)e.mediastyles.hasOwnProperty(l)&&(b=e.mediastyles[l],c=b.minw,d=b.maxw,"all"===b.media?j.push(b):w(b.hasquery,c,d)&&(i[b.media]||(i[b.media]=[]),i[b.media].push(n[b.rules])));for(var m=j.length-1;m>=0;m--){b=j[m],c=b.minw,d=b.maxw;var o=n[b.rules],q=b.replaceIndexStart,r=b.replaceIndexEnd,t="";k[o]||(w(b.hasquery,c,d)&&(t=o),h=x(h,t,q,r),k[o]=!0)}C(h,"all",e.insertBefore),null!==g.parentElement&&s.removeChild(g);for(var v in i)i.hasOwnProperty(v)&&C(i[v].join("\n"),"all",e.insertBefore)}},B=function(){var a={},b=u[u.length-1];for(var c in m)if(m.hasOwnProperty(c)){var d=m[c],e=d.minw,f=d.maxw;w(d.hasquery,e,f)&&(a[d.media]||(a[d.media]=[]),a[d.media].push(n[d.rules]))}z();for(var g in a)a.hasOwnProperty(g)&&C(a[g].join("\n"),g,b.nextSibling)},C=function(a,b,c){var d=k.createElement("style");d.type="text/css",d.media=b,s.insertBefore(d,c),d.styleSheet?d.styleSheet.cssText=a:d.appendChild(k.createTextNode(a)),o.push(d)},D=function(a,b){return b=b.substring(0,b.lastIndexOf("/")),b.length&&(b+="/"),a.replace(c.regex.urls,"$1"+b+"$2$3")},E=function(b,d,e){a.RESPOND_REPLACE_STYLES&&(b=D(b,d),p[d].styles=b,p[d].mediastyles=[]);var f=b.replace(c.regex.comments,"").replace(c.regex.keyframes,"").match(c.regex.media),h=f&&f.length||0,i=!h&&e;i&&(h=1);for(var j=0;h>j;j++){var k,l,o,q,r;i?(k=e,r=b):(k=f[j].match(c.regex.findStyles)&&RegExp.$1,r=RegExp.$2),a.RESPOND_REPLACE_STYLES?n.push(r):n.push(r&&D(r,d)),o=k.split(","),q=o.length;for(var s=0;q>s;s++)if(l=o[s],!g(l)){var t={media:l.split("(")[0].match(c.regex.only)&&RegExp.$2||"all",rules:n.length-1,hasquery:l.indexOf("(")>-1,minw:l.match(c.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:l.match(c.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")};a.RESPOND_REPLACE_STYLES?(t.replaceIndexStart=p[d].styles.indexOf(f[j]),t.replaceIndexEnd=t.replaceIndexStart+f[j].length,p[d].mediastyles.push(t)):m.push(t)}}y()},F=function(){if(d.length){var b=d.shift();f(b.href,function(c){a.RESPOND_REPLACE_STYLES&&(p[b.href]={sheet:b.sheet,insertBefore:b.sheet.nextSibling,styles:c}),E(c,b.href,b.media),q[b.href]=!0,a.setTimeout(function(){F()},0)})}},G=function(){for(var b=0;b #mq-test-1 { width: 42px; }',d.insertBefore(f,e),c=42===g.offsetWidth,d.removeChild(f),{matches:c,media:a}}}(a.document)}(this),function(a){"use strict";if(a.matchMedia&&a.matchMedia("all").addListener)return!1;var b=a.matchMedia,c=b("only all").matches,d=!1,e=0,f=[],g=function(c){a.clearTimeout(e),e=a.setTimeout(function(){for(var c=0,d=f.length;d>c;c++){var e=f[c].mql,g=f[c].listeners||[],h=b(e.media).matches;if(h!==e.matches){e.matches=h;for(var i=0,j=g.length;j>i;i++)g[i].call(a,e)}}},30)};a.matchMedia=function(e){var h=b(e),i=[],j=0;return h.addListener=function(b){c&&(d||(d=!0,a.addEventListener("resize",g,!0)),0===j&&(j=f.push({mql:h,listeners:i})),i.push(b))},h.removeListener=function(a){for(var b=0,c=i.length;c>b;b++)i[b]===a&&i.splice(b,1)},h}}(this),function(a){"use strict";function b(){y(!0)}a.RESPOND_REPLACE_STYLES=a.RESPOND_REPLACE_STYLES||!1;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))},g=function(a){return a.replace(c.regex.minmaxwh,"").match(c.regex.other)};if(c.ajax=f,c.queue=d,c.unsupportedmq=g,c.regex={media:/@media[^\{]+\{(([^\{\}]*\{[^\}\{]*\})+)[^\}]*\}/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,comments:/\/\*[^*]*\*+([^/][^*]*\*+)*\//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*\)/,minmaxwh:/\(\s*m(in|ax)\-(height|width)\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/gi,other:/\([^\)]*\)/g},c.mediaQueriesSupported=a.matchMedia&&null!==a.matchMedia("only all")&&a.matchMedia("only all").matches,!c.mediaQueriesSupported){var h,i,j,k=a.document,l=k.documentElement,m=[],n=[],o=[],p={},q={},r=30,s=k.getElementsByTagName("head")[0]||l,t=k.getElementsByTagName("base")[0],u=s.getElementsByTagName("link"),v=function(){var a,b=k.createElement("div"),c=k.body,d=l.style.fontSize,e=c&&c.style.fontSize,f=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",c||(c=f=k.createElement("body"),c.style.background="none"),l.style.fontSize="100%",c.style.fontSize="100%",c.appendChild(b),f&&l.insertBefore(c,l.firstChild),a=b.offsetWidth,f?l.removeChild(c):c.removeChild(b),l.style.fontSize=d,e&&(c.style.fontSize=e),a=j=parseFloat(a)},w=function(a,b,c){var d="clientWidth",e=l[d],f="CSS1Compat"===k.compatMode&&e||k.body[d]||e,g=null===b,h=null===c,i="em";return b&&(b=parseFloat(b)*(b.indexOf(i)>-1?j||v():1)),c&&(c=parseFloat(c)*(c.indexOf(i)>-1?j||v():1)),!a||(!g||!h)&&(g||f>=b)&&(h||c>=f)},x=function(a,b,c,d){return a.substring(0,c)+b+a.substring(d)},y=function(b){var c,d=(new Date).getTime();return c=a.RESPOND_REPLACE_STYLES?A:B,b&&h&&r>d-h?(a.clearTimeout(i),void(i=a.setTimeout(c,r))):(h=d,void c())},z=function(){for(var a in o)o.hasOwnProperty(a)&&o[a]&&o[a].parentNode===s&&s.removeChild(o[a]);o.length=0},A=function(){u[u.length-1];z();for(var a in p)if(p.hasOwnProperty(a)){var b,c,d,e=p[a],f=e.styles,g=e.sheet,h=f,i={},j=[],k={};for(var l in e.mediastyles)e.mediastyles.hasOwnProperty(l)&&(b=e.mediastyles[l],c=b.minw,d=b.maxw,"all"===b.media?j.push(b):w(b.hasquery,c,d)&&(i[b.media]||(i[b.media]=[]),i[b.media].push(n[b.rules])));for(var m=j.length-1;m>=0;m--){b=j[m],c=b.minw,d=b.maxw;var o=n[b.rules],q=b.replaceIndexStart,r=b.replaceIndexEnd,t="";k[o]||(w(b.hasquery,c,d)&&(t=o),h=x(h,t,q,r),k[o]=!0)}C(h,"all",e.insertBefore),null!==g.parentElement&&s.removeChild(g);for(var v in i)i.hasOwnProperty(v)&&C(i[v].join("\n"),v,e.insertBefore)}},B=function(){var a={},b=u[u.length-1];for(var c in m)if(m.hasOwnProperty(c)){var d=m[c],e=d.minw,f=d.maxw;w(d.hasquery,e,f)&&(a[d.media]||(a[d.media]=[]),a[d.media].push(n[d.rules]))}z();for(var g in a)a.hasOwnProperty(g)&&C(a[g].join("\n"),g,b.nextSibling)},C=function(a,b,c){var d=k.createElement("style");d.type="text/css",d.media=b,s.insertBefore(d,c),d.styleSheet?d.styleSheet.cssText=a:d.appendChild(k.createTextNode(a)),o.push(d)},D=function(a,b){return b=b.substring(0,b.lastIndexOf("/")),b.length&&(b+="/"),a.replace(c.regex.urls,"$1"+b+"$2$3")},E=function(b,d,e){b=b.replace(c.regex.comments,"").replace(c.regex.keyframes,""),a.RESPOND_REPLACE_STYLES&&(b=D(b,d),p[d].styles=b,p[d].mediastyles=[]);var f=b.match(c.regex.media),h=f&&f.length||0,i=!h&&e;i&&(h=1);for(var j=0;h>j;j++){var k,l,o,q,r;i?(k=e,r=b):(k=f[j].match(c.regex.findStyles)&&RegExp.$1,r=RegExp.$2),a.RESPOND_REPLACE_STYLES?n.push(r):n.push(r&&D(r,d)),o=k.split(","),q=o.length;for(var s=0;q>s;s++)if(l=o[s],!g(l)){var t={media:l.split("(")[0].match(c.regex.only)&&RegExp.$2||"all",rules:n.length-1,hasquery:l.indexOf("(")>-1,minw:l.match(c.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:l.match(c.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")};a.RESPOND_REPLACE_STYLES?(t.replaceIndexStart=p[d].styles.indexOf(f[j]),t.replaceIndexEnd=t.replaceIndexStart+f[j].length,p[d].mediastyles.push(t)):m.push(t)}}y()},F=function(){if(d.length){var b=d.shift();f(b.href,function(c){a.RESPOND_REPLACE_STYLES&&(p[b.href]={sheet:b.sheet,insertBefore:b.sheet.nextSibling,styles:c}),E(c,b.href,b.media),q[b.href]=!0,a.setTimeout(function(){F()},0)})}},G=function(){for(var b=0;b #mq-test-1 { width: 42px; }',d.insertBefore(f,e),c=42===g.offsetWidth,d.removeChild(f),{matches:c,media:a}}}(a.document)}(this),function(a){"use strict";function b(){y(!0)}a.RESPOND_REPLACE_STYLES=a.RESPOND_REPLACE_STYLES||!1;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))},g=function(a){return a.replace(c.regex.minmaxwh,"").match(c.regex.other)};if(c.ajax=f,c.queue=d,c.unsupportedmq=g,c.regex={media:/@media[^\{]+\{(([^\{\}]*\{[^\}\{]*\})+)[^\}]*\}/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,comments:/\/\*[^*]*\*+([^/][^*]*\*+)*\//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*\)/,minmaxwh:/\(\s*m(in|ax)\-(height|width)\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/gi,other:/\([^\)]*\)/g},c.mediaQueriesSupported=a.matchMedia&&null!==a.matchMedia("only all")&&a.matchMedia("only all").matches,!c.mediaQueriesSupported){var h,i,j,k=a.document,l=k.documentElement,m=[],n=[],o=[],p={},q={},r=30,s=k.getElementsByTagName("head")[0]||l,t=k.getElementsByTagName("base")[0],u=s.getElementsByTagName("link"),v=function(){var a,b=k.createElement("div"),c=k.body,d=l.style.fontSize,e=c&&c.style.fontSize,f=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",c||(c=f=k.createElement("body"),c.style.background="none"),l.style.fontSize="100%",c.style.fontSize="100%",c.appendChild(b),f&&l.insertBefore(c,l.firstChild),a=b.offsetWidth,f?l.removeChild(c):c.removeChild(b),l.style.fontSize=d,e&&(c.style.fontSize=e),a=j=parseFloat(a)},w=function(a,b,c){var d="clientWidth",e=l[d],f="CSS1Compat"===k.compatMode&&e||k.body[d]||e,g=null===b,h=null===c,i="em";return b&&(b=parseFloat(b)*(b.indexOf(i)>-1?j||v():1)),c&&(c=parseFloat(c)*(c.indexOf(i)>-1?j||v():1)),!a||(!g||!h)&&(g||f>=b)&&(h||c>=f)},x=function(a,b,c,d){return a.substring(0,c)+b+a.substring(d)},y=function(b){var c,d=(new Date).getTime();return c=a.RESPOND_REPLACE_STYLES?A:B,b&&h&&r>d-h?(a.clearTimeout(i),void(i=a.setTimeout(c,r))):(h=d,void c())},z=function(){for(var a in o)o.hasOwnProperty(a)&&o[a]&&o[a].parentNode===s&&s.removeChild(o[a]);o.length=0},A=function(){u[u.length-1];z();for(var a in p)if(p.hasOwnProperty(a)){var b,c,d,e=p[a],f=e.styles,g=e.sheet,h=f,i={},j=[],k={};for(var l in e.mediastyles)e.mediastyles.hasOwnProperty(l)&&(b=e.mediastyles[l],c=b.minw,d=b.maxw,"all"===b.media?j.push(b):w(b.hasquery,c,d)&&(i[b.media]||(i[b.media]=[]),i[b.media].push(n[b.rules])));for(var m=j.length-1;m>=0;m--){b=j[m],c=b.minw,d=b.maxw;var o=n[b.rules],q=b.replaceIndexStart,r=b.replaceIndexEnd,t="";k[o]||(w(b.hasquery,c,d)&&(t=o),h=x(h,t,q,r),k[o]=!0)}C(h,"all",e.insertBefore),null!==g.parentElement&&s.removeChild(g);for(var v in i)i.hasOwnProperty(v)&&C(i[v].join("\n"),"all",e.insertBefore)}},B=function(){var a={},b=u[u.length-1];for(var c in m)if(m.hasOwnProperty(c)){var d=m[c],e=d.minw,f=d.maxw;w(d.hasquery,e,f)&&(a[d.media]||(a[d.media]=[]),a[d.media].push(n[d.rules]))}z();for(var g in a)a.hasOwnProperty(g)&&C(a[g].join("\n"),g,b.nextSibling)},C=function(a,b,c){var d=k.createElement("style");d.type="text/css",d.media=b,s.insertBefore(d,c),d.styleSheet?d.styleSheet.cssText=a:d.appendChild(k.createTextNode(a)),o.push(d)},D=function(a,b){return b=b.substring(0,b.lastIndexOf("/")),b.length&&(b+="/"),a.replace(c.regex.urls,"$1"+b+"$2$3")},E=function(b,d,e){a.RESPOND_REPLACE_STYLES&&(b=D(b,d),p[d].styles=b,p[d].mediastyles=[]);var f=b.replace(c.regex.comments,"").replace(c.regex.keyframes,"").match(c.regex.media),h=f&&f.length||0,i=!h&&e;i&&(h=1);for(var j=0;h>j;j++){var k,l,o,q,r;i?(k=e,r=b):(k=f[j].match(c.regex.findStyles)&&RegExp.$1,r=RegExp.$2),a.RESPOND_REPLACE_STYLES?n.push(r):n.push(r&&D(r,d)),o=k.split(","),q=o.length;for(var s=0;q>s;s++)if(l=o[s],!g(l)){var t={media:l.split("(")[0].match(c.regex.only)&&RegExp.$2||"all",rules:n.length-1,hasquery:l.indexOf("(")>-1,minw:l.match(c.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:l.match(c.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")};a.RESPOND_REPLACE_STYLES?(t.replaceIndexStart=p[d].styles.indexOf(f[j]),t.replaceIndexEnd=t.replaceIndexStart+f[j].length,p[d].mediastyles.push(t)):m.push(t)}}y()},F=function(){if(d.length){var b=d.shift();f(b.href,function(c){a.RESPOND_REPLACE_STYLES&&(p[b.href]={sheet:b.sheet,insertBefore:b.sheet.nextSibling,styles:c}),E(c,b.href,b.media),q[b.href]=!0,a.setTimeout(function(){F()},0)})}},G=function(){for(var b=0;b #mq-test-1 { width: 42px; }',d.insertBefore(f,e),c=42===g.offsetWidth,d.removeChild(f),{matches:c,media:a}}}(a.document)}(this),function(a){"use strict";function b(){y(!0)}a.RESPOND_REPLACE_STYLES=a.RESPOND_REPLACE_STYLES||!1;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))},g=function(a){return a.replace(c.regex.minmaxwh,"").match(c.regex.other)};if(c.ajax=f,c.queue=d,c.unsupportedmq=g,c.regex={media:/@media[^\{]+\{(([^\{\}]*\{[^\}\{]*\})+)[^\}]*\}/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,comments:/\/\*[^*]*\*+([^/][^*]*\*+)*\//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*\)/,minmaxwh:/\(\s*m(in|ax)\-(height|width)\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/gi,other:/\([^\)]*\)/g},c.mediaQueriesSupported=a.matchMedia&&null!==a.matchMedia("only all")&&a.matchMedia("only all").matches,!c.mediaQueriesSupported){var h,i,j,k=a.document,l=k.documentElement,m=[],n=[],o=[],p={},q={},r=30,s=k.getElementsByTagName("head")[0]||l,t=k.getElementsByTagName("base")[0],u=s.getElementsByTagName("link"),v=function(){var a,b=k.createElement("div"),c=k.body,d=l.style.fontSize,e=c&&c.style.fontSize,f=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",c||(c=f=k.createElement("body"),c.style.background="none"),l.style.fontSize="100%",c.style.fontSize="100%",c.appendChild(b),f&&l.insertBefore(c,l.firstChild),a=b.offsetWidth,f?l.removeChild(c):c.removeChild(b),l.style.fontSize=d,e&&(c.style.fontSize=e),a=j=parseFloat(a)},w=function(a,b,c){var d="clientWidth",e=l[d],f="CSS1Compat"===k.compatMode&&e||k.body[d]||e,g=null===b,h=null===c,i="em";return b&&(b=parseFloat(b)*(b.indexOf(i)>-1?j||v():1)),c&&(c=parseFloat(c)*(c.indexOf(i)>-1?j||v():1)),!a||(!g||!h)&&(g||f>=b)&&(h||c>=f)},x=function(a,b,c,d){return a.substring(0,c)+b+a.substring(d)},y=function(b){var c,d=(new Date).getTime();return c=a.RESPOND_REPLACE_STYLES?A:B,b&&h&&r>d-h?(a.clearTimeout(i),void(i=a.setTimeout(c,r))):(h=d,void c())},z=function(){for(var a in o)o.hasOwnProperty(a)&&o[a]&&o[a].parentNode===s&&s.removeChild(o[a]);o.length=0},A=function(){u[u.length-1];z();for(var a in p)if(p.hasOwnProperty(a)){var b,c,d,e=p[a],f=e.styles,g=e.sheet,h=f,i={},j=[],k={};for(var l in e.mediastyles)e.mediastyles.hasOwnProperty(l)&&(b=e.mediastyles[l],c=b.minw,d=b.maxw,"all"===b.media?j.push(b):w(b.hasquery,c,d)&&(i[b.media]||(i[b.media]=[]),i[b.media].push(n[b.rules])));for(var m=j.length-1;m>=0;m--){b=j[m],c=b.minw,d=b.maxw;var o=n[b.rules],q=b.replaceIndexStart,r=b.replaceIndexEnd,t="";k[o]||(w(b.hasquery,c,d)&&(t=o),h=x(h,t,q,r),k[o]=!0)}C(h,"all",e.insertBefore),null!==g.parentElement&&s.removeChild(g);for(var v in i)i.hasOwnProperty(v)&&C(i[v].join("\n"),v,e.insertBefore)}},B=function(){var a={},b=u[u.length-1];for(var c in m)if(m.hasOwnProperty(c)){var d=m[c],e=d.minw,f=d.maxw;w(d.hasquery,e,f)&&(a[d.media]||(a[d.media]=[]),a[d.media].push(n[d.rules]))}z();for(var g in a)a.hasOwnProperty(g)&&C(a[g].join("\n"),g,b.nextSibling)},C=function(a,b,c){var d=k.createElement("style");d.type="text/css",d.media=b,s.insertBefore(d,c),d.styleSheet?d.styleSheet.cssText=a:d.appendChild(k.createTextNode(a)),o.push(d)},D=function(a,b){return b=b.substring(0,b.lastIndexOf("/")),b.length&&(b+="/"),a.replace(c.regex.urls,"$1"+b+"$2$3")},E=function(b,d,e){b=b.replace(c.regex.comments,"").replace(c.regex.keyframes,""),a.RESPOND_REPLACE_STYLES&&(b=D(b,d),p[d].styles=b,p[d].mediastyles=[]);var f=b.match(c.regex.media),h=f&&f.length||0,i=!h&&e;i&&(h=1);for(var j=0;h>j;j++){var k,l,o,q,r;i?(k=e,r=b):(k=f[j].match(c.regex.findStyles)&&RegExp.$1,r=RegExp.$2),a.RESPOND_REPLACE_STYLES?n.push(r):n.push(r&&D(r,d)),o=k.split(","),q=o.length;for(var s=0;q>s;s++)if(l=o[s],!g(l)){var t={media:l.split("(")[0].match(c.regex.only)&&RegExp.$2||"all",rules:n.length-1,hasquery:l.indexOf("(")>-1,minw:l.match(c.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:l.match(c.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")};a.RESPOND_REPLACE_STYLES?(t.replaceIndexStart=p[d].styles.indexOf(f[j]),t.replaceIndexEnd=t.replaceIndexStart+f[j].length,p[d].mediastyles.push(t)):m.push(t)}}y()},F=function(){if(d.length){var b=d.shift();f(b.href,function(c){a.RESPOND_REPLACE_STYLES&&(p[b.href]={sheet:b.sheet,insertBefore:b.sheet.nextSibling,styles:c}),E(c,b.href,b.media),q[b.href]=!0,a.setTimeout(function(){F()},0)})}},G=function(){for(var b=0;b