Skip to content

Releases: ryanve/scan

0.9.0

22 Oct 08:58
Compare
Choose a tag to compare
<script data-via="">
!function(a,b,c){"undefined"!=typeof module&&module.exports?module.exports=c():a[b]=c()}(this,"scan",function(){function a(a,c){return new b(a,c)}function b(a,d){this.length=0,this.constructor=b,a&&p.apply(this,"string"==typeof a?c(a,d):e(a))}function c(a,b){return a?(b=null==b?q:"string"==typeof b?c(b):b,"object"!=typeof b?[]:b.nodeType?b[v]?d(b[v](a)):[]:f(a,b)):[]}function d(a){for(var b=[],c=a.length,d=0;c>d;)b[d]=a[d++];return b}function e(a){return a.nodeType||a.window==a?[a]:d(a)}function f(a,b){for(var d,e,f,g=[],h=0,i=b.length,j=0;i>j;){f=c(a,b[j++]);a:for(d=0;f[d];d++){for(e=h;e--;)if(g[e]===f[d])continue a;g[h++]=f[d]}}return g}function g(a,b,c){var d=a.length,e=c>>0;for(0>e&&(e+=d);d>e;e++)if(a[e]===b&&e in a)return!0;return!1}function h(a,b){if(s&&a.contains)return(b=b.parentNode)===a||a.contains(b);for(;(b=b.parentNode)&&b!==a;);return!!b}function i(a,b,c){return"string"==typeof a?!!~a.indexOf(b,c>>0):a.nodeType?h(a,b):g(a,b,c)}function j(a,b){var c,d,e=[],f=0,g=a.length;for(b=b.nodeType?[b]:b,d=b.length;d>f;f++)for(c=0;g>c;)if(h(a[c++],b[f])){e.push(b[f]);break}return e}function k(a){return q.getElementById(a)||!1}function l(a,b,c){for(var d,e=0,f=a.length;f>e;)if(b.call(c,d=a[e],e++,a))return d}function m(a,b,d){return"function"==typeof b?l(a,b,d):c(a,b)}function n(a,b){return a.pushStack?a.pushStack(b):b}var o=a.prototype=b.prototype=[],p=o.push,q=document,r=q.documentElement,s=!!q.contains&&!!r.contains,t="querySelectorAll",u="getElementsByTagName",v=q[t]?t:u,w=r.matches||l(["webkit","moz","o","ms"],function(a){return r[a+"MatchesSelector"]}),x="function"==typeof w?function(a,b){return!!b&&!!w.call(a,b)}:function(a,b){return g(c(b,a.ownerDocument),a)};return o.pushStack=function(a){for(var b=new this.constructor,c=0,d=a.length;d>c;)p.call(b,a[c++]);return b},o.find=function(a,b){var c;if("string"==typeof a)c=f(a,this);else{if("object"!=typeof a)return l(this,a,b);c=j(this,a)}return n(this,c)},l(["not","filter"],function(a,b){o[a]=function(a){var e=[],f="function"==typeof a;return a?l(this,function(c,d){var h=f?a.call(c,d):g(this,c);h==b&&e.push(c)},"string"==typeof a?c(a):a.nodeType?[a]:a):e=b?e:d(this),n(this,e)}}),a.scan=a,a.qsa=c,a.id=k,a.wraps=h,a.contains=i,a.matches=x,a.find=m,a.fn=o,a});
</script>