jquery.1.10.2.min.js 173 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295
  1. /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.min.map */(function(e, t) {var n, r, i = typeof t, o = e.location, a = e.document, s = a.documentElement, l = e.jQuery, u = e.$, c = {}, p = [], f = "1.10.2", d = p.concat, h = p.push, g = p.slice, m = p.indexOf, y = c.toString, v = c.hasOwnProperty, b = f.trim, x = function(e, t) {return new x.fn.init(e,t,r)}, w = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, T = /\S+/g, C = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, N = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, k = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, E = /^[\],:{}\s]*$/, S = /(?:^|:|,)(?:\s*\[)+/g, A = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g, j = /"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g, D = /^-ms-/, L = /-([\da-z])/gi, H = function(e, t) {return t.toUpperCase()}, q = function(e) {(a.addEventListener || "load" === e.type || "complete" === a.readyState) && (_(), x.ready())}, _ = function() {a.addEventListener ? (a.removeEventListener("DOMContentLoaded", q, !1), e.removeEventListener("load", q, !1)) : (a.detachEvent("onreadystatechange", q), e.detachEvent("onload", q))};x.fn = x.prototype = {jquery: f, constructor: x, init: function(e, n, r) {var i, o;if (!e) return this;if ("string" == typeof e) {if (i = "<" === e.charAt(0) && ">" === e.charAt(e.length - 1) && e.length >= 3 ? [null, e, null] : N.exec(e), !i || !i[1] && n) return !n || n.jquery ? (n || r).find(e) : this.constructor(n).find(e);if (i[1]) {if (n = n instanceof x ? n[0] : n, x.merge(this, x.parseHTML(i[1], n && n.nodeType ? n.ownerDocument || n : a, !0)), k.test(i[1]) && x.isPlainObject(n)) for (i in n) x.isFunction(this[i]) ? this[i](n[i]) : this.attr(i, n[i]);return this}if (o = a.getElementById(i[2]), o && o.parentNode) {if (o.id !== i[2]) return r.find(e);this.length = 1, this[0] = o}return this.context = a, this.selector = e, this}return e.nodeType ? (this.context = this[0] = e, this.length = 1, this) : x.isFunction(e) ? r.ready(e) : (e.selector !== t && (this.selector = e.selector, this.context = e.context), x.makeArray(e, this))}, selector: "", length: 0, toArray: function() {return g.call(this)}, get: function(e) {return null == e ? this.toArray() : 0 > e ? this[this.length + e] : this[e]}, pushStack: function(e) {var t = x.merge(this.constructor(), e);return t.prevObject = this, t.context = this.context, t}, each: function(e, t) {return x.each(this, e, t)}, ready: function(e) {return x.ready.promise().done(e), this}, slice: function() {return this.pushStack(g.apply(this, arguments))}, first: function() {return this.eq(0)}, last: function() {return this.eq(-1)}, eq: function(e) {var t = this.length, n = +e + (0 > e ? t : 0);return this.pushStack(n >= 0 && t > n ? [this[n]] : [])}, map: function(e) {return this.pushStack(x.map(this, function(t, n) {return e.call(t, n, t)}))}, end: function() {return this.prevObject || this.constructor(null)}, push: h, sort: [].sort, splice: [].splice}, x.fn.init.prototype = x.fn, x.extend = x.fn.extend = function() {var e, n, r, i, o, a, s = arguments[0] || {}, l = 1, u = arguments.length, c = !1;for ("boolean" == typeof s && (c = s, s = arguments[1] || {}, l = 2), "object" == typeof s || x.isFunction(s) || (s = {}), u === l && (s = this, --l); u > l; l++) if (null != (o = arguments[l])) for (i in o) e = s[i], r = o[i], s !== r && (c && r && (x.isPlainObject(r) || (n = x.isArray(r))) ? (n ? (n = !1, a = e && x.isArray(e) ? e : []) : a = e && x.isPlainObject(e) ? e : {}, s[i] = x.extend(c, a, r)) : r !== t && (s[i] = r));return s} , x.extend({expando: "jQuery" + (f + Math.random()).replace(/\D/g, ""), noConflict: function(t) {return e.$ === x && (e.$ = u), t && e.jQuery === x && (e.jQuery = l), x}, isReady: !1, readyWait: 1, holdReady: function(e) {e ? x.readyWait++ : x.ready(!0)}, ready: function(e) {if (e === !0 ? !--x.readyWait : !x.isReady) {if (!a.body) return setTimeout(x.ready);x.isReady = !0, e !== !0 && --x.readyWait > 0 || (n.resolveWith(a, [x]), x.fn.trigger && x(a).trigger("ready").off("ready"))}}, isFunction: function(e) {return "function" === x.type(e)}, isArray: Array.isArray || function(e) {return "array" === x.type(e)}, isWindow: function(e) {return null != e && e == e.window}, isNumeric: function(e) {return !isNaN(parseFloat(e)) && isFinite(e)}, type: function(e) {return null == e ? e + "" : "object" == typeof e || "function" == typeof e ? c[y.call(e)] || "object" : typeof e}, isPlainObject: function(e) {var n;if (!e || "object" !== x.type(e) || e.nodeType || x.isWindow(e)) return !1;try {if (e.constructor && !v.call(e, "constructor") && !v.call(e.constructor.prototype, "isPrototypeOf")) return !1} catch (r) {return !1}if (x.support.ownLast) for (n in e) return v.call(e, n);for (n in e) ;return n === t || v.call(e, n)}, isEmptyObject: function(e) {var t;for (t in e) return !1;return !0}, error: function(e) {throw Error(e)}, parseHTML: function(e, t, n) {if (!e || "string" != typeof e) return null;"boolean" == typeof t && (n = t, t = !1), t = t || a;var r = k.exec(e), i = !n && [];return r ? [t.createElement(r[1])] : (r = x.buildFragment([e], t, i), i && x(i).remove(), x.merge([], r.childNodes))}, parseJSON: function(n) {return e.JSON && e.JSON.parse ? e.JSON.parse(n) : null === n ? n : "string" == typeof n && (n = x.trim(n), n && E.test(n.replace(A, "@").replace(j, "]").replace(S, ""))) ? Function("return " + n)() : (x.error("Invalid JSON: " + n), t)}, parseXML: function(n) {var r, i;if (!n || "string" != typeof n) return null;try {e.DOMParser ? (i = new DOMParser, r = i.parseFromString(n, "text/xml")) : (r = new ActiveXObject("Microsoft.XMLDOM"), r.async = "false", r.loadXML(n))} catch (o) {r = t}return r && r.documentElement && !r.getElementsByTagName("parsererror").length || x.error("Invalid XML: " + n), r}, noop: function() {}, globalEval: function(t) {t && x.trim(t) && (e.execScript || function(t) {e.eval.call(e, t)})(t)}, camelCase: function(e) {return e.replace(D, "ms-").replace(L, H)}, nodeName: function(e, t) {return e.nodeName && e.nodeName.toLowerCase() === t.toLowerCase()}, each: function(e, t, n) {var r, i = 0, o = e.length, a = M(e);if (n) {if (a) {for (; o > i; i++) if (r = t.apply(e[i], n), r === !1) break} else for (i in e) if (r = t.apply(e[i], n), r === !1) break} else if (a) {for (; o > i; i++) if (r = t.call(e[i], i, e[i]), r === !1) break} else for (i in e) if (r = t.call(e[i], i, e[i]), r === !1) break;return e}, trim: b && !b.call("\ufeff\u00a0") ? function(e) {return null == e ? "" : b.call(e)} : function(e) {return null == e ? "" : (e + "").replace(C, "")}, makeArray: function(e, t) {var n = t || [];return null != e && (M(Object(e)) ? x.merge(n, "string" == typeof e ? [e] : e) : h.call(n, e)), n}, inArray: function(e, t, n) {var r;if (t) {if (m) return m.call(t, e, n);for (r = t.length, n = n ? 0 > n ? Math.max(0, r + n) : n : 0; r > n; n++) if (n in t && t[n] === e) return n}return -1}, merge: function(e, n) {var r = n.length, i = e.length, o = 0;if ("number" == typeof r) for (; r > o; o++) e[i++] = n[o]; else while (n[o] !== t) e[i++] = n[o++];return e.length = i, e}, grep: function(e, t, n) {var r, i = [], o = 0, a = e.length;for (n = !!n; a > o; o++) r = !!t(e[o], o), n !== r && i.push(e[o]);return i}, map: function(e, t, n) {var r, i = 0, o = e.length, a = M(e), s = [];if (a) for (; o > i; i++) r = t(e[i], i, n), null != r && (s[s.length] = r); else for (i in e) r = t(e[i], i, n), null != r && (s[s.length] = r);return d.apply([], s)}, guid: 1, proxy: function(e, n) {var r, i, o;return "string" == typeof n && (o = e[n], n = e, e = o), x.isFunction(e) ? (r = g.call(arguments, 2), i = function() {return e.apply(n || this, r.concat(g.call(arguments)))} , i.guid = e.guid = e.guid || x.guid++, i) : t}, access: function(e, n, r, i, o, a, s) {var l = 0, u = e.length, c = null == r;if ("object" === x.type(r)) {o = !0;for (l in r) x.access(e, n, l, r[l], !0, a, s)} else if (i !== t && (o = !0, x.isFunction(i) || (s = !0), c && (s ? (n.call(e, i), n = null) : (c = n, n = function(e, t, n) {return c.call(x(e), n)})), n)) for (; u > l; l++) n(e[l], r, s ? i : i.call(e[l], l, n(e[l], r)));return o ? e : c ? n.call(e) : u ? n(e[0], r) : a}, now: function() {return (new Date).getTime()}, swap: function(e, t, n, r) {var i, o, a = {};for (o in t) a[o] = e.style[o], e.style[o] = t[o];i = n.apply(e, r || []);for (o in t) e.style[o] = a[o];return i}}), x.ready.promise = function(t) {if (!n) if (n = x.Deferred(), "complete" === a.readyState) setTimeout(x.ready); else if (a.addEventListener) a.addEventListener("DOMContentLoaded", q, !1), e.addEventListener("load", q, !1); else {a.attachEvent("onreadystatechange", q), e.attachEvent("onload", q);var r = !1;try {r = null == e.frameElement && a.documentElement} catch (i) {}r && r.doScroll && function o() {if (!x.isReady) {try {r.doScroll("left")} catch (e) {return setTimeout(o, 50)}_(), x.ready()}}()}return n.promise(t)} , x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(e, t) {c["[object " + t + "]"] = t.toLowerCase()});function M(e) {var t = e.length, n = x.type(e);return x.isWindow(e) ? !1 : 1 === e.nodeType && t ? !0 : "array" === n || "function" !== n && (0 === t || "number" == typeof t && t > 0 && t - 1 in e)}r = x(a), function(e, t) {var n, r, i, o, a, s, l, u, c, p, f, d, h, g, m, y, v, b = "sizzle" + -new Date, w = e.document, T = 0, C = 0, N = st(), k = st(), E = st(), S = !1, A = function(e, t) {return e === t ? (S = !0, 0) : 0}, j = typeof t, D = 1 << 31, L = {}.hasOwnProperty, H = [], q = H.pop, _ = H.push, M = H.push, O = H.slice, F = H.indexOf || function(e) {var t = 0, n = this.length;for (; n > t; t++) if (this[t] === e) return t;return -1}, B = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", P = "[\\x20\\t\\r\\n\\f]", R = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", W = R.replace("w", "w#"), $ = "\\[" + P + "*(" + R + ")" + P + "*(?:([*^$|!~]?=)" + P + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + W + ")|)|)" + P + "*\\]", I = ":(" + R + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + $.replace(3, 8) + ")*)|.*)\\)|)", z = RegExp("^" + P + "+|((?:^|[^\\\\])(?:\\\\.)*)" + P + "+$", "g"), X = RegExp("^" + P + "*," + P + "*"), U = RegExp("^" + P + "*([>+~]|" + P + ")" + P + "*"), V = RegExp(P + "*[+~]"), Y = RegExp("=" + P + "*([^\\]'\"]*)" + P + "*\\]", "g"), J = RegExp(I), G = RegExp("^" + W + "$"), Q = {ID: RegExp("^#(" + R + ")"), CLASS: RegExp("^\\.(" + R + ")"), TAG: RegExp("^(" + R.replace("w", "w*") + ")"), ATTR: RegExp("^" + $), PSEUDO: RegExp("^" + I), CHILD: RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + P + "*(even|odd|(([+-]|)(\\d*)n|)" + P + "*(?:([+-]|)" + P + "*(\\d+)|))" + P + "*\\)|)", "i"), bool: RegExp("^(?:" + B + ")$", "i"), needsContext: RegExp("^" + P + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + P + "*((?:-\\d)?\\d*)" + P + "*\\)|)(?=[^-]|$)", "i")}, K = /^[^{]+\{\s*\[native \w/, Z = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, et = /^(?:input|select|textarea|button)$/i, tt = /^h\d$/i, nt = /'|\\/g, rt = RegExp("\\\\([\\da-f]{1,6}" + P + "?|(" + P + ")|.)", "ig"), it = function(e, t, n) {var r = "0x" + t - 65536;return r !== r || n ? t : 0 > r ? String.fromCharCode(r + 65536) : String.fromCharCode(55296 | r >> 10, 56320 | 1023 & r)};try {M.apply(H = O.call(w.childNodes), w.childNodes), H[w.childNodes.length].nodeType} catch (ot) {M = {apply: H.length ? function(e, t) {_.apply(e, O.call(t))} : function(e, t) {var n = e.length, r = 0;while (e[n++] = t[r++]) ;e.length = n - 1}}}function at(e, t, n, i) {var o, a, s, l, u, c, d, m, y, x;if ((t ? t.ownerDocument || t : w) !== f && p(t), t = t || f, n = n || [], !e || "string" != typeof e) return n;if (1 !== (l = t.nodeType) && 9 !== l) return [];if (h && !i) {if (o = Z.exec(e)) if (s = o[1]) {if (9 === l) {if (a = t.getElementById(s), !a || !a.parentNode) return n;if (a.id === s) return n.push(a), n} else if (t.ownerDocument && (a = t.ownerDocument.getElementById(s)) && v(t, a) && a.id === s) return n.push(a), n} else {if (o[2]) return M.apply(n, t.getElementsByTagName(e)), n;if ((s = o[3]) && r.getElementsByClassName && t.getElementsByClassName) return M.apply(n, t.getElementsByClassName(s)), n}if (r.qsa && (!g || !g.test(e))) {if (m = d = b, y = t, x = 9 === l && e, 1 === l && "object" !== t.nodeName.toLowerCase()) {c = mt(e), (d = t.getAttribute("id")) ? m = d.replace(nt, "\\$&") : t.setAttribute("id", m), m = "[id='" + m + "'] ", u = c.length;while (u--) c[u] = m + yt(c[u]);y = V.test(e) && t.parentNode || t, x = c.join(",")}if (x) try {return M.apply(n, y.querySelectorAll(x)), n} catch (T) {} finally {d || t.removeAttribute("id")}}}return kt(e.replace(z, "$1"), t, n, i)}function st() {var e = [];function t(n, r) {return e.push(n += " ") > o.cacheLength && delete t[e.shift()], t[n] = r}return t}function lt(e) {return e[b] = !0, e}function ut(e) {var t = f.createElement("div");try {return !!e(t)} catch (n) {return !1} finally {t.parentNode && t.parentNode.removeChild(t), t = null}}function ct(e, t) {var n = e.split("|"), r = e.length;while (r--) o.attrHandle[n[r]] = t}function pt(e, t) {var n = t && e, r = n && 1 === e.nodeType && 1 === t.nodeType && (~t.sourceIndex || D) - (~e.sourceIndex || D);if (r) return r;if (n) while (n = n.nextSibling) if (n === t) return -1;return e ? 1 : -1}function ft(e) {return function(t) {var n = t.nodeName.toLowerCase();return "input" === n && t.type === e}}function dt(e) {return function(t) {var n = t.nodeName.toLowerCase();return ("input" === n || "button" === n) && t.type === e}}function ht(e) {return lt(function(t) {return t = +t, lt(function(n, r) {var i, o = e([], n.length, t), a = o.length;while (a--) n[i = o[a]] && (n[i] = !(r[i] = n[i]))})})}s = at.isXML = function(e) {var t = e && (e.ownerDocument || e).documentElement;return t ? "HTML" !== t.nodeName : !1} , r = at.support = {}, p = at.setDocument = function(e) {var n = e ? e.ownerDocument || e : w, i = n.defaultView;return n !== f && 9 === n.nodeType && n.documentElement ? (f = n, d = n.documentElement, h = !s(n), i && i.attachEvent && i !== i.top && i.attachEvent("onbeforeunload", function() {p()}), r.attributes = ut(function(e) {return e.className = "i", !e.getAttribute("className")}), r.getElementsByTagName = ut(function(e) {return e.appendChild(n.createComment("")), !e.getElementsByTagName("*").length}), r.getElementsByClassName = ut(function(e) {return e.innerHTML = "<div class='a'></div><div class='a i'></div>", e.firstChild.className = "i", 2 === e.getElementsByClassName("i").length}), r.getById = ut(function(e) {return d.appendChild(e).id = b, !n.getElementsByName || !n.getElementsByName(b).length}), r.getById ? (o.find.ID = function(e, t) {if (typeof t.getElementById !== j && h) {var n = t.getElementById(e);return n && n.parentNode ? [n] : []}} , o.filter.ID = function(e) {var t = e.replace(rt, it);return function(e) {return e.getAttribute("id") === t}}) : (delete o.find.ID, o.filter.ID = function(e) {var t = e.replace(rt, it);return function(e) {var n = typeof e.getAttributeNode !== j && e.getAttributeNode("id");return n && n.value === t}}), o.find.TAG = r.getElementsByTagName ? function(e, n) {return typeof n.getElementsByTagName !== j ? n.getElementsByTagName(e) : t} : function(e, t) {var n, r = [], i = 0, o = t.getElementsByTagName(e);if ("*" === e) {while (n = o[i++]) 1 === n.nodeType && r.push(n);return r}return o} , o.find.CLASS = r.getElementsByClassName && function(e, n) {return typeof n.getElementsByClassName !== j && h ? n.getElementsByClassName(e) : t} , m = [], g = [], (r.qsa = K.test(n.querySelectorAll)) && (ut(function(e) {e.innerHTML = "<select><option selected=''></option></select>", e.querySelectorAll("[selected]").length || g.push("\\[" + P + "*(?:value|" + B + ")"), e.querySelectorAll(":checked").length || g.push(":checked")}), ut(function(e) {var t = n.createElement("input");t.setAttribute("type", "hidden"), e.appendChild(t).setAttribute("t", ""), e.querySelectorAll("[t^='']").length && g.push("[*^$]=" + P + "*(?:''|\"\")"), e.querySelectorAll(":enabled").length || g.push(":enabled", ":disabled"), e.querySelectorAll("*,:x"), g.push(",.*:")})), (r.matchesSelector = K.test(y = d.webkitMatchesSelector || d.mozMatchesSelector || d.oMatchesSelector || d.msMatchesSelector)) && ut(function(e) {r.disconnectedMatch = y.call(e, "div"), y.call(e, "[s!='']:x"), m.push("!=", I)}), g = g.length && RegExp(g.join("|")), m = m.length && RegExp(m.join("|")), v = K.test(d.contains) || d.compareDocumentPosition ? function(e, t) {var n = 9 === e.nodeType ? e.documentElement : e, r = t && t.parentNode;return e === r || !(!r || 1 !== r.nodeType || !(n.contains ? n.contains(r) : e.compareDocumentPosition && 16 & e.compareDocumentPosition(r)))} : function(e, t) {if (t) while (t = t.parentNode) if (t === e) return !0;return !1} , A = d.compareDocumentPosition ? function(e, t) {if (e === t) return S = !0, 0;var i = t.compareDocumentPosition && e.compareDocumentPosition && e.compareDocumentPosition(t);return i ? 1 & i || !r.sortDetached && t.compareDocumentPosition(e) === i ? e === n || v(w, e) ? -1 : t === n || v(w, t) ? 1 : c ? F.call(c, e) - F.call(c, t) : 0 : 4 & i ? -1 : 1 : e.compareDocumentPosition ? -1 : 1} : function(e, t) {var r, i = 0, o = e.parentNode, a = t.parentNode, s = [e], l = [t];if (e === t) return S = !0, 0;if (!o || !a) return e === n ? -1 : t === n ? 1 : o ? -1 : a ? 1 : c ? F.call(c, e) - F.call(c, t) : 0;if (o === a) return pt(e, t);r = e;while (r = r.parentNode) s.unshift(r);r = t;while (r = r.parentNode) l.unshift(r);while (s[i] === l[i]) i++;return i ? pt(s[i], l[i]) : s[i] === w ? -1 : l[i] === w ? 1 : 0} , n) : f} , at.matches = function(e, t) {return at(e, null, null, t)} , at.matchesSelector = function(e, t) {if ((e.ownerDocument || e) !== f && p(e), t = t.replace(Y, "='$1']"), !(!r.matchesSelector || !h || m && m.test(t) || g && g.test(t))) try {var n = y.call(e, t);if (n || r.disconnectedMatch || e.document && 11 !== e.document.nodeType) return n} catch (i) {}return at(t, f, null, [e]).length > 0} , at.contains = function(e, t) {return (e.ownerDocument || e) !== f && p(e), v(e, t)} , at.attr = function(e, n) {(e.ownerDocument || e) !== f && p(e);var i = o.attrHandle[n.toLowerCase()], a = i && L.call(o.attrHandle, n.toLowerCase()) ? i(e, n, !h) : t;return a === t ? r.attributes || !h ? e.getAttribute(n) : (a = e.getAttributeNode(n)) && a.specified ? a.value : null : a} , at.error = function(e) {throw Error("Syntax error, unrecognized expression: " + e)} , at.uniqueSort = function(e) {var t, n = [], i = 0, o = 0;if (S = !r.detectDuplicates, c = !r.sortStable && e.slice(0), e.sort(A), S) {while (t = e[o++]) t === e[o] && (i = n.push(o));while (i--) e.splice(n[i], 1)}return e} , a = at.getText = function(e) {var t, n = "", r = 0, i = e.nodeType;if (i) {if (1 === i || 9 === i || 11 === i) {if ("string" == typeof e.textContent) return e.textContent;for (e = e.firstChild; e; e = e.nextSibling) n += a(e)} else if (3 === i || 4 === i) return e.nodeValue} else for (; t = e[r]; r++) n += a(t);return n} , o = at.selectors = {cacheLength: 50, createPseudo: lt, match: Q, attrHandle: {}, find: {}, relative: {">": {dir: "parentNode", first: !0}, " ": {dir: "parentNode"}, "+": {dir: "previousSibling", first: !0}, "~": {dir: "previousSibling"}}, preFilter: {ATTR: function(e) {return e[1] = e[1].replace(rt, it), e[3] = (e[4] || e[5] || "").replace(rt, it), "~=" === e[2] && (e[3] = " " + e[3] + " "), e.slice(0, 4)}, CHILD: function(e) {return e[1] = e[1].toLowerCase(), "nth" === e[1].slice(0, 3) ? (e[3] || at.error(e[0]), e[4] = +(e[4] ? e[5] + (e[6] || 1) : 2 * ("even" === e[3] || "odd" === e[3])), e[5] = +(e[7] + e[8] || "odd" === e[3])) : e[3] && at.error(e[0]), e}, PSEUDO: function(e) {var n, r = !e[5] && e[2];return Q.CHILD.test(e[0]) ? null : (e[3] && e[4] !== t ? e[2] = e[4] : r && J.test(r) && (n = mt(r, !0)) && (n = r.indexOf(")", r.length - n) - r.length) && (e[0] = e[0].slice(0, n), e[2] = r.slice(0, n)), e.slice(0, 3))}}, filter: {TAG: function(e) {var t = e.replace(rt, it).toLowerCase();return "*" === e ? function() {return !0} : function(e) {return e.nodeName && e.nodeName.toLowerCase() === t}}, CLASS: function(e) {var t = N[e + " "];return t || (t = RegExp("(^|" + P + ")" + e + "(" + P + "|$)")) && N(e, function(e) {return t.test("string" == typeof e.className && e.className || typeof e.getAttribute !== j && e.getAttribute("class") || "")})}, ATTR: function(e, t, n) {return function(r) {var i = at.attr(r, e);return null == i ? "!=" === t : t ? (i += "", "=" === t ? i === n : "!=" === t ? i !== n : "^=" === t ? n && 0 === i.indexOf(n) : "*=" === t ? n && i.indexOf(n) > -1 : "$=" === t ? n && i.slice(-n.length) === n : "~=" === t ? (" " + i + " ").indexOf(n) > -1 : "|=" === t ? i === n || i.slice(0, n.length + 1) === n + "-" : !1) : !0}}, CHILD: function(e, t, n, r, i) {var o = "nth" !== e.slice(0, 3), a = "last" !== e.slice(-4), s = "of-type" === t;return 1 === r && 0 === i ? function(e) {return !!e.parentNode} : function(t, n, l) {var u, c, p, f, d, h, g = o !== a ? "nextSibling" : "previousSibling", m = t.parentNode, y = s && t.nodeName.toLowerCase(), v = !l && !s;if (m) {if (o) {while (g) {p = t;while (p = p[g]) if (s ? p.nodeName.toLowerCase() === y : 1 === p.nodeType) return !1;h = g = "only" === e && !h && "nextSibling"}return !0}if (h = [a ? m.firstChild : m.lastChild], a && v) {c = m[b] || (m[b] = {}), u = c[e] || [], d = u[0] === T && u[1], f = u[0] === T && u[2], p = d && m.childNodes[d];while (p = ++d && p && p[g] || (f = d = 0) || h.pop()) if (1 === p.nodeType && ++f && p === t) {c[e] = [T, d, f];break}} else if (v && (u = (t[b] || (t[b] = {}))[e]) && u[0] === T) f = u[1]; else while (p = ++d && p && p[g] || (f = d = 0) || h.pop()) if ((s ? p.nodeName.toLowerCase() === y : 1 === p.nodeType) && ++f && (v && ((p[b] || (p[b] = {}))[e] = [T, f]), p === t)) break;return f -= i, f === r || 0 === f % r && f / r >= 0}}}, PSEUDO: function(e, t) {var n, r = o.pseudos[e] || o.setFilters[e.toLowerCase()] || at.error("unsupported pseudo: " + e);return r[b] ? r(t) : r.length > 1 ? (n = [e, e, "", t], o.setFilters.hasOwnProperty(e.toLowerCase()) ? lt(function(e, n) {var i, o = r(e, t), a = o.length;while (a--) i = F.call(e, o[a]), e[i] = !(n[i] = o[a])}) : function(e) {return r(e, 0, n)}) : r}}, pseudos: {not: lt(function(e) {var t = [], n = [], r = l(e.replace(z, "$1"));return r[b] ? lt(function(e, t, n, i) {var o, a = r(e, null, i, []), s = e.length;while (s--) (o = a[s]) && (e[s] = !(t[s] = o))}) : function(e, i, o) {return t[0] = e, r(t, null, o, n), !n.pop()}}), has: lt(function(e) {return function(t) {return at(e, t).length > 0}}), contains: lt(function(e) {return function(t) {return (t.textContent || t.innerText || a(t)).indexOf(e) > -1}}), lang: lt(function(e) {return G.test(e || "") || at.error("unsupported lang: " + e), e = e.replace(rt, it).toLowerCase(), function(t) {var n;do if (n = h ? t.lang : t.getAttribute("xml:lang") || t.getAttribute("lang")) return n = n.toLowerCase(), n === e || 0 === n.indexOf(e + "-"); while ((t = t.parentNode) && 1 === t.nodeType);return !1}}), target: function(t) {var n = e.location && e.location.hash;return n && n.slice(1) === t.id}, root: function(e) {return e === d}, focus: function(e) {return e === f.activeElement && (!f.hasFocus || f.hasFocus()) && !!(e.type || e.href || ~e.tabIndex)}, enabled: function(e) {return e.disabled === !1}, disabled: function(e) {return e.disabled === !0}, checked: function(e) {var t = e.nodeName.toLowerCase();return "input" === t && !!e.checked || "option" === t && !!e.selected}, selected: function(e) {return e.parentNode && e.parentNode.selectedIndex, e.selected === !0}, empty: function(e) {for (e = e.firstChild; e; e = e.nextSibling) if (e.nodeName > "@" || 3 === e.nodeType || 4 === e.nodeType) return !1;return !0}, parent: function(e) {return !o.pseudos.empty(e)}, header: function(e) {return tt.test(e.nodeName)}, input: function(e) {return et.test(e.nodeName)}, button: function(e) {var t = e.nodeName.toLowerCase();return "input" === t && "button" === e.type || "button" === t}, text: function(e) {var t;return "input" === e.nodeName.toLowerCase() && "text" === e.type && (null == (t = e.getAttribute("type")) || t.toLowerCase() === e.type)}, first: ht(function() {return [0]}), last: ht(function(e, t) {return [t - 1]}), eq: ht(function(e, t, n) {return [0 > n ? n + t : n]}), even: ht(function(e, t) {var n = 0;for (; t > n; n += 2) e.push(n);return e}), odd: ht(function(e, t) {var n = 1;for (; t > n; n += 2) e.push(n);return e}), lt: ht(function(e, t, n) {var r = 0 > n ? n + t : n;for (; --r >= 0; ) e.push(r);return e}), gt: ht(function(e, t, n) {var r = 0 > n ? n + t : n;for (; t > ++r; ) e.push(r);return e})}}, o.pseudos.nth = o.pseudos.eq;for (n in {radio: !0, checkbox: !0, file: !0, password: !0, image: !0}) o.pseudos[n] = ft(n);for (n in {submit: !0, reset: !0}) o.pseudos[n] = dt(n);function gt() {}gt.prototype = o.filters = o.pseudos, o.setFilters = new gt;function mt(e, t) {var n, r, i, a, s, l, u, c = k[e + " "];if (c) return t ? 0 : c.slice(0);s = e, l = [],
  2. u = o.preFilter;
  3. while (s) {
  4. (!n || (r = X.exec(s))) && (r && (s = s.slice(r[0].length) || s),
  5. l.push(i = [])),
  6. n = !1,
  7. (r = U.exec(s)) && (n = r.shift(),
  8. i.push({
  9. value: n,
  10. type: r[0].replace(z, " ")
  11. }),
  12. s = s.slice(n.length));
  13. for (a in o.filter)
  14. !(r = Q[a].exec(s)) || u[a] && !(r = u[a](r)) || (n = r.shift(),
  15. i.push({
  16. value: n,
  17. type: a,
  18. matches: r
  19. }),
  20. s = s.slice(n.length));
  21. if (!n)
  22. break
  23. }
  24. return t ? s.length : s ? at.error(e) : k(e, l).slice(0)
  25. }
  26. function yt(e) {
  27. var t = 0
  28. , n = e.length
  29. , r = "";
  30. for (; n > t; t++)
  31. r += e[t].value;
  32. return r
  33. }
  34. function vt(e, t, n) {
  35. var r = t.dir
  36. , o = n && "parentNode" === r
  37. , a = C++;
  38. return t.first ? function(t, n, i) {
  39. while (t = t[r])
  40. if (1 === t.nodeType || o)
  41. return e(t, n, i)
  42. }
  43. : function(t, n, s) {
  44. var l, u, c, p = T + " " + a;
  45. if (s) {
  46. while (t = t[r])
  47. if ((1 === t.nodeType || o) && e(t, n, s))
  48. return !0
  49. } else
  50. while (t = t[r])
  51. if (1 === t.nodeType || o)
  52. if (c = t[b] || (t[b] = {}),
  53. (u = c[r]) && u[0] === p) {
  54. if ((l = u[1]) === !0 || l === i)
  55. return l === !0
  56. } else if (u = c[r] = [p],
  57. u[1] = e(t, n, s) || i,
  58. u[1] === !0)
  59. return !0
  60. }
  61. }
  62. function bt(e) {
  63. return e.length > 1 ? function(t, n, r) {
  64. var i = e.length;
  65. while (i--)
  66. if (!e[i](t, n, r))
  67. return !1;
  68. return !0
  69. }
  70. : e[0]
  71. }
  72. function xt(e, t, n, r, i) {
  73. var o, a = [], s = 0, l = e.length, u = null != t;
  74. for (; l > s; s++)
  75. (o = e[s]) && (!n || n(o, r, i)) && (a.push(o),
  76. u && t.push(s));
  77. return a
  78. }
  79. function wt(e, t, n, r, i, o) {
  80. return r && !r[b] && (r = wt(r)),
  81. i && !i[b] && (i = wt(i, o)),
  82. lt(function(o, a, s, l) {
  83. var u, c, p, f = [], d = [], h = a.length, g = o || Nt(t || "*", s.nodeType ? [s] : s, []), m = !e || !o && t ? g : xt(g, f, e, s, l), y = n ? i || (o ? e : h || r) ? [] : a : m;
  84. if (n && n(m, y, s, l),
  85. r) {
  86. u = xt(y, d),
  87. r(u, [], s, l),
  88. c = u.length;
  89. while (c--)
  90. (p = u[c]) && (y[d[c]] = !(m[d[c]] = p))
  91. }
  92. if (o) {
  93. if (i || e) {
  94. if (i) {
  95. u = [],
  96. c = y.length;
  97. while (c--)
  98. (p = y[c]) && u.push(m[c] = p);
  99. i(null, y = [], u, l)
  100. }
  101. c = y.length;
  102. while (c--)
  103. (p = y[c]) && (u = i ? F.call(o, p) : f[c]) > -1 && (o[u] = !(a[u] = p))
  104. }
  105. } else
  106. y = xt(y === a ? y.splice(h, y.length) : y),
  107. i ? i(null, a, y, l) : M.apply(a, y)
  108. })
  109. }
  110. function Tt(e) {
  111. var t, n, r, i = e.length, a = o.relative[e[0].type], s = a || o.relative[" "], l = a ? 1 : 0, c = vt(function(e) {
  112. return e === t
  113. }, s, !0), p = vt(function(e) {
  114. return F.call(t, e) > -1
  115. }, s, !0), f = [function(e, n, r) {
  116. return !a && (r || n !== u) || ((t = n).nodeType ? c(e, n, r) : p(e, n, r))
  117. }
  118. ];
  119. for (; i > l; l++)
  120. if (n = o.relative[e[l].type])
  121. f = [vt(bt(f), n)];
  122. else {
  123. if (n = o.filter[e[l].type].apply(null, e[l].matches),
  124. n[b]) {
  125. for (r = ++l; i > r; r++)
  126. if (o.relative[e[r].type])
  127. break;
  128. return wt(l > 1 && bt(f), l > 1 && yt(e.slice(0, l - 1).concat({
  129. value: " " === e[l - 2].type ? "*" : ""
  130. })).replace(z, "$1"), n, r > l && Tt(e.slice(l, r)), i > r && Tt(e = e.slice(r)), i > r && yt(e))
  131. }
  132. f.push(n)
  133. }
  134. return bt(f)
  135. }
  136. function Ct(e, t) {
  137. var n = 0
  138. , r = t.length > 0
  139. , a = e.length > 0
  140. , s = function(s, l, c, p, d) {
  141. var h, g, m, y = [], v = 0, b = "0", x = s && [], w = null != d, C = u, N = s || a && o.find.TAG("*", d && l.parentNode || l), k = T += null == C ? 1 : Math.random() || .1;
  142. for (w && (u = l !== f && l,
  143. i = n); null != (h = N[b]); b++) {
  144. if (a && h) {
  145. g = 0;
  146. while (m = e[g++])
  147. if (m(h, l, c)) {
  148. p.push(h);
  149. break
  150. }
  151. w && (T = k,
  152. i = ++n)
  153. }
  154. r && ((h = !m && h) && v--,
  155. s && x.push(h))
  156. }
  157. if (v += b,
  158. r && b !== v) {
  159. g = 0;
  160. while (m = t[g++])
  161. m(x, y, l, c);
  162. if (s) {
  163. if (v > 0)
  164. while (b--)
  165. x[b] || y[b] || (y[b] = q.call(p));
  166. y = xt(y)
  167. }
  168. M.apply(p, y),
  169. w && !s && y.length > 0 && v + t.length > 1 && at.uniqueSort(p)
  170. }
  171. return w && (T = k,
  172. u = C),
  173. x
  174. };
  175. return r ? lt(s) : s
  176. }
  177. l = at.compile = function(e, t) {
  178. var n, r = [], i = [], o = E[e + " "];
  179. if (!o) {
  180. t || (t = mt(e)),
  181. n = t.length;
  182. while (n--)
  183. o = Tt(t[n]),
  184. o[b] ? r.push(o) : i.push(o);
  185. o = E(e, Ct(i, r))
  186. }
  187. return o
  188. }
  189. ;
  190. function Nt(e, t, n) {
  191. var r = 0
  192. , i = t.length;
  193. for (; i > r; r++)
  194. at(e, t[r], n);
  195. return n
  196. }
  197. function kt(e, t, n, i) {
  198. var a, s, u, c, p, f = mt(e);
  199. if (!i && 1 === f.length) {
  200. if (s = f[0] = f[0].slice(0),
  201. s.length > 2 && "ID" === (u = s[0]).type && r.getById && 9 === t.nodeType && h && o.relative[s[1].type]) {
  202. if (t = (o.find.ID(u.matches[0].replace(rt, it), t) || [])[0],
  203. !t)
  204. return n;
  205. e = e.slice(s.shift().value.length)
  206. }
  207. a = Q.needsContext.test(e) ? 0 : s.length;
  208. while (a--) {
  209. if (u = s[a],
  210. o.relative[c = u.type])
  211. break;
  212. if ((p = o.find[c]) && (i = p(u.matches[0].replace(rt, it), V.test(s[0].type) && t.parentNode || t))) {
  213. if (s.splice(a, 1),
  214. e = i.length && yt(s),
  215. !e)
  216. return M.apply(n, i),
  217. n;
  218. break
  219. }
  220. }
  221. }
  222. return l(e, f)(i, t, !h, n, V.test(e)),
  223. n
  224. }
  225. r.sortStable = b.split("").sort(A).join("") === b,
  226. r.detectDuplicates = S,
  227. p(),
  228. r.sortDetached = ut(function(e) {
  229. return 1 & e.compareDocumentPosition(f.createElement("div"))
  230. }),
  231. ut(function(e) {
  232. return e.innerHTML = "<a href='#'></a>",
  233. "#" === e.firstChild.getAttribute("href")
  234. }) || ct("type|href|height|width", function(e, n, r) {
  235. return r ? t : e.getAttribute(n, "type" === n.toLowerCase() ? 1 : 2)
  236. }),
  237. r.attributes && ut(function(e) {
  238. return e.innerHTML = "<input/>",
  239. e.firstChild.setAttribute("value", ""),
  240. "" === e.firstChild.getAttribute("value")
  241. }) || ct("value", function(e, n, r) {
  242. return r || "input" !== e.nodeName.toLowerCase() ? t : e.defaultValue
  243. }),
  244. ut(function(e) {
  245. return null == e.getAttribute("disabled")
  246. }) || ct(B, function(e, n, r) {
  247. var i;
  248. return r ? t : (i = e.getAttributeNode(n)) && i.specified ? i.value : e[n] === !0 ? n.toLowerCase() : null
  249. }),
  250. x.find = at,
  251. x.expr = at.selectors,
  252. x.expr[":"] = x.expr.pseudos,
  253. x.unique = at.uniqueSort,
  254. x.text = at.getText,
  255. x.isXMLDoc = at.isXML,
  256. x.contains = at.contains
  257. }(e);
  258. var O = {};
  259. function F(e) {
  260. var t = O[e] = {};
  261. return x.each(e.match(T) || [], function(e, n) {
  262. t[n] = !0
  263. }),
  264. t
  265. }
  266. x.Callbacks = function(e) {
  267. e = "string" == typeof e ? O[e] || F(e) : x.extend({}, e);
  268. var n, r, i, o, a, s, l = [], u = !e.once && [], c = function(t) {
  269. for (r = e.memory && t,
  270. i = !0,
  271. a = s || 0,
  272. s = 0,
  273. o = l.length,
  274. n = !0; l && o > a; a++)
  275. if (l[a].apply(t[0], t[1]) === !1 && e.stopOnFalse) {
  276. r = !1;
  277. break
  278. }
  279. n = !1,
  280. l && (u ? u.length && c(u.shift()) : r ? l = [] : p.disable())
  281. }, p = {
  282. add: function() {
  283. if (l) {
  284. var t = l.length;
  285. (function i(t) {
  286. x.each(t, function(t, n) {
  287. var r = x.type(n);
  288. "function" === r ? e.unique && p.has(n) || l.push(n) : n && n.length && "string" !== r && i(n)
  289. })
  290. }
  291. )(arguments),
  292. n ? o = l.length : r && (s = t,
  293. c(r))
  294. }
  295. return this
  296. },
  297. remove: function() {
  298. return l && x.each(arguments, function(e, t) {
  299. var r;
  300. while ((r = x.inArray(t, l, r)) > -1)
  301. l.splice(r, 1),
  302. n && (o >= r && o--,
  303. a >= r && a--)
  304. }),
  305. this
  306. },
  307. has: function(e) {
  308. return e ? x.inArray(e, l) > -1 : !(!l || !l.length)
  309. },
  310. empty: function() {
  311. return l = [],
  312. o = 0,
  313. this
  314. },
  315. disable: function() {
  316. return l = u = r = t,
  317. this
  318. },
  319. disabled: function() {
  320. return !l
  321. },
  322. lock: function() {
  323. return u = t,
  324. r || p.disable(),
  325. this
  326. },
  327. locked: function() {
  328. return !u
  329. },
  330. fireWith: function(e, t) {
  331. return !l || i && !u || (t = t || [],
  332. t = [e, t.slice ? t.slice() : t],
  333. n ? u.push(t) : c(t)),
  334. this
  335. },
  336. fire: function() {
  337. return p.fireWith(this, arguments),
  338. this
  339. },
  340. fired: function() {
  341. return !!i
  342. }
  343. };
  344. return p
  345. }
  346. ,
  347. x.extend({
  348. Deferred: function(e) {
  349. var t = [["resolve", "done", x.Callbacks("once memory"), "resolved"], ["reject", "fail", x.Callbacks("once memory"), "rejected"], ["notify", "progress", x.Callbacks("memory")]]
  350. , n = "pending"
  351. , r = {
  352. state: function() {
  353. return n
  354. },
  355. always: function() {
  356. return i.done(arguments).fail(arguments),
  357. this
  358. },
  359. then: function() {
  360. var e = arguments;
  361. return x.Deferred(function(n) {
  362. x.each(t, function(t, o) {
  363. var a = o[0]
  364. , s = x.isFunction(e[t]) && e[t];
  365. i[o[1]](function() {
  366. var e = s && s.apply(this, arguments);
  367. e && x.isFunction(e.promise) ? e.promise().done(n.resolve).fail(n.reject).progress(n.notify) : n[a + "With"](this === r ? n.promise() : this, s ? [e] : arguments)
  368. })
  369. }),
  370. e = null
  371. }).promise()
  372. },
  373. promise: function(e) {
  374. return null != e ? x.extend(e, r) : r
  375. }
  376. }
  377. , i = {};
  378. return r.pipe = r.then,
  379. x.each(t, function(e, o) {
  380. var a = o[2]
  381. , s = o[3];
  382. r[o[1]] = a.add,
  383. s && a.add(function() {
  384. n = s
  385. }, t[1 ^ e][2].disable, t[2][2].lock),
  386. i[o[0]] = function() {
  387. return i[o[0] + "With"](this === i ? r : this, arguments),
  388. this
  389. }
  390. ,
  391. i[o[0] + "With"] = a.fireWith
  392. }),
  393. r.promise(i),
  394. e && e.call(i, i),
  395. i
  396. },
  397. when: function(e) {
  398. var t = 0, n = g.call(arguments), r = n.length, i = 1 !== r || e && x.isFunction(e.promise) ? r : 0, o = 1 === i ? e : x.Deferred(), a = function(e, t, n) {
  399. return function(r) {
  400. t[e] = this,
  401. n[e] = arguments.length > 1 ? g.call(arguments) : r,
  402. n === s ? o.notifyWith(t, n) : --i || o.resolveWith(t, n)
  403. }
  404. }, s, l, u;
  405. if (r > 1)
  406. for (s = Array(r),
  407. l = Array(r),
  408. u = Array(r); r > t; t++)
  409. n[t] && x.isFunction(n[t].promise) ? n[t].promise().done(a(t, u, n)).fail(o.reject).progress(a(t, l, s)) : --i;
  410. return i || o.resolveWith(u, n),
  411. o.promise()
  412. }
  413. }),
  414. x.support = function(t) {
  415. var n, r, o, s, l, u, c, p, f, d = a.createElement("div");
  416. if (d.setAttribute("className", "t"),
  417. d.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",
  418. n = d.getElementsByTagName("*") || [],
  419. r = d.getElementsByTagName("a")[0],
  420. !r || !r.style || !n.length)
  421. return t;
  422. s = a.createElement("select"),
  423. u = s.appendChild(a.createElement("option")),
  424. o = d.getElementsByTagName("input")[0],
  425. r.style.cssText = "top:1px;float:left;opacity:.5",
  426. t.getSetAttribute = "t" !== d.className,
  427. t.leadingWhitespace = 3 === d.firstChild.nodeType,
  428. t.tbody = !d.getElementsByTagName("tbody").length,
  429. t.htmlSerialize = !!d.getElementsByTagName("link").length,
  430. t.style = /top/.test(r.getAttribute("style")),
  431. t.hrefNormalized = "/a" === r.getAttribute("href"),
  432. t.opacity = /^0.5/.test(r.style.opacity),
  433. t.cssFloat = !!r.style.cssFloat,
  434. t.checkOn = !!o.value,
  435. t.optSelected = u.selected,
  436. t.enctype = !!a.createElement("form").enctype,
  437. t.html5Clone = "<:nav></:nav>" !== a.createElement("nav").cloneNode(!0).outerHTML,
  438. t.inlineBlockNeedsLayout = !1,
  439. t.shrinkWrapBlocks = !1,
  440. t.pixelPosition = !1,
  441. t.deleteExpando = !0,
  442. t.noCloneEvent = !0,
  443. t.reliableMarginRight = !0,
  444. t.boxSizingReliable = !0,
  445. o.checked = !0,
  446. t.noCloneChecked = o.cloneNode(!0).checked,
  447. s.disabled = !0,
  448. t.optDisabled = !u.disabled;
  449. try {
  450. delete d.test
  451. } catch (h) {
  452. t.deleteExpando = !1
  453. }
  454. o = a.createElement("input"),
  455. o.setAttribute("value", ""),
  456. t.input = "" === o.getAttribute("value"),
  457. o.value = "t",
  458. o.setAttribute("type", "radio"),
  459. t.radioValue = "t" === o.value,
  460. o.setAttribute("checked", "t"),
  461. o.setAttribute("name", "t"),
  462. l = a.createDocumentFragment(),
  463. l.appendChild(o),
  464. t.appendChecked = o.checked,
  465. t.checkClone = l.cloneNode(!0).cloneNode(!0).lastChild.checked,
  466. d.attachEvent && (d.attachEvent("onclick", function() {
  467. t.noCloneEvent = !1
  468. }),
  469. d.cloneNode(!0).click());
  470. for (f in {
  471. submit: !0,
  472. change: !0,
  473. focusin: !0
  474. })
  475. d.setAttribute(c = "on" + f, "t"),
  476. t[f + "Bubbles"] = c in e || d.attributes[c].expando === !1;
  477. d.style.backgroundClip = "content-box",
  478. d.cloneNode(!0).style.backgroundClip = "",
  479. t.clearCloneStyle = "content-box" === d.style.backgroundClip;
  480. for (f in x(t))
  481. break;
  482. return t.ownLast = "0" !== f,
  483. x(function() {
  484. var n, r, o, s = "padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;", l = a.getElementsByTagName("body")[0];
  485. l && (n = a.createElement("div"),
  486. n.style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",
  487. l.appendChild(n).appendChild(d),
  488. d.innerHTML = "<table><tr><td></td><td>t</td></tr></table>",
  489. o = d.getElementsByTagName("td"),
  490. o[0].style.cssText = "padding:0;margin:0;border:0;display:none",
  491. p = 0 === o[0].offsetHeight,
  492. o[0].style.display = "",
  493. o[1].style.display = "none",
  494. t.reliableHiddenOffsets = p && 0 === o[0].offsetHeight,
  495. d.innerHTML = "",
  496. d.style.cssText = "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",
  497. x.swap(l, null != l.style.zoom ? {
  498. zoom: 1
  499. } : {}, function() {
  500. t.boxSizing = 4 === d.offsetWidth
  501. }),
  502. e.getComputedStyle && (t.pixelPosition = "1%" !== (e.getComputedStyle(d, null) || {}).top,
  503. t.boxSizingReliable = "4px" === (e.getComputedStyle(d, null) || {
  504. width: "4px"
  505. }).width,
  506. r = d.appendChild(a.createElement("div")),
  507. r.style.cssText = d.style.cssText = s,
  508. r.style.marginRight = r.style.width = "0",
  509. d.style.width = "1px",
  510. t.reliableMarginRight = !parseFloat((e.getComputedStyle(r, null) || {}).marginRight)),
  511. typeof d.style.zoom !== i && (d.innerHTML = "",
  512. d.style.cssText = s + "width:1px;padding:1px;display:inline;zoom:1",
  513. t.inlineBlockNeedsLayout = 3 === d.offsetWidth,
  514. d.style.display = "block",
  515. d.innerHTML = "<div></div>",
  516. d.firstChild.style.width = "5px",
  517. t.shrinkWrapBlocks = 3 !== d.offsetWidth,
  518. t.inlineBlockNeedsLayout && (l.style.zoom = 1)),
  519. l.removeChild(n),
  520. n = d = o = r = null)
  521. }),
  522. n = s = l = u = r = o = null,
  523. t
  524. }({});
  525. var B = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/
  526. , P = /([A-Z])/g;
  527. function R(e, n, r, i) {
  528. if (x.acceptData(e)) {
  529. var o, a, s = x.expando, l = e.nodeType, u = l ? x.cache : e, c = l ? e[s] : e[s] && s;
  530. if (c && u[c] && (i || u[c].data) || r !== t || "string" != typeof n)
  531. return c || (c = l ? e[s] = p.pop() || x.guid++ : s),
  532. u[c] || (u[c] = l ? {} : {
  533. toJSON: x.noop
  534. }),
  535. ("object" == typeof n || "function" == typeof n) && (i ? u[c] = x.extend(u[c], n) : u[c].data = x.extend(u[c].data, n)),
  536. a = u[c],
  537. i || (a.data || (a.data = {}),
  538. a = a.data),
  539. r !== t && (a[x.camelCase(n)] = r),
  540. "string" == typeof n ? (o = a[n],
  541. null == o && (o = a[x.camelCase(n)])) : o = a,
  542. o
  543. }
  544. }
  545. function W(e, t, n) {
  546. if (x.acceptData(e)) {
  547. var r, i, o = e.nodeType, a = o ? x.cache : e, s = o ? e[x.expando] : x.expando;
  548. if (a[s]) {
  549. if (t && (r = n ? a[s] : a[s].data)) {
  550. x.isArray(t) ? t = t.concat(x.map(t, x.camelCase)) : t in r ? t = [t] : (t = x.camelCase(t),
  551. t = t in r ? [t] : t.split(" ")),
  552. i = t.length;
  553. while (i--)
  554. delete r[t[i]];
  555. if (n ? !I(r) : !x.isEmptyObject(r))
  556. return
  557. }
  558. (n || (delete a[s].data,
  559. I(a[s]))) && (o ? x.cleanData([e], !0) : x.support.deleteExpando || a != a.window ? delete a[s] : a[s] = null)
  560. }
  561. }
  562. }
  563. x.extend({
  564. cache: {},
  565. noData: {
  566. applet: !0,
  567. embed: !0,
  568. object: "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  569. },
  570. hasData: function(e) {
  571. return e = e.nodeType ? x.cache[e[x.expando]] : e[x.expando],
  572. !!e && !I(e)
  573. },
  574. data: function(e, t, n) {
  575. return R(e, t, n)
  576. },
  577. removeData: function(e, t) {
  578. return W(e, t)
  579. },
  580. _data: function(e, t, n) {
  581. return R(e, t, n, !0)
  582. },
  583. _removeData: function(e, t) {
  584. return W(e, t, !0)
  585. },
  586. acceptData: function(e) {
  587. if (e.nodeType && 1 !== e.nodeType && 9 !== e.nodeType)
  588. return !1;
  589. var t = e.nodeName && x.noData[e.nodeName.toLowerCase()];
  590. return !t || t !== !0 && e.getAttribute("classid") === t
  591. }
  592. }),
  593. x.fn.extend({
  594. data: function(e, n) {
  595. var r, i, o = null, a = 0, s = this[0];
  596. if (e === t) {
  597. if (this.length && (o = x.data(s),
  598. 1 === s.nodeType && !x._data(s, "parsedAttrs"))) {
  599. for (r = s.attributes; r.length > a; a++)
  600. i = r[a].name,
  601. 0 === i.indexOf("data-") && (i = x.camelCase(i.slice(5)),
  602. $(s, i, o[i]));
  603. x._data(s, "parsedAttrs", !0)
  604. }
  605. return o
  606. }
  607. return "object" == typeof e ? this.each(function() {
  608. x.data(this, e)
  609. }) : arguments.length > 1 ? this.each(function() {
  610. x.data(this, e, n)
  611. }) : s ? $(s, e, x.data(s, e)) : null
  612. },
  613. removeData: function(e) {
  614. return this.each(function() {
  615. x.removeData(this, e)
  616. })
  617. }
  618. });
  619. function $(e, n, r) {
  620. if (r === t && 1 === e.nodeType) {
  621. var i = "data-" + n.replace(P, "-$1").toLowerCase();
  622. if (r = e.getAttribute(i),
  623. "string" == typeof r) {
  624. try {
  625. r = "true" === r ? !0 : "false" === r ? !1 : "null" === r ? null : +r + "" === r ? +r : B.test(r) ? x.parseJSON(r) : r
  626. } catch (o) {}
  627. x.data(e, n, r)
  628. } else
  629. r = t
  630. }
  631. return r
  632. }
  633. function I(e) {
  634. var t;
  635. for (t in e)
  636. if (("data" !== t || !x.isEmptyObject(e[t])) && "toJSON" !== t)
  637. return !1;
  638. return !0
  639. }
  640. x.extend({
  641. queue: function(e, n, r) {
  642. var i;
  643. return e ? (n = (n || "fx") + "queue",
  644. i = x._data(e, n),
  645. r && (!i || x.isArray(r) ? i = x._data(e, n, x.makeArray(r)) : i.push(r)),
  646. i || []) : t
  647. },
  648. dequeue: function(e, t) {
  649. t = t || "fx";
  650. var n = x.queue(e, t)
  651. , r = n.length
  652. , i = n.shift()
  653. , o = x._queueHooks(e, t)
  654. , a = function() {
  655. x.dequeue(e, t)
  656. };
  657. "inprogress" === i && (i = n.shift(),
  658. r--),
  659. i && ("fx" === t && n.unshift("inprogress"),
  660. delete o.stop,
  661. i.call(e, a, o)),
  662. !r && o && o.empty.fire()
  663. },
  664. _queueHooks: function(e, t) {
  665. var n = t + "queueHooks";
  666. return x._data(e, n) || x._data(e, n, {
  667. empty: x.Callbacks("once memory").add(function() {
  668. x._removeData(e, t + "queue"),
  669. x._removeData(e, n)
  670. })
  671. })
  672. }
  673. }),
  674. x.fn.extend({
  675. queue: function(e, n) {
  676. var r = 2;
  677. return "string" != typeof e && (n = e,
  678. e = "fx",
  679. r--),
  680. r > arguments.length ? x.queue(this[0], e) : n === t ? this : this.each(function() {
  681. var t = x.queue(this, e, n);
  682. x._queueHooks(this, e),
  683. "fx" === e && "inprogress" !== t[0] && x.dequeue(this, e)
  684. })
  685. },
  686. dequeue: function(e) {
  687. return this.each(function() {
  688. x.dequeue(this, e)
  689. })
  690. },
  691. delay: function(e, t) {
  692. return e = x.fx ? x.fx.speeds[e] || e : e,
  693. t = t || "fx",
  694. this.queue(t, function(t, n) {
  695. var r = setTimeout(t, e);
  696. n.stop = function() {
  697. clearTimeout(r)
  698. }
  699. })
  700. },
  701. clearQueue: function(e) {
  702. return this.queue(e || "fx", [])
  703. },
  704. promise: function(e, n) {
  705. var r, i = 1, o = x.Deferred(), a = this, s = this.length, l = function() {
  706. --i || o.resolveWith(a, [a])
  707. };
  708. "string" != typeof e && (n = e,
  709. e = t),
  710. e = e || "fx";
  711. while (s--)
  712. r = x._data(a[s], e + "queueHooks"),
  713. r && r.empty && (i++,
  714. r.empty.add(l));
  715. return l(),
  716. o.promise(n)
  717. }
  718. });
  719. var z, X, U = /[\t\r\n\f]/g, V = /\r/g, Y = /^(?:input|select|textarea|button|object)$/i, J = /^(?:a|area)$/i, G = /^(?:checked|selected)$/i, Q = x.support.getSetAttribute, K = x.support.input;
  720. x.fn.extend({
  721. attr: function(e, t) {
  722. return x.access(this, x.attr, e, t, arguments.length > 1)
  723. },
  724. removeAttr: function(e) {
  725. return this.each(function() {
  726. x.removeAttr(this, e)
  727. })
  728. },
  729. prop: function(e, t) {
  730. return x.access(this, x.prop, e, t, arguments.length > 1)
  731. },
  732. removeProp: function(e) {
  733. return e = x.propFix[e] || e,
  734. this.each(function() {
  735. try {
  736. this[e] = t,
  737. delete this[e]
  738. } catch (n) {}
  739. })
  740. },
  741. addClass: function(e) {
  742. var t, n, r, i, o, a = 0, s = this.length, l = "string" == typeof e && e;
  743. if (x.isFunction(e))
  744. return this.each(function(t) {
  745. x(this).addClass(e.call(this, t, this.className))
  746. });
  747. if (l)
  748. for (t = (e || "").match(T) || []; s > a; a++)
  749. if (n = this[a],
  750. r = 1 === n.nodeType && (n.className ? (" " + n.className + " ").replace(U, " ") : " ")) {
  751. o = 0;
  752. while (i = t[o++])
  753. 0 > r.indexOf(" " + i + " ") && (r += i + " ");
  754. n.className = x.trim(r)
  755. }
  756. return this
  757. },
  758. removeClass: function(e) {
  759. var t, n, r, i, o, a = 0, s = this.length, l = 0 === arguments.length || "string" == typeof e && e;
  760. if (x.isFunction(e))
  761. return this.each(function(t) {
  762. x(this).removeClass(e.call(this, t, this.className))
  763. });
  764. if (l)
  765. for (t = (e || "").match(T) || []; s > a; a++)
  766. if (n = this[a],
  767. r = 1 === n.nodeType && (n.className ? (" " + n.className + " ").replace(U, " ") : "")) {
  768. o = 0;
  769. while (i = t[o++])
  770. while (r.indexOf(" " + i + " ") >= 0)
  771. r = r.replace(" " + i + " ", " ");
  772. n.className = e ? x.trim(r) : ""
  773. }
  774. return this
  775. },
  776. toggleClass: function(e, t) {
  777. var n = typeof e;
  778. return "boolean" == typeof t && "string" === n ? t ? this.addClass(e) : this.removeClass(e) : x.isFunction(e) ? this.each(function(n) {
  779. x(this).toggleClass(e.call(this, n, this.className, t), t)
  780. }) : this.each(function() {
  781. if ("string" === n) {
  782. var t, r = 0, o = x(this), a = e.match(T) || [];
  783. while (t = a[r++])
  784. o.hasClass(t) ? o.removeClass(t) : o.addClass(t)
  785. } else
  786. (n === i || "boolean" === n) && (this.className && x._data(this, "__className__", this.className),
  787. this.className = this.className || e === !1 ? "" : x._data(this, "__className__") || "")
  788. })
  789. },
  790. hasClass: function(e) {
  791. var t = " " + e + " "
  792. , n = 0
  793. , r = this.length;
  794. for (; r > n; n++)
  795. if (1 === this[n].nodeType && (" " + this[n].className + " ").replace(U, " ").indexOf(t) >= 0)
  796. return !0;
  797. return !1
  798. },
  799. val: function(e) {
  800. var n, r, i, o = this[0];
  801. {
  802. if (arguments.length)
  803. return i = x.isFunction(e),
  804. this.each(function(n) {
  805. var o;
  806. 1 === this.nodeType && (o = i ? e.call(this, n, x(this).val()) : e,
  807. null == o ? o = "" : "number" == typeof o ? o += "" : x.isArray(o) && (o = x.map(o, function(e) {
  808. return null == e ? "" : e + ""
  809. })),
  810. r = x.valHooks[this.type] || x.valHooks[this.nodeName.toLowerCase()],
  811. r && "set"in r && r.set(this, o, "value") !== t || (this.value = o))
  812. });
  813. if (o)
  814. return r = x.valHooks[o.type] || x.valHooks[o.nodeName.toLowerCase()],
  815. r && "get"in r && (n = r.get(o, "value")) !== t ? n : (n = o.value,
  816. "string" == typeof n ? n.replace(V, "") : null == n ? "" : n)
  817. }
  818. }
  819. }),
  820. x.extend({
  821. valHooks: {
  822. option: {
  823. get: function(e) {
  824. var t = x.find.attr(e, "value");
  825. return null != t ? t : e.text
  826. }
  827. },
  828. select: {
  829. get: function(e) {
  830. var t, n, r = e.options, i = e.selectedIndex, o = "select-one" === e.type || 0 > i, a = o ? null : [], s = o ? i + 1 : r.length, l = 0 > i ? s : o ? i : 0;
  831. for (; s > l; l++)
  832. if (n = r[l],
  833. !(!n.selected && l !== i || (x.support.optDisabled ? n.disabled : null !== n.getAttribute("disabled")) || n.parentNode.disabled && x.nodeName(n.parentNode, "optgroup"))) {
  834. if (t = x(n).val(),
  835. o)
  836. return t;
  837. a.push(t)
  838. }
  839. return a
  840. },
  841. set: function(e, t) {
  842. var n, r, i = e.options, o = x.makeArray(t), a = i.length;
  843. while (a--)
  844. r = i[a],
  845. (r.selected = x.inArray(x(r).val(), o) >= 0) && (n = !0);
  846. return n || (e.selectedIndex = -1),
  847. o
  848. }
  849. }
  850. },
  851. attr: function(e, n, r) {
  852. var o, a, s = e.nodeType;
  853. if (e && 3 !== s && 8 !== s && 2 !== s)
  854. return typeof e.getAttribute === i ? x.prop(e, n, r) : (1 === s && x.isXMLDoc(e) || (n = n.toLowerCase(),
  855. o = x.attrHooks[n] || (x.expr.match.bool.test(n) ? X : z)),
  856. r === t ? o && "get"in o && null !== (a = o.get(e, n)) ? a : (a = x.find.attr(e, n),
  857. null == a ? t : a) : null !== r ? o && "set"in o && (a = o.set(e, r, n)) !== t ? a : (e.setAttribute(n, r + ""),
  858. r) : (x.removeAttr(e, n),
  859. t))
  860. },
  861. removeAttr: function(e, t) {
  862. var n, r, i = 0, o = t && t.match(T);
  863. if (o && 1 === e.nodeType)
  864. while (n = o[i++])
  865. r = x.propFix[n] || n,
  866. x.expr.match.bool.test(n) ? K && Q || !G.test(n) ? e[r] = !1 : e[x.camelCase("default-" + n)] = e[r] = !1 : x.attr(e, n, ""),
  867. e.removeAttribute(Q ? n : r)
  868. },
  869. attrHooks: {
  870. type: {
  871. set: function(e, t) {
  872. if (!x.support.radioValue && "radio" === t && x.nodeName(e, "input")) {
  873. var n = e.value;
  874. return e.setAttribute("type", t),
  875. n && (e.value = n),
  876. t
  877. }
  878. }
  879. }
  880. },
  881. propFix: {
  882. "for": "htmlFor",
  883. "class": "className"
  884. },
  885. prop: function(e, n, r) {
  886. var i, o, a, s = e.nodeType;
  887. if (e && 3 !== s && 8 !== s && 2 !== s)
  888. return a = 1 !== s || !x.isXMLDoc(e),
  889. a && (n = x.propFix[n] || n,
  890. o = x.propHooks[n]),
  891. r !== t ? o && "set"in o && (i = o.set(e, r, n)) !== t ? i : e[n] = r : o && "get"in o && null !== (i = o.get(e, n)) ? i : e[n]
  892. },
  893. propHooks: {
  894. tabIndex: {
  895. get: function(e) {
  896. var t = x.find.attr(e, "tabindex");
  897. return t ? parseInt(t, 10) : Y.test(e.nodeName) || J.test(e.nodeName) && e.href ? 0 : -1
  898. }
  899. }
  900. }
  901. }),
  902. X = {
  903. set: function(e, t, n) {
  904. return t === !1 ? x.removeAttr(e, n) : K && Q || !G.test(n) ? e.setAttribute(!Q && x.propFix[n] || n, n) : e[x.camelCase("default-" + n)] = e[n] = !0,
  905. n
  906. }
  907. },
  908. x.each(x.expr.match.bool.source.match(/\w+/g), function(e, n) {
  909. var r = x.expr.attrHandle[n] || x.find.attr;
  910. x.expr.attrHandle[n] = K && Q || !G.test(n) ? function(e, n, i) {
  911. var o = x.expr.attrHandle[n]
  912. , a = i ? t : (x.expr.attrHandle[n] = t) != r(e, n, i) ? n.toLowerCase() : null;
  913. return x.expr.attrHandle[n] = o,
  914. a
  915. }
  916. : function(e, n, r) {
  917. return r ? t : e[x.camelCase("default-" + n)] ? n.toLowerCase() : null
  918. }
  919. }),
  920. K && Q || (x.attrHooks.value = {
  921. set: function(e, n, r) {
  922. return x.nodeName(e, "input") ? (e.defaultValue = n,
  923. t) : z && z.set(e, n, r)
  924. }
  925. }),
  926. Q || (z = {
  927. set: function(e, n, r) {
  928. var i = e.getAttributeNode(r);
  929. return i || e.setAttributeNode(i = e.ownerDocument.createAttribute(r)),
  930. i.value = n += "",
  931. "value" === r || n === e.getAttribute(r) ? n : t
  932. }
  933. },
  934. x.expr.attrHandle.id = x.expr.attrHandle.name = x.expr.attrHandle.coords = function(e, n, r) {
  935. var i;
  936. return r ? t : (i = e.getAttributeNode(n)) && "" !== i.value ? i.value : null
  937. }
  938. ,
  939. x.valHooks.button = {
  940. get: function(e, n) {
  941. var r = e.getAttributeNode(n);
  942. return r && r.specified ? r.value : t
  943. },
  944. set: z.set
  945. },
  946. x.attrHooks.contenteditable = {
  947. set: function(e, t, n) {
  948. z.set(e, "" === t ? !1 : t, n)
  949. }
  950. },
  951. x.each(["width", "height"], function(e, n) {
  952. x.attrHooks[n] = {
  953. set: function(e, r) {
  954. return "" === r ? (e.setAttribute(n, "auto"),
  955. r) : t
  956. }
  957. }
  958. })),
  959. x.support.hrefNormalized || x.each(["href", "src"], function(e, t) {
  960. x.propHooks[t] = {
  961. get: function(e) {
  962. return e.getAttribute(t, 4)
  963. }
  964. }
  965. }),
  966. x.support.style || (x.attrHooks.style = {
  967. get: function(e) {
  968. return e.style.cssText || t
  969. },
  970. set: function(e, t) {
  971. return e.style.cssText = t + ""
  972. }
  973. }),
  974. x.support.optSelected || (x.propHooks.selected = {
  975. get: function(e) {
  976. var t = e.parentNode;
  977. return t && (t.selectedIndex,
  978. t.parentNode && t.parentNode.selectedIndex),
  979. null
  980. }
  981. }),
  982. x.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], function() {
  983. x.propFix[this.toLowerCase()] = this
  984. }),
  985. x.support.enctype || (x.propFix.enctype = "encoding"),
  986. x.each(["radio", "checkbox"], function() {
  987. x.valHooks[this] = {
  988. set: function(e, n) {
  989. return x.isArray(n) ? e.checked = x.inArray(x(e).val(), n) >= 0 : t
  990. }
  991. },
  992. x.support.checkOn || (x.valHooks[this].get = function(e) {
  993. return null === e.getAttribute("value") ? "on" : e.value
  994. }
  995. )
  996. });
  997. var Z = /^(?:input|select|textarea)$/i
  998. , et = /^key/
  999. , tt = /^(?:mouse|contextmenu)|click/
  1000. , nt = /^(?:focusinfocus|focusoutblur)$/
  1001. , rt = /^([^.]*)(?:\.(.+)|)$/;
  1002. function it() {
  1003. return !0
  1004. }
  1005. function ot() {
  1006. return !1
  1007. }
  1008. function at() {
  1009. try {
  1010. return a.activeElement
  1011. } catch (e) {}
  1012. }
  1013. x.event = {
  1014. global: {},
  1015. add: function(e, n, r, o, a) {
  1016. var s, l, u, c, p, f, d, h, g, m, y, v = x._data(e);
  1017. if (v) {
  1018. r.handler && (c = r,
  1019. r = c.handler,
  1020. a = c.selector),
  1021. r.guid || (r.guid = x.guid++),
  1022. (l = v.events) || (l = v.events = {}),
  1023. (f = v.handle) || (f = v.handle = function(e) {
  1024. return typeof x === i || e && x.event.triggered === e.type ? t : x.event.dispatch.apply(f.elem, arguments)
  1025. }
  1026. ,
  1027. f.elem = e),
  1028. n = (n || "").match(T) || [""],
  1029. u = n.length;
  1030. while (u--)
  1031. s = rt.exec(n[u]) || [],
  1032. g = y = s[1],
  1033. m = (s[2] || "").split(".").sort(),
  1034. g && (p = x.event.special[g] || {},
  1035. g = (a ? p.delegateType : p.bindType) || g,
  1036. p = x.event.special[g] || {},
  1037. d = x.extend({
  1038. type: g,
  1039. origType: y,
  1040. data: o,
  1041. handler: r,
  1042. guid: r.guid,
  1043. selector: a,
  1044. needsContext: a && x.expr.match.needsContext.test(a),
  1045. namespace: m.join(".")
  1046. }, c),
  1047. (h = l[g]) || (h = l[g] = [],
  1048. h.delegateCount = 0,
  1049. p.setup && p.setup.call(e, o, m, f) !== !1 || (e.addEventListener ? e.addEventListener(g, f, !1) : e.attachEvent && e.attachEvent("on" + g, f))),
  1050. p.add && (p.add.call(e, d),
  1051. d.handler.guid || (d.handler.guid = r.guid)),
  1052. a ? h.splice(h.delegateCount++, 0, d) : h.push(d),
  1053. x.event.global[g] = !0);
  1054. e = null
  1055. }
  1056. },
  1057. remove: function(e, t, n, r, i) {
  1058. var o, a, s, l, u, c, p, f, d, h, g, m = x.hasData(e) && x._data(e);
  1059. if (m && (c = m.events)) {
  1060. t = (t || "").match(T) || [""],
  1061. u = t.length;
  1062. while (u--)
  1063. if (s = rt.exec(t[u]) || [],
  1064. d = g = s[1],
  1065. h = (s[2] || "").split(".").sort(),
  1066. d) {
  1067. p = x.event.special[d] || {},
  1068. d = (r ? p.delegateType : p.bindType) || d,
  1069. f = c[d] || [],
  1070. s = s[2] && RegExp("(^|\\.)" + h.join("\\.(?:.*\\.|)") + "(\\.|$)"),
  1071. l = o = f.length;
  1072. while (o--)
  1073. a = f[o],
  1074. !i && g !== a.origType || n && n.guid !== a.guid || s && !s.test(a.namespace) || r && r !== a.selector && ("**" !== r || !a.selector) || (f.splice(o, 1),
  1075. a.selector && f.delegateCount--,
  1076. p.remove && p.remove.call(e, a));
  1077. l && !f.length && (p.teardown && p.teardown.call(e, h, m.handle) !== !1 || x.removeEvent(e, d, m.handle),
  1078. delete c[d])
  1079. } else
  1080. for (d in c)
  1081. x.event.remove(e, d + t[u], n, r, !0);
  1082. x.isEmptyObject(c) && (delete m.handle,
  1083. x._removeData(e, "events"))
  1084. }
  1085. },
  1086. trigger: function(n, r, i, o) {
  1087. var s, l, u, c, p, f, d, h = [i || a], g = v.call(n, "type") ? n.type : n, m = v.call(n, "namespace") ? n.namespace.split(".") : [];
  1088. if (u = f = i = i || a,
  1089. 3 !== i.nodeType && 8 !== i.nodeType && !nt.test(g + x.event.triggered) && (g.indexOf(".") >= 0 && (m = g.split("."),
  1090. g = m.shift(),
  1091. m.sort()),
  1092. l = 0 > g.indexOf(":") && "on" + g,
  1093. n = n[x.expando] ? n : new x.Event(g,"object" == typeof n && n),
  1094. n.isTrigger = o ? 2 : 3,
  1095. n.namespace = m.join("."),
  1096. n.namespace_re = n.namespace ? RegExp("(^|\\.)" + m.join("\\.(?:.*\\.|)") + "(\\.|$)") : null,
  1097. n.result = t,
  1098. n.target || (n.target = i),
  1099. r = null == r ? [n] : x.makeArray(r, [n]),
  1100. p = x.event.special[g] || {},
  1101. o || !p.trigger || p.trigger.apply(i, r) !== !1)) {
  1102. if (!o && !p.noBubble && !x.isWindow(i)) {
  1103. for (c = p.delegateType || g,
  1104. nt.test(c + g) || (u = u.parentNode); u; u = u.parentNode)
  1105. h.push(u),
  1106. f = u;
  1107. f === (i.ownerDocument || a) && h.push(f.defaultView || f.parentWindow || e)
  1108. }
  1109. d = 0;
  1110. while ((u = h[d++]) && !n.isPropagationStopped())
  1111. n.type = d > 1 ? c : p.bindType || g,
  1112. s = (x._data(u, "events") || {})[n.type] && x._data(u, "handle"),
  1113. s && s.apply(u, r),
  1114. s = l && u[l],
  1115. s && x.acceptData(u) && s.apply && s.apply(u, r) === !1 && n.preventDefault();
  1116. if (n.type = g,
  1117. !o && !n.isDefaultPrevented() && (!p._default || p._default.apply(h.pop(), r) === !1) && x.acceptData(i) && l && i[g] && !x.isWindow(i)) {
  1118. f = i[l],
  1119. f && (i[l] = null),
  1120. x.event.triggered = g;
  1121. try {
  1122. i[g]()
  1123. } catch (y) {}
  1124. x.event.triggered = t,
  1125. f && (i[l] = f)
  1126. }
  1127. return n.result
  1128. }
  1129. },
  1130. dispatch: function(e) {
  1131. e = x.event.fix(e);
  1132. var n, r, i, o, a, s = [], l = g.call(arguments), u = (x._data(this, "events") || {})[e.type] || [], c = x.event.special[e.type] || {};
  1133. if (l[0] = e,
  1134. e.delegateTarget = this,
  1135. !c.preDispatch || c.preDispatch.call(this, e) !== !1) {
  1136. s = x.event.handlers.call(this, e, u),
  1137. n = 0;
  1138. while ((o = s[n++]) && !e.isPropagationStopped()) {
  1139. e.currentTarget = o.elem,
  1140. a = 0;
  1141. while ((i = o.handlers[a++]) && !e.isImmediatePropagationStopped())
  1142. (!e.namespace_re || e.namespace_re.test(i.namespace)) && (e.handleObj = i,
  1143. e.data = i.data,
  1144. r = ((x.event.special[i.origType] || {}).handle || i.handler).apply(o.elem, l),
  1145. r !== t && (e.result = r) === !1 && (e.preventDefault(),
  1146. e.stopPropagation()))
  1147. }
  1148. return c.postDispatch && c.postDispatch.call(this, e),
  1149. e.result
  1150. }
  1151. },
  1152. handlers: function(e, n) {
  1153. var r, i, o, a, s = [], l = n.delegateCount, u = e.target;
  1154. if (l && u.nodeType && (!e.button || "click" !== e.type))
  1155. for (; u != this; u = u.parentNode || this)
  1156. if (1 === u.nodeType && (u.disabled !== !0 || "click" !== e.type)) {
  1157. for (o = [],
  1158. a = 0; l > a; a++)
  1159. i = n[a],
  1160. r = i.selector + " ",
  1161. o[r] === t && (o[r] = i.needsContext ? x(r, this).index(u) >= 0 : x.find(r, this, null, [u]).length),
  1162. o[r] && o.push(i);
  1163. o.length && s.push({
  1164. elem: u,
  1165. handlers: o
  1166. })
  1167. }
  1168. return n.length > l && s.push({
  1169. elem: this,
  1170. handlers: n.slice(l)
  1171. }),
  1172. s
  1173. },
  1174. fix: function(e) {
  1175. if (e[x.expando])
  1176. return e;
  1177. var t, n, r, i = e.type, o = e, s = this.fixHooks[i];
  1178. s || (this.fixHooks[i] = s = tt.test(i) ? this.mouseHooks : et.test(i) ? this.keyHooks : {}),
  1179. r = s.props ? this.props.concat(s.props) : this.props,
  1180. e = new x.Event(o),
  1181. t = r.length;
  1182. while (t--)
  1183. n = r[t],
  1184. e[n] = o[n];
  1185. return e.target || (e.target = o.srcElement || a),
  1186. 3 === e.target.nodeType && (e.target = e.target.parentNode),
  1187. e.metaKey = !!e.metaKey,
  1188. s.filter ? s.filter(e, o) : e
  1189. },
  1190. props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
  1191. fixHooks: {},
  1192. keyHooks: {
  1193. props: "char charCode key keyCode".split(" "),
  1194. filter: function(e, t) {
  1195. return null == e.which && (e.which = null != t.charCode ? t.charCode : t.keyCode),
  1196. e
  1197. }
  1198. },
  1199. mouseHooks: {
  1200. props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
  1201. filter: function(e, n) {
  1202. var r, i, o, s = n.button, l = n.fromElement;
  1203. return null == e.pageX && null != n.clientX && (i = e.target.ownerDocument || a,
  1204. o = i.documentElement,
  1205. r = i.body,
  1206. e.pageX = n.clientX + (o && o.scrollLeft || r && r.scrollLeft || 0) - (o && o.clientLeft || r && r.clientLeft || 0),
  1207. e.pageY = n.clientY + (o && o.scrollTop || r && r.scrollTop || 0) - (o && o.clientTop || r && r.clientTop || 0)),
  1208. !e.relatedTarget && l && (e.relatedTarget = l === e.target ? n.toElement : l),
  1209. e.which || s === t || (e.which = 1 & s ? 1 : 2 & s ? 3 : 4 & s ? 2 : 0),
  1210. e
  1211. }
  1212. },
  1213. special: {
  1214. load: {
  1215. noBubble: !0
  1216. },
  1217. focus: {
  1218. trigger: function() {
  1219. if (this !== at() && this.focus)
  1220. try {
  1221. return this.focus(),
  1222. !1
  1223. } catch (e) {}
  1224. },
  1225. delegateType: "focusin"
  1226. },
  1227. blur: {
  1228. trigger: function() {
  1229. return this === at() && this.blur ? (this.blur(),
  1230. !1) : t
  1231. },
  1232. delegateType: "focusout"
  1233. },
  1234. click: {
  1235. trigger: function() {
  1236. return x.nodeName(this, "input") && "checkbox" === this.type && this.click ? (this.click(),
  1237. !1) : t
  1238. },
  1239. _default: function(e) {
  1240. return x.nodeName(e.target, "a")
  1241. }
  1242. },
  1243. beforeunload: {
  1244. postDispatch: function(e) {
  1245. e.result !== t && (e.originalEvent.returnValue = e.result)
  1246. }
  1247. }
  1248. },
  1249. simulate: function(e, t, n, r) {
  1250. var i = x.extend(new x.Event, n, {
  1251. type: e,
  1252. isSimulated: !0,
  1253. originalEvent: {}
  1254. });
  1255. r ? x.event.trigger(i, null, t) : x.event.dispatch.call(t, i),
  1256. i.isDefaultPrevented() && n.preventDefault()
  1257. }
  1258. },
  1259. x.removeEvent = a.removeEventListener ? function(e, t, n) {
  1260. e.removeEventListener && e.removeEventListener(t, n, !1)
  1261. }
  1262. : function(e, t, n) {
  1263. var r = "on" + t;
  1264. e.detachEvent && (typeof e[r] === i && (e[r] = null),
  1265. e.detachEvent(r, n))
  1266. }
  1267. ,
  1268. x.Event = function(e, n) {
  1269. return this instanceof x.Event ? (e && e.type ? (this.originalEvent = e,
  1270. this.type = e.type,
  1271. this.isDefaultPrevented = e.defaultPrevented || e.returnValue === !1 || e.getPreventDefault && e.getPreventDefault() ? it : ot) : this.type = e,
  1272. n && x.extend(this, n),
  1273. this.timeStamp = e && e.timeStamp || x.now(),
  1274. this[x.expando] = !0,
  1275. t) : new x.Event(e,n)
  1276. }
  1277. ,
  1278. x.Event.prototype = {
  1279. isDefaultPrevented: ot,
  1280. isPropagationStopped: ot,
  1281. isImmediatePropagationStopped: ot,
  1282. preventDefault: function() {
  1283. var e = this.originalEvent;
  1284. this.isDefaultPrevented = it,
  1285. e && (e.preventDefault ? e.preventDefault() : e.returnValue = !1)
  1286. },
  1287. stopPropagation: function() {
  1288. var e = this.originalEvent;
  1289. this.isPropagationStopped = it,
  1290. e && (e.stopPropagation && e.stopPropagation(),
  1291. e.cancelBubble = !0)
  1292. },
  1293. stopImmediatePropagation: function() {
  1294. this.isImmediatePropagationStopped = it,
  1295. this.stopPropagation()
  1296. }
  1297. },
  1298. x.each({
  1299. mouseenter: "mouseover",
  1300. mouseleave: "mouseout"
  1301. }, function(e, t) {
  1302. x.event.special[e] = {
  1303. delegateType: t,
  1304. bindType: t,
  1305. handle: function(e) {
  1306. var n, r = this, i = e.relatedTarget, o = e.handleObj;
  1307. return (!i || i !== r && !x.contains(r, i)) && (e.type = o.origType,
  1308. n = o.handler.apply(this, arguments),
  1309. e.type = t),
  1310. n
  1311. }
  1312. }
  1313. }),
  1314. x.support.submitBubbles || (x.event.special.submit = {
  1315. setup: function() {
  1316. return x.nodeName(this, "form") ? !1 : (x.event.add(this, "click._submit keypress._submit", function(e) {
  1317. var n = e.target
  1318. , r = x.nodeName(n, "input") || x.nodeName(n, "button") ? n.form : t;
  1319. r && !x._data(r, "submitBubbles") && (x.event.add(r, "submit._submit", function(e) {
  1320. e._submit_bubble = !0
  1321. }),
  1322. x._data(r, "submitBubbles", !0))
  1323. }),
  1324. t)
  1325. },
  1326. postDispatch: function(e) {
  1327. e._submit_bubble && (delete e._submit_bubble,
  1328. this.parentNode && !e.isTrigger && x.event.simulate("submit", this.parentNode, e, !0))
  1329. },
  1330. teardown: function() {
  1331. return x.nodeName(this, "form") ? !1 : (x.event.remove(this, "._submit"),
  1332. t)
  1333. }
  1334. }),
  1335. x.support.changeBubbles || (x.event.special.change = {
  1336. setup: function() {
  1337. return Z.test(this.nodeName) ? (("checkbox" === this.type || "radio" === this.type) && (x.event.add(this, "propertychange._change", function(e) {
  1338. "checked" === e.originalEvent.propertyName && (this._just_changed = !0)
  1339. }),
  1340. x.event.add(this, "click._change", function(e) {
  1341. this._just_changed && !e.isTrigger && (this._just_changed = !1),
  1342. x.event.simulate("change", this, e, !0)
  1343. })),
  1344. !1) : (x.event.add(this, "beforeactivate._change", function(e) {
  1345. var t = e.target;
  1346. Z.test(t.nodeName) && !x._data(t, "changeBubbles") && (x.event.add(t, "change._change", function(e) {
  1347. !this.parentNode || e.isSimulated || e.isTrigger || x.event.simulate("change", this.parentNode, e, !0)
  1348. }),
  1349. x._data(t, "changeBubbles", !0))
  1350. }),
  1351. t)
  1352. },
  1353. handle: function(e) {
  1354. var n = e.target;
  1355. return this !== n || e.isSimulated || e.isTrigger || "radio" !== n.type && "checkbox" !== n.type ? e.handleObj.handler.apply(this, arguments) : t
  1356. },
  1357. teardown: function() {
  1358. return x.event.remove(this, "._change"),
  1359. !Z.test(this.nodeName)
  1360. }
  1361. }),
  1362. x.support.focusinBubbles || x.each({
  1363. focus: "focusin",
  1364. blur: "focusout"
  1365. }, function(e, t) {
  1366. var n = 0
  1367. , r = function(e) {
  1368. x.event.simulate(t, e.target, x.event.fix(e), !0)
  1369. };
  1370. x.event.special[t] = {
  1371. setup: function() {
  1372. 0 === n++ && a.addEventListener(e, r, !0)
  1373. },
  1374. teardown: function() {
  1375. 0 === --n && a.removeEventListener(e, r, !0)
  1376. }
  1377. }
  1378. }),
  1379. x.fn.extend({
  1380. on: function(e, n, r, i, o) {
  1381. var a, s;
  1382. if ("object" == typeof e) {
  1383. "string" != typeof n && (r = r || n,
  1384. n = t);
  1385. for (a in e)
  1386. this.on(a, n, r, e[a], o);
  1387. return this
  1388. }
  1389. if (null == r && null == i ? (i = n,
  1390. r = n = t) : null == i && ("string" == typeof n ? (i = r,
  1391. r = t) : (i = r,
  1392. r = n,
  1393. n = t)),
  1394. i === !1)
  1395. i = ot;
  1396. else if (!i)
  1397. return this;
  1398. return 1 === o && (s = i,
  1399. i = function(e) {
  1400. return x().off(e),
  1401. s.apply(this, arguments)
  1402. }
  1403. ,
  1404. i.guid = s.guid || (s.guid = x.guid++)),
  1405. this.each(function() {
  1406. x.event.add(this, e, i, r, n)
  1407. })
  1408. },
  1409. one: function(e, t, n, r) {
  1410. return this.on(e, t, n, r, 1)
  1411. },
  1412. off: function(e, n, r) {
  1413. var i, o;
  1414. if (e && e.preventDefault && e.handleObj)
  1415. return i = e.handleObj,
  1416. x(e.delegateTarget).off(i.namespace ? i.origType + "." + i.namespace : i.origType, i.selector, i.handler),
  1417. this;
  1418. if ("object" == typeof e) {
  1419. for (o in e)
  1420. this.off(o, n, e[o]);
  1421. return this
  1422. }
  1423. return (n === !1 || "function" == typeof n) && (r = n,
  1424. n = t),
  1425. r === !1 && (r = ot),
  1426. this.each(function() {
  1427. x.event.remove(this, e, r, n)
  1428. })
  1429. },
  1430. trigger: function(e, t) {
  1431. return this.each(function() {
  1432. x.event.trigger(e, t, this)
  1433. })
  1434. },
  1435. triggerHandler: function(e, n) {
  1436. var r = this[0];
  1437. return r ? x.event.trigger(e, n, r, !0) : t
  1438. }
  1439. });
  1440. var st = /^.[^:#\[\.,]*$/
  1441. , lt = /^(?:parents|prev(?:Until|All))/
  1442. , ut = x.expr.match.needsContext
  1443. , ct = {
  1444. children: !0,
  1445. contents: !0,
  1446. next: !0,
  1447. prev: !0
  1448. };
  1449. x.fn.extend({
  1450. find: function(e) {
  1451. var t, n = [], r = this, i = r.length;
  1452. if ("string" != typeof e)
  1453. return this.pushStack(x(e).filter(function() {
  1454. for (t = 0; i > t; t++)
  1455. if (x.contains(r[t], this))
  1456. return !0
  1457. }));
  1458. for (t = 0; i > t; t++)
  1459. x.find(e, r[t], n);
  1460. return n = this.pushStack(i > 1 ? x.unique(n) : n),
  1461. n.selector = this.selector ? this.selector + " " + e : e,
  1462. n
  1463. },
  1464. has: function(e) {
  1465. var t, n = x(e, this), r = n.length;
  1466. return this.filter(function() {
  1467. for (t = 0; r > t; t++)
  1468. if (x.contains(this, n[t]))
  1469. return !0
  1470. })
  1471. },
  1472. not: function(e) {
  1473. return this.pushStack(ft(this, e || [], !0))
  1474. },
  1475. filter: function(e) {
  1476. return this.pushStack(ft(this, e || [], !1))
  1477. },
  1478. is: function(e) {
  1479. return !!ft(this, "string" == typeof e && ut.test(e) ? x(e) : e || [], !1).length
  1480. },
  1481. closest: function(e, t) {
  1482. var n, r = 0, i = this.length, o = [], a = ut.test(e) || "string" != typeof e ? x(e, t || this.context) : 0;
  1483. for (; i > r; r++)
  1484. for (n = this[r]; n && n !== t; n = n.parentNode)
  1485. if (11 > n.nodeType && (a ? a.index(n) > -1 : 1 === n.nodeType && x.find.matchesSelector(n, e))) {
  1486. n = o.push(n);
  1487. break
  1488. }
  1489. return this.pushStack(o.length > 1 ? x.unique(o) : o)
  1490. },
  1491. index: function(e) {
  1492. return e ? "string" == typeof e ? x.inArray(this[0], x(e)) : x.inArray(e.jquery ? e[0] : e, this) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1
  1493. },
  1494. add: function(e, t) {
  1495. var n = "string" == typeof e ? x(e, t) : x.makeArray(e && e.nodeType ? [e] : e)
  1496. , r = x.merge(this.get(), n);
  1497. return this.pushStack(x.unique(r))
  1498. },
  1499. addBack: function(e) {
  1500. return this.add(null == e ? this.prevObject : this.prevObject.filter(e))
  1501. }
  1502. });
  1503. function pt(e, t) {
  1504. do
  1505. e = e[t];
  1506. while (e && 1 !== e.nodeType);
  1507. return e
  1508. }
  1509. x.each({
  1510. parent: function(e) {
  1511. var t = e.parentNode;
  1512. return t && 11 !== t.nodeType ? t : null
  1513. },
  1514. parents: function(e) {
  1515. return x.dir(e, "parentNode")
  1516. },
  1517. parentsUntil: function(e, t, n) {
  1518. return x.dir(e, "parentNode", n)
  1519. },
  1520. next: function(e) {
  1521. return pt(e, "nextSibling")
  1522. },
  1523. prev: function(e) {
  1524. return pt(e, "previousSibling")
  1525. },
  1526. nextAll: function(e) {
  1527. return x.dir(e, "nextSibling")
  1528. },
  1529. prevAll: function(e) {
  1530. return x.dir(e, "previousSibling")
  1531. },
  1532. nextUntil: function(e, t, n) {
  1533. return x.dir(e, "nextSibling", n)
  1534. },
  1535. prevUntil: function(e, t, n) {
  1536. return x.dir(e, "previousSibling", n)
  1537. },
  1538. siblings: function(e) {
  1539. return x.sibling((e.parentNode || {}).firstChild, e)
  1540. },
  1541. children: function(e) {
  1542. return x.sibling(e.firstChild)
  1543. },
  1544. contents: function(e) {
  1545. return x.nodeName(e, "iframe") ? e.contentDocument || e.contentWindow.document : x.merge([], e.childNodes)
  1546. }
  1547. }, function(e, t) {
  1548. x.fn[e] = function(n, r) {
  1549. var i = x.map(this, t, n);
  1550. return "Until" !== e.slice(-5) && (r = n),
  1551. r && "string" == typeof r && (i = x.filter(r, i)),
  1552. this.length > 1 && (ct[e] || (i = x.unique(i)),
  1553. lt.test(e) && (i = i.reverse())),
  1554. this.pushStack(i)
  1555. }
  1556. }),
  1557. x.extend({
  1558. filter: function(e, t, n) {
  1559. var r = t[0];
  1560. return n && (e = ":not(" + e + ")"),
  1561. 1 === t.length && 1 === r.nodeType ? x.find.matchesSelector(r, e) ? [r] : [] : x.find.matches(e, x.grep(t, function(e) {
  1562. return 1 === e.nodeType
  1563. }))
  1564. },
  1565. dir: function(e, n, r) {
  1566. var i = []
  1567. , o = e[n];
  1568. while (o && 9 !== o.nodeType && (r === t || 1 !== o.nodeType || !x(o).is(r)))
  1569. 1 === o.nodeType && i.push(o),
  1570. o = o[n];
  1571. return i
  1572. },
  1573. sibling: function(e, t) {
  1574. var n = [];
  1575. for (; e; e = e.nextSibling)
  1576. 1 === e.nodeType && e !== t && n.push(e);
  1577. return n
  1578. }
  1579. });
  1580. function ft(e, t, n) {
  1581. if (x.isFunction(t))
  1582. return x.grep(e, function(e, r) {
  1583. return !!t.call(e, r, e) !== n
  1584. });
  1585. if (t.nodeType)
  1586. return x.grep(e, function(e) {
  1587. return e === t !== n
  1588. });
  1589. if ("string" == typeof t) {
  1590. if (st.test(t))
  1591. return x.filter(t, e, n);
  1592. t = x.filter(t, e)
  1593. }
  1594. return x.grep(e, function(e) {
  1595. return x.inArray(e, t) >= 0 !== n
  1596. })
  1597. }
  1598. function dt(e) {
  1599. var t = ht.split("|")
  1600. , n = e.createDocumentFragment();
  1601. if (n.createElement)
  1602. while (t.length)
  1603. n.createElement(t.pop());
  1604. return n
  1605. }
  1606. var ht = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video"
  1607. , gt = / jQuery\d+="(?:null|\d+)"/g
  1608. , mt = RegExp("<(?:" + ht + ")[\\s/>]", "i")
  1609. , yt = /^\s+/
  1610. , vt = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi
  1611. , bt = /<([\w:]+)/
  1612. , xt = /<tbody/i
  1613. , wt = /<|&#?\w+;/
  1614. , Tt = /<(?:script|style|link)/i
  1615. , Ct = /^(?:checkbox|radio)$/i
  1616. , Nt = /checked\s*(?:[^=]|=\s*.checked.)/i
  1617. , kt = /^$|\/(?:java|ecma)script/i
  1618. , Et = /^true\/(.*)/
  1619. , St = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g
  1620. , At = {
  1621. option: [1, "<select multiple='multiple'>", "</select>"],
  1622. legend: [1, "<fieldset>", "</fieldset>"],
  1623. area: [1, "<map>", "</map>"],
  1624. param: [1, "<object>", "</object>"],
  1625. thead: [1, "<table>", "</table>"],
  1626. tr: [2, "<table><tbody>", "</tbody></table>"],
  1627. col: [2, "<table><tbody></tbody><colgroup>", "</colgroup></table>"],
  1628. td: [3, "<table><tbody><tr>", "</tr></tbody></table>"],
  1629. _default: x.support.htmlSerialize ? [0, "", ""] : [1, "X<div>", "</div>"]
  1630. }
  1631. , jt = dt(a)
  1632. , Dt = jt.appendChild(a.createElement("div"));
  1633. At.optgroup = At.option,
  1634. At.tbody = At.tfoot = At.colgroup = At.caption = At.thead,
  1635. At.th = At.td,
  1636. x.fn.extend({
  1637. text: function(e) {
  1638. return x.access(this, function(e) {
  1639. return e === t ? x.text(this) : this.empty().append((this[0] && this[0].ownerDocument || a).createTextNode(e))
  1640. }, null, e, arguments.length)
  1641. },
  1642. append: function() {
  1643. return this.domManip(arguments, function(e) {
  1644. if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
  1645. var t = Lt(this, e);
  1646. t.appendChild(e)
  1647. }
  1648. })
  1649. },
  1650. prepend: function() {
  1651. return this.domManip(arguments, function(e) {
  1652. if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
  1653. var t = Lt(this, e);
  1654. t.insertBefore(e, t.firstChild)
  1655. }
  1656. })
  1657. },
  1658. before: function() {
  1659. return this.domManip(arguments, function(e) {
  1660. this.parentNode && this.parentNode.insertBefore(e, this)
  1661. })
  1662. },
  1663. after: function() {
  1664. return this.domManip(arguments, function(e) {
  1665. this.parentNode && this.parentNode.insertBefore(e, this.nextSibling)
  1666. })
  1667. },
  1668. remove: function(e, t) {
  1669. var n, r = e ? x.filter(e, this) : this, i = 0;
  1670. for (; null != (n = r[i]); i++)
  1671. t || 1 !== n.nodeType || x.cleanData(Ft(n)),
  1672. n.parentNode && (t && x.contains(n.ownerDocument, n) && _t(Ft(n, "script")),
  1673. n.parentNode.removeChild(n));
  1674. return this
  1675. },
  1676. empty: function() {
  1677. var e, t = 0;
  1678. for (; null != (e = this[t]); t++) {
  1679. 1 === e.nodeType && x.cleanData(Ft(e, !1));
  1680. while (e.firstChild)
  1681. e.removeChild(e.firstChild);
  1682. e.options && x.nodeName(e, "select") && (e.options.length = 0)
  1683. }
  1684. return this
  1685. },
  1686. clone: function(e, t) {
  1687. return e = null == e ? !1 : e,
  1688. t = null == t ? e : t,
  1689. this.map(function() {
  1690. return x.clone(this, e, t)
  1691. })
  1692. },
  1693. html: function(e) {
  1694. return x.access(this, function(e) {
  1695. var n = this[0] || {}
  1696. , r = 0
  1697. , i = this.length;
  1698. if (e === t)
  1699. return 1 === n.nodeType ? n.innerHTML.replace(gt, "") : t;
  1700. if (!("string" != typeof e || Tt.test(e) || !x.support.htmlSerialize && mt.test(e) || !x.support.leadingWhitespace && yt.test(e) || At[(bt.exec(e) || ["", ""])[1].toLowerCase()])) {
  1701. e = e.replace(vt, "<$1></$2>");
  1702. try {
  1703. for (; i > r; r++)
  1704. n = this[r] || {},
  1705. 1 === n.nodeType && (x.cleanData(Ft(n, !1)),
  1706. n.innerHTML = e);
  1707. n = 0
  1708. } catch (o) {}
  1709. }
  1710. n && this.empty().append(e)
  1711. }, null, e, arguments.length)
  1712. },
  1713. replaceWith: function() {
  1714. var e = x.map(this, function(e) {
  1715. return [e.nextSibling, e.parentNode]
  1716. })
  1717. , t = 0;
  1718. return this.domManip(arguments, function(n) {
  1719. var r = e[t++]
  1720. , i = e[t++];
  1721. i && (r && r.parentNode !== i && (r = this.nextSibling),
  1722. x(this).remove(),
  1723. i.insertBefore(n, r))
  1724. }, !0),
  1725. t ? this : this.remove()
  1726. },
  1727. detach: function(e) {
  1728. return this.remove(e, !0)
  1729. },
  1730. domManip: function(e, t, n) {
  1731. e = d.apply([], e);
  1732. var r, i, o, a, s, l, u = 0, c = this.length, p = this, f = c - 1, h = e[0], g = x.isFunction(h);
  1733. if (g || !(1 >= c || "string" != typeof h || x.support.checkClone) && Nt.test(h))
  1734. return this.each(function(r) {
  1735. var i = p.eq(r);
  1736. g && (e[0] = h.call(this, r, i.html())),
  1737. i.domManip(e, t, n)
  1738. });
  1739. if (c && (l = x.buildFragment(e, this[0].ownerDocument, !1, !n && this),
  1740. r = l.firstChild,
  1741. 1 === l.childNodes.length && (l = r),
  1742. r)) {
  1743. for (a = x.map(Ft(l, "script"), Ht),
  1744. o = a.length; c > u; u++)
  1745. i = l,
  1746. u !== f && (i = x.clone(i, !0, !0),
  1747. o && x.merge(a, Ft(i, "script"))),
  1748. t.call(this[u], i, u);
  1749. if (o)
  1750. for (s = a[a.length - 1].ownerDocument,
  1751. x.map(a, qt),
  1752. u = 0; o > u; u++)
  1753. i = a[u],
  1754. kt.test(i.type || "") && !x._data(i, "globalEval") && x.contains(s, i) && (i.src ? x._evalUrl(i.src) : x.globalEval((i.text || i.textContent || i.innerHTML || "").replace(St, "")));
  1755. l = r = null
  1756. }
  1757. return this
  1758. }
  1759. });
  1760. function Lt(e, t) {
  1761. return x.nodeName(e, "table") && x.nodeName(1 === t.nodeType ? t : t.firstChild, "tr") ? e.getElementsByTagName("tbody")[0] || e.appendChild(e.ownerDocument.createElement("tbody")) : e
  1762. }
  1763. function Ht(e) {
  1764. return e.type = (null !== x.find.attr(e, "type")) + "/" + e.type,
  1765. e
  1766. }
  1767. function qt(e) {
  1768. var t = Et.exec(e.type);
  1769. return t ? e.type = t[1] : e.removeAttribute("type"),
  1770. e
  1771. }
  1772. function _t(e, t) {
  1773. var n, r = 0;
  1774. for (; null != (n = e[r]); r++)
  1775. x._data(n, "globalEval", !t || x._data(t[r], "globalEval"))
  1776. }
  1777. function Mt(e, t) {
  1778. if (1 === t.nodeType && x.hasData(e)) {
  1779. var n, r, i, o = x._data(e), a = x._data(t, o), s = o.events;
  1780. if (s) {
  1781. delete a.handle,
  1782. a.events = {};
  1783. for (n in s)
  1784. for (r = 0,
  1785. i = s[n].length; i > r; r++)
  1786. x.event.add(t, n, s[n][r])
  1787. }
  1788. a.data && (a.data = x.extend({}, a.data))
  1789. }
  1790. }
  1791. function Ot(e, t) {
  1792. var n, r, i;
  1793. if (1 === t.nodeType) {
  1794. if (n = t.nodeName.toLowerCase(),
  1795. !x.support.noCloneEvent && t[x.expando]) {
  1796. i = x._data(t);
  1797. for (r in i.events)
  1798. x.removeEvent(t, r, i.handle);
  1799. t.removeAttribute(x.expando)
  1800. }
  1801. "script" === n && t.text !== e.text ? (Ht(t).text = e.text,
  1802. qt(t)) : "object" === n ? (t.parentNode && (t.outerHTML = e.outerHTML),
  1803. x.support.html5Clone && e.innerHTML && !x.trim(t.innerHTML) && (t.innerHTML = e.innerHTML)) : "input" === n && Ct.test(e.type) ? (t.defaultChecked = t.checked = e.checked,
  1804. t.value !== e.value && (t.value = e.value)) : "option" === n ? t.defaultSelected = t.selected = e.defaultSelected : ("input" === n || "textarea" === n) && (t.defaultValue = e.defaultValue)
  1805. }
  1806. }
  1807. x.each({
  1808. appendTo: "append",
  1809. prependTo: "prepend",
  1810. insertBefore: "before",
  1811. insertAfter: "after",
  1812. replaceAll: "replaceWith"
  1813. }, function(e, t) {
  1814. x.fn[e] = function(e) {
  1815. var n, r = 0, i = [], o = x(e), a = o.length - 1;
  1816. for (; a >= r; r++)
  1817. n = r === a ? this : this.clone(!0),
  1818. x(o[r])[t](n),
  1819. h.apply(i, n.get());
  1820. return this.pushStack(i)
  1821. }
  1822. });
  1823. function Ft(e, n) {
  1824. var r, o, a = 0, s = typeof e.getElementsByTagName !== i ? e.getElementsByTagName(n || "*") : typeof e.querySelectorAll !== i ? e.querySelectorAll(n || "*") : t;
  1825. if (!s)
  1826. for (s = [],
  1827. r = e.childNodes || e; null != (o = r[a]); a++)
  1828. !n || x.nodeName(o, n) ? s.push(o) : x.merge(s, Ft(o, n));
  1829. return n === t || n && x.nodeName(e, n) ? x.merge([e], s) : s
  1830. }
  1831. function Bt(e) {
  1832. Ct.test(e.type) && (e.defaultChecked = e.checked)
  1833. }
  1834. x.extend({
  1835. clone: function(e, t, n) {
  1836. var r, i, o, a, s, l = x.contains(e.ownerDocument, e);
  1837. if (x.support.html5Clone || x.isXMLDoc(e) || !mt.test("<" + e.nodeName + ">") ? o = e.cloneNode(!0) : (Dt.innerHTML = e.outerHTML,
  1838. Dt.removeChild(o = Dt.firstChild)),
  1839. !(x.support.noCloneEvent && x.support.noCloneChecked || 1 !== e.nodeType && 11 !== e.nodeType || x.isXMLDoc(e)))
  1840. for (r = Ft(o),
  1841. s = Ft(e),
  1842. a = 0; null != (i = s[a]); ++a)
  1843. r[a] && Ot(i, r[a]);
  1844. if (t)
  1845. if (n)
  1846. for (s = s || Ft(e),
  1847. r = r || Ft(o),
  1848. a = 0; null != (i = s[a]); a++)
  1849. Mt(i, r[a]);
  1850. else
  1851. Mt(e, o);
  1852. return r = Ft(o, "script"),
  1853. r.length > 0 && _t(r, !l && Ft(e, "script")),
  1854. r = s = i = null,
  1855. o
  1856. },
  1857. buildFragment: function(e, t, n, r) {
  1858. var i, o, a, s, l, u, c, p = e.length, f = dt(t), d = [], h = 0;
  1859. for (; p > h; h++)
  1860. if (o = e[h],
  1861. o || 0 === o)
  1862. if ("object" === x.type(o))
  1863. x.merge(d, o.nodeType ? [o] : o);
  1864. else if (wt.test(o)) {
  1865. s = s || f.appendChild(t.createElement("div")),
  1866. l = (bt.exec(o) || ["", ""])[1].toLowerCase(),
  1867. c = At[l] || At._default,
  1868. s.innerHTML = c[1] + o.replace(vt, "<$1></$2>") + c[2],
  1869. i = c[0];
  1870. while (i--)
  1871. s = s.lastChild;
  1872. if (!x.support.leadingWhitespace && yt.test(o) && d.push(t.createTextNode(yt.exec(o)[0])),
  1873. !x.support.tbody) {
  1874. o = "table" !== l || xt.test(o) ? "<table>" !== c[1] || xt.test(o) ? 0 : s : s.firstChild,
  1875. i = o && o.childNodes.length;
  1876. while (i--)
  1877. x.nodeName(u = o.childNodes[i], "tbody") && !u.childNodes.length && o.removeChild(u)
  1878. }
  1879. x.merge(d, s.childNodes),
  1880. s.textContent = "";
  1881. while (s.firstChild)
  1882. s.removeChild(s.firstChild);
  1883. s = f.lastChild
  1884. } else
  1885. d.push(t.createTextNode(o));
  1886. s && f.removeChild(s),
  1887. x.support.appendChecked || x.grep(Ft(d, "input"), Bt),
  1888. h = 0;
  1889. while (o = d[h++])
  1890. if ((!r || -1 === x.inArray(o, r)) && (a = x.contains(o.ownerDocument, o),
  1891. s = Ft(f.appendChild(o), "script"),
  1892. a && _t(s),
  1893. n)) {
  1894. i = 0;
  1895. while (o = s[i++])
  1896. kt.test(o.type || "") && n.push(o)
  1897. }
  1898. return s = null,
  1899. f
  1900. },
  1901. cleanData: function(e, t) {
  1902. var n, r, o, a, s = 0, l = x.expando, u = x.cache, c = x.support.deleteExpando, f = x.event.special;
  1903. for (; null != (n = e[s]); s++)
  1904. if ((t || x.acceptData(n)) && (o = n[l],
  1905. a = o && u[o])) {
  1906. if (a.events)
  1907. for (r in a.events)
  1908. f[r] ? x.event.remove(n, r) : x.removeEvent(n, r, a.handle);
  1909. u[o] && (delete u[o],
  1910. c ? delete n[l] : typeof n.removeAttribute !== i ? n.removeAttribute(l) : n[l] = null,
  1911. p.push(o))
  1912. }
  1913. },
  1914. _evalUrl: function(e) {
  1915. return x.ajax({
  1916. url: e,
  1917. type: "GET",
  1918. dataType: "script",
  1919. async: !1,
  1920. global: !1,
  1921. "throws": !0
  1922. })
  1923. }
  1924. }),
  1925. x.fn.extend({
  1926. wrapAll: function(e) {
  1927. if (x.isFunction(e))
  1928. return this.each(function(t) {
  1929. x(this).wrapAll(e.call(this, t))
  1930. });
  1931. if (this[0]) {
  1932. var t = x(e, this[0].ownerDocument).eq(0).clone(!0);
  1933. this[0].parentNode && t.insertBefore(this[0]),
  1934. t.map(function() {
  1935. var e = this;
  1936. while (e.firstChild && 1 === e.firstChild.nodeType)
  1937. e = e.firstChild;
  1938. return e
  1939. }).append(this)
  1940. }
  1941. return this
  1942. },
  1943. wrapInner: function(e) {
  1944. return x.isFunction(e) ? this.each(function(t) {
  1945. x(this).wrapInner(e.call(this, t))
  1946. }) : this.each(function() {
  1947. var t = x(this)
  1948. , n = t.contents();
  1949. n.length ? n.wrapAll(e) : t.append(e)
  1950. })
  1951. },
  1952. wrap: function(e) {
  1953. var t = x.isFunction(e);
  1954. return this.each(function(n) {
  1955. x(this).wrapAll(t ? e.call(this, n) : e)
  1956. })
  1957. },
  1958. unwrap: function() {
  1959. return this.parent().each(function() {
  1960. x.nodeName(this, "body") || x(this).replaceWith(this.childNodes)
  1961. }).end()
  1962. }
  1963. });
  1964. var Pt, Rt, Wt, $t = /alpha\([^)]*\)/i, It = /opacity\s*=\s*([^)]*)/, zt = /^(top|right|bottom|left)$/, Xt = /^(none|table(?!-c[ea]).+)/, Ut = /^margin/, Vt = RegExp("^(" + w + ")(.*)$", "i"), Yt = RegExp("^(" + w + ")(?!px)[a-z%]+$", "i"), Jt = RegExp("^([+-])=(" + w + ")", "i"), Gt = {
  1965. BODY: "block"
  1966. }, Qt = {
  1967. position: "absolute",
  1968. visibility: "hidden",
  1969. display: "block"
  1970. }, Kt = {
  1971. letterSpacing: 0,
  1972. fontWeight: 400
  1973. }, Zt = ["Top", "Right", "Bottom", "Left"], en = ["Webkit", "O", "Moz", "ms"];
  1974. function tn(e, t) {
  1975. if (t in e)
  1976. return t;
  1977. var n = t.charAt(0).toUpperCase() + t.slice(1)
  1978. , r = t
  1979. , i = en.length;
  1980. while (i--)
  1981. if (t = en[i] + n,
  1982. t in e)
  1983. return t;
  1984. return r
  1985. }
  1986. function nn(e, t) {
  1987. return e = t || e,
  1988. "none" === x.css(e, "display") || !x.contains(e.ownerDocument, e)
  1989. }
  1990. function rn(e, t) {
  1991. var n, r, i, o = [], a = 0, s = e.length;
  1992. for (; s > a; a++)
  1993. r = e[a],
  1994. r.style && (o[a] = x._data(r, "olddisplay"),
  1995. n = r.style.display,
  1996. t ? (o[a] || "none" !== n || (r.style.display = ""),
  1997. "" === r.style.display && nn(r) && (o[a] = x._data(r, "olddisplay", ln(r.nodeName)))) : o[a] || (i = nn(r),
  1998. (n && "none" !== n || !i) && x._data(r, "olddisplay", i ? n : x.css(r, "display"))));
  1999. for (a = 0; s > a; a++)
  2000. r = e[a],
  2001. r.style && (t && "none" !== r.style.display && "" !== r.style.display || (r.style.display = t ? o[a] || "" : "none"));
  2002. return e
  2003. }
  2004. x.fn.extend({
  2005. css: function(e, n) {
  2006. return x.access(this, function(e, n, r) {
  2007. var i, o, a = {}, s = 0;
  2008. if (x.isArray(n)) {
  2009. for (o = Rt(e),
  2010. i = n.length; i > s; s++)
  2011. a[n[s]] = x.css(e, n[s], !1, o);
  2012. return a
  2013. }
  2014. return r !== t ? x.style(e, n, r) : x.css(e, n)
  2015. }, e, n, arguments.length > 1)
  2016. },
  2017. show: function() {
  2018. return rn(this, !0)
  2019. },
  2020. hide: function() {
  2021. return rn(this)
  2022. },
  2023. toggle: function(e) {
  2024. return "boolean" == typeof e ? e ? this.show() : this.hide() : this.each(function() {
  2025. nn(this) ? x(this).show() : x(this).hide()
  2026. })
  2027. }
  2028. }),
  2029. x.extend({
  2030. cssHooks: {
  2031. opacity: {
  2032. get: function(e, t) {
  2033. if (t) {
  2034. var n = Wt(e, "opacity");
  2035. return "" === n ? "1" : n
  2036. }
  2037. }
  2038. }
  2039. },
  2040. cssNumber: {
  2041. columnCount: !0,
  2042. fillOpacity: !0,
  2043. fontWeight: !0,
  2044. lineHeight: !0,
  2045. opacity: !0,
  2046. order: !0,
  2047. orphans: !0,
  2048. widows: !0,
  2049. zIndex: !0,
  2050. zoom: !0
  2051. },
  2052. cssProps: {
  2053. "float": x.support.cssFloat ? "cssFloat" : "styleFloat"
  2054. },
  2055. style: function(e, n, r, i) {
  2056. if (e && 3 !== e.nodeType && 8 !== e.nodeType && e.style) {
  2057. var o, a, s, l = x.camelCase(n), u = e.style;
  2058. if (n = x.cssProps[l] || (x.cssProps[l] = tn(u, l)),
  2059. s = x.cssHooks[n] || x.cssHooks[l],
  2060. r === t)
  2061. return s && "get"in s && (o = s.get(e, !1, i)) !== t ? o : u[n];
  2062. if (a = typeof r,
  2063. "string" === a && (o = Jt.exec(r)) && (r = (o[1] + 1) * o[2] + parseFloat(x.css(e, n)),
  2064. a = "number"),
  2065. !(null == r || "number" === a && isNaN(r) || ("number" !== a || x.cssNumber[l] || (r += "px"),
  2066. x.support.clearCloneStyle || "" !== r || 0 !== n.indexOf("background") || (u[n] = "inherit"),
  2067. s && "set"in s && (r = s.set(e, r, i)) === t)))
  2068. try {
  2069. u[n] = r
  2070. } catch (c) {}
  2071. }
  2072. },
  2073. css: function(e, n, r, i) {
  2074. var o, a, s, l = x.camelCase(n);
  2075. return n = x.cssProps[l] || (x.cssProps[l] = tn(e.style, l)),
  2076. s = x.cssHooks[n] || x.cssHooks[l],
  2077. s && "get"in s && (a = s.get(e, !0, r)),
  2078. a === t && (a = Wt(e, n, i)),
  2079. "normal" === a && n in Kt && (a = Kt[n]),
  2080. "" === r || r ? (o = parseFloat(a),
  2081. r === !0 || x.isNumeric(o) ? o || 0 : a) : a
  2082. }
  2083. }),
  2084. e.getComputedStyle ? (Rt = function(t) {
  2085. return e.getComputedStyle(t, null)
  2086. }
  2087. ,
  2088. Wt = function(e, n, r) {
  2089. var i, o, a, s = r || Rt(e), l = s ? s.getPropertyValue(n) || s[n] : t, u = e.style;
  2090. return s && ("" !== l || x.contains(e.ownerDocument, e) || (l = x.style(e, n)),
  2091. Yt.test(l) && Ut.test(n) && (i = u.width,
  2092. o = u.minWidth,
  2093. a = u.maxWidth,
  2094. u.minWidth = u.maxWidth = u.width = l,
  2095. l = s.width,
  2096. u.width = i,
  2097. u.minWidth = o,
  2098. u.maxWidth = a)),
  2099. l
  2100. }
  2101. ) : a.documentElement.currentStyle && (Rt = function(e) {
  2102. return e.currentStyle
  2103. }
  2104. ,
  2105. Wt = function(e, n, r) {
  2106. var i, o, a, s = r || Rt(e), l = s ? s[n] : t, u = e.style;
  2107. return null == l && u && u[n] && (l = u[n]),
  2108. Yt.test(l) && !zt.test(n) && (i = u.left,
  2109. o = e.runtimeStyle,
  2110. a = o && o.left,
  2111. a && (o.left = e.currentStyle.left),
  2112. u.left = "fontSize" === n ? "1em" : l,
  2113. l = u.pixelLeft + "px",
  2114. u.left = i,
  2115. a && (o.left = a)),
  2116. "" === l ? "auto" : l
  2117. }
  2118. );
  2119. function on(e, t, n) {
  2120. var r = Vt.exec(t);
  2121. return r ? Math.max(0, r[1] - (n || 0)) + (r[2] || "px") : t
  2122. }
  2123. function an(e, t, n, r, i) {
  2124. var o = n === (r ? "border" : "content") ? 4 : "width" === t ? 1 : 0
  2125. , a = 0;
  2126. for (; 4 > o; o += 2)
  2127. "margin" === n && (a += x.css(e, n + Zt[o], !0, i)),
  2128. r ? ("content" === n && (a -= x.css(e, "padding" + Zt[o], !0, i)),
  2129. "margin" !== n && (a -= x.css(e, "border" + Zt[o] + "Width", !0, i))) : (a += x.css(e, "padding" + Zt[o], !0, i),
  2130. "padding" !== n && (a += x.css(e, "border" + Zt[o] + "Width", !0, i)));
  2131. return a
  2132. }
  2133. function sn(e, t, n) {
  2134. var r = !0
  2135. , i = "width" === t ? e.offsetWidth : e.offsetHeight
  2136. , o = Rt(e)
  2137. , a = x.support.boxSizing && "border-box" === x.css(e, "boxSizing", !1, o);
  2138. if (0 >= i || null == i) {
  2139. if (i = Wt(e, t, o),
  2140. (0 > i || null == i) && (i = e.style[t]),
  2141. Yt.test(i))
  2142. return i;
  2143. r = a && (x.support.boxSizingReliable || i === e.style[t]),
  2144. i = parseFloat(i) || 0
  2145. }
  2146. return i + an(e, t, n || (a ? "border" : "content"), r, o) + "px"
  2147. }
  2148. function ln(e) {
  2149. var t = a
  2150. , n = Gt[e];
  2151. return n || (n = un(e, t),
  2152. "none" !== n && n || (Pt = (Pt || x("<iframe frameborder='0' width='0' height='0'/>").css("cssText", "display:block !important")).appendTo(t.documentElement),
  2153. t = (Pt[0].contentWindow || Pt[0].contentDocument).document,
  2154. t.write("<!doctype html><html><body>"),
  2155. t.close(),
  2156. n = un(e, t),
  2157. Pt.detach()),
  2158. Gt[e] = n),
  2159. n
  2160. }
  2161. function un(e, t) {
  2162. var n = x(t.createElement(e)).appendTo(t.body)
  2163. , r = x.css(n[0], "display");
  2164. return n.remove(),
  2165. r
  2166. }
  2167. x.each(["height", "width"], function(e, n) {
  2168. x.cssHooks[n] = {
  2169. get: function(e, r, i) {
  2170. return r ? 0 === e.offsetWidth && Xt.test(x.css(e, "display")) ? x.swap(e, Qt, function() {
  2171. return sn(e, n, i)
  2172. }) : sn(e, n, i) : t
  2173. },
  2174. set: function(e, t, r) {
  2175. var i = r && Rt(e);
  2176. return on(e, t, r ? an(e, n, r, x.support.boxSizing && "border-box" === x.css(e, "boxSizing", !1, i), i) : 0)
  2177. }
  2178. }
  2179. }),
  2180. x.support.opacity || (x.cssHooks.opacity = {
  2181. get: function(e, t) {
  2182. return It.test((t && e.currentStyle ? e.currentStyle.filter : e.style.filter) || "") ? .01 * parseFloat(RegExp.$1) + "" : t ? "1" : ""
  2183. },
  2184. set: function(e, t) {
  2185. var n = e.style
  2186. , r = e.currentStyle
  2187. , i = x.isNumeric(t) ? "alpha(opacity=" + 100 * t + ")" : ""
  2188. , o = r && r.filter || n.filter || "";
  2189. n.zoom = 1,
  2190. (t >= 1 || "" === t) && "" === x.trim(o.replace($t, "")) && n.removeAttribute && (n.removeAttribute("filter"),
  2191. "" === t || r && !r.filter) || (n.filter = $t.test(o) ? o.replace($t, i) : o + " " + i)
  2192. }
  2193. }),
  2194. x(function() {
  2195. x.support.reliableMarginRight || (x.cssHooks.marginRight = {
  2196. get: function(e, n) {
  2197. return n ? x.swap(e, {
  2198. display: "inline-block"
  2199. }, Wt, [e, "marginRight"]) : t
  2200. }
  2201. }),
  2202. !x.support.pixelPosition && x.fn.position && x.each(["top", "left"], function(e, n) {
  2203. x.cssHooks[n] = {
  2204. get: function(e, r) {
  2205. return r ? (r = Wt(e, n),
  2206. Yt.test(r) ? x(e).position()[n] + "px" : r) : t
  2207. }
  2208. }
  2209. })
  2210. }),
  2211. x.expr && x.expr.filters && (x.expr.filters.hidden = function(e) {
  2212. return 0 >= e.offsetWidth && 0 >= e.offsetHeight || !x.support.reliableHiddenOffsets && "none" === (e.style && e.style.display || x.css(e, "display"))
  2213. }
  2214. ,
  2215. x.expr.filters.visible = function(e) {
  2216. return !x.expr.filters.hidden(e)
  2217. }
  2218. ),
  2219. x.each({
  2220. margin: "",
  2221. padding: "",
  2222. border: "Width"
  2223. }, function(e, t) {
  2224. x.cssHooks[e + t] = {
  2225. expand: function(n) {
  2226. var r = 0
  2227. , i = {}
  2228. , o = "string" == typeof n ? n.split(" ") : [n];
  2229. for (; 4 > r; r++)
  2230. i[e + Zt[r] + t] = o[r] || o[r - 2] || o[0];
  2231. return i
  2232. }
  2233. },
  2234. Ut.test(e) || (x.cssHooks[e + t].set = on)
  2235. });
  2236. var cn = /%20/g
  2237. , pn = /\[\]$/
  2238. , fn = /\r?\n/g
  2239. , dn = /^(?:submit|button|image|reset|file)$/i
  2240. , hn = /^(?:input|select|textarea|keygen)/i;
  2241. x.fn.extend({
  2242. serialize: function() {
  2243. return x.param(this.serializeArray())
  2244. },
  2245. serializeArray: function() {
  2246. return this.map(function() {
  2247. var e = x.prop(this, "elements");
  2248. return e ? x.makeArray(e) : this
  2249. }).filter(function() {
  2250. var e = this.type;
  2251. return this.name && !x(this).is(":disabled") && hn.test(this.nodeName) && !dn.test(e) && (this.checked || !Ct.test(e))
  2252. }).map(function(e, t) {
  2253. var n = x(this).val();
  2254. return null == n ? null : x.isArray(n) ? x.map(n, function(e) {
  2255. return {
  2256. name: t.name,
  2257. value: e.replace(fn, "\r\n")
  2258. }
  2259. }) : {
  2260. name: t.name,
  2261. value: n.replace(fn, "\r\n")
  2262. }
  2263. }).get()
  2264. }
  2265. }),
  2266. x.param = function(e, n) {
  2267. var r, i = [], o = function(e, t) {
  2268. t = x.isFunction(t) ? t() : null == t ? "" : t,
  2269. i[i.length] = encodeURIComponent(e) + "=" + encodeURIComponent(t)
  2270. };
  2271. if (n === t && (n = x.ajaxSettings && x.ajaxSettings.traditional),
  2272. x.isArray(e) || e.jquery && !x.isPlainObject(e))
  2273. x.each(e, function() {
  2274. o(this.name, this.value)
  2275. });
  2276. else
  2277. for (r in e)
  2278. gn(r, e[r], n, o);
  2279. return i.join("&").replace(cn, "+")
  2280. }
  2281. ;
  2282. function gn(e, t, n, r) {
  2283. var i;
  2284. if (x.isArray(t))
  2285. x.each(t, function(t, i) {
  2286. n || pn.test(e) ? r(e, i) : gn(e + "[" + ("object" == typeof i ? t : "") + "]", i, n, r)
  2287. });
  2288. else if (n || "object" !== x.type(t))
  2289. r(e, t);
  2290. else
  2291. for (i in t)
  2292. gn(e + "[" + i + "]", t[i], n, r)
  2293. }
  2294. x.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(e, t) {
  2295. x.fn[t] = function(e, n) {
  2296. return arguments.length > 0 ? this.on(t, null, e, n) : this.trigger(t)
  2297. }
  2298. }),
  2299. x.fn.extend({
  2300. hover: function(e, t) {
  2301. return this.mouseenter(e).mouseleave(t || e)
  2302. },
  2303. bind: function(e, t, n) {
  2304. return this.on(e, null, t, n)
  2305. },
  2306. unbind: function(e, t) {
  2307. return this.off(e, null, t)
  2308. },
  2309. delegate: function(e, t, n, r) {
  2310. return this.on(t, e, n, r)
  2311. },
  2312. undelegate: function(e, t, n) {
  2313. return 1 === arguments.length ? this.off(e, "**") : this.off(t, e || "**", n)
  2314. }
  2315. });
  2316. var mn, yn, vn = x.now(), bn = /\?/, xn = /#.*$/, wn = /([?&])_=[^&]*/, Tn = /^(.*?):[ \t]*([^\r\n]*)\r?$/gm, Cn = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, Nn = /^(?:GET|HEAD)$/, kn = /^\/\//, En = /^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/, Sn = x.fn.load, An = {}, jn = {}, Dn = "*/".concat("*");
  2317. try {
  2318. yn = o.href
  2319. } catch (Ln) {
  2320. yn = a.createElement("a"),
  2321. yn.href = "",
  2322. yn = yn.href
  2323. }
  2324. mn = En.exec(yn.toLowerCase()) || [];
  2325. function Hn(e) {
  2326. return function(t, n) {
  2327. "string" != typeof t && (n = t,
  2328. t = "*");
  2329. var r, i = 0, o = t.toLowerCase().match(T) || [];
  2330. if (x.isFunction(n))
  2331. while (r = o[i++])
  2332. "+" === r[0] ? (r = r.slice(1) || "*",
  2333. (e[r] = e[r] || []).unshift(n)) : (e[r] = e[r] || []).push(n)
  2334. }
  2335. }
  2336. function qn(e, n, r, i) {
  2337. var o = {}
  2338. , a = e === jn;
  2339. function s(l) {
  2340. var u;
  2341. return o[l] = !0,
  2342. x.each(e[l] || [], function(e, l) {
  2343. var c = l(n, r, i);
  2344. return "string" != typeof c || a || o[c] ? a ? !(u = c) : t : (n.dataTypes.unshift(c),
  2345. s(c),
  2346. !1)
  2347. }),
  2348. u
  2349. }
  2350. return s(n.dataTypes[0]) || !o["*"] && s("*")
  2351. }
  2352. function _n(e, n) {
  2353. var r, i, o = x.ajaxSettings.flatOptions || {};
  2354. for (i in n)
  2355. n[i] !== t && ((o[i] ? e : r || (r = {}))[i] = n[i]);
  2356. return r && x.extend(!0, e, r),
  2357. e
  2358. }
  2359. x.fn.load = function(e, n, r) {
  2360. if ("string" != typeof e && Sn)
  2361. return Sn.apply(this, arguments);
  2362. var i, o, a, s = this, l = e.indexOf(" ");
  2363. return l >= 0 && (i = e.slice(l, e.length),
  2364. e = e.slice(0, l)),
  2365. x.isFunction(n) ? (r = n,
  2366. n = t) : n && "object" == typeof n && (a = "POST"),
  2367. s.length > 0 && x.ajax({
  2368. url: e,
  2369. type: a,
  2370. dataType: "html",
  2371. data: n
  2372. }).done(function(e) {
  2373. o = arguments,
  2374. s.html(i ? x("<div>").append(x.parseHTML(e)).find(i) : e)
  2375. }).complete(r && function(e, t) {
  2376. s.each(r, o || [e.responseText, t, e])
  2377. }
  2378. ),
  2379. this
  2380. }
  2381. ,
  2382. x.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], function(e, t) {
  2383. x.fn[t] = function(e) {
  2384. return this.on(t, e)
  2385. }
  2386. }),
  2387. x.extend({
  2388. active: 0,
  2389. lastModified: {},
  2390. etag: {},
  2391. ajaxSettings: {
  2392. url: yn,
  2393. type: "GET",
  2394. isLocal: Cn.test(mn[1]),
  2395. global: !0,
  2396. processData: !0,
  2397. async: !0,
  2398. contentType: "application/x-www-form-urlencoded; charset=UTF-8",
  2399. accepts: {
  2400. "*": Dn,
  2401. text: "text/plain",
  2402. html: "text/html",
  2403. xml: "application/xml, text/xml",
  2404. json: "application/json, text/javascript"
  2405. },
  2406. contents: {
  2407. xml: /xml/,
  2408. html: /html/,
  2409. json: /json/
  2410. },
  2411. responseFields: {
  2412. xml: "responseXML",
  2413. text: "responseText",
  2414. json: "responseJSON"
  2415. },
  2416. converters: {
  2417. "* text": String,
  2418. "text html": !0,
  2419. "text json": x.parseJSON,
  2420. "text xml": x.parseXML
  2421. },
  2422. flatOptions: {
  2423. url: !0,
  2424. context: !0
  2425. }
  2426. },
  2427. ajaxSetup: function(e, t) {
  2428. return t ? _n(_n(e, x.ajaxSettings), t) : _n(x.ajaxSettings, e)
  2429. },
  2430. ajaxPrefilter: Hn(An),
  2431. ajaxTransport: Hn(jn),
  2432. ajax: function(e, n) {
  2433. "object" == typeof e && (n = e,
  2434. e = t),
  2435. n = n || {};
  2436. var r, i, o, a, s, l, u, c, p = x.ajaxSetup({}, n), f = p.context || p, d = p.context && (f.nodeType || f.jquery) ? x(f) : x.event, h = x.Deferred(), g = x.Callbacks("once memory"), m = p.statusCode || {}, y = {}, v = {}, b = 0, w = "canceled", C = {
  2437. readyState: 0,
  2438. getResponseHeader: function(e) {
  2439. var t;
  2440. if (2 === b) {
  2441. if (!c) {
  2442. c = {};
  2443. while (t = Tn.exec(a))
  2444. c[t[1].toLowerCase()] = t[2]
  2445. }
  2446. t = c[e.toLowerCase()]
  2447. }
  2448. return null == t ? null : t
  2449. },
  2450. getAllResponseHeaders: function() {
  2451. return 2 === b ? a : null
  2452. },
  2453. setRequestHeader: function(e, t) {
  2454. var n = e.toLowerCase();
  2455. return b || (e = v[n] = v[n] || e,
  2456. y[e] = t),
  2457. this
  2458. },
  2459. overrideMimeType: function(e) {
  2460. return b || (p.mimeType = e),
  2461. this
  2462. },
  2463. statusCode: function(e) {
  2464. var t;
  2465. if (e)
  2466. if (2 > b)
  2467. for (t in e)
  2468. m[t] = [m[t], e[t]];
  2469. else
  2470. C.always(e[C.status]);
  2471. return this
  2472. },
  2473. abort: function(e) {
  2474. var t = e || w;
  2475. return u && u.abort(t),
  2476. k(0, t),
  2477. this
  2478. }
  2479. };
  2480. if (h.promise(C).complete = g.add,
  2481. C.success = C.done,
  2482. C.error = C.fail,
  2483. p.url = ((e || p.url || yn) + "").replace(xn, "").replace(kn, mn[1] + "//"),
  2484. p.type = n.method || n.type || p.method || p.type,
  2485. p.dataTypes = x.trim(p.dataType || "*").toLowerCase().match(T) || [""],
  2486. null == p.crossDomain && (r = En.exec(p.url.toLowerCase()),
  2487. p.crossDomain = !(!r || r[1] === mn[1] && r[2] === mn[2] && (r[3] || ("http:" === r[1] ? "80" : "443")) === (mn[3] || ("http:" === mn[1] ? "80" : "443")))),
  2488. p.data && p.processData && "string" != typeof p.data && (p.data = x.param(p.data, p.traditional)),
  2489. qn(An, p, n, C),
  2490. 2 === b)
  2491. return C;
  2492. l = p.global,
  2493. l && 0 === x.active++ && x.event.trigger("ajaxStart"),
  2494. p.type = p.type.toUpperCase(),
  2495. p.hasContent = !Nn.test(p.type),
  2496. o = p.url,
  2497. p.hasContent || (p.data && (o = p.url += (bn.test(o) ? "&" : "?") + p.data,
  2498. delete p.data),
  2499. p.cache === !1 && (p.url = wn.test(o) ? o.replace(wn, "$1_=" + vn++) : o + (bn.test(o) ? "&" : "?") + "_=" + vn++)),
  2500. p.ifModified && (x.lastModified[o] && C.setRequestHeader("If-Modified-Since", x.lastModified[o]),
  2501. x.etag[o] && C.setRequestHeader("If-None-Match", x.etag[o])),
  2502. (p.data && p.hasContent && p.contentType !== !1 || n.contentType) && C.setRequestHeader("Content-Type", p.contentType),
  2503. C.setRequestHeader("Accept", p.dataTypes[0] && p.accepts[p.dataTypes[0]] ? p.accepts[p.dataTypes[0]] + ("*" !== p.dataTypes[0] ? ", " + Dn + "; q=0.01" : "") : p.accepts["*"]);
  2504. for (i in p.headers)
  2505. C.setRequestHeader(i, p.headers[i]);
  2506. if (p.beforeSend && (p.beforeSend.call(f, C, p) === !1 || 2 === b))
  2507. return C.abort();
  2508. w = "abort";
  2509. for (i in {
  2510. success: 1,
  2511. error: 1,
  2512. complete: 1
  2513. })
  2514. C[i](p[i]);
  2515. if (u = qn(jn, p, n, C)) {
  2516. C.readyState = 1,
  2517. l && d.trigger("ajaxSend", [C, p]),
  2518. p.async && p.timeout > 0 && (s = setTimeout(function() {
  2519. C.abort("timeout")
  2520. }, p.timeout));
  2521. try {
  2522. b = 1,
  2523. u.send(y, k)
  2524. } catch (N) {
  2525. if (!(2 > b))
  2526. throw N;
  2527. k(-1, N)
  2528. }
  2529. } else
  2530. k(-1, "No Transport");
  2531. function k(e, n, r, i) {
  2532. var c, y, v, w, T, N = n;
  2533. 2 !== b && (b = 2,
  2534. s && clearTimeout(s),
  2535. u = t,
  2536. a = i || "",
  2537. C.readyState = e > 0 ? 4 : 0,
  2538. c = e >= 200 && 300 > e || 304 === e,
  2539. r && (w = Mn(p, C, r)),
  2540. w = On(p, w, C, c),
  2541. c ? (p.ifModified && (T = C.getResponseHeader("Last-Modified"),
  2542. T && (x.lastModified[o] = T),
  2543. T = C.getResponseHeader("etag"),
  2544. T && (x.etag[o] = T)),
  2545. 204 === e || "HEAD" === p.type ? N = "nocontent" : 304 === e ? N = "notmodified" : (N = w.state,
  2546. y = w.data,
  2547. v = w.error,
  2548. c = !v)) : (v = N,
  2549. (e || !N) && (N = "error",
  2550. 0 > e && (e = 0))),
  2551. C.status = e,
  2552. C.statusText = (n || N) + "",
  2553. c ? h.resolveWith(f, [y, N, C]) : h.rejectWith(f, [C, N, v]),
  2554. C.statusCode(m),
  2555. m = t,
  2556. l && d.trigger(c ? "ajaxSuccess" : "ajaxError", [C, p, c ? y : v]),
  2557. g.fireWith(f, [C, N]),
  2558. l && (d.trigger("ajaxComplete", [C, p]),
  2559. --x.active || x.event.trigger("ajaxStop")))
  2560. }
  2561. return C
  2562. },
  2563. getJSON: function(e, t, n) {
  2564. return x.get(e, t, n, "json")
  2565. },
  2566. getScript: function(e, n) {
  2567. return x.get(e, t, n, "script")
  2568. }
  2569. }),
  2570. x.each(["get", "post"], function(e, n) {
  2571. x[n] = function(e, r, i, o) {
  2572. return x.isFunction(r) && (o = o || i,
  2573. i = r,
  2574. r = t),
  2575. x.ajax({
  2576. url: e,
  2577. type: n,
  2578. dataType: o,
  2579. data: r,
  2580. success: i
  2581. })
  2582. }
  2583. });
  2584. function Mn(e, n, r) {
  2585. var i, o, a, s, l = e.contents, u = e.dataTypes;
  2586. while ("*" === u[0])
  2587. u.shift(),
  2588. o === t && (o = e.mimeType || n.getResponseHeader("Content-Type"));
  2589. if (o)
  2590. for (s in l)
  2591. if (l[s] && l[s].test(o)) {
  2592. u.unshift(s);
  2593. break
  2594. }
  2595. if (u[0]in r)
  2596. a = u[0];
  2597. else {
  2598. for (s in r) {
  2599. if (!u[0] || e.converters[s + " " + u[0]]) {
  2600. a = s;
  2601. break
  2602. }
  2603. i || (i = s)
  2604. }
  2605. a = a || i
  2606. }
  2607. return a ? (a !== u[0] && u.unshift(a),
  2608. r[a]) : t
  2609. }
  2610. function On(e, t, n, r) {
  2611. var i, o, a, s, l, u = {}, c = e.dataTypes.slice();
  2612. if (c[1])
  2613. for (a in e.converters)
  2614. u[a.toLowerCase()] = e.converters[a];
  2615. o = c.shift();
  2616. while (o)
  2617. if (e.responseFields[o] && (n[e.responseFields[o]] = t),
  2618. !l && r && e.dataFilter && (t = e.dataFilter(t, e.dataType)),
  2619. l = o,
  2620. o = c.shift())
  2621. if ("*" === o)
  2622. o = l;
  2623. else if ("*" !== l && l !== o) {
  2624. if (a = u[l + " " + o] || u["* " + o],
  2625. !a)
  2626. for (i in u)
  2627. if (s = i.split(" "),
  2628. s[1] === o && (a = u[l + " " + s[0]] || u["* " + s[0]])) {
  2629. a === !0 ? a = u[i] : u[i] !== !0 && (o = s[0],
  2630. c.unshift(s[1]));
  2631. break
  2632. }
  2633. if (a !== !0)
  2634. if (a && e["throws"])
  2635. t = a(t);
  2636. else
  2637. try {
  2638. t = a(t)
  2639. } catch (p) {
  2640. return {
  2641. state: "parsererror",
  2642. error: a ? p : "No conversion from " + l + " to " + o
  2643. }
  2644. }
  2645. }
  2646. return {
  2647. state: "success",
  2648. data: t
  2649. }
  2650. }
  2651. x.ajaxSetup({
  2652. accepts: {
  2653. script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
  2654. },
  2655. contents: {
  2656. script: /(?:java|ecma)script/
  2657. },
  2658. converters: {
  2659. "text script": function(e) {
  2660. return x.globalEval(e),
  2661. e
  2662. }
  2663. }
  2664. }),
  2665. x.ajaxPrefilter("script", function(e) {
  2666. e.cache === t && (e.cache = !1),
  2667. e.crossDomain && (e.type = "GET",
  2668. e.global = !1)
  2669. }),
  2670. x.ajaxTransport("script", function(e) {
  2671. if (e.crossDomain) {
  2672. var n, r = a.head || x("head")[0] || a.documentElement;
  2673. return {
  2674. send: function(t, i) {
  2675. n = a.createElement("script"),
  2676. n.async = !0,
  2677. e.scriptCharset && (n.charset = e.scriptCharset),
  2678. n.src = e.url,
  2679. n.onload = n.onreadystatechange = function(e, t) {
  2680. (t || !n.readyState || /loaded|complete/.test(n.readyState)) && (n.onload = n.onreadystatechange = null,
  2681. n.parentNode && n.parentNode.removeChild(n),
  2682. n = null,
  2683. t || i(200, "success"))
  2684. }
  2685. ,
  2686. r.insertBefore(n, r.firstChild)
  2687. },
  2688. abort: function() {
  2689. n && n.onload(t, !0)
  2690. }
  2691. }
  2692. }
  2693. });
  2694. var Fn = []
  2695. , Bn = /(=)\?(?=&|$)|\?\?/;
  2696. x.ajaxSetup({
  2697. jsonp: "callback",
  2698. jsonpCallback: function() {
  2699. var e = Fn.pop() || x.expando + "_" + vn++;
  2700. return this[e] = !0,
  2701. e
  2702. }
  2703. }),
  2704. x.ajaxPrefilter("json jsonp", function(n, r, i) {
  2705. var o, a, s, l = n.jsonp !== !1 && (Bn.test(n.url) ? "url" : "string" == typeof n.data && !(n.contentType || "").indexOf("application/x-www-form-urlencoded") && Bn.test(n.data) && "data");
  2706. return l || "jsonp" === n.dataTypes[0] ? (o = n.jsonpCallback = x.isFunction(n.jsonpCallback) ? n.jsonpCallback() : n.jsonpCallback,
  2707. l ? n[l] = n[l].replace(Bn, "$1" + o) : n.jsonp !== !1 && (n.url += (bn.test(n.url) ? "&" : "?") + n.jsonp + "=" + o),
  2708. n.converters["script json"] = function() {
  2709. return s || x.error(o + " was not called"),
  2710. s[0]
  2711. }
  2712. ,
  2713. n.dataTypes[0] = "json",
  2714. a = e[o],
  2715. e[o] = function() {
  2716. s = arguments
  2717. }
  2718. ,
  2719. i.always(function() {
  2720. e[o] = a,
  2721. n[o] && (n.jsonpCallback = r.jsonpCallback,
  2722. Fn.push(o)),
  2723. s && x.isFunction(a) && a(s[0]),
  2724. s = a = t
  2725. }),
  2726. "script") : t
  2727. });
  2728. var Pn, Rn, Wn = 0, $n = e.ActiveXObject && function() {
  2729. var e;
  2730. for (e in Pn)
  2731. Pn[e](t, !0)
  2732. }
  2733. ;
  2734. function In() {
  2735. try {
  2736. return new e.XMLHttpRequest
  2737. } catch (t) {}
  2738. }
  2739. function zn() {
  2740. try {
  2741. return new e.ActiveXObject("Microsoft.XMLHTTP")
  2742. } catch (t) {}
  2743. }
  2744. x.ajaxSettings.xhr = e.ActiveXObject ? function() {
  2745. return !this.isLocal && In() || zn()
  2746. }
  2747. : In,
  2748. Rn = x.ajaxSettings.xhr(),
  2749. x.support.cors = !!Rn && "withCredentials"in Rn,
  2750. Rn = x.support.ajax = !!Rn,
  2751. Rn && x.ajaxTransport(function(n) {
  2752. if (!n.crossDomain || x.support.cors) {
  2753. var r;
  2754. return {
  2755. send: function(i, o) {
  2756. var a, s, l = n.xhr();
  2757. if (n.username ? l.open(n.type, n.url, n.async, n.username, n.password) : l.open(n.type, n.url, n.async),
  2758. n.xhrFields)
  2759. for (s in n.xhrFields)
  2760. l[s] = n.xhrFields[s];
  2761. n.mimeType && l.overrideMimeType && l.overrideMimeType(n.mimeType),
  2762. n.crossDomain || i["X-Requested-With"] || (i["X-Requested-With"] = "XMLHttpRequest");
  2763. try {
  2764. for (s in i)
  2765. l.setRequestHeader(s, i[s])
  2766. } catch (u) {}
  2767. l.send(n.hasContent && n.data || null),
  2768. r = function(e, i) {
  2769. var s, u, c, p;
  2770. try {
  2771. if (r && (i || 4 === l.readyState))
  2772. if (r = t,
  2773. a && (l.onreadystatechange = x.noop,
  2774. $n && delete Pn[a]),
  2775. i)
  2776. 4 !== l.readyState && l.abort();
  2777. else {
  2778. p = {},
  2779. s = l.status,
  2780. u = l.getAllResponseHeaders(),
  2781. "string" == typeof l.responseText && (p.text = l.responseText);
  2782. try {
  2783. c = l.statusText
  2784. } catch (f) {
  2785. c = ""
  2786. }
  2787. s || !n.isLocal || n.crossDomain ? 1223 === s && (s = 204) : s = p.text ? 200 : 404
  2788. }
  2789. } catch (d) {
  2790. i || o(-1, d)
  2791. }
  2792. p && o(s, c, p, u)
  2793. }
  2794. ,
  2795. n.async ? 4 === l.readyState ? setTimeout(r) : (a = ++Wn,
  2796. $n && (Pn || (Pn = {},
  2797. x(e).unload($n)),
  2798. Pn[a] = r),
  2799. l.onreadystatechange = r) : r()
  2800. },
  2801. abort: function() {
  2802. r && r(t, !0)
  2803. }
  2804. }
  2805. }
  2806. });
  2807. var Xn, Un, Vn = /^(?:toggle|show|hide)$/, Yn = RegExp("^(?:([+-])=|)(" + w + ")([a-z%]*)$", "i"), Jn = /queueHooks$/, Gn = [nr], Qn = {
  2808. "*": [function(e, t) {
  2809. var n = this.createTween(e, t)
  2810. , r = n.cur()
  2811. , i = Yn.exec(t)
  2812. , o = i && i[3] || (x.cssNumber[e] ? "" : "px")
  2813. , a = (x.cssNumber[e] || "px" !== o && +r) && Yn.exec(x.css(n.elem, e))
  2814. , s = 1
  2815. , l = 20;
  2816. if (a && a[3] !== o) {
  2817. o = o || a[3],
  2818. i = i || [],
  2819. a = +r || 1;
  2820. do
  2821. s = s || ".5",
  2822. a /= s,
  2823. x.style(n.elem, e, a + o);
  2824. while (s !== (s = n.cur() / r) && 1 !== s && --l)
  2825. }
  2826. return i && (a = n.start = +a || +r || 0,
  2827. n.unit = o,
  2828. n.end = i[1] ? a + (i[1] + 1) * i[2] : +i[2]),
  2829. n
  2830. }
  2831. ]
  2832. };
  2833. function Kn() {
  2834. return setTimeout(function() {
  2835. Xn = t
  2836. }),
  2837. Xn = x.now()
  2838. }
  2839. function Zn(e, t, n) {
  2840. var r, i = (Qn[t] || []).concat(Qn["*"]), o = 0, a = i.length;
  2841. for (; a > o; o++)
  2842. if (r = i[o].call(n, t, e))
  2843. return r
  2844. }
  2845. function er(e, t, n) {
  2846. var r, i, o = 0, a = Gn.length, s = x.Deferred().always(function() {
  2847. delete l.elem
  2848. }), l = function() {
  2849. if (i)
  2850. return !1;
  2851. var t = Xn || Kn()
  2852. , n = Math.max(0, u.startTime + u.duration - t)
  2853. , r = n / u.duration || 0
  2854. , o = 1 - r
  2855. , a = 0
  2856. , l = u.tweens.length;
  2857. for (; l > a; a++)
  2858. u.tweens[a].run(o);
  2859. return s.notifyWith(e, [u, o, n]),
  2860. 1 > o && l ? n : (s.resolveWith(e, [u]),
  2861. !1)
  2862. }, u = s.promise({
  2863. elem: e,
  2864. props: x.extend({}, t),
  2865. opts: x.extend(!0, {
  2866. specialEasing: {}
  2867. }, n),
  2868. originalProperties: t,
  2869. originalOptions: n,
  2870. startTime: Xn || Kn(),
  2871. duration: n.duration,
  2872. tweens: [],
  2873. createTween: function(t, n) {
  2874. var r = x.Tween(e, u.opts, t, n, u.opts.specialEasing[t] || u.opts.easing);
  2875. return u.tweens.push(r),
  2876. r
  2877. },
  2878. stop: function(t) {
  2879. var n = 0
  2880. , r = t ? u.tweens.length : 0;
  2881. if (i)
  2882. return this;
  2883. for (i = !0; r > n; n++)
  2884. u.tweens[n].run(1);
  2885. return t ? s.resolveWith(e, [u, t]) : s.rejectWith(e, [u, t]),
  2886. this
  2887. }
  2888. }), c = u.props;
  2889. for (tr(c, u.opts.specialEasing); a > o; o++)
  2890. if (r = Gn[o].call(u, e, c, u.opts))
  2891. return r;
  2892. return x.map(c, Zn, u),
  2893. x.isFunction(u.opts.start) && u.opts.start.call(e, u),
  2894. x.fx.timer(x.extend(l, {
  2895. elem: e,
  2896. anim: u,
  2897. queue: u.opts.queue
  2898. })),
  2899. u.progress(u.opts.progress).done(u.opts.done, u.opts.complete).fail(u.opts.fail).always(u.opts.always)
  2900. }
  2901. function tr(e, t) {
  2902. var n, r, i, o, a;
  2903. for (n in e)
  2904. if (r = x.camelCase(n),
  2905. i = t[r],
  2906. o = e[n],
  2907. x.isArray(o) && (i = o[1],
  2908. o = e[n] = o[0]),
  2909. n !== r && (e[r] = o,
  2910. delete e[n]),
  2911. a = x.cssHooks[r],
  2912. a && "expand"in a) {
  2913. o = a.expand(o),
  2914. delete e[r];
  2915. for (n in o)
  2916. n in e || (e[n] = o[n],
  2917. t[n] = i)
  2918. } else
  2919. t[r] = i
  2920. }
  2921. x.Animation = x.extend(er, {
  2922. tweener: function(e, t) {
  2923. x.isFunction(e) ? (t = e,
  2924. e = ["*"]) : e = e.split(" ");
  2925. var n, r = 0, i = e.length;
  2926. for (; i > r; r++)
  2927. n = e[r],
  2928. Qn[n] = Qn[n] || [],
  2929. Qn[n].unshift(t)
  2930. },
  2931. prefilter: function(e, t) {
  2932. t ? Gn.unshift(e) : Gn.push(e)
  2933. }
  2934. });
  2935. function nr(e, t, n) {
  2936. var r, i, o, a, s, l, u = this, c = {}, p = e.style, f = e.nodeType && nn(e), d = x._data(e, "fxshow");
  2937. n.queue || (s = x._queueHooks(e, "fx"),
  2938. null == s.unqueued && (s.unqueued = 0,
  2939. l = s.empty.fire,
  2940. s.empty.fire = function() {
  2941. s.unqueued || l()
  2942. }
  2943. ),
  2944. s.unqueued++,
  2945. u.always(function() {
  2946. u.always(function() {
  2947. s.unqueued--,
  2948. x.queue(e, "fx").length || s.empty.fire()
  2949. })
  2950. })),
  2951. 1 === e.nodeType && ("height"in t || "width"in t) && (n.overflow = [p.overflow, p.overflowX, p.overflowY],
  2952. "inline" === x.css(e, "display") && "none" === x.css(e, "float") && (x.support.inlineBlockNeedsLayout && "inline" !== ln(e.nodeName) ? p.zoom = 1 : p.display = "inline-block")),
  2953. n.overflow && (p.overflow = "hidden",
  2954. x.support.shrinkWrapBlocks || u.always(function() {
  2955. p.overflow = n.overflow[0],
  2956. p.overflowX = n.overflow[1],
  2957. p.overflowY = n.overflow[2]
  2958. }));
  2959. for (r in t)
  2960. if (i = t[r],
  2961. Vn.exec(i)) {
  2962. if (delete t[r],
  2963. o = o || "toggle" === i,
  2964. i === (f ? "hide" : "show"))
  2965. continue;
  2966. c[r] = d && d[r] || x.style(e, r)
  2967. }
  2968. if (!x.isEmptyObject(c)) {
  2969. d ? "hidden"in d && (f = d.hidden) : d = x._data(e, "fxshow", {}),
  2970. o && (d.hidden = !f),
  2971. f ? x(e).show() : u.done(function() {
  2972. x(e).hide()
  2973. }),
  2974. u.done(function() {
  2975. var t;
  2976. x._removeData(e, "fxshow");
  2977. for (t in c)
  2978. x.style(e, t, c[t])
  2979. });
  2980. for (r in c)
  2981. a = Zn(f ? d[r] : 0, r, u),
  2982. r in d || (d[r] = a.start,
  2983. f && (a.end = a.start,
  2984. a.start = "width" === r || "height" === r ? 1 : 0))
  2985. }
  2986. }
  2987. function rr(e, t, n, r, i) {
  2988. return new rr.prototype.init(e,t,n,r,i)
  2989. }
  2990. x.Tween = rr,
  2991. rr.prototype = {
  2992. constructor: rr,
  2993. init: function(e, t, n, r, i, o) {
  2994. this.elem = e,
  2995. this.prop = n,
  2996. this.easing = i || "swing",
  2997. this.options = t,
  2998. this.start = this.now = this.cur(),
  2999. this.end = r,
  3000. this.unit = o || (x.cssNumber[n] ? "" : "px")
  3001. },
  3002. cur: function() {
  3003. var e = rr.propHooks[this.prop];
  3004. return e && e.get ? e.get(this) : rr.propHooks._default.get(this)
  3005. },
  3006. run: function(e) {
  3007. var t, n = rr.propHooks[this.prop];
  3008. return this.pos = t = this.options.duration ? x.easing[this.easing](e, this.options.duration * e, 0, 1, this.options.duration) : e,
  3009. this.now = (this.end - this.start) * t + this.start,
  3010. this.options.step && this.options.step.call(this.elem, this.now, this),
  3011. n && n.set ? n.set(this) : rr.propHooks._default.set(this),
  3012. this
  3013. }
  3014. },
  3015. rr.prototype.init.prototype = rr.prototype,
  3016. rr.propHooks = {
  3017. _default: {
  3018. get: function(e) {
  3019. var t;
  3020. return null == e.elem[e.prop] || e.elem.style && null != e.elem.style[e.prop] ? (t = x.css(e.elem, e.prop, ""),
  3021. t && "auto" !== t ? t : 0) : e.elem[e.prop]
  3022. },
  3023. set: function(e) {
  3024. x.fx.step[e.prop] ? x.fx.step[e.prop](e) : e.elem.style && (null != e.elem.style[x.cssProps[e.prop]] || x.cssHooks[e.prop]) ? x.style(e.elem, e.prop, e.now + e.unit) : e.elem[e.prop] = e.now
  3025. }
  3026. }
  3027. },
  3028. rr.propHooks.scrollTop = rr.propHooks.scrollLeft = {
  3029. set: function(e) {
  3030. e.elem.nodeType && e.elem.parentNode && (e.elem[e.prop] = e.now)
  3031. }
  3032. },
  3033. x.each(["toggle", "show", "hide"], function(e, t) {
  3034. var n = x.fn[t];
  3035. x.fn[t] = function(e, r, i) {
  3036. return null == e || "boolean" == typeof e ? n.apply(this, arguments) : this.animate(ir(t, !0), e, r, i)
  3037. }
  3038. }),
  3039. x.fn.extend({
  3040. fadeTo: function(e, t, n, r) {
  3041. return this.filter(nn).css("opacity", 0).show().end().animate({
  3042. opacity: t
  3043. }, e, n, r)
  3044. },
  3045. animate: function(e, t, n, r) {
  3046. var i = x.isEmptyObject(e)
  3047. , o = x.speed(t, n, r)
  3048. , a = function() {
  3049. var t = er(this, x.extend({}, e), o);
  3050. (i || x._data(this, "finish")) && t.stop(!0)
  3051. };
  3052. return a.finish = a,
  3053. i || o.queue === !1 ? this.each(a) : this.queue(o.queue, a)
  3054. },
  3055. stop: function(e, n, r) {
  3056. var i = function(e) {
  3057. var t = e.stop;
  3058. delete e.stop,
  3059. t(r)
  3060. };
  3061. return "string" != typeof e && (r = n,
  3062. n = e,
  3063. e = t),
  3064. n && e !== !1 && this.queue(e || "fx", []),
  3065. this.each(function() {
  3066. var t = !0
  3067. , n = null != e && e + "queueHooks"
  3068. , o = x.timers
  3069. , a = x._data(this);
  3070. if (n)
  3071. a[n] && a[n].stop && i(a[n]);
  3072. else
  3073. for (n in a)
  3074. a[n] && a[n].stop && Jn.test(n) && i(a[n]);
  3075. for (n = o.length; n--; )
  3076. o[n].elem !== this || null != e && o[n].queue !== e || (o[n].anim.stop(r),
  3077. t = !1,
  3078. o.splice(n, 1));
  3079. (t || !r) && x.dequeue(this, e)
  3080. })
  3081. },
  3082. finish: function(e) {
  3083. return e !== !1 && (e = e || "fx"),
  3084. this.each(function() {
  3085. var t, n = x._data(this), r = n[e + "queue"], i = n[e + "queueHooks"], o = x.timers, a = r ? r.length : 0;
  3086. for (n.finish = !0,
  3087. x.queue(this, e, []),
  3088. i && i.stop && i.stop.call(this, !0),
  3089. t = o.length; t--; )
  3090. o[t].elem === this && o[t].queue === e && (o[t].anim.stop(!0),
  3091. o.splice(t, 1));
  3092. for (t = 0; a > t; t++)
  3093. r[t] && r[t].finish && r[t].finish.call(this);
  3094. delete n.finish
  3095. })
  3096. }
  3097. });
  3098. function ir(e, t) {
  3099. var n, r = {
  3100. height: e
  3101. }, i = 0;
  3102. for (t = t ? 1 : 0; 4 > i; i += 2 - t)
  3103. n = Zt[i],
  3104. r["margin" + n] = r["padding" + n] = e;
  3105. return t && (r.opacity = r.width = e),
  3106. r
  3107. }
  3108. x.each({
  3109. slideDown: ir("show"),
  3110. slideUp: ir("hide"),
  3111. slideToggle: ir("toggle"),
  3112. fadeIn: {
  3113. opacity: "show"
  3114. },
  3115. fadeOut: {
  3116. opacity: "hide"
  3117. },
  3118. fadeToggle: {
  3119. opacity: "toggle"
  3120. }
  3121. }, function(e, t) {
  3122. x.fn[e] = function(e, n, r) {
  3123. return this.animate(t, e, n, r)
  3124. }
  3125. }),
  3126. x.speed = function(e, t, n) {
  3127. var r = e && "object" == typeof e ? x.extend({}, e) : {
  3128. complete: n || !n && t || x.isFunction(e) && e,
  3129. duration: e,
  3130. easing: n && t || t && !x.isFunction(t) && t
  3131. };
  3132. return r.duration = x.fx.off ? 0 : "number" == typeof r.duration ? r.duration : r.duration in x.fx.speeds ? x.fx.speeds[r.duration] : x.fx.speeds._default,
  3133. (null == r.queue || r.queue === !0) && (r.queue = "fx"),
  3134. r.old = r.complete,
  3135. r.complete = function() {
  3136. x.isFunction(r.old) && r.old.call(this),
  3137. r.queue && x.dequeue(this, r.queue)
  3138. }
  3139. ,
  3140. r
  3141. }
  3142. ,
  3143. x.easing = {
  3144. linear: function(e) {
  3145. return e
  3146. },
  3147. swing: function(e) {
  3148. return .5 - Math.cos(e * Math.PI) / 2
  3149. }
  3150. },
  3151. x.timers = [],
  3152. x.fx = rr.prototype.init,
  3153. x.fx.tick = function() {
  3154. var e, n = x.timers, r = 0;
  3155. for (Xn = x.now(); n.length > r; r++)
  3156. e = n[r],
  3157. e() || n[r] !== e || n.splice(r--, 1);
  3158. n.length || x.fx.stop(),
  3159. Xn = t
  3160. }
  3161. ,
  3162. x.fx.timer = function(e) {
  3163. e() && x.timers.push(e) && x.fx.start()
  3164. }
  3165. ,
  3166. x.fx.interval = 13,
  3167. x.fx.start = function() {
  3168. Un || (Un = setInterval(x.fx.tick, x.fx.interval))
  3169. }
  3170. ,
  3171. x.fx.stop = function() {
  3172. clearInterval(Un),
  3173. Un = null
  3174. }
  3175. ,
  3176. x.fx.speeds = {
  3177. slow: 600,
  3178. fast: 200,
  3179. _default: 400
  3180. },
  3181. x.fx.step = {},
  3182. x.expr && x.expr.filters && (x.expr.filters.animated = function(e) {
  3183. return x.grep(x.timers, function(t) {
  3184. return e === t.elem
  3185. }).length
  3186. }
  3187. ),
  3188. x.fn.offset = function(e) {
  3189. if (arguments.length)
  3190. return e === t ? this : this.each(function(t) {
  3191. x.offset.setOffset(this, e, t)
  3192. });
  3193. var n, r, o = {
  3194. top: 0,
  3195. left: 0
  3196. }, a = this[0], s = a && a.ownerDocument;
  3197. if (s)
  3198. return n = s.documentElement,
  3199. x.contains(n, a) ? (typeof a.getBoundingClientRect !== i && (o = a.getBoundingClientRect()),
  3200. r = or(s),
  3201. {
  3202. top: o.top + (r.pageYOffset || n.scrollTop) - (n.clientTop || 0),
  3203. left: o.left + (r.pageXOffset || n.scrollLeft) - (n.clientLeft || 0)
  3204. }) : o
  3205. }
  3206. ,
  3207. x.offset = {
  3208. setOffset: function(e, t, n) {
  3209. var r = x.css(e, "position");
  3210. "static" === r && (e.style.position = "relative");
  3211. var i = x(e), o = i.offset(), a = x.css(e, "top"), s = x.css(e, "left"), l = ("absolute" === r || "fixed" === r) && x.inArray("auto", [a, s]) > -1, u = {}, c = {}, p, f;
  3212. l ? (c = i.position(),
  3213. p = c.top,
  3214. f = c.left) : (p = parseFloat(a) || 0,
  3215. f = parseFloat(s) || 0),
  3216. x.isFunction(t) && (t = t.call(e, n, o)),
  3217. null != t.top && (u.top = t.top - o.top + p),
  3218. null != t.left && (u.left = t.left - o.left + f),
  3219. "using"in t ? t.using.call(e, u) : i.css(u)
  3220. }
  3221. },
  3222. x.fn.extend({
  3223. position: function() {
  3224. if (this[0]) {
  3225. var e, t, n = {
  3226. top: 0,
  3227. left: 0
  3228. }, r = this[0];
  3229. return "fixed" === x.css(r, "position") ? t = r.getBoundingClientRect() : (e = this.offsetParent(),
  3230. t = this.offset(),
  3231. x.nodeName(e[0], "html") || (n = e.offset()),
  3232. n.top += x.css(e[0], "borderTopWidth", !0),
  3233. n.left += x.css(e[0], "borderLeftWidth", !0)),
  3234. {
  3235. top: t.top - n.top - x.css(r, "marginTop", !0),
  3236. left: t.left - n.left - x.css(r, "marginLeft", !0)
  3237. }
  3238. }
  3239. },
  3240. offsetParent: function() {
  3241. return this.map(function() {
  3242. var e = this.offsetParent || s;
  3243. while (e && !x.nodeName(e, "html") && "static" === x.css(e, "position"))
  3244. e = e.offsetParent;
  3245. return e || s
  3246. })
  3247. }
  3248. }),
  3249. x.each({
  3250. scrollLeft: "pageXOffset",
  3251. scrollTop: "pageYOffset"
  3252. }, function(e, n) {
  3253. var r = /Y/.test(n);
  3254. x.fn[e] = function(i) {
  3255. return x.access(this, function(e, i, o) {
  3256. var a = or(e);
  3257. return o === t ? a ? n in a ? a[n] : a.document.documentElement[i] : e[i] : (a ? a.scrollTo(r ? x(a).scrollLeft() : o, r ? o : x(a).scrollTop()) : e[i] = o,
  3258. t)
  3259. }, e, i, arguments.length, null)
  3260. }
  3261. });
  3262. function or(e) {
  3263. return x.isWindow(e) ? e : 9 === e.nodeType ? e.defaultView || e.parentWindow : !1
  3264. }
  3265. x.each({
  3266. Height: "height",
  3267. Width: "width"
  3268. }, function(e, n) {
  3269. x.each({
  3270. padding: "inner" + e,
  3271. content: n,
  3272. "": "outer" + e
  3273. }, function(r, i) {
  3274. x.fn[i] = function(i, o) {
  3275. var a = arguments.length && (r || "boolean" != typeof i)
  3276. , s = r || (i === !0 || o === !0 ? "margin" : "border");
  3277. return x.access(this, function(n, r, i) {
  3278. var o;
  3279. return x.isWindow(n) ? n.document.documentElement["client" + e] : 9 === n.nodeType ? (o = n.documentElement,
  3280. Math.max(n.body["scroll" + e], o["scroll" + e], n.body["offset" + e], o["offset" + e], o["client" + e])) : i === t ? x.css(n, r, s) : x.style(n, r, i, s)
  3281. }, n, a ? i : t, a, null)
  3282. }
  3283. })
  3284. }),
  3285. x.fn.size = function() {
  3286. return this.length
  3287. }
  3288. ,
  3289. x.fn.andSelf = x.fn.addBack,
  3290. "object" == typeof module && module && "object" == typeof module.exports ? module.exports = x : (e.jQuery = e.$ = x,
  3291. "function" == typeof define && define.amd && define("jquery", [], function() {
  3292. return x
  3293. }))
  3294. }
  3295. )(window);