PageSourceSearch

https://hongdou.com/en/public/scripts/jquery.js

js hongdou.com collected 2026-10-04 02:40:50 UTC 277,984 bytes, 9,600 lines download raw bytes

vendor: 31,827 bytes, lines 1-1201
1/*!
2 * jQuery JavaScript Library v1.9.1
3 * http://jquery.com/
4 *
5 * Includes Sizzle.js
6 * http://sizzlejs.com/
7 *
8 * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
9 * Released under the MIT license
10 * http://jquery.org/license
11 *
12 * Date: 2013-2-4
13 */
14(function( window, undefined ) {
15
16// Can't do this because several apps including ASP.NET trace
17// the stack via arguments.caller.callee and Firefox dies if
18// you try to trace through "use strict" call chains. (#13335)
19// Support: Firefox 18+
20//"use strict";
21var
22	// The deferred used on DOM ready
23	readyList,
24
25	// A central reference to the root jQuery(document)
26	rootjQuery,
27
28	// Support: IE<9
29	// For `typeof node.method` instead of `node.method !== undefined`
30	core_strundefined = typeof undefined,
31
32	// Use the correct document accordingly with window argument (sandbox)
33	document = window.document,
34	location = window.location,
35
36	// Map over jQuery in case of overwrite
37	_jQuery = window.jQuery,
38
39	// Map over the $ in case of overwrite
40	_$ = window.$,
41
42	// [[Class]] -> type pairs
43	class2type = {},
44
45	// List of deleted data cache ids, so we can reuse them
46	core_deletedIds = [],
47
48	core_version = "1.9.1",
49
50	// Save a reference to some core methods
51	core_concat = core_deletedIds.concat,
52	core_push = core_deletedIds.push,
53	core_slice = core_deletedIds.slice,
54	core_indexOf = core_deletedIds.indexOf,
55	core_toString = class2type.toString,
56	core_hasOwn = class2type.hasOwnProperty,
57	core_trim = core_version.trim,
58
59	// Define a local copy of jQuery
60	jQuery = function( selector, context ) {
61		// The jQuery object is actually just the init constructor 'enhanced'
62		return new jQuery.fn.init( selector, context, rootjQuery );
63	},
64
65	// Used for matching numbers
66	core_pnum = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,
67
68	// Used for splitting on whitespace
69	core_rnotwhite = /\S+/g,
70
71	// Make sure we trim BOM and NBSP (here's looking at you, Safari 5.0 and IE)
72	rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
73
74	// A simple way to check for HTML strings
75	// Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
76	// Strict HTML recognition (#11290: must start with <)
77	rquickExpr = /^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,
78
79	// Match a standalone tag
80	rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>|)$/,
81
82	// JSON RegExp
83	rvalidchars = /^[\],:{}\s]*$/,
84	rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g,
85	rvalidescape = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,
86	rvalidtokens = /"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,
87
88	// Matches dashed string for camelizing
89	rmsPrefix = /^-ms-/,
90	rdashAlpha = /-([\da-z])/gi,
91
92	// Used by jQuery.camelCase as callback to replace()
93	fcamelCase = function( all, letter ) {
94		return letter.toUpperCase();
95	},
96
97	// The ready event handler
98	completed = function( event ) {
99
100		// readyState === "complete" is good enough for us to call the dom ready in oldIE
101		if ( document.addEventListener || event.type === "load" || document.readyState === "complete" ) {
102			detach();
103			jQuery.ready();
104		}
105	},
106	// Clean-up method for dom ready events
107	detach = function() {
108		if ( document.addEventListener ) {
109			document.removeEventListener( "DOMContentLoaded", completed, false );
110			window.removeEventListener( "load", completed, false );
111
112		} else {
113			document.detachEvent( "onreadystatechange", completed );
114			window.detachEvent( "onload", completed );
115		}
116	};
117
118jQuery.fn = jQuery.prototype = {
119	// The current version of jQuery being used
120	jquery: core_version,
121
122	constructor: jQuery,
123	init: function( selector, context, rootjQuery ) {
124		var match, elem;
125
126		// HANDLE: $(""), $(null), $(undefined), $(false)
127		if ( !selector ) {
128			return this;
129		}
130
131		// Handle HTML strings
132		if ( typeof selector === "string" ) {
133			if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {
134				// Assume that strings that start and end with <> are HTML and skip the regex check
135				match = [ null, selector, null ];
136
137			} else {
138				match = rquickExpr.exec( selector );
139			}
140
141			// Match html or make sure no context is specified for #id
142			if ( match && (match[1] || !context) ) {
143
144				// HANDLE: $(html) -> $(array)
145				if ( match[1] ) {
146					context = context instanceof jQuery ? context[0] : context;
147
148					// scripts is true for back-compat
149					jQuery.merge( this, jQuery.parseHTML(
150						match[1],
151						context && context.nodeType ? context.ownerDocument || context : document,
152						true
153					) );
154
155					// HANDLE: $(html, props)
156					if ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) {
157						for ( match in context ) {
158							// Properties of context are called as methods if possible
159							if ( jQuery.isFunction( this[ match ] ) ) {
160								this[ match ]( context[ match ] );
161
162							// ...and otherwise set as attributes
163							} else {
164								this.attr( match, context[ match ] );
165							}
166						}
167					}
168
169					return this;
170
171				// HANDLE: $(#id)
172				} else {
173					elem = document.getElementById( match[2] );
174
175					// Check parentNode to catch when Blackberry 4.6 returns
176					// nodes that are no longer in the document #6963
177					if ( elem && elem.parentNode ) {
178						// Handle the case where IE and Opera return items
179						// by name instead of ID
180						if ( elem.id !== match[2] ) {
181							return rootjQuery.find( selector );
182						}
183
184						// Otherwise, we inject the element directly into the jQuery object
185						this.length = 1;
186						this[0] = elem;
187					}
188
189					this.context = document;
190					this.selector = selector;
191					return this;
192				}
193
194			// HANDLE: $(expr, $(...))
195			} else if ( !context || context.jquery ) {
196				return ( context || rootjQuery ).find( selector );
197
198			// HANDLE: $(expr, context)
199			// (which is just equivalent to: $(context).find(expr)
200			} else {
201				return this.constructor( context ).find( selector );
202			}
203
204		// HANDLE: $(DOMElement)
205		} else if ( selector.nodeType ) {
206			this.context = this[0] = selector;
207			this.length = 1;
208			return this;
209
210		// HANDLE: $(function)
211		// Shortcut for document ready
212		} else if ( jQuery.isFunction( selector ) ) {
213			return rootjQuery.ready( selector );
214		}
215
216		if ( selector.selector !== undefined ) {
217			this.selector = selector.selector;
218			this.context = selector.context;
219		}
220
221		return jQuery.makeArray( selector, this );
222	},
223
224	// Start with an empty selector
225	selector: "",
226
227	// The default length of a jQuery object is 0
228	length: 0,
229
230	// The number of elements contained in the matched element set
231	size: function() {
232		return this.length;
233	},
234
235	toArray: function() {
236		return core_slice.call( this );
237	},
238
239	// Get the Nth element in the matched element set OR
240	// Get the whole matched element set as a clean array
241	get: function( num ) {
242		return num == null ?
243
244			// Return a 'clean' array
245			this.toArray() :
246
247			// Return just the object
248			( num < 0 ? this[ this.length + num ] : this[ num ] );
249	},
250
251	// Take an array of elements and push it onto the stack
252	// (returning the new matched element set)
253	pushStack: function( elems ) {
254
255		// Build a new jQuery matched element set
256		var ret = jQuery.merge( this.constructor(), elems );
257
258		// Add the old object onto the stack (as a reference)
259		ret.prevObject = this;
260		ret.context = this.context;
261
262		// Return the newly-formed element set
263		return ret;
264	},
265
266	// Execute a callback for every element in the matched set.
267	// (You can seed the arguments with an array of args, but this is
268	// only used internally.)
269	each: function( callback, args ) {
270		return jQuery.each( this, callback, args );
271	},
272
273	ready: function( fn ) {
274		// Add the callback
275		jQuery.ready.promise().done( fn );
276
277		return this;
278	},
279
280	slice: function() {
281		return this.pushStack( core_slice.apply( this, arguments ) );
282	},
283
284	first: function() {
285		return this.eq( 0 );
286	},
287
288	last: function() {
289		return this.eq( -1 );
290	},
291
292	eq: function( i ) {
293		var len = this.length,
294			j = +i + ( i < 0 ? len : 0 );
295		return this.pushStack( j >= 0 && j < len ? [ this[j] ] : [] );
296	},
297
298	map: function( callback ) {
299		return this.pushStack( jQuery.map(this, function( elem, i ) {
300			return callback.call( elem, i, elem );
301		}));
302	},
303
304	end: function() {
305		return this.prevObject || this.constructor(null);
306	},
307
308	// For internal use only.
309	// Behaves like an Array's method, not like a jQuery method.
310	push: core_push,
311	sort: [].sort,
312	splice: [].splice
313};
314
315// Give the init function the jQuery prototype for later instantiation
316jQuery.fn.init.prototype = jQuery.fn;
317
318jQuery.extend = jQuery.fn.extend = function() {
319	var src, copyIsArray, copy, name, options, clone,
320		target = arguments[0] || {},
321		i = 1,
322		length = arguments.length,
323		deep = false;
324
325	// Handle a deep copy situation
326	if ( typeof target === "boolean" ) {
327		deep = target;
328		target = arguments[1] || {};
329		// skip the boolean and the target
330		i = 2;
331	}
332
333	// Handle case when target is a string or something (possible in deep copy)
334	if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
335		target = {};
336	}
337
338	// extend jQuery itself if only one argument is passed
339	if ( length === i ) {
340		target = this;
341		--i;
342	}
343
344	for ( ; i < length; i++ ) {
345		// Only deal with non-null/undefined values
346		if ( (options = arguments[ i ]) != null ) {
347			// Extend the base object
348			for ( name in options ) {
349				src = target[ name ];
350				copy = options[ name ];
351
352				// Prevent never-ending loop
353				if ( target === copy ) {
354					continue;
355				}
356
357				// Recurse if we're merging plain objects or arrays
358				if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {
359					if ( copyIsArray ) {
360						copyIsArray = false;
361						clone = src && jQuery.isArray(src) ? src : [];
362
363					} else {
364						clone = src && jQuery.isPlainObject(src) ? src : {};
365					}
366
367					// Never move original objects, clone them
368					target[ name ] = jQuery.extend( deep, clone, copy );
369
370				// Don't bring in undefined values
371				} else if ( copy !== undefined ) {
372					target[ name ] = copy;
373				}
374			}
375		}
376	}
377
378	// Return the modified object
379	return target;
380};
381
382jQuery.extend({
383	noConflict: function( deep ) {
384		if ( window.$ === jQuery ) {
385			window.$ = _$;
386		}
387
388		if ( deep && window.jQuery === jQuery ) {
389			window.jQuery = _jQuery;
390		}
391
392		return jQuery;
393	},
394
395	// Is the DOM ready to be used? Set to true once it occurs.
396	isReady: false,
397
398	// A counter to track how many items to wait for before
399	// the ready event fires. See #6781
400	readyWait: 1,
401
402	// Hold (or release) the ready event
403	holdReady: function( hold ) {
404		if ( hold ) {
405			jQuery.readyWait++;
406		} else {
407			jQuery.ready( true );
408		}
409	},
410
411	// Handle when the DOM is ready
412	ready: function( wait ) {
413
414		// Abort if there are pending holds or we're already ready
415		if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
416			return;
417		}
418
419		// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
420		if ( !document.body ) {
421			return setTimeout( jQuery.ready );
422		}
423
424		// Remember that the DOM is ready
425		jQuery.isReady = true;
426
427		// If a normal DOM Ready event fired, decrement, and wait if need be
428		if ( wait !== true && --jQuery.readyWait > 0 ) {
429			return;
430		}
431
432		// If there are functions bound, to execute
433		readyList.resolveWith( document, [ jQuery ] );
434
435		// Trigger any bound ready events
436		if ( jQuery.fn.trigger ) {
437			jQuery( document ).trigger("ready").off("ready");
438		}
439	},
440
441	// See test/unit/core.js for details concerning isFunction.
442	// Since version 1.3, DOM methods and functions like alert
443	// aren't supported. They return false on IE (#2968).
444	isFunction: function( obj ) {
445		return jQuery.type(obj) === "function";
446	},
447
448	isArray: Array.isArray || function( obj ) {
449		return jQuery.type(obj) === "array";
450	},
451
452	isWindow: function( obj ) {
453		return obj != null && obj == obj.window;
454	},
455
456	isNumeric: function( obj ) {
457		return !isNaN( parseFloat(obj) ) && isFinite( obj );
458	},
459
460	type: function( obj ) {
461		if ( obj == null ) {
462			return String( obj );
463		}
464		return typeof obj === "object" || typeof obj === "function" ?
465			class2type[ core_toString.call(obj) ] || "object" :
466			typeof obj;
467	},
468
469	isPlainObject: function( obj ) {
470		// Must be an Object.
471		// Because of IE, we also have to check the presence of the constructor property.
472		// Make sure that DOM nodes and window objects don't pass through, as well
473		if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
474			return false;
475		}
476
477		try {
478			// Not own constructor property must be Object
479			if ( obj.constructor &&
480				!core_hasOwn.call(obj, "constructor") &&
481				!core_hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) {
482				return false;
483			}
484		} catch ( e ) {
485			// IE8,9 Will throw exceptions on certain host objects #9897
486			return false;
487		}
488
489		// Own properties are enumerated firstly, so to speed up,
490		// if last one is own, then all properties are own.
491
492		var key;
493		for ( key in obj ) {}
494
495		return key === undefined || core_hasOwn.call( obj, key );
496	},
497
498	isEmptyObject: function( obj ) {
499		var name;
500		for ( name in obj ) {
501			return false;
502		}
503		return true;
504	},
505
506	error: function( msg ) {
507		throw new Error( msg );
508	},
509
510	// data: string of html
511	// context (optional): If specified, the fragment will be created in this context, defaults to document
512	// keepScripts (optional): If true, will include scripts passed in the html string
513	parseHTML: function( data, context, keepScripts ) {
514		if ( !data || typeof data !== "string" ) {
515			return null;
516		}
517		if ( typeof context === "boolean" ) {
518			keepScripts = context;
519			context = false;
520		}
521		context = context || document;
522
523		var parsed = rsingleTag.exec( data ),
524			scripts = !keepScripts && [];
525
526		// Single tag
527		if ( parsed ) {
528			return [ context.createElement( parsed[1] ) ];
529		}
530
531		parsed = jQuery.buildFragment( [ data ], context, scripts );
532		if ( scripts ) {
533			jQuery( scripts ).remove();
534		}
535		return jQuery.merge( [], parsed.childNodes );
536	},
537
538	parseJSON: function( data ) {
539		// Attempt to parse using the native JSON parser first
540		if ( window.JSON && window.JSON.parse ) {
541			return window.JSON.parse( data );
542		}
543
544		if ( data === null ) {
545			return data;
546		}
547
548		if ( typeof data === "string" ) {
549
550			// Make sure leading/trailing whitespace is removed (IE can't handle it)
551			data = jQuery.trim( data );
552
553			if ( data ) {
554				// Make sure the incoming data is actual JSON
555				// Logic borrowed from http://json.org/json2.js
556				if ( rvalidchars.test( data.replace( rvalidescape, "@" )
557					.replace( rvalidtokens, "]" )
558					.replace( rvalidbraces, "")) ) {
559
560					return ( new Function( "return " + data ) )();
561				}
562			}
563		}
564
565		jQuery.error( "Invalid JSON: " + data );
566	},
567
568	// Cross-browser xml parsing
569	parseXML: function( data ) {
570		var xml, tmp;
571		if ( !data || typeof data !== "string" ) {
572			return null;
573		}
574		try {
575			if ( window.DOMParser ) { // Standard
576				tmp = new DOMParser();
577				xml = tmp.parseFromString( data , "text/xml" );
578			} else { // IE
579				xml = new ActiveXObject( "Microsoft.XMLDOM" );
580				xml.async = "false";
581				xml.loadXML( data );
582			}
583		} catch( e ) {
584			xml = undefined;
585		}
586		if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) {
587			jQuery.error( "Invalid XML: " + data );
588		}
589		return xml;
590	},
591
592	noop: function() {},
593
594	// Evaluates a script in a global context
595	// Workarounds based on findings by Jim Driscoll
596	// http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context
597	globalEval: function( data ) {
598		if ( data && jQuery.trim( data ) ) {
599			// We use execScript on Internet Explorer
600			// We use an anonymous function so that context is window
601			// rather than jQuery in Firefox
602			( window.execScript || function( data ) {
603				window[ "eval" ].call( window, data );
604			} )( data );
605		}
606	},
607
608	// Convert dashed to camelCase; used by the css and data modules
609	// Microsoft forgot to hump their vendor prefix (#9572)
610	camelCase: function( string ) {
611		return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
612	},
613
614	nodeName: function( elem, name ) {
615		return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
616	},
617
618	// args is for internal usage only
619	each: function( obj, callback, args ) {
620		var value,
621			i = 0,
622			length = obj.length,
623			isArray = isArraylike( obj );
624
625		if ( args ) {
626			if ( isArray ) {
627				for ( ; i < length; i++ ) {
628					value = callback.apply( obj[ i ], args );
629
630					if ( value === false ) {
631						break;
632					}
633				}
634			} else {
635				for ( i in obj ) {
636					value = callback.apply( obj[ i ], args );
637
638					if ( value === false ) {
639						break;
640					}
641				}
642			}
643
644		// A special, fast, case for the most common use of each
645		} else {
646			if ( isArray ) {
647				for ( ; i < length; i++ ) {
648					value = callback.call( obj[ i ], i, obj[ i ] );
649
650					if ( value === false ) {
651						break;
652					}
653				}
654			} else {
655				for ( i in obj ) {
656					value = callback.call( obj[ i ], i, obj[ i ] );
657
658					if ( value === false ) {
659						break;
660					}
661				}
662			}
663		}
664
665		return obj;
666	},
667
668	// Use native String.trim function wherever possible
669	trim: core_trim && !core_trim.call("\uFEFF\xA0") ?
670		function( text ) {
671			return text == null ?
672				"" :
673				core_trim.call( text );
674		} :
675
676		// Otherwise use our own trimming functionality
677		function( text ) {
678			return text == null ?
679				"" :
680				( text + "" ).replace( rtrim, "" );
681		},
682
683	// results is for internal usage only
684	makeArray: function( arr, results ) {
685		var ret = results || [];
686
687		if ( arr != null ) {
688			if ( isArraylike( Object(arr) ) ) {
689				jQuery.merge( ret,
690					typeof arr === "string" ?
691					[ arr ] : arr
692				);
693			} else {
694				core_push.call( ret, arr );
695			}
696		}
697
698		return ret;
699	},
700
701	inArray: function( elem, arr, i ) {
702		var len;
703
704		if ( arr ) {
705			if ( core_indexOf ) {
706				return core_indexOf.call( arr, elem, i );
707			}
708
709			len = arr.length;
710			i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0;
711
712			for ( ; i < len; i++ ) {
713				// Skip accessing in sparse arrays
714				if ( i in arr && arr[ i ] === elem ) {
715					return i;
716				}
717			}
718		}
719
720		return -1;
721	},
722
723	merge: function( first, second ) {
724		var l = second.length,
725			i = first.length,
726			j = 0;
727
728		if ( typeof l === "number" ) {
729			for ( ; j < l; j++ ) {
730				first[ i++ ] = second[ j ];
731			}
732		} else {
733			while ( second[j] !== undefined ) {
734				first[ i++ ] = second[ j++ ];
735			}
736		}
737
738		first.length = i;
739
740		return first;
741	},
742
743	grep: function( elems, callback, inv ) {
744		var retVal,
745			ret = [],
746			i = 0,
747			length = elems.length;
748		inv = !!inv;
749
750		// Go through the array, only saving the items
751		// that pass the validator function
752		for ( ; i < length; i++ ) {
753			retVal = !!callback( elems[ i ], i );
754			if ( inv !== retVal ) {
755				ret.push( elems[ i ] );
756			}
757		}
758
759		return ret;
760	},
761
762	// arg is for internal usage only
763	map: function( elems, callback, arg ) {
764		var value,
765			i = 0,
766			length = elems.length,
767			isArray = isArraylike( elems ),
768			ret = [];
769
770		// Go through the array, translating each of the items to their
771		if ( isArray ) {
772			for ( ; i < length; i++ ) {
773				value = callback( elems[ i ], i, arg );
774
775				if ( value != null ) {
776					ret[ ret.length ] = value;
777				}
778			}
779
780		// Go through every key on the object,
781		} else {
782			for ( i in elems ) {
783				value = callback( elems[ i ], i, arg );
784
785				if ( value != null ) {
786					ret[ ret.length ] = value;
787				}
788			}
789		}
790
791		// Flatten any nested arrays
792		return core_concat.apply( [], ret );
793	},
794
795	// A global GUID counter for objects
796	guid: 1,
797
798	// Bind a function to a context, optionally partially applying any
799	// arguments.
800	proxy: function( fn, context ) {
801		var args, proxy, tmp;
802
803		if ( typeof context === "string" ) {
804			tmp = fn[ context ];
805			context = fn;
806			fn = tmp;
807		}
808
809		// Quick check to determine if target is callable, in the spec
810		// this throws a TypeError, but we will just return undefined.
811		if ( !jQuery.isFunction( fn ) ) {
812			return undefined;
813		}
814
815		// Simulated bind
816		args = core_slice.call( arguments, 2 );
817		proxy = function() {
818			return fn.apply( context || this, args.concat( core_slice.call( arguments ) ) );
819		};
820
821		// Set the guid of unique handler to the same of original handler, so it can be removed
822		proxy.guid = fn.guid = fn.guid || jQuery.guid++;
823
824		return proxy;
825	},
826
827	// Multifunctional method to get and set values of a collection
828	// The value/s can optionally be executed if it's a function
829	access: function( elems, fn, key, value, chainable, emptyGet, raw ) {
830		var i = 0,
831			length = elems.length,
832			bulk = key == null;
833
834		// Sets many values
835		if ( jQuery.type( key ) === "object" ) {
836			chainable = true;
837			for ( i in key ) {
838				jQuery.access( elems, fn, i, key[i], true, emptyGet, raw );
839			}
840
841		// Sets one value
842		} else if ( value !== undefined ) {
843			chainable = true;
844
845			if ( !jQuery.isFunction( value ) ) {
846				raw = true;
847			}
848
849			if ( bulk ) {
850				// Bulk operations run against the entire set
851				if ( raw ) {
852					fn.call( elems, value );
853					fn = null;
854
855				// ...except when executing function values
856				} else {
857					bulk = fn;
858					fn = function( elem, key, value ) {
859						return bulk.call( jQuery( elem ), value );
860					};
861				}
862			}
863
864			if ( fn ) {
865				for ( ; i < length; i++ ) {
866					fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) );
867				}
868			}
869		}
870
871		return chainable ?
872			elems :
873
874			// Gets
875			bulk ?
876				fn.call( elems ) :
877				length ? fn( elems[0], key ) : emptyGet;
878	},
879
880	now: function() {
881		return ( new Date() ).getTime();
882	}
883});
884
885jQuery.ready.promise = function( obj ) {
886	if ( !readyList ) {
887
888		readyList = jQuery.Deferred();
889
890		// Catch cases where $(document).ready() is called after the browser event has already occurred.
891		// we once tried to use readyState "interactive" here, but it caused issues like the one
892		// discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15
893		if ( document.readyState === "complete" ) {
894			// Handle it asynchronously to allow scripts the opportunity to delay ready
895			setTimeout( jQuery.ready );
896
897		// Standards-based browsers support DOMContentLoaded
898		} else if ( document.addEventListener ) {
899			// Use the handy event callback
900			document.addEventListener( "DOMContentLoaded", completed, false );
901
902			// A fallback to window.onload, that will always work
903			window.addEventListener( "load", completed, false );
904
905		// If IE event model is used
906		} else {
907			// Ensure firing before onload, maybe late but safe also for iframes
908			document.attachEvent( "onreadystatechange", completed );
909
910			// A fallback to window.onload, that will always work
911			window.attachEvent( "onload", completed );
912
913			// If IE and not a frame
914			// continually check to see if the document is ready
915			var top = false;
916
917			try {
918				top = window.frameElement == null && document.documentElement;
919			} catch(e) {}
920
921			if ( top && top.doScroll ) {
922				(function doScrollCheck() {
923					if ( !jQuery.isReady ) {
924
925						try {
926							// Use the trick by Diego Perini
927							// http://javascript.nwbox.com/IEContentLoaded/
928							top.doScroll("left");
929						} catch(e) {
930							return setTimeout( doScrollCheck, 50 );
931						}
932
933						// detach all dom ready events
934						detach();
935
936						// and execute any waiting functions
937						jQuery.ready();
938					}
939				})();
940			}
941		}
942	}
943	return readyList.promise( obj );
944};
945
946// Populate the class2type map
947jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) {
948	class2type[ "[object " + name + "]" ] = name.toLowerCase();
949});
950
951function isArraylike( obj ) {
952	var length = obj.length,
953		type = jQuery.type( obj );
954
955	if ( jQuery.isWindow( obj ) ) {
956		return false;
957	}
958
959	if ( obj.nodeType === 1 && length ) {
960		return true;
961	}
962
963	return type === "array" || type !== "function" &&
964		( length === 0 ||
965		typeof length === "number" && length > 0 && ( length - 1 ) in obj );
966}
967
968// All jQuery objects should point back to these
969rootjQuery = jQuery(document);
970// String to Object options format cache
971var optionsCache = {};
972
973// Convert String-formatted options into Object-formatted ones and store in cache
974function createOptions( options ) {
975	var object = optionsCache[ options ] = {};
976	jQuery.each( options.match( core_rnotwhite ) || [], function( _, flag ) {
977		object[ flag ] = true;
978	});
979	return object;
980}
981
982/*
983 * Create a callback list using the following parameters:
984 *
985 *	options: an optional list of space-separated options that will change how
986 *			the callback list behaves or a more traditional option object
987 *
988 * By default a callback list will act like an event callback list and can be
989 * "fired" multiple times.
990 *
991 * Possible options:
992 *
993 *	once:			will ensure the callback list can only be fired once (like a Deferred)
994 *
995 *	memory:			will keep track of previous values and will call any callback added
996 *					after the list has been fired right away with the latest "memorized"
997 *					values (like a Deferred)
998 *
999 *	unique:			will ensure a callback can only be added once (no duplicate in the list)
1000 *
1001 *	stopOnFalse:	interrupt callings when a callback returns false
1002 *
1003 */
1004jQuery.Callbacks = function( options ) {
1005
1006	// Convert options from String-formatted to Object-formatted if needed
1007	// (we check in cache first)
1008	options = typeof options === "string" ?
1009		( optionsCache[ options ] || createOptions( options ) ) :
1010		jQuery.extend( {}, options );
1011
1012	var // Flag to know if list is currently firing
1013		firing,
1014		// Last fire value (for non-forgettable lists)
1015		memory,
1016		// Flag to know if list was already fired
1017		fired,
1018		// End of the loop when firing
1019		firingLength,
1020		// Index of currently firing callback (modified by remove if needed)
1021		firingIndex,
1022		// First callback to fire (used internally by add and fireWith)
1023		firingStart,
1024		// Actual callback list
1025		list = [],
1026		// Stack of fire calls for repeatable lists
1027		stack = !options.once && [],
1028		// Fire callbacks
1029		fire = function( data ) {
1030			memory = options.memory && data;
1031			fired = true;
1032			firingIndex = firingStart || 0;
1033			firingStart = 0;
1034			firingLength = list.length;
1035			firing = true;
1036			for ( ; list && firingIndex < firingLength; firingIndex++ ) {
1037				if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) {
1038					memory = false; // To prevent further calls using add
1039					break;
1040				}
1041			}
1042			firing = false;
1043			if ( list ) {
1044				if ( stack ) {
1045					if ( stack.length ) {
1046						fire( stack.shift() );
1047					}
1048				} else if ( memory ) {
1049					list = [];
1050				} else {
1051					self.disable();
1052				}
1053			}
1054		},
1055		// Actual Callbacks object
1056		self = {
1057			// Add a callback or a collection of callbacks to the list
1058			add: function() {
1059				if ( list ) {
1060					// First, we save the current length
1061					var start = list.length;
1062					(function add( args ) {
1063						jQuery.each( args, function( _, arg ) {
1064							var type = jQuery.type( arg );
1065							if ( type === "function" ) {
1066								if ( !options.unique || !self.has( arg ) ) {
1067									list.push( arg );
1068								}
1069							} else if ( arg && arg.length && type !== "string" ) {
1070								// Inspect recursively
1071								add( arg );
1072							}
1073						});
1074					})( arguments );
1075					// Do we need to add the callbacks to the
1076					// current firing batch?
1077					if ( firing ) {
1078						firingLength = list.length;
1079					// With memory, if we're not firing then
1080					// we should call right away
1081					} else if ( memory ) {
1082						firingStart = start;
1083						fire( memory );
1084					}
1085				}
1086				return this;
1087			},
1088			// Remove a callback from the list
1089			remove: function() {
1090				if ( list ) {
1091					jQuery.each( arguments, function( _, arg ) {
1092						var index;
1093						while( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {
1094							list.splice( index, 1 );
1095							// Handle firing indexes
1096							if ( firing ) {
1097								if ( index <= firingLength ) {
1098									firingLength--;
1099								}
1100								if ( index <= firingIndex ) {
1101									firingIndex--;
1102								}
1103							}
1104						}
1105					});
1106				}
1107				return this;
1108			},
1109			// Check if a given callback is in the list.
1110			// If no argument is given, return whether or not list has callbacks attached.
1111			has: function( fn ) {
1112				return fn ? jQuery.inArray( fn, list ) > -1 : !!( list && list.length );
1113			},
1114			// Remove all callbacks from the list
1115			empty: function() {
1116				list = [];
1117				return this;
1118			},
1119			// Have the list do nothing anymore
1120			disable: function() {
1121				list = stack = memory = undefined;
1122				return this;
1123			},
1124			// Is it disabled?
1125			disabled: function() {
1126				return !list;
1127			},
1128			// Lock the list in its current state
1129			lock: function() {
1130				stack = undefined;
1131				if ( !memory ) {
1132					self.disable();
1133				}
1134				return this;
1135			},
1136			// Is it locked?
1137			locked: function() {
1138				return !stack;
1139			},
1140			// Call all callbacks with the given context and arguments
1141			fireWith: function( context, args ) {
1142				args = args || [];
1143				args = [ context, args.slice ? args.slice() : args ];
1144				if ( list && ( !fired || stack ) ) {
1145					if ( firing ) {
1146						stack.push( args );
1147					} else {
1148						fire( args );
1149					}
1150				}
1151				return this;
1152			},
1153			// Call all the callbacks with the given arguments
1154			fire: function() {
1155				self.fireWith( this, arguments );
1156				return this;
1157			},
1158			// To know if the callbacks have already been called at least once
1159			fired: function() {
1160				return !!fired;
1161			}
1162		};
1163
1164	return self;
1165};
1166jQuery.extend({
1167
1168	Deferred: function( func ) {
1169		var tuples = [
1170				// action, add listener, listener list, final state
1171				[ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
1172				[ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],
1173				[ "notify", "progress", jQuery.Callbacks("memory") ]
1174			],
1175			state = "pending",
1176			promise = {
1177				state: function() {
1178					return state;
1179				},
1180				always: function() {
1181					deferred.done( arguments ).fail( arguments );
1182					return this;
1183				},
1184				then: function( /* fnDone, fnFail, fnProgress */ ) {
1185					var fns = arguments;
1186					return jQuery.Deferred(function( newDefer ) {
1187						jQuery.each( tuples, function( i, tuple ) {
1188							var action = tuple[ 0 ],
1189								fn = jQuery.isFunction( fns[ i ] ) && fns[ i ];
1190							// deferred[ done | fail | progress ] for forwarding actions to newDefer
1191							deferred[ tuple[1] ](function() {
1192								var returned = fn && fn.apply( this, arguments );
1193								if ( returned && jQuery.isFunction( returned.promise ) ) {
1194									returned.promise()
1195										.done( newDefer.resolve )
1196										.fail( newDefer.reject )
1197										.progress( newDefer.notify );
1198								} else {
1199									newDefer[ action + "With" ]( this === promise ? newDefer.promise() : this, fn ? [ returned ] : arguments );
1200								}
1201							});
vendor: 6,399 bytes, lines 1202-1400
1202						});
1203						fns = null;
1204					}).promise();
1205				},
1206				// Get a promise for this deferred
1207				// If obj is provided, the promise aspect is added to the object
1208				promise: function( obj ) {
1209					return obj != null ? jQuery.extend( obj, promise ) : promise;
1210				}
1211			},
1212			deferred = {};
1213
1214		// Keep pipe for back-compat
1215		promise.pipe = promise.then;
1216
1217		// Add list-specific methods
1218		jQuery.each( tuples, function( i, tuple ) {
1219			var list = tuple[ 2 ],
1220				stateString = tuple[ 3 ];
1221
1222			// promise[ done | fail | progress ] = list.add
1223			promise[ tuple[1] ] = list.add;
1224
1225			// Handle state
1226			if ( stateString ) {
1227				list.add(function() {
1228					// state = [ resolved | rejected ]
1229					state = stateString;
1230
1231				// [ reject_list | resolve_list ].disable; progress_list.lock
1232				}, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock );
1233			}
1234
1235			// deferred[ resolve | reject | notify ]
1236			deferred[ tuple[0] ] = function() {
1237				deferred[ tuple[0] + "With" ]( this === deferred ? promise : this, arguments );
1238				return this;
1239			};
1240			deferred[ tuple[0] + "With" ] = list.fireWith;
1241		});
1242
1243		// Make the deferred a promise
1244		promise.promise( deferred );
1245
1246		// Call given func if any
1247		if ( func ) {
1248			func.call( deferred, deferred );
1249		}
1250
1251		// All done!
1252		return deferred;
1253	},
1254
1255	// Deferred helper
1256	when: function( subordinate /* , ..., subordinateN */ ) {
1257		var i = 0,
1258			resolveValues = core_slice.call( arguments ),
1259			length = resolveValues.length,
1260
1261			// the count of uncompleted subordinates
1262			remaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0,
1263
1264			// the master Deferred. If resolveValues consist of only a single Deferred, just use that.
1265			deferred = remaining === 1 ? subordinate : jQuery.Deferred(),
1266
1267			// Update function for both resolve and progress values
1268			updateFunc = function( i, contexts, values ) {
1269				return function( value ) {
1270					contexts[ i ] = this;
1271					values[ i ] = arguments.length > 1 ? core_slice.call( arguments ) : value;
1272					if( values === progressValues ) {
1273						deferred.notifyWith( contexts, values );
1274					} else if ( !( --remaining ) ) {
1275						deferred.resolveWith( contexts, values );
1276					}
1277				};
1278			},
1279
1280			progressValues, progressContexts, resolveContexts;
1281
1282		// add listeners to Deferred subordinates; treat others as resolved
1283		if ( length > 1 ) {
1284			progressValues = new Array( length );
1285			progressContexts = new Array( length );
1286			resolveContexts = new Array( length );
1287			for ( ; i < length; i++ ) {
1288				if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) {
1289					resolveValues[ i ].promise()
1290						.done( updateFunc( i, resolveContexts, resolveValues ) )
1291						.fail( deferred.reject )
1292						.progress( updateFunc( i, progressContexts, progressValues ) );
1293				} else {
1294					--remaining;
1295				}
1296			}
1297		}
1298
1299		// if we're not waiting on anything, resolve the master
1300		if ( !remaining ) {
1301			deferred.resolveWith( resolveContexts, resolveValues );
1302		}
1303
1304		return deferred.promise();
1305	}
1306});
1307jQuery.support = (function() {
1308
1309	var support, all, a,
1310		input, select, fragment,
1311		opt, eventName, isSupported, i,
1312		div = document.createElement("div");
1313
1314	// Setup
1315	div.setAttribute( "className", "t" );
1316	div.innerHTML = "  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";
1317
1318	// Support tests won't run in some limited or non-browser environments
1319	all = div.getElementsByTagName("*");
1320	a = div.getElementsByTagName("a")[ 0 ];
1321	if ( !all || !a || !all.length ) {
1322		return {};
1323	}
1324
1325	// First batch of tests
1326	select = document.createElement("select");
1327	opt = select.appendChild( document.createElement("option") );
1328	input = div.getElementsByTagName("input")[ 0 ];
1329
1330	a.style.cssText = "top:1px;float:left;opacity:.5";
1331	support = {
1332		// Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)
1333		getSetAttribute: div.className !== "t",
1334
1335		// IE strips leading whitespace when .innerHTML is used
1336		leadingWhitespace: div.firstChild.nodeType === 3,
1337
1338		// Make sure that tbody elements aren't automatically inserted
1339		// IE will insert them into empty tables
1340		tbody: !div.getElementsByTagName("tbody").length,
1341
1342		// Make sure that link elements get serialized correctly by innerHTML
1343		// This requires a wrapper element in IE
1344		htmlSerialize: !!div.getElementsByTagName("link").length,
1345
1346		// Get the style information from getAttribute
1347		// (IE uses .cssText instead)
1348		style: /top/.test( a.getAttribute("style") ),
1349
1350		// Make sure that URLs aren't manipulated
1351		// (IE normalizes it by default)
1352		hrefNormalized: a.getAttribute("href") === "/a",
1353
1354		// Make sure that element opacity exists
1355		// (IE uses filter instead)
1356		// Use a regex to work around a WebKit issue. See #5145
1357		opacity: /^0.5/.test( a.style.opacity ),
1358
1359		// Verify style float existence
1360		// (IE uses styleFloat instead of cssFloat)
1361
1362		cssFloat: !!a.style.cssFloat,
1363
1364		// Check the default checkbox/radio value ("" on WebKit; "on" elsewhere)
1365		checkOn: !!input.value,
1366
1367		// Make sure that a selected-by-default option has a working selected property.
1368		// (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
1369		optSelected: opt.selected,
1370
1371		// Tests for enctype support on a form (#6743)
1372		enctype: !!document.createElement("form").enctype,
1373
1374		// Makes sure cloning an html5 element does not cause problems
1375		// Where outerHTML is undefined, this still works
1376		html5Clone: document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav></:nav>",
1377
1378		// jQuery.support.boxModel DEPRECATED in 1.8 since we don't support Quirks Mode
1379		boxModel: document.compatMode === "CSS1Compat",
1380
1381		// Will be defined later
1382		deleteExpando: true,
1383		noCloneEvent: true,
1384		inlineBlockNeedsLayout: false,
1385		shrinkWrapBlocks: false,
1386		reliableMarginRight: true,
1387		boxSizingReliable: true,
1388		pixelPosition: false
1389	};
1390
1391	// Make sure checked status is properly cloned
1392	input.checked = true;
1393	support.noCloneChecked = input.cloneNode( true ).checked;
1394
1395	// Make sure that the options inside disabled selects aren't marked as disabled
1396	// (WebKit marks them as disabled)
1397	select.disabled = true;
1398	support.optDisabled = !opt.disabled;
1399
1400	// Support: IE<9
1401	try {
1402		delete div.test;
1403	} catch( e ) {
1404		support.deleteExpando = false;
1405	}
1406
1407	// Check if we can trust getAttribute("value")
1408	input = document.createElement("input");
1409	input.setAttribute( "value", "" );
1410	support.input = input.getAttribute( "value" ) === "";
1411
1412	// Check if an input maintains its value after becoming a radio
1413	input.value = "t";
1414	input.setAttribute( "type", "radio" );
1415	support.radioValue = input.value === "t";
1416
1417	// #11217 - WebKit loses check when the name is after the checked attribute
1418	input.setAttribute( "checked", "t" );
1419	input.setAttribute( "name", "t" );
1420
1421	fragment = document.createDocumentFragment();
1422	fragment.appendChild( input );
1423
1424	// Check if a disconnected checkbox will retain its checked
1425	// value of true after appended to the DOM (IE6/7)
1426	support.appendChecked = input.checked;
1427
1428	// WebKit doesn't clone checked state correctly in fragments
1429	support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked;
1430
1431	// Support: IE<9
1432	// Opera does not clone events (and typeof div.attachEvent === undefined).
1433	// IE9-10 clones events bound via attachEvent, but they don't trigger with .click()
1434	if ( div.attachEvent ) {
1435		div.attachEvent( "onclick", function() {
1436			support.noCloneEvent = false;
1437		});
1438
1439		div.cloneNode( true ).click();
1440	}
1441
1442	// Support: IE<9 (lack submit/change bubble), Firefox 17+ (lack focusin event)
1443	// Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP), test/csp.php
1444	for ( i in { submit: true, change: true, focusin: true }) {
1445		div.setAttribute( eventName = "on" + i, "t" );
1446
vendor: 14,715 bytes, lines 1447-1944
1447		support[ i + "Bubbles" ] = eventName in window || div.attributes[ eventName ].expando === false;
1448	}
1449
1450	div.style.backgroundClip = "content-box";
1451	div.cloneNode( true ).style.backgroundClip = "";
1452	support.clearCloneStyle = div.style.backgroundClip === "content-box";
1453
1454	// Run tests that need a body at doc ready
1455	jQuery(function() {
1456		var container, marginDiv, tds,
1457			divReset = "padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",
1458			body = document.getElementsByTagName("body")[0];
1459
1460		if ( !body ) {
1461			// Return for frameset docs that don't have a body
1462			return;
1463		}
1464
1465		container = document.createElement("div");
1466		container.style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px";
1467
1468		body.appendChild( container ).appendChild( div );
1469
1470		// Support: IE8
1471		// Check if table cells still have offsetWidth/Height when they are set
1472		// to display:none and there are still other visible table cells in a
1473		// table row; if so, offsetWidth/Height are not reliable for use when
1474		// determining if an element has been hidden directly using
1475		// display:none (it is still safe to use offsets if a parent element is
1476		// hidden; don safety goggles and see bug #4512 for more information).
1477		div.innerHTML = "<table><tr><td></td><td>t</td></tr></table>";
1478		tds = div.getElementsByTagName("td");
1479		tds[ 0 ].style.cssText = "padding:0;margin:0;border:0;display:none";
1480		isSupported = ( tds[ 0 ].offsetHeight === 0 );
1481
1482		tds[ 0 ].style.display = "";
1483		tds[ 1 ].style.display = "none";
1484
1485		// Support: IE8
1486		// Check if empty table cells still have offsetWidth/Height
1487		support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 );
1488
1489		// Check box-sizing and margin behavior
1490		div.innerHTML = "";
1491		div.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%;";
1492		support.boxSizing = ( div.offsetWidth === 4 );
1493		support.doesNotIncludeMarginInBodyOffset = ( body.offsetTop !== 1 );
1494
1495		// Use window.getComputedStyle because jsdom on node.js will break without it.
1496		if ( window.getComputedStyle ) {
1497			support.pixelPosition = ( window.getComputedStyle( div, null ) || {} ).top !== "1%";
1498			support.boxSizingReliable = ( window.getComputedStyle( div, null ) || { width: "4px" } ).width === "4px";
1499
1500			// Check if div with explicit width and no margin-right incorrectly
1501			// gets computed margin-right based on width of container. (#3333)
1502			// Fails in WebKit before Feb 2011 nightlies
1503			// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
1504			marginDiv = div.appendChild( document.createElement("div") );
1505			marginDiv.style.cssText = div.style.cssText = divReset;
1506			marginDiv.style.marginRight = marginDiv.style.width = "0";
1507			div.style.width = "1px";
1508
1509			support.reliableMarginRight =
1510				!parseFloat( ( window.getComputedStyle( marginDiv, null ) || {} ).marginRight );
1511		}
1512
1513		if ( typeof div.style.zoom !== core_strundefined ) {
1514			// Support: IE<8
1515			// Check if natively block-level elements act like inline-block
1516			// elements when setting their display to 'inline' and giving
1517			// them layout
1518			div.innerHTML = "";
1519			div.style.cssText = divReset + "width:1px;padding:1px;display:inline;zoom:1";
1520			support.inlineBlockNeedsLayout = ( div.offsetWidth === 3 );
1521
1522			// Support: IE6
1523			// Check if elements with layout shrink-wrap their children
1524			div.style.display = "block";
1525			div.innerHTML = "<div></div>";
1526			div.firstChild.style.width = "5px";
1527			support.shrinkWrapBlocks = ( div.offsetWidth !== 3 );
1528
1529			if ( support.inlineBlockNeedsLayout ) {
1530				// Prevent IE 6 from affecting layout for positioned elements #11048
1531				// Prevent IE from shrinking the body in IE 7 mode #12869
1532				// Support: IE<8
1533				body.style.zoom = 1;
1534			}
1535		}
1536
1537		body.removeChild( container );
1538
1539		// Null elements to avoid leaks in IE
1540		container = div = tds = marginDiv = null;
1541	});
1542
1543	// Null elements to avoid leaks in IE
1544	all = select = fragment = opt = a = input = null;
1545
1546	return support;
1547})();
1548
1549var rbrace = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/,
1550	rmultiDash = /([A-Z])/g;
1551
1552function internalData( elem, name, data, pvt /* Internal Use Only */ ){
1553	if ( !jQuery.acceptData( elem ) ) {
1554		return;
1555	}
1556
1557	var thisCache, ret,
1558		internalKey = jQuery.expando,
1559		getByName = typeof name === "string",
1560
1561		// We have to handle DOM nodes and JS objects differently because IE6-7
1562		// can't GC object references properly across the DOM-JS boundary
1563		isNode = elem.nodeType,
1564
1565		// Only DOM nodes need the global jQuery cache; JS object data is
1566		// attached directly to the object so GC can occur automatically
1567		cache = isNode ? jQuery.cache : elem,
1568
1569		// Only defining an ID for JS objects if its cache already exists allows
1570		// the code to shortcut on the same path as a DOM node with no cache
1571		id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey;
1572
1573	// Avoid doing any more work than we need to when trying to get data on an
1574	// object that has no data at all
1575	if ( (!id || !cache[id] || (!pvt && !cache[id].data)) && getByName && data === undefined ) {
1576		return;
1577	}
1578
1579	if ( !id ) {
1580		// Only DOM nodes need a new unique ID for each element since their data
1581		// ends up in the global cache
1582		if ( isNode ) {
1583			elem[ internalKey ] = id = core_deletedIds.pop() || jQuery.guid++;
1584		} else {
1585			id = internalKey;
1586		}
1587	}
1588
1589	if ( !cache[ id ] ) {
1590		cache[ id ] = {};
1591
1592		// Avoids exposing jQuery metadata on plain JS objects when the object
1593		// is serialized using JSON.stringify
1594		if ( !isNode ) {
1595			cache[ id ].toJSON = jQuery.noop;
1596		}
1597	}
1598
1599	// An object can be passed to jQuery.data instead of a key/value pair; this gets
1600	// shallow copied over onto the existing cache
1601	if ( typeof name === "object" || typeof name === "function" ) {
1602		if ( pvt ) {
1603			cache[ id ] = jQuery.extend( cache[ id ], name );
1604		} else {
1605			cache[ id ].data = jQuery.extend( cache[ id ].data, name );
1606		}
1607	}
1608
1609	thisCache = cache[ id ];
1610
1611	// jQuery data() is stored in a separate object inside the object's internal data
1612	// cache in order to avoid key collisions between internal data and user-defined
1613	// data.
1614	if ( !pvt ) {
1615		if ( !thisCache.data ) {
1616			thisCache.data = {};
1617		}
1618
1619		thisCache = thisCache.data;
1620	}
1621
1622	if ( data !== undefined ) {
1623		thisCache[ jQuery.camelCase( name ) ] = data;
1624	}
1625
1626	// Check for both converted-to-camel and non-converted data property names
1627	// If a data property was specified
1628	if ( getByName ) {
1629
1630		// First Try to find as-is property data
1631		ret = thisCache[ name ];
1632
1633		// Test for null|undefined property data
1634		if ( ret == null ) {
1635
1636			// Try to find the camelCased property
1637			ret = thisCache[ jQuery.camelCase( name ) ];
1638		}
1639	} else {
1640		ret = thisCache;
1641	}
1642
1643	return ret;
1644}
1645
1646function internalRemoveData( elem, name, pvt ) {
1647	if ( !jQuery.acceptData( elem ) ) {
1648		return;
1649	}
1650
1651	var i, l, thisCache,
1652		isNode = elem.nodeType,
1653
1654		// See jQuery.data for more information
1655		cache = isNode ? jQuery.cache : elem,
1656		id = isNode ? elem[ jQuery.expando ] : jQuery.expando;
1657
1658	// If there is already no cache entry for this object, there is no
1659	// purpose in continuing
1660	if ( !cache[ id ] ) {
1661		return;
1662	}
1663
1664	if ( name ) {
1665
1666		thisCache = pvt ? cache[ id ] : cache[ id ].data;
1667
1668		if ( thisCache ) {
1669
1670			// Support array or space separated string names for data keys
1671			if ( !jQuery.isArray( name ) ) {
1672
1673				// try the string as a key before any manipulation
1674				if ( name in thisCache ) {
1675					name = [ name ];
1676				} else {
1677
1678					// split the camel cased version by spaces unless a key with the spaces exists
1679					name = jQuery.camelCase( name );
1680					if ( name in thisCache ) {
1681						name = [ name ];
1682					} else {
1683						name = name.split(" ");
1684					}
1685				}
1686			} else {
1687				// If "name" is an array of keys...
1688				// When data is initially created, via ("key", "val") signature,
1689				// keys will be converted to camelCase.
1690				// Since there is no way to tell _how_ a key was added, remove
1691				// both plain key and camelCase key. #12786
1692				// This will only penalize the array argument path.
1693				name = name.concat( jQuery.map( name, jQuery.camelCase ) );
1694			}
1695
1696			for ( i = 0, l = name.length; i < l; i++ ) {
1697				delete thisCache[ name[i] ];
1698			}
1699
1700			// If there is no data left in the cache, we want to continue
1701			// and let the cache object itself get destroyed
1702			if ( !( pvt ? isEmptyDataObject : jQuery.isEmptyObject )( thisCache ) ) {
1703				return;
1704			}
1705		}
1706	}
1707
1708	// See jQuery.data for more information
1709	if ( !pvt ) {
1710		delete cache[ id ].data;
1711
1712		// Don't destroy the parent cache unless the internal data object
1713		// had been the only thing left in it
1714		if ( !isEmptyDataObject( cache[ id ] ) ) {
1715			return;
1716		}
1717	}
1718
1719	// Destroy the cache
1720	if ( isNode ) {
1721		jQuery.cleanData( [ elem ], true );
1722
1723	// Use delete when supported for expandos or `cache` is not a window per isWindow (#10080)
1724	} else if ( jQuery.support.deleteExpando || cache != cache.window ) {
1725		delete cache[ id ];
1726
1727	// When all else fails, null
1728	} else {
1729		cache[ id ] = null;
1730	}
1731}
1732
1733jQuery.extend({
1734	cache: {},
1735
1736	// Unique for each copy of jQuery on the page
1737	// Non-digits removed to match rinlinejQuery
1738	expando: "jQuery" + ( core_version + Math.random() ).replace( /\D/g, "" ),
1739
1740	// The following elements throw uncatchable exceptions if you
1741	// attempt to add expando properties to them.
1742	noData: {
1743		"embed": true,
1744		// Ban all objects except for Flash (which handle expandos)
1745		"object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
1746		"applet": true
1747	},
1748
1749	hasData: function( elem ) {
1750		elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ];
1751		return !!elem && !isEmptyDataObject( elem );
1752	},
1753
1754	data: function( elem, name, data ) {
1755		return internalData( elem, name, data );
1756	},
1757
1758	removeData: function( elem, name ) {
1759		return internalRemoveData( elem, name );
1760	},
1761
1762	// For internal use only.
1763	_data: function( elem, name, data ) {
1764		return internalData( elem, name, data, true );
1765	},
1766
1767	_removeData: function( elem, name ) {
1768		return internalRemoveData( elem, name, true );
1769	},
1770
1771	// A method for determining if a DOM node can handle the data expando
1772	acceptData: function( elem ) {
1773		// Do not set data on non-element because it will not be cleared (#8335).
1774		if ( elem.nodeType && elem.nodeType !== 1 && elem.nodeType !== 9 ) {
1775			return false;
1776		}
1777
1778		var noData = elem.nodeName && jQuery.noData[ elem.nodeName.toLowerCase() ];
1779
1780		// nodes accept data unless otherwise specified; rejection can be conditional
1781		return !noData || noData !== true && elem.getAttribute("classid") === noData;
1782	}
1783});
1784
1785jQuery.fn.extend({
1786	data: function( key, value ) {
1787		var attrs, name,
1788			elem = this[0],
1789			i = 0,
1790			data = null;
1791
1792		// Gets all values
1793		if ( key === undefined ) {
1794			if ( this.length ) {
1795				data = jQuery.data( elem );
1796
1797				if ( elem.nodeType === 1 && !jQuery._data( elem, "parsedAttrs" ) ) {
1798					attrs = elem.attributes;
1799					for ( ; i < attrs.length; i++ ) {
1800						name = attrs[i].name;
1801
1802						if ( !name.indexOf( "data-" ) ) {
1803							name = jQuery.camelCase( name.slice(5) );
1804
1805							dataAttr( elem, name, data[ name ] );
1806						}
1807					}
1808					jQuery._data( elem, "parsedAttrs", true );
1809				}
1810			}
1811
1812			return data;
1813		}
1814
1815		// Sets multiple values
1816		if ( typeof key === "object" ) {
1817			return this.each(function() {
1818				jQuery.data( this, key );
1819			});
1820		}
1821
1822		return jQuery.access( this, function( value ) {
1823
1824			if ( value === undefined ) {
1825				// Try to fetch any internally stored data first
1826				return elem ? dataAttr( elem, key, jQuery.data( elem, key ) ) : null;
1827			}
1828
1829			this.each(function() {
1830				jQuery.data( this, key, value );
1831			});
1832		}, null, value, arguments.length > 1, null, true );
1833	},
1834
1835	removeData: function( key ) {
1836		return this.each(function() {
1837			jQuery.removeData( this, key );
1838		});
1839	}
1840});
1841
1842function dataAttr( elem, key, data ) {
1843	// If nothing was found internally, try to fetch any
1844	// data from the HTML5 data-* attribute
1845	if ( data === undefined && elem.nodeType === 1 ) {
1846
1847		var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();
1848
1849		data = elem.getAttribute( name );
1850
1851		if ( typeof data === "string" ) {
1852			try {
1853				data = data === "true" ? true :
1854					data === "false" ? false :
1855					data === "null" ? null :
1856					// Only convert to a number if it doesn't change the string
1857					+data + "" === data ? +data :
1858					rbrace.test( data ) ? jQuery.parseJSON( data ) :
1859						data;
1860			} catch( e ) {}
1861
1862			// Make sure we set the data so it isn't changed later
1863			jQuery.data( elem, key, data );
1864
1865		} else {
1866			data = undefined;
1867		}
1868	}
1869
1870	return data;
1871}
1872
1873// checks a cache object for emptiness
1874function isEmptyDataObject( obj ) {
1875	var name;
1876	for ( name in obj ) {
1877
1878		// if the public data object is empty, the private is still empty
1879		if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) {
1880			continue;
1881		}
1882		if ( name !== "toJSON" ) {
1883			return false;
1884		}
1885	}
1886
1887	return true;
1888}
1889jQuery.extend({
1890	queue: function( elem, type, data ) {
1891		var queue;
1892
1893		if ( elem ) {
1894			type = ( type || "fx" ) + "queue";
1895			queue = jQuery._data( elem, type );
1896
1897			// Speed up dequeue by getting out quickly if this is just a lookup
1898			if ( data ) {
1899				if ( !queue || jQuery.isArray(data) ) {
1900					queue = jQuery._data( elem, type, jQuery.makeArray(data) );
1901				} else {
1902					queue.push( data );
1903				}
1904			}
1905			return queue || [];
1906		}
1907	},
1908
1909	dequeue: function( elem, type ) {
1910		type = type || "fx";
1911
1912		var queue = jQuery.queue( elem, type ),
1913			startLength = queue.length,
1914			fn = queue.shift(),
1915			hooks = jQuery._queueHooks( elem, type ),
1916			next = function() {
1917				jQuery.dequeue( elem, type );
1918			};
1919
1920		// If the fx queue is dequeued, always remove the progress sentinel
1921		if ( fn === "inprogress" ) {
1922			fn = queue.shift();
1923			startLength--;
1924		}
1925
1926		hooks.cur = fn;
1927		if ( fn ) {
1928
1929			// Add a progress sentinel to prevent the fx queue from being
1930			// automatically dequeued
1931			if ( type === "fx" ) {
1932				queue.unshift( "inprogress" );
1933			}
1934
1935			// clear up the last queue stop function
1936			delete hooks.stop;
1937			fn.call( elem, next, hooks );
1938		}
1939
1940		if ( !startLength && hooks ) {
1941			hooks.empty.fire();
1942		}
1943	},
1944
vendor: 5,076 bytes, lines 1945-2135
1945	// not intended for public consumption - generates a queueHooks object, or returns the current one
1946	_queueHooks: function( elem, type ) {
1947		var key = type + "queueHooks";
1948		return jQuery._data( elem, key ) || jQuery._data( elem, key, {
1949			empty: jQuery.Callbacks("once memory").add(function() {
1950				jQuery._removeData( elem, type + "queue" );
1951				jQuery._removeData( elem, key );
1952			})
1953		});
1954	}
1955});
1956
1957jQuery.fn.extend({
1958	queue: function( type, data ) {
1959		var setter = 2;
1960
1961		if ( typeof type !== "string" ) {
1962			data = type;
1963			type = "fx";
1964			setter--;
1965		}
1966
1967		if ( arguments.length < setter ) {
1968			return jQuery.queue( this[0], type );
1969		}
1970
1971		return data === undefined ?
1972			this :
1973			this.each(function() {
1974				var queue = jQuery.queue( this, type, data );
1975
1976				// ensure a hooks for this queue
1977				jQuery._queueHooks( this, type );
1978
1979				if ( type === "fx" && queue[0] !== "inprogress" ) {
1980					jQuery.dequeue( this, type );
1981				}
1982			});
1983	},
1984	dequeue: function( type ) {
1985		return this.each(function() {
1986			jQuery.dequeue( this, type );
1987		});
1988	},
1989	// Based off of the plugin by Clint Helfers, with permission.
1990	// http://blindsignals.com/index.php/2009/07/jquery-delay/
1991	delay: function( time, type ) {
1992		time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
1993		type = type || "fx";
1994
1995		return this.queue( type, function( next, hooks ) {
1996			var timeout = setTimeout( next, time );
1997			hooks.stop = function() {
1998				clearTimeout( timeout );
1999			};
2000		});
2001	},
2002	clearQueue: function( type ) {
2003		return this.queue( type || "fx", [] );
2004	},
2005	// Get a promise resolved when queues of a certain type
2006	// are emptied (fx is the type by default)
2007	promise: function( type, obj ) {
2008		var tmp,
2009			count = 1,
2010			defer = jQuery.Deferred(),
2011			elements = this,
2012			i = this.length,
2013			resolve = function() {
2014				if ( !( --count ) ) {
2015					defer.resolveWith( elements, [ elements ] );
2016				}
2017			};
2018
2019		if ( typeof type !== "string" ) {
2020			obj = type;
2021			type = undefined;
2022		}
2023		type = type || "fx";
2024
2025		while( i-- ) {
2026			tmp = jQuery._data( elements[ i ], type + "queueHooks" );
2027			if ( tmp && tmp.empty ) {
2028				count++;
2029				tmp.empty.add( resolve );
2030			}
2031		}
2032		resolve();
2033		return defer.promise( obj );
2034	}
2035});
2036var nodeHook, boolHook,
2037	rclass = /[\t\r\n]/g,
2038	rreturn = /\r/g,
2039	rfocusable = /^(?:input|select|textarea|button|object)$/i,
2040	rclickable = /^(?:a|area)$/i,
2041	rboolean = /^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/i,
2042	ruseDefault = /^(?:checked|selected)$/i,
2043	getSetAttribute = jQuery.support.getSetAttribute,
2044	getSetInput = jQuery.support.input;
2045
2046jQuery.fn.extend({
2047	attr: function( name, value ) {
2048		return jQuery.access( this, jQuery.attr, name, value, arguments.length > 1 );
2049	},
2050
2051	removeAttr: function( name ) {
2052		return this.each(function() {
2053			jQuery.removeAttr( this, name );
2054		});
2055	},
2056
2057	prop: function( name, value ) {
2058		return jQuery.access( this, jQuery.prop, name, value, arguments.length > 1 );
2059	},
2060
2061	removeProp: function( name ) {
2062		name = jQuery.propFix[ name ] || name;
2063		return this.each(function() {
2064			// try/catch handles cases where IE balks (such as removing a property on window)
2065			try {
2066				this[ name ] = undefined;
2067				delete this[ name ];
2068			} catch( e ) {}
2069		});
2070	},
2071
2072	addClass: function( value ) {
2073		var classes, elem, cur, clazz, j,
2074			i = 0,
2075			len = this.length,
2076			proceed = typeof value === "string" && value;
2077
2078		if ( jQuery.isFunction( value ) ) {
2079			return this.each(function( j ) {
2080				jQuery( this ).addClass( value.call( this, j, this.className ) );
2081			});
2082		}
2083
2084		if ( proceed ) {
2085			// The disjunction here is for better compressibility (see removeClass)
2086			classes = ( value || "" ).match( core_rnotwhite ) || [];
2087
2088			for ( ; i < len; i++ ) {
2089				elem = this[ i ];
2090				cur = elem.nodeType === 1 && ( elem.className ?
2091					( " " + elem.className + " " ).replace( rclass, " " ) :
2092					" "
2093				);
2094
2095				if ( cur ) {
2096					j = 0;
2097					while ( (clazz = classes[j++]) ) {
2098						if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
2099							cur += clazz + " ";
2100						}
2101					}
2102					elem.className = jQuery.trim( cur );
2103
2104				}
2105			}
2106		}
2107
2108		return this;
2109	},
2110
2111	removeClass: function( value ) {
2112		var classes, elem, cur, clazz, j,
2113			i = 0,
2114			len = this.length,
2115			proceed = arguments.length === 0 || typeof value === "string" && value;
2116
2117		if ( jQuery.isFunction( value ) ) {
2118			return this.each(function( j ) {
2119				jQuery( this ).removeClass( value.call( this, j, this.className ) );
2120			});
2121		}
2122		if ( proceed ) {
2123			classes = ( value || "" ).match( core_rnotwhite ) || [];
2124
2125			for ( ; i < len; i++ ) {
2126				elem = this[ i ];
2127				// This expression is here for better compressibility (see addClass)
2128				cur = elem.nodeType === 1 && ( elem.className ?
2129					( " " + elem.className + " " ).replace( rclass, " " ) :
2130					""
2131				);
2132
2133				if ( cur ) {
2134					j = 0;
2135					while ( (clazz = classes[j++]) ) {
vendor: 6,405 bytes, lines 2136-2368
2136						// Remove *all* instances
2137						while ( cur.indexOf( " " + clazz + " " ) >= 0 ) {
2138							cur = cur.replace( " " + clazz + " ", " " );
2139						}
2140					}
2141					elem.className = value ? jQuery.trim( cur ) : "";
2142				}
2143			}
2144		}
2145
2146		return this;
2147	},
2148
2149	toggleClass: function( value, stateVal ) {
2150		var type = typeof value,
2151			isBool = typeof stateVal === "boolean";
2152
2153		if ( jQuery.isFunction( value ) ) {
2154			return this.each(function( i ) {
2155				jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );
2156			});
2157		}
2158
2159		return this.each(function() {
2160			if ( type === "string" ) {
2161				// toggle individual class names
2162				var className,
2163					i = 0,
2164					self = jQuery( this ),
2165					state = stateVal,
2166					classNames = value.match( core_rnotwhite ) || [];
2167
2168				while ( (className = classNames[ i++ ]) ) {
2169					// check each className given, space separated list
2170					state = isBool ? state : !self.hasClass( className );
2171					self[ state ? "addClass" : "removeClass" ]( className );
2172				}
2173
2174			// Toggle whole class name
2175			} else if ( type === core_strundefined || type === "boolean" ) {
2176				if ( this.className ) {
2177					// store className if set
2178					jQuery._data( this, "__className__", this.className );
2179				}
2180
2181				// If the element has a class name or if we're passed "false",
2182				// then remove the whole classname (if there was one, the above saved it).
2183				// Otherwise bring back whatever was previously saved (if anything),
2184				// falling back to the empty string if nothing was stored.
2185				this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || "";
2186			}
2187		});
2188	},
2189
2190	hasClass: function( selector ) {
2191		var className = " " + selector + " ",
2192			i = 0,
2193			l = this.length;
2194		for ( ; i < l; i++ ) {
2195			if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) >= 0 ) {
2196				return true;
2197			}
2198		}
2199
2200		return false;
2201	},
2202
2203	val: function( value ) {
2204		var ret, hooks, isFunction,
2205			elem = this[0];
2206
2207		if ( !arguments.length ) {
2208			if ( elem ) {
2209				hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ];
2210
2211				if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {
2212					return ret;
2213				}
2214
2215				ret = elem.value;
2216
2217				return typeof ret === "string" ?
2218					// handle most common string cases
2219					ret.replace(rreturn, "") :
2220					// handle cases where value is null/undef or number
2221					ret == null ? "" : ret;
2222			}
2223
2224			return;
2225		}
2226
2227		isFunction = jQuery.isFunction( value );
2228
2229		return this.each(function( i ) {
2230			var val,
2231				self = jQuery(this);
2232
2233			if ( this.nodeType !== 1 ) {
2234				return;
2235			}
2236
2237			if ( isFunction ) {
2238				val = value.call( this, i, self.val() );
2239			} else {
2240				val = value;
2241			}
2242
2243			// Treat null/undefined as ""; convert numbers to string
2244			if ( val == null ) {
2245				val = "";
2246			} else if ( typeof val === "number" ) {
2247				val += "";
2248			} else if ( jQuery.isArray( val ) ) {
2249				val = jQuery.map(val, function ( value ) {
2250					return value == null ? "" : value + "";
2251				});
2252			}
2253
2254			hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];
2255
2256			// If set returns undefined, fall back to normal setting
2257			if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {
2258				this.value = val;
2259			}
2260		});
2261	}
2262});
2263
2264jQuery.extend({
2265	valHooks: {
2266		option: {
2267			get: function( elem ) {
2268				// attributes.value is undefined in Blackberry 4.7 but
2269				// uses .value. See #6932
2270				var val = elem.attributes.value;
2271				return !val || val.specified ? elem.value : elem.text;
2272			}
2273		},
2274		select: {
2275			get: function( elem ) {
2276				var value, option,
2277					options = elem.options,
2278					index = elem.selectedIndex,
2279					one = elem.type === "select-one" || index < 0,
2280					values = one ? null : [],
2281					max = one ? index + 1 : options.length,
2282					i = index < 0 ?
2283						max :
2284						one ? index : 0;
2285
2286				// Loop through all the selected options
2287				for ( ; i < max; i++ ) {
2288					option = options[ i ];
2289
2290					// oldIE doesn't update selected after form reset (#2551)
2291					if ( ( option.selected || i === index ) &&
2292							// Don't return options that are disabled or in a disabled optgroup
2293							( jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null ) &&
2294							( !option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) {
2295
2296						// Get the specific value for the option
2297						value = jQuery( option ).val();
2298
2299						// We don't need an array for one selects
2300						if ( one ) {
2301							return value;
2302						}
2303
2304						// Multi-Selects return an array
2305						values.push( value );
2306					}
2307				}
2308
2309				return values;
2310			},
2311
2312			set: function( elem, value ) {
2313				var values = jQuery.makeArray( value );
2314
2315				jQuery(elem).find("option").each(function() {
2316					this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;
2317				});
2318
2319				if ( !values.length ) {
2320					elem.selectedIndex = -1;
2321				}
2322				return values;
2323			}
2324		}
2325	},
2326
2327	attr: function( elem, name, value ) {
2328		var hooks, notxml, ret,
2329			nType = elem.nodeType;
2330
2331		// don't get/set attributes on text, comment and attribute nodes
2332		if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
2333			return;
2334		}
2335
2336		// Fallback to prop when attributes are not supported
2337		if ( typeof elem.getAttribute === core_strundefined ) {
2338			return jQuery.prop( elem, name, value );
2339		}
2340
2341		notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
2342
2343		// All attributes are lowercase
2344		// Grab necessary hook if one is defined
2345		if ( notxml ) {
2346			name = name.toLowerCase();
2347			hooks = jQuery.attrHooks[ name ] || ( rboolean.test( name ) ? boolHook : nodeHook );
2348		}
2349
2350		if ( value !== undefined ) {
2351
2352			if ( value === null ) {
2353				jQuery.removeAttr( elem, name );
2354
2355			} else if ( hooks && notxml && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
2356				return ret;
2357
2358			} else {
2359				elem.setAttribute( name, value + "" );
2360				return value;
2361			}
2362
2363		} else if ( hooks && notxml && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
2364			return ret;
2365
2366		} else {
2367
2368			// In IE9+, Flash objects don't have .getAttribute (#12945)
2369			// Support: IE9+
2370			if ( typeof elem.getAttribute !== core_strundefined ) {
2371				ret =  elem.getAttribute( name );
2372			}
2373
2374			// Non-existent attributes return null, we normalize to undefined
2375			return ret == null ?
2376				undefined :
2377				ret;
2378		}
2379	},
2380
2381	removeAttr: function( elem, value ) {
2382		var name, propName,
2383			i = 0,
2384			attrNames = value && value.match( core_rnotwhite );
2385
2386		if ( attrNames && elem.nodeType === 1 ) {
2387			while ( (name = attrNames[i++]) ) {
2388				propName = jQuery.propFix[ name ] || name;
2389
2390				// Boolean attributes get special treatment (#10870)
2391				if ( rboolean.test( name ) ) {
2392					// Set corresponding property to false for boolean attributes
2393					// Also clear defaultChecked/defaultSelected (if appropriate) for IE<8
2394					if ( !getSetAttribute && ruseDefault.test( name ) ) {
2395						elem[ jQuery.camelCase( "default-" + name ) ] =
2396							elem[ propName ] = false;
2397					} else {
2398						elem[ propName ] = false;
2399					}
2400
2401				// See #9699 for explanation of this approach (setting first, then removal)
2402				} else {
2403					jQuery.attr( elem, name, "" );
2404				}
2405
2406				elem.removeAttribute( getSetAttribute ? name : propName );
2407			}
2408		}
2409	},
2410
2411	attrHooks: {
2412		type: {
2413			set: function( elem, value ) {
2414				if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) {
2415					// Setting the type on a radio button after the value resets the value in IE6-9
2416					// Reset value to default in case type is set after value during creation
2417					var val = elem.value;
2418					elem.setAttribute( "type", value );
2419					if ( val ) {
2420						elem.value = val;
2421					}
2422					return value;
2423				}
2424			}
2425		}
2426	},
2427
2428	propFix: {
2429		tabindex: "tabIndex",
2430		readonly: "readOnly",
2431		"for": "htmlFor",
2432		"class": "className",
2433		maxlength: "maxLength",
2434		cellspacing: "cellSpacing",
2435		cellpadding: "cellPadding",
2436		rowspan: "rowSpan",
2437		colspan: "colSpan",
2438		usemap: "useMap",
2439		frameborder: "frameBorder",
2440		contenteditable: "contentEditable"
2441	},
2442
2443	prop: function( elem, name, value ) {
2444		var ret, hooks, notxml,
2445			nType = elem.nodeType;
2446
2447		// don't get/set properties on text, comment and attribute nodes
2448		if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
2449			return;
2450		}
2451
2452		notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
2453
2454		if ( notxml ) {
2455			// Fix name and attach hooks
2456			name = jQuery.propFix[ name ] || name;
2457			hooks = jQuery.propHooks[ name ];
2458		}
2459
2460		if ( value !== undefined ) {
2461			if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
2462				return ret;
2463
2464			} else {
2465				return ( elem[ name ] = value );
2466			}
2467
2468		} else {
2469			if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
2470				return ret;
2471
2472			} else {
2473				return elem[ name ];
2474			}
2475		}
2476	},
2477
2478	propHooks: {
2479		tabIndex: {
2480			get: function( elem ) {
2481				// elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
2482				// http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
2483				var attributeNode = elem.getAttributeNode("tabindex");
2484
2485				return attributeNode && attributeNode.specified ?
2486					parseInt( attributeNode.value, 10 ) :
2487					rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
2488						0 :
2489						undefined;
2490			}
2491		}
2492	}
2493});
2494
2495// Hook for boolean attributes
2496boolHook = {
2497	get: function( elem, name ) {
2498		var
2499			// Use .prop to determine if this attribute is understood as boolean
2500			prop = jQuery.prop( elem, name ),
2501
2502			// Fetch it accordingly
2503			attr = typeof prop === "boolean" && elem.getAttribute( name ),
2504			detail = typeof prop === "boolean" ?
2505
2506				getSetInput && getSetAttribute ?
2507					attr != null :
2508					// oldIE fabricates an empty string for missing boolean attributes
2509					// and conflates checked/selected into attroperties
2510					ruseDefault.test( name ) ?
2511						elem[ jQuery.camelCase( "default-" + name ) ] :
2512						!!attr :
2513
2514				// fetch an attribute node for properties not recognized as boolean
2515				elem.getAttributeNode( name );
2516
2517		return detail && detail.value !== false ?
2518			name.toLowerCase() :
2519			undefined;
2520	},
2521	set: function( elem, value, name ) {
2522		if ( value === false ) {
2523			// Remove boolean attributes when set to false
2524			jQuery.removeAttr( elem, name );
2525		} else if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) {
2526			// IE<8 needs the *property* name
2527			elem.setAttribute( !getSetAttribute && jQuery.propFix[ name ] || name, name );
2528
2529		// Use defaultChecked and defaultSelected for oldIE
2530		} else {
2531			elem[ jQuery.camelCase( "default-" + name ) ] = elem[ name ] = true;
2532		}
2533
2534		return name;
2535	}
2536};
2537
2538// fix oldIE value attroperty
2539if ( !getSetInput || !getSetAttribute ) {
2540	jQuery.attrHooks.value = {
2541		get: function( elem, name ) {
2542			var ret = elem.getAttributeNode( name );
2543			return jQuery.nodeName( elem, "input" ) ?
2544
2545				// Ignore the value *property* by using defaultValue
2546				elem.defaultValue :
2547
2548				ret && ret.specified ? ret.value : undefined;
2549		},
2550		set: function( elem, value, name ) {
2551			if ( jQuery.nodeName( elem, "input" ) ) {
2552				// Does not return so that setAttribute is also used
2553				elem.defaultValue = value;
2554			} else {
2555				// Use nodeHook if defined (#1954); otherwise setAttribute is fine
2556				return nodeHook && nodeHook.set( elem, value, name );
2557			}
2558		}
2559	};
2560}
2561
2562// IE6/7 do not support getting/setting some attributes with get/setAttribute
2563if ( !getSetAttribute ) {
2564
2565	// Use this for any attribute in IE6/7
2566	// This fixes almost every IE6/7 issue
2567	nodeHook = jQuery.valHooks.button = {
2568		get: function( elem, name ) {
2569			var ret = elem.getAttributeNode( name );
vendor: 26,908 bytes, lines 2570-3450
2570			return ret && ( name === "id" || name === "name" || name === "coords" ? ret.value !== "" : ret.specified ) ?
2571				ret.value :
2572				undefined;
2573		},
2574		set: function( elem, value, name ) {
2575			// Set the existing or create a new attribute node
2576			var ret = elem.getAttributeNode( name );
2577			if ( !ret ) {
2578				elem.setAttributeNode(
2579					(ret = elem.ownerDocument.createAttribute( name ))
2580				);
2581			}
2582
2583			ret.value = value += "";
2584
2585			// Break association with cloned elements by also using setAttribute (#9646)
2586			return name === "value" || value === elem.getAttribute( name ) ?
2587				value :
2588				undefined;
2589		}
2590	};
2591
2592	// Set contenteditable to false on removals(#10429)
2593	// Setting to empty string throws an error as an invalid value
2594	jQuery.attrHooks.contenteditable = {
2595		get: nodeHook.get,
2596		set: function( elem, value, name ) {
2597			nodeHook.set( elem, value === "" ? false : value, name );
2598		}
2599	};
2600
2601	// Set width and height to auto instead of 0 on empty string( Bug #8150 )
2602	// This is for removals
2603	jQuery.each([ "width", "height" ], function( i, name ) {
2604		jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
2605			set: function( elem, value ) {
2606				if ( value === "" ) {
2607					elem.setAttribute( name, "auto" );
2608					return value;
2609				}
2610			}
2611		});
2612	});
2613}
2614
2615
2616// Some attributes require a special call on IE
2617// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
2618if ( !jQuery.support.hrefNormalized ) {
2619	jQuery.each([ "href", "src", "width", "height" ], function( i, name ) {
2620		jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
2621			get: function( elem ) {
2622				var ret = elem.getAttribute( name, 2 );
2623				return ret == null ? undefined : ret;
2624			}
2625		});
2626	});
2627
2628	// href/src property should get the full normalized URL (#10299/#12915)
2629	jQuery.each([ "href", "src" ], function( i, name ) {
2630		jQuery.propHooks[ name ] = {
2631			get: function( elem ) {
2632				return elem.getAttribute( name, 4 );
2633			}
2634		};
2635	});
2636}
2637
2638if ( !jQuery.support.style ) {
2639	jQuery.attrHooks.style = {
2640		get: function( elem ) {
2641			// Return undefined in the case of empty string
2642			// Note: IE uppercases css property names, but if we were to .toLowerCase()
2643			// .cssText, that would destroy case senstitivity in URL's, like in "background"
2644			return elem.style.cssText || undefined;
2645		},
2646		set: function( elem, value ) {
2647			return ( elem.style.cssText = value + "" );
2648		}
2649	};
2650}
2651
2652// Safari mis-reports the default selected property of an option
2653// Accessing the parent's selectedIndex property fixes it
2654if ( !jQuery.support.optSelected ) {
2655	jQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, {
2656		get: function( elem ) {
2657			var parent = elem.parentNode;
2658
2659			if ( parent ) {
2660				parent.selectedIndex;
2661
2662				// Make sure that it also works with optgroups, see #5701
2663				if ( parent.parentNode ) {
2664					parent.parentNode.selectedIndex;
2665				}
2666			}
2667			return null;
2668		}
2669	});
2670}
2671
2672// IE6/7 call enctype encoding
2673if ( !jQuery.support.enctype ) {
2674	jQuery.propFix.enctype = "encoding";
2675}
2676
2677// Radios and checkboxes getter/setter
2678if ( !jQuery.support.checkOn ) {
2679	jQuery.each([ "radio", "checkbox" ], function() {
2680		jQuery.valHooks[ this ] = {
2681			get: function( elem ) {
2682				// Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified
2683				return elem.getAttribute("value") === null ? "on" : elem.value;
2684			}
2685		};
2686	});
2687}
2688jQuery.each([ "radio", "checkbox" ], function() {
2689	jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], {
2690		set: function( elem, value ) {
2691			if ( jQuery.isArray( value ) ) {
2692				return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );
2693			}
2694		}
2695	});
2696});
2697var rformElems = /^(?:input|select|textarea)$/i,
2698	rkeyEvent = /^key/,
2699	rmouseEvent = /^(?:mouse|contextmenu)|click/,
2700	rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
2701	rtypenamespace = /^([^.]*)(?:\.(.+)|)$/;
2702
2703function returnTrue() {
2704	return true;
2705}
2706
2707function returnFalse() {
2708	return false;
2709}
2710
2711/*
2712 * Helper functions for managing events -- not part of the public interface.
2713 * Props to Dean Edwards' addEvent library for many of the ideas.
2714 */
2715jQuery.event = {
2716
2717	global: {},
2718
2719	add: function( elem, types, handler, data, selector ) {
2720		var tmp, events, t, handleObjIn,
2721			special, eventHandle, handleObj,
2722			handlers, type, namespaces, origType,
2723			elemData = jQuery._data( elem );
2724
2725		// Don't attach events to noData or text/comment nodes (but allow plain objects)
2726		if ( !elemData ) {
2727			return;
2728		}
2729
2730		// Caller can pass in an object of custom data in lieu of the handler
2731		if ( handler.handler ) {
2732			handleObjIn = handler;
2733			handler = handleObjIn.handler;
2734			selector = handleObjIn.selector;
2735		}
2736
2737		// Make sure that the handler has a unique ID, used to find/remove it later
2738		if ( !handler.guid ) {
2739			handler.guid = jQuery.guid++;
2740		}
2741
2742		// Init the element's event structure and main handler, if this is the first
2743		if ( !(events = elemData.events) ) {
2744			events = elemData.events = {};
2745		}
2746		if ( !(eventHandle = elemData.handle) ) {
2747			eventHandle = elemData.handle = function( e ) {
2748				// Discard the second event of a jQuery.event.trigger() and
2749				// when an event is called after a page has unloaded
2750				return typeof jQuery !== core_strundefined && (!e || jQuery.event.triggered !== e.type) ?
2751					jQuery.event.dispatch.apply( eventHandle.elem, arguments ) :
2752					undefined;
2753			};
2754			// Add elem as a property of the handle fn to prevent a memory leak with IE non-native events
2755			eventHandle.elem = elem;
2756		}
2757
2758		// Handle multiple events separated by a space
2759		// jQuery(...).bind("mouseover mouseout", fn);
2760		types = ( types || "" ).match( core_rnotwhite ) || [""];
2761		t = types.length;
2762		while ( t-- ) {
2763			tmp = rtypenamespace.exec( types[t] ) || [];
2764			type = origType = tmp[1];
2765			namespaces = ( tmp[2] || "" ).split( "." ).sort();
2766
2767			// If event changes its type, use the special event handlers for the changed type
2768			special = jQuery.event.special[ type ] || {};
2769
2770			// If selector defined, determine special event api type, otherwise given type
2771			type = ( selector ? special.delegateType : special.bindType ) || type;
2772
2773			// Update special based on newly reset type
2774			special = jQuery.event.special[ type ] || {};
2775
2776			// handleObj is passed to all event handlers
2777			handleObj = jQuery.extend({
2778				type: type,
2779				origType: origType,
2780				data: data,
2781				handler: handler,
2782				guid: handler.guid,
2783				selector: selector,
2784				needsContext: selector && jQuery.expr.match.needsContext.test( selector ),
2785				namespace: namespaces.join(".")
2786			}, handleObjIn );
2787
2788			// Init the event handler queue if we're the first
2789			if ( !(handlers = events[ type ]) ) {
2790				handlers = events[ type ] = [];
2791				handlers.delegateCount = 0;
2792
2793				// Only use addEventListener/attachEvent if the special events handler returns false
2794				if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
2795					// Bind the global event handler to the element
2796					if ( elem.addEventListener ) {
2797						elem.addEventListener( type, eventHandle, false );
2798
2799					} else if ( elem.attachEvent ) {
2800						elem.attachEvent( "on" + type, eventHandle );
2801					}
2802				}
2803			}
2804
2805			if ( special.add ) {
2806				special.add.call( elem, handleObj );
2807
2808				if ( !handleObj.handler.guid ) {
2809					handleObj.handler.guid = handler.guid;
2810				}
2811			}
2812
2813			// Add to the element's handler list, delegates in front
2814			if ( selector ) {
2815				handlers.splice( handlers.delegateCount++, 0, handleObj );
2816			} else {
2817				handlers.push( handleObj );
2818			}
2819
2820			// Keep track of which events have ever been used, for event optimization
2821			jQuery.event.global[ type ] = true;
2822		}
2823
2824		// Nullify elem to prevent memory leaks in IE
2825		elem = null;
2826	},
2827
2828	// Detach an event or set of events from an element
2829	remove: function( elem, types, handler, selector, mappedTypes ) {
2830		var j, handleObj, tmp,
2831			origCount, t, events,
2832			special, handlers, type,
2833			namespaces, origType,
2834			elemData = jQuery.hasData( elem ) && jQuery._data( elem );
2835
2836		if ( !elemData || !(events = elemData.events) ) {
2837			return;
2838		}
2839
2840		// Once for each type.namespace in types; type may be omitted
2841		types = ( types || "" ).match( core_rnotwhite ) || [""];
2842		t = types.length;
2843		while ( t-- ) {
2844			tmp = rtypenamespace.exec( types[t] ) || [];
2845			type = origType = tmp[1];
2846			namespaces = ( tmp[2] || "" ).split( "." ).sort();
2847
2848			// Unbind all events (on this namespace, if provided) for the element
2849			if ( !type ) {
2850				for ( type in events ) {
2851					jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
2852				}
2853				continue;
2854			}
2855
2856			special = jQuery.event.special[ type ] || {};
2857			type = ( selector ? special.delegateType : special.bindType ) || type;
2858			handlers = events[ type ] || [];
2859			tmp = tmp[2] && new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" );
2860
2861			// Remove matching events
2862			origCount = j = handlers.length;
2863			while ( j-- ) {
2864				handleObj = handlers[ j ];
2865
2866				if ( ( mappedTypes || origType === handleObj.origType ) &&
2867					( !handler || handler.guid === handleObj.guid ) &&
2868					( !tmp || tmp.test( handleObj.namespace ) ) &&
2869					( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
2870					handlers.splice( j, 1 );
2871
2872					if ( handleObj.selector ) {
2873						handlers.delegateCount--;
2874					}
2875					if ( special.remove ) {
2876						special.remove.call( elem, handleObj );
2877					}
2878				}
2879			}
2880
2881			// Remove generic event handler if we removed something and no more handlers exist
2882			// (avoids potential for endless recursion during removal of special event handlers)
2883			if ( origCount && !handlers.length ) {
2884				if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) {
2885					jQuery.removeEvent( elem, type, elemData.handle );
2886				}
2887
2888
2889				delete events[ type ];
2890			}
2891		}
2892
2893		// Remove the expando if it's no longer used
2894		if ( jQuery.isEmptyObject( events ) ) {
2895			delete elemData.handle;
2896
2897			// removeData also checks for emptiness and clears the expando if empty
2898			// so use it instead of delete
2899			jQuery._removeData( elem, "events" );
2900		}
2901	},
2902
2903	trigger: function( event, data, elem, onlyHandlers ) {
2904		var handle, ontype, cur,
2905			bubbleType, special, tmp, i,
2906			eventPath = [ elem || document ],
2907			type = core_hasOwn.call( event, "type" ) ? event.type : event,
2908			namespaces = core_hasOwn.call( event, "namespace" ) ? event.namespace.split(".") : [];
2909
2910		cur = tmp = elem = elem || document;
2911
2912		// Don't do events on text and comment nodes
2913		if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
2914			return;
2915		}
2916
2917		// focus/blur morphs to focusin/out; ensure we're not firing them right now
2918		if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
2919			return;
2920		}
2921
2922		if ( type.indexOf(".") >= 0 ) {
2923			// Namespaced trigger; create a regexp to match event type in handle()
2924			namespaces = type.split(".");
2925			type = namespaces.shift();
2926			namespaces.sort();
2927		}
2928		ontype = type.indexOf(":") < 0 && "on" + type;
2929
2930		// Caller can pass in a jQuery.Event object, Object, or just an event type string
2931		event = event[ jQuery.expando ] ?
2932			event :
2933			new jQuery.Event( type, typeof event === "object" && event );
2934
2935		event.isTrigger = true;
2936		event.namespace = namespaces.join(".");
2937		event.namespace_re = event.namespace ?
2938			new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ) :
2939			null;
2940
2941		// Clean up the event in case it is being reused
2942		event.result = undefined;
2943		if ( !event.target ) {
2944			event.target = elem;
2945		}
2946
2947		// Clone any incoming data and prepend the event, creating the handler arg list
2948		data = data == null ?
2949			[ event ] :
2950			jQuery.makeArray( data, [ event ] );
2951
2952		// Allow special events to draw outside the lines
2953		special = jQuery.event.special[ type ] || {};
2954		if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {
2955			return;
2956		}
2957
2958		// Determine event propagation path in advance, per W3C events spec (#9951)
2959		// Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
2960		if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {
2961
2962			bubbleType = special.delegateType || type;
2963			if ( !rfocusMorph.test( bubbleType + type ) ) {
2964				cur = cur.parentNode;
2965			}
2966			for ( ; cur; cur = cur.parentNode ) {
2967				eventPath.push( cur );
2968				tmp = cur;
2969			}
2970
2971			// Only add window if we got to document (e.g., not plain obj or detached DOM)
2972			if ( tmp === (elem.ownerDocument || document) ) {
2973				eventPath.push( tmp.defaultView || tmp.parentWindow || window );
2974			}
2975		}
2976
2977		// Fire handlers on the event path
2978		i = 0;
2979		while ( (cur = eventPath[i++]) && !event.isPropagationStopped() ) {
2980
2981			event.type = i > 1 ?
2982				bubbleType :
2983				special.bindType || type;
2984
2985			// jQuery handler
2986			handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" );
2987			if ( handle ) {
2988				handle.apply( cur, data );
2989			}
2990
2991			// Native handler
2992			handle = ontype && cur[ ontype ];
2993			if ( handle && jQuery.acceptData( cur ) && handle.apply && handle.apply( cur, data ) === false ) {
2994				event.preventDefault();
2995			}
2996		}
2997		event.type = type;
2998
2999		// If nobody prevented the default action, do it now
3000		if ( !onlyHandlers && !event.isDefaultPrevented() ) {
3001
3002			if ( (!special._default || special._default.apply( elem.ownerDocument, data ) === false) &&
3003				!(type === "click" && jQuery.nodeName( elem, "a" )) && jQuery.acceptData( elem ) ) {
3004
3005				// Call a native DOM method on the target with the same name name as the event.
3006				// Can't use an .isFunction() check here because IE6/7 fails that test.
3007				// Don't do default actions on window, that's where global variables be (#6170)
3008				if ( ontype && elem[ type ] && !jQuery.isWindow( elem ) ) {
3009
3010					// Don't re-trigger an onFOO event when we call its FOO() method
3011					tmp = elem[ ontype ];
3012
3013					if ( tmp ) {
3014						elem[ ontype ] = null;
3015					}
3016
3017					// Prevent re-triggering of the same event, since we already bubbled it above
3018					jQuery.event.triggered = type;
3019					try {
3020						elem[ type ]();
3021					} catch ( e ) {
3022						// IE<9 dies on focus/blur to hidden element (#1486,#12518)
3023						// only reproducible on winXP IE8 native, not IE9 in IE8 mode
3024					}
3025					jQuery.event.triggered = undefined;
3026
3027					if ( tmp ) {
3028						elem[ ontype ] = tmp;
3029					}
3030				}
3031			}
3032		}
3033
3034		return event.result;
3035	},
3036
3037	dispatch: function( event ) {
3038
3039		// Make a writable jQuery.Event from the native event object
3040		event = jQuery.event.fix( event );
3041
3042		var i, ret, handleObj, matched, j,
3043			handlerQueue = [],
3044			args = core_slice.call( arguments ),
3045			handlers = ( jQuery._data( this, "events" ) || {} )[ event.type ] || [],
3046			special = jQuery.event.special[ event.type ] || {};
3047
3048		// Use the fix-ed jQuery.Event rather than the (read-only) native event
3049		args[0] = event;
3050		event.delegateTarget = this;
3051
3052		// Call the preDispatch hook for the mapped type, and let it bail if desired
3053		if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {
3054			return;
3055		}
3056
3057		// Determine handlers
3058		handlerQueue = jQuery.event.handlers.call( this, event, handlers );
3059
3060		// Run delegates first; they may want to stop propagation beneath us
3061		i = 0;
3062		while ( (matched = handlerQueue[ i++ ]) && !event.isPropagationStopped() ) {
3063			event.currentTarget = matched.elem;
3064
3065			j = 0;
3066			while ( (handleObj = matched.handlers[ j++ ]) && !event.isImmediatePropagationStopped() ) {
3067
3068				// Triggered event must either 1) have no namespace, or
3069				// 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace).
3070				if ( !event.namespace_re || event.namespace_re.test( handleObj.namespace ) ) {
3071
3072					event.handleObj = handleObj;
3073					event.data = handleObj.data;
3074
3075					ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler )
3076							.apply( matched.elem, args );
3077
3078					if ( ret !== undefined ) {
3079						if ( (event.result = ret) === false ) {
3080							event.preventDefault();
3081							event.stopPropagation();
3082						}
3083					}
3084				}
3085			}
3086		}
3087
3088		// Call the postDispatch hook for the mapped type
3089		if ( special.postDispatch ) {
3090			special.postDispatch.call( this, event );
3091		}
3092
3093		return event.result;
3094	},
3095
3096	handlers: function( event, handlers ) {
3097		var sel, handleObj, matches, i,
3098			handlerQueue = [],
3099			delegateCount = handlers.delegateCount,
3100			cur = event.target;
3101
3102		// Find delegate handlers
3103		// Black-hole SVG <use> instance trees (#13180)
3104		// Avoid non-left-click bubbling in Firefox (#3861)
3105		if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) {
3106
3107			for ( ; cur != this; cur = cur.parentNode || this ) {
3108
3109				// Don't check non-elements (#13208)
3110				// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
3111				if ( cur.nodeType === 1 && (cur.disabled !== true || event.type !== "click") ) {
3112					matches = [];
3113					for ( i = 0; i < delegateCount; i++ ) {
3114						handleObj = handlers[ i ];
3115
3116						// Don't conflict with Object.prototype properties (#13203)
3117						sel = handleObj.selector + " ";
3118
3119						if ( matches[ sel ] === undefined ) {
3120							matches[ sel ] = handleObj.needsContext ?
3121								jQuery( sel, this ).index( cur ) >= 0 :
3122								jQuery.find( sel, this, null, [ cur ] ).length;
3123						}
3124						if ( matches[ sel ] ) {
3125							matches.push( handleObj );
3126						}
3127					}
3128					if ( matches.length ) {
3129						handlerQueue.push({ elem: cur, handlers: matches });
3130					}
3131				}
3132			}
3133		}
3134
3135		// Add the remaining (directly-bound) handlers
3136		if ( delegateCount < handlers.length ) {
3137			handlerQueue.push({ elem: this, handlers: handlers.slice( delegateCount ) });
3138		}
3139
3140		return handlerQueue;
3141	},
3142
3143	fix: function( event ) {
3144		if ( event[ jQuery.expando ] ) {
3145			return event;
3146		}
3147
3148		// Create a writable copy of the event object and normalize some properties
3149		var i, prop, copy,
3150			type = event.type,
3151			originalEvent = event,
3152			fixHook = this.fixHooks[ type ];
3153
3154		if ( !fixHook ) {
3155			this.fixHooks[ type ] = fixHook =
3156				rmouseEvent.test( type ) ? this.mouseHooks :
3157				rkeyEvent.test( type ) ? this.keyHooks :
3158				{};
3159		}
3160		copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;
3161
3162		event = new jQuery.Event( originalEvent );
3163
3164		i = copy.length;
3165		while ( i-- ) {
3166			prop = copy[ i ];
3167			event[ prop ] = originalEvent[ prop ];
3168		}
3169
3170		// Support: IE<9
3171		// Fix target property (#1925)
3172		if ( !event.target ) {
3173			event.target = originalEvent.srcElement || document;
3174		}
3175
3176		// Support: Chrome 23+, Safari?
3177		// Target should not be a text node (#504, #13143)
3178		if ( event.target.nodeType === 3 ) {
3179			event.target = event.target.parentNode;
3180		}
3181
3182		// Support: IE<9
3183		// For mouse/key events, metaKey==false if it's undefined (#3368, #11328)
3184		event.metaKey = !!event.metaKey;
3185
3186		return fixHook.filter ? fixHook.filter( event, originalEvent ) : event;
3187	},
3188
3189	// Includes some event props shared by KeyEvent and MouseEvent
3190	props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
3191
3192	fixHooks: {},
3193
3194	keyHooks: {
3195		props: "char charCode key keyCode".split(" "),
3196		filter: function( event, original ) {
3197
3198			// Add which for key events
3199			if ( event.which == null ) {
3200				event.which = original.charCode != null ? original.charCode : original.keyCode;
3201			}
3202
3203			return event;
3204		}
3205	},
3206
3207	mouseHooks: {
3208		props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
3209		filter: function( event, original ) {
3210			var body, eventDoc, doc,
3211				button = original.button,
3212				fromElement = original.fromElement;
3213
3214			// Calculate pageX/Y if missing and clientX/Y available
3215			if ( event.pageX == null && original.clientX != null ) {
3216				eventDoc = event.target.ownerDocument || document;
3217				doc = eventDoc.documentElement;
3218				body = eventDoc.body;
3219
3220				event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );
3221				event.pageY = original.clientY + ( doc && doc.scrollTop  || body && body.scrollTop  || 0 ) - ( doc && doc.clientTop  || body && body.clientTop  || 0 );
3222			}
3223
3224			// Add relatedTarget, if necessary
3225			if ( !event.relatedTarget && fromElement ) {
3226				event.relatedTarget = fromElement === event.target ? original.toElement : fromElement;
3227			}
3228
3229			// Add which for click: 1 === left; 2 === middle; 3 === right
3230			// Note: button is not normalized, so don't use it
3231			if ( !event.which && button !== undefined ) {
3232				event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );
3233			}
3234
3235			return event;
3236		}
3237	},
3238
3239	special: {
3240		load: {
3241			// Prevent triggered image.load events from bubbling to window.load
3242			noBubble: true
3243		},
3244		click: {
3245			// For checkbox, fire native event so checked state will be right
3246			trigger: function() {
3247				if ( jQuery.nodeName( this, "input" ) && this.type === "checkbox" && this.click ) {
3248					this.click();
3249					return false;
3250				}
3251			}
3252		},
3253		focus: {
3254			// Fire native event if possible so blur/focus sequence is correct
3255			trigger: function() {
3256				if ( this !== document.activeElement && this.focus ) {
3257					try {
3258						this.focus();
3259						return false;
3260					} catch ( e ) {
3261						// Support: IE<9
3262						// If we error on focus to hidden element (#1486, #12518),
3263						// let .trigger() run the handlers
3264					}
3265				}
3266			},
3267			delegateType: "focusin"
3268		},
3269		blur: {
3270			trigger: function() {
3271				if ( this === document.activeElement && this.blur ) {
3272					this.blur();
3273					return false;
3274				}
3275			},
3276			delegateType: "focusout"
3277		},
3278
3279		beforeunload: {
3280			postDispatch: function( event ) {
3281
3282				// Even when returnValue equals to undefined Firefox will still show alert
3283				if ( event.result !== undefined ) {
3284					event.originalEvent.returnValue = event.result;
3285				}
3286			}
3287		}
3288	},
3289
3290	simulate: function( type, elem, event, bubble ) {
3291		// Piggyback on a donor event to simulate a different one.
3292		// Fake originalEvent to avoid donor's stopPropagation, but if the
3293		// simulated event prevents default then we do the same on the donor.
3294		var e = jQuery.extend(
3295			new jQuery.Event(),
3296			event,
3297			{ type: type,
3298				isSimulated: true,
3299				originalEvent: {}
3300			}
3301		);
3302		if ( bubble ) {
3303			jQuery.event.trigger( e, null, elem );
3304		} else {
3305			jQuery.event.dispatch.call( elem, e );
3306		}
3307		if ( e.isDefaultPrevented() ) {
3308			event.preventDefault();
3309		}
3310	}
3311};
3312
3313jQuery.removeEvent = document.removeEventListener ?
3314	function( elem, type, handle ) {
3315		if ( elem.removeEventListener ) {
3316			elem.removeEventListener( type, handle, false );
3317		}
3318	} :
3319	function( elem, type, handle ) {
3320		var name = "on" + type;
3321
3322		if ( elem.detachEvent ) {
3323
3324			// #8545, #7054, preventing memory leaks for custom events in IE6-8
3325			// detachEvent needed property on element, by name of that event, to properly expose it to GC
3326			if ( typeof elem[ name ] === core_strundefined ) {
3327				elem[ name ] = null;
3328			}
3329
3330			elem.detachEvent( name, handle );
3331		}
3332	};
3333
3334jQuery.Event = function( src, props ) {
3335	// Allow instantiation without the 'new' keyword
3336	if ( !(this instanceof jQuery.Event) ) {
3337		return new jQuery.Event( src, props );
3338	}
3339
3340	// Event object
3341	if ( src && src.type ) {
3342		this.originalEvent = src;
3343		this.type = src.type;
3344
3345		// Events bubbling up the document may have been marked as prevented
3346		// by a handler lower down the tree; reflect the correct value.
3347		this.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false ||
3348			src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse;
3349
3350	// Event type
3351	} else {
3352		this.type = src;
3353	}
3354
3355	// Put explicitly provided properties onto the event object
3356	if ( props ) {
3357		jQuery.extend( this, props );
3358	}
3359
3360	// Create a timestamp if incoming event doesn't have one
3361	this.timeStamp = src && src.timeStamp || jQuery.now();
3362
3363	// Mark it as fixed
3364	this[ jQuery.expando ] = true;
3365};
3366
3367// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
3368// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
3369jQuery.Event.prototype = {
3370	isDefaultPrevented: returnFalse,
3371	isPropagationStopped: returnFalse,
3372	isImmediatePropagationStopped: returnFalse,
3373
3374	preventDefault: function() {
3375		var e = this.originalEvent;
3376
3377		this.isDefaultPrevented = returnTrue;
3378		if ( !e ) {
3379			return;
3380		}
3381
3382		// If preventDefault exists, run it on the original event
3383		if ( e.preventDefault ) {
3384			e.preventDefault();
3385
3386		// Support: IE
3387		// Otherwise set the returnValue property of the original event to false
3388		} else {
3389			e.returnValue = false;
3390		}
3391	},
3392	stopPropagation: function() {
3393		var e = this.originalEvent;
3394
3395		this.isPropagationStopped = returnTrue;
3396		if ( !e ) {
3397			return;
3398		}
3399		// If stopPropagation exists, run it on the original event
3400		if ( e.stopPropagation ) {
3401			e.stopPropagation();
3402		}
3403
3404		// Support: IE
3405		// Set the cancelBubble property of the original event to true
3406		e.cancelBubble = true;
3407	},
3408	stopImmediatePropagation: function() {
3409		this.isImmediatePropagationStopped = returnTrue;
3410		this.stopPropagation();
3411	}
3412};
3413
3414// Create mouseenter/leave events using mouseover/out and event-time checks
3415jQuery.each({
3416	mouseenter: "mouseover",
3417	mouseleave: "mouseout"
3418}, function( orig, fix ) {
3419	jQuery.event.special[ orig ] = {
3420		delegateType: fix,
3421		bindType: fix,
3422
3423		handle: function( event ) {
3424			var ret,
3425				target = this,
3426				related = event.relatedTarget,
3427				handleObj = event.handleObj;
3428
3429			// For mousenter/leave call the handler if related is outside the target.
3430			// NB: No relatedTarget if the mouse left/entered the browser window
3431			if ( !related || (related !== target && !jQuery.contains( target, related )) ) {
3432				event.type = handleObj.origType;
3433				ret = handleObj.handler.apply( this, arguments );
3434				event.type = fix;
3435			}
3436			return ret;
3437		}
3438	};
3439});
3440
3441// IE submit delegation
3442if ( !jQuery.support.submitBubbles ) {
3443
3444	jQuery.event.special.submit = {
3445		setup: function() {
3446			// Only need this for delegated form submit events
3447			if ( jQuery.nodeName( this, "form" ) ) {
3448				return false;
3449			}
3450
vendor: 7,397 bytes, lines 3451-3697
3451			// Lazy-add a submit handler when a descendant form may potentially be submitted
3452			jQuery.event.add( this, "click._submit keypress._submit", function( e ) {
3453				// Node name check avoids a VML-related crash in IE (#9807)
3454				var elem = e.target,
3455					form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined;
3456				if ( form && !jQuery._data( form, "submitBubbles" ) ) {
3457					jQuery.event.add( form, "submit._submit", function( event ) {
3458						event._submit_bubble = true;
3459					});
3460					jQuery._data( form, "submitBubbles", true );
3461				}
3462			});
3463			// return undefined since we don't need an event listener
3464		},
3465
3466		postDispatch: function( event ) {
3467			// If form was submitted by the user, bubble the event up the tree
3468			if ( event._submit_bubble ) {
3469				delete event._submit_bubble;
3470				if ( this.parentNode && !event.isTrigger ) {
3471					jQuery.event.simulate( "submit", this.parentNode, event, true );
3472				}
3473			}
3474		},
3475
3476		teardown: function() {
3477			// Only need this for delegated form submit events
3478			if ( jQuery.nodeName( this, "form" ) ) {
3479				return false;
3480			}
3481
3482			// Remove delegated handlers; cleanData eventually reaps submit handlers attached above
3483			jQuery.event.remove( this, "._submit" );
3484		}
3485	};
3486}
3487
3488// IE change delegation and checkbox/radio fix
3489if ( !jQuery.support.changeBubbles ) {
3490
3491	jQuery.event.special.change = {
3492
3493		setup: function() {
3494
3495			if ( rformElems.test( this.nodeName ) ) {
3496				// IE doesn't fire change on a check/radio until blur; trigger it on click
3497				// after a propertychange. Eat the blur-change in special.change.handle.
3498				// This still fires onchange a second time for check/radio after blur.
3499				if ( this.type === "checkbox" || this.type === "radio" ) {
3500					jQuery.event.add( this, "propertychange._change", function( event ) {
3501						if ( event.originalEvent.propertyName === "checked" ) {
3502							this._just_changed = true;
3503						}
3504					});
3505					jQuery.event.add( this, "click._change", function( event ) {
3506						if ( this._just_changed && !event.isTrigger ) {
3507							this._just_changed = false;
3508						}
3509						// Allow triggered, simulated change events (#11500)
3510						jQuery.event.simulate( "change", this, event, true );
3511					});
3512				}
3513				return false;
3514			}
3515			// Delegated event; lazy-add a change handler on descendant inputs
3516			jQuery.event.add( this, "beforeactivate._change", function( e ) {
3517				var elem = e.target;
3518
3519				if ( rformElems.test( elem.nodeName ) && !jQuery._data( elem, "changeBubbles" ) ) {
3520					jQuery.event.add( elem, "change._change", function( event ) {
3521						if ( this.parentNode && !event.isSimulated && !event.isTrigger ) {
3522							jQuery.event.simulate( "change", this.parentNode, event, true );
3523						}
3524					});
3525					jQuery._data( elem, "changeBubbles", true );
3526				}
3527			});
3528		},
3529
3530		handle: function( event ) {
3531			var elem = event.target;
3532
3533			// Swallow native change events from checkbox/radio, we already triggered them above
3534			if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) {
3535				return event.handleObj.handler.apply( this, arguments );
3536			}
3537		},
3538
3539		teardown: function() {
3540			jQuery.event.remove( this, "._change" );
3541
3542			return !rformElems.test( this.nodeName );
3543		}
3544	};
3545}
3546
3547// Create "bubbling" focus and blur events
3548if ( !jQuery.support.focusinBubbles ) {
3549	jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {
3550
3551		// Attach a single capturing handler while someone wants focusin/focusout
3552		var attaches = 0,
3553			handler = function( event ) {
3554				jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true );
3555			};
3556
3557		jQuery.event.special[ fix ] = {
3558			setup: function() {
3559				if ( attaches++ === 0 ) {
3560					document.addEventListener( orig, handler, true );
3561				}
3562			},
3563			teardown: function() {
3564				if ( --attaches === 0 ) {
3565					document.removeEventListener( orig, handler, true );
3566				}
3567			}
3568		};
3569	});
3570}
3571
3572jQuery.fn.extend({
3573
3574	on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
3575		var type, origFn;
3576
3577		// Types can be a map of types/handlers
3578		if ( typeof types === "object" ) {
3579			// ( types-Object, selector, data )
3580			if ( typeof selector !== "string" ) {
3581				// ( types-Object, data )
3582				data = data || selector;
3583				selector = undefined;
3584			}
3585			for ( type in types ) {
3586				this.on( type, selector, data, types[ type ], one );
3587			}
3588			return this;
3589		}
3590
3591		if ( data == null && fn == null ) {
3592			// ( types, fn )
3593			fn = selector;
3594			data = selector = undefined;
3595		} else if ( fn == null ) {
3596			if ( typeof selector === "string" ) {
3597				// ( types, selector, fn )
3598				fn = data;
3599				data = undefined;
3600			} else {
3601				// ( types, data, fn )
3602				fn = data;
3603				data = selector;
3604				selector = undefined;
3605			}
3606		}
3607		if ( fn === false ) {
3608			fn = returnFalse;
3609		} else if ( !fn ) {
3610			return this;
3611		}
3612
3613		if ( one === 1 ) {
3614			origFn = fn;
3615			fn = function( event ) {
3616				// Can use an empty set, since event contains the info
3617				jQuery().off( event );
3618				return origFn.apply( this, arguments );
3619			};
3620			// Use same guid so caller can remove using origFn
3621			fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
3622		}
3623		return this.each( function() {
3624			jQuery.event.add( this, types, fn, data, selector );
3625		});
3626	},
3627	one: function( types, selector, data, fn ) {
3628		return this.on( types, selector, data, fn, 1 );
3629	},
3630	off: function( types, selector, fn ) {
3631		var handleObj, type;
3632		if ( types && types.preventDefault && types.handleObj ) {
3633			// ( event )  dispatched jQuery.Event
3634			handleObj = types.handleObj;
3635			jQuery( types.delegateTarget ).off(
3636				handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType,
3637				handleObj.selector,
3638				handleObj.handler
3639			);
3640			return this;
3641		}
3642		if ( typeof types === "object" ) {
3643			// ( types-object [, selector] )
3644			for ( type in types ) {
3645				this.off( type, selector, types[ type ] );
3646			}
3647			return this;
3648		}
3649		if ( selector === false || typeof selector === "function" ) {
3650			// ( types [, fn] )
3651			fn = selector;
3652			selector = undefined;
3653		}
3654		if ( fn === false ) {
3655			fn = returnFalse;
3656		}
3657		return this.each(function() {
3658			jQuery.event.remove( this, types, fn, selector );
3659		});
3660	},
3661
3662	bind: function( types, data, fn ) {
3663		return this.on( types, null, data, fn );
3664	},
3665	unbind: function( types, fn ) {
3666		return this.off( types, null, fn );
3667	},
3668
3669	delegate: function( selector, types, data, fn ) {
3670		return this.on( types, selector, data, fn );
3671	},
3672	undelegate: function( selector, types, fn ) {
3673		// ( namespace ) or ( selector, types [, fn] )
3674		return arguments.length === 1 ? this.off( selector, "**" ) : this.off( types, selector || "**", fn );
3675	},
3676
3677	trigger: function( type, data ) {
3678		return this.each(function() {
3679			jQuery.event.trigger( type, data, this );
3680		});
3681	},
3682	triggerHandler: function( type, data ) {
3683		var elem = this[0];
3684		if ( elem ) {
3685			return jQuery.event.trigger( type, data, elem, true );
3686		}
3687	}
3688});
3689/*!
3690 * Sizzle CSS Selector Engine
3691 * Copyright 2012 jQuery Foundation and other contributors
3692 * Released under the MIT license
3693 * http://sizzlejs.com/
3694 */
3695(function( window, undefined ) {
3696
3697var i,
3698	cachedruns,
3699	Expr,
3700	getText,
3701	isXML,
3702	compile,
3703	hasDuplicate,
3704	outermostContext,
3705
3706	// Local document vars
3707	setDocument,
3708	document,
3709	docElem,
3710	documentIsXML,
3711	rbuggyQSA,
3712	rbuggyMatches,
3713	matches,
3714	contains,
3715	sortOrder,
3716
3717	// Instance-specific data
3718	expando = "sizzle" + -(new Date()),
3719	preferredDoc = window.document,
3720	support = {},
3721	dirruns = 0,
3722	done = 0,
3723	classCache = createCache(),
3724	tokenCache = createCache(),
3725	compilerCache = createCache(),
3726
3727	// General-purpose constants
3728	strundefined = typeof undefined,
3729	MAX_NEGATIVE = 1 << 31,
3730
3731	// Array methods
3732	arr = [],
3733	pop = arr.pop,
3734	push = arr.push,
3735	slice = arr.slice,
3736	// Use a stripped-down indexOf if we can't use a native one
3737	indexOf = arr.indexOf || function( elem ) {
3738		var i = 0,
3739			len = this.length;
3740		for ( ; i < len; i++ ) {
3741			if ( this[i] === elem ) {
3742				return i;
3743			}
3744		}
3745		return -1;
3746	},
3747
3748
3749	// Regular expressions
3750
3751	// Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace
3752	whitespace = "[\\x20\\t\\r\\n\\f]",
3753	// http://www.w3.org/TR/css3-syntax/#characters
3754	characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",
3755
3756	// Loosely modeled on CSS identifier characters
3757	// An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors
3758	// Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
3759	identifier = characterEncoding.replace( "w", "w#" ),
3760
3761	// Acceptable operators http://www.w3.org/TR/selectors/#attribute-selectors
3762	operators = "([*^$|!~]?=)",
3763	attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace +
3764		"*(?:" + operators + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]",
3765
3766	// Prefer arguments quoted,
3767	//   then not containing pseudos/brackets,
3768	//   then attribute selectors/non-parenthetical expressions,
3769	//   then anything else
3770	// These preferences are here to reduce the number of selectors
3771	//   needing tokenize in the PSEUDO preFilter
3772	pseudos = ":(" + characterEncoding + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + attributes.replace( 3, 8 ) + ")*)|.*)\\)|)",
3773
3774	// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
3775	rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ),
3776
3777	rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
3778	rcombinators = new RegExp( "^" + whitespace + "*([\\x20\\t\\r\\n\\f>+~])" + whitespace + "*" ),
3779	rpseudo = new RegExp( pseudos ),
3780	ridentifier = new RegExp( "^" + identifier + "$" ),
3781
3782	matchExpr = {
3783		"ID": new RegExp( "^#(" + characterEncoding + ")" ),
3784		"CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ),
3785		"NAME": new RegExp( "^\\[name=['\"]?(" + characterEncoding + ")['\"]?\\]" ),
3786		"TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ),
3787		"ATTR": new RegExp( "^" + attributes ),
3788		"PSEUDO": new RegExp( "^" + pseudos ),
3789		"CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace +
3790			"*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace +
3791			"*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
3792		// For use in libraries implementing .is()
3793		// We use this for POS matching in `select`
3794		"needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +
3795			whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
3796	},
3797
3798	rsibling = /[\x20\t\r\n\f]*[+~]/,
3799
3800	rnative = /^[^{]+\{\s*\[native code/,
3801
3802	// Easily-parseable/retrievable ID or TAG or CLASS selectors
3803	rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
3804
3805	rinputs = /^(?:input|select|textarea|button)$/i,
3806	rheader = /^h\d$/i,
3807
3808	rescape = /'|\\/g,
3809	rattributeQuotes = /\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,
3810
3811	// CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
3812	runescape = /\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,
3813	funescape = function( _, escaped ) {
3814		var high = "0x" + escaped - 0x10000;
3815		// NaN means non-codepoint
3816		return high !== high ?
3817			escaped :
3818			// BMP codepoint
3819			high < 0 ?
3820				String.fromCharCode( high + 0x10000 ) :
3821				// Supplemental Plane codepoint (surrogate pair)
3822				String.fromCharCode( high >>
3822 10 | 0xD800, high & 0x3FF | 0xDC00 );
3823	};
3824
3825// Use a stripped-down slice if we can't use a native one
3826try {
3827	slice.call( preferredDoc.documentElement.childNodes, 0 )[0].nodeType;
3828} catch ( e ) {
3829	slice = function( i ) {
3830		var elem,
3831			results = [];
3832		while ( (elem = this[i++]) ) {
3833			results.push( elem );
3834		}
3835		return results;
3836	};
3837}
3838
3839/**
3840 * For feature detection
3841 * @param {Function} fn The function to test for native support
3842 */
3843function isNative( fn ) {
3844	return rnative.test( fn + "" );
3845}
3846
3847/**
3848 * Create key-value caches of limited size
3849 * @returns {Function(string, Object)} Returns the Object data after storing it on itself with
3850 *	property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
3851 *	deleting the oldest entry
3852 */
3853function createCache() {
3854	var cache,
3855		keys = [];
3856
3857	return (cache = function( key, value ) {
3858		// Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
3859		if ( keys.push( key += " " ) > Expr.cacheLength ) {
3860			// Only keep the most recent entries
3861			delete cache[ keys.shift() ];
3862		}
3863		return (cache[ key ] = value);
3864	});
3865}
3866
3867/**
3868 * Mark a function for special use by Sizzle
3869 * @param {Function} fn The function to mark
3870 */
3871function markFunction( fn ) {
3872	fn[ expando ] = true;
3873	return fn;
3874}
3875
3876/**
3877 * Support testing using an element
3878 * @param {Function} fn Passed the created div and expects a boolean result
3879 */
3880function assert( fn ) {
3881	var div = document.createElement("div");
3882
3883	try {
3884		return fn( div );
3885	} catch (e) {
3886		return false;
3887	} finally {
3888		// release memory in IE
3889		div = null;
3890	}
3891}
3892
3893function Sizzle( selector, context, results, seed ) {
3894	var match, elem, m, nodeType,
3895		// QSA vars
3896		i, groups, old, nid, newContext, newSelector;
3897
3898	if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {
3899		setDocument( context );
3900	}
3901
3902	context = context || document;
3903	results = results || [];
3904
3905	if ( !selector || typeof selector !== "string" ) {
3906		return results;
3907	}
3908
3909	if ( (nodeType = context.nodeType) !== 1 && nodeType !== 9 ) {
3910		return [];
3911	}
3912
3913	if ( !documentIsXML && !seed ) {
3914
3915		// Shortcuts
3916		if ( (match = rquickExpr.exec( selector )) ) {
3917			// Speed-up: Sizzle("#ID")
3918			if ( (m = match[1]) ) {
3919				if ( nodeType === 9 ) {
3920					elem = context.getElementById( m );
3921					// Check parentNode to catch when Blackberry 4.6 returns
3922					// nodes that are no longer in the document #6963
3923					if ( elem && elem.parentNode ) {
3924						// Handle the case where IE, Opera, and Webkit return items
3925						// by name instead of ID
3926						if ( elem.id === m ) {
3927							results.push( elem );
3928							return results;
3929						}
3930					} else {
3931						return results;
3932					}
3933				} else {
3934					// Context is not a document
3935					if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) &&
3936						contains( context, elem ) && elem.id === m ) {
3937						results.push( elem );
3938						return results;
3939					}
3940				}
3941
3942			// Speed-up: Sizzle("TAG")
3943			} else if ( match[2] ) {
3944				push.apply( results, slice.call(context.getElementsByTagName( selector ), 0) );
3945				return results;
3946
3947			// Speed-up: Sizzle(".CLASS")
3948			} else if ( (m = match[3]) && support.getByClassName && context.getElementsByClassName ) {
3949				push.apply( results, slice.call(context.getElementsByClassName( m ), 0) );
3950				return results;
3951			}
3952		}
3953
3954		// QSA path
3955		if ( support.qsa && !rbuggyQSA.test(selector) ) {
3956			old = true;
3957			nid = expando;
3958			newContext = context;
3959			newSelector = nodeType === 9 && selector;
3960
3961			// qSA works strangely on Element-rooted queries
3962			// We can work around this by specifying an extra ID on the root
3963			// and working up from there (Thanks to Andrew Dupont for the technique)
3964			// IE 8 doesn't work on object elements
3965			if ( nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
3966				groups = tokenize( selector );
3967
3968				if ( (old = context.getAttribute("id")) ) {
3969					nid = old.replace( rescape, "\\$&" );
3970				} else {
3971					context.setAttribute( "id", nid );
3972				}
3973				nid = "[id='" + nid + "'] ";
3974
3975				i = groups.length;
3976				while ( i-- ) {
3977					groups[i] = nid + toSelector( groups[i] );
3978				}
3979				newContext = rsibling.test( selector ) && context.parentNode || context;
3980				newSelector = groups.join(",");
3981			}
3982
3983			if ( newSelector ) {
3984				try {
3985					push.apply( results, slice.call( newContext.querySelectorAll(
3986						newSelector
3987					), 0 ) );
3988					return results;
3989				} catch(qsaError) {
3990				} finally {
3991					if ( !old ) {
3992						context.removeAttribute("id");
3993					}
3994				}
3995			}
3996		}
3997	}
3998
3999	// All others
4000	return select( selector.replace( rtrim, "$1" ), context, results, seed );
4001}
4002
4003/**
4004 * Detect xml
4005 * @param {Element|Object} elem An element or a document
4006 */
4007isXML = Sizzle.isXML = function( elem ) {
4008	// documentElement is verified for cases where it doesn't yet exist
4009	// (such as loading iframes in IE - #4833)
4010	var documentElement = elem && (elem.ownerDocument || elem).documentElement;
4011	return documentElement ? documentElement.nodeName !== "HTML" : false;
4012};
4013
4014/**
4015 * Sets document-related variables once based on the current document
4016 * @param {Element|Object} [doc] An element or document object to use to set the document
4017 * @returns {Object} Returns the current document
4018 */
4019setDocument = Sizzle.setDocument = function( node ) {
4020	var doc = node ? node.ownerDocument || node : preferredDoc;
4021
4022	// If no document and documentElement is available, return
4023	if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
4024		return document;
4025	}
4026
4027	// Set our document
4028	document = doc;
4029	docElem = doc.documentElement;
4030
4031	// Support tests
4032	documentIsXML = isXML( doc );
4033
4034	// Check if getElementsByTagName("*") returns only elements
4035	support.tagNameNoComments = assert(function( div ) {
4036		div.appendChild( doc.createComment("") );
4037		return !div.getElementsByTagName("*").length;
4038	});
4039
4040	// Check if attributes should be retrieved by attribute nodes
4041	support.attributes = assert(function( div ) {
4042		div.innerHTML = "<select></select>";
4043		var type = typeof div.lastChild.getAttribute("multiple");
4044		// IE8 returns a string for some attributes even when not present
4045		return type !== "boolean" && type !== "string";
4046	});
4047
4048	// Check if getElementsByClassName can be trusted
4049	support.getByClassName = assert(function( div ) {
4050		// Opera can't find a second classname (in 9.6)
4051		div.innerHTML = "<div class='hidden e'></div><div class='hidden'></div>";
4052		if ( !div.getElementsByClassName || !div.getElementsByClassName("e").length ) {
4053			return false;
4054		}
4055
4056		// Safari 3.2 caches class attributes and doesn't catch changes
4057		div.lastChild.className = "e";
4058		return div.getElementsByClassName("e").length === 2;
4059	});
4060
4061	// Check if getElementById returns elements by name
4062	// Check if getElementsByName privileges form controls or returns elements by ID
4063	support.getByName = assert(function( div ) {
4064		// Inject content
4065		div.id = expando + 0;
4066		div.innerHTML = "<a name='" + expando + "'></a><div name='" + expando + "'></div>";
4067		docElem.insertBefore( div, docElem.firstChild );
4068
4069		// Test
4070		var pass = doc.getElementsByName &&
4071			// buggy browsers will return fewer than the correct 2
4072			doc.getElementsByName( expando ).length === 2 +
4073			// buggy browsers will return more than the correct 0
4074			doc.getElementsByName( expando + 0 ).length;
4075		support.getIdNotName = !doc.getElementById( expando );
4076
4077		// Cleanup
4078		docElem.removeChild( div );
4079
4080		return pass;
4081	});
4082
4083	// IE6/7 return modified attributes
4084	Expr.attrHandle = assert(function( div ) {
4085		div.innerHTML = "<a href='#'></a>";
4086		return div.firstChild && typeof div.firstChild.getAttribute !== strundefined &&
4087			div.firstChild.getAttribute("href") === "#";
4088	}) ?
4089		{} :
4090		{
4091			"href": function( elem ) {
4092				return elem.getAttribute( "href", 2 );
4093			},
4094			"type": function( elem ) {
4095				return elem.getAttribute("type");
4096			}
4097		};
4098
4099	// ID find and filter
4100	if ( support.getIdNotName ) {
4101		Expr.find["ID"] = function( id, context ) {
4102			if ( typeof context.getElementById !== strundefined && !documentIsXML ) {
4103				var m = context.getElementById( id );
4104				// Check parentNode to catch when Blackberry 4.6 returns
4105				// nodes that are no longer in the document #6963
4106				return m && m.parentNode ? [m] : [];
4107			}
4108		};
4109		Expr.filter["ID"] = function( id ) {
4110			var attrId = id.replace( runescape, funescape );
4111			return function( elem ) {
4112				return elem.getAttribute("id") === attrId;
4113			};
4114		};
4115	} else {
4116		Expr.find["ID"] = function( id, context ) {
4117			if ( typeof context.getElementById !== strundefined && !documentIsXML ) {
4118				var m = context.getElementById( id );
4119
4120				return m ?
4121					m.id === id || typeof m.getAttributeNode !== strundefined && m.getAttributeNode("id").value === id ?
4122						[m] :
4123						undefined :
4124					[];
4125			}
4126		};
4127		Expr.filter["ID"] =  function( id ) {
4128			var attrId = id.replace( runescape, funescape );
4129			return function( elem ) {
4130				var node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode("id");
4131				return node && node.value === attrId;
4132			};
4133		};
4134	}
4135
4136	// Tag
4137	Expr.find["TAG"] = support.tagNameNoComments ?
4138		function( tag, context ) {
4139			if ( typeof context.getElementsByTagName !== strundefined ) {
4140				return context.getElementsByTagName( tag );
4141			}
4142		} :
4143		function( tag, context ) {
4144			var elem,
4145				tmp = [],
4146				i = 0,
4147				results = context.getElementsByTagName( tag );
4148
4149			// Filter out possible comments
4150			if ( tag === "*" ) {
4151				while ( (elem = results[i++]) ) {
4152					if ( elem.nodeType === 1 ) {
4153						tmp.push( elem );
4154					}
4155				}
4156
4157				return tmp;
4158			}
4159			return results;
4160		};
4161
4162	// Name
4163	Expr.find["NAME"] = support.getByName && function( tag, context ) {
4164		if ( typeof context.getElementsByName !== strundefined ) {
4165			return context.getElementsByName( name );
4166		}
4167	};
4168
4169	// Class
4170	Expr.find["CLASS"] = support.getByClassName && function( className, context ) {
4171		if ( typeof context.getElementsByClassName !== strundefined && !documentIsXML ) {
4172			return context.getElementsByClassName( className );
4173		}
4174	};
4175
4176	// QSA and matchesSelector support
4177
4178	// matchesSelector(:active) reports false when true (IE9/Opera 11.5)
4179	rbuggyMatches = [];
4180
4181	// qSa(:focus) reports false when true (Chrome 21),
4182	// no need to also add to buggyMatches since matches checks buggyQSA
4183	// A support test would require too much code (would include document ready)
4184	rbuggyQSA = [ ":focus" ];
4185
4186	if ( (support.qsa = isNative(doc.querySelectorAll)) ) {
4187		// Build QSA regex
4188		// Regex strategy adopted from Diego Perini
4189		assert(function( div ) {
4190			// Select is set to empty string on purpose
4191			// This is to test IE's treatment of not explictly
4192			// setting a boolean content attribute,
4193			// since its presence should be enough
4194			// http://bugs.jquery.com/ticket/12359
4195			div.innerHTML = "<select><option selected=''></option></select>";
4196
4197			// IE8 - Some boolean attributes are not treated correctly
4198			if ( !div.querySelectorAll("[selected]").length ) {
4199				rbuggyQSA.push( "\\[" + whitespace + "*(?:checked|disabled|ismap|multiple|readonly|selected|value)" );
4200			}
4201
4202			// Webkit/Opera - :checked should return selected option elements
4203			// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
4204			// IE8 throws error here and will not see later tests
4205			if ( !div.querySelectorAll(":checked").length ) {
4206				rbuggyQSA.push(":checked");
4207			}
4208		});
4209
4210		assert(function( div ) {
4211
4212			// Opera 10-12/IE8 - ^= $= *= and empty values
4213			// Should not select anything
4214			div.innerHTML = "<input type='hidden' i=''/>";
4215			if ( div.querySelectorAll("[i^='']").length ) {
4216				rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:\"\"|'')" );
4217			}
4218
4219			// FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
4220			// IE8 throws error here and will not see later tests
4221			if ( !div.querySelectorAll(":enabled").length ) {
4222				rbuggyQSA.push( ":enabled", ":disabled" );
4223			}
4224
4225			// Opera 10-11 does not throw on post-comma invalid pseudos
4226			div.querySelectorAll("*,:x");
4227			rbuggyQSA.push(",.*:");
4228		});
4229	}
4230
4231	if ( (support.matchesSelector = isNative( (matches = docElem.matchesSelector ||
4232		docElem.mozMatchesSelector ||
4233		docElem.webkitMatchesSelector ||
4234		docElem.oMatchesSelector ||
4235		docElem.msMatchesSelector) )) ) {
4236
4237		assert(function( div ) {
4238			// Check to see if it's possible to do matchesSelector
4239			// on a disconnected node (IE 9)
4240			support.disconnectedMatch = matches.call( div, "div" );
4241
4242			// This should fail with an exception
4243			// Gecko does not error, returns false instead
4244			matches.call( div, "[s!='']:x" );
4245			rbuggyMatches.push( "!=", pseudos );
4246		});
4247	}
4248
4249	rbuggyQSA = new RegExp( rbuggyQSA.join("|") );
4250	rbuggyMatches = new RegExp( rbuggyMatches.join("|") );
4251
4252	// Element contains another
4253	// Purposefully does not implement inclusive descendent
4254	// As in, an element does not contain itself
4255	contains = isNative(docElem.contains) || docElem.compareDocumentPosition ?
4256		function( a, b ) {
4257			var adown = a.nodeType === 9 ? a.documentElement : a,
4258				bup = b && b.parentNode;
4259			return a === bup || !!( bup && bup.nodeType === 1 && (
4260				adown.contains ?
4261					adown.contains( bup ) :
4262					a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16
4263			));
4264		} :
4265		function( a, b ) {
4266			if ( b ) {
4267				while ( (b = b.parentNode) ) {
4268					if ( b === a ) {
4269						return true;
4270					}
4271				}
4272			}
4273			return false;
4274		};
4275
4276	// Document order sorting
4277	sortOrder = docElem.compareDocumentPosition ?
4278	function( a, b ) {
4279		var compare;
4280
4281		if ( a === b ) {
4282			hasDuplicate = true;
4283			return 0;
4284		}
4285
4286		if ( (compare = b.compareDocumentPosition && a.compareDocumentPosition && a.compareDocumentPosition( b )) ) {
4287			if ( compare & 1 || a.parentNode && a.parentNode.nodeType === 11 ) {
4288				if ( a === doc || contains( preferredDoc, a ) ) {
4289					return -1;
4290				}
4291				if ( b === doc || contains( preferredDoc, b ) ) {
4292					return 1;
4293				}
4294				return 0;
4295			}
4296			return compare & 4 ? -1 : 1;
4297		}
4298
4299		return a.compareDocumentPosition ? -1 : 1;
4300	} :
4301	function( a, b ) {
4302		var cur,
4303			i = 0,
4304			aup = a.parentNode,
4305			bup = b.parentNode,
4306			ap = [ a ],
4307			bp = [ b ];
4308
4309		// Exit early if the nodes are identical
4310		if ( a === b ) {
4311			hasDuplicate = true;
4312			return 0;
4313
4314		// Parentless nodes are either documents or disconnected
4315		} else if ( !aup || !bup ) {
4316			return a === doc ? -1 :
4317				b === doc ? 1 :
4318				aup ? -1 :
4319				bup ? 1 :
4320				0;
4321
4322		// If the nodes are siblings, we can do a quick check
4323		} else if ( aup === bup ) {
4324			return siblingCheck( a, b );
4325		}
4326
4327		// Otherwise we need full lists of their ancestors for comparison
4328		cur = a;
4329		while ( (cur = cur.parentNode) ) {
4330			ap.unshift( cur );
4331		}
4332		cur = b;
4333		while ( (cur = cur.parentNode) ) {
4334			bp.unshift( cur );
4335		}
4336
4337		// Walk down the tree looking for a discrepancy
4338		while ( ap[i] === bp[i] ) {
4339			i++;
4340		}
4341
4342		return i ?
4343			// Do a sibling check if the nodes have a common ancestor
4344			siblingCheck( ap[i], bp[i] ) :
4345
4346			// Otherwise nodes in our document sort first
4347			ap[i] === preferredDoc ? -1 :
4348			bp[i] === preferredDoc ? 1 :
4349			0;
4350	};
4351
4352	// Always assume the presence of duplicates if sort doesn't
4353	// pass them to our comparison function (as in Google Chrome).
4354	hasDuplicate = false;
4355	[0, 0].sort( sortOrder );
4356	support.detectDuplicates = hasDuplicate;
4357
4358	return document;
4359};
4360
4361Sizzle.matches = function( expr, elements ) {
4362	return Sizzle( expr, null, null, elements );
4363};
4364
4365Sizzle.matchesSelector = function( elem, expr ) {
4366	// Set document vars if needed
4367	if ( ( elem.ownerDocument || elem ) !== document ) {
4368		setDocument( elem );
4369	}
4370
4371	// Make sure that attribute selectors are quoted
4372	expr = expr.replace( rattributeQuotes, "='$1']" );
4373
4374	// rbuggyQSA always contains :focus, so no need for an existence check
4375	if ( support.matchesSelector && !documentIsXML && (!rbuggyMatches || !rbuggyMatches.test(expr)) && !rbuggyQSA.test(expr) ) {
4376		try {
4377			var ret = matches.call( elem, expr );
4378
4379			// IE 9's matchesSelector returns false on disconnected nodes
4380			if ( ret || support.disconnectedMatch ||
4381					// As well, disconnected nodes are said to be in a document
4382					// fragment in IE 9
4383					elem.document && elem.document.nodeType !== 11 ) {
4384				return ret;
4385			}
4386		} catch(e) {}
4387	}
4388
4389	return Sizzle( expr, document, null, [elem] ).length > 0;
4390};
4391
4392Sizzle.contains = function( context, elem ) {
4393	// Set document vars if needed
4394	if ( ( context.ownerDocument || context ) !== document ) {
4395		setDocument( context );
4396	}
4397	return contains( context, elem );
4398};
4399
4400Sizzle.attr = function( elem, name ) {
4401	var val;
4402
4403	// Set document vars if needed
4404	if ( ( elem.ownerDocument || elem ) !== document ) {
4405		setDocument( elem );
4406	}
4407
4408	if ( !documentIsXML ) {
4409		name = name.toLowerCase();
4410	}
4411	if ( (val = Expr.attrHandle[ name ]) ) {
4412		return val( elem );
4413	}
4414	if ( documentIsXML || support.attributes ) {
4415		return elem.getAttribute( name );
4416	}
4417	return ( (val = elem.getAttributeNode( name )) || elem.getAttribute( name ) ) && elem[ name ] === true ?
4418		name :
4419		val && val.specified ? val.value : null;
4420};
4421
4422Sizzle.error = function( msg ) {
4423	throw new Error( "Syntax error, unrecognized expression: " + msg );
4424};
4425
4426// Document sorting and removing duplicates
4427Sizzle.uniqueSort = function( results ) {
4428	var elem,
4429		duplicates = [],
4430		i = 1,
4431		j = 0;
4432
4433	// Unless we *know* we can detect duplicates, assume their presence
4434	hasDuplicate = !support.detectDuplicates;
4435	results.sort( sortOrder );
4436
4437	if ( hasDuplicate ) {
4438		for ( ; (elem = results[i]); i++ ) {
4439			if ( elem === results[ i - 1 ] ) {
4440				j = duplicates.push( i );
4441			}
4442		}
4443		while ( j-- ) {
4444			results.splice( duplicates[ j ], 1 );
4445		}
4446	}
4447
4448	return results;
4449};
4450
4451function siblingCheck( a, b ) {
4452	var cur = b && a,
4453		diff = cur && ( ~b.sourceIndex || MAX_NEGATIVE ) - ( ~a.sourceIndex || MAX_NEGATIVE );
4454
4455	// Use IE sourceIndex if available on both nodes
4456	if ( diff ) {
4457		return diff;
4458	}
4459
4460	// Check if b follows a
4461	if ( cur ) {
4462		while ( (cur = cur.nextSibling) ) {
4463			if ( cur === b ) {
4464				return -1;
4465			}
4466		}
4467	}
4468
4469	return a ? 1 : -1;
4470}
4471
4472// Returns a function to use in pseudos for input types
4473function createInputPseudo( type ) {
4474	return function( elem ) {
4475		var name = elem.nodeName.toLowerCase();
4476		return name === "input" && elem.type === type;
4477	};
4478}
4479
4480// Returns a function to use in pseudos for buttons
4481function createButtonPseudo( type ) {
4482	return function( elem ) {
4483		var name = elem.nodeName.toLowerCase();
4484		return (name === "input" || name === "button") && elem.type === type;
4485	};
4486}
4487
4488// Returns a function to use in pseudos for positionals
4489function createPositionalPseudo( fn ) {
4490	return markFunction(function( argument ) {
4491		argument = +argument;
4492		return markFunction(function( seed, matches ) {
4493			var j,
4494				matchIndexes = fn( [], seed.length, argument ),
4495				i = matchIndexes.length;
4496
4497			// Match elements found at the specified indexes
4498			while ( i-- ) {
4499				if ( seed[ (j = matchIndexes[i]) ] ) {
4500					seed[j] = !(matches[j] = seed[j]);
4501				}
4502			}
4503		});
4504	});
4505}
4506
4507/**
4508 * Utility function for retrieving the text value of an array of DOM nodes
4509 * @param {Array|Element} elem
4510 */
4511getText = Sizzle.getText = function( elem ) {
4512	var node,
4513		ret = "",
4514		i = 0,
4515		nodeType = elem.nodeType;
4516
4517	if ( !nodeType ) {
4518		// If no nodeType, this is expected to be an array
4519		for ( ; (node = elem[i]); i++ ) {
4520			// Do not traverse comment nodes
4521			ret += getText( node );
4522		}
4523	} else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
4524		// Use textContent for elements
4525		// innerText usage removed for consistency of new lines (see #11153)
4526		if ( typeof elem.textContent === "string" ) {
4527			return elem.textContent;
4528		} else {
4529			// Traverse its children
4530			for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
4531				ret += getText( elem );
4532			}
4533		}
4534	} else if ( nodeType === 3 || nodeType === 4 ) {
4535		return elem.nodeValue;
4536	}
4537	// Do not include comment or processing instruction nodes
4538
4539	return ret;
4540};
4541
4542Expr = Sizzle.selectors = {
4543
vendor: 26,669 bytes, lines 4544-5449
4544	// Can be adjusted by the user
4545	cacheLength: 50,
4546
4547	createPseudo: markFunction,
4548
4549	match: matchExpr,
4550
4551	find: {},
4552
4553	relative: {
4554		">": { dir: "parentNode", first: true },
4555		" ": { dir: "parentNode" },
4556		"+": { dir: "previousSibling", first: true },
4557		"~": { dir: "previousSibling" }
4558	},
4559
4560	preFilter: {
4561		"ATTR": function( match ) {
4562			match[1] = match[1].replace( runescape, funescape );
4563
4564			// Move the given value to match[3] whether quoted or unquoted
4565			match[3] = ( match[4] || match[5] || "" ).replace( runescape, funescape );
4566
4567			if ( match[2] === "~=" ) {
4568				match[3] = " " + match[3] + " ";
4569			}
4570
4571			return match.slice( 0, 4 );
4572		},
4573
4574		"CHILD": function( match ) {
4575			/* matches from matchExpr["CHILD"]
4576				1 type (only|nth|...)
4577				2 what (child|of-type)
4578				3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
4579				4 xn-component of xn+y argument ([+-]?\d*n|)
4580				5 sign of xn-component
4581				6 x of xn-component
4582				7 sign of y-component
4583				8 y of y-component
4584			*/
4585			match[1] = match[1].toLowerCase();
4586
4587			if ( match[1].slice( 0, 3 ) === "nth" ) {
4588				// nth-* requires argument
4589				if ( !match[3] ) {
4590					Sizzle.error( match[0] );
4591				}
4592
4593				// numeric x and y parameters for Expr.filter.CHILD
4594				// remember that false/true cast respectively to 0/1
4595				match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) );
4596				match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" );
4597
4598			// other types prohibit arguments
4599			} else if ( match[3] ) {
4600				Sizzle.error( match[0] );
4601			}
4602
4603			return match;
4604		},
4605
4606		"PSEUDO": function( match ) {
4607			var excess,
4608				unquoted = !match[5] && match[2];
4609
4610			if ( matchExpr["CHILD"].test( match[0] ) ) {
4611				return null;
4612			}
4613
4614			// Accept quoted arguments as-is
4615			if ( match[4] ) {
4616				match[2] = match[4];
4617
4618			// Strip excess characters from unquoted arguments
4619			} else if ( unquoted && rpseudo.test( unquoted ) &&
4620				// Get excess from tokenize (recursively)
4621				(excess = tokenize( unquoted, true )) &&
4622				// advance to the next closing parenthesis
4623				(excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) {
4624
4625				// excess is a negative index
4626				match[0] = match[0].slice( 0, excess );
4627				match[2] = unquoted.slice( 0, excess );
4628			}
4629
4630			// Return only captures needed by the pseudo filter method (type and argument)
4631			return match.slice( 0, 3 );
4632		}
4633	},
4634
4635	filter: {
4636
4637		"TAG": function( nodeName ) {
4638			if ( nodeName === "*" ) {
4639				return function() { return true; };
4640			}
4641
4642			nodeName = nodeName.replace( runescape, funescape ).toLowerCase();
4643			return function( elem ) {
4644				return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;
4645			};
4646		},
4647
4648		"CLASS": function( className ) {
4649			var pattern = classCache[ className + " " ];
4650
4651			return pattern ||
4652				(pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) &&
4653				classCache( className, function( elem ) {
4654					return pattern.test( elem.className || (typeof elem.getAttribute !== strundefined && elem.getAttribute("class")) || "" );
4655				});
4656		},
4657
4658		"ATTR": function( name, operator, check ) {
4659			return function( elem ) {
4660				var result = Sizzle.attr( elem, name );
4661
4662				if ( result == null ) {
4663					return operator === "!=";
4664				}
4665				if ( !operator ) {
4666					return true;
4667				}
4668
4669				result += "";
4670
4671				return operator === "=" ? result === check :
4672					operator === "!=" ? result !== check :
4673					operator === "^=" ? check && result.indexOf( check ) === 0 :
4674					operator === "*=" ? check && result.indexOf( check ) > -1 :
4675					operator === "$=" ? check && result.slice( -check.length ) === check :
4676					operator === "~=" ? ( " " + result + " " ).indexOf( check ) > -1 :
4677					operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" :
4678					false;
4679			};
4680		},
4681
4682		"CHILD": function( type, what, argument, first, last ) {
4683			var simple = type.slice( 0, 3 ) !== "nth",
4684				forward = type.slice( -4 ) !== "last",
4685				ofType = what === "of-type";
4686
4687			return first === 1 && last === 0 ?
4688
4689				// Shortcut for :nth-*(n)
4690				function( elem ) {
4691					return !!elem.parentNode;
4692				} :
4693
4694				function( elem, context, xml ) {
4695					var cache, outerCache, node, diff, nodeIndex, start,
4696						dir = simple !== forward ? "nextSibling" : "previousSibling",
4697						parent = elem.parentNode,
4698						name = ofType && elem.nodeName.toLowerCase(),
4699						useCache = !xml && !ofType;
4700
4701					if ( parent ) {
4702
4703						// :(first|last|only)-(child|of-type)
4704						if ( simple ) {
4705							while ( dir ) {
4706								node = elem;
4707								while ( (node = node[ dir ]) ) {
4708									if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) {
4709										return false;
4710									}
4711								}
4712								// Reverse direction for :only-* (if we haven't yet done so)
4713								start = dir = type === "only" && !start && "nextSibling";
4714							}
4715							return true;
4716						}
4717
4718						start = [ forward ? parent.firstChild : parent.lastChild ];
4719
4720						// non-xml :nth-child(...) stores cache data on `parent`
4721						if ( forward && useCache ) {
4722							// Seek `elem` from a previously-cached index
4723							outerCache = parent[ expando ] || (parent[ expando ] = {});
4724							cache = outerCache[ type ] || [];
4725							nodeIndex = cache[0] === dirruns && cache[1];
4726							diff = cache[0] === dirruns && cache[2];
4727							node = nodeIndex && parent.childNodes[ nodeIndex ];
4728
4729							while ( (node = ++nodeIndex && node && node[ dir ] ||
4730
4731								// Fallback to seeking `elem` from the start
4732								(diff = nodeIndex = 0) || start.pop()) ) {
4733
4734								// When found, cache indexes on `parent` and break
4735								if ( node.nodeType === 1 && ++diff && node === elem ) {
4736									outerCache[ type ] = [ dirruns, nodeIndex, diff ];
4737									break;
4738								}
4739							}
4740
4741						// Use previously-cached element index if available
4742						} else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {
4743							diff = cache[1];
4744
4745						// xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)
4746						} else {
4747							// Use the same loop as above to seek `elem` from the start
4748							while ( (node = ++nodeIndex && node && node[ dir ] ||
4749								(diff = nodeIndex = 0) || start.pop()) ) {
4750
4751								if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) {
4752									// Cache the index of each encountered element
4753									if ( useCache ) {
4754										(node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ];
4755									}
4756
4757									if ( node === elem ) {
4758										break;
4759									}
4760								}
4761							}
4762						}
4763
4764						// Incorporate the offset, then check against cycle size
4765						diff -= last;
4766						return diff === first || ( diff % first === 0 && diff / first >= 0 );
4767					}
4768				};
4769		},
4770
4771		"PSEUDO": function( pseudo, argument ) {
4772			// pseudo-class names are case-insensitive
4773			// http://www.w3.org/TR/selectors/#pseudo-classes
4774			// Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
4775			// Remember that setFilters inherits from pseudos
4776			var args,
4777				fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||
4778					Sizzle.error( "unsupported pseudo: " + pseudo );
4779
4780			// The user may use createPseudo to indicate that
4781			// arguments are needed to create the filter function
4782			// just as Sizzle does
4783			if ( fn[ expando ] ) {
4784				return fn( argument );
4785			}
4786
4787			// But maintain support for old signatures
4788			if ( fn.length > 1 ) {
4789				args = [ pseudo, pseudo, "", argument ];
4790				return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?
4791					markFunction(function( seed, matches ) {
4792						var idx,
4793							matched = fn( seed, argument ),
4794							i = matched.length;
4795						while ( i-- ) {
4796							idx = indexOf.call( seed, matched[i] );
4797							seed[ idx ] = !( matches[ idx ] = matched[i] );
4798						}
4799					}) :
4800					function( elem ) {
4801						return fn( elem, 0, args );
4802					};
4803			}
4804
4805			return fn;
4806		}
4807	},
4808
4809	pseudos: {
4810		// Potentially complex pseudos
4811		"not": markFunction(function( selector ) {
4812			// Trim the selector passed to compile
4813			// to avoid treating leading and trailing
4814			// spaces as combinators
4815			var input = [],
4816				results = [],
4817				matcher = compile( selector.replace( rtrim, "$1" ) );
4818
4819			return matcher[ expando ] ?
4820				markFunction(function( seed, matches, context, xml ) {
4821					var elem,
4822						unmatched = matcher( seed, null, xml, [] ),
4823						i = seed.length;
4824
4825					// Match elements unmatched by `matcher`
4826					while ( i-- ) {
4827						if ( (elem = unmatched[i]) ) {
4828							seed[i] = !(matches[i] = elem);
4829						}
4830					}
4831				}) :
4832				function( elem, context, xml ) {
4833					input[0] = elem;
4834					matcher( input, null, xml, results );
4835					return !results.pop();
4836				};
4837		}),
4838
4839		"has": markFunction(function( selector ) {
4840			return function( elem ) {
4841				return Sizzle( selector, elem ).length > 0;
4842			};
4843		}),
4844
4845		"contains": markFunction(function( text ) {
4846			return function( elem ) {
4847				return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;
4848			};
4849		}),
4850
4851		// "Whether an element is represented by a :lang() selector
4852		// is based solely on the element's language value
4853		// being equal to the identifier C,
4854		// or beginning with the identifier C immediately followed by "-".
4855		// The matching of C against the element's language value is performed case-insensitively.
4856		// The identifier C does not have to be a valid language name."
4857		// http://www.w3.org/TR/selectors/#lang-pseudo
4858		"lang": markFunction( function( lang ) {
4859			// lang value must be a valid identifider
4860			if ( !ridentifier.test(lang || "") ) {
4861				Sizzle.error( "unsupported lang: " + lang );
4862			}
4863			lang = lang.replace( runescape, funescape ).toLowerCase();
4864			return function( elem ) {
4865				var elemLang;
4866				do {
4867					if ( (elemLang = documentIsXML ?
4868						elem.getAttribute("xml:lang") || elem.getAttribute("lang") :
4869						elem.lang) ) {
4870
4871						elemLang = elemLang.toLowerCase();
4872						return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0;
4873					}
4874				} while ( (elem = elem.parentNode) && elem.nodeType === 1 );
4875				return false;
4876			};
4877		}),
4878
4879		// Miscellaneous
4880		"target": function( elem ) {
4881			var hash = window.location && window.location.hash;
4882			return hash && hash.slice( 1 ) === elem.id;
4883		},
4884
4885		"root": function( elem ) {
4886			return elem === docElem;
4887		},
4888
4889		"focus": function( elem ) {
4890			return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);
4891		},
4892
4893		// Boolean properties
4894		"enabled": function( elem ) {
4895			return elem.disabled === false;
4896		},
4897
4898		"disabled": function( elem ) {
4899			return elem.disabled === true;
4900		},
4901
4902		"checked": function( elem ) {
4903			// In CSS3, :checked should return both checked and selected elements
4904			// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
4905			var nodeName = elem.nodeName.toLowerCase();
4906			return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected);
4907		},
4908
4909		"selected": function( elem ) {
4910			// Accessing this property makes selected-by-default
4911			// options in Safari work properly
4912			if ( elem.parentNode ) {
4913				elem.parentNode.selectedIndex;
4914			}
4915
4916			return elem.selected === true;
4917		},
4918
4919		// Contents
4920		"empty": function( elem ) {
4921			// http://www.w3.org/TR/selectors/#empty-pseudo
4922			// :empty is only affected by element nodes and content nodes(including text(3), cdata(4)),
4923			//   not comment, processing instructions, or others
4924			// Thanks to Diego Perini for the nodeName shortcut
4925			//   Greater than "@" means alpha characters (specifically not starting with "#" or "?")
4926			for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
4927				if ( elem.nodeName > "@" || elem.nodeType === 3 || elem.nodeType === 4 ) {
4928					return false;
4929				}
4930			}
4931			return true;
4932		},
4933
4934		"parent": function( elem ) {
4935			return !Expr.pseudos["empty"]( elem );
4936		},
4937
4938		// Element/input types
4939		"header": function( elem ) {
4940			return rheader.test( elem.nodeName );
4941		},
4942
4943		"input": function( elem ) {
4944			return rinputs.test( elem.nodeName );
4945		},
4946
4947		"button": function( elem ) {
4948			var name = elem.nodeName.toLowerCase();
4949			return name === "input" && elem.type === "button" || name === "button";
4950		},
4951
4952		"text": function( elem ) {
4953			var attr;
4954			// IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc)
4955			// use getAttribute instead to test this case
4956			return elem.nodeName.toLowerCase() === "input" &&
4957				elem.type === "text" &&
4958				( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === elem.type );
4959		},
4960
4961		// Position-in-collection
4962		"first": createPositionalPseudo(function() {
4963			return [ 0 ];
4964		}),
4965
4966		"last": createPositionalPseudo(function( matchIndexes, length ) {
4967			return [ length - 1 ];
4968		}),
4969
4970		"eq": createPositionalPseudo(function( matchIndexes, length, argument ) {
4971			return [ argument < 0 ? argument + length : argument ];
4972		}),
4973
4974		"even": createPositionalPseudo(function( matchIndexes, length ) {
4975			var i = 0;
4976			for ( ; i < length; i += 2 ) {
4977				matchIndexes.push( i );
4978			}
4979			return matchIndexes;
4980		}),
4981
4982		"odd": createPositionalPseudo(function( matchIndexes, length ) {
4983			var i = 1;
4984			for ( ; i < length; i += 2 ) {
4985				matchIndexes.push( i );
4986			}
4987			return matchIndexes;
4988		}),
4989
4990		"lt": createPositionalPseudo(function( matchIndexes, length, argument ) {
4991			var i = argument < 0 ? argument + length : argument;
4992			for ( ; --i >= 0; ) {
4993				matchIndexes.push( i );
4994			}
4995			return matchIndexes;
4996		}),
4997
4998		"gt": createPositionalPseudo(function( matchIndexes, length, argument ) {
4999			var i = argument < 0 ? argument + length : argument;
5000			for ( ; ++i < length; ) {
5001				matchIndexes.push( i );
5002			}
5003			return matchIndexes;
5004		})
5005	}
5006};
5007
5008// Add button/input type pseudos
5009for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {
5010	Expr.pseudos[ i ] = createInputPseudo( i );
5011}
5012for ( i in { submit: true, reset: true } ) {
5013	Expr.pseudos[ i ] = createButtonPseudo( i );
5014}
5015
5016function tokenize( selector, parseOnly ) {
5017	var matched, match, tokens, type,
5018		soFar, groups, preFilters,
5019		cached = tokenCache[ selector + " " ];
5020
5021	if ( cached ) {
5022		return parseOnly ? 0 : cached.slice( 0 );
5023	}
5024
5025	soFar = selector;
5026	groups = [];
5027	preFilters = Expr.preFilter;
5028
5029	while ( soFar ) {
5030
5031		// Comma and first run
5032		if ( !matched || (match = rcomma.exec( soFar )) ) {
5033			if ( match ) {
5034				// Don't consume trailing commas as valid
5035				soFar = soFar.slice( match[0].length ) || soFar;
5036			}
5037			groups.push( tokens = [] );
5038		}
5039
5040		matched = false;
5041
5042		// Combinators
5043		if ( (match = rcombinators.exec( soFar )) ) {
5044			matched = match.shift();
5045			tokens.push( {
5046				value: matched,
5047				// Cast descendant combinators to space
5048				type: match[0].replace( rtrim, " " )
5049			} );
5050			soFar = soFar.slice( matched.length );
5051		}
5052
5053		// Filters
5054		for ( type in Expr.filter ) {
5055			if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||
5056				(match = preFilters[ type ]( match ))) ) {
5057				matched = match.shift();
5058				tokens.push( {
5059					value: matched,
5060					type: type,
5061					matches: match
5062				} );
5063				soFar = soFar.slice( matched.length );
5064			}
5065		}
5066
5067		if ( !matched ) {
5068			break;
5069		}
5070	}
5071
5072	// Return the length of the invalid excess
5073	// if we're just parsing
5074	// Otherwise, throw an error or return tokens
5075	return parseOnly ?
5076		soFar.length :
5077		soFar ?
5078			Sizzle.error( selector ) :
5079			// Cache the tokens
5080			tokenCache( selector, groups ).slice( 0 );
5081}
5082
5083function toSelector( tokens ) {
5084	var i = 0,
5085		len = tokens.length,
5086		selector = "";
5087	for ( ; i < len; i++ ) {
5088		selector += tokens[i].value;
5089	}
5090	return selector;
5091}
5092
5093function addCombinator( matcher, combinator, base ) {
5094	var dir = combinator.dir,
5095		checkNonElements = base && dir === "parentNode",
5096		doneName = done++;
5097
5098	return combinator.first ?
5099		// Check against closest ancestor/preceding element
5100		function( elem, context, xml ) {
5101			while ( (elem = elem[ dir ]) ) {
5102				if ( elem.nodeType === 1 || checkNonElements ) {
5103					return matcher( elem, context, xml );
5104				}
5105			}
5106		} :
5107
5108		// Check against all ancestor/preceding elements
5109		function( elem, context, xml ) {
5110			var data, cache, outerCache,
5111				dirkey = dirruns + " " + doneName;
5112
5113			// We can't set arbitrary data on XML nodes, so they don't benefit from dir caching
5114			if ( xml ) {
5115				while ( (elem = elem[ dir ]) ) {
5116					if ( elem.nodeType === 1 || checkNonElements ) {
5117						if ( matcher( elem, context, xml ) ) {
5118							return true;
5119						}
5120					}
5121				}
5122			} else {
5123				while ( (elem = elem[ dir ]) ) {
5124					if ( elem.nodeType === 1 || checkNonElements ) {
5125						outerCache = elem[ expando ] || (elem[ expando ] = {});
5126						if ( (cache = outerCache[ dir ]) && cache[0] === dirkey ) {
5127							if ( (data = cache[1]) === true || data === cachedruns ) {
5128								return data === true;
5129							}
5130						} else {
5131							cache = outerCache[ dir ] = [ dirkey ];
5132							cache[1] = matcher( elem, context, xml ) || cachedruns;
5133							if ( cache[1] === true ) {
5134								return true;
5135							}
5136						}
5137					}
5138				}
5139			}
5140		};
5141}
5142
5143function elementMatcher( matchers ) {
5144	return matchers.length > 1 ?
5145		function( elem, context, xml ) {
5146			var i = matchers.length;
5147			while ( i-- ) {
5148				if ( !matchers[i]( elem, context, xml ) ) {
5149					return false;
5150				}
5151			}
5152			return true;
5153		} :
5154		matchers[0];
5155}
5156
5157function condense( unmatched, map, filter, context, xml ) {
5158	var elem,
5159		newUnmatched = [],
5160		i = 0,
5161		len = unmatched.length,
5162		mapped = map != null;
5163
5164	for ( ; i < len; i++ ) {
5165		if ( (elem = unmatched[i]) ) {
5166			if ( !filter || filter( elem, context, xml ) ) {
5167				newUnmatched.push( elem );
5168				if ( mapped ) {
5169					map.push( i );
5170				}
5171			}
5172		}
5173	}
5174
5175	return newUnmatched;
5176}
5177
5178function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
5179	if ( postFilter && !postFilter[ expando ] ) {
5180		postFilter = setMatcher( postFilter );
5181	}
5182	if ( postFinder && !postFinder[ expando ] ) {
5183		postFinder = setMatcher( postFinder, postSelector );
5184	}
5185	return markFunction(function( seed, results, context, xml ) {
5186		var temp, i, elem,
5187			preMap = [],
5188			postMap = [],
5189			preexisting = results.length,
5190
5191			// Get initial elements from seed or context
5192			elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ),
5193
5194			// Prefilter to get matcher input, preserving a map for seed-results synchronization
5195			matcherIn = preFilter && ( seed || !selector ) ?
5196				condense( elems, preMap, preFilter, context, xml ) :
5197				elems,
5198
5199			matcherOut = matcher ?
5200				// If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,
5201				postFinder || ( seed ? preFilter : preexisting || postFilter ) ?
5202
5203					// ...intermediate processing is necessary
5204					[] :
5205
5206					// ...otherwise use results directly
5207					results :
5208				matcherIn;
5209
5210		// Find primary matches
5211		if ( matcher ) {
5212			matcher( matcherIn, matcherOut, context, xml );
5213		}
5214
5215		// Apply postFilter
5216		if ( postFilter ) {
5217			temp = condense( matcherOut, postMap );
5218			postFilter( temp, [], context, xml );
5219
5220			// Un-match failing elements by moving them back to matcherIn
5221			i = temp.length;
5222			while ( i-- ) {
5223				if ( (elem = temp[i]) ) {
5224					matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);
5225				}
5226			}
5227		}
5228
5229		if ( seed ) {
5230			if ( postFinder || preFilter ) {
5231				if ( postFinder ) {
5232					// Get the final matcherOut by condensing this intermediate into postFinder contexts
5233					temp = [];
5234					i = matcherOut.length;
5235					while ( i-- ) {
5236						if ( (elem = matcherOut[i]) ) {
5237							// Restore matcherIn since elem is not yet a final match
5238							temp.push( (matcherIn[i] = elem) );
5239						}
5240					}
5241					postFinder( null, (matcherOut = []), temp, xml );
5242				}
5243
5244				// Move matched elements from seed to results to keep them synchronized
5245				i = matcherOut.length;
5246				while ( i-- ) {
5247					if ( (elem = matcherOut[i]) &&
5248						(temp = postFinder ? indexOf.call( seed, elem ) : preMap[i]) > -1 ) {
5249
5250						seed[temp] = !(results[temp] = elem);
5251					}
5252				}
5253			}
5254
5255		// Add elements to results, through postFinder if defined
5256		} else {
5257			matcherOut = condense(
5258				matcherOut === results ?
5259					matcherOut.splice( preexisting, matcherOut.length ) :
5260					matcherOut
5261			);
5262			if ( postFinder ) {
5263				postFinder( null, results, matcherOut, xml );
5264			} else {
5265				push.apply( results, matcherOut );
5266			}
5267		}
5268	});
5269}
5270
5271function matcherFromTokens( tokens ) {
5272	var checkContext, matcher, j,
5273		len = tokens.length,
5274		leadingRelative = Expr.relative[ tokens[0].type ],
5275		implicitRelative = leadingRelative || Expr.relative[" "],
5276		i = leadingRelative ? 1 : 0,
5277
5278		// The foundational matcher ensures that elements are reachable from top-level context(s)
5279		matchContext = addCombinator( function( elem ) {
5280			return elem === checkContext;
5281		}, implicitRelative, true ),
5282		matchAnyContext = addCombinator( function( elem ) {
5283			return indexOf.call( checkContext, elem ) > -1;
5284		}, implicitRelative, true ),
5285		matchers = [ function( elem, context, xml ) {
5286			return ( !leadingRelative && ( xml || context !== outermostContext ) ) || (
5287				(checkContext = context).nodeType ?
5288					matchContext( elem, context, xml ) :
5289					matchAnyContext( elem, context, xml ) );
5290		} ];
5291
5292	for ( ; i < len; i++ ) {
5293		if ( (matcher = Expr.relative[ tokens[i].type ]) ) {
5294			matchers = [ addCombinator(elementMatcher( matchers ), matcher) ];
5295		} else {
5296			matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );
5297
5298			// Return special upon seeing a positional matcher
5299			if ( matcher[ expando ] ) {
5300				// Find the next relative operator (if any) for proper handling
5301				j = ++i;
5302				for ( ; j < len; j++ ) {
5303					if ( Expr.relative[ tokens[j].type ] ) {
5304						break;
5305					}
5306				}
5307				return setMatcher(
5308					i > 1 && elementMatcher( matchers ),
5309					i > 1 && toSelector( tokens.slice( 0, i - 1 ) ).replace( rtrim, "$1" ),
5310					matcher,
5311					i < j && matcherFromTokens( tokens.slice( i, j ) ),
5312					j < len && matcherFromTokens( (tokens = tokens.slice( j )) ),
5313					j < len && toSelector( tokens )
5314				);
5315			}
5316			matchers.push( matcher );
5317		}
5318	}
5319
5320	return elementMatcher( matchers );
5321}
5322
5323function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
5324	// A counter to specify which element is currently being matched
5325	var matcherCachedRuns = 0,
5326		bySet = setMatchers.length > 0,
5327		byElement = elementMatchers.length > 0,
5328		superMatcher = function( seed, context, xml, results, expandContext ) {
5329			var elem, j, matcher,
5330				setMatched = [],
5331				matchedCount = 0,
5332				i = "0",
5333				unmatched = seed && [],
5334				outermost = expandContext != null,
5335				contextBackup = outermostContext,
5336				// We must always have either seed elements or context
5337				elems = seed || byElement && Expr.find["TAG"]( "*", expandContext && context.parentNode || context ),
5338				// Use integer dirruns iff this is the outermost matcher
5339				dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1);
5340
5341			if ( outermost ) {
5342				outermostContext = context !== document && context;
5343				cachedruns = matcherCachedRuns;
5344			}
5345
5346			// Add elements passing elementMatchers directly to results
5347			// Keep `i` a string if there are no elements so `matchedCount` will be "00" below
5348			for ( ; (elem = elems[i]) != null; i++ ) {
5349				if ( byElement && elem ) {
5350					j = 0;
5351					while ( (matcher = elementMatchers[j++]) ) {
5352						if ( matcher( elem, context, xml ) ) {
5353							results.push( elem );
5354							break;
5355						}
5356					}
5357					if ( outermost ) {
5358						dirruns = dirrunsUnique;
5359						cachedruns = ++matcherCachedRuns;
5360					}
5361				}
5362
5363				// Track unmatched elements for set filters
5364				if ( bySet ) {
5365					// They will have gone through all possible matchers
5366					if ( (elem = !matcher && elem) ) {
5367						matchedCount--;
5368					}
5369
5370					// Lengthen the array for every element, matched or not
5371					if ( seed ) {
5372						unmatched.push( elem );
5373					}
5374				}
5375			}
5376
5377			// Apply set filters to unmatched elements
5378			matchedCount += i;
5379			if ( bySet && i !== matchedCount ) {
5380				j = 0;
5381				while ( (matcher = setMatchers[j++]) ) {
5382					matcher( unmatched, setMatched, context, xml );
5383				}
5384
5385				if ( seed ) {
5386					// Reintegrate element matches to eliminate the need for sorting
5387					if ( matchedCount > 0 ) {
5388						while ( i-- ) {
5389							if ( !(unmatched[i] || setMatched[i]) ) {
5390								setMatched[i] = pop.call( results );
5391							}
5392						}
5393					}
5394
5395					// Discard index placeholder values to get only actual matches
5396					setMatched = condense( setMatched );
5397				}
5398
5399				// Add matches to results
5400				push.apply( results, setMatched );
5401
5402				// Seedless set matches succeeding multiple successful matchers stipulate sorting
5403				if ( outermost && !seed && setMatched.length > 0 &&
5404					( matchedCount + setMatchers.length ) > 1 ) {
5405
5406					Sizzle.uniqueSort( results );
5407				}
5408			}
5409
5410			// Override manipulation of globals by nested matchers
5411			if ( outermost ) {
5412				dirruns = dirrunsUnique;
5413				outermostContext = contextBackup;
5414			}
5415
5416			return unmatched;
5417		};
5418
5419	return bySet ?
5420		markFunction( superMatcher ) :
5421		superMatcher;
5422}
5423
5424compile = Sizzle.compile = function( selector, group /* Internal Use Only */ ) {
5425	var i,
5426		setMatchers = [],
5427		elementMatchers = [],
5428		cached = compilerCache[ selector + " " ];
5429
5430	if ( !cached ) {
5431		// Generate a function of recursive functions that can be used to check each element
5432		if ( !group ) {
5433			group = tokenize( selector );
5434		}
5435		i = group.length;
5436		while ( i-- ) {
5437			cached = matcherFromTokens( group[i] );
5438			if ( cached[ expando ] ) {
5439				setMatchers.push( cached );
5440			} else {
5441				elementMatchers.push( cached );
5442			}
5443		}
5444
5445		// Cache the compiled function
5446		cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );
5447	}
5448	return cached;
5449};
5450
5451function multipleContexts( selector, contexts, results ) {
5452	var i = 0,
5453		len = contexts.length;
5454	for ( ; i < len; i++ ) {
5455		Sizzle( selector, contexts[i], results );
5456	}
5457	return results;
5458}
5459
5460function select( selector, context, results, seed ) {
5461	var i, tokens, token, type, find,
5462		match = tokenize( selector );
5463
5464	if ( !seed ) {
5465		// Try to minimize operations if there is only one group
5466		if ( match.length === 1 ) {
5467
5468			// Take a shortcut and set the context if the root selector is an ID
5469			tokens = match[0] = match[0].slice( 0 );
5470			if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
5471					context.nodeType === 9 && !documentIsXML &&
5472					Expr.relative[ tokens[1].type ] ) {
5473
5474				context = Expr.find["ID"]( token.matches[0].replace( runescape, funescape ), context )[0];
5475				if ( !context ) {
5476					return results;
5477				}
5478
5479				selector = selector.slice( tokens.shift().value.length );
5480			}
5481
5482			// Fetch a seed set for right-to-left matching
5483			i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length;
5484			while ( i-- ) {
5485				token = tokens[i];
5486
5487				// Abort if we hit a combinator
5488				if ( Expr.relative[ (type = token.type) ] ) {
5489					break;
5490				}
5491				if ( (find = Expr.find[ type ]) ) {
5492					// Search, expanding context for leading sibling combinators
5493					if ( (seed = find(
5494						token.matches[0].replace( runescape, funescape ),
5495						rsibling.test( tokens[0].type ) && context.parentNode || context
5496					)) ) {
5497
5498						// If seed is empty or no tokens remain, we can return early
5499						tokens.splice( i, 1 );
5500						selector = seed.length && toSelector( tokens );
5501						if ( !selector ) {
5502							push.apply( results, slice.call( seed, 0 ) );
5503							return results;
5504						}
5505
5506						break;
5507					}
5508				}
5509			}
5510		}
5511	}
5512
5513	// Compile and execute a filtering function
5514	// Provide `match` to avoid retokenization if we modified the selector above
5515	compile( selector, match )(
5516		seed,
5517		context,
5518		documentIsXML,
5519		results,
5520		rsibling.test( selector )
5521	);
5522	return results;
5523}
5524
5525// Deprecated
5526Expr.pseudos["nth"] = Expr.pseudos["eq"];
5527
5528// Easy API for creating new setFilters
5529function setFilters() {}
5530Expr.filters = setFilters.prototype = Expr.pseudos;
5531Expr.setFilters = new setFilters();
5532
5533// Initialize with the default document
5534setDocument();
5535
5536// Override sizzle attribute retrieval
5537Sizzle.attr = jQuery.attr;
5538jQuery.find = Sizzle;
5539jQuery.expr = Sizzle.selectors;
5540jQuery.expr[":"] = jQuery.expr.pseudos;
5541jQuery.unique = Sizzle.uniqueSort;
5542jQuery.text = Sizzle.getText;
5543jQuery.isXMLDoc = Sizzle.isXML;
5544jQuery.contains = Sizzle.contains;
5545
5546
5547})( window );
5548var runtil = /Until$/,
5549	rparentsprev = /^(?:parents|prev(?:Until|All))/,
5550	isSimple = /^.[^:#\[\.,]*$/,
5551	rneedsContext = jQuery.expr.match.needsContext,
5552	// methods guaranteed to produce a unique set when starting from a unique set
5553	guaranteedUnique = {
5554		children: true,
5555		contents: true,
5556		next: true,
5557		prev: true
5558	};
5559
5560jQuery.fn.extend({
5561	find: function( selector ) {
5562		var i, ret, self,
5563			len = this.length;
5564
5565		if ( typeof selector !== "string" ) {
5566			self = this;
5567			return this.pushStack( jQuery( selector ).filter(function() {
5568				for ( i = 0; i < len; i++ ) {
5569					if ( jQuery.contains( self[ i ], this ) ) {
5570						return true;
5571					}
5572				}
5573			}) );
5574		}
5575
5576		ret = [];
5577		for ( i = 0; i < len; i++ ) {
5578			jQuery.find( selector, this[ i ], ret );
5579		}
5580
5581		// Needed because $( selector, context ) becomes $( context ).find( selector )
5582		ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret );
5583		ret.selector = ( this.selector ? this.selector + " " : "" ) + selector;
5584		return ret;
5585	},
5586
5587	has: function( target ) {
5588		var i,
5589			targets = jQuery( target, this ),
5590			len = targets.length;
5591
5592		return this.filter(function() {
5593			for ( i = 0; i < len; i++ ) {
5594				if ( jQuery.contains( this, targets[i] ) ) {
5595					return true;
5596				}
5597			}
5598		});
5599	},
5600
5601	not: function( selector ) {
5602		return this.pushStack( winnow(this, selector, false) );
5603	},
5604
5605	filter: function( selector ) {
5606		return this.pushStack( winnow(this, selector, true) );
5607	},
5608
5609	is: function( selector ) {
5610		return !!selector && (
5611			typeof selector === "string" ?
5612				// If this is a positional/relative selector, check membership in the returned set
5613				// so $("p:first").is("p:last") won't return true for a doc with two "p".
5614				rneedsContext.test( selector ) ?
vendor: 6,190 bytes, lines 5615-5844
5615					jQuery( selector, this.context ).index( this[0] ) >= 0 :
5616					jQuery.filter( selector, this ).length > 0 :
5617				this.filter( selector ).length > 0 );
5618	},
5619
5620	closest: function( selectors, context ) {
5621		var cur,
5622			i = 0,
5623			l = this.length,
5624			ret = [],
5625			pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ?
5626				jQuery( selectors, context || this.context ) :
5627				0;
5628
5629		for ( ; i < l; i++ ) {
5630			cur = this[i];
5631
5632			while ( cur && cur.ownerDocument && cur !== context && cur.nodeType !== 11 ) {
5633				if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) {
5634					ret.push( cur );
5635					break;
5636				}
5637				cur = cur.parentNode;
5638			}
5639		}
5640
5641		return this.pushStack( ret.length > 1 ? jQuery.unique( ret ) : ret );
5642	},
5643
5644	// Determine the position of an element within
5645	// the matched set of elements
5646	index: function( elem ) {
5647
5648		// No argument, return index in parent
5649		if ( !elem ) {
5650			return ( this[0] && this[0].parentNode ) ? this.first().prevAll().length : -1;
5651		}
5652
5653		// index in selector
5654		if ( typeof elem === "string" ) {
5655			return jQuery.inArray( this[0], jQuery( elem ) );
5656		}
5657
5658		// Locate the position of the desired element
5659		return jQuery.inArray(
5660			// If it receives a jQuery object, the first element is used
5661			elem.jquery ? elem[0] : elem, this );
5662	},
5663
5664	add: function( selector, context ) {
5665		var set = typeof selector === "string" ?
5666				jQuery( selector, context ) :
5667				jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ),
5668			all = jQuery.merge( this.get(), set );
5669
5670		return this.pushStack( jQuery.unique(all) );
5671	},
5672
5673	addBack: function( selector ) {
5674		return this.add( selector == null ?
5675			this.prevObject : this.prevObject.filter(selector)
5676		);
5677	}
5678});
5679
5680jQuery.fn.andSelf = jQuery.fn.addBack;
5681
5682function sibling( cur, dir ) {
5683	do {
5684		cur = cur[ dir ];
5685	} while ( cur && cur.nodeType !== 1 );
5686
5687	return cur;
5688}
5689
5690jQuery.each({
5691	parent: function( elem ) {
5692		var parent = elem.parentNode;
5693		return parent && parent.nodeType !== 11 ? parent : null;
5694	},
5695	parents: function( elem ) {
5696		return jQuery.dir( elem, "parentNode" );
5697	},
5698	parentsUntil: function( elem, i, until ) {
5699		return jQuery.dir( elem, "parentNode", until );
5700	},
5701	next: function( elem ) {
5702		return sibling( elem, "nextSibling" );
5703	},
5704	prev: function( elem ) {
5705		return sibling( elem, "previousSibling" );
5706	},
5707	nextAll: function( elem ) {
5708		return jQuery.dir( elem, "nextSibling" );
5709	},
5710	prevAll: function( elem ) {
5711		return jQuery.dir( elem, "previousSibling" );
5712	},
5713	nextUntil: function( elem, i, until ) {
5714		return jQuery.dir( elem, "nextSibling", until );
5715	},
5716	prevUntil: function( elem, i, until ) {
5717		return jQuery.dir( elem, "previousSibling", until );
5718	},
5719	siblings: function( elem ) {
5720		return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem );
5721	},
5722	children: function( elem ) {
5723		return jQuery.sibling( elem.firstChild );
5724	},
5725	contents: function( elem ) {
5726		return jQuery.nodeName( elem, "iframe" ) ?
5727			elem.contentDocument || elem.contentWindow.document :
5728			jQuery.merge( [], elem.childNodes );
5729	}
5730}, function( name, fn ) {
5731	jQuery.fn[ name ] = function( until, selector ) {
5732		var ret = jQuery.map( this, fn, until );
5733
5734		if ( !runtil.test( name ) ) {
5735			selector = until;
5736		}
5737
5738		if ( selector && typeof selector === "string" ) {
5739			ret = jQuery.filter( selector, ret );
5740		}
5741
5742		ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret;
5743
5744		if ( this.length > 1 && rparentsprev.test( name ) ) {
5745			ret = ret.reverse();
5746		}
5747
5748		return this.pushStack( ret );
5749	};
5750});
5751
5752jQuery.extend({
5753	filter: function( expr, elems, not ) {
5754		if ( not ) {
5755			expr = ":not(" + expr + ")";
5756		}
5757
5758		return elems.length === 1 ?
5759			jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] :
5760			jQuery.find.matches(expr, elems);
5761	},
5762
5763	dir: function( elem, dir, until ) {
5764		var matched = [],
5765			cur = elem[ dir ];
5766
5767		while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {
5768			if ( cur.nodeType === 1 ) {
5769				matched.push( cur );
5770			}
5771			cur = cur[dir];
5772		}
5773		return matched;
5774	},
5775
5776	sibling: function( n, elem ) {
5777		var r = [];
5778
5779		for ( ; n; n = n.nextSibling ) {
5780			if ( n.nodeType === 1 && n !== elem ) {
5781				r.push( n );
5782			}
5783		}
5784
5785		return r;
5786	}
5787});
5788
5789// Implement the identical functionality for filter and not
5790function winnow( elements, qualifier, keep ) {
5791
5792	// Can't pass null or undefined to indexOf in Firefox 4
5793	// Set to 0 to skip string check
5794	qualifier = qualifier || 0;
5795
5796	if ( jQuery.isFunction( qualifier ) ) {
5797		return jQuery.grep(elements, function( elem, i ) {
5798			var retVal = !!qualifier.call( elem, i, elem );
5799			return retVal === keep;
5800		});
5801
5802	} else if ( qualifier.nodeType ) {
5803		return jQuery.grep(elements, function( elem ) {
5804			return ( elem === qualifier ) === keep;
5805		});
5806
5807	} else if ( typeof qualifier === "string" ) {
5808		var filtered = jQuery.grep(elements, function( elem ) {
5809			return elem.nodeType === 1;
5810		});
5811
5812		if ( isSimple.test( qualifier ) ) {
5813			return jQuery.filter(qualifier, filtered, !keep);
5814		} else {
5815			qualifier = jQuery.filter( qualifier, filtered );
5816		}
5817	}
5818
5819	return jQuery.grep(elements, function( elem ) {
5820		return ( jQuery.inArray( elem, qualifier ) >= 0 ) === keep;
5821	});
5822}
5823function createSafeFragment( document ) {
5824	var list = nodeNames.split( "|" ),
5825		safeFrag = document.createDocumentFragment();
5826
5827	if ( safeFrag.createElement ) {
5828		while ( list.length ) {
5829			safeFrag.createElement(
5830				list.pop()
5831			);
5832		}
5833	}
5834	return safeFrag;
5835}
5836
5837var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" +
5838		"header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
5839	rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g,
5840	rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"),
5841	rleadingWhitespace = /^\s+/,
5842	rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,
5843	rtagName = /<([\w:]+)/,
5844	rtbody = /<tbody/i,
vendor: 47,148 bytes, lines 5845-7422
5845	rhtml = /<|&#?\w+;/,
5846	rnoInnerhtml = /<(?:script|style|link)/i,
5847	manipulation_rcheckableType = /^(?:checkbox|radio)$/i,
5848	// checked="checked" or checked
5849	rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
5850	rscriptType = /^$|\/(?:java|ecma)script/i,
5851	rscriptTypeMasked = /^true\/(.*)/,
5852	rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,
5853
5854	// We have to close these tags to support XHTML (#13200)
5855	wrapMap = {
5856		option: [ 1, "<select multiple='multiple'>", "</select>" ],
5857		legend: [ 1, "<fieldset>", "</fieldset>" ],
5858		area: [ 1, "<map>", "</map>" ],
5859		param: [ 1, "<object>", "</object>" ],
5860		thead: [ 1, "<table>", "</table>" ],
5861		tr: [ 2, "<table><tbody>", "</tbody></table>" ],
5862		col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],
5863		td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
5864
5865		// IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags,
5866		// unless wrapped in a div with non-breaking characters in front of it.
5867		_default: jQuery.support.htmlSerialize ? [ 0, "", "" ] : [ 1, "X<div>", "</div>"  ]
5868	},
5869	safeFragment = createSafeFragment( document ),
5870	fragmentDiv = safeFragment.appendChild( document.createElement("div") );
5871
5872wrapMap.optgroup = wrapMap.option;
5873wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
5874wrapMap.th = wrapMap.td;
5875
5876jQuery.fn.extend({
5877	text: function( value ) {
5878		return jQuery.access( this, function( value ) {
5879			return value === undefined ?
5880				jQuery.text( this ) :
5881				this.empty().append( ( this[0] && this[0].ownerDocument || document ).createTextNode( value ) );
5882		}, null, value, arguments.length );
5883	},
5884
5885	wrapAll: function( html ) {
5886		if ( jQuery.isFunction( html ) ) {
5887			return this.each(function(i) {
5888				jQuery(this).wrapAll( html.call(this, i) );
5889			});
5890		}
5891
5892		if ( this[0] ) {
5893			// The elements to wrap the target around
5894			var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);
5895
5896			if ( this[0].parentNode ) {
5897				wrap.insertBefore( this[0] );
5898			}
5899
5900			wrap.map(function() {
5901				var elem = this;
5902
5903				while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {
5904					elem = elem.firstChild;
5905				}
5906
5907				return elem;
5908			}).append( this );
5909		}
5910
5911		return this;
5912	},
5913
5914	wrapInner: function( html ) {
5915		if ( jQuery.isFunction( html ) ) {
5916			return this.each(function(i) {
5917				jQuery(this).wrapInner( html.call(this, i) );
5918			});
5919		}
5920
5921		return this.each(function() {
5922			var self = jQuery( this ),
5923				contents = self.contents();
5924
5925			if ( contents.length ) {
5926				contents.wrapAll( html );
5927
5928			} else {
5929				self.append( html );
5930			}
5931		});
5932	},
5933
5934	wrap: function( html ) {
5935		var isFunction = jQuery.isFunction( html );
5936
5937		return this.each(function(i) {
5938			jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );
5939		});
5940	},
5941
5942	unwrap: function() {
5943		return this.parent().each(function() {
5944			if ( !jQuery.nodeName( this, "body" ) ) {
5945				jQuery( this ).replaceWith( this.childNodes );
5946			}
5947		}).end();
5948	},
5949
5950	append: function() {
5951		return this.domManip(arguments, true, function( elem ) {
5952			if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
5953				this.appendChild( elem );
5954			}
5955		});
5956	},
5957
5958	prepend: function() {
5959		return this.domManip(arguments, true, function( elem ) {
5960			if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
5961				this.insertBefore( elem, this.firstChild );
5962			}
5963		});
5964	},
5965
5966	before: function() {
5967		return this.domManip( arguments, false, function( elem ) {
5968			if ( this.parentNode ) {
5969				this.parentNode.insertBefore( elem, this );
5970
5971			}
5972		});
5973	},
5974
5975	after: function() {
5976		return this.domManip( arguments, false, function( elem ) {
5977			if ( this.parentNode ) {
5978				this.parentNode.insertBefore( elem, this.nextSibling );
5979			}
5980		});
5981	},
5982
5983	// keepData is for internal use only--do not document
5984	remove: function( selector, keepData ) {
5985		var elem,
5986			i = 0;
5987
5988		for ( ; (elem = this[i]) != null; i++ ) {
5989			if ( !selector || jQuery.filter( selector, [ elem ] ).length > 0 ) {
5990				if ( !keepData && elem.nodeType === 1 ) {
5991					jQuery.cleanData( getAll( elem ) );
5992				}
5993
5994				if ( elem.parentNode ) {
5995					if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) {
5996						setGlobalEval( getAll( elem, "script" ) );
5997					}
5998					elem.parentNode.removeChild( elem );
5999				}
6000			}
6001		}
6002
6003		return this;
6004	},
6005
6006	empty: function() {
6007		var elem,
6008			i = 0;
6009
6010		for ( ; (elem = this[i]) != null; i++ ) {
6011			// Remove element nodes and prevent memory leaks
6012			if ( elem.nodeType === 1 ) {
6013				jQuery.cleanData( getAll( elem, false ) );
6014			}
6015
6016			// Remove any remaining nodes
6017			while ( elem.firstChild ) {
6018				elem.removeChild( elem.firstChild );
6019			}
6020
6021			// If this is a select, ensure that it displays empty (#12336)
6022			// Support: IE<9
6023			if ( elem.options && jQuery.nodeName( elem, "select" ) ) {
6024				elem.options.length = 0;
6025			}
6026		}
6027
6028		return this;
6029	},
6030
6031	clone: function( dataAndEvents, deepDataAndEvents ) {
6032		dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
6033		deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
6034
6035		return this.map( function () {
6036			return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
6037		});
6038	},
6039
6040	html: function( value ) {
6041		return jQuery.access( this, function( value ) {
6042			var elem = this[0] || {},
6043				i = 0,
6044				l = this.length;
6045
6046			if ( value === undefined ) {
6047				return elem.nodeType === 1 ?
6048					elem.innerHTML.replace( rinlinejQuery, "" ) :
6049					undefined;
6050			}
6051
6052			// See if we can take a shortcut and just use innerHTML
6053			if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
6054				( jQuery.support.htmlSerialize || !rnoshimcache.test( value )  ) &&
6055				( jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value ) ) &&
6056				!wrapMap[ ( rtagName.exec( value ) || ["", ""] )[1].toLowerCase() ] ) {
6057
6058				value = value.replace( rxhtmlTag, "<$1></$2>" );
6059
6060				try {
6061					for (; i < l; i++ ) {
6062						// Remove element nodes and prevent memory leaks
6063						elem = this[i] || {};
6064						if ( elem.nodeType === 1 ) {
6065							jQuery.cleanData( getAll( elem, false ) );
6066							elem.innerHTML = value;
6067						}
6068					}
6069
6070					elem = 0;
6071
6072				// If using innerHTML throws an exception, use the fallback method
6073				} catch(e) {}
6074			}
6075
6076			if ( elem ) {
6077				this.empty().append( value );
6078			}
6079		}, null, value, arguments.length );
6080	},
6081
6082	replaceWith: function( value ) {
6083		var isFunc = jQuery.isFunction( value );
6084
6085		// Make sure that the elements are removed from the DOM before they are inserted
6086		// this can help fix replacing a parent with child elements
6087		if ( !isFunc && typeof value !== "string" ) {
6088			value = jQuery( value ).not( this ).detach();
6089		}
6090
6091		return this.domManip( [ value ], true, function( elem ) {
6092			var next = this.nextSibling,
6093				parent = this.parentNode;
6094
6095			if ( parent ) {
6096				jQuery( this ).remove();
6097				parent.insertBefore( elem, next );
6098			}
6099		});
6100	},
6101
6102	detach: function( selector ) {
6103		return this.remove( selector, true );
6104	},
6105
6106	domManip: function( args, table, callback ) {
6107
6108		// Flatten any nested arrays
6109		args = core_concat.apply( [], args );
6110
6111		var first, node, hasScripts,
6112			scripts, doc, fragment,
6113			i = 0,
6114			l = this.length,
6115			set = this,
6116			iNoClone = l - 1,
6117			value = args[0],
6118			isFunction = jQuery.isFunction( value );
6119
6120		// We can't cloneNode fragments that contain checked, in WebKit
6121		if ( isFunction || !( l <= 1 || typeof value !== "string" || jQuery.support.checkClone || !rchecked.test( value ) ) ) {
6122			return this.each(function( index ) {
6123				var self = set.eq( index );
6124				if ( isFunction ) {
6125					args[0] = value.call( this, index, table ? self.html() : undefined );
6126				}
6127				self.domManip( args, table, callback );
6128			});
6129		}
6130
6131		if ( l ) {
6132			fragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, this );
6133			first = fragment.firstChild;
6134
6135			if ( fragment.childNodes.length === 1 ) {
6136				fragment = first;
6137			}
6138
6139			if ( first ) {
6140				table = table && jQuery.nodeName( first, "tr" );
6141				scripts = jQuery.map( getAll( fragment, "script" ), disableScript );
6142				hasScripts = scripts.length;
6143
6144				// Use the original fragment for the last item instead of the first because it can end up
6145				// being emptied incorrectly in certain situations (#8070).
6146				for ( ; i < l; i++ ) {
6147					node = fragment;
6148
6149					if ( i !== iNoClone ) {
6150						node = jQuery.clone( node, true, true );
6151
6152						// Keep references to cloned scripts for later restoration
6153						if ( hasScripts ) {
6154							jQuery.merge( scripts, getAll( node, "script" ) );
6155						}
6156					}
6157
6158					callback.call(
6159						table && jQuery.nodeName( this[i], "table" ) ?
6160							findOrAppend( this[i], "tbody" ) :
6161							this[i],
6162						node,
6163						i
6164					);
6165				}
6166
6167				if ( hasScripts ) {
6168					doc = scripts[ scripts.length - 1 ].ownerDocument;
6169
6170					// Reenable scripts
6171					jQuery.map( scripts, restoreScript );
6172
6173					// Evaluate executable scripts on first document insertion
6174					for ( i = 0; i < hasScripts; i++ ) {
6175						node = scripts[ i ];
6176						if ( rscriptType.test( node.type || "" ) &&
6177							!jQuery._data( node, "globalEval" ) && jQuery.contains( doc, node ) ) {
6178
6179							if ( node.src ) {
6180								// Hope ajax is available...
6181								jQuery.ajax({
6182									url: node.src,
6183									type: "GET",
6184									dataType: "script",
6185									async: false,
6186									global: false,
6187									"throws": true
6188								});
6189							} else {
6190								jQuery.globalEval( ( node.text || node.textContent || node.innerHTML || "" ).replace( rcleanScript, "" ) );
6191							}
6192						}
6193					}
6194				}
6195
6196				// Fix #11809: Avoid leaking memory
6197				fragment = first = null;
6198			}
6199		}
6200
6201		return this;
6202	}
6203});
6204
6205function findOrAppend( elem, tag ) {
6206	return elem.getElementsByTagName( tag )[0] || elem.appendChild( elem.ownerDocument.createElement( tag ) );
6207}
6208
6209// Replace/restore the type attribute of script elements for safe DOM manipulation
6210function disableScript( elem ) {
6211	var attr = elem.getAttributeNode("type");
6212	elem.type = ( attr && attr.specified ) + "/" + elem.type;
6213	return elem;
6214}
6215function restoreScript( elem ) {
6216	var match = rscriptTypeMasked.exec( elem.type );
6217	if ( match ) {
6218		elem.type = match[1];
6219	} else {
6220		elem.removeAttribute("type");
6221	}
6222	return elem;
6223}
6224
6225// Mark scripts as having already been evaluated
6226function setGlobalEval( elems, refElements ) {
6227	var elem,
6228		i = 0;
6229	for ( ; (elem = elems[i]) != null; i++ ) {
6230		jQuery._data( elem, "globalEval", !refElements || jQuery._data( refElements[i], "globalEval" ) );
6231	}
6232}
6233
6234function cloneCopyEvent( src, dest ) {
6235
6236	if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) {
6237		return;
6238	}
6239
6240	var type, i, l,
6241		oldData = jQuery._data( src ),
6242		curData = jQuery._data( dest, oldData ),
6243		events = oldData.events;
6244
6245	if ( events ) {
6246		delete curData.handle;
6247		curData.events = {};
6248
6249		for ( type in events ) {
6250			for ( i = 0, l = events[ type ].length; i < l; i++ ) {
6251				jQuery.event.add( dest, type, events[ type ][ i ] );
6252			}
6253		}
6254	}
6255
6256	// make the cloned public data object a copy from the original
6257	if ( curData.data ) {
6258		curData.data = jQuery.extend( {}, curData.data );
6259	}
6260}
6261
6262function fixCloneNodeIssues( src, dest ) {
6263	var nodeName, e, data;
6264
6265	// We do not need to do anything for non-Elements
6266	if ( dest.nodeType !== 1 ) {
6267		return;
6268	}
6269
6270	nodeName = dest.nodeName.toLowerCase();
6271
6272	// IE6-8 copies events bound via attachEvent when using cloneNode.
6273	if ( !jQuery.support.noCloneEvent && dest[ jQuery.expando ] ) {
6274		data = jQuery._data( dest );
6275
6276		for ( e in data.events ) {
6277			jQuery.removeEvent( dest, e, data.handle );
6278		}
6279
6280		// Event data gets referenced instead of copied if the expando gets copied too
6281		dest.removeAttribute( jQuery.expando );
6282	}
6283
6284	// IE blanks contents when cloning scripts, and tries to evaluate newly-set text
6285	if ( nodeName === "script" && dest.text !== src.text ) {
6286		disableScript( dest ).text = src.text;
6287		restoreScript( dest );
6288
6289	// IE6-10 improperly clones children of object elements using classid.
6290	// IE10 throws NoModificationAllowedError if parent is null, #12132.
6291	} else if ( nodeName === "object" ) {
6292		if ( dest.parentNode ) {
6293			dest.outerHTML = src.outerHTML;
6294		}
6295
6296		// This path appears unavoidable for IE9. When cloning an object
6297		// element in IE9, the outerHTML strategy above is not sufficient.
6298		// If the src has innerHTML and the destination does not,
6299		// copy the src.innerHTML into the dest.innerHTML. #10324
6300		if ( jQuery.support.html5Clone && ( src.innerHTML && !jQuery.trim(dest.innerHTML) ) ) {
6301			dest.innerHTML = src.innerHTML;
6302		}
6303
6304	} else if ( nodeName === "input" && manipulation_rcheckableType.test( src.type ) ) {
6305		// IE6-8 fails to persist the checked state of a cloned checkbox
6306		// or radio button. Worse, IE6-7 fail to give the cloned element
6307		// a checked appearance if the defaultChecked value isn't also set
6308
6309		dest.defaultChecked = dest.checked = src.checked;
6310
6311		// IE6-7 get confused and end up setting the value of a cloned
6312		// checkbox/radio button to an empty string instead of "on"
6313		if ( dest.value !== src.value ) {
6314			dest.value = src.value;
6315		}
6316
6317	// IE6-8 fails to return the selected option to the default selected
6318	// state when cloning options
6319	} else if ( nodeName === "option" ) {
6320		dest.defaultSelected = dest.selected = src.defaultSelected;
6321
6322	// IE6-8 fails to set the defaultValue to the correct value when
6323	// cloning other types of input fields
6324	} else if ( nodeName === "input" || nodeName === "textarea" ) {
6325		dest.defaultValue = src.defaultValue;
6326	}
6327}
6328
6329jQuery.each({
6330	appendTo: "append",
6331	prependTo: "prepend",
6332	insertBefore: "before",
6333	insertAfter: "after",
6334	replaceAll: "replaceWith"
6335}, function( name, original ) {
6336	jQuery.fn[ name ] = function( selector ) {
6337		var elems,
6338			i = 0,
6339			ret = [],
6340			insert = jQuery( selector ),
6341			last = insert.length - 1;
6342
6343		for ( ; i <= last; i++ ) {
6344			elems = i === last ? this : this.clone(true);
6345			jQuery( insert[i] )[ original ]( elems );
6346
6347			// Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get()
6348			core_push.apply( ret, elems.get() );
6349		}
6350
6351		return this.pushStack( ret );
6352	};
6353});
6354
6355function getAll( context, tag ) {
6356	var elems, elem,
6357		i = 0,
6358		found = typeof context.getElementsByTagName !== core_strundefined ? context.getElementsByTagName( tag || "*" ) :
6359			typeof context.querySelectorAll !== core_strundefined ? context.querySelectorAll( tag || "*" ) :
6360			undefined;
6361
6362	if ( !found ) {
6363		for ( found = [], elems = context.childNodes || context; (elem = elems[i]) != null; i++ ) {
6364			if ( !tag || jQuery.nodeName( elem, tag ) ) {
6365				found.push( elem );
6366			} else {
6367				jQuery.merge( found, getAll( elem, tag ) );
6368			}
6369		}
6370	}
6371
6372	return tag === undefined || tag && jQuery.nodeName( context, tag ) ?
6373		jQuery.merge( [ context ], found ) :
6374		found;
6375}
6376
6377// Used in buildFragment, fixes the defaultChecked property
6378function fixDefaultChecked( elem ) {
6379	if ( manipulation_rcheckableType.test( elem.type ) ) {
6380		elem.defaultChecked = elem.checked;
6381	}
6382}
6383
6384jQuery.extend({
6385	clone: function( elem, dataAndEvents, deepDataAndEvents ) {
6386		var destElements, node, clone, i, srcElements,
6387			inPage = jQuery.contains( elem.ownerDocument, elem );
6388
6389		if ( jQuery.support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) {
6390			clone = elem.cloneNode( true );
6391
6392		// IE<=8 does not properly clone detached, unknown element nodes
6393		} else {
6394			fragmentDiv.innerHTML = elem.outerHTML;
6395			fragmentDiv.removeChild( clone = fragmentDiv.firstChild );
6396		}
6397
6398		if ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) &&
6399				(elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) {
6400
6401			// We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2
6402			destElements = getAll( clone );
6403			srcElements = getAll( elem );
6404
6405			// Fix all IE cloning issues
6406			for ( i = 0; (node = srcElements[i]) != null; ++i ) {
6407				// Ensure that the destination node is not null; Fixes #9587
6408				if ( destElements[i] ) {
6409					fixCloneNodeIssues( node, destElements[i] );
6410				}
6411			}
6412		}
6413
6414		// Copy the events from the original to the clone
6415		if ( dataAndEvents ) {
6416			if ( deepDataAndEvents ) {
6417				srcElements = srcElements || getAll( elem );
6418				destElements = destElements || getAll( clone );
6419
6420				for ( i = 0; (node = srcElements[i]) != null; i++ ) {
6421					cloneCopyEvent( node, destElements[i] );
6422				}
6423			} else {
6424				cloneCopyEvent( elem, clone );
6425			}
6426		}
6427
6428		// Preserve script evaluation history
6429		destElements = getAll( clone, "script" );
6430		if ( destElements.length > 0 ) {
6431			setGlobalEval( destElements, !inPage && getAll( elem, "script" ) );
6432		}
6433
6434		destElements = srcElements = node = null;
6435
6436		// Return the cloned set
6437		return clone;
6438	},
6439
6440	buildFragment: function( elems, context, scripts, selection ) {
6441		var j, elem, contains,
6442			tmp, tag, tbody, wrap,
6443			l = elems.length,
6444
6445			// Ensure a safe fragment
6446			safe = createSafeFragment( context ),
6447
6448			nodes = [],
6449			i = 0;
6450
6451		for ( ; i < l; i++ ) {
6452			elem = elems[ i ];
6453
6454			if ( elem || elem === 0 ) {
6455
6456				// Add nodes directly
6457				if ( jQuery.type( elem ) === "object" ) {
6458					jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );
6459
6460				// Convert non-html into a text node
6461				} else if ( !rhtml.test( elem ) ) {
6462					nodes.push( context.createTextNode( elem ) );
6463
6464				// Convert html into DOM nodes
6465				} else {
6466					tmp = tmp || safe.appendChild( context.createElement("div") );
6467
6468					// Deserialize a standard representation
6469					tag = ( rtagName.exec( elem ) || ["", ""] )[1].toLowerCase();
6470					wrap = wrapMap[ tag ] || wrapMap._default;
6471
6472					tmp.innerHTML = wrap[1] + elem.replace( rxhtmlTag, "<$1></$2>" ) + wrap[2];
6473
6474					// Descend through wrappers to the right content
6475					j = wrap[0];
6476					while ( j-- ) {
6477						tmp = tmp.lastChild;
6478					}
6479
6480					// Manually add leading whitespace removed by IE
6481					if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {
6482						nodes.push( context.createTextNode( rleadingWhitespace.exec( elem )[0] ) );
6483					}
6484
6485					// Remove IE's autoinserted <tbody> from table fragments
6486					if ( !jQuery.support.tbody ) {
6487
6488						// String was a <table>, *may* have spurious <tbody>
6489						elem = tag === "table" && !rtbody.test( elem ) ?
6490							tmp.firstChild :
6491
6492							// String was a bare <thead> or <tfoot>
6493							wrap[1] === "<table>" && !rtbody.test( elem ) ?
6494								tmp :
6495								0;
6496
6497						j = elem && elem.childNodes.length;
6498						while ( j-- ) {
6499							if ( jQuery.nodeName( (tbody = elem.childNodes[j]), "tbody" ) && !tbody.childNodes.length ) {
6500								elem.removeChild( tbody );
6501							}
6502						}
6503					}
6504
6505					jQuery.merge( nodes, tmp.childNodes );
6506
6507					// Fix #12392 for WebKit and IE > 9
6508					tmp.textContent = "";
6509
6510					// Fix #12392 for oldIE
6511					while ( tmp.firstChild ) {
6512						tmp.removeChild( tmp.firstChild );
6513					}
6514
6515					// Remember the top-level container for proper cleanup
6516					tmp = safe.lastChild;
6517				}
6518			}
6519		}
6520
6521		// Fix #11356: Clear elements from fragment
6522		if ( tmp ) {
6523			safe.removeChild( tmp );
6524		}
6525
6526		// Reset defaultChecked for any radios and checkboxes
6527		// about to be appended to the DOM in IE 6/7 (#8060)
6528		if ( !jQuery.support.appendChecked ) {
6529			jQuery.grep( getAll( nodes, "input" ), fixDefaultChecked );
6530		}
6531
6532		i = 0;
6533		while ( (elem = nodes[ i++ ]) ) {
6534
6535			// #4087 - If origin and destination elements are the same, and this is
6536			// that element, do not do anything
6537			if ( selection && jQuery.inArray( elem, selection ) !== -1 ) {
6538				continue;
6539			}
6540
6541			contains = jQuery.contains( elem.ownerDocument, elem );
6542
6543			// Append to fragment
6544			tmp = getAll( safe.appendChild( elem ), "script" );
6545
6546			// Preserve script evaluation history
6547			if ( contains ) {
6548				setGlobalEval( tmp );
6549			}
6550
6551			// Capture executables
6552			if ( scripts ) {
6553				j = 0;
6554				while ( (elem = tmp[ j++ ]) ) {
6555					if ( rscriptType.test( elem.type || "" ) ) {
6556						scripts.push( elem );
6557					}
6558				}
6559			}
6560		}
6561
6562		tmp = null;
6563
6564		return safe;
6565	},
6566
6567	cleanData: function( elems, /* internal */ acceptData ) {
6568		var elem, type, id, data,
6569			i = 0,
6570			internalKey = jQuery.expando,
6571			cache = jQuery.cache,
6572			deleteExpando = jQuery.support.deleteExpando,
6573			special = jQuery.event.special;
6574
6575		for ( ; (elem = elems[i]) != null; i++ ) {
6576
6577			if ( acceptData || jQuery.acceptData( elem ) ) {
6578
6579				id = elem[ internalKey ];
6580				data = id && cache[ id ];
6581
6582				if ( data ) {
6583					if ( data.events ) {
6584						for ( type in data.events ) {
6585							if ( special[ type ] ) {
6586								jQuery.event.remove( elem, type );
6587
6588							// This is a shortcut to avoid jQuery.event.remove's overhead
6589							} else {
6590								jQuery.removeEvent( elem, type, data.handle );
6591							}
6592						}
6593					}
6594
6595					// Remove cache only if it was not already removed by jQuery.event.remove
6596					if ( cache[ id ] ) {
6597
6598						delete cache[ id ];
6599
6600						// IE does not allow us to delete expando properties from nodes,
6601						// nor does it have a removeAttribute function on Document nodes;
6602						// we must handle all of these cases
6603						if ( deleteExpando ) {
6604							delete elem[ internalKey ];
6605
6606						} else if ( typeof elem.removeAttribute !== core_strundefined ) {
6607							elem.removeAttribute( internalKey );
6608
6609						} else {
6610							elem[ internalKey ] = null;
6611						}
6612
6613						core_deletedIds.push( id );
6614					}
6615				}
6616			}
6617		}
6618	}
6619});
6620var iframe, getStyles, curCSS,
6621	ralpha = /alpha\([^)]*\)/i,
6622	ropacity = /opacity\s*=\s*([^)]*)/,
6623	rposition = /^(top|right|bottom|left)$/,
6624	// swappable if display is none or starts with table except "table", "table-cell", or "table-caption"
6625	// see here for display values: https://developer.mozilla.org/en-US/docs/CSS/display
6626	rdisplayswap = /^(none|table(?!-c[ea]).+)/,
6627	rmargin = /^margin/,
6628	rnumsplit = new RegExp( "^(" + core_pnum + ")(.*)$", "i" ),
6629	rnumnonpx = new RegExp( "^(" + core_pnum + ")(?!px)[a-z%]+$", "i" ),
6630	rrelNum = new RegExp( "^([+-])=(" + core_pnum + ")", "i" ),
6631	elemdisplay = { BODY: "block" },
6632
6633	cssShow = { position: "absolute", visibility: "hidden", display: "block" },
6634	cssNormalTransform = {
6635		letterSpacing: 0,
6636		fontWeight: 400
6637	},
6638
6639	cssExpand = [ "Top", "Right", "Bottom", "Left" ],
6640	cssPrefixes = [ "Webkit", "O", "Moz", "ms" ];
6641
6642// return a css property mapped to a potentially vendor prefixed property
6643function vendorPropName( style, name ) {
6644
6645	// shortcut for names that are not vendor prefixed
6646	if ( name in style ) {
6647		return name;
6648	}
6649
6650	// check for vendor prefixed names
6651	var capName = name.charAt(0).toUpperCase() + name.slice(1),
6652		origName = name,
6653		i = cssPrefixes.length;
6654
6655	while ( i-- ) {
6656		name = cssPrefixes[ i ] + capName;
6657		if ( name in style ) {
6658			return name;
6659		}
6660	}
6661
6662	return origName;
6663}
6664
6665function isHidden( elem, el ) {
6666	// isHidden might be called from jQuery#filter function;
6667	// in that case, element will be second argument
6668	elem = el || elem;
6669	return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem );
6670}
6671
6672function showHide( elements, show ) {
6673	var display, elem, hidden,
6674		values = [],
6675		index = 0,
6676		length = elements.length;
6677
6678	for ( ; index < length; index++ ) {
6679		elem = elements[ index ];
6680		if ( !elem.style ) {
6681			continue;
6682		}
6683
6684		values[ index ] = jQuery._data( elem, "olddisplay" );
6685		display = elem.style.display;
6686		if ( show ) {
6687			// Reset the inline display of this element to learn if it is
6688			// being hidden by cascaded rules or not
6689			if ( !values[ index ] && display === "none" ) {
6690				elem.style.display = "";
6691			}
6692
6693			// Set elements which have been overridden with display: none
6694			// in a stylesheet to whatever the default browser style is
6695			// for such an element
6696			if ( elem.style.display === "" && isHidden( elem ) ) {
6697				values[ index ] = jQuery._data( elem, "olddisplay", css_defaultDisplay(elem.nodeName) );
6698			}
6699		} else {
6700
6701			if ( !values[ index ] ) {
6702				hidden = isHidden( elem );
6703
6704				if ( display && display !== "none" || !hidden ) {
6705					jQuery._data( elem, "olddisplay", hidden ? display : jQuery.css( elem, "display" ) );
6706				}
6707			}
6708		}
6709	}
6710
6711	// Set the display of most of the elements in a second loop
6712	// to avoid the constant reflow
6713	for ( index = 0; index < length; index++ ) {
6714		elem = elements[ index ];
6715		if ( !elem.style ) {
6716			continue;
6717		}
6718		if ( !show || elem.style.display === "none" || elem.style.display === "" ) {
6719			elem.style.display = show ? values[ index ] || "" : "none";
6720		}
6721	}
6722
6723	return elements;
6724}
6725
6726jQuery.fn.extend({
6727	css: function( name, value ) {
6728		return jQuery.access( this, function( elem, name, value ) {
6729			var len, styles,
6730				map = {},
6731				i = 0;
6732
6733			if ( jQuery.isArray( name ) ) {
6734				styles = getStyles( elem );
6735				len = name.length;
6736
6737				for ( ; i < len; i++ ) {
6738					map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );
6739				}
6740
6741				return map;
6742			}
6743
6744			return value !== undefined ?
6745				jQuery.style( elem, name, value ) :
6746				jQuery.css( elem, name );
6747		}, name, value, arguments.length > 1 );
6748	},
6749	show: function() {
6750		return showHide( this, true );
6751	},
6752	hide: function() {
6753		return showHide( this );
6754	},
6755	toggle: function( state ) {
6756		var bool = typeof state === "boolean";
6757
6758		return this.each(function() {
6759			if ( bool ? state : isHidden( this ) ) {
6760				jQuery( this ).show();
6761			} else {
6762				jQuery( this ).hide();
6763			}
6764		});
6765	}
6766});
6767
6768jQuery.extend({
6769	// Add in style property hooks for overriding the default
6770	// behavior of getting and setting a style property
6771	cssHooks: {
6772		opacity: {
6773			get: function( elem, computed ) {
6774				if ( computed ) {
6775					// We should always get a number back from opacity
6776					var ret = curCSS( elem, "opacity" );
6777					return ret === "" ? "1" : ret;
6778				}
6779			}
6780		}
6781	},
6782
6783	// Exclude the following css properties to add px
6784	cssNumber: {
6785		"columnCount": true,
6786		"fillOpacity": true,
6787		"fontWeight": true,
6788		"lineHeight": true,
6789		"opacity": true,
6790		"orphans": true,
6791		"widows": true,
6792		"zIndex": true,
6793		"zoom": true
6794	},
6795
6796	// Add in properties whose names you wish to fix before
6797	// setting or getting the value
6798	cssProps: {
6799		// normalize float css property
6800		"float": jQuery.support.cssFloat ? "cssFloat" : "styleFloat"
6801	},
6802
6803	// Get and set the style property on a DOM Node
6804	style: function( elem, name, value, extra ) {
6805		// Don't set styles on text and comment nodes
6806		if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
6807			return;
6808		}
6809
6810		// Make sure that we're working with the right name
6811		var ret, type, hooks,
6812			origName = jQuery.camelCase( name ),
6813			style = elem.style;
6814
6815		name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( style, origName ) );
6816
6817		// gets hook for the prefixed version
6818		// followed by the unprefixed version
6819		hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
6820
6821		// Check if we're setting a value
6822		if ( value !== undefined ) {
6823			type = typeof value;
6824
6825			// convert relative number strings (+= or -=) to relative numbers. #7345
6826			if ( type === "string" && (ret = rrelNum.exec( value )) ) {
6827				value = ( ret[1] + 1 ) * ret[2] + parseFloat( jQuery.css( elem, name ) );
6828				// Fixes bug #9237
6829				type = "number";
6830			}
6831
6832			// Make sure that NaN and null values aren't set. See: #7116
6833			if ( value == null || type === "number" && isNaN( value ) ) {
6834				return;
6835			}
6836
6837			// If a number was passed in, add 'px' to the (except for certain CSS properties)
6838			if ( type === "number" && !jQuery.cssNumber[ origName ] ) {
6839				value += "px";
6840			}
6841
6842			// Fixes #8908, it can be done more correctly by specifing setters in cssHooks,
6843			// but it would mean to define eight (for every problematic property) identical functions
6844			if ( !jQuery.support.clearCloneStyle && value === "" && name.indexOf("background") === 0 ) {
6845				style[ name ] = "inherit";
6846			}
6847
6848			// If a hook was provided, use that value, otherwise just set the specified value
6849			if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) {
6850
6851				// Wrapped to prevent IE from throwing errors when 'invalid' values are provided
6852				// Fixes bug #5509
6853				try {
6854					style[ name ] = value;
6855				} catch(e) {}
6856			}
6857
6858		} else {
6859			// If a hook was provided get the non-computed value from there
6860			if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {
6861				return ret;
6862			}
6863
6864			// Otherwise just get the value from the style object
6865			return style[ name ];
6866		}
6867	},
6868
6869	css: function( elem, name, extra, styles ) {
6870		var num, val, hooks,
6871			origName = jQuery.camelCase( name );
6872
6873		// Make sure that we're working with the right name
6874		name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( elem.style, origName ) );
6875
6876		// gets hook for the prefixed version
6877		// followed by the unprefixed version
6878		hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
6879
6880		// If a hook was provided get the computed value from there
6881		if ( hooks && "get" in hooks ) {
6882			val = hooks.get( elem, true, extra );
6883		}
6884
6885		// Otherwise, if a way to get the computed value exists, use that
6886		if ( val === undefined ) {
6887			val = curCSS( elem, name, styles );
6888		}
6889
6890		//convert "normal" to computed value
6891		if ( val === "normal" && name in cssNormalTransform ) {
6892			val = cssNormalTransform[ name ];
6893		}
6894
6895		// Return, converting to number if forced or a qualifier was provided and val looks numeric
6896		if ( extra === "" || extra ) {
6897			num = parseFloat( val );
6898			return extra === true || jQuery.isNumeric( num ) ? num || 0 : val;
6899		}
6900		return val;
6901	},
6902
6903	// A method for quickly swapping in/out CSS properties to get correct calculations
6904	swap: function( elem, options, callback, args ) {
6905		var ret, name,
6906			old = {};
6907
6908		// Remember the old values, and insert the new ones
6909		for ( name in options ) {
6910			old[ name ] = elem.style[ name ];
6911			elem.style[ name ] = options[ name ];
6912		}
6913
6914		ret = callback.apply( elem, args || [] );
6915
6916		// Revert the old values
6917		for ( name in options ) {
6918			elem.style[ name ] = old[ name ];
6919		}
6920
6921		return ret;
6922	}
6923});
6924
6925// NOTE: we've included the "window" in window.getComputedStyle
6926// because jsdom on node.js will break without it.
6927if ( window.getComputedStyle ) {
6928	getStyles = function( elem ) {
6929		return window.getComputedStyle( elem, null );
6930	};
6931
6932	curCSS = function( elem, name, _computed ) {
6933		var width, minWidth, maxWidth,
6934			computed = _computed || getStyles( elem ),
6935
6936			// getPropertyValue is only needed for .css('filter') in IE9, see #12537
6937			ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined,
6938			style = elem.style;
6939
6940		if ( computed ) {
6941
6942			if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) {
6943				ret = jQuery.style( elem, name );
6944			}
6945
6946			// A tribute to the "awesome hack by Dean Edwards"
6947			// Chrome < 17 and Safari 5.0 uses "computed value" instead of "used value" for margin-right
6948			// Safari 5.1.7 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels
6949			// this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values
6950			if ( rnumnonpx.test( ret ) && rmargin.test( name ) ) {
6951
6952				// Remember the original values
6953				width = style.width;
6954				minWidth = style.minWidth;
6955				maxWidth = style.maxWidth;
6956
6957				// Put in the new values to get a computed value out
6958				style.minWidth = style.maxWidth = style.width = ret;
6959				ret = computed.width;
6960
6961				// Revert the changed values
6962				style.width = width;
6963				style.minWidth = minWidth;
6964				style.maxWidth = maxWidth;
6965			}
6966		}
6967
6968		return ret;
6969	};
6970} else if ( document.documentElement.currentStyle ) {
6971	getStyles = function( elem ) {
6972		return elem.currentStyle;
6973	};
6974
6975	curCSS = function( elem, name, _computed ) {
6976		var left, rs, rsLeft,
6977			computed = _computed || getStyles( elem ),
6978			ret = computed ? computed[ name ] : undefined,
6979			style = elem.style;
6980
6981		// Avoid setting ret to empty string here
6982		// so we don't default to auto
6983		if ( ret == null && style && style[ name ] ) {
6984			ret = style[ name ];
6985		}
6986
6987		// From the awesome hack by Dean Edwards
6988		// http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
6989
6990		// If we're not dealing with a regular pixel number
6991		// but a number that has a weird ending, we need to convert it to pixels
6992		// but not position css attributes, as those are proportional to the parent element instead
6993		// and we can't measure the parent instead because it might trigger a "stacking dolls" problem
6994		if ( rnumnonpx.test( ret ) && !rposition.test( name ) ) {
6995
6996			// Remember the original values
6997			left = style.left;
6998			rs = elem.runtimeStyle;
6999			rsLeft = rs && rs.left;
7000
7001			// Put in the new values to get a computed value out
7002			if ( rsLeft ) {
7003				rs.left = elem.currentStyle.left;
7004			}
7005			style.left = name === "fontSize" ? "1em" : ret;
7006			ret = style.pixelLeft + "px";
7007
7008			// Revert the changed values
7009			style.left = left;
7010			if ( rsLeft ) {
7011				rs.left = rsLeft;
7012			}
7013		}
7014
7015		return ret === "" ? "auto" : ret;
7016	};
7017}
7018
7019function setPositiveNumber( elem, value, subtract ) {
7020	var matches = rnumsplit.exec( value );
7021	return matches ?
7022		// Guard against undefined "subtract", e.g., when used as in cssHooks
7023		Math.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || "px" ) :
7024		value;
7025}
7026
7027function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
7028	var i = extra === ( isBorderBox ? "border" : "content" ) ?
7029		// If we already have the right measurement, avoid augmentation
7030		4 :
7031		// Otherwise initialize for horizontal or vertical properties
7032		name === "width" ? 1 : 0,
7033
7034		val = 0;
7035
7036	for ( ; i < 4; i += 2 ) {
7037		// both box models exclude margin, so add it if we want it
7038		if ( extra === "margin" ) {
7039			val += jQuery.css( elem, extra + cssExpand[ i ], true, styles );
7040		}
7041
7042		if ( isBorderBox ) {
7043			// border-box includes padding, so remove it if we want content
7044			if ( extra === "content" ) {
7045				val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
7046			}
7047
7048			// at this point, extra isn't border nor margin, so remove border
7049			if ( extra !== "margin" ) {
7050				val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
7051			}
7052		} else {
7053			// at this point, extra isn't content, so add padding
7054			val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
7055
7056			// at this point, extra isn't content nor padding, so add border
7057			if ( extra !== "padding" ) {
7058				val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
7059			}
7060		}
7061	}
7062
7063	return val;
7064}
7065
7066function getWidthOrHeight( elem, name, extra ) {
7067
7068	// Start with offset property, which is equivalent to the border-box value
7069	var valueIsBorderBox = true,
7070		val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
7071		styles = getStyles( elem ),
7072		isBorderBox = jQuery.support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
7073
7074	// some non-html elements return undefined for offsetWidth, so check for null/undefined
7075	// svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285
7076	// MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668
7077	if ( val <= 0 || val == null ) {
7078		// Fall back to computed then uncomputed css if necessary
7079		val = curCSS( elem, name, styles );
7080		if ( val < 0 || val == null ) {
7081			val = elem.style[ name ];
7082		}
7083
7084		// Computed unit is not pixels. Stop here and return.
7085		if ( rnumnonpx.test(val) ) {
7086			return val;
7087		}
7088
7089		// we need the check for style in case a browser which returns unreliable values
7090		// for getComputedStyle silently falls back to the reliable elem.style
7091		valueIsBorderBox = isBorderBox && ( jQuery.support.boxSizingReliable || val === elem.style[ name ] );
7092
7093		// Normalize "", auto, and prepare for extra
7094		val = parseFloat( val ) || 0;
7095	}
7096
7097	// use the active box-sizing model to add/subtract irrelevant styles
7098	return ( val +
7099		augmentWidthOrHeight(
7100			elem,
7101			name,
7102			extra || ( isBorderBox ? "border" : "content" ),
7103			valueIsBorderBox,
7104			styles
7105		)
7106	) + "px";
7107}
7108
7109// Try to determine the default display value of an element
7110function css_defaultDisplay( nodeName ) {
7111	var doc = document,
7112		display = elemdisplay[ nodeName ];
7113
7114	if ( !display ) {
7115		display = actualDisplay( nodeName, doc );
7116
7117		// If the simple way fails, read from inside an iframe
7118		if ( display === "none" || !display ) {
7119			// Use the already-created iframe if possible
7120			iframe = ( iframe ||
7121				jQuery("<iframe frameborder='0' width='0' height='0'/>")
7122				.css( "cssText", "display:block !important" )
7123			).appendTo( doc.documentElement );
7124
7125			// Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse
7126			doc = ( iframe[0].contentWindow || iframe[0].contentDocument ).document;
7127			doc.write("<!doctype html><html><body>");
7128			doc.close();
7129
7130			display = actualDisplay( nodeName, doc );
7131			iframe.detach();
7132		}
7133
7134		// Store the correct default display
7135		elemdisplay[ nodeName ] = display;
7136	}
7137
7138	return display;
7139}
7140
7141// Called ONLY from within css_defaultDisplay
7142function actualDisplay( name, doc ) {
7143	var elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ),
7144		display = jQuery.css( elem[0], "display" );
7145	elem.remove();
7146	return display;
7147}
7148
7149jQuery.each([ "height", "width" ], function( i, name ) {
7150	jQuery.cssHooks[ name ] = {
7151		get: function( elem, computed, extra ) {
7152			if ( computed ) {
7153				// certain elements can have dimension info if we invisibly show them
7154				// however, it must have a current display style that would benefit from this
7155				return elem.offsetWidth === 0 && rdisplayswap.test( jQuery.css( elem, "display" ) ) ?
7156					jQuery.swap( elem, cssShow, function() {
7157						return getWidthOrHeight( elem, name, extra );
7158					}) :
7159					getWidthOrHeight( elem, name, extra );
7160			}
7161		},
7162
7163		set: function( elem, value, extra ) {
7164			var styles = extra && getStyles( elem );
7165			return setPositiveNumber( elem, value, extra ?
7166				augmentWidthOrHeight(
7167					elem,
7168					name,
7169					extra,
7170					jQuery.support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
7171					styles
7172				) : 0
7173			);
7174		}
7175	};
7176});
7177
7178if ( !jQuery.support.opacity ) {
7179	jQuery.cssHooks.opacity = {
7180		get: function( elem, computed ) {
7181			// IE uses filters for opacity
7182			return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
7183				( 0.01 * parseFloat( RegExp.$1 ) ) + "" :
7184				computed ? "1" : "";
7185		},
7186
7187		set: function( elem, value ) {
7188			var style = elem.style,
7189				currentStyle = elem.currentStyle,
7190				opacity = jQuery.isNumeric( value ) ? "alpha(opacity=" + value * 100 + ")" : "",
7191				filter = currentStyle && currentStyle.filter || style.filter || "";
7192
7193			// IE has trouble with opacity if it does not have layout
7194			// Force it by setting the zoom level
7195			style.zoom = 1;
7196
7197			// if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #6652
7198			// if value === "", then remove inline opacity #12685
7199			if ( ( value >= 1 || value === "" ) &&
7200					jQuery.trim( filter.replace( ralpha, "" ) ) === "" &&
7201					style.removeAttribute ) {
7202
7203				// Setting style.filter to null, "" & " " still leave "filter:" in the cssText
7204				// if "filter:" is present at all, clearType is disabled, we want to avoid this
7205				// style.removeAttribute is IE Only, but so apparently is this code path...
7206				style.removeAttribute( "filter" );
7207
7208				// if there is no filter style applied in a css rule or unset inline opacity, we are done
7209				if ( value === "" || currentStyle && !currentStyle.filter ) {
7210					return;
7211				}
7212			}
7213
7214			// otherwise, set new filter values
7215			style.filter = ralpha.test( filter ) ?
7216				filter.replace( ralpha, opacity ) :
7217				filter + " " + opacity;
7218		}
7219	};
7220}
7221
7222// These hooks cannot be added until DOM ready because the support test
7223// for it is not run until after DOM ready
7224jQuery(function() {
7225	if ( !jQuery.support.reliableMarginRight ) {
7226		jQuery.cssHooks.marginRight = {
7227			get: function( elem, computed ) {
7228				if ( computed ) {
7229					// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
7230					// Work around by temporarily setting element display to inline-block
7231					return jQuery.swap( elem, { "display": "inline-block" },
7232						curCSS, [ elem, "marginRight" ] );
7233				}
7234			}
7235		};
7236	}
7237
7238	// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
7239	// getComputedStyle returns percent when specified for top/left/bottom/right
7240	// rather than make the css module depend on the offset module, we just check for it here
7241	if ( !jQuery.support.pixelPosition && jQuery.fn.position ) {
7242		jQuery.each( [ "top", "left" ], function( i, prop ) {
7243			jQuery.cssHooks[ prop ] = {
7244				get: function( elem, computed ) {
7245					if ( computed ) {
7246						computed = curCSS( elem, prop );
7247						// if curCSS returns percentage, fallback to offset
7248						return rnumnonpx.test( computed ) ?
7249							jQuery( elem ).position()[ prop ] + "px" :
7250							computed;
7251					}
7252				}
7253			};
7254		});
7255	}
7256
7257});
7258
7259if ( jQuery.expr && jQuery.expr.filters ) {
7260	jQuery.expr.filters.hidden = function( elem ) {
7261		// Support: Opera <= 12.12
7262		// Opera reports offsetWidths and offsetHeights less than zero on some elements
7263		return elem.offsetWidth <= 0 && elem.offsetHeight <= 0 ||
7264			(!jQuery.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || jQuery.css( elem, "display" )) === "none");
7265	};
7266
7267	jQuery.expr.filters.visible = function( elem ) {
7268		return !jQuery.expr.filters.hidden( elem );
7269	};
7270}
7271
7272// These hooks are used by animate to expand properties
7273jQuery.each({
7274	margin: "",
7275	padding: "",
7276	border: "Width"
7277}, function( prefix, suffix ) {
7278	jQuery.cssHooks[ prefix + suffix ] = {
7279		expand: function( value ) {
7280			var i = 0,
7281				expanded = {},
7282
7283				// assumes a single number if not a string
7284				parts = typeof value === "string" ? value.split(" ") : [ value ];
7285
7286			for ( ; i < 4; i++ ) {
7287				expanded[ prefix + cssExpand[ i ] + suffix ] =
7288					parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
7289			}
7290
7291			return expanded;
7292		}
7293	};
7294
7295	if ( !rmargin.test( prefix ) ) {
7296		jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;
7297	}
7298});
7299var r20 = /%20/g,
7300	rbracket = /\[\]$/,
7301	rCRLF = /\r?\n/g,
7302	rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
7303	rsubmittable = /^(?:input|select|textarea|keygen)/i;
7304
7305jQuery.fn.extend({
7306	serialize: function() {
7307		return jQuery.param( this.serializeArray() );
7308	},
7309	serializeArray: function() {
7310		return this.map(function(){
7311			// Can add propHook for "elements" to filter or add form elements
7312			var elements = jQuery.prop( this, "elements" );
7313			return elements ? jQuery.makeArray( elements ) : this;
7314		})
7315		.filter(function(){
7316			var type = this.type;
7317			// Use .is(":disabled") so that fieldset[disabled] works
7318			return this.name && !jQuery( this ).is( ":disabled" ) &&
7319				rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
7320				( this.checked || !manipulation_rcheckableType.test( type ) );
7321		})
7322		.map(function( i, elem ){
7323			var val = jQuery( this ).val();
7324
7325			return val == null ?
7326				null :
7327				jQuery.isArray( val ) ?
7328					jQuery.map( val, function( val ){
7329						return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
7330					}) :
7331					{ name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
7332		}).get();
7333	}
7334});
7335
7336//Serialize an array of form elements or a set of
7337//key/values into a query string
7338jQuery.param = function( a, traditional ) {
7339	var prefix,
7340		s = [],
7341		add = function( key, value ) {
7342			// If value is a function, invoke it and return its value
7343			value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value );
7344			s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
7345		};
7346
7347	// Set traditional to true for jQuery <= 1.3.2 behavior.
7348	if ( traditional === undefined ) {
7349		traditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional;
7350	}
7351
7352	// If an array was passed in, assume that it is an array of form elements.
7353	if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
7354		// Serialize the form elements
7355		jQuery.each( a, function() {
7356			add( this.name, this.value );
7357		});
7358
7359	} else {
7360		// If traditional, encode the "old" way (the way 1.3.2 or older
7361		// did it), otherwise encode params recursively.
7362		for ( prefix in a ) {
7363			buildParams( prefix, a[ prefix ], traditional, add );
7364		}
7365	}
7366
7367	// Return the resulting serialization
7368	return s.join( "&" ).replace( r20, "+" );
7369};
7370
7371function buildParams( prefix, obj, traditional, add ) {
7372	var name;
7373
7374	if ( jQuery.isArray( obj ) ) {
7375		// Serialize array item.
7376		jQuery.each( obj, function( i, v ) {
7377			if ( traditional || rbracket.test( prefix ) ) {
7378				// Treat each array item as a scalar.
7379				add( prefix, v );
7380
7381			} else {
7382				// Item is non-scalar (array or object), encode its numeric index.
7383				buildParams( prefix + "[" + ( typeof v === "object" ? i : "" ) + "]", v, traditional, add );
7384			}
7385		});
7386
7387	} else if ( !traditional && jQuery.type( obj ) === "object" ) {
7388		// Serialize object item.
7389		for ( name in obj ) {
7390			buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
7391		}
7392
7393	} else {
7394		// Serialize scalar item.
7395		add( prefix, obj );
7396	}
7397}
7398jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
7399	"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
7400	"change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) {
7401
7402	// Handle event binding
7403	jQuery.fn[ name ] = function( data, fn ) {
7404		return arguments.length > 0 ?
7405			this.on( name, null, data, fn ) :
7406			this.trigger( name );
7407	};
7408});
7409
7410jQuery.fn.hover = function( fnOver, fnOut ) {
7411	return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
7412};
7413var
7414	// Document location
7415	ajaxLocParts,
7416	ajaxLocation,
7417	ajax_nonce = jQuery.now(),
7418
7419	ajax_rquery = /\?/,
7420	rhash = /#.*$/,
7421	rts = /([?&])_=[^&]*/,
7422	rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL
vendor: 4,425 bytes, lines 7423-7566
7423	// #7653, #8125, #8152: local protocol detection
7424	rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
7425	rnoContent = /^(?:GET|HEAD)$/,
7426	rprotocol = /^\/\//,
7427	rurl = /^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,
7428
7429	// Keep a copy of the old load method
7430	_load = jQuery.fn.load,
7431
7432	/* Prefilters
7433	 * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
7434	 * 2) These are called:
7435	 *    - BEFORE asking for a transport
7436	 *    - AFTER param serialization (s.data is a string if s.processData is true)
7437	 * 3) key is the dataType
7438	 * 4) the catchall symbol "*" can be used
7439	 * 5) execution will start with transport dataType and THEN continue down to "*" if needed
7440	 */
7441	prefilters = {},
7442
7443	/* Transports bindings
7444	 * 1) key is the dataType
7445	 * 2) the catchall symbol "*" can be used
7446	 * 3) selection will start with transport dataType and THEN go to "*" if needed
7447	 */
7448	transports = {},
7449
7450	// Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
7451	allTypes = "*/".concat("*");
7452
7453// #8138, IE may throw an exception when accessing
7454// a field from window.location if document.domain has been set
7455try {
7456	ajaxLocation = location.href;
7457} catch( e ) {
7458	// Use the href attribute of an A element
7459	// since IE will modify it given document.location
7460	ajaxLocation = document.createElement( "a" );
7461	ajaxLocation.href = "";
7462	ajaxLocation = ajaxLocation.href;
7463}
7464
7465// Segment location into parts
7466ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];
7467
7468// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
7469function addToPrefiltersOrTransports( structure ) {
7470
7471	// dataTypeExpression is optional and defaults to "*"
7472	return function( dataTypeExpression, func ) {
7473
7474		if ( typeof dataTypeExpression !== "string" ) {
7475			func = dataTypeExpression;
7476			dataTypeExpression = "*";
7477		}
7478
7479		var dataType,
7480			i = 0,
7481			dataTypes = dataTypeExpression.toLowerCase().match( core_rnotwhite ) || [];
7482
7483		if ( jQuery.isFunction( func ) ) {
7484			// For each dataType in the dataTypeExpression
7485			while ( (dataType = dataTypes[i++]) ) {
7486				// Prepend if requested
7487				if ( dataType[0] === "+" ) {
7488					dataType = dataType.slice( 1 ) || "*";
7489					(structure[ dataType ] = structure[ dataType ] || []).unshift( func );
7490
7491				// Otherwise append
7492				} else {
7493					(structure[ dataType ] = structure[ dataType ] || []).push( func );
7494				}
7495			}
7496		}
7497	};
7498}
7499
7500// Base inspection function for prefilters and transports
7501function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {
7502
7503	var inspected = {},
7504		seekingTransport = ( structure === transports );
7505
7506	function inspect( dataType ) {
7507		var selected;
7508		inspected[ dataType ] = true;
7509		jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {
7510			var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );
7511			if( typeof dataTypeOrTransport === "string" && !seekingTransport && !inspected[ dataTypeOrTransport ] ) {
7512				options.dataTypes.unshift( dataTypeOrTransport );
7513				inspect( dataTypeOrTransport );
7514				return false;
7515			} else if ( seekingTransport ) {
7516				return !( selected = dataTypeOrTransport );
7517			}
7518		});
7519		return selected;
7520	}
7521
7522	return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" );
7523}
7524
7525// A special extend for ajax options
7526// that takes "flat" options (not to be deep extended)
7527// Fixes #9887
7528function ajaxExtend( target, src ) {
7529	var deep, key,
7530		flatOptions = jQuery.ajaxSettings.flatOptions || {};
7531
7532	for ( key in src ) {
7533		if ( src[ key ] !== undefined ) {
7534			( flatOptions[ key ] ? target : ( deep || (deep = {}) ) )[ key ] = src[ key ];
7535		}
7536	}
7537	if ( deep ) {
7538		jQuery.extend( true, target, deep );
7539	}
7540
7541	return target;
7542}
7543
7544jQuery.fn.load = function( url, params, callback ) {
7545	if ( typeof url !== "string" && _load ) {
7546		return _load.apply( this, arguments );
7547	}
7548
7549	var selector, response, type,
7550		self = this,
7551		off = url.indexOf(" ");
7552
7553	if ( off >= 0 ) {
7554		selector = url.slice( off, url.length );
7555		url = url.slice( 0, off );
7556	}
7557
7558	// If it's a function
7559	if ( jQuery.isFunction( params ) ) {
7560
7561		// We assume that it's the callback
7562		callback = params;
7563		params = undefined;
7564
7565	// Otherwise, build a param string
7566	} else if ( params && typeof params === "object" ) {
vendor: 4,219 bytes, lines 7567-7744
7567		type = "POST";
7568	}
7569
7570	// If we have elements to modify, make the request
7571	if ( self.length > 0 ) {
7572		jQuery.ajax({
7573			url: url,
7574
7575			// if "type" variable is undefined, then "GET" method will be used
7576			type: type,
7577			dataType: "html",
7578			data: params
7579		}).done(function( responseText ) {
7580
7581			// Save response for use in complete callback
7582			response = arguments;
7583
7584			self.html( selector ?
7585
7586				// If a selector was specified, locate the right elements in a dummy div
7587				// Exclude scripts to avoid IE 'Permission Denied' errors
7588				jQuery("<div>").append( jQuery.parseHTML( responseText ) ).find( selector ) :
7589
7590				// Otherwise use the full result
7591				responseText );
7592
7593		}).complete( callback && function( jqXHR, status ) {
7594			self.each( callback, response || [ jqXHR.responseText, status, jqXHR ] );
7595		});
7596	}
7597
7598	return this;
7599};
7600
7601// Attach a bunch of functions for handling common AJAX events
7602jQuery.each( [ "ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend" ], function( i, type ){
7603	jQuery.fn[ type ] = function( fn ){
7604		return this.on( type, fn );
7605	};
7606});
7607
7608jQuery.each( [ "get", "post" ], function( i, method ) {
7609	jQuery[ method ] = function( url, data, callback, type ) {
7610		// shift arguments if data argument was omitted
7611		if ( jQuery.isFunction( data ) ) {
7612			type = type || callback;
7613			callback = data;
7614			data = undefined;
7615		}
7616
7617		return jQuery.ajax({
7618			url: url,
7619			type: method,
7620			dataType: type,
7621			data: data,
7622			success: callback
7623		});
7624	};
7625});
7626
7627jQuery.extend({
7628
7629	// Counter for holding the number of active queries
7630	active: 0,
7631
7632	// Last-Modified header cache for next request
7633	lastModified: {},
7634	etag: {},
7635
7636	ajaxSettings: {
7637		url: ajaxLocation,
7638		type: "GET",
7639		isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),
7640		global: true,
7641		processData: true,
7642		async: true,
7643		contentType: "application/x-www-form-urlencoded; charset=UTF-8",
7644		/*
7645		timeout: 0,
7646		data: null,
7647		dataType: null,
7648		username: null,
7649		password: null,
7650		cache: null,
7651		throws: false,
7652		traditional: false,
7653		headers: {},
7654		*/
7655
7656		accepts: {
7657			"*": allTypes,
7658			text: "text/plain",
7659			html: "text/html",
7660			xml: "application/xml, text/xml",
7661			json: "application/json, text/javascript"
7662		},
7663
7664		contents: {
7665			xml: /xml/,
7666			html: /html/,
7667			json: /json/
7668		},
7669
7670		responseFields: {
7671			xml: "responseXML",
7672			text: "responseText"
7673		},
7674
7675		// Data converters
7676		// Keys separate source (or catchall "*") and destination types with a single space
7677		converters: {
7678
7679			// Convert anything to text
7680			"* text": window.String,
7681
7682			// Text to html (true = no transformation)
7683			"text html": true,
7684
7685			// Evaluate text as a json expression
7686			"text json": jQuery.parseJSON,
7687
7688			// Parse text as xml
7689			"text xml": jQuery.parseXML
7690		},
7691
7692		// For options that shouldn't be deep extended:
7693		// you can add your own custom options here if
7694		// and when you create one that shouldn't be
7695		// deep extended (see ajaxExtend)
7696		flatOptions: {
7697			url: true,
7698			context: true
7699		}
7700	},
7701
7702	// Creates a full fledged settings object into target
7703	// with both ajaxSettings and settings fields.
7704	// If target is omitted, writes into ajaxSettings.
7705	ajaxSetup: function( target, settings ) {
7706		return settings ?
7707
7708			// Building a settings object
7709			ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :
7710
7711			// Extending ajaxSettings
7712			ajaxExtend( jQuery.ajaxSettings, target );
7713	},
7714
7715	ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
7716	ajaxTransport: addToPrefiltersOrTransports( transports ),
7717
7718	// Main method
7719	ajax: function( url, options ) {
7720
7721		// If url is an object, simulate pre-1.5 signature
7722		if ( typeof url === "object" ) {
7723			options = url;
7724			url = undefined;
7725		}
7726
7727		// Force options to be an object
7728		options = options || {};
7729
7730		var // Cross-domain detection vars
7731			parts,
7732			// Loop variable
7733			i,
7734			// URL without anti-cache param
7735			cacheURL,
7736			// Response headers as string
7737			responseHeadersString,
7738			// timeout handle
7739			timeoutTimer,
7740
7741			// To know if global events are to be dispatched
7742			fireGlobals,
7743
7744			transport,
vendor: 4,855 bytes, lines 7745-7899
7745			// Response headers
7746			responseHeaders,
7747			// Create the final options object
7748			s = jQuery.ajaxSetup( {}, options ),
7749			// Callbacks context
7750			callbackContext = s.context || s,
7751			// Context for global events is callbackContext if it is a DOM node or jQuery collection
7752			globalEventContext = s.context && ( callbackContext.nodeType || callbackContext.jquery ) ?
7753				jQuery( callbackContext ) :
7754				jQuery.event,
7755			// Deferreds
7756			deferred = jQuery.Deferred(),
7757			completeDeferred = jQuery.Callbacks("once memory"),
7758			// Status-dependent callbacks
7759			statusCode = s.statusCode || {},
7760			// Headers (they are sent all at once)
7761			requestHeaders = {},
7762			requestHeadersNames = {},
7763			// The jqXHR state
7764			state = 0,
7765			// Default abort message
7766			strAbort = "canceled",
7767			// Fake xhr
7768			jqXHR = {
7769				readyState: 0,
7770
7771				// Builds headers hashtable if needed
7772				getResponseHeader: function( key ) {
7773					var match;
7774					if ( state === 2 ) {
7775						if ( !responseHeaders ) {
7776							responseHeaders = {};
7777							while ( (match = rheaders.exec( responseHeadersString )) ) {
7778								responseHeaders[ match[1].toLowerCase() ] = match[ 2 ];
7779							}
7780						}
7781						match = responseHeaders[ key.toLowerCase() ];
7782					}
7783					return match == null ? null : match;
7784				},
7785
7786				// Raw string
7787				getAllResponseHeaders: function() {
7788					return state === 2 ? responseHeadersString : null;
7789				},
7790
7791				// Caches the header
7792				setRequestHeader: function( name, value ) {
7793					var lname = name.toLowerCase();
7794					if ( !state ) {
7795						name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
7796						requestHeaders[ name ] = value;
7797					}
7798					return this;
7799				},
7800
7801				// Overrides response content-type header
7802				overrideMimeType: function( type ) {
7803					if ( !state ) {
7804						s.mimeType = type;
7805					}
7806					return this;
7807				},
7808
7809				// Status-dependent callbacks
7810				statusCode: function( map ) {
7811					var code;
7812					if ( map ) {
7813						if ( state < 2 ) {
7814							for ( code in map ) {
7815								// Lazy-add the new callback in a way that preserves old ones
7816								statusCode[ code ] = [ statusCode[ code ], map[ code ] ];
7817							}
7818						} else {
7819							// Execute the appropriate callbacks
7820							jqXHR.always( map[ jqXHR.status ] );
7821						}
7822					}
7823					return this;
7824				},
7825
7826				// Cancel the request
7827				abort: function( statusText ) {
7828					var finalText = statusText || strAbort;
7829					if ( transport ) {
7830						transport.abort( finalText );
7831					}
7832					done( 0, finalText );
7833					return this;
7834				}
7835			};
7836
7837		// Attach deferreds
7838		deferred.promise( jqXHR ).complete = completeDeferred.add;
7839		jqXHR.success = jqXHR.done;
7840		jqXHR.error = jqXHR.fail;
7841
7842		// Remove hash character (#7531: and string promotion)
7843		// Add protocol if not provided (#5866: IE7 issue with protocol-less urls)
7844		// Handle falsy url in the settings object (#10093: consistency with old signature)
7845		// We also use the url parameter if available
7846		s.url = ( ( url || s.url || ajaxLocation ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" );
7847
7848		// Alias method option to type as per ticket #12004
7849		s.type = options.method || options.type || s.method || s.type;
7850
7851		// Extract dataTypes list
7852		s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().match( core_rnotwhite ) || [""];
7853
7854		// A cross-domain request is in order when we have a protocol:host:port mismatch
7855		if ( s.crossDomain == null ) {
7856			parts = rurl.exec( s.url.toLowerCase() );
7857			s.crossDomain = !!( parts &&
7858				( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] ||
7859					( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) !=
7860						( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? 80 : 443 ) ) )
7861			);
7862		}
7863
7864		// Convert data if not already a string
7865		if ( s.data && s.processData && typeof s.data !== "string" ) {
7866			s.data = jQuery.param( s.data, s.traditional );
7867		}
7868
7869		// Apply prefilters
7870		inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
7871
7872		// If request was aborted inside a prefilter, stop there
7873		if ( state === 2 ) {
7874			return jqXHR;
7875		}
7876
7877		// We can fire global events as of now if asked to
7878		fireGlobals = s.global;
7879
7880		// Watch for a new set of requests
7881		if ( fireGlobals && jQuery.active++ === 0 ) {
7882			jQuery.event.trigger("ajaxStart");
7883		}
7884
7885		// Uppercase the type
7886		s.type = s.type.toUpperCase();
7887
7888		// Determine if request has content
7889		s.hasContent = !rnoContent.test( s.type );
7890
7891		// Save the URL in case we're toying with the If-Modified-Since
7892		// and/or If-None-Match header later on
7893		cacheURL = s.url;
7894
7895		// More options handling for requests with no content
7896		if ( !s.hasContent ) {
7897
7898			// If data is available, append data to url
7899			if ( s.data ) {
vendor: 7,111 bytes, lines 7900-8154
7900				cacheURL = ( s.url += ( ajax_rquery.test( cacheURL ) ? "&" : "?" ) + s.data );
7901				// #9682: remove data so that it's not used in an eventual retry
7902				delete s.data;
7903			}
7904
7905			// Add anti-cache in url if needed
7906			if ( s.cache === false ) {
7907				s.url = rts.test( cacheURL ) ?
7908
7909					// If there is already a '_' parameter, set its value
7910					cacheURL.replace( rts, "$1_=" + ajax_nonce++ ) :
7911
7912					// Otherwise add one to the end
7913					cacheURL + ( ajax_rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ajax_nonce++;
7914			}
7915		}
7916
7917		// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
7918		if ( s.ifModified ) {
7919			if ( jQuery.lastModified[ cacheURL ] ) {
7920				jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] );
7921			}
7922			if ( jQuery.etag[ cacheURL ] ) {
7923				jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] );
7924			}
7925		}
7926
7927		// Set the correct header, if data is being sent
7928		if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
7929			jqXHR.setRequestHeader( "Content-Type", s.contentType );
7930		}
7931
7932		// Set the Accepts header for the server, depending on the dataType
7933		jqXHR.setRequestHeader(
7934			"Accept",
7935			s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?
7936				s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
7937				s.accepts[ "*" ]
7938		);
7939
7940		// Check for headers option
7941		for ( i in s.headers ) {
7942			jqXHR.setRequestHeader( i, s.headers[ i ] );
7943		}
7944
7945		// Allow custom headers/mimetypes and early abort
7946		if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
7947			// Abort if not done already and return
7948			return jqXHR.abort();
7949		}
7950
7951		// aborting is no longer a cancellation
7952		strAbort = "abort";
7953
7954		// Install callbacks on deferreds
7955		for ( i in { success: 1, error: 1, complete: 1 } ) {
7956			jqXHR[ i ]( s[ i ] );
7957		}
7958
7959		// Get transport
7960		transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
7961
7962		// If no transport, we auto-abort
7963		if ( !transport ) {
7964			done( -1, "No Transport" );
7965		} else {
7966			jqXHR.readyState = 1;
7967
7968			// Send global event
7969			if ( fireGlobals ) {
7970				globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
7971			}
7972			// Timeout
7973			if ( s.async && s.timeout > 0 ) {
7974				timeoutTimer = setTimeout(function() {
7975					jqXHR.abort("timeout");
7976				}, s.timeout );
7977			}
7978
7979			try {
7980				state = 1;
7981				transport.send( requestHeaders, done );
7982			} catch ( e ) {
7983				// Propagate exception as error if not done
7984				if ( state < 2 ) {
7985					done( -1, e );
7986				// Simply rethrow otherwise
7987				} else {
7988					throw e;
7989				}
7990			}
7991		}
7992
7993		// Callback for when everything is done
7994		function done( status, nativeStatusText, responses, headers ) {
7995			var isSuccess, success, error, response, modified,
7996				statusText = nativeStatusText;
7997
7998			// Called once
7999			if ( state === 2 ) {
8000				return;
8001			}
8002
8003			// State is "done" now
8004			state = 2;
8005
8006			// Clear timeout if it exists
8007			if ( timeoutTimer ) {
8008				clearTimeout( timeoutTimer );
8009			}
8010
8011			// Dereference transport for early garbage collection
8012			// (no matter how long the jqXHR object will be used)
8013			transport = undefined;
8014
8015			// Cache response headers
8016			responseHeadersString = headers || "";
8017
8018			// Set readyState
8019			jqXHR.readyState = status > 0 ? 4 : 0;
8020
8021			// Get response data
8022			if ( responses ) {
8023				response = ajaxHandleResponses( s, jqXHR, responses );
8024			}
8025
8026			// If successful, handle type chaining
8027			if ( status >= 200 && status < 300 || status === 304 ) {
8028
8029				// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
8030				if ( s.ifModified ) {
8031					modified = jqXHR.getResponseHeader("Last-Modified");
8032					if ( modified ) {
8033						jQuery.lastModified[ cacheURL ] = modified;
8034					}
8035					modified = jqXHR.getResponseHeader("etag");
8036					if ( modified ) {
8037						jQuery.etag[ cacheURL ] = modified;
8038					}
8039				}
8040
8041				// if no content
8042				if ( status === 204 ) {
8043					isSuccess = true;
8044					statusText = "nocontent";
8045
8046				// if not modified
8047				} else if ( status === 304 ) {
8048					isSuccess = true;
8049					statusText = "notmodified";
8050
8051				// If we have data, let's convert it
8052				} else {
8053					isSuccess = ajaxConvert( s, response );
8054					statusText = isSuccess.state;
8055					success = isSuccess.data;
8056					error = isSuccess.error;
8057					isSuccess = !error;
8058				}
8059			} else {
8060				// We extract error from statusText
8061				// then normalize statusText and status for non-aborts
8062				error = statusText;
8063				if ( status || !statusText ) {
8064					statusText = "error";
8065					if ( status < 0 ) {
8066						status = 0;
8067					}
8068				}
8069			}
8070
8071			// Set data for the fake xhr object
8072			jqXHR.status = status;
8073			jqXHR.statusText = ( nativeStatusText || statusText ) + "";
8074
8075			// Success/Error
8076			if ( isSuccess ) {
8077				deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
8078			} else {
8079				deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
8080			}
8081
8082			// Status-dependent callbacks
8083			jqXHR.statusCode( statusCode );
8084			statusCode = undefined;
8085
8086			if ( fireGlobals ) {
8087				globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError",
8088					[ jqXHR, s, isSuccess ? success : error ] );
8089			}
8090
8091			// Complete
8092			completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
8093
8094			if ( fireGlobals ) {
8095				globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
8096				// Handle the global AJAX counter
8097				if ( !( --jQuery.active ) ) {
8098					jQuery.event.trigger("ajaxStop");
8099				}
8100			}
8101		}
8102
8103		return jqXHR;
8104	},
8105
8106	getScript: function( url, callback ) {
8107		return jQuery.get( url, undefined, callback, "script" );
8108	},
8109
8110	getJSON: function( url, data, callback ) {
8111		return jQuery.get( url, data, callback, "json" );
8112	}
8113});
8114
8115/* Handles responses to an ajax request:
8116 * - sets all responseXXX fields accordingly
8117 * - finds the right dataType (mediates between content-type and expected dataType)
8118 * - returns the corresponding response
8119 */
8120function ajaxHandleResponses( s, jqXHR, responses ) {
8121	var firstDataType, ct, finalDataType, type,
8122		contents = s.contents,
8123		dataTypes = s.dataTypes,
8124		responseFields = s.responseFields;
8125
8126	// Fill responseXXX fields
8127	for ( type in responseFields ) {
8128		if ( type in responses ) {
8129			jqXHR[ responseFields[type] ] = responses[ type ];
8130		}
8131	}
8132
8133	// Remove auto dataType and get content-type in the process
8134	while( dataTypes[ 0 ] === "*" ) {
8135		dataTypes.shift();
8136		if ( ct === undefined ) {
8137			ct = s.mimeType || jqXHR.getResponseHeader("Content-Type");
8138		}
8139	}
8140
8141	// Check if we're dealing with a known content-type
8142	if ( ct ) {
8143		for ( type in contents ) {
8144			if ( contents[ type ] && contents[ type ].test( ct ) ) {
8145				dataTypes.unshift( type );
8146				break;
8147			}
8148		}
8149	}
8150
8151	// Check to see if we have a response for the expected dataType
8152	if ( dataTypes[ 0 ] in responses ) {
8153		finalDataType = dataTypes[ 0 ];
8154	} else {
vendor: 6,347 bytes, lines 8155-8387
8155		// Try convertible dataTypes
8156		for ( type in responses ) {
8157			if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) {
8158				finalDataType = type;
8159				break;
8160			}
8161			if ( !firstDataType ) {
8162				firstDataType = type;
8163			}
8164		}
8165		// Or just use first one
8166		finalDataType = finalDataType || firstDataType;
8167	}
8168
8169	// If we found a dataType
8170	// We add the dataType to the list if needed
8171	// and return the corresponding response
8172	if ( finalDataType ) {
8173		if ( finalDataType !== dataTypes[ 0 ] ) {
8174			dataTypes.unshift( finalDataType );
8175		}
8176		return responses[ finalDataType ];
8177	}
8178}
8179
8180// Chain conversions given the request and the original response
8181function ajaxConvert( s, response ) {
8182	var conv2, current, conv, tmp,
8183		converters = {},
8184		i = 0,
8185		// Work with a copy of dataTypes in case we need to modify it for conversion
8186		dataTypes = s.dataTypes.slice(),
8187		prev = dataTypes[ 0 ];
8188
8189	// Apply the dataFilter if provided
8190	if ( s.dataFilter ) {
8191		response = s.dataFilter( response, s.dataType );
8192	}
8193
8194	// Create converters map with lowercased keys
8195	if ( dataTypes[ 1 ] ) {
8196		for ( conv in s.converters ) {
8197			converters[ conv.toLowerCase() ] = s.converters[ conv ];
8198		}
8199	}
8200
8201	// Convert to each sequential dataType, tolerating list modification
8202	for ( ; (current = dataTypes[++i]); ) {
8203
8204		// There's only work to do if current dataType is non-auto
8205		if ( current !== "*" ) {
8206
8207			// Convert response if prev dataType is non-auto and differs from current
8208			if ( prev !== "*" && prev !== current ) {
8209
8210				// Seek a direct converter
8211				conv = converters[ prev + " " + current ] || converters[ "* " + current ];
8212
8213				// If none found, seek a pair
8214				if ( !conv ) {
8215					for ( conv2 in converters ) {
8216
8217						// If conv2 outputs current
8218						tmp = conv2.split(" ");
8219						if ( tmp[ 1 ] === current ) {
8220
8221							// If prev can be converted to accepted input
8222							conv = converters[ prev + " " + tmp[ 0 ] ] ||
8223								converters[ "* " + tmp[ 0 ] ];
8224							if ( conv ) {
8225								// Condense equivalence converters
8226								if ( conv === true ) {
8227									conv = converters[ conv2 ];
8228
8229								// Otherwise, insert the intermediate dataType
8230								} else if ( converters[ conv2 ] !== true ) {
8231									current = tmp[ 0 ];
8232									dataTypes.splice( i--, 0, current );
8233								}
8234
8235								break;
8236							}
8237						}
8238					}
8239				}
8240
8241				// Apply converter (if not an equivalence)
8242				if ( conv !== true ) {
8243
8244					// Unless errors are allowed to bubble, catch and return them
8245					if ( conv && s["throws"] ) {
8246						response = conv( response );
8247					} else {
8248						try {
8249							response = conv( response );
8250						} catch ( e ) {
8251							return { state: "parsererror", error: conv ? e : "No conversion from " + prev + " to " + current };
8252						}
8253					}
8254				}
8255			}
8256
8257			// Update prev for next iteration
8258			prev = current;
8259		}
8260	}
8261
8262	return { state: "success", data: response };
8263}
8264// Install script dataType
8265jQuery.ajaxSetup({
8266	accepts: {
8267		script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
8268	},
8269	contents: {
8270		script: /(?:java|ecma)script/
8271	},
8272	converters: {
8273		"text script": function( text ) {
8274			jQuery.globalEval( text );
8275			return text;
8276		}
8277	}
8278});
8279
8280// Handle cache's special case and global
8281jQuery.ajaxPrefilter( "script", function( s ) {
8282	if ( s.cache === undefined ) {
8283		s.cache = false;
8284	}
8285	if ( s.crossDomain ) {
8286		s.type = "GET";
8287		s.global = false;
8288	}
8289});
8290
8291// Bind script tag hack transport
8292jQuery.ajaxTransport( "script", function(s) {
8293
8294	// This transport only deals with cross domain requests
8295	if ( s.crossDomain ) {
8296
8297		var script,
8298			head = document.head || jQuery("head")[0] || document.documentElement;
8299
8300		return {
8301
8302			send: function( _, callback ) {
8303
8304				script = document.createElement("script");
8305
8306				script.async = true;
8307
8308				if ( s.scriptCharset ) {
8309					script.charset = s.scriptCharset;
8310				}
8311
8312				script.src = s.url;
8313
8314				// Attach handlers for all browsers
8315				script.onload = script.onreadystatechange = function( _, isAbort ) {
8316
8317					if ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) {
8318
8319						// Handle memory leak in IE
8320						script.onload = script.onreadystatechange = null;
8321
8322						// Remove the script
8323						if ( script.parentNode ) {
8324							script.parentNode.removeChild( script );
8325						}
8326
8327						// Dereference the script
8328						script = null;
8329
8330						// Callback if not abort
8331						if ( !isAbort ) {
8332							callback( 200, "success" );
8333						}
8334					}
8335				};
8336
8337				// Circumvent IE6 bugs with base elements (#2709 and #4378) by prepending
8338				// Use native DOM manipulation to avoid our domManip AJAX trickery
8339				head.insertBefore( script, head.firstChild );
8340			},
8341
8342			abort: function() {
8343				if ( script ) {
8344					script.onload( undefined, true );
8345				}
8346			}
8347		};
8348	}
8349});
8350var oldCallbacks = [],
8351	rjsonp = /(=)\?(?=&|$)|\?\?/;
8352
8353// Default jsonp settings
8354jQuery.ajaxSetup({
8355	jsonp: "callback",
8356	jsonpCallback: function() {
8357		var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( ajax_nonce++ ) );
8358		this[ callback ] = true;
8359		return callback;
8360	}
8361});
8362
8363// Detect, normalize options and install callbacks for jsonp requests
8364jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
8365
8366	var callbackName, overwritten, responseContainer,
8367		jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?
8368			"url" :
8369			typeof s.data === "string" && !( s.contentType || "" ).indexOf("application/x-www-form-urlencoded") && rjsonp.test( s.data ) && "data"
8370		);
8371
8372	// Handle iff the expected data type is "jsonp" or we have a parameter to set
8373	if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) {
8374
8375		// Get callback name, remembering preexisting value associated with it
8376		callbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ?
8377			s.jsonpCallback() :
8378			s.jsonpCallback;
8379
8380		// Insert callback into url or form data
8381		if ( jsonProp ) {
8382			s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName );
8383		} else if ( s.jsonp !== false ) {
8384			s.url += ( ajax_rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName;
8385		}
8386
8387		// Use data converter to retrieve json after script execution
8388		s.converters["script json"] = function() {
8389			if ( !responseContainer ) {
8390				jQuery.error( callbackName + " was not called" );
8391			}
8392			return responseContainer[ 0 ];
8393		};
8394
8395		// force json dataType
8396		s.dataTypes[ 0 ] = "json";
8397
8398		// Install callback
8399		overwritten = window[ callbackName ];
8400		window[ callbackName ] = function() {
8401			responseContainer = arguments;
8402		};
8403
8404		// Clean-up function (fires after converters)
8405		jqXHR.always(function() {
8406			// Restore preexisting value
8407			window[ callbackName ] = overwritten;
8408
8409			// Save back as free
8410			if ( s[ callbackName ] ) {
8411				// make sure that re-using the options doesn't screw things around
8412				s.jsonpCallback = originalSettings.jsonpCallback;
8413
8414				// save the callback name for future use
8415				oldCallbacks.push( callbackName );
8416			}
8417
8418			// Call if it was a function and we have a response
8419			if ( responseContainer && jQuery.isFunction( overwritten ) ) {
8420				overwritten( responseContainer[ 0 ] );
8421			}
8422
8423			responseContainer = overwritten = undefined;
8424		});
8425
8426		// Delegate to script
8427		return "script";
8428	}
8429});
8430var xhrCallbacks, xhrSupported,
8431	xhrId = 0,
8432	// #5280: Internet Explorer will keep connections alive if we don't abort on unload
8433	xhrOnUnloadAbort = window.ActiveXObject && function() {
8434		// Abort all pending requests
8435		var key;
8436		for ( key in xhrCallbacks ) {
8437			xhrCallbacks[ key ]( undefined, true );
8438		}
8439	};
8440
8441// Functions to create xhrs
8442function createStandardXHR() {
8443	try {
8444		return new window.XMLHttpRequest();
8445	} catch( e ) {}
8446}
8447
8448function createActiveXHR() {
8449	try {
8450		return new window.ActiveXObject("Microsoft.XMLHTTP");
8451	} catch( e ) {}
8452}
8453
8454// Create the request object
8455// (This is still attached to ajaxSettings for backward compatibility)
8456jQuery.ajaxSettings.xhr = window.ActiveXObject ?
8457	/* Microsoft failed to properly
8458	 * implement the XMLHttpRequest in IE7 (can't request local files),
8459	 * so we use the ActiveXObject when it is available
8460	 * Additionally XMLHttpRequest can be disabled in IE7/IE8 so
8461	 * we need a fallback.
8462	 */
8463	function() {
8464		return !this.isLocal && createStandardXHR() || createActiveXHR();
8465	} :
8466	// For all other browsers, use the standard XMLHttpRequest object
8467	createStandardXHR;
8468
8469// Determine support properties
8470xhrSupported = jQuery.ajaxSettings.xhr();
8471jQuery.support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported );
8472xhrSupported = jQuery.support.ajax = !!xhrSupported;
8473
8474// Create transport if the browser can provide an xhr
8475if ( xhrSupported ) {
8476
8477	jQuery.ajaxTransport(function( s ) {
8478		// Cross domain only allowed if supported through XMLHttpRequest
8479		if ( !s.crossDomain || jQuery.support.cors ) {
8480
8481			var callback;
8482
8483			return {
8484				send: function( headers, complete ) {
8485
8486					// Get a new xhr
8487					var handle, i,
8488						xhr = s.xhr();
8489
8490					// Open the socket
8491					// Passing null username, generates a login popup on Opera (#2865)
8492					if ( s.username ) {
8493						xhr.open( s.type, s.url, s.async, s.username, s.password );
8494					} else {
8495						xhr.open( s.type, s.url, s.async );
8496					}
8497
8498					// Apply custom fields if provided
8499					if ( s.xhrFields ) {
8500						for ( i in s.xhrFields ) {
8501							xhr[ i ] = s.xhrFields[ i ];
8502						}
8503					}
8504
8505					// Override mime type if needed
8506					if ( s.mimeType && xhr.overrideMimeType ) {
8507						xhr.overrideMimeType( s.mimeType );
8508					}
8509
8510					// X-Requested-With header
8511					// For cross-domain requests, seeing as conditions for a preflight are
8512					// akin to a jigsaw puzzle, we simply never set it to be sure.
8513					// (it can always be set on a per-request basis or even using ajaxSetup)
vendor: 16,699 bytes, lines 8514-9089
8514					// For same-domain requests, won't change header if already provided.
8515					if ( !s.crossDomain && !headers["X-Requested-With"] ) {
8516						headers["X-Requested-With"] = "XMLHttpRequest";
8517					}
8518
8519					// Need an extra try/catch for cross domain requests in Firefox 3
8520					try {
8521						for ( i in headers ) {
8522							xhr.setRequestHeader( i, headers[ i ] );
8523						}
8524					} catch( err ) {}
8525
8526					// Do send the request
8527					// This may raise an exception which is actually
8528					// handled in jQuery.ajax (so no try/catch here)
8529					xhr.send( ( s.hasContent && s.data ) || null );
8530
8531					// Listener
8532					callback = function( _, isAbort ) {
8533						var status, responseHeaders, statusText, responses;
8534
8535						// Firefox throws exceptions when accessing properties
8536						// of an xhr when a network error occurred
8537						// http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE)
8538						try {
8539
8540							// Was never called and is aborted or complete
8541							if ( callback && ( isAbort || xhr.readyState === 4 ) ) {
8542
8543								// Only called once
8544								callback = undefined;
8545
8546								// Do not keep as active anymore
8547								if ( handle ) {
8548									xhr.onreadystatechange = jQuery.noop;
8549									if ( xhrOnUnloadAbort ) {
8550										delete xhrCallbacks[ handle ];
8551									}
8552								}
8553
8554								// If it's an abort
8555								if ( isAbort ) {
8556									// Abort it manually if needed
8557									if ( xhr.readyState !== 4 ) {
8558										xhr.abort();
8559									}
8560								} else {
8561									responses = {};
8562									status = xhr.status;
8563									responseHeaders = xhr.getAllResponseHeaders();
8564
8565									// When requesting binary data, IE6-9 will throw an exception
8566									// on any attempt to access responseText (#11426)
8567									if ( typeof xhr.responseText === "string" ) {
8568										responses.text = xhr.responseText;
8569									}
8570
8571									// Firefox throws an exception when accessing
8572									// statusText for faulty cross-domain requests
8573									try {
8574										statusText = xhr.statusText;
8575									} catch( e ) {
8576										// We normalize with Webkit giving an empty statusText
8577										statusText = "";
8578									}
8579
8580									// Filter status for non standard behaviors
8581
8582									// If the request is local and we have data: assume a success
8583									// (success with no data won't get notified, that's the best we
8584									// can do given current implementations)
8585									if ( !status && s.isLocal && !s.crossDomain ) {
8586										status = responses.text ? 200 : 404;
8587									// IE - #1450: sometimes returns 1223 when it should be 204
8588									} else if ( status === 1223 ) {
8589										status = 204;
8590									}
8591								}
8592							}
8593						} catch( firefoxAccessException ) {
8594							if ( !isAbort ) {
8595								complete( -1, firefoxAccessException );
8596							}
8597						}
8598
8599						// Call complete if needed
8600						if ( responses ) {
8601							complete( status, statusText, responses, responseHeaders );
8602						}
8603					};
8604
8605					if ( !s.async ) {
8606						// if we're in sync mode we fire the callback
8607						callback();
8608					} else if ( xhr.readyState === 4 ) {
8609						// (IE6 & IE7) if it's in cache and has been
8610						// retrieved directly we need to fire the callback
8611						setTimeout( callback );
8612					} else {
8613						handle = ++xhrId;
8614						if ( xhrOnUnloadAbort ) {
8615							// Create the active xhrs callbacks list if needed
8616							// and attach the unload handler
8617							if ( !xhrCallbacks ) {
8618								xhrCallbacks = {};
8619								jQuery( window ).unload( xhrOnUnloadAbort );
8620							}
8621							// Add to list of active xhrs callbacks
8622							xhrCallbacks[ handle ] = callback;
8623						}
8624						xhr.onreadystatechange = callback;
8625					}
8626				},
8627
8628				abort: function() {
8629					if ( callback ) {
8630						callback( undefined, true );
8631					}
8632				}
8633			};
8634		}
8635	});
8636}
8637var fxNow, timerId,
8638	rfxtypes = /^(?:toggle|show|hide)$/,
8639	rfxnum = new RegExp( "^(?:([+-])=|)(" + core_pnum + ")([a-z%]*)$", "i" ),
8640	rrun = /queueHooks$/,
8641	animationPrefilters = [ defaultPrefilter ],
8642	tweeners = {
8643		"*": [function( prop, value ) {
8644			var end, unit,
8645				tween = this.createTween( prop, value ),
8646				parts = rfxnum.exec( value ),
8647				target = tween.cur(),
8648				start = +target || 0,
8649				scale = 1,
8650				maxIterations = 20;
8651
8652			if ( parts ) {
8653				end = +parts[2];
8654				unit = parts[3] || ( jQuery.cssNumber[ prop ] ? "" : "px" );
8655
8656				// We need to compute starting value
8657				if ( unit !== "px" && start ) {
8658					// Iteratively approximate from a nonzero starting point
8659					// Prefer the current property, because this process will be trivial if it uses the same units
8660					// Fallback to end or a simple constant
8661					start = jQuery.css( tween.elem, prop, true ) || end || 1;
8662
8663					do {
8664						// If previous iteration zeroed out, double until we get *something*
8665						// Use a string for doubling factor so we don't accidentally see scale as unchanged below
8666						scale = scale || ".5";
8667
8668						// Adjust and apply
8669						start = start / scale;
8670						jQuery.style( tween.elem, prop, start + unit );
8671
8672					// Update scale, tolerating zero or NaN from tween.cur()
8673					// And breaking the loop if scale is unchanged or perfect, or if we've just had enough
8674					} while ( scale !== (scale = tween.cur() / target) && scale !== 1 && --maxIterations );
8675				}
8676
8677				tween.unit = unit;
8678				tween.start = start;
8679				// If a +=/-= token was provided, we're doing a relative animation
8680				tween.end = parts[1] ? start + ( parts[1] + 1 ) * end : end;
8681			}
8682			return tween;
8683		}]
8684	};
8685
8686// Animations created synchronously will run synchronously
8687function createFxNow() {
8688	setTimeout(function() {
8689		fxNow = undefined;
8690	});
8691	return ( fxNow = jQuery.now() );
8692}
8693
8694function createTweens( animation, props ) {
8695	jQuery.each( props, function( prop, value ) {
8696		var collection = ( tweeners[ prop ] || [] ).concat( tweeners[ "*" ] ),
8697			index = 0,
8698			length = collection.length;
8699		for ( ; index < length; index++ ) {
8700			if ( collection[ index ].call( animation, prop, value ) ) {
8701
8702				// we're done with this property
8703				return;
8704			}
8705		}
8706	});
8707}
8708
8709function Animation( elem, properties, options ) {
8710	var result,
8711		stopped,
8712		index = 0,
8713		length = animationPrefilters.length,
8714		deferred = jQuery.Deferred().always( function() {
8715			// don't match elem in the :animated selector
8716			delete tick.elem;
8717		}),
8718		tick = function() {
8719			if ( stopped ) {
8720				return false;
8721			}
8722			var currentTime = fxNow || createFxNow(),
8723				remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
8724				// archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497)
8725				temp = remaining / animation.duration || 0,
8726				percent = 1 - temp,
8727				index = 0,
8728				length = animation.tweens.length;
8729
8730			for ( ; index < length ; index++ ) {
8731				animation.tweens[ index ].run( percent );
8732			}
8733
8734			deferred.notifyWith( elem, [ animation, percent, remaining ]);
8735
8736			if ( percent < 1 && length ) {
8737				return remaining;
8738			} else {
8739				deferred.resolveWith( elem, [ animation ] );
8740				return false;
8741			}
8742		},
8743		animation = deferred.promise({
8744			elem: elem,
8745			props: jQuery.extend( {}, properties ),
8746			opts: jQuery.extend( true, { specialEasing: {} }, options ),
8747			originalProperties: properties,
8748			originalOptions: options,
8749			startTime: fxNow || createFxNow(),
8750			duration: options.duration,
8751			tweens: [],
8752			createTween: function( prop, end ) {
8753				var tween = jQuery.Tween( elem, animation.opts, prop, end,
8754						animation.opts.specialEasing[ prop ] || animation.opts.easing );
8755				animation.tweens.push( tween );
8756				return tween;
8757			},
8758			stop: function( gotoEnd ) {
8759				var index = 0,
8760					// if we are going to the end, we want to run all the tweens
8761					// otherwise we skip this part
8762					length = gotoEnd ? animation.tweens.length : 0;
8763				if ( stopped ) {
8764					return this;
8765				}
8766				stopped = true;
8767				for ( ; index < length ; index++ ) {
8768					animation.tweens[ index ].run( 1 );
8769				}
8770
8771				// resolve when we played the last frame
8772				// otherwise, reject
8773				if ( gotoEnd ) {
8774					deferred.resolveWith( elem, [ animation, gotoEnd ] );
8775				} else {
8776					deferred.rejectWith( elem, [ animation, gotoEnd ] );
8777				}
8778				return this;
8779			}
8780		}),
8781		props = animation.props;
8782
8783	propFilter( props, animation.opts.specialEasing );
8784
8785	for ( ; index < length ; index++ ) {
8786		result = animationPrefilters[ index ].call( animation, elem, props, animation.opts );
8787		if ( result ) {
8788			return result;
8789		}
8790	}
8791
8792	createTweens( animation, props );
8793
8794	if ( jQuery.isFunction( animation.opts.start ) ) {
8795		animation.opts.start.call( elem, animation );
8796	}
8797
8798	jQuery.fx.timer(
8799		jQuery.extend( tick, {
8800			elem: elem,
8801			anim: animation,
8802			queue: animation.opts.queue
8803		})
8804	);
8805
8806	// attach callbacks from options
8807	return animation.progress( animation.opts.progress )
8808		.done( animation.opts.done, animation.opts.complete )
8809		.fail( animation.opts.fail )
8810		.always( animation.opts.always );
8811}
8812
8813function propFilter( props, specialEasing ) {
8814	var value, name, index, easing, hooks;
8815
8816	// camelCase, specialEasing and expand cssHook pass
8817	for ( index in props ) {
8818		name = jQuery.camelCase( index );
8819		easing = specialEasing[ name ];
8820		value = props[ index ];
8821		if ( jQuery.isArray( value ) ) {
8822			easing = value[ 1 ];
8823			value = props[ index ] = value[ 0 ];
8824		}
8825
8826		if ( index !== name ) {
8827			props[ name ] = value;
8828			delete props[ index ];
8829		}
8830
8831		hooks = jQuery.cssHooks[ name ];
8832		if ( hooks && "expand" in hooks ) {
8833			value = hooks.expand( value );
8834			delete props[ name ];
8835
8836			// not quite $.extend, this wont overwrite keys already present.
8837			// also - reusing 'index' from above because we have the correct "name"
8838			for ( index in value ) {
8839				if ( !( index in props ) ) {
8840					props[ index ] = value[ index ];
8841					specialEasing[ index ] = easing;
8842				}
8843			}
8844		} else {
8845			specialEasing[ name ] = easing;
8846		}
8847	}
8848}
8849
8850jQuery.Animation = jQuery.extend( Animation, {
8851
8852	tweener: function( props, callback ) {
8853		if ( jQuery.isFunction( props ) ) {
8854			callback = props;
8855			props = [ "*" ];
8856		} else {
8857			props = props.split(" ");
8858		}
8859
8860		var prop,
8861			index = 0,
8862			length = props.length;
8863
8864		for ( ; index < length ; index++ ) {
8865			prop = props[ index ];
8866			tweeners[ prop ] = tweeners[ prop ] || [];
8867			tweeners[ prop ].unshift( callback );
8868		}
8869	},
8870
8871	prefilter: function( callback, prepend ) {
8872		if ( prepend ) {
8873			animationPrefilters.unshift( callback );
8874		} else {
8875			animationPrefilters.push( callback );
8876		}
8877	}
8878});
8879
8880function defaultPrefilter( elem, props, opts ) {
8881	/*jshint validthis:true */
8882	var prop, index, length,
8883		value, dataShow, toggle,
8884		tween, hooks, oldfire,
8885		anim = this,
8886		style = elem.style,
8887		orig = {},
8888		handled = [],
8889		hidden = elem.nodeType && isHidden( elem );
8890
8891	// handle queue: false promises
8892	if ( !opts.queue ) {
8893		hooks = jQuery._queueHooks( elem, "fx" );
8894		if ( hooks.unqueued == null ) {
8895			hooks.unqueued = 0;
8896			oldfire = hooks.empty.fire;
8897			hooks.empty.fire = function() {
8898				if ( !hooks.unqueued ) {
8899					oldfire();
8900				}
8901			};
8902		}
8903		hooks.unqueued++;
8904
8905		anim.always(function() {
8906			// doing this makes sure that the complete handler will be called
8907			// before this completes
8908			anim.always(function() {
8909				hooks.unqueued--;
8910				if ( !jQuery.queue( elem, "fx" ).length ) {
8911					hooks.empty.fire();
8912				}
8913			});
8914		});
8915	}
8916
8917	// height/width overflow pass
8918	if ( elem.nodeType === 1 && ( "height" in props || "width" in props ) ) {
8919		// Make sure that nothing sneaks out
8920		// Record all 3 overflow attributes because IE does not
8921		// change the overflow attribute when overflowX and
8922		// overflowY are set to the same value
8923		opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];
8924
8925		// Set display property to inline-block for height/width
8926		// animations on inline elements that are having width/height animated
8927		if ( jQuery.css( elem, "display" ) === "inline" &&
8928				jQuery.css( elem, "float" ) === "none" ) {
8929
8930			// inline-level elements accept inline-block;
8931			// block-level elements need to be inline with layout
8932			if ( !jQuery.support.inlineBlockNeedsLayout || css_defaultDisplay( elem.nodeName ) === "inline" ) {
8933				style.display = "inline-block";
8934
8935			} else {
8936				style.zoom = 1;
8937			}
8938		}
8939	}
8940
8941	if ( opts.overflow ) {
8942		style.overflow = "hidden";
8943		if ( !jQuery.support.shrinkWrapBlocks ) {
8944			anim.always(function() {
8945				style.overflow = opts.overflow[ 0 ];
8946				style.overflowX = opts.overflow[ 1 ];
8947				style.overflowY = opts.overflow[ 2 ];
8948			});
8949		}
8950	}
8951
8952
8953	// show/hide pass
8954	for ( index in props ) {
8955		value = props[ index ];
8956		if ( rfxtypes.exec( value ) ) {
8957			delete props[ index ];
8958			toggle = toggle || value === "toggle";
8959			if ( value === ( hidden ? "hide" : "show" ) ) {
8960				continue;
8961			}
8962			handled.push( index );
8963		}
8964	}
8965
8966	length = handled.length;
8967	if ( length ) {
8968		dataShow = jQuery._data( elem, "fxshow" ) || jQuery._data( elem, "fxshow", {} );
8969		if ( "hidden" in dataShow ) {
8970			hidden = dataShow.hidden;
8971		}
8972
8973		// store state if its toggle - enables .stop().toggle() to "reverse"
8974		if ( toggle ) {
8975			dataShow.hidden = !hidden;
8976		}
8977		if ( hidden ) {
8978			jQuery( elem ).show();
8979		} else {
8980			anim.done(function() {
8981				jQuery( elem ).hide();
8982			});
8983		}
8984		anim.done(function() {
8985			var prop;
8986			jQuery._removeData( elem, "fxshow" );
8987			for ( prop in orig ) {
8988				jQuery.style( elem, prop, orig[ prop ] );
8989			}
8990		});
8991		for ( index = 0 ; index < length ; index++ ) {
8992			prop = handled[ index ];
8993			tween = anim.createTween( prop, hidden ? dataShow[ prop ] : 0 );
8994			orig[ prop ] = dataShow[ prop ] || jQuery.style( elem, prop );
8995
8996			if ( !( prop in dataShow ) ) {
8997				dataShow[ prop ] = tween.start;
8998				if ( hidden ) {
8999					tween.end = tween.start;
9000					tween.start = prop === "width" || prop === "height" ? 1 : 0;
9001				}
9002			}
9003		}
9004	}
9005}
9006
9007function Tween( elem, options, prop, end, easing ) {
9008	return new Tween.prototype.init( elem, options, prop, end, easing );
9009}
9010jQuery.Tween = Tween;
9011
9012Tween.prototype = {
9013	constructor: Tween,
9014	init: function( elem, options, prop, end, easing, unit ) {
9015		this.elem = elem;
9016		this.prop = prop;
9017		this.easing = easing || "swing";
9018		this.options = options;
9019		this.start = this.now = this.cur();
9020		this.end = end;
9021		this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" );
9022	},
9023	cur: function() {
9024		var hooks = Tween.propHooks[ this.prop ];
9025
9026		return hooks && hooks.get ?
9027			hooks.get( this ) :
9028			Tween.propHooks._default.get( this );
9029	},
9030	run: function( percent ) {
9031		var eased,
9032			hooks = Tween.propHooks[ this.prop ];
9033
9034		if ( this.options.duration ) {
9035			this.pos = eased = jQuery.easing[ this.easing ](
9036				percent, this.options.duration * percent, 0, 1, this.options.duration
9037			);
9038		} else {
9039			this.pos = eased = percent;
9040		}
9041		this.now = ( this.end - this.start ) * eased + this.start;
9042
9043		if ( this.options.step ) {
9044			this.options.step.call( this.elem, this.now, this );
9045		}
9046
9047		if ( hooks && hooks.set ) {
9048			hooks.set( this );
9049		} else {
9050			Tween.propHooks._default.set( this );
9051		}
9052		return this;
9053	}
9054};
9055
9056Tween.prototype.init.prototype = Tween.prototype;
9057
9058Tween.propHooks = {
9059	_default: {
9060		get: function( tween ) {
9061			var result;
9062
9063			if ( tween.elem[ tween.prop ] != null &&
9064				(!tween.elem.style || tween.elem.style[ tween.prop ] == null) ) {
9065				return tween.elem[ tween.prop ];
9066			}
9067
9068			// passing an empty string as a 3rd parameter to .css will automatically
9069			// attempt a parseFloat and fallback to a string if the parse fails
9070			// so, simple values such as "10px" are parsed to Float.
9071			// complex values such as "rotate(1rad)" are returned as is.
9072			result = jQuery.css( tween.elem, tween.prop, "" );
9073			// Empty strings, null, undefined and "auto" are converted to 0.
9074			return !result || result === "auto" ? 0 : result;
9075		},
9076		set: function( tween ) {
9077			// use step hook for back compat - use cssHook if its there - use .style if its
9078			// available and use plain properties where available
9079			if ( jQuery.fx.step[ tween.prop ] ) {
9080				jQuery.fx.step[ tween.prop ]( tween );
9081			} else if ( tween.elem.style && ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null || jQuery.cssHooks[ tween.prop ] ) ) {
9082				jQuery.style( tween.elem, tween.prop, tween.now + tween.unit );
9083			} else {
9084				tween.elem[ tween.prop ] = tween.now;
9085			}
9086		}
9087	}
9088};
9089
vendor: 5,581 bytes, lines 9090-9277
9090// Remove in 2.0 - this supports IE8's panic based approach
9091// to setting things on disconnected nodes
9092
9093Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
9094	set: function( tween ) {
9095		if ( tween.elem.nodeType && tween.elem.parentNode ) {
9096			tween.elem[ tween.prop ] = tween.now;
9097		}
9098	}
9099};
9100
9101jQuery.each([ "toggle", "show", "hide" ], function( i, name ) {
9102	var cssFn = jQuery.fn[ name ];
9103	jQuery.fn[ name ] = function( speed, easing, callback ) {
9104		return speed == null || typeof speed === "boolean" ?
9105			cssFn.apply( this, arguments ) :
9106			this.animate( genFx( name, true ), speed, easing, callback );
9107	};
9108});
9109
9110jQuery.fn.extend({
9111	fadeTo: function( speed, to, easing, callback ) {
9112
9113		// show any hidden elements after setting opacity to 0
9114		return this.filter( isHidden ).css( "opacity", 0 ).show()
9115
9116			// animate to the value specified
9117			.end().animate({ opacity: to }, speed, easing, callback );
9118	},
9119	animate: function( prop, speed, easing, callback ) {
9120		var empty = jQuery.isEmptyObject( prop ),
9121			optall = jQuery.speed( speed, easing, callback ),
9122			doAnimation = function() {
9123				// Operate on a copy of prop so per-property easing won't be lost
9124				var anim = Animation( this, jQuery.extend( {}, prop ), optall );
9125				doAnimation.finish = function() {
9126					anim.stop( true );
9127				};
9128				// Empty animations, or finishing resolves immediately
9129				if ( empty || jQuery._data( this, "finish" ) ) {
9130					anim.stop( true );
9131				}
9132			};
9133			doAnimation.finish = doAnimation;
9134
9135		return empty || optall.queue === false ?
9136			this.each( doAnimation ) :
9137			this.queue( optall.queue, doAnimation );
9138	},
9139	stop: function( type, clearQueue, gotoEnd ) {
9140		var stopQueue = function( hooks ) {
9141			var stop = hooks.stop;
9142			delete hooks.stop;
9143			stop( gotoEnd );
9144		};
9145
9146		if ( typeof type !== "string" ) {
9147			gotoEnd = clearQueue;
9148			clearQueue = type;
9149			type = undefined;
9150		}
9151		if ( clearQueue && type !== false ) {
9152			this.queue( type || "fx", [] );
9153		}
9154
9155		return this.each(function() {
9156			var dequeue = true,
9157				index = type != null && type + "queueHooks",
9158				timers = jQuery.timers,
9159				data = jQuery._data( this );
9160
9161			if ( index ) {
9162				if ( data[ index ] && data[ index ].stop ) {
9163					stopQueue( data[ index ] );
9164				}
9165			} else {
9166				for ( index in data ) {
9167					if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {
9168						stopQueue( data[ index ] );
9169					}
9170				}
9171			}
9172
9173			for ( index = timers.length; index--; ) {
9174				if ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) {
9175					timers[ index ].anim.stop( gotoEnd );
9176					dequeue = false;
9177					timers.splice( index, 1 );
9178				}
9179			}
9180
9181			// start the next in the queue if the last step wasn't forced
9182			// timers currently will call their complete callbacks, which will dequeue
9183			// but only if they were gotoEnd
9184			if ( dequeue || !gotoEnd ) {
9185				jQuery.dequeue( this, type );
9186			}
9187		});
9188	},
9189	finish: function( type ) {
9190		if ( type !== false ) {
9191			type = type || "fx";
9192		}
9193		return this.each(function() {
9194			var index,
9195				data = jQuery._data( this ),
9196				queue = data[ type + "queue" ],
9197				hooks = data[ type + "queueHooks" ],
9198				timers = jQuery.timers,
9199				length = queue ? queue.length : 0;
9200
9201			// enable finishing flag on private data
9202			data.finish = true;
9203
9204			// empty the queue first
9205			jQuery.queue( this, type, [] );
9206
9207			if ( hooks && hooks.cur && hooks.cur.finish ) {
9208				hooks.cur.finish.call( this );
9209			}
9210
9211			// look for any active animations, and finish them
9212			for ( index = timers.length; index--; ) {
9213				if ( timers[ index ].elem === this && timers[ index ].queue === type ) {
9214					timers[ index ].anim.stop( true );
9215					timers.splice( index, 1 );
9216				}
9217			}
9218
9219			// look for any animations in the old queue and finish them
9220			for ( index = 0; index < length; index++ ) {
9221				if ( queue[ index ] && queue[ index ].finish ) {
9222					queue[ index ].finish.call( this );
9223				}
9224			}
9225
9226			// turn off finishing flag
9227			delete data.finish;
9228		});
9229	}
9230});
9231
9232// Generate parameters to create a standard animation
9233function genFx( type, includeWidth ) {
9234	var which,
9235		attrs = { height: type },
9236		i = 0;
9237
9238	// if we include width, step value is 1 to do all cssExpand values,
9239	// if we don't include width, step value is 2 to skip over Left and Right
9240	includeWidth = includeWidth? 1 : 0;
9241	for( ; i < 4 ; i += 2 - includeWidth ) {
9242		which = cssExpand[ i ];
9243		attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
9244	}
9245
9246	if ( includeWidth ) {
9247		attrs.opacity = attrs.width = type;
9248	}
9249
9250	return attrs;
9251}
9252
9253// Generate shortcuts for custom animations
9254jQuery.each({
9255	slideDown: genFx("show"),
9256	slideUp: genFx("hide"),
9257	slideToggle: genFx("toggle"),
9258	fadeIn: { opacity: "show" },
9259	fadeOut: { opacity: "hide" },
9260	fadeToggle: { opacity: "toggle" }
9261}, function( name, props ) {
9262	jQuery.fn[ name ] = function( speed, easing, callback ) {
9263		return this.animate( props, speed, easing, callback );
9264	};
9265});
9266
9267jQuery.speed = function( speed, easing, fn ) {
9268	var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
9269		complete: fn || !fn && easing ||
9270			jQuery.isFunction( speed ) && speed,
9271		duration: speed,
9272		easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
9273	};
9274
9275	opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
9276		opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
9277
vendor: 9,544 bytes, lines 9278-9600
9278	// normalize opt.queue - true/undefined/null -> "fx"
9279	if ( opt.queue == null || opt.queue === true ) {
9280		opt.queue = "fx";
9281	}
9282
9283	// Queueing
9284	opt.old = opt.complete;
9285
9286	opt.complete = function() {
9287		if ( jQuery.isFunction( opt.old ) ) {
9288			opt.old.call( this );
9289		}
9290
9291		if ( opt.queue ) {
9292			jQuery.dequeue( this, opt.queue );
9293		}
9294	};
9295
9296	return opt;
9297};
9298
9299jQuery.easing = {
9300	linear: function( p ) {
9301		return p;
9302	},
9303	swing: function( p ) {
9304		return 0.5 - Math.cos( p*Math.PI ) / 2;
9305	}
9306};
9307
9308jQuery.timers = [];
9309jQuery.fx = Tween.prototype.init;
9310jQuery.fx.tick = function() {
9311	var timer,
9312		timers = jQuery.timers,
9313		i = 0;
9314
9315	fxNow = jQuery.now();
9316
9317	for ( ; i < timers.length; i++ ) {
9318		timer = timers[ i ];
9319		// Checks the timer has not already been removed
9320		if ( !timer() && timers[ i ] === timer ) {
9321			timers.splice( i--, 1 );
9322		}
9323	}
9324
9325	if ( !timers.length ) {
9326		jQuery.fx.stop();
9327	}
9328	fxNow = undefined;
9329};
9330
9331jQuery.fx.timer = function( timer ) {
9332	if ( timer() && jQuery.timers.push( timer ) ) {
9333		jQuery.fx.start();
9334	}
9335};
9336
9337jQuery.fx.interval = 13;
9338
9339jQuery.fx.start = function() {
9340	if ( !timerId ) {
9341		timerId = setInterval( jQuery.fx.tick, jQuery.fx.interval );
9342	}
9343};
9344
9345jQuery.fx.stop = function() {
9346	clearInterval( timerId );
9347	timerId = null;
9348};
9349
9350jQuery.fx.speeds = {
9351	slow: 600,
9352	fast: 200,
9353	// Default speed
9354	_default: 400
9355};
9356
9357// Back Compat <1.8 extension point
9358jQuery.fx.step = {};
9359
9360if ( jQuery.expr && jQuery.expr.filters ) {
9361	jQuery.expr.filters.animated = function( elem ) {
9362		return jQuery.grep(jQuery.timers, function( fn ) {
9363			return elem === fn.elem;
9364		}).length;
9365	};
9366}
9367jQuery.fn.offset = function( options ) {
9368	if ( arguments.length ) {
9369		return options === undefined ?
9370			this :
9371			this.each(function( i ) {
9372				jQuery.offset.setOffset( this, options, i );
9373			});
9374	}
9375
9376	var docElem, win,
9377		box = { top: 0, left: 0 },
9378		elem = this[ 0 ],
9379		doc = elem && elem.ownerDocument;
9380
9381	if ( !doc ) {
9382		return;
9383	}
9384
9385	docElem = doc.documentElement;
9386
9387	// Make sure it's not a disconnected DOM node
9388	if ( !jQuery.contains( docElem, elem ) ) {
9389		return box;
9390	}
9391
9392	// If we don't have gBCR, just use 0,0 rather than error
9393	// BlackBerry 5, iOS 3 (original iPhone)
9394	if ( typeof elem.getBoundingClientRect !== core_strundefined ) {
9395		box = elem.getBoundingClientRect();
9396	}
9397	win = getWindow( doc );
9398	return {
9399		top: box.top  + ( win.pageYOffset || docElem.scrollTop )  - ( docElem.clientTop  || 0 ),
9400		left: box.left + ( win.pageXOffset || docElem.scrollLeft ) - ( docElem.clientLeft || 0 )
9401	};
9402};
9403
9404jQuery.offset = {
9405
9406	setOffset: function( elem, options, i ) {
9407		var position = jQuery.css( elem, "position" );
9408
9409		// set position first, in-case top/left are set even on static elem
9410		if ( position === "static" ) {
9411			elem.style.position = "relative";
9412		}
9413
9414		var curElem = jQuery( elem ),
9415			curOffset = curElem.offset(),
9416			curCSSTop = jQuery.css( elem, "top" ),
9417			curCSSLeft = jQuery.css( elem, "left" ),
9418			calculatePosition = ( position === "absolute" || position === "fixed" ) && jQuery.inArray("auto", [curCSSTop, curCSSLeft]) > -1,
9419			props = {}, curPosition = {}, curTop, curLeft;
9420
9421		// need to be able to calculate position if either top or left is auto and position is either absolute or fixed
9422		if ( calculatePosition ) {
9423			curPosition = curElem.position();
9424			curTop = curPosition.top;
9425			curLeft = curPosition.left;
9426		} else {
9427			curTop = parseFloat( curCSSTop ) || 0;
9428			curLeft = parseFloat( curCSSLeft ) || 0;
9429		}
9430
9431		if ( jQuery.isFunction( options ) ) {
9432			options = options.call( elem, i, curOffset );
9433		}
9434
9435		if ( options.top != null ) {
9436			props.top = ( options.top - curOffset.top ) + curTop;
9437		}
9438		if ( options.left != null ) {
9439			props.left = ( options.left - curOffset.left ) + curLeft;
9440		}
9441
9442		if ( "using" in options ) {
9443			options.using.call( elem, props );
9444		} else {
9445			curElem.css( props );
9446		}
9447	}
9448};
9449
9450
9451jQuery.fn.extend({
9452
9453	position: function() {
9454		if ( !this[ 0 ] ) {
9455			return;
9456		}
9457
9458		var offsetParent, offset,
9459			parentOffset = { top: 0, left: 0 },
9460			elem = this[ 0 ];
9461
9462		// fixed elements are offset from window (parentOffset = {top:0, left: 0}, because it is it's only offset parent
9463		if ( jQuery.css( elem, "position" ) === "fixed" ) {
9464			// we assume that getBoundingClientRect is available when computed position is fixed
9465			offset = elem.getBoundingClientRect();
9466		} else {
9467			// Get *real* offsetParent
9468			offsetParent = this.offsetParent();
9469
9470			// Get correct offsets
9471			offset = this.offset();
9472			if ( !jQuery.nodeName( offsetParent[ 0 ], "html" ) ) {
9473				parentOffset = offsetParent.offset();
9474			}
9475
9476			// Add offsetParent borders
9477			parentOffset.top  += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true );
9478			parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true );
9479		}
9480
9481		// Subtract parent offsets and element margins
9482		// note: when an element has margin: auto the offsetLeft and marginLeft
9483		// are the same in Safari causing offset.left to incorrectly be 0
9484		return {
9485			top:  offset.top  - parentOffset.top - jQuery.css( elem, "marginTop", true ),
9486			left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true)
9487		};
9488	},
9489
9490	offsetParent: function() {
9491		return this.map(function() {
9492			var offsetParent = this.offsetParent || document.documentElement;
9493			while ( offsetParent && ( !jQuery.nodeName( offsetParent, "html" ) && jQuery.css( offsetParent, "position") === "static" ) ) {
9494				offsetParent = offsetParent.offsetParent;
9495			}
9496			return offsetParent || document.documentElement;
9497		});
9498	}
9499});
9500
9501
9502// Create scrollLeft and scrollTop methods
9503jQuery.each( {scrollLeft: "pageXOffset", scrollTop: "pageYOffset"}, function( method, prop ) {
9504	var top = /Y/.test( prop );
9505
9506	jQuery.fn[ method ] = function( val ) {
9507		return jQuery.access( this, function( elem, method, val ) {
9508			var win = getWindow( elem );
9509
9510			if ( val === undefined ) {
9511				return win ? (prop in win) ? win[ prop ] :
9512					win.document.documentElement[ method ] :
9513					elem[ method ];
9514			}
9515
9516			if ( win ) {
9517				win.scrollTo(
9518					!top ? val : jQuery( win ).scrollLeft(),
9519					top ? val : jQuery( win ).scrollTop()
9520				);
9521
9522			} else {
9523				elem[ method ] = val;
9524			}
9525		}, method, val, arguments.length, null );
9526	};
9527});
9528
9529function getWindow( elem ) {
9530	return jQuery.isWindow( elem ) ?
9531		elem :
9532		elem.nodeType === 9 ?
9533			elem.defaultView || elem.parentWindow :
9534			false;
9535}
9536// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
9537jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
9538	jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name }, function( defaultExtra, funcName ) {
9539		// margin is only for outerHeight, outerWidth
9540		jQuery.fn[ funcName ] = function( margin, value ) {
9541			var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ),
9542				extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" );
9543
9544			return jQuery.access( this, function( elem, type, value ) {
9545				var doc;
9546
9547				if ( jQuery.isWindow( elem ) ) {
9548					// As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there
9549					// isn't a whole lot we can do. See pull request at this URL for discussion:
9550					// https://github.com/jquery/jquery/pull/764
9551					return elem.document.documentElement[ "client" + name ];
9552				}
9553
9554				// Get document width or height
9555				if ( elem.nodeType === 9 ) {
9556					doc = elem.documentElement;
9557
9558					// Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], whichever is greatest
9559					// unfortunately, this causes bug #3838 in IE6/8 only, but there is currently no good, small way to fix it.
9560					return Math.max(
9561						elem.body[ "scroll" + name ], doc[ "scroll" + name ],
9562						elem.body[ "offset" + name ], doc[ "offset" + name ],
9563						doc[ "client" + name ]
9564					);
9565				}
9566
9567				return value === undefined ?
9568					// Get width or height on the element, requesting but not forcing parseFloat
9569					jQuery.css( elem, type, extra ) :
9570
9571					// Set width or height on the element
9572					jQuery.style( elem, type, value, extra );
9573			}, type, chainable ? margin : undefined, chainable, null );
9574		};
9575	});
9576});
9577// Limit scope pollution from any deprecated API
9578// (function() {
9579
9580// })();
9581// Expose jQuery to the global object
9582window.jQuery = window.$ = jQuery;
9583
9584// Expose jQuery as an AMD module, but only for AMD loaders that
9585// understand the issues with loading multiple versions of jQuery
9586// in a page that all might call define(). The loader will indicate
9587// they have special allowances for multiple jQuery versions by
9588// specifying define.amd.jQuery = true. Register as a named module,
9589// since jQuery can be concatenated with other files that may use define,
9590// but not use a proper concatenation script that understands anonymous
9591// AMD modules. A named AMD is safest and most robust way to register.
9592// Lowercase jquery is used because AMD module names are derived from
9593// file names, and jQuery is normally delivered in a lowercase file name.
9594// Do this after creating the global so that if an AMD module wants to call
9595// noConflict to hide this version of jQuery, it will work.
9596if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
9597	define( "jquery", [], function () { return jQuery; } );
9598}
9599
9600})( window );

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.