Файл: templates/backend/default/assets/plugins/respond.min.js
Строк: 136
<?php
!function(e){"use strict";function l(){C(!0)}var t={};e.respond=t,t.update=function(){};var n=[],i=function(){var l=!1;try{l=new e.XMLHttpRequest}catch(t){l=new e.ActiveXObject("Microsoft.XMLHTTP")}return function(){return l}}(),a=function(e,l){var t=i();t&&(t.open("GET",e,!0),t.onreadystatechange=function(){4!==t.readyState||200!==t.status&&304!==t.status||l(t.responseText)},4!==t.readyState&&t.send(null))};if(t.ajax=a,t.queue=n,t.regex={media:/@media[^{]+{([^{}]*{[^}{]*})+/gi,keyframes:/@(?:-(?:o|moz|webkit)-)?keyframes[^{]+{(?:[^{}]*{[^}{]*})+[^}]*}/gi,comments://*[^*]**+([^/][^*]**+)*//gi,urls:/(url()['"]?([^/)'"][^:)'"]+)['"]?())/g,findStyles:/@media *([^{]+){([Ss]+?)$/,only:/(onlys+)?([a-zA-Z]+)s?/,minw:/([s]*min-widths*:[s]*([s]*[0-9.]+)(px|em)[s]*)/,maxw:/([s]*max-widths*:[s]*([s]*[0-9.]+)(px|em)[s]*)/},t.mediaQueriesSupported=e.matchMedia&&null!==e.matchMedia("only all")&&e.matchMedia("only all").matches,!t.mediaQueriesSupported){var o,r,s,c=e.document,u=c.documentElement,d=[],h=[],f=[],p={},m=30,g=c.getElementsByTagName("head")[0]||u,v=c.getElementsByTagName("base")[0],y=g.getElementsByTagName("link"),b=function(){var e,l=c.createElement("div"),t=c.body,n=u.style.fontSize,i=t&&t.style.fontSize,a=!1;return l.style.cssText="position:absolute;font-size:1em;width:1em",t||(t=a=c.createElement("body"),t.style.background="none"),u.style.fontSize="100%",t.style.fontSize="100%",t.appendChild(l),a&&u.insertBefore(t,u.firstChild),e=l.offsetWidth,a?u.removeChild(t):t.removeChild(l),u.style.fontSize=n,i&&(t.style.fontSize=i),e=s=parseFloat(e)},C=function(l){var t="clientWidth",n=u[t],i="CSS1Compat"===c.compatMode&&n||c.body[t]||n,a={},p=y[y.length-1],v=(new Date).getTime();if(l&&o&&m>v-o)return e.clearTimeout(r),r=e.setTimeout(C,m),void 0;o=v;for(var T in d)if(d.hasOwnProperty(T)){var E=d[T],w=E.minw,D=E.maxw,_=null===w,S=null===D,I="em";w&&(w=parseFloat(w)*(w.indexOf(I)>-1?s||b():1)),D&&(D=parseFloat(D)*(D.indexOf(I)>-1?s||b():1)),E.hasquery&&(_&&S||!(_||i>=w)||!(S||D>=i))||(a[E.media]||(a[E.media]=[]),a[E.media].push(h[E.rules]))}for(var x in f)f.hasOwnProperty(x)&&f[x]&&f[x].parentNode===g&&g.removeChild(f[x]);f.length=0;for(var k in a)if(a.hasOwnProperty(k)){var O=c.createElement("style"),R=a[k].join("n");O.type="text/css",O.media=k,g.insertBefore(O,p.nextSibling),O.styleSheet?O.styleSheet.cssText=R:O.appendChild(c.createTextNode(R)),f.push(O)}},T=function(e,l,n){var i=e.replace(t.regex.comments,"").replace(t.regex.keyframes,"").match(t.regex.media),a=i&&i.length||0;l=l.substring(0,l.lastIndexOf("/"));var o=function(e){return e.replace(t.regex.urls,"$1"+l+"$2$3")},r=!a&&n;l.length&&(l+="/"),r&&(a=1);for(var s=0;a>s;s++){var c,u,f,p;r?(c=n,h.push(o(e))):(c=i[s].match(t.regex.findStyles)&&RegExp.$1,h.push(RegExp.$2&&o(RegExp.$2))),f=c.split(","),p=f.length;for(var m=0;p>m;m++)u=f[m],d.push({media:u.split("(")[0].match(t.regex.only)&&RegExp.$2||"all",rules:h.length-1,hasquery:u.indexOf("(")>-1,minw:u.match(t.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:u.match(t.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}C()},E=function(){if(n.length){var l=n.shift();a(l.href,function(t){T(t,l.href,l.media),p[l.href]=!0,e.setTimeout(function(){E()},0)})}},w=function(){for(var l=0;l<y.length;l++){var t=y[l],i=t.href,a=t.media,o=t.rel&&"stylesheet"===t.rel.toLowerCase();i&&o&&!p[i]&&(t.styleSheet&&t.styleSheet.rawCssText?(T(t.styleSheet.rawCssText,i,a),p[i]=!0):(!/^([a-zA-Z:]*//)/.test(i)&&!v||i.replace(RegExp.$1,"").split("/")[0]===e.location.host)&&("//"===i.substring(0,2)&&(i=e.location.protocol+i),n.push({href:i,media:a})))}E()};w(),t.update=w,t.getEmValue=b,e.addEventListener?e.addEventListener("resize",l,!1):e.attachEvent&&e.attachEvent("onresize",l)}}(this);
?>