(function(){if("undefined"!==typeof document.querySelector){var g,f,c,a;g=function(b){a="undefined"===typeof b?"undefined"!==typeof g.el?g.el:document.documentElement:"object"!==typeof b?f(b):b;g.prototype.el=a;var b=c(g),d;for(d in b)"object"===typeof b[d]&&(b[d].el=a);b.el=a;return b};f=function(b,d){var a;if("string"!=typeof b||"undefined"===typeof b)return b;a=null!=d&&1===d.nodeType?d:document;if(b.match(/^#([\w\-]+$)/))return document.getElementById(b.split("#")[1]);a=a.querySelectorAll(b); return 1===a.length?a[0]:a};c=function(b){var a;if("undefined"!==typeof b){if("undefined"!==typeof Object.create)return Object.create(b);a=typeof b;if(!("object"!==a&&"function"!==a))return a=function(){},a.prototype=b,new a}};g.ext=function(b,d){d.el=a;g[b]=d};g.ext("each",function(b){if("undefined"!==typeof a.length&&a!==window){var d=a.length;if(0!==d)for(var e,c=0;cd?1:ca?1:b