qsa(x,e)}}return Y.Z(t,e)},(A=function(e,n){return Y.init(e,n)}).extend=function(e){var n,o=S.call(arguments,1);return"boolean"==typeof e&&(n=e,e=o.shift()),o.forEach((function(o){f(e,o,n)})),e},Y.qsa=function(e,n){var o,t="#"==n[0],i=!t&&"."==n[0],r=t||i?n.slice(1):n,d=$.test(r);return a(e)&&d&&t?(o=e.getElementById(r))?[o]:[]:1!==e.nodeType&&9!==e.nodeType?[]:S.call(d&&!t?i?e.getElementsByClassName(r):e.getElementsByTagName(n):e.querySelectorAll(n))},A.contains=function(e,n){return e!==n&&e.contains(n)},A.type=e,A.isFunction=n,A.isWindow=t,A.isArray=d,A.isPlainObject=r,A.isEmptyObject=function(e){var n;for(n in e)return!1;return!0},A.inArray=function(e,n,o){return T.indexOf.call(n,e,o)},A.camelCase=k,A.trim=function(e){return null==e?"":String.prototype.trim.call(e)},A.uuid=0,A.support={},A.expr={},A.map=function(e,n){var o,t,a,i=[];if(s(e))for(t=0;t<e.length;t++)null!=(o=n(e[t],t))&&i.push(o);else for(a in e)null!=(o=n(e[a],a))&&i.push(o);return l(i)},A.each=function(e,n){var o,t;if(s(e)){for(o=0;o<e.length;o++)if(!1===n.call(e[o],o,e[o]))return e}else for(t in e)if(!1===n.call(e[t],t,e[t]))return e;return e},A.grep=function(e,n){return C.call(e,n)},window.JSON&&(A.parseJSON=JSON.parse),A.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),(function(e,n){W["[object "+n+"]"]=n.toLowerCase()})),A.fn={forEach:T.forEach,reduce:T.reduce,push:T.push,sort:T.sort,indexOf:T.indexOf,concat:T.concat,map:function(e){return A(A.map(this,(function(n,o){return e.call(n,o,n)})))},slice:function(){return A(S.apply(this,arguments))},ready:function(e){return j.test(x.readyState)&&x.body?e(A):x.addEventListener("DOMContentLoaded",(function(){e(A)}),!1),this},get:function(e){return e===y?S.call(this):this[e>=0?e:e+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each((function(){null!=this.parentNode&&this.parentNode.removeChild(this)}))},each:function(e){return T.every.call(this,(function(n,o){return!1!==e.call(n,o,n)})),this},filter:function(e){return n(e)?this.not(this.not(e)):A(C.call(this,(function(n){return Y.matches(n,e)})))},add:function(e,n){return A(N(this.concat(A(e,n))))},is:function(e){return this.length>0&&Y.matches(this[0],e)},not:function(e){var o=[];if(n(e)&&e.call!==y)this.each((function(n){e.call(this,n)||o.push(this)}));else{var t="string"==typeof e?this.filter(e):s(e)&&n(e.item)?S.call(e):A(e);this.forEach((function(e){t.indexOf(e)<0&&o.push(e)}))}return A(o)},has:function(e){return this.filter((function(){return i(e)?A.contains(this,e):A(this).find(e).size()}))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){var e=this[0];return e&&!i(e)?e:A(e)},last:function(){var e=this[this.length-1];return e&&!i(e)?e:A(e)},find:function(e){var n=this;return"object"==o(e)?A(e).filter((function(){var e=this;return T.some.call(n,(function(n){return A.contains(n,e)}))})):1==this.length?A(Y.qsa(this[0],e)):this.map((function(){return Y.qsa(this,e)}))},closest:function(e,n){var t=this[0],i=!1;for("object"==o(e)&&(i=A(e));t&&!(i?i.indexOf(t)>=0:Y.matches(t,e));)t=t!==n&&!a(t)&&t.parentNode;return A(t)},parents:function(e){for(var n=[],o=this;o.length>0;)o=A.map(o,(function(e){if((e=e.parentNode)&&!a(e)&&n.indexOf(e)<0)return n.push(e),e}));return m(n,e)},parent:function(e){return m(N(this.pluck("parentNode")),e)},children:function(e){return m(this.map((function(){return u(this)})),e)},contents:function(){return this.map((function(){return S.call(this.childNodes)}))},siblings:function(e){return m(this.map((function(e,n){return C.call(u(n.parentNode),(function(e){return e!==n}))})),e)},empty:function(){return this.each((function(){this.innerHTML=""}))},pluck:function(e){return A.map(this,(function(n){return n[e]}))},show:function(){return this.each((function(){"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=function(e){var n,o;return I[e]||(n=x.createElement(e),x.body.appendChild(n),o=getComputedStyle(n,"").getPropertyValue("display"),n.parentNode.removeChild(n),"none"==o&&(o="block"),I[e]=o),I[e]}(this.nodeName))}))},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){var o=n(e);if(this[0]&&!o)var t=A(e).get(0),a=t.parentNode||this.length>1;return this.each((function(n){A(this).wrapAll(o?e.call(this,n):a?t.cloneNode(!0):t)}))},wrapAll:function(e){if(this[0]){var n;for(A(this[0]).before(e=A(e));(n=e.children()).length;)e=n.first();A(e).append(this)}return this},wrapInner:function(e){var o=n(e);return this.each((function(n){var t=A(this),a=t.contents(),i=o?e.call(this,n):e;a.length?a.wrapAll(i):t.append(i)}))},unwrap:function(){return this.parent().each((function(){A(this).replaceWith(A(this).children())})),this},clone:function(){return this.map((function(){return this.cloneNode(!0)}))},hide:function(){return this.css("display","none")},toggle:function(e){return this.each((function(){var n=A(this);(e===y?"none"==n.css("display"):e)?n.show():n.hide()}))},prev:function(e){return A(this.pluck("previousElementSibling")).filter(e||"*")},next:function(e){return A(this.pluck("nextElementSibling")).filter(e||"*")},html:function(e){return 0===arguments.length?this.length>0?this[0].innerHTML:null:this.each((function(n){var o=this.innerHTML;A(this).empty().append(g(this,e,n,o))}))},text:function(e){return 0===arguments.length?this.length>0?this[0].textContent:null:this.each((function(){this.textContent=e===y?"":""+e}))},attr:function(e,n){var o;return"string"==typeof e&&n===y?0==this.length||1!==this[0].nodeType?y:"value"==e&&"INPUT"==this[0].nodeName?this.val():!(o=this[0].getAttribute(e))&&e in this[0]?this[0][e]:o:this.each((function(o){if(1===this.nodeType)if(i(e))for(D in e)h(this,D,e[D]);else h(this,e,g(this,n,o,this.getAttribute(e)))}))},removeAttr:function(e){return this.each((function(){1===this.nodeType&&h(this,e)}))},prop:function(e,n){return e=H[e]||e,n===y?this[0]&&this[0][e]:this.each((function(o){this[e]=g(this,n,o,this[e])}))},data:function(e,n){var o=this.attr("data-"+e.replace(V,"-$1").toLowerCase(),n);return null!
Back to home |
File page
Subscribe |
Register |
Login
| N