200 lines
92 KiB
JavaScript
200 lines
92 KiB
JavaScript
/*!
|
|
* jQuery JavaScript Library v1.7.1
|
|
* http://jquery.com/
|
|
*
|
|
* Copyright 2011, John Resig
|
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
|
* http://jquery.org/license
|
|
*
|
|
* Includes Sizzle.js
|
|
* http://sizzlejs.com/
|
|
* Copyright 2011, The Dojo Foundation
|
|
* Released under the MIT, BSD, and GPL Licenses.
|
|
*
|
|
* Date: Mon Nov 21 21:11:03 2011 -0500
|
|
*/
|
|
(function(p,l){function cb(a){var b=ka[a]={},c,e,a=a.split(/\s+/);for(c=0,e=a.length;c<e;c++)b[a[c]]=true;return b}function la(a,b,d){if(d===l&&a.nodeType===1)if(d="data-"+b.replace(db,"-$1").toLowerCase(),d=a.getAttribute(d),typeof d==="string"){try{d=d==="true"?true:d==="false"?false:d==="null"?null:c.isNumeric(d)?parseFloat(d):eb.test(d)?c.parseJSON(d):d}catch(e){}c.data(a,b,d)}else d=l;return d}function Z(a){for(var b in a)if(!(b==="data"&&c.isEmptyObject(a[b]))&&b!=="toJSON")return false;return true}
|
|
function ma(a,b,d){var e=b+"defer",f=b+"queue",g=b+"mark",h=c._data(a,e);h&&(d==="queue"||!c._data(a,f))&&(d==="mark"||!c._data(a,g))&&setTimeout(function(){!c._data(a,f)&&!c._data(a,g)&&(c.removeData(a,e,true),h.fire())},0)}function E(){return false}function L(){return true}function na(a,b,d){b=b||0;if(c.isFunction(b))return c.grep(a,function(a,c){return!!b.call(a,c,a)===d});else if(b.nodeType)return c.grep(a,function(a){return a===b===d});else if(typeof b==="string"){var e=c.grep(a,function(a){return a.nodeType===
|
|
1});if(fb.test(b))return c.filter(b,e,!d);else b=c.filter(b,e)}return c.grep(a,function(a){return c.inArray(a,b)>=0===d})}function oa(a){var b=pa.split("|"),a=a.createDocumentFragment();if(a.createElement)for(;b.length;)a.createElement(b.pop());return a}function qa(a,b){if(b.nodeType===1&&c.hasData(a)){var d,e,f;e=c._data(a);var g=c._data(b,e),h=e.events;if(h)for(d in delete g.handle,g.events={},h)for(e=0,f=h[d].length;e<f;e++)c.event.add(b,d+(h[d][e].namespace?".":"")+h[d][e].namespace,h[d][e],h[d][e].data);
|
|
if(g.data)g.data=c.extend({},g.data)}}function ra(a,b){var d;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes();b.mergeAttributes&&b.mergeAttributes(a);d=b.nodeName.toLowerCase();if(d==="object")b.outerHTML=a.outerHTML;else if(d==="input"&&(a.type==="checkbox"||a.type==="radio")){if(a.checked)b.defaultChecked=b.checked=a.checked;if(b.value!==a.value)b.value=a.value}else if(d==="option")b.selected=a.defaultSelected;else if(d==="input"||d==="textarea")b.defaultValue=a.defaultValue;b.removeAttribute(c.expando)}}
|
|
function R(a){return typeof a.getElementsByTagName!=="undefined"?a.getElementsByTagName("*"):typeof a.querySelectorAll!=="undefined"?a.querySelectorAll("*"):[]}function sa(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function ta(a){var b=(a.nodeName||"").toLowerCase();b==="input"?sa(a):b!=="script"&&typeof a.getElementsByTagName!=="undefined"&&c.grep(a.getElementsByTagName("input"),sa)}function gb(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval((b.text||
|
|
b.textContent||b.innerHTML||"").replace(hb,"/*$0*/"));b.parentNode&&b.parentNode.removeChild(b)}function ua(a,b,d){var e=b==="width"?a.offsetWidth:a.offsetHeight,f=b==="width"?ib:jb,g=0,h=f.length;if(e>0){if(d!=="border")for(;g<h;g++)d||(e-=parseFloat(c.css(a,"padding"+f[g]))||0),d==="margin"?e+=parseFloat(c.css(a,d+f[g]))||0:e-=parseFloat(c.css(a,"border"+f[g]+"Width"))||0;return e+"px"}e=G(a,b,b);if(e<0||e==null)e=a.style[b]||0;e=parseFloat(e)||0;if(d)for(;g<h;g++)e+=parseFloat(c.css(a,"padding"+
|
|
f[g]))||0,d!=="padding"&&(e+=parseFloat(c.css(a,"border"+f[g]+"Width"))||0),d==="margin"&&(e+=parseFloat(c.css(a,d+f[g]))||0);return e+"px"}function va(a){return function(b,d){var j;typeof b!=="string"&&(d=b,b="*");if(c.isFunction(d))for(var e=b.toLowerCase().split(wa),f=0,g=e.length,h,i;f<g;f++)h=e[f],(i=/^\+/.test(h))&&(h=h.substr(1)||"*"),j=a[h]=a[h]||[],h=j,h[i?"unshift":"push"](d)}}function U(a,b,c,e,f,g){f=f||b.dataTypes[0];g=g||{};g[f]=true;for(var f=a[f],h=0,i=f?f.length:0,j=a===$,m;h<i&&
|
|
(j||!m);h++)m=f[h](b,c,e),typeof m==="string"&&(!j||g[m]?m=l:(b.dataTypes.unshift(m),m=U(a,b,c,e,m,g)));if((j||!m)&&!g["*"])m=U(a,b,c,e,"*",g);return m}function xa(a,b){var d,e,f=c.ajaxSettings.flatOptions||{};for(d in b)b[d]!==l&&((f[d]?a:e||(e={}))[d]=b[d]);e&&c.extend(true,a,e)}function aa(a,b,d,e){if(c.isArray(b))c.each(b,function(b,f){d||kb.test(a)?e(a,f):aa(a+"["+(typeof f==="object"||c.isArray(f)?b:"")+"]",f,d,e)});else if(!d&&b!=null&&typeof b==="object")for(var f in b)aa(a+"["+f+"]",b[f],
|
|
d,e);else e(a,b)}function ya(){try{return new p.XMLHttpRequest}catch(a){}}function za(){setTimeout(lb,0);return V=c.now()}function lb(){V=l}function M(a,b){var d={};c.each(Aa.concat.apply([],Aa.slice(0,b)),function(){d[this]=a});return d}function Ba(a){if(!ba[a]){var b=k.body,d=c("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){if(!A)A=k.createElement("iframe"),A.frameBorder=A.width=A.height=0;b.appendChild(A);if(!H||!A.createElement)H=(A.contentWindow||A.contentDocument).document,
|
|
H.write((k.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),H.close();d=H.createElement(a);H.body.appendChild(d);e=c.css(d,"display");b.removeChild(A)}ba[a]=e}return ba[a]}function ca(a){return c.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var k=p.document,mb=p.navigator,nb=p.location,c=function(){function a(){if(!b.isReady){try{k.documentElement.doScroll("left")}catch(c){setTimeout(a,1);return}b.ready()}}var b=function(a,c){return new b.fn.init(a,c,f)},c=p.jQuery,
|
|
e=p.$,f,g=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,h=/\S/,i=/^\s+/,j=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,u=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,y=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,n=/(?:^|:|,)(?:\s*\[)+/g,ob=/(webkit)[ \/]([\w.]+)/,t=/(opera)(?:.*version)?[ \/]([\w.]+)/,v=/(msie) ([\w.]+)/,w=/(mozilla)(?:.*? rv:([\w.]+))?/,s=/-([a-z]|[0-9])/ig,B=/^-ms-/,q=function(a,b){return(b+"").toUpperCase()},x=mb.userAgent,r,K,pb=Object.prototype.toString,
|
|
da=Object.prototype.hasOwnProperty,ea=Array.prototype.push,T=Array.prototype.slice,Ca=String.prototype.trim,Da=Array.prototype.indexOf,Ea={};b.fn=b.prototype={constructor:b,init:function(a,c,d){var e;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if(a==="body"&&!c&&k.body)return this.context=k,this[0]=k.body,this.selector=a,this.length=1,this;if(typeof a==="string")if((e=a.charAt(0)==="<"&&a.charAt(a.length-1)===">"&&a.length>=3?[null,a,null]:g.exec(a))&&(e[1]||!c))if(e[1])return d=
|
|
(c=c instanceof b?c[0]:c)?c.ownerDocument||c:k,(a=m.exec(a))?b.isPlainObject(c)?(a=[k.createElement(a[1])],b.fn.attr.call(a,c,true)):a=[d.createElement(a[1])]:(a=b.buildFragment([e[1]],[d]),a=(a.cacheable?b.clone(a.fragment):a.fragment).childNodes),b.merge(this,a);else{if((c=k.getElementById(e[2]))&&c.parentNode){if(c.id!==e[2])return d.find(a);this.length=1;this[0]=c}this.context=k;this.selector=a;return this}else return!c||c.jquery?(c||d).find(a):this.constructor(c).find(a);else if(b.isFunction(a))return d.ready(a);
|
|
if(a.selector!==l)this.selector=a.selector,this.context=a.context;return b.makeArray(a,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return T.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,c,d){var e=this.constructor();b.isArray(a)?ea.apply(e,a):b.merge(e,a);e.prevObject=this;e.context=this.context;if(c==="find")e.selector=this.selector+(this.selector?" ":"")+d;else if(c)e.selector=
|
|
this.selector+"."+c+"("+d+")";return e},each:function(a,c){return b.each(this,a,c)},ready:function(a){b.bindReady();r.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(T.apply(this,arguments),"slice",T.call(arguments).join(","))},map:function(a){return this.pushStack(b.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||
|
|
this.constructor(null)},push:ea,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var a,c,d,e,f,g=arguments[0]||{},r=1,h=arguments.length,K=false;typeof g==="boolean"&&(K=g,g=arguments[1]||{},r=2);typeof g!=="object"&&!b.isFunction(g)&&(g={});h===r&&(g=this,--r);for(;r<h;r++)if((a=arguments[r])!=null)for(c in a)d=g[c],e=a[c],g!==e&&(K&&e&&(b.isPlainObject(e)||(f=b.isArray(e)))?(f?(f=false,d=d&&b.isArray(d)?d:[]):d=d&&b.isPlainObject(d)?d:{},g[c]=b.extend(K,d,
|
|
e)):e!==l&&(g[c]=e));return g};b.extend({noConflict:function(a){if(p.$===b)p.$=e;if(a&&p.jQuery===b)p.jQuery=c;return b},isReady:false,readyWait:1,holdReady:function(a){a?b.readyWait++:b.ready(true)},ready:function(a){if(a===true&&!--b.readyWait||a!==true&&!b.isReady){if(!k.body)return setTimeout(b.ready,1);b.isReady=true;a!==true&&--b.readyWait>0||(r.fireWith(k,[b]),b.fn.trigger&&b(k).trigger("ready").off("ready"))}},bindReady:function(){if(!r){r=b.Callbacks("once memory");if(k.readyState==="complete")return setTimeout(b.ready,
|
|
1);if(k.addEventListener)k.addEventListener("DOMContentLoaded",K,false),p.addEventListener("load",b.ready,false);else if(k.attachEvent){k.attachEvent("onreadystatechange",K);p.attachEvent("onload",b.ready);var c=false;try{c=p.frameElement==null}catch(d){}k.documentElement.doScroll&&c&&a()}}},isFunction:function(a){return b.type(a)==="function"},isArray:Array.isArray||function(a){return b.type(a)==="array"},isWindow:function(a){return a&&typeof a==="object"&&"setInterval"in a},isNumeric:function(a){return!isNaN(parseFloat(a))&&
|
|
isFinite(a)},type:function(a){return a==null?String(a):Ea[pb.call(a)]||"object"},isPlainObject:function(a){if(!a||b.type(a)!=="object"||a.nodeType||b.isWindow(a))return false;try{if(a.constructor&&!da.call(a,"constructor")&&!da.call(a.constructor.prototype,"isPrototypeOf"))return false}catch(c){return false}for(var d in a);return d===l||da.call(a,d)},isEmptyObject:function(a){for(var b in a)return false;return true},error:function(a){throw Error(a);},parseJSON:function(a){if(typeof a!=="string"||
|
|
!a)return null;a=b.trim(a);if(p.JSON&&p.JSON.parse)return p.JSON.parse(a);if(u.test(a.replace(o,"@").replace(y,"]").replace(n,"")))return(new Function("return "+a))();b.error("Invalid JSON: "+a)},parseXML:function(a){var c,d;try{p.DOMParser?(d=new DOMParser,c=d.parseFromString(a,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(a))}catch(e){c=l}(!c||!c.documentElement||c.getElementsByTagName("parsererror").length)&&b.error("Invalid XML: "+a);return c},noop:function(){},
|
|
globalEval:function(a){a&&h.test(a)&&(p.execScript||function(a){p.eval.call(p,a)})(a)},camelCase:function(a){return a.replace(B,"ms-").replace(s,q)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var e,f=0,g=a.length,r=g===l||b.isFunction(a);if(d)if(r)for(e in a){if(c.apply(a[e],d)===false)break}else for(;f<g;){if(c.apply(a[f++],d)===false)break}else if(r)for(e in a){if(c.call(a[e],e,a[e])===false)break}else for(;f<g;)if(c.call(a[f],f,a[f++])===
|
|
false)break;return a},trim:Ca?function(a){return a==null?"":Ca.call(a)}:function(a){return a==null?"":a.toString().replace(i,"").replace(j,"")},makeArray:function(a,c){var d=c||[];if(a!=null){var e=b.type(a);a.length==null||e==="string"||e==="function"||e==="regexp"||b.isWindow(a)?ea.call(d,a):b.merge(d,a)}return d},inArray:function(a,b,c){var d;if(b){if(Da)return Da.call(b,a,c);d=b.length;for(c=c?c<0?Math.max(0,d+c):c:0;c<d;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=a.length,
|
|
d=0;if(typeof b.length==="number")for(var e=b.length;d<e;d++)a[c++]=b[d];else for(;b[d]!==l;)a[c++]=b[d++];a.length=c;return a},grep:function(a,b,c){for(var d=[],e,c=!!c,f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,c,d){var e,f,g=[],r=0,h=a.length;if(a instanceof b||h!==l&&typeof h==="number"&&(h>0&&a[0]&&a[h-1]||h===0||b.isArray(a)))for(;r<h;r++)e=c(a[r],r,d),e!=null&&(g[g.length]=e);else for(f in a)e=c(a[f],f,d),e!=null&&(g[g.length]=e);return g.concat.apply([],
|
|
g)},guid:1,proxy:function(a,c){if(typeof c==="string")var d=a[c],c=a,a=d;if(!b.isFunction(a))return l;var e=T.call(arguments,2),d=function(){return a.apply(c,e.concat(T.call(arguments)))};d.guid=a.guid=a.guid||d.guid||b.guid++;return d},access:function(a,c,d,e,f,g){var r=a.length;if(typeof c==="object"){for(var h in c)b.access(a,h,c[h],e,f,d);return a}if(d!==l){e=!g&&e&&b.isFunction(d);for(h=0;h<r;h++)f(a[h],c,e?d.call(a[h],h,f(a[h],c)):d,g);return a}return r?f(a[0],c):l},now:function(){return(new Date).getTime()},
|
|
uaMatch:function(a){a=a.toLowerCase();a=ob.exec(a)||t.exec(a)||v.exec(a)||a.indexOf("compatible")<0&&w.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}b.extend(true,a,this);a.superclass=this;a.fn=a.prototype=this();a.fn.constructor=a;a.sub=this.sub;a.fn.init=function(d,e){e&&e instanceof b&&!(e instanceof a)&&(e=a(e));return b.fn.init.call(this,d,e,c)};a.fn.init.prototype=a.fn;var c=a(k);return a},browser:{}});b.each("Boolean Number String Function Array Date RegExp Object".split(" "),
|
|
function(a,b){Ea["[object "+b+"]"]=b.toLowerCase()});x=b.uaMatch(x);if(x.browser)b.browser[x.browser]=true,b.browser.version=x.version;if(b.browser.webkit)b.browser.safari=true;h.test("\u00a0")&&(i=/^[\s\xA0]+/,j=/[\s\xA0]+$/);f=b(k);k.addEventListener?K=function(){k.removeEventListener("DOMContentLoaded",K,false);b.ready()}:k.attachEvent&&(K=function(){k.readyState==="complete"&&(k.detachEvent("onreadystatechange",K),b.ready())});return b}(),ka={};c.Callbacks=function(a){var a=a?ka[a]||cb(a):{},
|
|
b=[],d=[],e,f,g,h,i,j=function(d){var e,f,g,h;for(e=0,f=d.length;e<f;e++)g=d[e],h=c.type(g),h==="array"?j(g):h==="function"&&(!a.unique||!u.has(g))&&b.push(g)},m=function(c,j){j=j||[];e=!a.memory||[c,j];f=true;i=g||0;g=0;for(h=b.length;b&&i<h;i++)if(b[i].apply(c,j)===false&&a.stopOnFalse){e=true;break}f=false;b&&(a.once?e===true?u.disable():b=[]:d&&d.length&&(e=d.shift(),u.fireWith(e[0],e[1])))},u={add:function(){if(b){var a=b.length;j(arguments);f?h=b.length:e&&e!==true&&(g=a,m(e[0],e[1]))}return this},
|
|
remove:function(){if(b)for(var c=arguments,d=0,e=c.length;d<e;d++)for(var g=0;g<b.length;g++)if(c[d]===b[g]&&(f&&g<=h&&(h--,g<=i&&i--),b.splice(g--,1),a.unique))break;return this},has:function(a){if(b)for(var c=0,d=b.length;c<d;c++)if(a===b[c])return true;return false},empty:function(){b=[];return this},disable:function(){b=d=e=l;return this},disabled:function(){return!b},lock:function(){d=l;(!e||e===true)&&u.disable();return this},locked:function(){return!d},fireWith:function(b,c){d&&(f?a.once||
|
|
d.push([b,c]):(!a.once||!e)&&m(b,c));return this},fire:function(){u.fireWith(this,arguments);return this},fired:function(){return!!e}};return u};var fa=[].slice;c.extend({Deferred:function(a){var b=c.Callbacks("once memory"),d=c.Callbacks("once memory"),e=c.Callbacks("memory"),f="pending",g={resolve:b,reject:d,notify:e},h={done:b.add,fail:d.add,progress:e.add,state:function(){return f},isResolved:b.fired,isRejected:d.fired,then:function(a,b,c){i.done(a).fail(b).progress(c);return this},always:function(){i.done.apply(i,
|
|
arguments).fail.apply(i,arguments);return this},pipe:function(a,b,d){return c.Deferred(function(e){c.each({done:[a,"resolve"],fail:[b,"reject"],progress:[d,"notify"]},function(a,b){var d=b[0],f=b[1],g;if(c.isFunction(d))i[a](function(){if((g=d.apply(this,arguments))&&c.isFunction(g.promise))g.promise().then(e.resolve,e.reject,e.notify);else e[f+"With"](this===i?e:this,[g])});else i[a](e[f])})}).promise()},promise:function(a){if(a==null)a=h;else for(var b in h)a[b]=h[b];return a}},i=h.promise({}),
|
|
j;for(j in g)i[j]=g[j].fire,i[j+"With"]=g[j].fireWith;i.done(function(){f="resolved"},d.disable,e.lock).fail(function(){f="rejected"},b.disable,e.lock);a&&a.call(i,i);return i},when:function(a){function b(a){return function(b){e[a]=arguments.length>1?fa.call(arguments,0):b;--i||j.resolveWith(j,e)}}function d(a){return function(b){h[a]=arguments.length>1?fa.call(arguments,0):b;j.notifyWith(m,h)}}var e=fa.call(arguments,0),f=0,g=e.length,h=Array(g),i=g,j=g<=1&&a&&c.isFunction(a.promise)?a:c.Deferred(),
|
|
m=j.promise();if(g>1){for(;f<g;f++)e[f]&&e[f].promise&&c.isFunction(e[f].promise)?e[f].promise().then(b(f),j.reject,d(f)):--i;i||j.resolveWith(j,e)}else j!==a&&j.resolveWith(j,g?[a]:[]);return m}});c.support=function(){var a,b,d,e,f,g,h,i,j=k.createElement("div");j.setAttribute("className","t");j.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";b=j.getElementsByTagName("*");d=j.getElementsByTagName("a")[0];if(!b||!b.length||!d)return{};
|
|
e=k.createElement("select");f=e.appendChild(k.createElement("option"));b=j.getElementsByTagName("input")[0];a={leadingWhitespace:j.firstChild.nodeType===3,tbody:!j.getElementsByTagName("tbody").length,htmlSerialize:!!j.getElementsByTagName("link").length,style:/top/.test(d.getAttribute("style")),hrefNormalized:d.getAttribute("href")==="/a",opacity:/^0.55/.test(d.style.opacity),cssFloat:!!d.style.cssFloat,checkOn:b.value==="on",optSelected:f.selected,getSetAttribute:j.className!=="t",enctype:!!k.createElement("form").enctype,
|
|
html5Clone:k.createElement("nav").cloneNode(true).outerHTML!=="<:nav></:nav>",submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true};b.checked=true;a.noCloneChecked=b.cloneNode(true).checked;e.disabled=true;a.optDisabled=!f.disabled;try{delete j.test}catch(m){a.deleteExpando=false}!j.addEventListener&&j.attachEvent&&j.fireEvent&&(j.attachEvent("onclick",function(){a.noCloneEvent=
|
|
false}),j.cloneNode(true).fireEvent("onclick"));b=k.createElement("input");b.value="t";b.setAttribute("type","radio");a.radioValue=b.value==="t";b.setAttribute("checked","checked");j.appendChild(b);d=k.createDocumentFragment();d.appendChild(j.lastChild);a.checkClone=d.cloneNode(true).cloneNode(true).lastChild.checked;a.appendChecked=b.checked;d.removeChild(b);d.appendChild(j);j.innerHTML="";if(p.getComputedStyle)b=k.createElement("div"),b.style.width="0",b.style.marginRight="0",j.style.width="2px",
|
|
j.appendChild(b),a.reliableMarginRight=(parseInt((p.getComputedStyle(b,null)||{marginRight:0}).marginRight,10)||0)===0;if(j.attachEvent)for(h in{submit:1,change:1,focusin:1})b="on"+h,i=b in j,i||(j.setAttribute(b,"return;"),i=typeof j[b]==="function"),a[h+"Bubbles"]=i;d.removeChild(j);d=e=f=b=j=b=null;c(function(){var b,d,e,f,h=k.getElementsByTagName("body")[0];if(h){b=k.createElement("div");b.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px";h.insertBefore(b,
|
|
h.firstChild);j=k.createElement("div");b.appendChild(j);j.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";g=j.getElementsByTagName("td");i=g[0].offsetHeight===0;g[0].style.display="";g[1].style.display="none";a.reliableHiddenOffsets=i&&g[0].offsetHeight===0;j.innerHTML="";j.style.width=j.style.paddingLeft="1px";c.boxModel=a.boxModel=j.offsetWidth===2;if(typeof j.style.zoom!=="undefined")j.style.display="inline",j.style.zoom=1,a.inlineBlockNeedsLayout=
|
|
j.offsetWidth===2,j.style.display="",j.innerHTML="<div style='width:4px;'></div>",a.shrinkWrapBlocks=j.offsetWidth!==2;j.style.cssText="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;visibility:hidden;border:0;";j.innerHTML="<div style='position:absolute;top:0;left:0;width:1px;height:1px;margin:0;border:5px solid #000;padding:0;'><div></div></div><table style='position:absolute;top:0;left:0;width:1px;height:1px;margin:0;border:5px solid #000;padding:0;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
|
|
d=j.firstChild;e=d.firstChild;f={doesNotAddBorder:e.offsetTop!==5,doesAddBorderForTableAndCells:d.nextSibling.firstChild.firstChild.offsetTop===5};e.style.position="fixed";e.style.top="20px";f.fixedPosition=e.offsetTop===20||e.offsetTop===15;e.style.position=e.style.top="";d.style.overflow="hidden";d.style.position="relative";f.subtractsBorderForOverflowNotVisible=e.offsetTop===-5;f.doesNotIncludeMarginInBodyOffset=h.offsetTop!==1;h.removeChild(b);j=null;c.extend(a,f)}});return a}();var eb=/^(?:\{.*\}|\[.*\])$/,
|
|
db=/([A-Z])/g;c.extend({cache:{},uuid:0,expando:"jQuery"+(c.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(a){a=a.nodeType?c.cache[a[c.expando]]:a[c.expando];return!!a&&!Z(a)},data:function(a,b,d,e){if(c.acceptData(a)){var f;f=c.expando;var g=typeof b==="string",h=a.nodeType,i=h?c.cache:a,j=h?a[f]:a[f]&&f,m=b==="events";if(j&&i[j]&&(m||e||i[j].data)||!(g&&d===l)){j||(h?a[f]=j=++c.uuid:j=f);if(!i[j]&&(i[j]=
|
|
{},!h))i[j].toJSON=c.noop;if(typeof b==="object"||typeof b==="function")e?i[j]=c.extend(i[j],b):i[j].data=c.extend(i[j].data,b);f=a=i[j];if(!e){if(!a.data)a.data={};a=a.data}d!==l&&(a[c.camelCase(b)]=d);if(m&&!a[b])return f.events;g?(d=a[b],d==null&&(d=a[c.camelCase(b)])):d=a;return d}}},removeData:function(a,b,d){if(c.acceptData(a)){var e,f,g,h=c.expando,i=a.nodeType,j=i?c.cache:a,m=i?a[h]:h;if(j[m]){if(b&&(e=d?j[m]:j[m].data)){c.isArray(b)||(b in e?b=[b]:(b=c.camelCase(b),b=b in e?[b]:b.split(" ")));
|
|
for(f=0,g=b.length;f<g;f++)delete e[b[f]];if(!(d?Z:c.isEmptyObject)(e))return}if(!d&&(delete j[m].data,!Z(j[m])))return;c.support.deleteExpando||!j.setInterval?delete j[m]:j[m]=null;i&&(c.support.deleteExpando?delete a[h]:a.removeAttribute?a.removeAttribute(h):a[h]=null)}}},_data:function(a,b,d){return c.data(a,b,d,true)},acceptData:function(a){if(a.nodeName){var b=c.noData[a.nodeName.toLowerCase()];if(b)return!(b===true||a.getAttribute("classid")!==b)}return true}});c.fn.extend({data:function(a,
|
|
b){var d,e,f,g=null;if(typeof a==="undefined"){if(this.length&&(g=c.data(this[0]),this[0].nodeType===1&&!c._data(this[0],"parsedAttrs"))){e=this[0].attributes;for(var h=0,i=e.length;h<i;h++)f=e[h].name,f.indexOf("data-")===0&&(f=c.camelCase(f.substring(5)),la(this[0],f,g[f]));c._data(this[0],"parsedAttrs",true)}return g}else if(typeof a==="object")return this.each(function(){c.data(this,a)});d=a.split(".");d[1]=d[1]?"."+d[1]:"";return b===l?(g=this.triggerHandler("getData"+d[1]+"!",[d[0]]),g===l&&
|
|
this.length&&(g=c.data(this[0],a),g=la(this[0],a,g)),g===l&&d[1]?this.data(d[0]):g):this.each(function(){var e=c(this),f=[d[0],b];e.triggerHandler("setData"+d[1]+"!",f);c.data(this,a,b);e.triggerHandler("changeData"+d[1]+"!",f)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",c._data(a,b,(c._data(a,b)||0)+1))},_unmark:function(a,b,d){a!==true&&(d=b,b=a,a=false);if(b){var d=d||"fx",e=d+"mark";(a=a?0:(c._data(b,e)||
|
|
1)-1)?c._data(b,e,a):(c.removeData(b,e,true),ma(b,d,"mark"))}},queue:function(a,b,d){var e;if(a)return b=(b||"fx")+"queue",e=c._data(a,b),d&&(!e||c.isArray(d)?e=c._data(a,b,c.makeArray(d)):e.push(d)),e||[]},dequeue:function(a,b){var b=b||"fx",d=c.queue(a,b),e=d.shift(),f={};e==="inprogress"&&(e=d.shift());e&&(b==="fx"&&d.unshift("inprogress"),c._data(a,b+".run",f),e.call(a,function(){c.dequeue(a,b)},f));d.length||(c.removeData(a,b+"queue "+b+".run",true),ma(a,b,"queue"))}});c.fn.extend({queue:function(a,
|
|
b){typeof a!=="string"&&(b=a,a="fx");return b===l?c.queue(this[0],a):this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;return this.queue(b||"fx",function(b,c){var f=setTimeout(b,a);c.stop=function(){clearTimeout(f)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a){function b(){--g||d.resolveWith(e,[e])}typeof a!==
|
|
"string"&&(a=l);var a=a||"fx",d=c.Deferred(),e=this,f=e.length,g=1,h=a+"defer",i=a+"queue";a+="mark";for(var j;f--;)if(j=c.data(e[f],h,l,true)||(c.data(e[f],i,l,true)||c.data(e[f],a,l,true))&&c.data(e[f],h,c.Callbacks("once memory"),true))g++,j.add(b);b();return d.promise()}});var Fa=/[\n\t\r]/g,W=/\s+/,qb=/\r/g,rb=/^(?:button|input)$/i,sb=/^(?:button|input|object|select|textarea)$/i,tb=/^a(?:rea)?$/i,Ga=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
|
|
Ha=c.support.getSetAttribute,F,Ia,Ja;c.fn.extend({attr:function(a,b){return c.access(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.removeAttr(this,a)})},prop:function(a,b){return c.access(this,a,b,true,c.prop)},removeProp:function(a){a=c.propFix[a]||a;return this.each(function(){try{this[a]=l,delete this[a]}catch(b){}})},addClass:function(a){var b,d,e,f,g,h,i;if(c.isFunction(a))return this.each(function(b){c(this).addClass(a.call(this,b,this.className))});if(a&&typeof a===
|
|
"string"){b=a.split(W);for(d=0,e=this.length;d<e;d++)if(f=this[d],f.nodeType===1)if(!f.className&&b.length===1)f.className=a;else{g=" "+f.className+" ";for(h=0,i=b.length;h<i;h++)~g.indexOf(" "+b[h]+" ")||(g+=b[h]+" ");f.className=c.trim(g)}}return this},removeClass:function(a){var b,d,e,f,g,h,i;if(c.isFunction(a))return this.each(function(b){c(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a==="string"||a===l){b=(a||"").split(W);for(d=0,e=this.length;d<e;d++)if(f=this[d],f.nodeType===
|
|
1&&f.className)if(a){g=(" "+f.className+" ").replace(Fa," ");for(h=0,i=b.length;h<i;h++)g=g.replace(" "+b[h]+" "," ");f.className=c.trim(g)}else f.className=""}return this},toggleClass:function(a,b){var d=typeof a,e=typeof b==="boolean";return c.isFunction(a)?this.each(function(d){c(this).toggleClass(a.call(this,d,this.className,b),b)}):this.each(function(){if(d==="string")for(var f,g=0,h=c(this),i=b,j=a.split(W);f=j[g++];)i=e?i:!h.hasClass(f),h[i?"addClass":"removeClass"](f);else if(d==="undefined"||
|
|
d==="boolean")this.className&&c._data(this,"__className__",this.className),this.className=this.className||a===false?"":c._data(this,"__className__")||""})},hasClass:function(a){for(var a=" "+a+" ",b=0,c=this.length;b<c;b++)if(this[b].nodeType===1&&(" "+this[b].className+" ").replace(Fa," ").indexOf(a)>-1)return true;return false},val:function(a){var b,d,e,f=this[0];if(arguments.length)return e=c.isFunction(a),this.each(function(d){var f=c(this);if(this.nodeType===1&&(d=e?a.call(this,d,f.val()):a,
|
|
d==null?d="":typeof d==="number"?d+="":c.isArray(d)&&(d=c.map(d,function(a){return a==null?"":a+""})),b=c.valHooks[this.nodeName.toLowerCase()]||c.valHooks[this.type],!b||!("set"in b)||b.set(this,d,"value")===l))this.value=d});else if(f){if((b=c.valHooks[f.nodeName.toLowerCase()]||c.valHooks[f.type])&&"get"in b&&(d=b.get(f,"value"))!==l)return d;d=f.value;return typeof d==="string"?d.replace(qb,""):d==null?"":d}}});c.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?
|
|
a.value:a.text}},select:{get:function(a){var b,d,e=a.selectedIndex,f=[],g=a.options,h=a.type==="select-one";if(e<0)return null;a=h?e:0;for(d=h?e+1:g.length;a<d;a++)if(b=g[a],b.selected&&(c.support.optDisabled?!b.disabled:b.getAttribute("disabled")===null)&&(!b.parentNode.disabled||!c.nodeName(b.parentNode,"optgroup"))){b=c(b).val();if(h)return b;f.push(b)}return h&&!f.length&&g.length?c(g[e]).val():f},set:function(a,b){var d=c.makeArray(b);c(a).find("option").each(function(){this.selected=c.inArray(c(this).val(),
|
|
d)>=0});if(!d.length)a.selectedIndex=-1;return d}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,e){var f,g,h=a.nodeType;if(a&&!(h===3||h===8||h===2)){if(e&&b in c.attrFn)return c(a)[b](d);if(typeof a.getAttribute==="undefined")return c.prop(a,b,d);if(e=h!==1||!c.isXMLDoc(a))b=b.toLowerCase(),g=c.attrHooks[b]||(Ga.test(b)?Ia:F);if(d!==l)if(d===null)c.removeAttr(a,b);else return g&&"set"in g&&e&&(f=g.set(a,d,b))!==l?f:(a.setAttribute(b,
|
|
""+d),d);else return g&&"get"in g&&e&&(f=g.get(a,b))!==null?f:(f=a.getAttribute(b),f===null?l:f)}},removeAttr:function(a,b){var d,e,f,g,h=0;if(b&&a.nodeType===1){e=b.toLowerCase().split(W);for(g=e.length;h<g;h++)if(f=e[h])d=c.propFix[f]||f,c.attr(a,f,""),a.removeAttribute(Ha?f:d),Ga.test(f)&&d in a&&(a[d]=false)}},attrHooks:{type:{set:function(a,b){if(rb.test(a.nodeName)&&a.parentNode)c.error("type property can't be changed");else if(!c.support.radioValue&&b==="radio"&&c.nodeName(a,"input")){var d=
|
|
a.value;a.setAttribute("type",b);if(d)a.value=d;return b}}},value:{get:function(a,b){return F&&c.nodeName(a,"button")?F.get(a,b):b in a?a.value:null},set:function(a,b,d){if(F&&c.nodeName(a,"button"))return F.set(a,b,d);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},
|
|
prop:function(a,b,d){var e,f,g=a.nodeType;if(a&&!(g===3||g===8||g===2)){if(g!==1||!c.isXMLDoc(a))b=c.propFix[b]||b,f=c.propHooks[b];return d!==l?f&&"set"in f&&(e=f.set(a,d,b))!==l?e:a[b]=d:f&&"get"in f&&(e=f.get(a,b))!==null?e:a[b]}},propHooks:{tabIndex:{get:function(a){var b=a.getAttributeNode("tabindex");return b&&b.specified?parseInt(b.value,10):sb.test(a.nodeName)||tb.test(a.nodeName)&&a.href?0:l}}}});c.attrHooks.tabindex=c.propHooks.tabIndex;Ia={get:function(a,b){var d,e=c.prop(a,b);return e===
|
|
true||typeof e!=="boolean"&&(d=a.getAttributeNode(b))&&d.nodeValue!==false?b.toLowerCase():l},set:function(a,b,d){b===false?c.removeAttr(a,d):(b=c.propFix[d]||d,b in a&&(a[b]=true),a.setAttribute(d,d.toLowerCase()));return d}};if(!Ha)Ja={name:true,id:true},F=c.valHooks.button={get:function(a,b){var c;return(c=a.getAttributeNode(b))&&(Ja[b]?c.nodeValue!=="":c.specified)?c.nodeValue:l},set:function(a,b,c){var e=a.getAttributeNode(c);e||(e=k.createAttribute(c),a.setAttributeNode(e));return e.nodeValue=
|
|
b+""}},c.attrHooks.tabindex.set=F.set,c.each(["width","height"],function(a,b){c.attrHooks[b]=c.extend(c.attrHooks[b],{set:function(a,c){if(c==="")return a.setAttribute(b,"auto"),c}})}),c.attrHooks.contenteditable={get:F.get,set:function(a,b,c){b===""&&(b="false");F.set(a,b,c)}};c.support.hrefNormalized||c.each(["href","src","width","height"],function(a,b){c.attrHooks[b]=c.extend(c.attrHooks[b],{get:function(a){a=a.getAttribute(b,2);return a===null?l:a}})});if(!c.support.style)c.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||
|
|
l},set:function(a,b){return a.style.cssText=""+b}};if(!c.support.optSelected)c.propHooks.selected=c.extend(c.propHooks.selected,{get:function(){return null}});if(!c.support.enctype)c.propFix.enctype="encoding";c.support.checkOn||c.each(["radio","checkbox"],function(){c.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}});c.each(["radio","checkbox"],function(){c.valHooks[this]=c.extend(c.valHooks[this],{set:function(a,b){if(c.isArray(b))return a.checked=c.inArray(c(a).val(),
|
|
b)>=0}})});var ga=/^(?:textarea|input|select)$/i,Ka=/^([^\.]*)?(?:\.(.+))?$/,ub=/\bhover(\.\S+)?\b/,vb=/^key/,wb=/^(?:mouse|contextmenu)|click/,La=/^(?:focusinfocus|focusoutblur)$/,xb=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,yb=function(a){if(a=xb.exec(a))a[1]=(a[1]||"").toLowerCase(),a[3]=a[3]&&RegExp("(?:^|\\s)"+a[3]+"(?:\\s|$)");return a},Ma=function(a){return c.event.special.hover?a:a.replace(ub,"mouseenter$1 mouseleave$1")};c.event={add:function(a,b,d,e,f){var g,h,i,j,m,k,o,y,n;if(!(a.nodeType===
|
|
3||a.nodeType===8||!b||!d||!(g=c._data(a)))){if(d.handler)o=d,d=o.handler;if(!d.guid)d.guid=c.guid++;i=g.events;if(!i)g.events=i={};h=g.handle;if(!h)g.handle=h=function(a){return typeof c!=="undefined"&&(!a||c.event.triggered!==a.type)?c.event.dispatch.apply(h.elem,arguments):l},h.elem=a;b=c.trim(Ma(b)).split(" ");for(g=0;g<b.length;g++){j=Ka.exec(b[g])||[];m=j[1];k=(j[2]||"").split(".").sort();n=c.event.special[m]||{};m=(f?n.delegateType:n.bindType)||m;n=c.event.special[m]||{};j=c.extend({type:m,
|
|
origType:j[1],data:e,handler:d,guid:d.guid,selector:f,quick:yb(f),namespace:k.join(".")},o);y=i[m];if(!y&&(y=i[m]=[],y.delegateCount=0,!n.setup||n.setup.call(a,e,k,h)===false))a.addEventListener?a.addEventListener(m,h,false):a.attachEvent&&a.attachEvent("on"+m,h);if(n.add&&(n.add.call(a,j),!j.handler.guid))j.handler.guid=d.guid;f?y.splice(y.delegateCount++,0,j):y.push(j);c.event.global[m]=true}a=null}},global:{},remove:function(a,b,d,e,f){var g=c.hasData(a)&&c._data(a),h,i,j,m,l,o,k,n,p,t;if(g&&(k=
|
|
g.events)){b=c.trim(Ma(b||"")).split(" ");for(h=0;h<b.length;h++)if(i=Ka.exec(b[h])||[],j=m=i[1],i=i[2],j){n=c.event.special[j]||{};j=(e?n.delegateType:n.bindType)||j;p=k[j]||[];l=p.length;i=i?RegExp("(^|\\.)"+i.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(o=0;o<p.length;o++)if(t=p[o],(f||m===t.origType)&&(!d||d.guid===t.guid)&&(!i||i.test(t.namespace))&&(!e||e===t.selector||e==="**"&&t.selector))p.splice(o--,1),t.selector&&p.delegateCount--,n.remove&&n.remove.call(a,t);p.length===
|
|
0&&l!==p.length&&((!n.teardown||n.teardown.call(a,i)===false)&&c.removeEvent(a,j,g.handle),delete k[j])}else for(j in k)c.event.remove(a,j+b[h],d,e,true);if(c.isEmptyObject(k)){if(b=g.handle)b.elem=null;c.removeData(a,["events","handle"],true)}}},customEvent:{getData:true,setData:true,changeData:true},trigger:function(a,b,d,e){if(!d||!(d.nodeType===3||d.nodeType===8)){var f=a.type||a,g=[],h,i,j,m,k;if(!La.test(f+c.event.triggered)&&(f.indexOf("!")>=0&&(f=f.slice(0,-1),h=true),f.indexOf(".")>=0&&(g=
|
|
f.split("."),f=g.shift(),g.sort()),d&&!c.event.customEvent[f]||c.event.global[f]))if(a=typeof a==="object"?a[c.expando]?a:new c.Event(f,a):new c.Event(f),a.type=f,a.isTrigger=true,a.exclusive=h,a.namespace=g.join("."),a.namespace_re=a.namespace?RegExp("(^|\\.)"+g.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,h=f.indexOf(":")<0?"on"+f:"",d){a.result=l;if(!a.target)a.target=d;b=b!=null?c.makeArray(b):[];b.unshift(a);j=c.event.special[f]||{};if(!(j.trigger&&j.trigger.apply(d,b)===false)){k=[[d,j.bindType||f]];
|
|
if(!e&&!j.noBubble&&!c.isWindow(d)){m=j.delegateType||f;g=La.test(m+f)?d:d.parentNode;for(i=null;g;g=g.parentNode)k.push([g,m]),i=g;i&&i===d.ownerDocument&&k.push([i.defaultView||i.parentWindow||p,m])}for(i=0;i<k.length&&!a.isPropagationStopped();i++)g=k[i][0],a.type=k[i][1],(m=(c._data(g,"events")||{})[a.type]&&c._data(g,"handle"))&&m.apply(g,b),(m=h&&g[h])&&c.acceptData(g)&&m.apply(g,b)===false&&a.preventDefault();a.type=f;if(!e&&!a.isDefaultPrevented()&&(!j._default||j._default.apply(d.ownerDocument,
|
|
b)===false)&&!(f==="click"&&c.nodeName(d,"a"))&&c.acceptData(d))if(h&&d[f]&&(f!=="focus"&&f!=="blur"||a.target.offsetWidth!==0)&&!c.isWindow(d))(i=d[h])&&(d[h]=null),c.event.triggered=f,d[f](),c.event.triggered=l,i&&(d[h]=i);return a.result}}else for(i in d=c.cache,d)d[i].events&&d[i].events[f]&&c.event.trigger(a,b,d[i].handle.elem,true)}},dispatch:function(a){var a=c.event.fix(a||p.event),b=(c._data(this,"events")||{})[a.type]||[],d=b.delegateCount,e=[].slice.call(arguments,0),f=!a.exclusive&&!a.namespace,
|
|
g=[],h,i,j,m,k,o,y;e[0]=a;a.delegateTarget=this;if(d&&!a.target.disabled&&!(a.button&&a.type==="click")){j=c(this);j.context=this.ownerDocument||this;for(i=a.target;i!=this;i=i.parentNode||this){k={};o=[];j[0]=i;for(h=0;h<d;h++){m=b[h];y=m.selector;if(k[y]===l){var n=k,s=y,t;if(m.quick){t=m.quick;var v=i.attributes||{};t=(!t[1]||i.nodeName.toLowerCase()===t[1])&&(!t[2]||(v.id||{}).value===t[2])&&(!t[3]||t[3].test((v["class"]||{}).value))}else t=j.is(y);n[s]=t}k[y]&&o.push(m)}o.length&&g.push({elem:i,
|
|
matches:o})}}b.length>d&&g.push({elem:this,matches:b.slice(d)});for(h=0;h<g.length&&!a.isPropagationStopped();h++){d=g[h];a.currentTarget=d.elem;for(b=0;b<d.matches.length&&!a.isImmediatePropagationStopped();b++)if(m=d.matches[b],f||!a.namespace&&!m.namespace||a.namespace_re&&a.namespace_re.test(m.namespace))if(a.data=m.data,a.handleObj=m,m=((c.event.special[m.origType]||{}).handle||m.handler).apply(d.elem,e),m!==l)a.result=m,m===false&&(a.preventDefault(),a.stopPropagation())}return a.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
|
|
fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){if(a.which==null)a.which=b.charCode!=null?b.charCode:b.keyCode;return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,e,f=b.button,g=b.fromElement;if(a.pageX==null&&b.clientX!=null)c=a.target.ownerDocument||k,e=c.documentElement,c=c.body,a.pageX=b.clientX+(e&&e.scrollLeft||c&&c.scrollLeft||0)-(e&&e.clientLeft||
|
|
c&&c.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||c&&c.scrollTop||0)-(e&&e.clientTop||c&&c.clientTop||0);if(!a.relatedTarget&&g)a.relatedTarget=g===a.target?b.toElement:g;if(!a.which&&f!==l)a.which=f&1?1:f&2?3:f&4?2:0;return a}},fix:function(a){if(a[c.expando])return a;var b,d,e=a,f=c.event.fixHooks[a.type]||{},g=f.props?this.props.concat(f.props):this.props,a=c.Event(e);for(b=g.length;b;)d=g[--b],a[d]=e[d];if(!a.target)a.target=e.srcElement||k;if(a.target.nodeType===3)a.target=a.target.parentNode;
|
|
if(a.metaKey===l)a.metaKey=a.ctrlKey;return f.filter?f.filter(a,e):a},special:{ready:{setup:c.bindReady},load:{noBubble:true},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,d){if(c.isWindow(this))this.onbeforeunload=d},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}},simulate:function(a,b,d,e){a=c.extend(new c.Event,d,{type:a,isSimulated:true,originalEvent:{}});e?c.event.trigger(a,null,b):c.event.dispatch.call(b,a);a.isDefaultPrevented()&&
|
|
d.preventDefault()}};c.event.handle=c.event.dispatch;c.removeEvent=k.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,false)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)};c.Event=function(a,b){if(!(this instanceof c.Event))return new c.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===false||a.getPreventDefault&&a.getPreventDefault()?L:E):this.type=a;b&&c.extend(this,b);this.timeStamp=
|
|
a&&a.timeStamp||c.now();this[c.expando]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=L;var a=this.originalEvent;if(a)a.preventDefault?a.preventDefault():a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=L;var a=this.originalEvent;if(a)a.stopPropagation&&a.stopPropagation(),a.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=L;this.stopPropagation()},isDefaultPrevented:E,isPropagationStopped:E,isImmediatePropagationStopped:E};
|
|
c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={delegateType:b,bindType:b,handle:function(a){var e=a.relatedTarget,f=a.handleObj,g;if(!e||e!==this&&!c.contains(this,e))a.type=f.origType,g=f.handler.apply(this,arguments),a.type=b;return g}}});if(!c.support.submitBubbles)c.event.special.submit={setup:function(){if(c.nodeName(this,"form"))return false;c.event.add(this,"click._submit keypress._submit",function(a){a=a.target;if((a=c.nodeName(a,"input")||c.nodeName(a,
|
|
"button")?a.form:l)&&!a._submit_attached)c.event.add(a,"submit._submit",function(a){this.parentNode&&!a.isTrigger&&c.event.simulate("submit",this.parentNode,a,true)}),a._submit_attached=true})},teardown:function(){if(c.nodeName(this,"form"))return false;c.event.remove(this,"._submit")}};if(!c.support.changeBubbles)c.event.special.change={setup:function(){if(ga.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")c.event.add(this,"propertychange._change",function(a){if(a.originalEvent.propertyName===
|
|
"checked")this._just_changed=true}),c.event.add(this,"click._change",function(a){if(this._just_changed&&!a.isTrigger)this._just_changed=false,c.event.simulate("change",this,a,true)});return false}c.event.add(this,"beforeactivate._change",function(a){a=a.target;if(ga.test(a.nodeName)&&!a._change_attached)c.event.add(a,"change._change",function(a){this.parentNode&&!a.isSimulated&&!a.isTrigger&&c.event.simulate("change",this.parentNode,a,true)}),a._change_attached=true})},handle:function(a){var b=a.target;
|
|
if(this!==b||a.isSimulated||a.isTrigger||b.type!=="radio"&&b.type!=="checkbox")return a.handleObj.handler.apply(this,arguments)},teardown:function(){c.event.remove(this,"._change");return ga.test(this.nodeName)}};c.support.focusinBubbles||c.each({focus:"focusin",blur:"focusout"},function(a,b){var d=0,e=function(a){c.event.simulate(b,a.target,c.event.fix(a),true)};c.event.special[b]={setup:function(){d++===0&&k.addEventListener(a,e,true)},teardown:function(){--d===0&&k.removeEventListener(a,e,true)}}});
|
|
c.fn.extend({on:function(a,b,d,e,f){var g,h;if(typeof a==="object"){typeof b!=="string"&&(d=b,b=l);for(h in a)this.on(h,b,d,a[h],f);return this}d==null&&e==null?(e=b,d=b=l):e==null&&(typeof b==="string"?(e=d,d=l):(e=d,d=b,b=l));if(e===false)e=E;else if(!e)return this;if(f===1)g=e,e=function(a){c().off(a);return g.apply(this,arguments)},e.guid=g.guid||(g.guid=c.guid++);return this.each(function(){c.event.add(this,a,e,d,b)})},one:function(a,b,c,e){return this.on.call(this,a,b,c,e,1)},off:function(a,
|
|
b,d){if(a&&a.preventDefault&&a.handleObj){var e=a.handleObj;c(a.delegateTarget).off(e.namespace?e.type+"."+e.namespace:e.type,e.selector,e.handler);return this}if(typeof a==="object"){for(e in a)this.off(e,b,a[e]);return this}if(b===false||typeof b==="function")d=b,b=l;d===false&&(d=E);return this.each(function(){c.event.remove(this,a,d,b)})},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},live:function(a,b,d){c(this.context).on(a,this.selector,b,d);
|
|
return this},die:function(a,b){c(this.context).off(a,this.selector||"**",b);return this},delegate:function(a,b,c,e){return this.on(b,a,c,e)},undelegate:function(a,b,c){return arguments.length==1?this.off(a,"**"):this.off(b,a,c)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return c.event.trigger(a,b,this[0],true)},toggle:function(a){var b=arguments,d=a.guid||c.guid++,e=0,f=function(d){var f=(c._data(this,"lastToggle"+a.guid)||
|
|
0)%e;c._data(this,"lastToggle"+a.guid,f+1);d.preventDefault();return b[f].apply(this,arguments)||false};for(f.guid=d;e<b.length;)b[e++].guid=d;return this.click(f)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){c.fn[b]=function(a,c){c==null&&(c=a,
|
|
a=null);return arguments.length>0?this.on(b,null,a,c):this.trigger(b)};c.attrFn&&(c.attrFn[b]=true);if(vb.test(b))c.event.fixHooks[b]=c.event.keyHooks;if(wb.test(b))c.event.fixHooks[b]=c.event.mouseHooks});(function(){function a(a,b,c,d,f,g){for(var f=0,h=d.length;f<h;f++){var i=d[f];if(i){for(var j=false,i=i[a];i;){if(i[e]===c){j=d[i.sizset];break}if(i.nodeType===1&&!g)i[e]=c,i.sizset=f;if(i.nodeName.toLowerCase()===b){j=i;break}i=i[a]}d[f]=j}}}function b(a,b,c,d,f,g){for(var f=0,h=d.length;f<h;f++){var i=
|
|
d[f];if(i){for(var j=false,i=i[a];i;){if(i[e]===c){j=d[i.sizset];break}if(i.nodeType===1){if(!g)i[e]=c,i.sizset=f;if(typeof b!=="string"){if(i===b){j=true;break}}else if(o.filter(b,[i]).length>0){j=i;break}}i=i[a]}d[f]=j}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e="sizcache"+(Math.random()+"").replace(".",""),f=0,g=Object.prototype.toString,h=false,i=true,j=/\\/g,m=/\r\n/g,u=/\W/;[0,0].sort(function(){i=
|
|
false;return 0});var o=function(a,b,c,e){var c=c||[],f=b=b||k;if(b.nodeType!==1&&b.nodeType!==9)return[];if(!a||typeof a!=="string")return c;var h,i,j,m,l,u=true,p=o.isXML(b),q=[],y=a;do if(d.exec(""),h=d.exec(y))if(y=h[3],q.push(h[1]),h[2]){m=h[3];break}while(h);if(q.length>1&&s.exec(a))if(q.length===2&&n.relative[q[0]])i=x(q[0]+q[1],b,e);else for(i=n.relative[q[0]]?[b]:o(q.shift(),b);q.length;)a=q.shift(),n.relative[a]&&(a+=q.shift()),i=x(a,i,e);else if(!e&&q.length>1&&b.nodeType===9&&!p&&n.match.ID.test(q[0])&&
|
|
!n.match.ID.test(q[q.length-1])&&(h=o.find(q.shift(),b,p),b=h.expr?o.filter(h.expr,h.set)[0]:h.set[0]),b){h=e?{expr:q.pop(),set:w(e)}:o.find(q.pop(),q.length===1&&(q[0]==="~"||q[0]==="+")&&b.parentNode?b.parentNode:b,p);i=h.expr?o.filter(h.expr,h.set):h.set;for(q.length>0?j=w(i):u=false;q.length;)h=l=q.pop(),n.relative[l]?h=q.pop():l="",h==null&&(h=b),n.relative[l](j,h,p)}else j=[];j||(j=i);j||o.error(l||a);if(g.call(j)==="[object Array]")if(u)if(b&&b.nodeType===1)for(a=0;j[a]!=null;a++)j[a]&&(j[a]===
|
|
true||j[a].nodeType===1&&o.contains(b,j[a]))&&c.push(i[a]);else for(a=0;j[a]!=null;a++)j[a]&&j[a].nodeType===1&&c.push(i[a]);else c.push.apply(c,j);else w(j,c);m&&(o(m,f,c,e),o.uniqueSort(c));return c};o.uniqueSort=function(a){if(B&&(h=i,a.sort(B),h))for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1);return a};o.matches=function(a,b){return o(a,null,null,b)};o.matchesSelector=function(a,b){return o(b,null,null,[a]).length>0};o.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=n.order.length;e<
|
|
f;e++)if(h=n.order[e],g=n.leftMatch[h].exec(a))if(i=g[1],g.splice(1,1),i.substr(i.length-1)!=="\\"&&(g[1]=(g[1]||"").replace(j,""),d=n.find[h](g,b,c),d!=null)){a=a.replace(n.match[h],"");break}d||(d=typeof b.getElementsByTagName!=="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}};o.filter=function(a,b,c,d){for(var e,f,g,h,i,j,m,k,q=a,u=[],p=b,y=b&&b[0]&&o.isXML(b[0]);a&&b.length;){for(g in n.filter)if((e=n.leftMatch[g].exec(a))!=null&&e[2])if(j=n.filter[g],i=e[1],f=false,e.splice(1,
|
|
1),i.substr(i.length-1)!=="\\"){p===u&&(u=[]);if(n.preFilter[g])if(e=n.preFilter[g](e,p,c,u,d,y)){if(e===true)continue}else f=h=true;if(e)for(m=0;(i=p[m])!=null;m++)i&&(h=j(i,e,m,p),k=d^h,c&&h!=null?k?f=true:p[m]=false:k&&(u.push(i),f=true));if(h!==l){c||(p=u);a=a.replace(n.match[g],"");if(!f)return[];break}}if(a===q)if(f==null)o.error(a);else break;q=a}return p};o.error=function(a){throw Error("Syntax error, unrecognized expression: "+a);};var p=o.getText=function(a){var b,c;b=a.nodeType;var d="";
|
|
if(b)if(b===1||b===9)if(typeof a.textContent==="string")return a.textContent;else if(typeof a.innerText==="string")return a.innerText.replace(m,"");else for(a=a.firstChild;a;a=a.nextSibling)d+=p(a);else{if(b===3||b===4)return a.nodeValue}else for(b=0;c=a[b];b++)c.nodeType!==8&&(d+=p(c));return d},n=o.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,
|
|
TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=
|
|
typeof b==="string",d=c&&!u.test(b),c=c&&!d;d&&(b=b.toLowerCase());for(var d=0,e=a.length,f;d<e;d++)if(f=a[d]){for(;(f=f.previousSibling)&&f.nodeType!==1;);a[d]=c||f&&f.nodeName.toLowerCase()===b?f||false:f===b}c&&o.filter(b,a,true)},">":function(a,b){var c,d=typeof b==="string",e=0,f=a.length;if(d&&!u.test(b))for(b=b.toLowerCase();e<f;e++){if(c=a[e])c=c.parentNode,a[e]=c.nodeName.toLowerCase()===b?c:false}else{for(;e<f;e++)(c=a[e])&&(a[e]=d?c.parentNode:c.parentNode===b);d&&o.filter(b,a,true)}},
|
|
"":function(c,d,e){var g,h=f++,i=b;typeof d==="string"&&!u.test(d)&&(g=d=d.toLowerCase(),i=a);i("parentNode",d,h,c,g,e)},"~":function(c,d,e){var g,h=f++,i=b;typeof d==="string"&&!u.test(d)&&(g=d=d.toLowerCase(),i=a);i("previousSibling",d,h,c,g,e)}},find:{ID:function(a,b,c){if(typeof b.getElementById!=="undefined"&&!c)return(a=b.getElementById(a[1]))&&a.parentNode?[a]:[]},NAME:function(a,b){if(typeof b.getElementsByName!=="undefined"){for(var c=[],d=b.getElementsByName(a[1]),e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===
|
|
a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!=="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(j,"")+" ";if(f)return a;for(var f=0,g;(g=b[f])!=null;f++)g&&(e^(g.className&&(" "+g.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(g):c&&(b[f]=false));return false},ID:function(a){return a[1].replace(j,"")},TAG:function(a){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]===
|
|
"nth"){a[2]||o.error(a[0]);a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0;a[3]=b[3]-0}else a[2]&&o.error(a[0]);a[0]=f++;return a},ATTR:function(a,b,c,d,e,f){b=a[1]=a[1].replace(j,"");!f&&n.attrMap[b]&&(a[1]=n.attrMap[b]);a[4]=(a[4]||a[5]||"").replace(j,"");a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(a,b,c,e,f){if(a[1]==="not")if((d.exec(a[3])||"").length>1||
|
|
/^\w/.test(a[3]))a[3]=o(a[3],null,null,b);else return a=o.filter(a[3],b,c,1^f),c||e.push.apply(e,a),false;else if(n.match.POS.test(a[0])||n.match.CHILD.test(a[0]))return true;return a},POS:function(a){a.unshift(true);return a}},filters:{enabled:function(a){return a.disabled===false&&a.type!=="hidden"},disabled:function(a){return a.disabled===true},checked:function(a){return a.checked===true},selected:function(a){return a.selected===true},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},
|
|
has:function(a,b,c){return!!o(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()===
|
|
"input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===
|
|
a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=n.filters[e];if(f)return f(a,c,b,d);else if(e==="contains")return(a.textContent||a.innerText||p([a])||"").indexOf(b[3])>=
|
|
0;else if(e==="not"){b=b[3];c=0;for(d=b.length;c<d;c++)if(b[c]===a)return false;return true}else o.error(e)},CHILD:function(a,b){var c,d,f,g,h,i;c=b[1];i=a;switch(c){case "only":case "first":for(;i=i.previousSibling;)if(i.nodeType===1)return false;if(c==="first")return true;i=a;case "last":for(;i=i.nextSibling;)if(i.nodeType===1)return false;return true;case "nth":c=b[2];d=b[3];if(c===1&&d===0)return true;f=b[0];if((g=a.parentNode)&&(g[e]!==f||!a.nodeIndex)){h=0;for(i=g.firstChild;i;i=i.nextSibling)if(i.nodeType===
|
|
1)i.nodeIndex=++h;g[e]=f}i=a.nodeIndex-d;return c===0?i===0:i%c===0&&i/c>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],c=o.attr?o.attr(a,c):n.attrHandle[c]?n.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),d=c+"",e=b[2],f=b[4];return c==null?e==="!=":!e&&o.attr?
|
|
c!=null:e==="="?d===f:e==="*="?d.indexOf(f)>=0:e==="~="?(" "+d+" ").indexOf(f)>=0:!f?d&&c!==false:e==="!="?d!==f:e==="^="?d.indexOf(f)===0:e==="$="?d.substr(d.length-f.length)===f:e==="|="?d===f||d.substr(0,f.length+1)===f+"-":false},POS:function(a,b,c,d){var e=n.setFilters[b[2]];if(e)return e(a,c,b,d)}}},s=n.match.POS,t=function(a,b){return"\\"+(b-0+1)},v;for(v in n.match)n.match[v]=RegExp(n.match[v].source+/(?![^\[]*\])(?![^\(]*\))/.source),n.leftMatch[v]=RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[v].source.replace(/\\(\d+)/g,
|
|
t));var w=function(a,b){a=Array.prototype.slice.call(a,0);return b?(b.push.apply(b,a),b):a};try{Array.prototype.slice.call(k.documentElement.childNodes,0)}catch(A){w=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length==="number")for(var e=a.length;c<e;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var B,q;k.documentElement.compareDocumentPosition?B=function(a,b){return a===b?(h=true,0):!a.compareDocumentPosition||!b.compareDocumentPosition?
|
|
a.compareDocumentPosition?-1:1:a.compareDocumentPosition(b)&4?-1:1}:(B=function(a,b){if(a===b)return h=true,0;else if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[];c=a.parentNode;d=b.parentNode;var g=c;if(c===d)return q(a,b);else if(c){if(!d)return 1}else return-1;for(;g;)e.unshift(g),g=g.parentNode;for(g=d;g;)f.unshift(g),g=g.parentNode;c=e.length;d=f.length;for(g=0;g<c&&g<d;g++)if(e[g]!==f[g])return q(e[g],f[g]);return g===c?q(a,f[g],-1):q(e[g],b,1)},q=function(a,
|
|
b,c){if(a===b)return c;for(a=a.nextSibling;a;){if(a===b)return-1;a=a.nextSibling}return 1});(function(){var a=k.createElement("div"),b="script"+(new Date).getTime(),c=k.documentElement;a.innerHTML="<a name='"+b+"'/>";c.insertBefore(a,c.firstChild);if(k.getElementById(b))n.find.ID=function(a,b,c){if(typeof b.getElementById!=="undefined"&&!c)return(b=b.getElementById(a[1]))?b.id===a[1]||typeof b.getAttributeNode!=="undefined"&&b.getAttributeNode("id").nodeValue===a[1]?[b]:l:[]},n.filter.ID=function(a,
|
|
b){var c=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b};c.removeChild(a);c=a=null})();(function(){var a=k.createElement("div");a.appendChild(k.createComment(""));if(a.getElementsByTagName("*").length>0)n.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){for(var d=[],e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c};a.innerHTML="<a href='#'></a>";if(a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&
|
|
a.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(a){return a.getAttribute("href",2)};a=null})();k.querySelectorAll&&function(){var a=o,b=k.createElement("div");b.innerHTML="<p class='TEST'></p>";if(!(b.querySelectorAll&&b.querySelectorAll(".TEST").length===0)){o=function(b,c,d,e){c=c||k;if(!e&&!o.isXML(c)){var f=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(f&&(c.nodeType===1||c.nodeType===9))if(f[1])return w(c.getElementsByTagName(b),d);else if(f[2]&&n.find.CLASS&&c.getElementsByClassName)return w(c.getElementsByClassName(f[2]),
|
|
d);if(c.nodeType===9){if(b==="body"&&c.body)return w([c.body],d);else if(f&&f[3]){var g=c.getElementById(f[3]);if(g&&g.parentNode){if(g.id===f[3])return w([g],d)}else return w([],d)}try{return w(c.querySelectorAll(b),d)}catch(h){}}else if(c.nodeType===1&&c.nodeName.toLowerCase()!=="object"){var f=c,i=(g=c.getAttribute("id"))||"__sizzle__",j=c.parentNode,m=/^\s*[+~]/.test(b);g?i=i.replace(/'/g,"\\$&"):c.setAttribute("id",i);if(m&&j)c=c.parentNode;try{if(!m||j)return w(c.querySelectorAll("[id='"+i+
|
|
"'] "+b),d)}catch(l){}finally{g||f.removeAttribute("id")}}}return a(b,c,d,e)};for(var c in a)o[c]=a[c];b=null}}();(function(){var a=k.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var c=!b.call(k.createElement("div"),"div"),d=false;try{b.call(k.documentElement,"[test!='']:sizzle")}catch(e){d=true}o.matchesSelector=function(a,e){e=e.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!o.isXML(a))try{if(d||!n.match.PSEUDO.test(e)&&!/!=/.test(e)){var f=
|
|
b.call(a,e);if(f||!c||a.document&&a.document.nodeType!==11)return f}}catch(g){}return o(e,null,null,[a]).length>0}}})();(function(){var a=k.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(a.getElementsByClassName&&a.getElementsByClassName("e").length!==0&&(a.lastChild.className="e",a.getElementsByClassName("e").length!==1))n.order.splice(1,0,"CLASS"),n.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!=="undefined"&&!c)return b.getElementsByClassName(a[1])},
|
|
a=null})();o.contains=k.documentElement.contains?function(a,b){return a!==b&&(a.contains?a.contains(b):true)}:k.documentElement.compareDocumentPosition?function(a,b){return!!(a.compareDocumentPosition(b)&16)}:function(){return false};o.isXML=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?a.nodeName!=="HTML":false};var x=function(a,b,c){for(var d,e=[],f="",b=b.nodeType?[b]:b;d=n.match.PSEUDO.exec(a);)f+=d[0],a=a.replace(n.match.PSEUDO,"");a=n.relative[a]?a+"*":a;d=0;for(var g=b.length;d<
|
|
g;d++)o(a,b[d],e,c);return o.filter(f,e)};o.attr=c.attr;o.selectors.attrMap={};c.find=o;c.expr=o.selectors;c.expr[":"]=c.expr.filters;c.unique=o.uniqueSort;c.text=o.getText;c.isXMLDoc=o.isXML;c.contains=o.contains})();var zb=/Until$/,Ab=/^(?:parents|prevUntil|prevAll)/,Bb=/,/,fb=/^.[^:#\[\.,]*$/,Cb=Array.prototype.slice,Na=c.expr.match.POS,Db={children:true,contents:true,next:true,prev:true};c.fn.extend({find:function(a){var b=this,d,e;if(typeof a!=="string")return c(a).filter(function(){for(d=0,
|
|
e=b.length;d<e;d++)if(c.contains(b[d],this))return true});var f=this.pushStack("","find",a),g,h,i;for(d=0,e=this.length;d<e;d++)if(g=f.length,c.find(a,this[d],f),d>0)for(h=g;h<f.length;h++)for(i=0;i<g;i++)if(f[i]===f[h]){f.splice(h--,1);break}return f},has:function(a){var b=c(a);return this.filter(function(){for(var a=0,e=b.length;a<e;a++)if(c.contains(this,b[a]))return true})},not:function(a){return this.pushStack(na(this,a,false),"not",a)},filter:function(a){return this.pushStack(na(this,a,true),
|
|
"filter",a)},is:function(a){return!!a&&(typeof a==="string"?Na.test(a)?c(a,this.context).index(this[0])>=0:c.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var d=[],e,f,g=this[0];if(c.isArray(a)){for(f=1;g&&g.ownerDocument&&g!==b;){for(e=0;e<a.length;e++)c(g).is(a[e])&&d.push({selector:a[e],elem:g,level:f});g=g.parentNode;f++}return d}var h=Na.test(a)||typeof a!=="string"?c(a,b||this.context):0;for(e=0,f=this.length;e<f;e++)for(g=this[e];g;)if(h?h.index(g)>-1:c.find.matchesSelector(g,
|
|
a)){d.push(g);break}else if(g=g.parentNode,!g||!g.ownerDocument||g===b||g.nodeType===11)break;d=d.length>1?c.unique(d):d;return this.pushStack(d,"closest",a)},index:function(a){return!a?this[0]&&this[0].parentNode?this.prevAll().length:-1:typeof a==="string"?c.inArray(this[0],c(a)):c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var d=typeof a==="string"?c(a,b):c.makeArray(a&&a.nodeType?[a]:a),e=c.merge(this.get(),d);return this.pushStack(!d[0]||!d[0].parentNode||d[0].parentNode.nodeType===11||
|
|
!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11?e:c.unique(e))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,
|
|
"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,e){var f=c.map(this,b,d);zb.test(a)||(e=d);e&&typeof e==="string"&&(f=c.filter(e,f));
|
|
f=this.length>1&&!Db[a]?c.unique(f):f;if((this.length>1||Bb.test(e))&&Ab.test(a))f=f.reverse();return this.pushStack(f,a,Cb.call(arguments).join(","))}});c.extend({filter:function(a,b,d){d&&(a=":not("+a+")");return b.length===1?c.find.matchesSelector(b[0],a)?[b[0]]:[]:c.find.matches(a,b)},dir:function(a,b,d){for(var e=[],a=a[b];a&&a.nodeType!==9&&(d===l||a.nodeType!==1||!c(a).is(d));)a.nodeType===1&&e.push(a),a=a[b];return e},nth:function(a,b,c){for(var b=b||1,e=0;a;a=a[c])if(a.nodeType===1&&++e===
|
|
b)break;return a},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var pa="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Eb=/ jQuery\d+="(?:\d+|null)"/g,ha=/^\s+/,Oa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Pa=/<([\w:]+)/,Fb=/<tbody/i,Gb=/<|&#?\w+;/,Hb=/<(?:script|style)/i,Ib=/<(?:script|object|embed|option|style)/i,
|
|
Qa=RegExp("<(?:"+pa+")","i"),Ra=/checked\s*(?:[^=]|=\s*.checked.)/i,Jb=/\/(java|ecma)script/i,hb=/^\s*<!(?:\[CDATA\[|\-\-)/,s={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},Sa=oa(k);s.optgroup=s.option;s.tbody=s.tfoot=
|
|
s.colgroup=s.caption=s.thead;s.th=s.td;if(!c.support.htmlSerialize)s._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){return c.isFunction(a)?this.each(function(b){var d=c(this);d.text(a.call(this,b,d.text()))}):typeof a!=="object"&&a!==l?this.empty().append((this[0]&&this[0].ownerDocument||k).createTextNode(a)):c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapAll(a.call(this,b))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);
|
|
this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var a=this;a.firstChild&&a.firstChild.nodeType===1;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return c.isFunction(a)?this.each(function(b){c(this).wrapInner(a.call(this,b))}):this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){var b=c.isFunction(a);return this.each(function(d){c(this).wrapAll(b?a.call(this,d):a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,
|
|
"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this)});else if(arguments.length){var a=c.clean(arguments);a.push.apply(a,this.toArray());
|
|
return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c.clean(arguments));return a}},remove:function(a,b){for(var d=0,e;(e=this[d])!=null;d++)if(!a||c.filter(a,[e]).length)!b&&e.nodeType===1&&(c.cleanData(e.getElementsByTagName("*")),c.cleanData([e])),e.parentNode&&e.parentNode.removeChild(e);
|
|
return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(a,b){a=a==null?false:a;b=b==null?a:b;return this.map(function(){return c.clone(this,a,b)})},html:function(a){if(a===l)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Eb,""):null;else if(typeof a==="string"&&!Hb.test(a)&&(c.support.leadingWhitespace||!ha.test(a))&&!s[(Pa.exec(a)||["",""])[1].toLowerCase()]){a=
|
|
a.replace(Oa,"<$1></$2>");try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1)c.cleanData(this[b].getElementsByTagName("*")),this[b].innerHTML=a}catch(e){this.empty().append(a)}}else c.isFunction(a)?this.each(function(b){var d=c(this);d.html(a.call(this,b,d.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=c(this),e=d.html();d.replaceWith(a.call(this,b,e))});typeof a!=="string"&&(a=
|
|
c(a).detach());return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.length?this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){var e,f,g,h=a[0],i=[];if(!c.support.checkClone&&arguments.length===3&&typeof h==="string"&&Ra.test(h))return this.each(function(){c(this).domManip(a,b,d,true)});if(c.isFunction(h))return this.each(function(e){var f=
|
|
c(this);a[0]=h.call(this,e,b?f.html():l);f.domManip(a,b,d)});if(this[0]){e=h&&h.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:c.buildFragment(a,this,i);g=e.fragment;if(f=g.childNodes.length===1?g=g.firstChild:g.firstChild){b=b&&c.nodeName(f,"tr");f=0;for(var j=this.length,m=j-1;f<j;f++)d.call(b?c.nodeName(this[f],"table")?this[f].getElementsByTagName("tbody")[0]||this[f].appendChild(this[f].ownerDocument.createElement("tbody")):this[f]:this[f],
|
|
e.cacheable||j>1&&f<m?c.clone(g,true,true):g)}i.length&&c.each(i,gb)}return this}});c.buildFragment=function(a,b,d){var e,f,g,h,i=a[0];b&&b[0]&&(h=b[0].ownerDocument||b[0]);h.createDocumentFragment||(h=k);if(a.length===1&&typeof i==="string"&&i.length<512&&h===k&&i.charAt(0)==="<"&&!Ib.test(i)&&(c.support.checkClone||!Ra.test(i))&&(c.support.html5Clone||!Qa.test(i)))f=true,(g=c.fragments[i])&&g!==1&&(e=g);e||(e=h.createDocumentFragment(),c.clean(a,h,e,d));f&&(c.fragments[i]=g?e:1);return{fragment:e,
|
|
cacheable:f}};c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var e=[],d=c(d),f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&d.length===1)return d[b](this[0]),this;else{for(var f=0,g=d.length;f<g;f++){var h=(f>0?this.clone(true):this).get();c(d[f])[b](h);e=e.concat(h)}return this.pushStack(e,a,d.selector)}}});c.extend({clone:function(a,b,d){var e,
|
|
f,g;c.support.html5Clone||!Qa.test("<"+a.nodeName)?e=a.cloneNode(true):(e=k.createElement("div"),Sa.appendChild(e),e.innerHTML=a.outerHTML,e=e.firstChild);var h=e;if((!c.support.noCloneEvent||!c.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!c.isXMLDoc(a)){ra(a,h);e=R(a);f=R(h);for(g=0;e[g];++g)f[g]&&ra(e[g],f[g])}if(b&&(qa(a,h),d)){e=R(a);f=R(h);for(g=0;e[g];++g)qa(e[g],f[g])}return h},clean:function(a,b,d,e){b=b||k;typeof b.createElement==="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||
|
|
k);for(var f=[],g,h=0,i;(i=a[h])!=null;h++)if(typeof i==="number"&&(i+=""),i){if(typeof i==="string")if(Gb.test(i)){i=i.replace(Oa,"<$1></$2>");g=(Pa.exec(i)||["",""])[1].toLowerCase();var j=s[g]||s._default,m=j[0],l=b.createElement("div");b===k?Sa.appendChild(l):oa(b).appendChild(l);for(l.innerHTML=j[1]+i+j[2];m--;)l=l.lastChild;if(!c.support.tbody){m=Fb.test(i);j=g==="table"&&!m?l.firstChild&&l.firstChild.childNodes:j[1]==="<table>"&&!m?l.childNodes:[];for(g=j.length-1;g>=0;--g)c.nodeName(j[g],
|
|
"tbody")&&!j[g].childNodes.length&&j[g].parentNode.removeChild(j[g])}!c.support.leadingWhitespace&&ha.test(i)&&l.insertBefore(b.createTextNode(ha.exec(i)[0]),l.firstChild);i=l.childNodes}else i=b.createTextNode(i);var o;if(!c.support.appendChecked)if(i[0]&&typeof(o=i.length)==="number")for(g=0;g<o;g++)ta(i[g]);else ta(i);i.nodeType?f.push(i):f=c.merge(f,i)}if(d){a=function(a){return!a.type||Jb.test(a.type)};for(h=0;f[h];h++)e&&c.nodeName(f[h],"script")&&(!f[h].type||f[h].type.toLowerCase()==="text/javascript")?
|
|
e.push(f[h].parentNode?f[h].parentNode.removeChild(f[h]):f[h]):(f[h].nodeType===1&&(b=c.grep(f[h].getElementsByTagName("script"),a),f.splice.apply(f,[h+1,0].concat(b))),d.appendChild(f[h]))}return f},cleanData:function(a){for(var b,d,e=c.cache,f=c.event.special,g=c.support.deleteExpando,h=0,i;(i=a[h])!=null;h++)if(!i.nodeName||!c.noData[i.nodeName.toLowerCase()])if(d=i[c.expando]){if((b=e[d])&&b.events){for(var j in b.events)f[j]?c.event.remove(i,j):c.removeEvent(i,j,b.handle);if(b.handle)b.handle.elem=
|
|
null}g?delete i[c.expando]:i.removeAttribute&&i.removeAttribute(c.expando);delete e[d]}}});var ia=/alpha\([^)]*\)/i,Kb=/opacity=([^)]*)/,Lb=/([A-Z]|^ms)/g,Ta=/^-?\d+(?:px)?$/i,Mb=/^-?\d/,Nb=/^([\-+])=([\-+.\de]+)/,Ob={position:"absolute",visibility:"hidden",display:"block"},ib=["Left","Right"],jb=["Top","Bottom"],G,Ua,Va;c.fn.css=function(a,b){return arguments.length===2&&b===l?this:c.access(this,a,b,true,function(a,b,f){return f!==l?c.style(a,b,f):c.css(a,b)})};c.extend({cssHooks:{opacity:{get:function(a,
|
|
b){if(b){var c=G(a,"opacity","opacity");return c===""?"1":c}else return a.style.opacity}}},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":c.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,d,e){if(a&&!(a.nodeType===3||a.nodeType===8||!a.style)){var f,g=c.camelCase(b),h=a.style,i=c.cssHooks[g],b=c.cssProps[g]||g;if(d!==l){e=typeof d;if(e==="string"&&(f=Nb.exec(d)))d=+(f[1]+1)*+f[2]+parseFloat(c.css(a,
|
|
b)),e="number";if(!(d==null||e==="number"&&isNaN(d)))if(e==="number"&&!c.cssNumber[g]&&(d+="px"),!i||!("set"in i)||(d=i.set(a,d))!==l)try{h[b]=d}catch(j){}}else return i&&"get"in i&&(f=i.get(a,false,e))!==l?f:h[b]}},css:function(a,b,d){var e,f,b=c.camelCase(b);f=c.cssHooks[b];b=c.cssProps[b]||b;b==="cssFloat"&&(b="float");if(f&&"get"in f&&(e=f.get(a,true,d))!==l)return e;else if(G)return G(a,b)},swap:function(a,b,c){var e={},f;for(f in b)e[f]=a.style[f],a.style[f]=b[f];c.call(a);for(f in b)a.style[f]=
|
|
e[f]}});c.curCSS=c.css;c.each(["height","width"],function(a,b){c.cssHooks[b]={get:function(a,e,f){var g;if(e){if(a.offsetWidth!==0)return ua(a,b,f);else c.swap(a,Ob,function(){g=ua(a,b,f)});return g}},set:function(a,b){if(Ta.test(b)){if(b=parseFloat(b),b>=0)return b+"px"}else return b}}});if(!c.support.opacity)c.cssHooks.opacity={get:function(a,b){return Kb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var d=a.style,e=a.currentStyle,
|
|
f=c.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=e&&e.filter||d.filter||"";d.zoom=1;if(b>=1&&c.trim(g.replace(ia,""))===""&&(d.removeAttribute("filter"),e&&!e.filter))return;d.filter=ia.test(g)?g.replace(ia,f):g+" "+f}};c(function(){if(!c.support.reliableMarginRight)c.cssHooks.marginRight={get:function(a,b){var d;c.swap(a,{display:"inline-block"},function(){d=b?G(a,"margin-right","marginRight"):a.style.marginRight});return d}}});k.defaultView&&k.defaultView.getComputedStyle&&(Ua=function(a,b){var d,
|
|
e,f,b=b.replace(Lb,"-$1").toLowerCase();if((e=a.ownerDocument.defaultView)&&(f=e.getComputedStyle(a,null)))d=f.getPropertyValue(b),d===""&&!c.contains(a.ownerDocument.documentElement,a)&&(d=c.style(a,b));return d});k.documentElement.currentStyle&&(Va=function(a,b){var c,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;if(f===null&&g&&(c=g[b]))f=c;if(!Ta.test(f)&&Mb.test(f)){c=g.left;if(e=a.runtimeStyle&&a.runtimeStyle.left)a.runtimeStyle.left=a.currentStyle.left;g.left=b==="fontSize"?"1em":f||0;f=
|
|
g.pixelLeft+"px";g.left=c;if(e)a.runtimeStyle.left=e}return f===""?"auto":f});G=Ua||Va;if(c.expr&&c.expr.filters)c.expr.filters.hidden=function(a){var b=a.offsetHeight;return a.offsetWidth===0&&b===0||!c.support.reliableHiddenOffsets&&(a.style&&a.style.display||c.css(a,"display"))==="none"},c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)};var Pb=/%20/g,kb=/\[\]$/,Wa=/\r?\n/g,Qb=/#.*$/,Rb=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Sb=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
|
|
Tb=/^(?:GET|HEAD)$/,Ub=/^\/\//,Xa=/\?/,Vb=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,Wb=/^(?:select|textarea)/i,wa=/\s+/,Xb=/([?&])_=[^&]*/,Ya=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,Za=c.fn.load,$={},$a={},I,J,ab=["*/"]+["*"];try{I=nb.href}catch(cc){I=k.createElement("a"),I.href="",I=I.href}J=Ya.exec(I.toLowerCase())||[];c.fn.extend({load:function(a,b,d){if(typeof a!=="string"&&Za)return Za.apply(this,arguments);else if(!this.length)return this;var e=a.indexOf(" ");if(e>=0)var f=
|
|
a.slice(e,a.length),a=a.slice(0,e);e="GET";b&&(c.isFunction(b)?(d=b,b=l):typeof b==="object"&&(b=c.param(b,c.ajaxSettings.traditional),e="POST"));var g=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(a,b,e){e=a.responseText;a.isResolved()&&(a.done(function(a){e=a}),g.html(f?c("<div>").append(e.replace(Vb,"")).find(f):e));d&&g.each(d,[e,b,a])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?
|
|
c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Wb.test(this.nodeName)||Sb.test(this.type))}).map(function(a,b){var d=c(this).val();return d==null?null:c.isArray(d)?c.map(d,function(a){return{name:b.name,value:a.replace(Wa,"\r\n")}}):{name:b.name,value:d.replace(Wa,"\r\n")}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(a){return this.on(b,a)}});c.each(["get","post"],
|
|
function(a,b){c[b]=function(a,e,f,g){c.isFunction(e)&&(g=g||f,f=e,e=l);return c.ajax({type:b,url:a,data:e,success:f,dataType:g})}});c.extend({getScript:function(a,b){return c.get(a,l,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},ajaxSetup:function(a,b){b?xa(a,c.ajaxSettings):(b=a,a=c.ajaxSettings);xa(a,b);return a},ajaxSettings:{url:I,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(J[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded",
|
|
processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":ab},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":p.String,"text html":true,"text json":c.parseJSON,"text xml":c.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:va($),ajaxTransport:va($a),ajax:function(a,b){function d(a,b,d,k){if(w!==2){w=2;t&&clearTimeout(t);s=l;
|
|
p=k||"";q.readyState=a>0?4:0;var o,n,u,k=b;if(d){var r=e,v=q,B=r.contents,x=r.dataTypes,F=r.responseFields,C,z,N,I;for(z in F)z in d&&(v[F[z]]=d[z]);for(;x[0]==="*";)x.shift(),C===l&&(C=r.mimeType||v.getResponseHeader("content-type"));if(C)for(z in B)if(B[z]&&B[z].test(C)){x.unshift(z);break}if(x[0]in d)N=x[0];else{for(z in d){if(!x[0]||r.converters[z+" "+x[0]]){N=z;break}I||(I=z)}N=N||I}N?(N!==x[0]&&x.unshift(N),d=d[N]):d=void 0}else d=l;if(a>=200&&a<300||a===304){if(e.ifModified){if(C=q.getResponseHeader("Last-Modified"))c.lastModified[m]=
|
|
C;if(C=q.getResponseHeader("Etag"))c.etag[m]=C}if(a===304)k="notmodified",o=true;else try{C=e;C.dataFilter&&(d=C.dataFilter(d,C.dataType));var J=C.dataTypes;z={};var E,G,M=J.length,H,O=J[0],D,L,P,Q,S;for(E=1;E<M;E++){if(E===1)for(G in C.converters)typeof G==="string"&&(z[G.toLowerCase()]=C.converters[G]);D=O;O=J[E];if(O==="*")O=D;else if(D!=="*"&&D!==O){L=D+" "+O;P=z[L]||z["* "+O];if(!P)for(Q in S=l,z)if(H=Q.split(" "),H[0]===D||H[0]==="*")if(S=z[H[1]+" "+O]){Q=z[Q];Q===true?P=S:S===true&&(P=Q);break}!P&&
|
|
!S&&c.error("No conversion from "+L.replace(" "," to "));P!==true&&(d=P?P(d):S(Q(d)))}}n=d;k="success";o=true}catch(R){k="parsererror",u=R}}else if(u=k,!k||a)k="error",a<0&&(a=0);q.status=a;q.statusText=""+(b||k);o?h.resolveWith(f,[n,k,q]):h.rejectWith(f,[q,k,u]);q.statusCode(j);j=l;A&&g.trigger("ajax"+(o?"Success":"Error"),[q,e,o?n:u]);i.fireWith(f,[q,k]);A&&(g.trigger("ajaxComplete",[q,e]),--c.active||c.event.trigger("ajaxStop"))}}typeof a==="object"&&(b=a,a=l);var b=b||{},e=c.ajaxSetup({},b),f=
|
|
e.context||e,g=f!==e&&(f.nodeType||f instanceof c)?c(f):c.event,h=c.Deferred(),i=c.Callbacks("once memory"),j=e.statusCode||{},m,k={},o={},p,n,s,t,v,w=0,A,B,q={readyState:0,setRequestHeader:function(a,b){if(!w){var c=a.toLowerCase(),a=o[c]=o[c]||a;k[a]=b}return this},getAllResponseHeaders:function(){return w===2?p:null},getResponseHeader:function(a){var b;if(w===2){if(!n)for(n={};b=Rb.exec(p);)n[b[1].toLowerCase()]=b[2];b=n[a.toLowerCase()]}return b===l?null:b},overrideMimeType:function(a){if(!w)e.mimeType=
|
|
a;return this},abort:function(a){a=a||"abort";s&&s.abort(a);d(0,a);return this}};h.promise(q);q.success=q.done;q.error=q.fail;q.complete=i.add;q.statusCode=function(a){if(a){var b;if(w<2)for(b in a)j[b]=[j[b],a[b]];else b=a[q.status],q.then(b,b)}return this};e.url=((a||e.url)+"").replace(Qb,"").replace(Ub,J[1]+"//");e.dataTypes=c.trim(e.dataType||"*").toLowerCase().split(wa);if(e.crossDomain==null)v=Ya.exec(e.url.toLowerCase()),e.crossDomain=!(!v||!(v[1]!=J[1]||v[2]!=J[2]||(v[3]||(v[1]==="http:"?
|
|
80:443))!=(J[3]||(J[1]==="http:"?80:443))));if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);U($,e,b,q);if(w===2)return false;A=e.global;e.type=e.type.toUpperCase();e.hasContent=!Tb.test(e.type);A&&c.active++===0&&c.event.trigger("ajaxStart");if(!e.hasContent&&(e.data&&(e.url+=(Xa.test(e.url)?"&":"?")+e.data,delete e.data),m=e.url,e.cache===false)){v=c.now();var x=e.url.replace(Xb,"$1_="+v);e.url=x+(x===e.url?(Xa.test(e.url)?"&":"?")+"_="+v:"")}(e.data&&e.hasContent&&
|
|
e.contentType!==false||b.contentType)&&q.setRequestHeader("Content-Type",e.contentType);e.ifModified&&(m=m||e.url,c.lastModified[m]&&q.setRequestHeader("If-Modified-Since",c.lastModified[m]),c.etag[m]&&q.setRequestHeader("If-None-Match",c.etag[m]));q.setRequestHeader("Accept",e.dataTypes[0]&&e.accepts[e.dataTypes[0]]?e.accepts[e.dataTypes[0]]+(e.dataTypes[0]!=="*"?", "+ab+"; q=0.01":""):e.accepts["*"]);for(B in e.headers)q.setRequestHeader(B,e.headers[B]);if(e.beforeSend&&(e.beforeSend.call(f,q,e)===
|
|
false||w===2))return q.abort(),false;for(B in{success:1,error:1,complete:1})q[B](e[B]);if(s=U($a,e,b,q)){q.readyState=1;A&&g.trigger("ajaxSend",[q,e]);e.async&&e.timeout>0&&(t=setTimeout(function(){q.abort("timeout")},e.timeout));try{w=1,s.send(k,d)}catch(r){if(w<2)d(-1,r);else throw r;}}else d(-1,"No Transport");return q},param:function(a,b){var d=[],e=function(a,b){b=c.isFunction(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(b===l)b=c.ajaxSettings.traditional;if(c.isArray(a)||
|
|
a.jquery&&!c.isPlainObject(a))c.each(a,function(){e(this.name,this.value)});else for(var f in a)aa(f,a[f],b,e);return d.join("&").replace(Pb,"+")}});c.extend({active:0,lastModified:{},etag:{}});var Yb=c.now(),X=/(\=)\?(&|$)|\?\?/i;c.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return c.expando+"_"+Yb++}});c.ajaxPrefilter("json jsonp",function(a,b,d){b=a.contentType==="application/x-www-form-urlencoded"&&typeof a.data==="string";if(a.dataTypes[0]==="jsonp"||a.jsonp!==false&&(X.test(a.url)||
|
|
b&&X.test(a.data))){var e,f=a.jsonpCallback=c.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,g=p[f],h=a.url,i=a.data,j="$1"+f+"$2";a.jsonp!==false&&(h=h.replace(X,j),a.url===h&&(b&&(i=i.replace(X,j)),a.data===i&&(h+=(/\?/.test(h)?"&":"?")+a.jsonp+"="+f)));a.url=h;a.data=i;p[f]=function(a){e=[a]};d.always(function(){p[f]=g;if(e&&c.isFunction(g))p[f](e[0])});a.converters["script json"]=function(){e||c.error(f+" was not called");return e[0]};a.dataTypes[0]="json";return"script"}});c.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},
|
|
contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){c.globalEval(a);return a}}});c.ajaxPrefilter("script",function(a){if(a.cache===l)a.cache=false;if(a.crossDomain)a.type="GET",a.global=false});c.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=k.head||k.getElementsByTagName("head")[0]||k.documentElement;return{send:function(e,f){b=k.createElement("script");b.async="async";if(a.scriptCharset)b.charset=a.scriptCharset;b.src=a.url;b.onload=b.onreadystatechange=
|
|
function(a,e){if(e||!b.readyState||/loaded|complete/.test(b.readyState))b.onload=b.onreadystatechange=null,c&&b.parentNode&&c.removeChild(b),b=l,e||f(200,"success")};c.insertBefore(b,c.firstChild)},abort:function(){if(b)b.onload(0,1)}}}});var ja=p.ActiveXObject?function(){for(var a in D)D[a](0,1)}:false,Zb=0,D;c.ajaxSettings.xhr=p.ActiveXObject?function(){var a;if(!(a=!this.isLocal&&ya()))a:{try{a=new p.ActiveXObject("Microsoft.XMLHTTP");break a}catch(b){}a=void 0}return a}:ya;(function(a){c.extend(c.support,
|
|
{ajax:!!a,cors:!!a&&"withCredentials"in a})})(c.ajaxSettings.xhr());c.support.ajax&&c.ajaxTransport(function(a){if(!a.crossDomain||c.support.cors){var b;return{send:function(d,e){var f=a.xhr(),g,h;a.username?f.open(a.type,a.url,a.async,a.username,a.password):f.open(a.type,a.url,a.async);if(a.xhrFields)for(h in a.xhrFields)f[h]=a.xhrFields[h];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType);!a.crossDomain&&!d["X-Requested-With"]&&(d["X-Requested-With"]="XMLHttpRequest");try{for(h in d)f.setRequestHeader(h,
|
|
d[h])}catch(i){}f.send(a.hasContent&&a.data||null);b=function(d,h){var i,k,p,n,s;try{if(b&&(h||f.readyState===4)){b=l;if(g)f.onreadystatechange=c.noop,ja&&delete D[g];if(h)f.readyState!==4&&f.abort();else{i=f.status;p=f.getAllResponseHeaders();n={};if((s=f.responseXML)&&s.documentElement)n.xml=s;n.text=f.responseText;try{k=f.statusText}catch(t){k=""}!i&&a.isLocal&&!a.crossDomain?i=n.text?200:404:i===1223&&(i=204)}}}catch(v){h||e(-1,v)}n&&e(i,k,n,p)};!a.async||f.readyState===4?b():(g=++Zb,ja&&(D||
|
|
(D={},c(p).unload(ja)),D[g]=b),f.onreadystatechange=b)},abort:function(){b&&b(0,1)}}}});var ba={},A,H,$b=/^(?:toggle|show|hide)$/,ac=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,Y,Aa=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],V;c.fn.extend({show:function(a,b,d){if(a||a===0)return this.animate(M("show",3),a,b,d);else{for(var d=0,e=this.length;d<e;d++)if(a=this[d],a.style){b=a.style.display;if(!c._data(a,"olddisplay")&&
|
|
b==="none")b=a.style.display="";b===""&&c.css(a,"display")==="none"&&c._data(a,"olddisplay",Ba(a.nodeName))}for(d=0;d<e;d++)if(a=this[d],a.style&&(b=a.style.display,b===""||b==="none"))a.style.display=c._data(a,"olddisplay")||"";return this}},hide:function(a,b,d){if(a||a===0)return this.animate(M("hide",3),a,b,d);else{for(var d=0,e=this.length;d<e;d++)a=this[d],a.style&&(b=c.css(a,"display"),b!=="none"&&!c._data(a,"olddisplay")&&c._data(a,"olddisplay",b));for(d=0;d<e;d++)if(this[d].style)this[d].style.display=
|
|
"none";return this}},_toggle:c.fn.toggle,toggle:function(a,b,d){var e=typeof a==="boolean";c.isFunction(a)&&c.isFunction(b)?this._toggle.apply(this,arguments):a==null||e?this.each(function(){var b=e?a:c(this).is(":hidden");c(this)[b?"show":"hide"]()}):this.animate(M("toggle",3),a,b,d);return this},fadeTo:function(a,b,c,e){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,e)},animate:function(a,b,d,e){function f(){var h;g.queue===false&&c._mark(this);var b=c.extend({},
|
|
g),d=this.nodeType===1,e=d&&c(this).is(":hidden"),f,k,l,p,n;b.animatedProperties={};for(l in a){f=c.camelCase(l);l!==f&&(a[f]=a[l],delete a[l]);k=a[f];c.isArray(k)?(b.animatedProperties[f]=k[1],h=a[f]=k[0],k=h):b.animatedProperties[f]=b.specialEasing&&b.specialEasing[f]||b.easing||"swing";if(k==="hide"&&e||k==="show"&&!e)return b.complete.call(this);if(d&&(f==="height"||f==="width"))if(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],c.css(this,"display")==="inline"&&c.css(this,
|
|
"float")==="none")!c.support.inlineBlockNeedsLayout||Ba(this.nodeName)==="inline"?this.style.display="inline-block":this.style.zoom=1}if(b.overflow!=null)this.style.overflow="hidden";for(l in a)if(d=new c.fx(this,b,l),k=a[l],$b.test(k))if(f=c._data(this,"toggle"+l)||(k==="toggle"?e?"show":"hide":0))c._data(this,"toggle"+l,f==="show"?"hide":"show"),d[f]();else d[k]();else f=ac.exec(k),p=d.cur(),f?(k=parseFloat(f[2]),n=f[3]||(c.cssNumber[l]?"":"px"),n!=="px"&&(c.style(this,l,(k||1)+n),p*=(k||1)/d.cur(),
|
|
c.style(this,l,p+n)),f[1]&&(k=(f[1]==="-="?-1:1)*k+p),d.custom(p,k,n)):d.custom(p,k,"");return true}var g=c.speed(b,d,e);if(c.isEmptyObject(a))return this.each(g.complete,[false]);a=c.extend({},a);return g.queue===false?this.each(f):this.queue(g.queue,f)},stop:function(a,b,d){typeof a!=="string"&&(d=b,b=a,a=l);b&&a!==false&&this.queue(a||"fx",[]);return this.each(function(){var b,f=false,g=c.timers,h=c._data(this);d||c._unmark(true,this);if(a==null)for(b in h){if(h[b]&&h[b].stop&&b.indexOf(".run")===
|
|
b.length-4){var i=h[b];c.removeData(this,b,true);i.stop(d)}}else if(h[b=a+".run"]&&h[b].stop)h=h[b],c.removeData(this,b,true),h.stop(d);for(b=g.length;b--;)if(g[b].elem===this&&(a==null||g[b].queue===a)){if(d)g[b](true);else g[b].saveState();f=true;g.splice(b,1)}(!d||!f)&&c.dequeue(this,a)})}});c.each({slideDown:M("show",1),slideUp:M("hide",1),slideToggle:M("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){c.fn[a]=function(a,c,f){return this.animate(b,
|
|
a,c,f)}});c.extend({speed:function(a,b,d){var e=a&&typeof a==="object"?c.extend({},a):{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};e.duration=c.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in c.fx.speeds?c.fx.speeds[e.duration]:c.fx.speeds._default;if(e.queue==null||e.queue===true)e.queue="fx";e.old=e.complete;e.complete=function(a){c.isFunction(e.old)&&e.old.call(this);e.queue?c.dequeue(this,e.queue):a!==false&&c._unmark(this)};return e},easing:{linear:function(a,
|
|
b,c,e){return c+e*a},swing:function(a,b,c,e){return(-Math.cos(a*Math.PI)/2+0.5)*e+c}},timers:[],fx:function(a,b,c){this.options=b;this.elem=a;this.prop=c;b.orig=b.orig||{}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=c.css(this.elem,this.prop);return isNaN(a=
|
|
parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,d){function e(a){return f.step(a)}var f=this,g=c.fx;this.startTime=V||za();this.end=b;this.now=this.start=a;this.pos=this.state=0;this.unit=d||this.unit||(c.cssNumber[this.prop]?"":"px");e.queue=this.options.queue;e.elem=this.elem;e.saveState=function(){f.options.hide&&c._data(f.elem,"fxshow"+f.prop)===l&&c._data(f.elem,"fxshow"+f.prop,f.start)};e()&&c.timers.push(e)&&!Y&&(Y=setInterval(g.tick,g.interval))},show:function(){var a=c._data(this.elem,
|
|
"fxshow"+this.prop);this.options.orig[this.prop]=a||c.style(this.elem,this.prop);this.options.show=true;a!==l?this.custom(this.cur(),a):this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c._data(this.elem,"fxshow"+this.prop)||c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b,d=V||za(),e=true,f=this.elem,g=this.options;if(a||d>=g.duration+this.startTime){this.now=
|
|
this.end;this.pos=this.state=1;this.update();g.animatedProperties[this.prop]=true;for(b in g.animatedProperties)g.animatedProperties[b]!==true&&(e=false);if(e){g.overflow!=null&&!c.support.shrinkWrapBlocks&&c.each(["","X","Y"],function(a,b){f.style["overflow"+b]=g.overflow[a]});g.hide&&c(f).hide();if(g.hide||g.show)for(b in g.animatedProperties)c.style(f,b,g.orig[b]),c.removeData(f,"fxshow"+b,true),c.removeData(f,"toggle"+b,true);if(a=g.complete)g.complete=false,a.call(f)}return false}else g.duration==
|
|
Infinity?this.now=d:(a=d-this.startTime,this.state=a/g.duration,this.pos=c.easing[g.animatedProperties[this.prop]](this.state,a,0,1,g.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return true}};c.extend(c.fx,{tick:function(){for(var a,b=c.timers,d=0;d<b.length;d++)a=b[d],!a()&&b[d]===a&&b.splice(d--,1);b.length||c.fx.stop()},interval:13,stop:function(){clearInterval(Y);Y=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",
|
|
a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=a.now+a.unit:a.elem[a.prop]=a.now}}});c.each(["width","height"],function(a,b){c.fx.step[b]=function(a){c.style(a.elem,b,Math.max(0,a.now)+a.unit)}});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length};var bc=/^t(?:able|d|h)$/i,bb=/^(?:body|html)$/i;c.fn.offset="getBoundingClientRect"in k.documentElement?function(a){var b=this[0],d;if(a)return this.each(function(b){c.offset.setOffset(this,
|
|
a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);try{d=b.getBoundingClientRect()}catch(e){}var f=b.ownerDocument,g=f.documentElement;if(!d||!c.contains(g,b))return d?{top:d.top,left:d.left}:{top:0,left:0};b=f.body;f=ca(f);return{top:d.top+(f.pageYOffset||c.support.boxModel&&g.scrollTop||b.scrollTop)-(g.clientTop||b.clientTop||0),left:d.left+(f.pageXOffset||c.support.boxModel&&g.scrollLeft||b.scrollLeft)-(g.clientLeft||b.clientLeft||0)}}:function(a){var b=
|
|
this[0];if(a)return this.each(function(b){c.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);var d,e=b.offsetParent,f=b.ownerDocument,g=f.documentElement,h=f.body;d=(f=f.defaultView)?f.getComputedStyle(b,null):b.currentStyle;for(var i=b.offsetTop,j=b.offsetLeft;(b=b.parentNode)&&b!==h&&b!==g;){if(c.support.fixedPosition&&d.position==="fixed")break;d=f?f.getComputedStyle(b,null):b.currentStyle;i-=b.scrollTop;j-=b.scrollLeft;
|
|
if(b===e){i+=b.offsetTop;j+=b.offsetLeft;if(c.support.doesNotAddBorder&&(!c.support.doesAddBorderForTableAndCells||!bc.test(b.nodeName)))i+=parseFloat(d.borderTopWidth)||0,j+=parseFloat(d.borderLeftWidth)||0;e=b.offsetParent}c.support.subtractsBorderForOverflowNotVisible&&d.overflow!=="visible"&&(i+=parseFloat(d.borderTopWidth)||0,j+=parseFloat(d.borderLeftWidth)||0)}if(d.position==="relative"||d.position==="static")i+=h.offsetTop,j+=h.offsetLeft;c.support.fixedPosition&&d.position==="fixed"&&(i+=
|
|
Math.max(g.scrollTop,h.scrollTop),j+=Math.max(g.scrollLeft,h.scrollLeft));return{top:i,left:j}};c.offset={bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.support.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(c.css(a,"marginTop"))||0,d+=parseFloat(c.css(a,"marginLeft"))||0);return{top:b,left:d}},setOffset:function(a,b,d){var e=c.css(a,"position");if(e==="static")a.style.position="relative";var f=c(a),g=f.offset(),h=c.css(a,"top"),i=c.css(a,"left"),j={},k={};(e==="absolute"||e==="fixed")&&
|
|
c.inArray("auto",[h,i])>-1?(k=f.position(),e=k.top,i=k.left):(e=parseFloat(h)||0,i=parseFloat(i)||0);c.isFunction(b)&&(b=b.call(a,d,g));if(b.top!=null)j.top=b.top-g.top+e;if(b.left!=null)j.left=b.left-g.left+i;"using"in b?b.using.call(a,j):f.css(j)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),e=bb.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.css(a,"marginTop"))||0;d.left-=parseFloat(c.css(a,"marginLeft"))||0;e.top+=
|
|
parseFloat(c.css(b[0],"borderTopWidth"))||0;e.left+=parseFloat(c.css(b[0],"borderLeftWidth"))||0;return{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||k.body;a&&!bb.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(b){var f,g;if(b===l){f=this[0];return!f?null:(g=ca(f))?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&
|
|
g.document.documentElement[d]||g.document.body[d]:f[d]}return this.each(function(){(g=ca(this))?g.scrollTo(!a?b:c(g).scrollLeft(),a?b:c(g).scrollTop()):this[d]=b})}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){var a=this[0];return a?a.style?parseFloat(c.css(a,d,"padding")):this[d]():null};c.fn["outer"+b]=function(a){var b=this[0];return b?b.style?parseFloat(c.css(b,d,a?"margin":"border")):this[d]():null};c.fn[d]=function(a){var f=this[0];if(!f)return a==
|
|
null?null:this;if(c.isFunction(a))return this.each(function(b){var f=c(this);f[d](a.call(this,b,f[d]()))});if(c.isWindow(f)){var g=f.document.documentElement["client"+b],h=f.document.body;return f.document.compatMode==="CSS1Compat"&&g||h&&h["client"+b]||g}else return f.nodeType===9?Math.max(f.documentElement["client"+b],f.body["scroll"+b],f.documentElement["scroll"+b],f.body["offset"+b],f.documentElement["offset"+b]):a===l?(f=c.css(f,d),g=parseFloat(f),c.isNumeric(g)?g:f):this.css(d,typeof a==="string"?
|
|
a:a+"px")}});p.jQuery=p.$=c;typeof define==="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return c})})(window);
|