jquery.js
author indvd00m (gotoindvdum[at]gmail[dot]com)
Thu, 15 Dec 2016 18:10:20 +0300
changeset 0 44d330dccc59
permissions -rw-r--r--
Init sample
indvd00m@0
     1
/*!
indvd00m@0
     2
 * jQuery JavaScript Library v1.11.3
indvd00m@0
     3
 * http://jquery.com/
indvd00m@0
     4
 *
indvd00m@0
     5
 * Includes Sizzle.js
indvd00m@0
     6
 * http://sizzlejs.com/
indvd00m@0
     7
 *
indvd00m@0
     8
 * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
indvd00m@0
     9
 * Released under the MIT license
indvd00m@0
    10
 * http://jquery.org/license
indvd00m@0
    11
 *
indvd00m@0
    12
 * Date: 2015-04-28T16:19Z
indvd00m@0
    13
 */
indvd00m@0
    14
indvd00m@0
    15
(function( global, factory ) {
indvd00m@0
    16
indvd00m@0
    17
	if ( typeof module === "object" && typeof module.exports === "object" ) {
indvd00m@0
    18
		// For CommonJS and CommonJS-like environments where a proper window is present,
indvd00m@0
    19
		// execute the factory and get jQuery
indvd00m@0
    20
		// For environments that do not inherently posses a window with a document
indvd00m@0
    21
		// (such as Node.js), expose a jQuery-making factory as module.exports
indvd00m@0
    22
		// This accentuates the need for the creation of a real window
indvd00m@0
    23
		// e.g. var jQuery = require("jquery")(window);
indvd00m@0
    24
		// See ticket #14549 for more info
indvd00m@0
    25
		module.exports = global.document ?
indvd00m@0
    26
			factory( global, true ) :
indvd00m@0
    27
			function( w ) {
indvd00m@0
    28
				if ( !w.document ) {
indvd00m@0
    29
					throw new Error( "jQuery requires a window with a document" );
indvd00m@0
    30
				}
indvd00m@0
    31
				return factory( w );
indvd00m@0
    32
			};
indvd00m@0
    33
	} else {
indvd00m@0
    34
		factory( global );
indvd00m@0
    35
	}
indvd00m@0
    36
indvd00m@0
    37
// Pass this if window is not defined yet
indvd00m@0
    38
}(typeof window !== "undefined" ? window : this, function( window, noGlobal ) {
indvd00m@0
    39
indvd00m@0
    40
// Can't do this because several apps including ASP.NET trace
indvd00m@0
    41
// the stack via arguments.caller.callee and Firefox dies if
indvd00m@0
    42
// you try to trace through "use strict" call chains. (#13335)
indvd00m@0
    43
// Support: Firefox 18+
indvd00m@0
    44
//
indvd00m@0
    45
indvd00m@0
    46
var deletedIds = [];
indvd00m@0
    47
indvd00m@0
    48
var slice = deletedIds.slice;
indvd00m@0
    49
indvd00m@0
    50
var concat = deletedIds.concat;
indvd00m@0
    51
indvd00m@0
    52
var push = deletedIds.push;
indvd00m@0
    53
indvd00m@0
    54
var indexOf = deletedIds.indexOf;
indvd00m@0
    55
indvd00m@0
    56
var class2type = {};
indvd00m@0
    57
indvd00m@0
    58
var toString = class2type.toString;
indvd00m@0
    59
indvd00m@0
    60
var hasOwn = class2type.hasOwnProperty;
indvd00m@0
    61
indvd00m@0
    62
var support = {};
indvd00m@0
    63
indvd00m@0
    64
indvd00m@0
    65
indvd00m@0
    66
var
indvd00m@0
    67
	version = "1.11.3",
indvd00m@0
    68
indvd00m@0
    69
	// Define a local copy of jQuery
indvd00m@0
    70
	jQuery = function( selector, context ) {
indvd00m@0
    71
		// The jQuery object is actually just the init constructor 'enhanced'
indvd00m@0
    72
		// Need init if jQuery is called (just allow error to be thrown if not included)
indvd00m@0
    73
		return new jQuery.fn.init( selector, context );
indvd00m@0
    74
	},
indvd00m@0
    75
indvd00m@0
    76
	// Support: Android<4.1, IE<9
indvd00m@0
    77
	// Make sure we trim BOM and NBSP
indvd00m@0
    78
	rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
indvd00m@0
    79
indvd00m@0
    80
	// Matches dashed string for camelizing
indvd00m@0
    81
	rmsPrefix = /^-ms-/,
indvd00m@0
    82
	rdashAlpha = /-([\da-z])/gi,
indvd00m@0
    83
indvd00m@0
    84
	// Used by jQuery.camelCase as callback to replace()
indvd00m@0
    85
	fcamelCase = function( all, letter ) {
indvd00m@0
    86
		return letter.toUpperCase();
indvd00m@0
    87
	};
indvd00m@0
    88
indvd00m@0
    89
jQuery.fn = jQuery.prototype = {
indvd00m@0
    90
	// The current version of jQuery being used
indvd00m@0
    91
	jquery: version,
indvd00m@0
    92
indvd00m@0
    93
	constructor: jQuery,
indvd00m@0
    94
indvd00m@0
    95
	// Start with an empty selector
indvd00m@0
    96
	selector: "",
indvd00m@0
    97
indvd00m@0
    98
	// The default length of a jQuery object is 0
indvd00m@0
    99
	length: 0,
indvd00m@0
   100
indvd00m@0
   101
	toArray: function() {
indvd00m@0
   102
		return slice.call( this );
indvd00m@0
   103
	},
indvd00m@0
   104
indvd00m@0
   105
	// Get the Nth element in the matched element set OR
indvd00m@0
   106
	// Get the whole matched element set as a clean array
indvd00m@0
   107
	get: function( num ) {
indvd00m@0
   108
		return num != null ?
indvd00m@0
   109
indvd00m@0
   110
			// Return just the one element from the set
indvd00m@0
   111
			( num < 0 ? this[ num + this.length ] : this[ num ] ) :
indvd00m@0
   112
indvd00m@0
   113
			// Return all the elements in a clean array
indvd00m@0
   114
			slice.call( this );
indvd00m@0
   115
	},
indvd00m@0
   116
indvd00m@0
   117
	// Take an array of elements and push it onto the stack
indvd00m@0
   118
	// (returning the new matched element set)
indvd00m@0
   119
	pushStack: function( elems ) {
indvd00m@0
   120
indvd00m@0
   121
		// Build a new jQuery matched element set
indvd00m@0
   122
		var ret = jQuery.merge( this.constructor(), elems );
indvd00m@0
   123
indvd00m@0
   124
		// Add the old object onto the stack (as a reference)
indvd00m@0
   125
		ret.prevObject = this;
indvd00m@0
   126
		ret.context = this.context;
indvd00m@0
   127
indvd00m@0
   128
		// Return the newly-formed element set
indvd00m@0
   129
		return ret;
indvd00m@0
   130
	},
indvd00m@0
   131
indvd00m@0
   132
	// Execute a callback for every element in the matched set.
indvd00m@0
   133
	// (You can seed the arguments with an array of args, but this is
indvd00m@0
   134
	// only used internally.)
indvd00m@0
   135
	each: function( callback, args ) {
indvd00m@0
   136
		return jQuery.each( this, callback, args );
indvd00m@0
   137
	},
indvd00m@0
   138
indvd00m@0
   139
	map: function( callback ) {
indvd00m@0
   140
		return this.pushStack( jQuery.map(this, function( elem, i ) {
indvd00m@0
   141
			return callback.call( elem, i, elem );
indvd00m@0
   142
		}));
indvd00m@0
   143
	},
indvd00m@0
   144
indvd00m@0
   145
	slice: function() {
indvd00m@0
   146
		return this.pushStack( slice.apply( this, arguments ) );
indvd00m@0
   147
	},
indvd00m@0
   148
indvd00m@0
   149
	first: function() {
indvd00m@0
   150
		return this.eq( 0 );
indvd00m@0
   151
	},
indvd00m@0
   152
indvd00m@0
   153
	last: function() {
indvd00m@0
   154
		return this.eq( -1 );
indvd00m@0
   155
	},
indvd00m@0
   156
indvd00m@0
   157
	eq: function( i ) {
indvd00m@0
   158
		var len = this.length,
indvd00m@0
   159
			j = +i + ( i < 0 ? len : 0 );
indvd00m@0
   160
		return this.pushStack( j >= 0 && j < len ? [ this[j] ] : [] );
indvd00m@0
   161
	},
indvd00m@0
   162
indvd00m@0
   163
	end: function() {
indvd00m@0
   164
		return this.prevObject || this.constructor(null);
indvd00m@0
   165
	},
indvd00m@0
   166
indvd00m@0
   167
	// For internal use only.
indvd00m@0
   168
	// Behaves like an Array's method, not like a jQuery method.
indvd00m@0
   169
	push: push,
indvd00m@0
   170
	sort: deletedIds.sort,
indvd00m@0
   171
	splice: deletedIds.splice
indvd00m@0
   172
};
indvd00m@0
   173
indvd00m@0
   174
jQuery.extend = jQuery.fn.extend = function() {
indvd00m@0
   175
	var src, copyIsArray, copy, name, options, clone,
indvd00m@0
   176
		target = arguments[0] || {},
indvd00m@0
   177
		i = 1,
indvd00m@0
   178
		length = arguments.length,
indvd00m@0
   179
		deep = false;
indvd00m@0
   180
indvd00m@0
   181
	// Handle a deep copy situation
indvd00m@0
   182
	if ( typeof target === "boolean" ) {
indvd00m@0
   183
		deep = target;
indvd00m@0
   184
indvd00m@0
   185
		// skip the boolean and the target
indvd00m@0
   186
		target = arguments[ i ] || {};
indvd00m@0
   187
		i++;
indvd00m@0
   188
	}
indvd00m@0
   189
indvd00m@0
   190
	// Handle case when target is a string or something (possible in deep copy)
indvd00m@0
   191
	if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
indvd00m@0
   192
		target = {};
indvd00m@0
   193
	}
indvd00m@0
   194
indvd00m@0
   195
	// extend jQuery itself if only one argument is passed
indvd00m@0
   196
	if ( i === length ) {
indvd00m@0
   197
		target = this;
indvd00m@0
   198
		i--;
indvd00m@0
   199
	}
indvd00m@0
   200
indvd00m@0
   201
	for ( ; i < length; i++ ) {
indvd00m@0
   202
		// Only deal with non-null/undefined values
indvd00m@0
   203
		if ( (options = arguments[ i ]) != null ) {
indvd00m@0
   204
			// Extend the base object
indvd00m@0
   205
			for ( name in options ) {
indvd00m@0
   206
				src = target[ name ];
indvd00m@0
   207
				copy = options[ name ];
indvd00m@0
   208
indvd00m@0
   209
				// Prevent never-ending loop
indvd00m@0
   210
				if ( target === copy ) {
indvd00m@0
   211
					continue;
indvd00m@0
   212
				}
indvd00m@0
   213
indvd00m@0
   214
				// Recurse if we're merging plain objects or arrays
indvd00m@0
   215
				if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {
indvd00m@0
   216
					if ( copyIsArray ) {
indvd00m@0
   217
						copyIsArray = false;
indvd00m@0
   218
						clone = src && jQuery.isArray(src) ? src : [];
indvd00m@0
   219
indvd00m@0
   220
					} else {
indvd00m@0
   221
						clone = src && jQuery.isPlainObject(src) ? src : {};
indvd00m@0
   222
					}
indvd00m@0
   223
indvd00m@0
   224
					// Never move original objects, clone them
indvd00m@0
   225
					target[ name ] = jQuery.extend( deep, clone, copy );
indvd00m@0
   226
indvd00m@0
   227
				// Don't bring in undefined values
indvd00m@0
   228
				} else if ( copy !== undefined ) {
indvd00m@0
   229
					target[ name ] = copy;
indvd00m@0
   230
				}
indvd00m@0
   231
			}
indvd00m@0
   232
		}
indvd00m@0
   233
	}
indvd00m@0
   234
indvd00m@0
   235
	// Return the modified object
indvd00m@0
   236
	return target;
indvd00m@0
   237
};
indvd00m@0
   238
indvd00m@0
   239
jQuery.extend({
indvd00m@0
   240
	// Unique for each copy of jQuery on the page
indvd00m@0
   241
	expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ),
indvd00m@0
   242
indvd00m@0
   243
	// Assume jQuery is ready without the ready module
indvd00m@0
   244
	isReady: true,
indvd00m@0
   245
indvd00m@0
   246
	error: function( msg ) {
indvd00m@0
   247
		throw new Error( msg );
indvd00m@0
   248
	},
indvd00m@0
   249
indvd00m@0
   250
	noop: function() {},
indvd00m@0
   251
indvd00m@0
   252
	// See test/unit/core.js for details concerning isFunction.
indvd00m@0
   253
	// Since version 1.3, DOM methods and functions like alert
indvd00m@0
   254
	// aren't supported. They return false on IE (#2968).
indvd00m@0
   255
	isFunction: function( obj ) {
indvd00m@0
   256
		return jQuery.type(obj) === "function";
indvd00m@0
   257
	},
indvd00m@0
   258
indvd00m@0
   259
	isArray: Array.isArray || function( obj ) {
indvd00m@0
   260
		return jQuery.type(obj) === "array";
indvd00m@0
   261
	},
indvd00m@0
   262
indvd00m@0
   263
	isWindow: function( obj ) {
indvd00m@0
   264
		/* jshint eqeqeq: false */
indvd00m@0
   265
		return obj != null && obj == obj.window;
indvd00m@0
   266
	},
indvd00m@0
   267
indvd00m@0
   268
	isNumeric: function( obj ) {
indvd00m@0
   269
		// parseFloat NaNs numeric-cast false positives (null|true|false|"")
indvd00m@0
   270
		// ...but misinterprets leading-number strings, particularly hex literals ("0x...")
indvd00m@0
   271
		// subtraction forces infinities to NaN
indvd00m@0
   272
		// adding 1 corrects loss of precision from parseFloat (#15100)
indvd00m@0
   273
		return !jQuery.isArray( obj ) && (obj - parseFloat( obj ) + 1) >= 0;
indvd00m@0
   274
	},
indvd00m@0
   275
indvd00m@0
   276
	isEmptyObject: function( obj ) {
indvd00m@0
   277
		var name;
indvd00m@0
   278
		for ( name in obj ) {
indvd00m@0
   279
			return false;
indvd00m@0
   280
		}
indvd00m@0
   281
		return true;
indvd00m@0
   282
	},
indvd00m@0
   283
indvd00m@0
   284
	isPlainObject: function( obj ) {
indvd00m@0
   285
		var key;
indvd00m@0
   286
indvd00m@0
   287
		// Must be an Object.
indvd00m@0
   288
		// Because of IE, we also have to check the presence of the constructor property.
indvd00m@0
   289
		// Make sure that DOM nodes and window objects don't pass through, as well
indvd00m@0
   290
		if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
indvd00m@0
   291
			return false;
indvd00m@0
   292
		}
indvd00m@0
   293
indvd00m@0
   294
		try {
indvd00m@0
   295
			// Not own constructor property must be Object
indvd00m@0
   296
			if ( obj.constructor &&
indvd00m@0
   297
				!hasOwn.call(obj, "constructor") &&
indvd00m@0
   298
				!hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) {
indvd00m@0
   299
				return false;
indvd00m@0
   300
			}
indvd00m@0
   301
		} catch ( e ) {
indvd00m@0
   302
			// IE8,9 Will throw exceptions on certain host objects #9897
indvd00m@0
   303
			return false;
indvd00m@0
   304
		}
indvd00m@0
   305
indvd00m@0
   306
		// Support: IE<9
indvd00m@0
   307
		// Handle iteration over inherited properties before own properties.
indvd00m@0
   308
		if ( support.ownLast ) {
indvd00m@0
   309
			for ( key in obj ) {
indvd00m@0
   310
				return hasOwn.call( obj, key );
indvd00m@0
   311
			}
indvd00m@0
   312
		}
indvd00m@0
   313
indvd00m@0
   314
		// Own properties are enumerated firstly, so to speed up,
indvd00m@0
   315
		// if last one is own, then all properties are own.
indvd00m@0
   316
		for ( key in obj ) {}
indvd00m@0
   317
indvd00m@0
   318
		return key === undefined || hasOwn.call( obj, key );
indvd00m@0
   319
	},
indvd00m@0
   320
indvd00m@0
   321
	type: function( obj ) {
indvd00m@0
   322
		if ( obj == null ) {
indvd00m@0
   323
			return obj + "";
indvd00m@0
   324
		}
indvd00m@0
   325
		return typeof obj === "object" || typeof obj === "function" ?
indvd00m@0
   326
			class2type[ toString.call(obj) ] || "object" :
indvd00m@0
   327
			typeof obj;
indvd00m@0
   328
	},
indvd00m@0
   329
indvd00m@0
   330
	// Evaluates a script in a global context
indvd00m@0
   331
	// Workarounds based on findings by Jim Driscoll
indvd00m@0
   332
	// http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context
indvd00m@0
   333
	globalEval: function( data ) {
indvd00m@0
   334
		if ( data && jQuery.trim( data ) ) {
indvd00m@0
   335
			// We use execScript on Internet Explorer
indvd00m@0
   336
			// We use an anonymous function so that context is window
indvd00m@0
   337
			// rather than jQuery in Firefox
indvd00m@0
   338
			( window.execScript || function( data ) {
indvd00m@0
   339
				window[ "eval" ].call( window, data );
indvd00m@0
   340
			} )( data );
indvd00m@0
   341
		}
indvd00m@0
   342
	},
indvd00m@0
   343
indvd00m@0
   344
	// Convert dashed to camelCase; used by the css and data modules
indvd00m@0
   345
	// Microsoft forgot to hump their vendor prefix (#9572)
indvd00m@0
   346
	camelCase: function( string ) {
indvd00m@0
   347
		return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
indvd00m@0
   348
	},
indvd00m@0
   349
indvd00m@0
   350
	nodeName: function( elem, name ) {
indvd00m@0
   351
		return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
indvd00m@0
   352
	},
indvd00m@0
   353
indvd00m@0
   354
	// args is for internal usage only
indvd00m@0
   355
	each: function( obj, callback, args ) {
indvd00m@0
   356
		var value,
indvd00m@0
   357
			i = 0,
indvd00m@0
   358
			length = obj.length,
indvd00m@0
   359
			isArray = isArraylike( obj );
indvd00m@0
   360
indvd00m@0
   361
		if ( args ) {
indvd00m@0
   362
			if ( isArray ) {
indvd00m@0
   363
				for ( ; i < length; i++ ) {
indvd00m@0
   364
					value = callback.apply( obj[ i ], args );
indvd00m@0
   365
indvd00m@0
   366
					if ( value === false ) {
indvd00m@0
   367
						break;
indvd00m@0
   368
					}
indvd00m@0
   369
				}
indvd00m@0
   370
			} else {
indvd00m@0
   371
				for ( i in obj ) {
indvd00m@0
   372
					value = callback.apply( obj[ i ], args );
indvd00m@0
   373
indvd00m@0
   374
					if ( value === false ) {
indvd00m@0
   375
						break;
indvd00m@0
   376
					}
indvd00m@0
   377
				}
indvd00m@0
   378
			}
indvd00m@0
   379
indvd00m@0
   380
		// A special, fast, case for the most common use of each
indvd00m@0
   381
		} else {
indvd00m@0
   382
			if ( isArray ) {
indvd00m@0
   383
				for ( ; i < length; i++ ) {
indvd00m@0
   384
					value = callback.call( obj[ i ], i, obj[ i ] );
indvd00m@0
   385
indvd00m@0
   386
					if ( value === false ) {
indvd00m@0
   387
						break;
indvd00m@0
   388
					}
indvd00m@0
   389
				}
indvd00m@0
   390
			} else {
indvd00m@0
   391
				for ( i in obj ) {
indvd00m@0
   392
					value = callback.call( obj[ i ], i, obj[ i ] );
indvd00m@0
   393
indvd00m@0
   394
					if ( value === false ) {
indvd00m@0
   395
						break;
indvd00m@0
   396
					}
indvd00m@0
   397
				}
indvd00m@0
   398
			}
indvd00m@0
   399
		}
indvd00m@0
   400
indvd00m@0
   401
		return obj;
indvd00m@0
   402
	},
indvd00m@0
   403
indvd00m@0
   404
	// Support: Android<4.1, IE<9
indvd00m@0
   405
	trim: function( text ) {
indvd00m@0
   406
		return text == null ?
indvd00m@0
   407
			"" :
indvd00m@0
   408
			( text + "" ).replace( rtrim, "" );
indvd00m@0
   409
	},
indvd00m@0
   410
indvd00m@0
   411
	// results is for internal usage only
indvd00m@0
   412
	makeArray: function( arr, results ) {
indvd00m@0
   413
		var ret = results || [];
indvd00m@0
   414
indvd00m@0
   415
		if ( arr != null ) {
indvd00m@0
   416
			if ( isArraylike( Object(arr) ) ) {
indvd00m@0
   417
				jQuery.merge( ret,
indvd00m@0
   418
					typeof arr === "string" ?
indvd00m@0
   419
					[ arr ] : arr
indvd00m@0
   420
				);
indvd00m@0
   421
			} else {
indvd00m@0
   422
				push.call( ret, arr );
indvd00m@0
   423
			}
indvd00m@0
   424
		}
indvd00m@0
   425
indvd00m@0
   426
		return ret;
indvd00m@0
   427
	},
indvd00m@0
   428
indvd00m@0
   429
	inArray: function( elem, arr, i ) {
indvd00m@0
   430
		var len;
indvd00m@0
   431
indvd00m@0
   432
		if ( arr ) {
indvd00m@0
   433
			if ( indexOf ) {
indvd00m@0
   434
				return indexOf.call( arr, elem, i );
indvd00m@0
   435
			}
indvd00m@0
   436
indvd00m@0
   437
			len = arr.length;
indvd00m@0
   438
			i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0;
indvd00m@0
   439
indvd00m@0
   440
			for ( ; i < len; i++ ) {
indvd00m@0
   441
				// Skip accessing in sparse arrays
indvd00m@0
   442
				if ( i in arr && arr[ i ] === elem ) {
indvd00m@0
   443
					return i;
indvd00m@0
   444
				}
indvd00m@0
   445
			}
indvd00m@0
   446
		}
indvd00m@0
   447
indvd00m@0
   448
		return -1;
indvd00m@0
   449
	},
indvd00m@0
   450
indvd00m@0
   451
	merge: function( first, second ) {
indvd00m@0
   452
		var len = +second.length,
indvd00m@0
   453
			j = 0,
indvd00m@0
   454
			i = first.length;
indvd00m@0
   455
indvd00m@0
   456
		while ( j < len ) {
indvd00m@0
   457
			first[ i++ ] = second[ j++ ];
indvd00m@0
   458
		}
indvd00m@0
   459
indvd00m@0
   460
		// Support: IE<9
indvd00m@0
   461
		// Workaround casting of .length to NaN on otherwise arraylike objects (e.g., NodeLists)
indvd00m@0
   462
		if ( len !== len ) {
indvd00m@0
   463
			while ( second[j] !== undefined ) {
indvd00m@0
   464
				first[ i++ ] = second[ j++ ];
indvd00m@0
   465
			}
indvd00m@0
   466
		}
indvd00m@0
   467
indvd00m@0
   468
		first.length = i;
indvd00m@0
   469
indvd00m@0
   470
		return first;
indvd00m@0
   471
	},
indvd00m@0
   472
indvd00m@0
   473
	grep: function( elems, callback, invert ) {
indvd00m@0
   474
		var callbackInverse,
indvd00m@0
   475
			matches = [],
indvd00m@0
   476
			i = 0,
indvd00m@0
   477
			length = elems.length,
indvd00m@0
   478
			callbackExpect = !invert;
indvd00m@0
   479
indvd00m@0
   480
		// Go through the array, only saving the items
indvd00m@0
   481
		// that pass the validator function
indvd00m@0
   482
		for ( ; i < length; i++ ) {
indvd00m@0
   483
			callbackInverse = !callback( elems[ i ], i );
indvd00m@0
   484
			if ( callbackInverse !== callbackExpect ) {
indvd00m@0
   485
				matches.push( elems[ i ] );
indvd00m@0
   486
			}
indvd00m@0
   487
		}
indvd00m@0
   488
indvd00m@0
   489
		return matches;
indvd00m@0
   490
	},
indvd00m@0
   491
indvd00m@0
   492
	// arg is for internal usage only
indvd00m@0
   493
	map: function( elems, callback, arg ) {
indvd00m@0
   494
		var value,
indvd00m@0
   495
			i = 0,
indvd00m@0
   496
			length = elems.length,
indvd00m@0
   497
			isArray = isArraylike( elems ),
indvd00m@0
   498
			ret = [];
indvd00m@0
   499
indvd00m@0
   500
		// Go through the array, translating each of the items to their new values
indvd00m@0
   501
		if ( isArray ) {
indvd00m@0
   502
			for ( ; i < length; i++ ) {
indvd00m@0
   503
				value = callback( elems[ i ], i, arg );
indvd00m@0
   504
indvd00m@0
   505
				if ( value != null ) {
indvd00m@0
   506
					ret.push( value );
indvd00m@0
   507
				}
indvd00m@0
   508
			}
indvd00m@0
   509
indvd00m@0
   510
		// Go through every key on the object,
indvd00m@0
   511
		} else {
indvd00m@0
   512
			for ( i in elems ) {
indvd00m@0
   513
				value = callback( elems[ i ], i, arg );
indvd00m@0
   514
indvd00m@0
   515
				if ( value != null ) {
indvd00m@0
   516
					ret.push( value );
indvd00m@0
   517
				}
indvd00m@0
   518
			}
indvd00m@0
   519
		}
indvd00m@0
   520
indvd00m@0
   521
		// Flatten any nested arrays
indvd00m@0
   522
		return concat.apply( [], ret );
indvd00m@0
   523
	},
indvd00m@0
   524
indvd00m@0
   525
	// A global GUID counter for objects
indvd00m@0
   526
	guid: 1,
indvd00m@0
   527
indvd00m@0
   528
	// Bind a function to a context, optionally partially applying any
indvd00m@0
   529
	// arguments.
indvd00m@0
   530
	proxy: function( fn, context ) {
indvd00m@0
   531
		var args, proxy, tmp;
indvd00m@0
   532
indvd00m@0
   533
		if ( typeof context === "string" ) {
indvd00m@0
   534
			tmp = fn[ context ];
indvd00m@0
   535
			context = fn;
indvd00m@0
   536
			fn = tmp;
indvd00m@0
   537
		}
indvd00m@0
   538
indvd00m@0
   539
		// Quick check to determine if target is callable, in the spec
indvd00m@0
   540
		// this throws a TypeError, but we will just return undefined.
indvd00m@0
   541
		if ( !jQuery.isFunction( fn ) ) {
indvd00m@0
   542
			return undefined;
indvd00m@0
   543
		}
indvd00m@0
   544
indvd00m@0
   545
		// Simulated bind
indvd00m@0
   546
		args = slice.call( arguments, 2 );
indvd00m@0
   547
		proxy = function() {
indvd00m@0
   548
			return fn.apply( context || this, args.concat( slice.call( arguments ) ) );
indvd00m@0
   549
		};
indvd00m@0
   550
indvd00m@0
   551
		// Set the guid of unique handler to the same of original handler, so it can be removed
indvd00m@0
   552
		proxy.guid = fn.guid = fn.guid || jQuery.guid++;
indvd00m@0
   553
indvd00m@0
   554
		return proxy;
indvd00m@0
   555
	},
indvd00m@0
   556
indvd00m@0
   557
	now: function() {
indvd00m@0
   558
		return +( new Date() );
indvd00m@0
   559
	},
indvd00m@0
   560
indvd00m@0
   561
	// jQuery.support is not used in Core but other projects attach their
indvd00m@0
   562
	// properties to it so it needs to exist.
indvd00m@0
   563
	support: support
indvd00m@0
   564
});
indvd00m@0
   565
indvd00m@0
   566
// Populate the class2type map
indvd00m@0
   567
jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) {
indvd00m@0
   568
	class2type[ "[object " + name + "]" ] = name.toLowerCase();
indvd00m@0
   569
});
indvd00m@0
   570
indvd00m@0
   571
function isArraylike( obj ) {
indvd00m@0
   572
indvd00m@0
   573
	// Support: iOS 8.2 (not reproducible in simulator)
indvd00m@0
   574
	// `in` check used to prevent JIT error (gh-2145)
indvd00m@0
   575
	// hasOwn isn't used here due to false negatives
indvd00m@0
   576
	// regarding Nodelist length in IE
indvd00m@0
   577
	var length = "length" in obj && obj.length,
indvd00m@0
   578
		type = jQuery.type( obj );
indvd00m@0
   579
indvd00m@0
   580
	if ( type === "function" || jQuery.isWindow( obj ) ) {
indvd00m@0
   581
		return false;
indvd00m@0
   582
	}
indvd00m@0
   583
indvd00m@0
   584
	if ( obj.nodeType === 1 && length ) {
indvd00m@0
   585
		return true;
indvd00m@0
   586
	}
indvd00m@0
   587
indvd00m@0
   588
	return type === "array" || length === 0 ||
indvd00m@0
   589
		typeof length === "number" && length > 0 && ( length - 1 ) in obj;
indvd00m@0
   590
}
indvd00m@0
   591
var Sizzle =
indvd00m@0
   592
/*!
indvd00m@0
   593
 * Sizzle CSS Selector Engine v2.2.0-pre
indvd00m@0
   594
 * http://sizzlejs.com/
indvd00m@0
   595
 *
indvd00m@0
   596
 * Copyright 2008, 2014 jQuery Foundation, Inc. and other contributors
indvd00m@0
   597
 * Released under the MIT license
indvd00m@0
   598
 * http://jquery.org/license
indvd00m@0
   599
 *
indvd00m@0
   600
 * Date: 2014-12-16
indvd00m@0
   601
 */
indvd00m@0
   602
(function( window ) {
indvd00m@0
   603
indvd00m@0
   604
var i,
indvd00m@0
   605
	support,
indvd00m@0
   606
	Expr,
indvd00m@0
   607
	getText,
indvd00m@0
   608
	isXML,
indvd00m@0
   609
	tokenize,
indvd00m@0
   610
	compile,
indvd00m@0
   611
	select,
indvd00m@0
   612
	outermostContext,
indvd00m@0
   613
	sortInput,
indvd00m@0
   614
	hasDuplicate,
indvd00m@0
   615
indvd00m@0
   616
	// Local document vars
indvd00m@0
   617
	setDocument,
indvd00m@0
   618
	document,
indvd00m@0
   619
	docElem,
indvd00m@0
   620
	documentIsHTML,
indvd00m@0
   621
	rbuggyQSA,
indvd00m@0
   622
	rbuggyMatches,
indvd00m@0
   623
	matches,
indvd00m@0
   624
	contains,
indvd00m@0
   625
indvd00m@0
   626
	// Instance-specific data
indvd00m@0
   627
	expando = "sizzle" + 1 * new Date(),
indvd00m@0
   628
	preferredDoc = window.document,
indvd00m@0
   629
	dirruns = 0,
indvd00m@0
   630
	done = 0,
indvd00m@0
   631
	classCache = createCache(),
indvd00m@0
   632
	tokenCache = createCache(),
indvd00m@0
   633
	compilerCache = createCache(),
indvd00m@0
   634
	sortOrder = function( a, b ) {
indvd00m@0
   635
		if ( a === b ) {
indvd00m@0
   636
			hasDuplicate = true;
indvd00m@0
   637
		}
indvd00m@0
   638
		return 0;
indvd00m@0
   639
	},
indvd00m@0
   640
indvd00m@0
   641
	// General-purpose constants
indvd00m@0
   642
	MAX_NEGATIVE = 1 << 31,
indvd00m@0
   643
indvd00m@0
   644
	// Instance methods
indvd00m@0
   645
	hasOwn = ({}).hasOwnProperty,
indvd00m@0
   646
	arr = [],
indvd00m@0
   647
	pop = arr.pop,
indvd00m@0
   648
	push_native = arr.push,
indvd00m@0
   649
	push = arr.push,
indvd00m@0
   650
	slice = arr.slice,
indvd00m@0
   651
	// Use a stripped-down indexOf as it's faster than native
indvd00m@0
   652
	// http://jsperf.com/thor-indexof-vs-for/5
indvd00m@0
   653
	indexOf = function( list, elem ) {
indvd00m@0
   654
		var i = 0,
indvd00m@0
   655
			len = list.length;
indvd00m@0
   656
		for ( ; i < len; i++ ) {
indvd00m@0
   657
			if ( list[i] === elem ) {
indvd00m@0
   658
				return i;
indvd00m@0
   659
			}
indvd00m@0
   660
		}
indvd00m@0
   661
		return -1;
indvd00m@0
   662
	},
indvd00m@0
   663
indvd00m@0
   664
	booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
indvd00m@0
   665
indvd00m@0
   666
	// Regular expressions
indvd00m@0
   667
indvd00m@0
   668
	// Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace
indvd00m@0
   669
	whitespace = "[\\x20\\t\\r\\n\\f]",
indvd00m@0
   670
	// http://www.w3.org/TR/css3-syntax/#characters
indvd00m@0
   671
	characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",
indvd00m@0
   672
indvd00m@0
   673
	// Loosely modeled on CSS identifier characters
indvd00m@0
   674
	// An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors
indvd00m@0
   675
	// Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
indvd00m@0
   676
	identifier = characterEncoding.replace( "w", "w#" ),
indvd00m@0
   677
indvd00m@0
   678
	// Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
indvd00m@0
   679
	attributes = "\\[" + whitespace + "*(" + characterEncoding + ")(?:" + whitespace +
indvd00m@0
   680
		// Operator (capture 2)
indvd00m@0
   681
		"*([*^$|!~]?=)" + whitespace +
indvd00m@0
   682
		// "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
indvd00m@0
   683
		"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace +
indvd00m@0
   684
		"*\\]",
indvd00m@0
   685
indvd00m@0
   686
	pseudos = ":(" + characterEncoding + ")(?:\\((" +
indvd00m@0
   687
		// To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
indvd00m@0
   688
		// 1. quoted (capture 3; capture 4 or capture 5)
indvd00m@0
   689
		"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" +
indvd00m@0
   690
		// 2. simple (capture 6)
indvd00m@0
   691
		"((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" +
indvd00m@0
   692
		// 3. anything else (capture 2)
indvd00m@0
   693
		".*" +
indvd00m@0
   694
		")\\)|)",
indvd00m@0
   695
indvd00m@0
   696
	// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
indvd00m@0
   697
	rwhitespace = new RegExp( whitespace + "+", "g" ),
indvd00m@0
   698
	rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ),
indvd00m@0
   699
indvd00m@0
   700
	rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
indvd00m@0
   701
	rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ),
indvd00m@0
   702
indvd00m@0
   703
	rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ),
indvd00m@0
   704
indvd00m@0
   705
	rpseudo = new RegExp( pseudos ),
indvd00m@0
   706
	ridentifier = new RegExp( "^" + identifier + "$" ),
indvd00m@0
   707
indvd00m@0
   708
	matchExpr = {
indvd00m@0
   709
		"ID": new RegExp( "^#(" + characterEncoding + ")" ),
indvd00m@0
   710
		"CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ),
indvd00m@0
   711
		"TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ),
indvd00m@0
   712
		"ATTR": new RegExp( "^" + attributes ),
indvd00m@0
   713
		"PSEUDO": new RegExp( "^" + pseudos ),
indvd00m@0
   714
		"CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace +
indvd00m@0
   715
			"*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace +
indvd00m@0
   716
			"*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
indvd00m@0
   717
		"bool": new RegExp( "^(?:" + booleans + ")$", "i" ),
indvd00m@0
   718
		// For use in libraries implementing .is()
indvd00m@0
   719
		// We use this for POS matching in `select`
indvd00m@0
   720
		"needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +
indvd00m@0
   721
			whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
indvd00m@0
   722
	},
indvd00m@0
   723
indvd00m@0
   724
	rinputs = /^(?:input|select|textarea|button)$/i,
indvd00m@0
   725
	rheader = /^h\d$/i,
indvd00m@0
   726
indvd00m@0
   727
	rnative = /^[^{]+\{\s*\[native \w/,
indvd00m@0
   728
indvd00m@0
   729
	// Easily-parseable/retrievable ID or TAG or CLASS selectors
indvd00m@0
   730
	rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
indvd00m@0
   731
indvd00m@0
   732
	rsibling = /[+~]/,
indvd00m@0
   733
	rescape = /'|\\/g,
indvd00m@0
   734
indvd00m@0
   735
	// CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
indvd00m@0
   736
	runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ),
indvd00m@0
   737
	funescape = function( _, escaped, escapedWhitespace ) {
indvd00m@0
   738
		var high = "0x" + escaped - 0x10000;
indvd00m@0
   739
		// NaN means non-codepoint
indvd00m@0
   740
		// Support: Firefox<24
indvd00m@0
   741
		// Workaround erroneous numeric interpretation of +"0x"
indvd00m@0
   742
		return high !== high || escapedWhitespace ?
indvd00m@0
   743
			escaped :
indvd00m@0
   744
			high < 0 ?
indvd00m@0
   745
				// BMP codepoint
indvd00m@0
   746
				String.fromCharCode( high + 0x10000 ) :
indvd00m@0
   747
				// Supplemental Plane codepoint (surrogate pair)
indvd00m@0
   748
				String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
indvd00m@0
   749
	},
indvd00m@0
   750
indvd00m@0
   751
	// Used for iframes
indvd00m@0
   752
	// See setDocument()
indvd00m@0
   753
	// Removing the function wrapper causes a "Permission Denied"
indvd00m@0
   754
	// error in IE
indvd00m@0
   755
	unloadHandler = function() {
indvd00m@0
   756
		setDocument();
indvd00m@0
   757
	};
indvd00m@0
   758
indvd00m@0
   759
// Optimize for push.apply( _, NodeList )
indvd00m@0
   760
try {
indvd00m@0
   761
	push.apply(
indvd00m@0
   762
		(arr = slice.call( preferredDoc.childNodes )),
indvd00m@0
   763
		preferredDoc.childNodes
indvd00m@0
   764
	);
indvd00m@0
   765
	// Support: Android<4.0
indvd00m@0
   766
	// Detect silently failing push.apply
indvd00m@0
   767
	arr[ preferredDoc.childNodes.length ].nodeType;
indvd00m@0
   768
} catch ( e ) {
indvd00m@0
   769
	push = { apply: arr.length ?
indvd00m@0
   770
indvd00m@0
   771
		// Leverage slice if possible
indvd00m@0
   772
		function( target, els ) {
indvd00m@0
   773
			push_native.apply( target, slice.call(els) );
indvd00m@0
   774
		} :
indvd00m@0
   775
indvd00m@0
   776
		// Support: IE<9
indvd00m@0
   777
		// Otherwise append directly
indvd00m@0
   778
		function( target, els ) {
indvd00m@0
   779
			var j = target.length,
indvd00m@0
   780
				i = 0;
indvd00m@0
   781
			// Can't trust NodeList.length
indvd00m@0
   782
			while ( (target[j++] = els[i++]) ) {}
indvd00m@0
   783
			target.length = j - 1;
indvd00m@0
   784
		}
indvd00m@0
   785
	};
indvd00m@0
   786
}
indvd00m@0
   787
indvd00m@0
   788
function Sizzle( selector, context, results, seed ) {
indvd00m@0
   789
	var match, elem, m, nodeType,
indvd00m@0
   790
		// QSA vars
indvd00m@0
   791
		i, groups, old, nid, newContext, newSelector;
indvd00m@0
   792
indvd00m@0
   793
	if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {
indvd00m@0
   794
		setDocument( context );
indvd00m@0
   795
	}
indvd00m@0
   796
indvd00m@0
   797
	context = context || document;
indvd00m@0
   798
	results = results || [];
indvd00m@0
   799
	nodeType = context.nodeType;
indvd00m@0
   800
indvd00m@0
   801
	if ( typeof selector !== "string" || !selector ||
indvd00m@0
   802
		nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {
indvd00m@0
   803
indvd00m@0
   804
		return results;
indvd00m@0
   805
	}
indvd00m@0
   806
indvd00m@0
   807
	if ( !seed && documentIsHTML ) {
indvd00m@0
   808
indvd00m@0
   809
		// Try to shortcut find operations when possible (e.g., not under DocumentFragment)
indvd00m@0
   810
		if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) {
indvd00m@0
   811
			// Speed-up: Sizzle("#ID")
indvd00m@0
   812
			if ( (m = match[1]) ) {
indvd00m@0
   813
				if ( nodeType === 9 ) {
indvd00m@0
   814
					elem = context.getElementById( m );
indvd00m@0
   815
					// Check parentNode to catch when Blackberry 4.6 returns
indvd00m@0
   816
					// nodes that are no longer in the document (jQuery #6963)
indvd00m@0
   817
					if ( elem && elem.parentNode ) {
indvd00m@0
   818
						// Handle the case where IE, Opera, and Webkit return items
indvd00m@0
   819
						// by name instead of ID
indvd00m@0
   820
						if ( elem.id === m ) {
indvd00m@0
   821
							results.push( elem );
indvd00m@0
   822
							return results;
indvd00m@0
   823
						}
indvd00m@0
   824
					} else {
indvd00m@0
   825
						return results;
indvd00m@0
   826
					}
indvd00m@0
   827
				} else {
indvd00m@0
   828
					// Context is not a document
indvd00m@0
   829
					if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) &&
indvd00m@0
   830
						contains( context, elem ) && elem.id === m ) {
indvd00m@0
   831
						results.push( elem );
indvd00m@0
   832
						return results;
indvd00m@0
   833
					}
indvd00m@0
   834
				}
indvd00m@0
   835
indvd00m@0
   836
			// Speed-up: Sizzle("TAG")
indvd00m@0
   837
			} else if ( match[2] ) {
indvd00m@0
   838
				push.apply( results, context.getElementsByTagName( selector ) );
indvd00m@0
   839
				return results;
indvd00m@0
   840
indvd00m@0
   841
			// Speed-up: Sizzle(".CLASS")
indvd00m@0
   842
			} else if ( (m = match[3]) && support.getElementsByClassName ) {
indvd00m@0
   843
				push.apply( results, context.getElementsByClassName( m ) );
indvd00m@0
   844
				return results;
indvd00m@0
   845
			}
indvd00m@0
   846
		}
indvd00m@0
   847
indvd00m@0
   848
		// QSA path
indvd00m@0
   849
		if ( support.qsa && (!rbuggyQSA || !rbuggyQSA.test( selector )) ) {
indvd00m@0
   850
			nid = old = expando;
indvd00m@0
   851
			newContext = context;
indvd00m@0
   852
			newSelector = nodeType !== 1 && selector;
indvd00m@0
   853
indvd00m@0
   854
			// qSA works strangely on Element-rooted queries
indvd00m@0
   855
			// We can work around this by specifying an extra ID on the root
indvd00m@0
   856
			// and working up from there (Thanks to Andrew Dupont for the technique)
indvd00m@0
   857
			// IE 8 doesn't work on object elements
indvd00m@0
   858
			if ( nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
indvd00m@0
   859
				groups = tokenize( selector );
indvd00m@0
   860
indvd00m@0
   861
				if ( (old = context.getAttribute("id")) ) {
indvd00m@0
   862
					nid = old.replace( rescape, "\\$&" );
indvd00m@0
   863
				} else {
indvd00m@0
   864
					context.setAttribute( "id", nid );
indvd00m@0
   865
				}
indvd00m@0
   866
				nid = "[id='" + nid + "'] ";
indvd00m@0
   867
indvd00m@0
   868
				i = groups.length;
indvd00m@0
   869
				while ( i-- ) {
indvd00m@0
   870
					groups[i] = nid + toSelector( groups[i] );
indvd00m@0
   871
				}
indvd00m@0
   872
				newContext = rsibling.test( selector ) && testContext( context.parentNode ) || context;
indvd00m@0
   873
				newSelector = groups.join(",");
indvd00m@0
   874
			}
indvd00m@0
   875
indvd00m@0
   876
			if ( newSelector ) {
indvd00m@0
   877
				try {
indvd00m@0
   878
					push.apply( results,
indvd00m@0
   879
						newContext.querySelectorAll( newSelector )
indvd00m@0
   880
					);
indvd00m@0
   881
					return results;
indvd00m@0
   882
				} catch(qsaError) {
indvd00m@0
   883
				} finally {
indvd00m@0
   884
					if ( !old ) {
indvd00m@0
   885
						context.removeAttribute("id");
indvd00m@0
   886
					}
indvd00m@0
   887
				}
indvd00m@0
   888
			}
indvd00m@0
   889
		}
indvd00m@0
   890
	}
indvd00m@0
   891
indvd00m@0
   892
	// All others
indvd00m@0
   893
	return select( selector.replace( rtrim, "$1" ), context, results, seed );
indvd00m@0
   894
}
indvd00m@0
   895
indvd00m@0
   896
/**
indvd00m@0
   897
 * Create key-value caches of limited size
indvd00m@0
   898
 * @returns {Function(string, Object)} Returns the Object data after storing it on itself with
indvd00m@0
   899
 *	property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
indvd00m@0
   900
 *	deleting the oldest entry
indvd00m@0
   901
 */
indvd00m@0
   902
function createCache() {
indvd00m@0
   903
	var keys = [];
indvd00m@0
   904
indvd00m@0
   905
	function cache( key, value ) {
indvd00m@0
   906
		// Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
indvd00m@0
   907
		if ( keys.push( key + " " ) > Expr.cacheLength ) {
indvd00m@0
   908
			// Only keep the most recent entries
indvd00m@0
   909
			delete cache[ keys.shift() ];
indvd00m@0
   910
		}
indvd00m@0
   911
		return (cache[ key + " " ] = value);
indvd00m@0
   912
	}
indvd00m@0
   913
	return cache;
indvd00m@0
   914
}
indvd00m@0
   915
indvd00m@0
   916
/**
indvd00m@0
   917
 * Mark a function for special use by Sizzle
indvd00m@0
   918
 * @param {Function} fn The function to mark
indvd00m@0
   919
 */
indvd00m@0
   920
function markFunction( fn ) {
indvd00m@0
   921
	fn[ expando ] = true;
indvd00m@0
   922
	return fn;
indvd00m@0
   923
}
indvd00m@0
   924
indvd00m@0
   925
/**
indvd00m@0
   926
 * Support testing using an element
indvd00m@0
   927
 * @param {Function} fn Passed the created div and expects a boolean result
indvd00m@0
   928
 */
indvd00m@0
   929
function assert( fn ) {
indvd00m@0
   930
	var div = document.createElement("div");
indvd00m@0
   931
indvd00m@0
   932
	try {
indvd00m@0
   933
		return !!fn( div );
indvd00m@0
   934
	} catch (e) {
indvd00m@0
   935
		return false;
indvd00m@0
   936
	} finally {
indvd00m@0
   937
		// Remove from its parent by default
indvd00m@0
   938
		if ( div.parentNode ) {
indvd00m@0
   939
			div.parentNode.removeChild( div );
indvd00m@0
   940
		}
indvd00m@0
   941
		// release memory in IE
indvd00m@0
   942
		div = null;
indvd00m@0
   943
	}
indvd00m@0
   944
}
indvd00m@0
   945
indvd00m@0
   946
/**
indvd00m@0
   947
 * Adds the same handler for all of the specified attrs
indvd00m@0
   948
 * @param {String} attrs Pipe-separated list of attributes
indvd00m@0
   949
 * @param {Function} handler The method that will be applied
indvd00m@0
   950
 */
indvd00m@0
   951
function addHandle( attrs, handler ) {
indvd00m@0
   952
	var arr = attrs.split("|"),
indvd00m@0
   953
		i = attrs.length;
indvd00m@0
   954
indvd00m@0
   955
	while ( i-- ) {
indvd00m@0
   956
		Expr.attrHandle[ arr[i] ] = handler;
indvd00m@0
   957
	}
indvd00m@0
   958
}
indvd00m@0
   959
indvd00m@0
   960
/**
indvd00m@0
   961
 * Checks document order of two siblings
indvd00m@0
   962
 * @param {Element} a
indvd00m@0
   963
 * @param {Element} b
indvd00m@0
   964
 * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b
indvd00m@0
   965
 */
indvd00m@0
   966
function siblingCheck( a, b ) {
indvd00m@0
   967
	var cur = b && a,
indvd00m@0
   968
		diff = cur && a.nodeType === 1 && b.nodeType === 1 &&
indvd00m@0
   969
			( ~b.sourceIndex || MAX_NEGATIVE ) -
indvd00m@0
   970
			( ~a.sourceIndex || MAX_NEGATIVE );
indvd00m@0
   971
indvd00m@0
   972
	// Use IE sourceIndex if available on both nodes
indvd00m@0
   973
	if ( diff ) {
indvd00m@0
   974
		return diff;
indvd00m@0
   975
	}
indvd00m@0
   976
indvd00m@0
   977
	// Check if b follows a
indvd00m@0
   978
	if ( cur ) {
indvd00m@0
   979
		while ( (cur = cur.nextSibling) ) {
indvd00m@0
   980
			if ( cur === b ) {
indvd00m@0
   981
				return -1;
indvd00m@0
   982
			}
indvd00m@0
   983
		}
indvd00m@0
   984
	}
indvd00m@0
   985
indvd00m@0
   986
	return a ? 1 : -1;
indvd00m@0
   987
}
indvd00m@0
   988
indvd00m@0
   989
/**
indvd00m@0
   990
 * Returns a function to use in pseudos for input types
indvd00m@0
   991
 * @param {String} type
indvd00m@0
   992
 */
indvd00m@0
   993
function createInputPseudo( type ) {
indvd00m@0
   994
	return function( elem ) {
indvd00m@0
   995
		var name = elem.nodeName.toLowerCase();
indvd00m@0
   996
		return name === "input" && elem.type === type;
indvd00m@0
   997
	};
indvd00m@0
   998
}
indvd00m@0
   999
indvd00m@0
  1000
/**
indvd00m@0
  1001
 * Returns a function to use in pseudos for buttons
indvd00m@0
  1002
 * @param {String} type
indvd00m@0
  1003
 */
indvd00m@0
  1004
function createButtonPseudo( type ) {
indvd00m@0
  1005
	return function( elem ) {
indvd00m@0
  1006
		var name = elem.nodeName.toLowerCase();
indvd00m@0
  1007
		return (name === "input" || name === "button") && elem.type === type;
indvd00m@0
  1008
	};
indvd00m@0
  1009
}
indvd00m@0
  1010
indvd00m@0
  1011
/**
indvd00m@0
  1012
 * Returns a function to use in pseudos for positionals
indvd00m@0
  1013
 * @param {Function} fn
indvd00m@0
  1014
 */
indvd00m@0
  1015
function createPositionalPseudo( fn ) {
indvd00m@0
  1016
	return markFunction(function( argument ) {
indvd00m@0
  1017
		argument = +argument;
indvd00m@0
  1018
		return markFunction(function( seed, matches ) {
indvd00m@0
  1019
			var j,
indvd00m@0
  1020
				matchIndexes = fn( [], seed.length, argument ),
indvd00m@0
  1021
				i = matchIndexes.length;
indvd00m@0
  1022
indvd00m@0
  1023
			// Match elements found at the specified indexes
indvd00m@0
  1024
			while ( i-- ) {
indvd00m@0
  1025
				if ( seed[ (j = matchIndexes[i]) ] ) {
indvd00m@0
  1026
					seed[j] = !(matches[j] = seed[j]);
indvd00m@0
  1027
				}
indvd00m@0
  1028
			}
indvd00m@0
  1029
		});
indvd00m@0
  1030
	});
indvd00m@0
  1031
}
indvd00m@0
  1032
indvd00m@0
  1033
/**
indvd00m@0
  1034
 * Checks a node for validity as a Sizzle context
indvd00m@0
  1035
 * @param {Element|Object=} context
indvd00m@0
  1036
 * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
indvd00m@0
  1037
 */
indvd00m@0
  1038
function testContext( context ) {
indvd00m@0
  1039
	return context && typeof context.getElementsByTagName !== "undefined" && context;
indvd00m@0
  1040
}
indvd00m@0
  1041
indvd00m@0
  1042
// Expose support vars for convenience
indvd00m@0
  1043
support = Sizzle.support = {};
indvd00m@0
  1044
indvd00m@0
  1045
/**
indvd00m@0
  1046
 * Detects XML nodes
indvd00m@0
  1047
 * @param {Element|Object} elem An element or a document
indvd00m@0
  1048
 * @returns {Boolean} True iff elem is a non-HTML XML node
indvd00m@0
  1049
 */
indvd00m@0
  1050
isXML = Sizzle.isXML = function( elem ) {
indvd00m@0
  1051
	// documentElement is verified for cases where it doesn't yet exist
indvd00m@0
  1052
	// (such as loading iframes in IE - #4833)
indvd00m@0
  1053
	var documentElement = elem && (elem.ownerDocument || elem).documentElement;
indvd00m@0
  1054
	return documentElement ? documentElement.nodeName !== "HTML" : false;
indvd00m@0
  1055
};
indvd00m@0
  1056
indvd00m@0
  1057
/**
indvd00m@0
  1058
 * Sets document-related variables once based on the current document
indvd00m@0
  1059
 * @param {Element|Object} [doc] An element or document object to use to set the document
indvd00m@0
  1060
 * @returns {Object} Returns the current document
indvd00m@0
  1061
 */
indvd00m@0
  1062
setDocument = Sizzle.setDocument = function( node ) {
indvd00m@0
  1063
	var hasCompare, parent,
indvd00m@0
  1064
		doc = node ? node.ownerDocument || node : preferredDoc;
indvd00m@0
  1065
indvd00m@0
  1066
	// If no document and documentElement is available, return
indvd00m@0
  1067
	if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
indvd00m@0
  1068
		return document;
indvd00m@0
  1069
	}
indvd00m@0
  1070
indvd00m@0
  1071
	// Set our document
indvd00m@0
  1072
	document = doc;
indvd00m@0
  1073
	docElem = doc.documentElement;
indvd00m@0
  1074
	parent = doc.defaultView;
indvd00m@0
  1075
indvd00m@0
  1076
	// Support: IE>8
indvd00m@0
  1077
	// If iframe document is assigned to "document" variable and if iframe has been reloaded,
indvd00m@0
  1078
	// IE will throw "permission denied" error when accessing "document" variable, see jQuery #13936
indvd00m@0
  1079
	// IE6-8 do not support the defaultView property so parent will be undefined
indvd00m@0
  1080
	if ( parent && parent !== parent.top ) {
indvd00m@0
  1081
		// IE11 does not have attachEvent, so all must suffer
indvd00m@0
  1082
		if ( parent.addEventListener ) {
indvd00m@0
  1083
			parent.addEventListener( "unload", unloadHandler, false );
indvd00m@0
  1084
		} else if ( parent.attachEvent ) {
indvd00m@0
  1085
			parent.attachEvent( "onunload", unloadHandler );
indvd00m@0
  1086
		}
indvd00m@0
  1087
	}
indvd00m@0
  1088
indvd00m@0
  1089
	/* Support tests
indvd00m@0
  1090
	---------------------------------------------------------------------- */
indvd00m@0
  1091
	documentIsHTML = !isXML( doc );
indvd00m@0
  1092
indvd00m@0
  1093
	/* Attributes
indvd00m@0
  1094
	---------------------------------------------------------------------- */
indvd00m@0
  1095
indvd00m@0
  1096
	// Support: IE<8
indvd00m@0
  1097
	// Verify that getAttribute really returns attributes and not properties
indvd00m@0
  1098
	// (excepting IE8 booleans)
indvd00m@0
  1099
	support.attributes = assert(function( div ) {
indvd00m@0
  1100
		div.className = "i";
indvd00m@0
  1101
		return !div.getAttribute("className");
indvd00m@0
  1102
	});
indvd00m@0
  1103
indvd00m@0
  1104
	/* getElement(s)By*
indvd00m@0
  1105
	---------------------------------------------------------------------- */
indvd00m@0
  1106
indvd00m@0
  1107
	// Check if getElementsByTagName("*") returns only elements
indvd00m@0
  1108
	support.getElementsByTagName = assert(function( div ) {
indvd00m@0
  1109
		div.appendChild( doc.createComment("") );
indvd00m@0
  1110
		return !div.getElementsByTagName("*").length;
indvd00m@0
  1111
	});
indvd00m@0
  1112
indvd00m@0
  1113
	// Support: IE<9
indvd00m@0
  1114
	support.getElementsByClassName = rnative.test( doc.getElementsByClassName );
indvd00m@0
  1115
indvd00m@0
  1116
	// Support: IE<10
indvd00m@0
  1117
	// Check if getElementById returns elements by name
indvd00m@0
  1118
	// The broken getElementById methods don't pick up programatically-set names,
indvd00m@0
  1119
	// so use a roundabout getElementsByName test
indvd00m@0
  1120
	support.getById = assert(function( div ) {
indvd00m@0
  1121
		docElem.appendChild( div ).id = expando;
indvd00m@0
  1122
		return !doc.getElementsByName || !doc.getElementsByName( expando ).length;
indvd00m@0
  1123
	});
indvd00m@0
  1124
indvd00m@0
  1125
	// ID find and filter
indvd00m@0
  1126
	if ( support.getById ) {
indvd00m@0
  1127
		Expr.find["ID"] = function( id, context ) {
indvd00m@0
  1128
			if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
indvd00m@0
  1129
				var m = context.getElementById( id );
indvd00m@0
  1130
				// Check parentNode to catch when Blackberry 4.6 returns
indvd00m@0
  1131
				// nodes that are no longer in the document #6963
indvd00m@0
  1132
				return m && m.parentNode ? [ m ] : [];
indvd00m@0
  1133
			}
indvd00m@0
  1134
		};
indvd00m@0
  1135
		Expr.filter["ID"] = function( id ) {
indvd00m@0
  1136
			var attrId = id.replace( runescape, funescape );
indvd00m@0
  1137
			return function( elem ) {
indvd00m@0
  1138
				return elem.getAttribute("id") === attrId;
indvd00m@0
  1139
			};
indvd00m@0
  1140
		};
indvd00m@0
  1141
	} else {
indvd00m@0
  1142
		// Support: IE6/7
indvd00m@0
  1143
		// getElementById is not reliable as a find shortcut
indvd00m@0
  1144
		delete Expr.find["ID"];
indvd00m@0
  1145
indvd00m@0
  1146
		Expr.filter["ID"] =  function( id ) {
indvd00m@0
  1147
			var attrId = id.replace( runescape, funescape );
indvd00m@0
  1148
			return function( elem ) {
indvd00m@0
  1149
				var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
indvd00m@0
  1150
				return node && node.value === attrId;
indvd00m@0
  1151
			};
indvd00m@0
  1152
		};
indvd00m@0
  1153
	}
indvd00m@0
  1154
indvd00m@0
  1155
	// Tag
indvd00m@0
  1156
	Expr.find["TAG"] = support.getElementsByTagName ?
indvd00m@0
  1157
		function( tag, context ) {
indvd00m@0
  1158
			if ( typeof context.getElementsByTagName !== "undefined" ) {
indvd00m@0
  1159
				return context.getElementsByTagName( tag );
indvd00m@0
  1160
indvd00m@0
  1161
			// DocumentFragment nodes don't have gEBTN
indvd00m@0
  1162
			} else if ( support.qsa ) {
indvd00m@0
  1163
				return context.querySelectorAll( tag );
indvd00m@0
  1164
			}
indvd00m@0
  1165
		} :
indvd00m@0
  1166
indvd00m@0
  1167
		function( tag, context ) {
indvd00m@0
  1168
			var elem,
indvd00m@0
  1169
				tmp = [],
indvd00m@0
  1170
				i = 0,
indvd00m@0
  1171
				// By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too
indvd00m@0
  1172
				results = context.getElementsByTagName( tag );
indvd00m@0
  1173
indvd00m@0
  1174
			// Filter out possible comments
indvd00m@0
  1175
			if ( tag === "*" ) {
indvd00m@0
  1176
				while ( (elem = results[i++]) ) {
indvd00m@0
  1177
					if ( elem.nodeType === 1 ) {
indvd00m@0
  1178
						tmp.push( elem );
indvd00m@0
  1179
					}
indvd00m@0
  1180
				}
indvd00m@0
  1181
indvd00m@0
  1182
				return tmp;
indvd00m@0
  1183
			}
indvd00m@0
  1184
			return results;
indvd00m@0
  1185
		};
indvd00m@0
  1186
indvd00m@0
  1187
	// Class
indvd00m@0
  1188
	Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) {
indvd00m@0
  1189
		if ( documentIsHTML ) {
indvd00m@0
  1190
			return context.getElementsByClassName( className );
indvd00m@0
  1191
		}
indvd00m@0
  1192
	};
indvd00m@0
  1193
indvd00m@0
  1194
	/* QSA/matchesSelector
indvd00m@0
  1195
	---------------------------------------------------------------------- */
indvd00m@0
  1196
indvd00m@0
  1197
	// QSA and matchesSelector support
indvd00m@0
  1198
indvd00m@0
  1199
	// matchesSelector(:active) reports false when true (IE9/Opera 11.5)
indvd00m@0
  1200
	rbuggyMatches = [];
indvd00m@0
  1201
indvd00m@0
  1202
	// qSa(:focus) reports false when true (Chrome 21)
indvd00m@0
  1203
	// We allow this because of a bug in IE8/9 that throws an error
indvd00m@0
  1204
	// whenever `document.activeElement` is accessed on an iframe
indvd00m@0
  1205
	// So, we allow :focus to pass through QSA all the time to avoid the IE error
indvd00m@0
  1206
	// See http://bugs.jquery.com/ticket/13378
indvd00m@0
  1207
	rbuggyQSA = [];
indvd00m@0
  1208
indvd00m@0
  1209
	if ( (support.qsa = rnative.test( doc.querySelectorAll )) ) {
indvd00m@0
  1210
		// Build QSA regex
indvd00m@0
  1211
		// Regex strategy adopted from Diego Perini
indvd00m@0
  1212
		assert(function( div ) {
indvd00m@0
  1213
			// Select is set to empty string on purpose
indvd00m@0
  1214
			// This is to test IE's treatment of not explicitly
indvd00m@0
  1215
			// setting a boolean content attribute,
indvd00m@0
  1216
			// since its presence should be enough
indvd00m@0
  1217
			// http://bugs.jquery.com/ticket/12359
indvd00m@0
  1218
			docElem.appendChild( div ).innerHTML = "<a id='" + expando + "'></a>" +
indvd00m@0
  1219
				"<select id='" + expando + "-\f]' msallowcapture=''>" +
indvd00m@0
  1220
				"<option selected=''></option></select>";
indvd00m@0
  1221
indvd00m@0
  1222
			// Support: IE8, Opera 11-12.16
indvd00m@0
  1223
			// Nothing should be selected when empty strings follow ^= or $= or *=
indvd00m@0
  1224
			// The test attribute must be unknown in Opera but "safe" for WinRT
indvd00m@0
  1225
			// http://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section
indvd00m@0
  1226
			if ( div.querySelectorAll("[msallowcapture^='']").length ) {
indvd00m@0
  1227
				rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" );
indvd00m@0
  1228
			}
indvd00m@0
  1229
indvd00m@0
  1230
			// Support: IE8
indvd00m@0
  1231
			// Boolean attributes and "value" are not treated correctly
indvd00m@0
  1232
			if ( !div.querySelectorAll("[selected]").length ) {
indvd00m@0
  1233
				rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" );
indvd00m@0
  1234
			}
indvd00m@0
  1235
indvd00m@0
  1236
			// Support: Chrome<29, Android<4.2+, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.7+
indvd00m@0
  1237
			if ( !div.querySelectorAll( "[id~=" + expando + "-]" ).length ) {
indvd00m@0
  1238
				rbuggyQSA.push("~=");
indvd00m@0
  1239
			}
indvd00m@0
  1240
indvd00m@0
  1241
			// Webkit/Opera - :checked should return selected option elements
indvd00m@0
  1242
			// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
indvd00m@0
  1243
			// IE8 throws error here and will not see later tests
indvd00m@0
  1244
			if ( !div.querySelectorAll(":checked").length ) {
indvd00m@0
  1245
				rbuggyQSA.push(":checked");
indvd00m@0
  1246
			}
indvd00m@0
  1247
indvd00m@0
  1248
			// Support: Safari 8+, iOS 8+
indvd00m@0
  1249
			// https://bugs.webkit.org/show_bug.cgi?id=136851
indvd00m@0
  1250
			// In-page `selector#id sibing-combinator selector` fails
indvd00m@0
  1251
			if ( !div.querySelectorAll( "a#" + expando + "+*" ).length ) {
indvd00m@0
  1252
				rbuggyQSA.push(".#.+[+~]");
indvd00m@0
  1253
			}
indvd00m@0
  1254
		});
indvd00m@0
  1255
indvd00m@0
  1256
		assert(function( div ) {
indvd00m@0
  1257
			// Support: Windows 8 Native Apps
indvd00m@0
  1258
			// The type and name attributes are restricted during .innerHTML assignment
indvd00m@0
  1259
			var input = doc.createElement("input");
indvd00m@0
  1260
			input.setAttribute( "type", "hidden" );
indvd00m@0
  1261
			div.appendChild( input ).setAttribute( "name", "D" );
indvd00m@0
  1262
indvd00m@0
  1263
			// Support: IE8
indvd00m@0
  1264
			// Enforce case-sensitivity of name attribute
indvd00m@0
  1265
			if ( div.querySelectorAll("[name=d]").length ) {
indvd00m@0
  1266
				rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" );
indvd00m@0
  1267
			}
indvd00m@0
  1268
indvd00m@0
  1269
			// FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
indvd00m@0
  1270
			// IE8 throws error here and will not see later tests
indvd00m@0
  1271
			if ( !div.querySelectorAll(":enabled").length ) {
indvd00m@0
  1272
				rbuggyQSA.push( ":enabled", ":disabled" );
indvd00m@0
  1273
			}
indvd00m@0
  1274
indvd00m@0
  1275
			// Opera 10-11 does not throw on post-comma invalid pseudos
indvd00m@0
  1276
			div.querySelectorAll("*,:x");
indvd00m@0
  1277
			rbuggyQSA.push(",.*:");
indvd00m@0
  1278
		});
indvd00m@0
  1279
	}
indvd00m@0
  1280
indvd00m@0
  1281
	if ( (support.matchesSelector = rnative.test( (matches = docElem.matches ||
indvd00m@0
  1282
		docElem.webkitMatchesSelector ||
indvd00m@0
  1283
		docElem.mozMatchesSelector ||
indvd00m@0
  1284
		docElem.oMatchesSelector ||
indvd00m@0
  1285
		docElem.msMatchesSelector) )) ) {
indvd00m@0
  1286
indvd00m@0
  1287
		assert(function( div ) {
indvd00m@0
  1288
			// Check to see if it's possible to do matchesSelector
indvd00m@0
  1289
			// on a disconnected node (IE 9)
indvd00m@0
  1290
			support.disconnectedMatch = matches.call( div, "div" );
indvd00m@0
  1291
indvd00m@0
  1292
			// This should fail with an exception
indvd00m@0
  1293
			// Gecko does not error, returns false instead
indvd00m@0
  1294
			matches.call( div, "[s!='']:x" );
indvd00m@0
  1295
			rbuggyMatches.push( "!=", pseudos );
indvd00m@0
  1296
		});
indvd00m@0
  1297
	}
indvd00m@0
  1298
indvd00m@0
  1299
	rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") );
indvd00m@0
  1300
	rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") );
indvd00m@0
  1301
indvd00m@0
  1302
	/* Contains
indvd00m@0
  1303
	---------------------------------------------------------------------- */
indvd00m@0
  1304
	hasCompare = rnative.test( docElem.compareDocumentPosition );
indvd00m@0
  1305
indvd00m@0
  1306
	// Element contains another
indvd00m@0
  1307
	// Purposefully does not implement inclusive descendent
indvd00m@0
  1308
	// As in, an element does not contain itself
indvd00m@0
  1309
	contains = hasCompare || rnative.test( docElem.contains ) ?
indvd00m@0
  1310
		function( a, b ) {
indvd00m@0
  1311
			var adown = a.nodeType === 9 ? a.documentElement : a,
indvd00m@0
  1312
				bup = b && b.parentNode;
indvd00m@0
  1313
			return a === bup || !!( bup && bup.nodeType === 1 && (
indvd00m@0
  1314
				adown.contains ?
indvd00m@0
  1315
					adown.contains( bup ) :
indvd00m@0
  1316
					a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16
indvd00m@0
  1317
			));
indvd00m@0
  1318
		} :
indvd00m@0
  1319
		function( a, b ) {
indvd00m@0
  1320
			if ( b ) {
indvd00m@0
  1321
				while ( (b = b.parentNode) ) {
indvd00m@0
  1322
					if ( b === a ) {
indvd00m@0
  1323
						return true;
indvd00m@0
  1324
					}
indvd00m@0
  1325
				}
indvd00m@0
  1326
			}
indvd00m@0
  1327
			return false;
indvd00m@0
  1328
		};
indvd00m@0
  1329
indvd00m@0
  1330
	/* Sorting
indvd00m@0
  1331
	---------------------------------------------------------------------- */
indvd00m@0
  1332
indvd00m@0
  1333
	// Document order sorting
indvd00m@0
  1334
	sortOrder = hasCompare ?
indvd00m@0
  1335
	function( a, b ) {
indvd00m@0
  1336
indvd00m@0
  1337
		// Flag for duplicate removal
indvd00m@0
  1338
		if ( a === b ) {
indvd00m@0
  1339
			hasDuplicate = true;
indvd00m@0
  1340
			return 0;
indvd00m@0
  1341
		}
indvd00m@0
  1342
indvd00m@0
  1343
		// Sort on method existence if only one input has compareDocumentPosition
indvd00m@0
  1344
		var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
indvd00m@0
  1345
		if ( compare ) {
indvd00m@0
  1346
			return compare;
indvd00m@0
  1347
		}
indvd00m@0
  1348
indvd00m@0
  1349
		// Calculate position if both inputs belong to the same document
indvd00m@0
  1350
		compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?
indvd00m@0
  1351
			a.compareDocumentPosition( b ) :
indvd00m@0
  1352
indvd00m@0
  1353
			// Otherwise we know they are disconnected
indvd00m@0
  1354
			1;
indvd00m@0
  1355
indvd00m@0
  1356
		// Disconnected nodes
indvd00m@0
  1357
		if ( compare & 1 ||
indvd00m@0
  1358
			(!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) {
indvd00m@0
  1359
indvd00m@0
  1360
			// Choose the first element that is related to our preferred document
indvd00m@0
  1361
			if ( a === doc || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) {
indvd00m@0
  1362
				return -1;
indvd00m@0
  1363
			}
indvd00m@0
  1364
			if ( b === doc || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) {
indvd00m@0
  1365
				return 1;
indvd00m@0
  1366
			}
indvd00m@0
  1367
indvd00m@0
  1368
			// Maintain original order
indvd00m@0
  1369
			return sortInput ?
indvd00m@0
  1370
				( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
indvd00m@0
  1371
				0;
indvd00m@0
  1372
		}
indvd00m@0
  1373
indvd00m@0
  1374
		return compare & 4 ? -1 : 1;
indvd00m@0
  1375
	} :
indvd00m@0
  1376
	function( a, b ) {
indvd00m@0
  1377
		// Exit early if the nodes are identical
indvd00m@0
  1378
		if ( a === b ) {
indvd00m@0
  1379
			hasDuplicate = true;
indvd00m@0
  1380
			return 0;
indvd00m@0
  1381
		}
indvd00m@0
  1382
indvd00m@0
  1383
		var cur,
indvd00m@0
  1384
			i = 0,
indvd00m@0
  1385
			aup = a.parentNode,
indvd00m@0
  1386
			bup = b.parentNode,
indvd00m@0
  1387
			ap = [ a ],
indvd00m@0
  1388
			bp = [ b ];
indvd00m@0
  1389
indvd00m@0
  1390
		// Parentless nodes are either documents or disconnected
indvd00m@0
  1391
		if ( !aup || !bup ) {
indvd00m@0
  1392
			return a === doc ? -1 :
indvd00m@0
  1393
				b === doc ? 1 :
indvd00m@0
  1394
				aup ? -1 :
indvd00m@0
  1395
				bup ? 1 :
indvd00m@0
  1396
				sortInput ?
indvd00m@0
  1397
				( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
indvd00m@0
  1398
				0;
indvd00m@0
  1399
indvd00m@0
  1400
		// If the nodes are siblings, we can do a quick check
indvd00m@0
  1401
		} else if ( aup === bup ) {
indvd00m@0
  1402
			return siblingCheck( a, b );
indvd00m@0
  1403
		}
indvd00m@0
  1404
indvd00m@0
  1405
		// Otherwise we need full lists of their ancestors for comparison
indvd00m@0
  1406
		cur = a;
indvd00m@0
  1407
		while ( (cur = cur.parentNode) ) {
indvd00m@0
  1408
			ap.unshift( cur );
indvd00m@0
  1409
		}
indvd00m@0
  1410
		cur = b;
indvd00m@0
  1411
		while ( (cur = cur.parentNode) ) {
indvd00m@0
  1412
			bp.unshift( cur );
indvd00m@0
  1413
		}
indvd00m@0
  1414
indvd00m@0
  1415
		// Walk down the tree looking for a discrepancy
indvd00m@0
  1416
		while ( ap[i] === bp[i] ) {
indvd00m@0
  1417
			i++;
indvd00m@0
  1418
		}
indvd00m@0
  1419
indvd00m@0
  1420
		return i ?
indvd00m@0
  1421
			// Do a sibling check if the nodes have a common ancestor
indvd00m@0
  1422
			siblingCheck( ap[i], bp[i] ) :
indvd00m@0
  1423
indvd00m@0
  1424
			// Otherwise nodes in our document sort first
indvd00m@0
  1425
			ap[i] === preferredDoc ? -1 :
indvd00m@0
  1426
			bp[i] === preferredDoc ? 1 :
indvd00m@0
  1427
			0;
indvd00m@0
  1428
	};
indvd00m@0
  1429
indvd00m@0
  1430
	return doc;
indvd00m@0
  1431
};
indvd00m@0
  1432
indvd00m@0
  1433
Sizzle.matches = function( expr, elements ) {
indvd00m@0
  1434
	return Sizzle( expr, null, null, elements );
indvd00m@0
  1435
};
indvd00m@0
  1436
indvd00m@0
  1437
Sizzle.matchesSelector = function( elem, expr ) {
indvd00m@0
  1438
	// Set document vars if needed
indvd00m@0
  1439
	if ( ( elem.ownerDocument || elem ) !== document ) {
indvd00m@0
  1440
		setDocument( elem );
indvd00m@0
  1441
	}
indvd00m@0
  1442
indvd00m@0
  1443
	// Make sure that attribute selectors are quoted
indvd00m@0
  1444
	expr = expr.replace( rattributeQuotes, "='$1']" );
indvd00m@0
  1445
indvd00m@0
  1446
	if ( support.matchesSelector && documentIsHTML &&
indvd00m@0
  1447
		( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
indvd00m@0
  1448
		( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {
indvd00m@0
  1449
indvd00m@0
  1450
		try {
indvd00m@0
  1451
			var ret = matches.call( elem, expr );
indvd00m@0
  1452
indvd00m@0
  1453
			// IE 9's matchesSelector returns false on disconnected nodes
indvd00m@0
  1454
			if ( ret || support.disconnectedMatch ||
indvd00m@0
  1455
					// As well, disconnected nodes are said to be in a document
indvd00m@0
  1456
					// fragment in IE 9
indvd00m@0
  1457
					elem.document && elem.document.nodeType !== 11 ) {
indvd00m@0
  1458
				return ret;
indvd00m@0
  1459
			}
indvd00m@0
  1460
		} catch (e) {}
indvd00m@0
  1461
	}
indvd00m@0
  1462
indvd00m@0
  1463
	return Sizzle( expr, document, null, [ elem ] ).length > 0;
indvd00m@0
  1464
};
indvd00m@0
  1465
indvd00m@0
  1466
Sizzle.contains = function( context, elem ) {
indvd00m@0
  1467
	// Set document vars if needed
indvd00m@0
  1468
	if ( ( context.ownerDocument || context ) !== document ) {
indvd00m@0
  1469
		setDocument( context );
indvd00m@0
  1470
	}
indvd00m@0
  1471
	return contains( context, elem );
indvd00m@0
  1472
};
indvd00m@0
  1473
indvd00m@0
  1474
Sizzle.attr = function( elem, name ) {
indvd00m@0
  1475
	// Set document vars if needed
indvd00m@0
  1476
	if ( ( elem.ownerDocument || elem ) !== document ) {
indvd00m@0
  1477
		setDocument( elem );
indvd00m@0
  1478
	}
indvd00m@0
  1479
indvd00m@0
  1480
	var fn = Expr.attrHandle[ name.toLowerCase() ],
indvd00m@0
  1481
		// Don't get fooled by Object.prototype properties (jQuery #13807)
indvd00m@0
  1482
		val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?
indvd00m@0
  1483
			fn( elem, name, !documentIsHTML ) :
indvd00m@0
  1484
			undefined;
indvd00m@0
  1485
indvd00m@0
  1486
	return val !== undefined ?
indvd00m@0
  1487
		val :
indvd00m@0
  1488
		support.attributes || !documentIsHTML ?
indvd00m@0
  1489
			elem.getAttribute( name ) :
indvd00m@0
  1490
			(val = elem.getAttributeNode(name)) && val.specified ?
indvd00m@0
  1491
				val.value :
indvd00m@0
  1492
				null;
indvd00m@0
  1493
};
indvd00m@0
  1494
indvd00m@0
  1495
Sizzle.error = function( msg ) {
indvd00m@0
  1496
	throw new Error( "Syntax error, unrecognized expression: " + msg );
indvd00m@0
  1497
};
indvd00m@0
  1498
indvd00m@0
  1499
/**
indvd00m@0
  1500
 * Document sorting and removing duplicates
indvd00m@0
  1501
 * @param {ArrayLike} results
indvd00m@0
  1502
 */
indvd00m@0
  1503
Sizzle.uniqueSort = function( results ) {
indvd00m@0
  1504
	var elem,
indvd00m@0
  1505
		duplicates = [],
indvd00m@0
  1506
		j = 0,
indvd00m@0
  1507
		i = 0;
indvd00m@0
  1508
indvd00m@0
  1509
	// Unless we *know* we can detect duplicates, assume their presence
indvd00m@0
  1510
	hasDuplicate = !support.detectDuplicates;
indvd00m@0
  1511
	sortInput = !support.sortStable && results.slice( 0 );
indvd00m@0
  1512
	results.sort( sortOrder );
indvd00m@0
  1513
indvd00m@0
  1514
	if ( hasDuplicate ) {
indvd00m@0
  1515
		while ( (elem = results[i++]) ) {
indvd00m@0
  1516
			if ( elem === results[ i ] ) {
indvd00m@0
  1517
				j = duplicates.push( i );
indvd00m@0
  1518
			}
indvd00m@0
  1519
		}
indvd00m@0
  1520
		while ( j-- ) {
indvd00m@0
  1521
			results.splice( duplicates[ j ], 1 );
indvd00m@0
  1522
		}
indvd00m@0
  1523
	}
indvd00m@0
  1524
indvd00m@0
  1525
	// Clear input after sorting to release objects
indvd00m@0
  1526
	// See https://github.com/jquery/sizzle/pull/225
indvd00m@0
  1527
	sortInput = null;
indvd00m@0
  1528
indvd00m@0
  1529
	return results;
indvd00m@0
  1530
};
indvd00m@0
  1531
indvd00m@0
  1532
/**
indvd00m@0
  1533
 * Utility function for retrieving the text value of an array of DOM nodes
indvd00m@0
  1534
 * @param {Array|Element} elem
indvd00m@0
  1535
 */
indvd00m@0
  1536
getText = Sizzle.getText = function( elem ) {
indvd00m@0
  1537
	var node,
indvd00m@0
  1538
		ret = "",
indvd00m@0
  1539
		i = 0,
indvd00m@0
  1540
		nodeType = elem.nodeType;
indvd00m@0
  1541
indvd00m@0
  1542
	if ( !nodeType ) {
indvd00m@0
  1543
		// If no nodeType, this is expected to be an array
indvd00m@0
  1544
		while ( (node = elem[i++]) ) {
indvd00m@0
  1545
			// Do not traverse comment nodes
indvd00m@0
  1546
			ret += getText( node );
indvd00m@0
  1547
		}
indvd00m@0
  1548
	} else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
indvd00m@0
  1549
		// Use textContent for elements
indvd00m@0
  1550
		// innerText usage removed for consistency of new lines (jQuery #11153)
indvd00m@0
  1551
		if ( typeof elem.textContent === "string" ) {
indvd00m@0
  1552
			return elem.textContent;
indvd00m@0
  1553
		} else {
indvd00m@0
  1554
			// Traverse its children
indvd00m@0
  1555
			for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
indvd00m@0
  1556
				ret += getText( elem );
indvd00m@0
  1557
			}
indvd00m@0
  1558
		}
indvd00m@0
  1559
	} else if ( nodeType === 3 || nodeType === 4 ) {
indvd00m@0
  1560
		return elem.nodeValue;
indvd00m@0
  1561
	}
indvd00m@0
  1562
	// Do not include comment or processing instruction nodes
indvd00m@0
  1563
indvd00m@0
  1564
	return ret;
indvd00m@0
  1565
};
indvd00m@0
  1566
indvd00m@0
  1567
Expr = Sizzle.selectors = {
indvd00m@0
  1568
indvd00m@0
  1569
	// Can be adjusted by the user
indvd00m@0
  1570
	cacheLength: 50,
indvd00m@0
  1571
indvd00m@0
  1572
	createPseudo: markFunction,
indvd00m@0
  1573
indvd00m@0
  1574
	match: matchExpr,
indvd00m@0
  1575
indvd00m@0
  1576
	attrHandle: {},
indvd00m@0
  1577
indvd00m@0
  1578
	find: {},
indvd00m@0
  1579
indvd00m@0
  1580
	relative: {
indvd00m@0
  1581
		">": { dir: "parentNode", first: true },
indvd00m@0
  1582
		" ": { dir: "parentNode" },
indvd00m@0
  1583
		"+": { dir: "previousSibling", first: true },
indvd00m@0
  1584
		"~": { dir: "previousSibling" }
indvd00m@0
  1585
	},
indvd00m@0
  1586
indvd00m@0
  1587
	preFilter: {
indvd00m@0
  1588
		"ATTR": function( match ) {
indvd00m@0
  1589
			match[1] = match[1].replace( runescape, funescape );
indvd00m@0
  1590
indvd00m@0
  1591
			// Move the given value to match[3] whether quoted or unquoted
indvd00m@0
  1592
			match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape );
indvd00m@0
  1593
indvd00m@0
  1594
			if ( match[2] === "~=" ) {
indvd00m@0
  1595
				match[3] = " " + match[3] + " ";
indvd00m@0
  1596
			}
indvd00m@0
  1597
indvd00m@0
  1598
			return match.slice( 0, 4 );
indvd00m@0
  1599
		},
indvd00m@0
  1600
indvd00m@0
  1601
		"CHILD": function( match ) {
indvd00m@0
  1602
			/* matches from matchExpr["CHILD"]
indvd00m@0
  1603
				1 type (only|nth|...)
indvd00m@0
  1604
				2 what (child|of-type)
indvd00m@0
  1605
				3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
indvd00m@0
  1606
				4 xn-component of xn+y argument ([+-]?\d*n|)
indvd00m@0
  1607
				5 sign of xn-component
indvd00m@0
  1608
				6 x of xn-component
indvd00m@0
  1609
				7 sign of y-component
indvd00m@0
  1610
				8 y of y-component
indvd00m@0
  1611
			*/
indvd00m@0
  1612
			match[1] = match[1].toLowerCase();
indvd00m@0
  1613
indvd00m@0
  1614
			if ( match[1].slice( 0, 3 ) === "nth" ) {
indvd00m@0
  1615
				// nth-* requires argument
indvd00m@0
  1616
				if ( !match[3] ) {
indvd00m@0
  1617
					Sizzle.error( match[0] );
indvd00m@0
  1618
				}
indvd00m@0
  1619
indvd00m@0
  1620
				// numeric x and y parameters for Expr.filter.CHILD
indvd00m@0
  1621
				// remember that false/true cast respectively to 0/1
indvd00m@0
  1622
				match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) );
indvd00m@0
  1623
				match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" );
indvd00m@0
  1624
indvd00m@0
  1625
			// other types prohibit arguments
indvd00m@0
  1626
			} else if ( match[3] ) {
indvd00m@0
  1627
				Sizzle.error( match[0] );
indvd00m@0
  1628
			}
indvd00m@0
  1629
indvd00m@0
  1630
			return match;
indvd00m@0
  1631
		},
indvd00m@0
  1632
indvd00m@0
  1633
		"PSEUDO": function( match ) {
indvd00m@0
  1634
			var excess,
indvd00m@0
  1635
				unquoted = !match[6] && match[2];
indvd00m@0
  1636
indvd00m@0
  1637
			if ( matchExpr["CHILD"].test( match[0] ) ) {
indvd00m@0
  1638
				return null;
indvd00m@0
  1639
			}
indvd00m@0
  1640
indvd00m@0
  1641
			// Accept quoted arguments as-is
indvd00m@0
  1642
			if ( match[3] ) {
indvd00m@0
  1643
				match[2] = match[4] || match[5] || "";
indvd00m@0
  1644
indvd00m@0
  1645
			// Strip excess characters from unquoted arguments
indvd00m@0
  1646
			} else if ( unquoted && rpseudo.test( unquoted ) &&
indvd00m@0
  1647
				// Get excess from tokenize (recursively)
indvd00m@0
  1648
				(excess = tokenize( unquoted, true )) &&
indvd00m@0
  1649
				// advance to the next closing parenthesis
indvd00m@0
  1650
				(excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) {
indvd00m@0
  1651
indvd00m@0
  1652
				// excess is a negative index
indvd00m@0
  1653
				match[0] = match[0].slice( 0, excess );
indvd00m@0
  1654
				match[2] = unquoted.slice( 0, excess );
indvd00m@0
  1655
			}
indvd00m@0
  1656
indvd00m@0
  1657
			// Return only captures needed by the pseudo filter method (type and argument)
indvd00m@0
  1658
			return match.slice( 0, 3 );
indvd00m@0
  1659
		}
indvd00m@0
  1660
	},
indvd00m@0
  1661
indvd00m@0
  1662
	filter: {
indvd00m@0
  1663
indvd00m@0
  1664
		"TAG": function( nodeNameSelector ) {
indvd00m@0
  1665
			var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();
indvd00m@0
  1666
			return nodeNameSelector === "*" ?
indvd00m@0
  1667
				function() { return true; } :
indvd00m@0
  1668
				function( elem ) {
indvd00m@0
  1669
					return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;
indvd00m@0
  1670
				};
indvd00m@0
  1671
		},
indvd00m@0
  1672
indvd00m@0
  1673
		"CLASS": function( className ) {
indvd00m@0
  1674
			var pattern = classCache[ className + " " ];
indvd00m@0
  1675
indvd00m@0
  1676
			return pattern ||
indvd00m@0
  1677
				(pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) &&
indvd00m@0
  1678
				classCache( className, function( elem ) {
indvd00m@0
  1679
					return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" );
indvd00m@0
  1680
				});
indvd00m@0
  1681
		},
indvd00m@0
  1682
indvd00m@0
  1683
		"ATTR": function( name, operator, check ) {
indvd00m@0
  1684
			return function( elem ) {
indvd00m@0
  1685
				var result = Sizzle.attr( elem, name );
indvd00m@0
  1686
indvd00m@0
  1687
				if ( result == null ) {
indvd00m@0
  1688
					return operator === "!=";
indvd00m@0
  1689
				}
indvd00m@0
  1690
				if ( !operator ) {
indvd00m@0
  1691
					return true;
indvd00m@0
  1692
				}
indvd00m@0
  1693
indvd00m@0
  1694
				result += "";
indvd00m@0
  1695
indvd00m@0
  1696
				return operator === "=" ? result === check :
indvd00m@0
  1697
					operator === "!=" ? result !== check :
indvd00m@0
  1698
					operator === "^=" ? check && result.indexOf( check ) === 0 :
indvd00m@0
  1699
					operator === "*=" ? check && result.indexOf( check ) > -1 :
indvd00m@0
  1700
					operator === "$=" ? check && result.slice( -check.length ) === check :
indvd00m@0
  1701
					operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 :
indvd00m@0
  1702
					operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" :
indvd00m@0
  1703
					false;
indvd00m@0
  1704
			};
indvd00m@0
  1705
		},
indvd00m@0
  1706
indvd00m@0
  1707
		"CHILD": function( type, what, argument, first, last ) {
indvd00m@0
  1708
			var simple = type.slice( 0, 3 ) !== "nth",
indvd00m@0
  1709
				forward = type.slice( -4 ) !== "last",
indvd00m@0
  1710
				ofType = what === "of-type";
indvd00m@0
  1711
indvd00m@0
  1712
			return first === 1 && last === 0 ?
indvd00m@0
  1713
indvd00m@0
  1714
				// Shortcut for :nth-*(n)
indvd00m@0
  1715
				function( elem ) {
indvd00m@0
  1716
					return !!elem.parentNode;
indvd00m@0
  1717
				} :
indvd00m@0
  1718
indvd00m@0
  1719
				function( elem, context, xml ) {
indvd00m@0
  1720
					var cache, outerCache, node, diff, nodeIndex, start,
indvd00m@0
  1721
						dir = simple !== forward ? "nextSibling" : "previousSibling",
indvd00m@0
  1722
						parent = elem.parentNode,
indvd00m@0
  1723
						name = ofType && elem.nodeName.toLowerCase(),
indvd00m@0
  1724
						useCache = !xml && !ofType;
indvd00m@0
  1725
indvd00m@0
  1726
					if ( parent ) {
indvd00m@0
  1727
indvd00m@0
  1728
						// :(first|last|only)-(child|of-type)
indvd00m@0
  1729
						if ( simple ) {
indvd00m@0
  1730
							while ( dir ) {
indvd00m@0
  1731
								node = elem;
indvd00m@0
  1732
								while ( (node = node[ dir ]) ) {
indvd00m@0
  1733
									if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) {
indvd00m@0
  1734
										return false;
indvd00m@0
  1735
									}
indvd00m@0
  1736
								}
indvd00m@0
  1737
								// Reverse direction for :only-* (if we haven't yet done so)
indvd00m@0
  1738
								start = dir = type === "only" && !start && "nextSibling";
indvd00m@0
  1739
							}
indvd00m@0
  1740
							return true;
indvd00m@0
  1741
						}
indvd00m@0
  1742
indvd00m@0
  1743
						start = [ forward ? parent.firstChild : parent.lastChild ];
indvd00m@0
  1744
indvd00m@0
  1745
						// non-xml :nth-child(...) stores cache data on `parent`
indvd00m@0
  1746
						if ( forward && useCache ) {
indvd00m@0
  1747
							// Seek `elem` from a previously-cached index
indvd00m@0
  1748
							outerCache = parent[ expando ] || (parent[ expando ] = {});
indvd00m@0
  1749
							cache = outerCache[ type ] || [];
indvd00m@0
  1750
							nodeIndex = cache[0] === dirruns && cache[1];
indvd00m@0
  1751
							diff = cache[0] === dirruns && cache[2];
indvd00m@0
  1752
							node = nodeIndex && parent.childNodes[ nodeIndex ];
indvd00m@0
  1753
indvd00m@0
  1754
							while ( (node = ++nodeIndex && node && node[ dir ] ||
indvd00m@0
  1755
indvd00m@0
  1756
								// Fallback to seeking `elem` from the start
indvd00m@0
  1757
								(diff = nodeIndex = 0) || start.pop()) ) {
indvd00m@0
  1758
indvd00m@0
  1759
								// When found, cache indexes on `parent` and break
indvd00m@0
  1760
								if ( node.nodeType === 1 && ++diff && node === elem ) {
indvd00m@0
  1761
									outerCache[ type ] = [ dirruns, nodeIndex, diff ];
indvd00m@0
  1762
									break;
indvd00m@0
  1763
								}
indvd00m@0
  1764
							}
indvd00m@0
  1765
indvd00m@0
  1766
						// Use previously-cached element index if available
indvd00m@0
  1767
						} else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {
indvd00m@0
  1768
							diff = cache[1];
indvd00m@0
  1769
indvd00m@0
  1770
						// xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)
indvd00m@0
  1771
						} else {
indvd00m@0
  1772
							// Use the same loop as above to seek `elem` from the start
indvd00m@0
  1773
							while ( (node = ++nodeIndex && node && node[ dir ] ||
indvd00m@0
  1774
								(diff = nodeIndex = 0) || start.pop()) ) {
indvd00m@0
  1775
indvd00m@0
  1776
								if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) {
indvd00m@0
  1777
									// Cache the index of each encountered element
indvd00m@0
  1778
									if ( useCache ) {
indvd00m@0
  1779
										(node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ];
indvd00m@0
  1780
									}
indvd00m@0
  1781
indvd00m@0
  1782
									if ( node === elem ) {
indvd00m@0
  1783
										break;
indvd00m@0
  1784
									}
indvd00m@0
  1785
								}
indvd00m@0
  1786
							}
indvd00m@0
  1787
						}
indvd00m@0
  1788
indvd00m@0
  1789
						// Incorporate the offset, then check against cycle size
indvd00m@0
  1790
						diff -= last;
indvd00m@0
  1791
						return diff === first || ( diff % first === 0 && diff / first >= 0 );
indvd00m@0
  1792
					}
indvd00m@0
  1793
				};
indvd00m@0
  1794
		},
indvd00m@0
  1795
indvd00m@0
  1796
		"PSEUDO": function( pseudo, argument ) {
indvd00m@0
  1797
			// pseudo-class names are case-insensitive
indvd00m@0
  1798
			// http://www.w3.org/TR/selectors/#pseudo-classes
indvd00m@0
  1799
			// Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
indvd00m@0
  1800
			// Remember that setFilters inherits from pseudos
indvd00m@0
  1801
			var args,
indvd00m@0
  1802
				fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||
indvd00m@0
  1803
					Sizzle.error( "unsupported pseudo: " + pseudo );
indvd00m@0
  1804
indvd00m@0
  1805
			// The user may use createPseudo to indicate that
indvd00m@0
  1806
			// arguments are needed to create the filter function
indvd00m@0
  1807
			// just as Sizzle does
indvd00m@0
  1808
			if ( fn[ expando ] ) {
indvd00m@0
  1809
				return fn( argument );
indvd00m@0
  1810
			}
indvd00m@0
  1811
indvd00m@0
  1812
			// But maintain support for old signatures
indvd00m@0
  1813
			if ( fn.length > 1 ) {
indvd00m@0
  1814
				args = [ pseudo, pseudo, "", argument ];
indvd00m@0
  1815
				return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?
indvd00m@0
  1816
					markFunction(function( seed, matches ) {
indvd00m@0
  1817
						var idx,
indvd00m@0
  1818
							matched = fn( seed, argument ),
indvd00m@0
  1819
							i = matched.length;
indvd00m@0
  1820
						while ( i-- ) {
indvd00m@0
  1821
							idx = indexOf( seed, matched[i] );
indvd00m@0
  1822
							seed[ idx ] = !( matches[ idx ] = matched[i] );
indvd00m@0
  1823
						}
indvd00m@0
  1824
					}) :
indvd00m@0
  1825
					function( elem ) {
indvd00m@0
  1826
						return fn( elem, 0, args );
indvd00m@0
  1827
					};
indvd00m@0
  1828
			}
indvd00m@0
  1829
indvd00m@0
  1830
			return fn;
indvd00m@0
  1831
		}
indvd00m@0
  1832
	},
indvd00m@0
  1833
indvd00m@0
  1834
	pseudos: {
indvd00m@0
  1835
		// Potentially complex pseudos
indvd00m@0
  1836
		"not": markFunction(function( selector ) {
indvd00m@0
  1837
			// Trim the selector passed to compile
indvd00m@0
  1838
			// to avoid treating leading and trailing
indvd00m@0
  1839
			// spaces as combinators
indvd00m@0
  1840
			var input = [],
indvd00m@0
  1841
				results = [],
indvd00m@0
  1842
				matcher = compile( selector.replace( rtrim, "$1" ) );
indvd00m@0
  1843
indvd00m@0
  1844
			return matcher[ expando ] ?
indvd00m@0
  1845
				markFunction(function( seed, matches, context, xml ) {
indvd00m@0
  1846
					var elem,
indvd00m@0
  1847
						unmatched = matcher( seed, null, xml, [] ),
indvd00m@0
  1848
						i = seed.length;
indvd00m@0
  1849
indvd00m@0
  1850
					// Match elements unmatched by `matcher`
indvd00m@0
  1851
					while ( i-- ) {
indvd00m@0
  1852
						if ( (elem = unmatched[i]) ) {
indvd00m@0
  1853
							seed[i] = !(matches[i] = elem);
indvd00m@0
  1854
						}
indvd00m@0
  1855
					}
indvd00m@0
  1856
				}) :
indvd00m@0
  1857
				function( elem, context, xml ) {
indvd00m@0
  1858
					input[0] = elem;
indvd00m@0
  1859
					matcher( input, null, xml, results );
indvd00m@0
  1860
					// Don't keep the element (issue #299)
indvd00m@0
  1861
					input[0] = null;
indvd00m@0
  1862
					return !results.pop();
indvd00m@0
  1863
				};
indvd00m@0
  1864
		}),
indvd00m@0
  1865
indvd00m@0
  1866
		"has": markFunction(function( selector ) {
indvd00m@0
  1867
			return function( elem ) {
indvd00m@0
  1868
				return Sizzle( selector, elem ).length > 0;
indvd00m@0
  1869
			};
indvd00m@0
  1870
		}),
indvd00m@0
  1871
indvd00m@0
  1872
		"contains": markFunction(function( text ) {
indvd00m@0
  1873
			text = text.replace( runescape, funescape );
indvd00m@0
  1874
			return function( elem ) {
indvd00m@0
  1875
				return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;
indvd00m@0
  1876
			};
indvd00m@0
  1877
		}),
indvd00m@0
  1878
indvd00m@0
  1879
		// "Whether an element is represented by a :lang() selector
indvd00m@0
  1880
		// is based solely on the element's language value
indvd00m@0
  1881
		// being equal to the identifier C,
indvd00m@0
  1882
		// or beginning with the identifier C immediately followed by "-".
indvd00m@0
  1883
		// The matching of C against the element's language value is performed case-insensitively.
indvd00m@0
  1884
		// The identifier C does not have to be a valid language name."
indvd00m@0
  1885
		// http://www.w3.org/TR/selectors/#lang-pseudo
indvd00m@0
  1886
		"lang": markFunction( function( lang ) {
indvd00m@0
  1887
			// lang value must be a valid identifier
indvd00m@0
  1888
			if ( !ridentifier.test(lang || "") ) {
indvd00m@0
  1889
				Sizzle.error( "unsupported lang: " + lang );
indvd00m@0
  1890
			}
indvd00m@0
  1891
			lang = lang.replace( runescape, funescape ).toLowerCase();
indvd00m@0
  1892
			return function( elem ) {
indvd00m@0
  1893
				var elemLang;
indvd00m@0
  1894
				do {
indvd00m@0
  1895
					if ( (elemLang = documentIsHTML ?
indvd00m@0
  1896
						elem.lang :
indvd00m@0
  1897
						elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) {
indvd00m@0
  1898
indvd00m@0
  1899
						elemLang = elemLang.toLowerCase();
indvd00m@0
  1900
						return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0;
indvd00m@0
  1901
					}
indvd00m@0
  1902
				} while ( (elem = elem.parentNode) && elem.nodeType === 1 );
indvd00m@0
  1903
				return false;
indvd00m@0
  1904
			};
indvd00m@0
  1905
		}),
indvd00m@0
  1906
indvd00m@0
  1907
		// Miscellaneous
indvd00m@0
  1908
		"target": function( elem ) {
indvd00m@0
  1909
			var hash = window.location && window.location.hash;
indvd00m@0
  1910
			return hash && hash.slice( 1 ) === elem.id;
indvd00m@0
  1911
		},
indvd00m@0
  1912
indvd00m@0
  1913
		"root": function( elem ) {
indvd00m@0
  1914
			return elem === docElem;
indvd00m@0
  1915
		},
indvd00m@0
  1916
indvd00m@0
  1917
		"focus": function( elem ) {
indvd00m@0
  1918
			return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);
indvd00m@0
  1919
		},
indvd00m@0
  1920
indvd00m@0
  1921
		// Boolean properties
indvd00m@0
  1922
		"enabled": function( elem ) {
indvd00m@0
  1923
			return elem.disabled === false;
indvd00m@0
  1924
		},
indvd00m@0
  1925
indvd00m@0
  1926
		"disabled": function( elem ) {
indvd00m@0
  1927
			return elem.disabled === true;
indvd00m@0
  1928
		},
indvd00m@0
  1929
indvd00m@0
  1930
		"checked": function( elem ) {
indvd00m@0
  1931
			// In CSS3, :checked should return both checked and selected elements
indvd00m@0
  1932
			// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
indvd00m@0
  1933
			var nodeName = elem.nodeName.toLowerCase();
indvd00m@0
  1934
			return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected);
indvd00m@0
  1935
		},
indvd00m@0
  1936
indvd00m@0
  1937
		"selected": function( elem ) {
indvd00m@0
  1938
			// Accessing this property makes selected-by-default
indvd00m@0
  1939
			// options in Safari work properly
indvd00m@0
  1940
			if ( elem.parentNode ) {
indvd00m@0
  1941
				elem.parentNode.selectedIndex;
indvd00m@0
  1942
			}
indvd00m@0
  1943
indvd00m@0
  1944
			return elem.selected === true;
indvd00m@0
  1945
		},
indvd00m@0
  1946
indvd00m@0
  1947
		// Contents
indvd00m@0
  1948
		"empty": function( elem ) {
indvd00m@0
  1949
			// http://www.w3.org/TR/selectors/#empty-pseudo
indvd00m@0
  1950
			// :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),
indvd00m@0
  1951
			//   but not by others (comment: 8; processing instruction: 7; etc.)
indvd00m@0
  1952
			// nodeType < 6 works because attributes (2) do not appear as children
indvd00m@0
  1953
			for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
indvd00m@0
  1954
				if ( elem.nodeType < 6 ) {
indvd00m@0
  1955
					return false;
indvd00m@0
  1956
				}
indvd00m@0
  1957
			}
indvd00m@0
  1958
			return true;
indvd00m@0
  1959
		},
indvd00m@0
  1960
indvd00m@0
  1961
		"parent": function( elem ) {
indvd00m@0
  1962
			return !Expr.pseudos["empty"]( elem );
indvd00m@0
  1963
		},
indvd00m@0
  1964
indvd00m@0
  1965
		// Element/input types
indvd00m@0
  1966
		"header": function( elem ) {
indvd00m@0
  1967
			return rheader.test( elem.nodeName );
indvd00m@0
  1968
		},
indvd00m@0
  1969
indvd00m@0
  1970
		"input": function( elem ) {
indvd00m@0
  1971
			return rinputs.test( elem.nodeName );
indvd00m@0
  1972
		},
indvd00m@0
  1973
indvd00m@0
  1974
		"button": function( elem ) {
indvd00m@0
  1975
			var name = elem.nodeName.toLowerCase();
indvd00m@0
  1976
			return name === "input" && elem.type === "button" || name === "button";
indvd00m@0
  1977
		},
indvd00m@0
  1978
indvd00m@0
  1979
		"text": function( elem ) {
indvd00m@0
  1980
			var attr;
indvd00m@0
  1981
			return elem.nodeName.toLowerCase() === "input" &&
indvd00m@0
  1982
				elem.type === "text" &&
indvd00m@0
  1983
indvd00m@0
  1984
				// Support: IE<8
indvd00m@0
  1985
				// New HTML5 attribute values (e.g., "search") appear with elem.type === "text"
indvd00m@0
  1986
				( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" );
indvd00m@0
  1987
		},
indvd00m@0
  1988
indvd00m@0
  1989
		// Position-in-collection
indvd00m@0
  1990
		"first": createPositionalPseudo(function() {
indvd00m@0
  1991
			return [ 0 ];
indvd00m@0
  1992
		}),
indvd00m@0
  1993
indvd00m@0
  1994
		"last": createPositionalPseudo(function( matchIndexes, length ) {
indvd00m@0
  1995
			return [ length - 1 ];
indvd00m@0
  1996
		}),
indvd00m@0
  1997
indvd00m@0
  1998
		"eq": createPositionalPseudo(function( matchIndexes, length, argument ) {
indvd00m@0
  1999
			return [ argument < 0 ? argument + length : argument ];
indvd00m@0
  2000
		}),
indvd00m@0
  2001
indvd00m@0
  2002
		"even": createPositionalPseudo(function( matchIndexes, length ) {
indvd00m@0
  2003
			var i = 0;
indvd00m@0
  2004
			for ( ; i < length; i += 2 ) {
indvd00m@0
  2005
				matchIndexes.push( i );
indvd00m@0
  2006
			}
indvd00m@0
  2007
			return matchIndexes;
indvd00m@0
  2008
		}),
indvd00m@0
  2009
indvd00m@0
  2010
		"odd": createPositionalPseudo(function( matchIndexes, length ) {
indvd00m@0
  2011
			var i = 1;
indvd00m@0
  2012
			for ( ; i < length; i += 2 ) {
indvd00m@0
  2013
				matchIndexes.push( i );
indvd00m@0
  2014
			}
indvd00m@0
  2015
			return matchIndexes;
indvd00m@0
  2016
		}),
indvd00m@0
  2017
indvd00m@0
  2018
		"lt": createPositionalPseudo(function( matchIndexes, length, argument ) {
indvd00m@0
  2019
			var i = argument < 0 ? argument + length : argument;
indvd00m@0
  2020
			for ( ; --i >= 0; ) {
indvd00m@0
  2021
				matchIndexes.push( i );
indvd00m@0
  2022
			}
indvd00m@0
  2023
			return matchIndexes;
indvd00m@0
  2024
		}),
indvd00m@0
  2025
indvd00m@0
  2026
		"gt": createPositionalPseudo(function( matchIndexes, length, argument ) {
indvd00m@0
  2027
			var i = argument < 0 ? argument + length : argument;
indvd00m@0
  2028
			for ( ; ++i < length; ) {
indvd00m@0
  2029
				matchIndexes.push( i );
indvd00m@0
  2030
			}
indvd00m@0
  2031
			return matchIndexes;
indvd00m@0
  2032
		})
indvd00m@0
  2033
	}
indvd00m@0
  2034
};
indvd00m@0
  2035
indvd00m@0
  2036
Expr.pseudos["nth"] = Expr.pseudos["eq"];
indvd00m@0
  2037
indvd00m@0
  2038
// Add button/input type pseudos
indvd00m@0
  2039
for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {
indvd00m@0
  2040
	Expr.pseudos[ i ] = createInputPseudo( i );
indvd00m@0
  2041
}
indvd00m@0
  2042
for ( i in { submit: true, reset: true } ) {
indvd00m@0
  2043
	Expr.pseudos[ i ] = createButtonPseudo( i );
indvd00m@0
  2044
}
indvd00m@0
  2045
indvd00m@0
  2046
// Easy API for creating new setFilters
indvd00m@0
  2047
function setFilters() {}
indvd00m@0
  2048
setFilters.prototype = Expr.filters = Expr.pseudos;
indvd00m@0
  2049
Expr.setFilters = new setFilters();
indvd00m@0
  2050
indvd00m@0
  2051
tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
indvd00m@0
  2052
	var matched, match, tokens, type,
indvd00m@0
  2053
		soFar, groups, preFilters,
indvd00m@0
  2054
		cached = tokenCache[ selector + " " ];
indvd00m@0
  2055
indvd00m@0
  2056
	if ( cached ) {
indvd00m@0
  2057
		return parseOnly ? 0 : cached.slice( 0 );
indvd00m@0
  2058
	}
indvd00m@0
  2059
indvd00m@0
  2060
	soFar = selector;
indvd00m@0
  2061
	groups = [];
indvd00m@0
  2062
	preFilters = Expr.preFilter;
indvd00m@0
  2063
indvd00m@0
  2064
	while ( soFar ) {
indvd00m@0
  2065
indvd00m@0
  2066
		// Comma and first run
indvd00m@0
  2067
		if ( !matched || (match = rcomma.exec( soFar )) ) {
indvd00m@0
  2068
			if ( match ) {
indvd00m@0
  2069
				// Don't consume trailing commas as valid
indvd00m@0
  2070
				soFar = soFar.slice( match[0].length ) || soFar;
indvd00m@0
  2071
			}
indvd00m@0
  2072
			groups.push( (tokens = []) );
indvd00m@0
  2073
		}
indvd00m@0
  2074
indvd00m@0
  2075
		matched = false;
indvd00m@0
  2076
indvd00m@0
  2077
		// Combinators
indvd00m@0
  2078
		if ( (match = rcombinators.exec( soFar )) ) {
indvd00m@0
  2079
			matched = match.shift();
indvd00m@0
  2080
			tokens.push({
indvd00m@0
  2081
				value: matched,
indvd00m@0
  2082
				// Cast descendant combinators to space
indvd00m@0
  2083
				type: match[0].replace( rtrim, " " )
indvd00m@0
  2084
			});
indvd00m@0
  2085
			soFar = soFar.slice( matched.length );
indvd00m@0
  2086
		}
indvd00m@0
  2087
indvd00m@0
  2088
		// Filters
indvd00m@0
  2089
		for ( type in Expr.filter ) {
indvd00m@0
  2090
			if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||
indvd00m@0
  2091
				(match = preFilters[ type ]( match ))) ) {
indvd00m@0
  2092
				matched = match.shift();
indvd00m@0
  2093
				tokens.push({
indvd00m@0
  2094
					value: matched,
indvd00m@0
  2095
					type: type,
indvd00m@0
  2096
					matches: match
indvd00m@0
  2097
				});
indvd00m@0
  2098
				soFar = soFar.slice( matched.length );
indvd00m@0
  2099
			}
indvd00m@0
  2100
		}
indvd00m@0
  2101
indvd00m@0
  2102
		if ( !matched ) {
indvd00m@0
  2103
			break;
indvd00m@0
  2104
		}
indvd00m@0
  2105
	}
indvd00m@0
  2106
indvd00m@0
  2107
	// Return the length of the invalid excess
indvd00m@0
  2108
	// if we're just parsing
indvd00m@0
  2109
	// Otherwise, throw an error or return tokens
indvd00m@0
  2110
	return parseOnly ?
indvd00m@0
  2111
		soFar.length :
indvd00m@0
  2112
		soFar ?
indvd00m@0
  2113
			Sizzle.error( selector ) :
indvd00m@0
  2114
			// Cache the tokens
indvd00m@0
  2115
			tokenCache( selector, groups ).slice( 0 );
indvd00m@0
  2116
};
indvd00m@0
  2117
indvd00m@0
  2118
function toSelector( tokens ) {
indvd00m@0
  2119
	var i = 0,
indvd00m@0
  2120
		len = tokens.length,
indvd00m@0
  2121
		selector = "";
indvd00m@0
  2122
	for ( ; i < len; i++ ) {
indvd00m@0
  2123
		selector += tokens[i].value;
indvd00m@0
  2124
	}
indvd00m@0
  2125
	return selector;
indvd00m@0
  2126
}
indvd00m@0
  2127
indvd00m@0
  2128
function addCombinator( matcher, combinator, base ) {
indvd00m@0
  2129
	var dir = combinator.dir,
indvd00m@0
  2130
		checkNonElements = base && dir === "parentNode",
indvd00m@0
  2131
		doneName = done++;
indvd00m@0
  2132
indvd00m@0
  2133
	return combinator.first ?
indvd00m@0
  2134
		// Check against closest ancestor/preceding element
indvd00m@0
  2135
		function( elem, context, xml ) {
indvd00m@0
  2136
			while ( (elem = elem[ dir ]) ) {
indvd00m@0
  2137
				if ( elem.nodeType === 1 || checkNonElements ) {
indvd00m@0
  2138
					return matcher( elem, context, xml );
indvd00m@0
  2139
				}
indvd00m@0
  2140
			}
indvd00m@0
  2141
		} :
indvd00m@0
  2142
indvd00m@0
  2143
		// Check against all ancestor/preceding elements
indvd00m@0
  2144
		function( elem, context, xml ) {
indvd00m@0
  2145
			var oldCache, outerCache,
indvd00m@0
  2146
				newCache = [ dirruns, doneName ];
indvd00m@0
  2147
indvd00m@0
  2148
			// We can't set arbitrary data on XML nodes, so they don't benefit from dir caching
indvd00m@0
  2149
			if ( xml ) {
indvd00m@0
  2150
				while ( (elem = elem[ dir ]) ) {
indvd00m@0
  2151
					if ( elem.nodeType === 1 || checkNonElements ) {
indvd00m@0
  2152
						if ( matcher( elem, context, xml ) ) {
indvd00m@0
  2153
							return true;
indvd00m@0
  2154
						}
indvd00m@0
  2155
					}
indvd00m@0
  2156
				}
indvd00m@0
  2157
			} else {
indvd00m@0
  2158
				while ( (elem = elem[ dir ]) ) {
indvd00m@0
  2159
					if ( elem.nodeType === 1 || checkNonElements ) {
indvd00m@0
  2160
						outerCache = elem[ expando ] || (elem[ expando ] = {});
indvd00m@0
  2161
						if ( (oldCache = outerCache[ dir ]) &&
indvd00m@0
  2162
							oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {
indvd00m@0
  2163
indvd00m@0
  2164
							// Assign to newCache so results back-propagate to previous elements
indvd00m@0
  2165
							return (newCache[ 2 ] = oldCache[ 2 ]);
indvd00m@0
  2166
						} else {
indvd00m@0
  2167
							// Reuse newcache so results back-propagate to previous elements
indvd00m@0
  2168
							outerCache[ dir ] = newCache;
indvd00m@0
  2169
indvd00m@0
  2170
							// A match means we're done; a fail means we have to keep checking
indvd00m@0
  2171
							if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {
indvd00m@0
  2172
								return true;
indvd00m@0
  2173
							}
indvd00m@0
  2174
						}
indvd00m@0
  2175
					}
indvd00m@0
  2176
				}
indvd00m@0
  2177
			}
indvd00m@0
  2178
		};
indvd00m@0
  2179
}
indvd00m@0
  2180
indvd00m@0
  2181
function elementMatcher( matchers ) {
indvd00m@0
  2182
	return matchers.length > 1 ?
indvd00m@0
  2183
		function( elem, context, xml ) {
indvd00m@0
  2184
			var i = matchers.length;
indvd00m@0
  2185
			while ( i-- ) {
indvd00m@0
  2186
				if ( !matchers[i]( elem, context, xml ) ) {
indvd00m@0
  2187
					return false;
indvd00m@0
  2188
				}
indvd00m@0
  2189
			}
indvd00m@0
  2190
			return true;
indvd00m@0
  2191
		} :
indvd00m@0
  2192
		matchers[0];
indvd00m@0
  2193
}
indvd00m@0
  2194
indvd00m@0
  2195
function multipleContexts( selector, contexts, results ) {
indvd00m@0
  2196
	var i = 0,
indvd00m@0
  2197
		len = contexts.length;
indvd00m@0
  2198
	for ( ; i < len; i++ ) {
indvd00m@0
  2199
		Sizzle( selector, contexts[i], results );
indvd00m@0
  2200
	}
indvd00m@0
  2201
	return results;
indvd00m@0
  2202
}
indvd00m@0
  2203
indvd00m@0
  2204
function condense( unmatched, map, filter, context, xml ) {
indvd00m@0
  2205
	var elem,
indvd00m@0
  2206
		newUnmatched = [],
indvd00m@0
  2207
		i = 0,
indvd00m@0
  2208
		len = unmatched.length,
indvd00m@0
  2209
		mapped = map != null;
indvd00m@0
  2210
indvd00m@0
  2211
	for ( ; i < len; i++ ) {
indvd00m@0
  2212
		if ( (elem = unmatched[i]) ) {
indvd00m@0
  2213
			if ( !filter || filter( elem, context, xml ) ) {
indvd00m@0
  2214
				newUnmatched.push( elem );
indvd00m@0
  2215
				if ( mapped ) {
indvd00m@0
  2216
					map.push( i );
indvd00m@0
  2217
				}
indvd00m@0
  2218
			}
indvd00m@0
  2219
		}
indvd00m@0
  2220
	}
indvd00m@0
  2221
indvd00m@0
  2222
	return newUnmatched;
indvd00m@0
  2223
}
indvd00m@0
  2224
indvd00m@0
  2225
function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
indvd00m@0
  2226
	if ( postFilter && !postFilter[ expando ] ) {
indvd00m@0
  2227
		postFilter = setMatcher( postFilter );
indvd00m@0
  2228
	}
indvd00m@0
  2229
	if ( postFinder && !postFinder[ expando ] ) {
indvd00m@0
  2230
		postFinder = setMatcher( postFinder, postSelector );
indvd00m@0
  2231
	}
indvd00m@0
  2232
	return markFunction(function( seed, results, context, xml ) {
indvd00m@0
  2233
		var temp, i, elem,
indvd00m@0
  2234
			preMap = [],
indvd00m@0
  2235
			postMap = [],
indvd00m@0
  2236
			preexisting = results.length,
indvd00m@0
  2237
indvd00m@0
  2238
			// Get initial elements from seed or context
indvd00m@0
  2239
			elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ),
indvd00m@0
  2240
indvd00m@0
  2241
			// Prefilter to get matcher input, preserving a map for seed-results synchronization
indvd00m@0
  2242
			matcherIn = preFilter && ( seed || !selector ) ?
indvd00m@0
  2243
				condense( elems, preMap, preFilter, context, xml ) :
indvd00m@0
  2244
				elems,
indvd00m@0
  2245
indvd00m@0
  2246
			matcherOut = matcher ?
indvd00m@0
  2247
				// If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,
indvd00m@0
  2248
				postFinder || ( seed ? preFilter : preexisting || postFilter ) ?
indvd00m@0
  2249
indvd00m@0
  2250
					// ...intermediate processing is necessary
indvd00m@0
  2251
					[] :
indvd00m@0
  2252
indvd00m@0
  2253
					// ...otherwise use results directly
indvd00m@0
  2254
					results :
indvd00m@0
  2255
				matcherIn;
indvd00m@0
  2256
indvd00m@0
  2257
		// Find primary matches
indvd00m@0
  2258
		if ( matcher ) {
indvd00m@0
  2259
			matcher( matcherIn, matcherOut, context, xml );
indvd00m@0
  2260
		}
indvd00m@0
  2261
indvd00m@0
  2262
		// Apply postFilter
indvd00m@0
  2263
		if ( postFilter ) {
indvd00m@0
  2264
			temp = condense( matcherOut, postMap );
indvd00m@0
  2265
			postFilter( temp, [], context, xml );
indvd00m@0
  2266
indvd00m@0
  2267
			// Un-match failing elements by moving them back to matcherIn
indvd00m@0
  2268
			i = temp.length;
indvd00m@0
  2269
			while ( i-- ) {
indvd00m@0
  2270
				if ( (elem = temp[i]) ) {
indvd00m@0
  2271
					matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);
indvd00m@0
  2272
				}
indvd00m@0
  2273
			}
indvd00m@0
  2274
		}
indvd00m@0
  2275
indvd00m@0
  2276
		if ( seed ) {
indvd00m@0
  2277
			if ( postFinder || preFilter ) {
indvd00m@0
  2278
				if ( postFinder ) {
indvd00m@0
  2279
					// Get the final matcherOut by condensing this intermediate into postFinder contexts
indvd00m@0
  2280
					temp = [];
indvd00m@0
  2281
					i = matcherOut.length;
indvd00m@0
  2282
					while ( i-- ) {
indvd00m@0
  2283
						if ( (elem = matcherOut[i]) ) {
indvd00m@0
  2284
							// Restore matcherIn since elem is not yet a final match
indvd00m@0
  2285
							temp.push( (matcherIn[i] = elem) );
indvd00m@0
  2286
						}
indvd00m@0
  2287
					}
indvd00m@0
  2288
					postFinder( null, (matcherOut = []), temp, xml );
indvd00m@0
  2289
				}
indvd00m@0
  2290
indvd00m@0
  2291
				// Move matched elements from seed to results to keep them synchronized
indvd00m@0
  2292
				i = matcherOut.length;
indvd00m@0
  2293
				while ( i-- ) {
indvd00m@0
  2294
					if ( (elem = matcherOut[i]) &&
indvd00m@0
  2295
						(temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) {
indvd00m@0
  2296
indvd00m@0
  2297
						seed[temp] = !(results[temp] = elem);
indvd00m@0
  2298
					}
indvd00m@0
  2299
				}
indvd00m@0
  2300
			}
indvd00m@0
  2301
indvd00m@0
  2302
		// Add elements to results, through postFinder if defined
indvd00m@0
  2303
		} else {
indvd00m@0
  2304
			matcherOut = condense(
indvd00m@0
  2305
				matcherOut === results ?
indvd00m@0
  2306
					matcherOut.splice( preexisting, matcherOut.length ) :
indvd00m@0
  2307
					matcherOut
indvd00m@0
  2308
			);
indvd00m@0
  2309
			if ( postFinder ) {
indvd00m@0
  2310
				postFinder( null, results, matcherOut, xml );
indvd00m@0
  2311
			} else {
indvd00m@0
  2312
				push.apply( results, matcherOut );
indvd00m@0
  2313
			}
indvd00m@0
  2314
		}
indvd00m@0
  2315
	});
indvd00m@0
  2316
}
indvd00m@0
  2317
indvd00m@0
  2318
function matcherFromTokens( tokens ) {
indvd00m@0
  2319
	var checkContext, matcher, j,
indvd00m@0
  2320
		len = tokens.length,
indvd00m@0
  2321
		leadingRelative = Expr.relative[ tokens[0].type ],
indvd00m@0
  2322
		implicitRelative = leadingRelative || Expr.relative[" "],
indvd00m@0
  2323
		i = leadingRelative ? 1 : 0,
indvd00m@0
  2324
indvd00m@0
  2325
		// The foundational matcher ensures that elements are reachable from top-level context(s)
indvd00m@0
  2326
		matchContext = addCombinator( function( elem ) {
indvd00m@0
  2327
			return elem === checkContext;
indvd00m@0
  2328
		}, implicitRelative, true ),
indvd00m@0
  2329
		matchAnyContext = addCombinator( function( elem ) {
indvd00m@0
  2330
			return indexOf( checkContext, elem ) > -1;
indvd00m@0
  2331
		}, implicitRelative, true ),
indvd00m@0
  2332
		matchers = [ function( elem, context, xml ) {
indvd00m@0
  2333
			var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || (
indvd00m@0
  2334
				(checkContext = context).nodeType ?
indvd00m@0
  2335
					matchContext( elem, context, xml ) :
indvd00m@0
  2336
					matchAnyContext( elem, context, xml ) );
indvd00m@0
  2337
			// Avoid hanging onto element (issue #299)
indvd00m@0
  2338
			checkContext = null;
indvd00m@0
  2339
			return ret;
indvd00m@0
  2340
		} ];
indvd00m@0
  2341
indvd00m@0
  2342
	for ( ; i < len; i++ ) {
indvd00m@0
  2343
		if ( (matcher = Expr.relative[ tokens[i].type ]) ) {
indvd00m@0
  2344
			matchers = [ addCombinator(elementMatcher( matchers ), matcher) ];
indvd00m@0
  2345
		} else {
indvd00m@0
  2346
			matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );
indvd00m@0
  2347
indvd00m@0
  2348
			// Return special upon seeing a positional matcher
indvd00m@0
  2349
			if ( matcher[ expando ] ) {
indvd00m@0
  2350
				// Find the next relative operator (if any) for proper handling
indvd00m@0
  2351
				j = ++i;
indvd00m@0
  2352
				for ( ; j < len; j++ ) {
indvd00m@0
  2353
					if ( Expr.relative[ tokens[j].type ] ) {
indvd00m@0
  2354
						break;
indvd00m@0
  2355
					}
indvd00m@0
  2356
				}
indvd00m@0
  2357
				return setMatcher(
indvd00m@0
  2358
					i > 1 && elementMatcher( matchers ),
indvd00m@0
  2359
					i > 1 && toSelector(
indvd00m@0
  2360
						// If the preceding token was a descendant combinator, insert an implicit any-element `*`
indvd00m@0
  2361
						tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" })
indvd00m@0
  2362
					).replace( rtrim, "$1" ),
indvd00m@0
  2363
					matcher,
indvd00m@0
  2364
					i < j && matcherFromTokens( tokens.slice( i, j ) ),
indvd00m@0
  2365
					j < len && matcherFromTokens( (tokens = tokens.slice( j )) ),
indvd00m@0
  2366
					j < len && toSelector( tokens )
indvd00m@0
  2367
				);
indvd00m@0
  2368
			}
indvd00m@0
  2369
			matchers.push( matcher );
indvd00m@0
  2370
		}
indvd00m@0
  2371
	}
indvd00m@0
  2372
indvd00m@0
  2373
	return elementMatcher( matchers );
indvd00m@0
  2374
}
indvd00m@0
  2375
indvd00m@0
  2376
function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
indvd00m@0
  2377
	var bySet = setMatchers.length > 0,
indvd00m@0
  2378
		byElement = elementMatchers.length > 0,
indvd00m@0
  2379
		superMatcher = function( seed, context, xml, results, outermost ) {
indvd00m@0
  2380
			var elem, j, matcher,
indvd00m@0
  2381
				matchedCount = 0,
indvd00m@0
  2382
				i = "0",
indvd00m@0
  2383
				unmatched = seed && [],
indvd00m@0
  2384
				setMatched = [],
indvd00m@0
  2385
				contextBackup = outermostContext,
indvd00m@0
  2386
				// We must always have either seed elements or outermost context
indvd00m@0
  2387
				elems = seed || byElement && Expr.find["TAG"]( "*", outermost ),
indvd00m@0
  2388
				// Use integer dirruns iff this is the outermost matcher
indvd00m@0
  2389
				dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1),
indvd00m@0
  2390
				len = elems.length;
indvd00m@0
  2391
indvd00m@0
  2392
			if ( outermost ) {
indvd00m@0
  2393
				outermostContext = context !== document && context;
indvd00m@0
  2394
			}
indvd00m@0
  2395
indvd00m@0
  2396
			// Add elements passing elementMatchers directly to results
indvd00m@0
  2397
			// Keep `i` a string if there are no elements so `matchedCount` will be "00" below
indvd00m@0
  2398
			// Support: IE<9, Safari
indvd00m@0
  2399
			// Tolerate NodeList properties (IE: "length"; Safari: <number>) matching elements by id
indvd00m@0
  2400
			for ( ; i !== len && (elem = elems[i]) != null; i++ ) {
indvd00m@0
  2401
				if ( byElement && elem ) {
indvd00m@0
  2402
					j = 0;
indvd00m@0
  2403
					while ( (matcher = elementMatchers[j++]) ) {
indvd00m@0
  2404
						if ( matcher( elem, context, xml ) ) {
indvd00m@0
  2405
							results.push( elem );
indvd00m@0
  2406
							break;
indvd00m@0
  2407
						}
indvd00m@0
  2408
					}
indvd00m@0
  2409
					if ( outermost ) {
indvd00m@0
  2410
						dirruns = dirrunsUnique;
indvd00m@0
  2411
					}
indvd00m@0
  2412
				}
indvd00m@0
  2413
indvd00m@0
  2414
				// Track unmatched elements for set filters
indvd00m@0
  2415
				if ( bySet ) {
indvd00m@0
  2416
					// They will have gone through all possible matchers
indvd00m@0
  2417
					if ( (elem = !matcher && elem) ) {
indvd00m@0
  2418
						matchedCount--;
indvd00m@0
  2419
					}
indvd00m@0
  2420
indvd00m@0
  2421
					// Lengthen the array for every element, matched or not
indvd00m@0
  2422
					if ( seed ) {
indvd00m@0
  2423
						unmatched.push( elem );
indvd00m@0
  2424
					}
indvd00m@0
  2425
				}
indvd00m@0
  2426
			}
indvd00m@0
  2427
indvd00m@0
  2428
			// Apply set filters to unmatched elements
indvd00m@0
  2429
			matchedCount += i;
indvd00m@0
  2430
			if ( bySet && i !== matchedCount ) {
indvd00m@0
  2431
				j = 0;
indvd00m@0
  2432
				while ( (matcher = setMatchers[j++]) ) {
indvd00m@0
  2433
					matcher( unmatched, setMatched, context, xml );
indvd00m@0
  2434
				}
indvd00m@0
  2435
indvd00m@0
  2436
				if ( seed ) {
indvd00m@0
  2437
					// Reintegrate element matches to eliminate the need for sorting
indvd00m@0
  2438
					if ( matchedCount > 0 ) {
indvd00m@0
  2439
						while ( i-- ) {
indvd00m@0
  2440
							if ( !(unmatched[i] || setMatched[i]) ) {
indvd00m@0
  2441
								setMatched[i] = pop.call( results );
indvd00m@0
  2442
							}
indvd00m@0
  2443
						}
indvd00m@0
  2444
					}
indvd00m@0
  2445
indvd00m@0
  2446
					// Discard index placeholder values to get only actual matches
indvd00m@0
  2447
					setMatched = condense( setMatched );
indvd00m@0
  2448
				}
indvd00m@0
  2449
indvd00m@0
  2450
				// Add matches to results
indvd00m@0
  2451
				push.apply( results, setMatched );
indvd00m@0
  2452
indvd00m@0
  2453
				// Seedless set matches succeeding multiple successful matchers stipulate sorting
indvd00m@0
  2454
				if ( outermost && !seed && setMatched.length > 0 &&
indvd00m@0
  2455
					( matchedCount + setMatchers.length ) > 1 ) {
indvd00m@0
  2456
indvd00m@0
  2457
					Sizzle.uniqueSort( results );
indvd00m@0
  2458
				}
indvd00m@0
  2459
			}
indvd00m@0
  2460
indvd00m@0
  2461
			// Override manipulation of globals by nested matchers
indvd00m@0
  2462
			if ( outermost ) {
indvd00m@0
  2463
				dirruns = dirrunsUnique;
indvd00m@0
  2464
				outermostContext = contextBackup;
indvd00m@0
  2465
			}
indvd00m@0
  2466
indvd00m@0
  2467
			return unmatched;
indvd00m@0
  2468
		};
indvd00m@0
  2469
indvd00m@0
  2470
	return bySet ?
indvd00m@0
  2471
		markFunction( superMatcher ) :
indvd00m@0
  2472
		superMatcher;
indvd00m@0
  2473
}
indvd00m@0
  2474
indvd00m@0
  2475
compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {
indvd00m@0
  2476
	var i,
indvd00m@0
  2477
		setMatchers = [],
indvd00m@0
  2478
		elementMatchers = [],
indvd00m@0
  2479
		cached = compilerCache[ selector + " " ];
indvd00m@0
  2480
indvd00m@0
  2481
	if ( !cached ) {
indvd00m@0
  2482
		// Generate a function of recursive functions that can be used to check each element
indvd00m@0
  2483
		if ( !match ) {
indvd00m@0
  2484
			match = tokenize( selector );
indvd00m@0
  2485
		}
indvd00m@0
  2486
		i = match.length;
indvd00m@0
  2487
		while ( i-- ) {
indvd00m@0
  2488
			cached = matcherFromTokens( match[i] );
indvd00m@0
  2489
			if ( cached[ expando ] ) {
indvd00m@0
  2490
				setMatchers.push( cached );
indvd00m@0
  2491
			} else {
indvd00m@0
  2492
				elementMatchers.push( cached );
indvd00m@0
  2493
			}
indvd00m@0
  2494
		}
indvd00m@0
  2495
indvd00m@0
  2496
		// Cache the compiled function
indvd00m@0
  2497
		cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );
indvd00m@0
  2498
indvd00m@0
  2499
		// Save selector and tokenization
indvd00m@0
  2500
		cached.selector = selector;
indvd00m@0
  2501
	}
indvd00m@0
  2502
	return cached;
indvd00m@0
  2503
};
indvd00m@0
  2504
indvd00m@0
  2505
/**
indvd00m@0
  2506
 * A low-level selection function that works with Sizzle's compiled
indvd00m@0
  2507
 *  selector functions
indvd00m@0
  2508
 * @param {String|Function} selector A selector or a pre-compiled
indvd00m@0
  2509
 *  selector function built with Sizzle.compile
indvd00m@0
  2510
 * @param {Element} context
indvd00m@0
  2511
 * @param {Array} [results]
indvd00m@0
  2512
 * @param {Array} [seed] A set of elements to match against
indvd00m@0
  2513
 */
indvd00m@0
  2514
select = Sizzle.select = function( selector, context, results, seed ) {
indvd00m@0
  2515
	var i, tokens, token, type, find,
indvd00m@0
  2516
		compiled = typeof selector === "function" && selector,
indvd00m@0
  2517
		match = !seed && tokenize( (selector = compiled.selector || selector) );
indvd00m@0
  2518
indvd00m@0
  2519
	results = results || [];
indvd00m@0
  2520
indvd00m@0
  2521
	// Try to minimize operations if there is no seed and only one group
indvd00m@0
  2522
	if ( match.length === 1 ) {
indvd00m@0
  2523
indvd00m@0
  2524
		// Take a shortcut and set the context if the root selector is an ID
indvd00m@0
  2525
		tokens = match[0] = match[0].slice( 0 );
indvd00m@0
  2526
		if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
indvd00m@0
  2527
				support.getById && context.nodeType === 9 && documentIsHTML &&
indvd00m@0
  2528
				Expr.relative[ tokens[1].type ] ) {
indvd00m@0
  2529
indvd00m@0
  2530
			context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
indvd00m@0
  2531
			if ( !context ) {
indvd00m@0
  2532
				return results;
indvd00m@0
  2533
indvd00m@0
  2534
			// Precompiled matchers will still verify ancestry, so step up a level
indvd00m@0
  2535
			} else if ( compiled ) {
indvd00m@0
  2536
				context = context.parentNode;
indvd00m@0
  2537
			}
indvd00m@0
  2538
indvd00m@0
  2539
			selector = selector.slice( tokens.shift().value.length );
indvd00m@0
  2540
		}
indvd00m@0
  2541
indvd00m@0
  2542
		// Fetch a seed set for right-to-left matching
indvd00m@0
  2543
		i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length;
indvd00m@0
  2544
		while ( i-- ) {
indvd00m@0
  2545
			token = tokens[i];
indvd00m@0
  2546
indvd00m@0
  2547
			// Abort if we hit a combinator
indvd00m@0
  2548
			if ( Expr.relative[ (type = token.type) ] ) {
indvd00m@0
  2549
				break;
indvd00m@0
  2550
			}
indvd00m@0
  2551
			if ( (find = Expr.find[ type ]) ) {
indvd00m@0
  2552
				// Search, expanding context for leading sibling combinators
indvd00m@0
  2553
				if ( (seed = find(
indvd00m@0
  2554
					token.matches[0].replace( runescape, funescape ),
indvd00m@0
  2555
					rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context
indvd00m@0
  2556
				)) ) {
indvd00m@0
  2557
indvd00m@0
  2558
					// If seed is empty or no tokens remain, we can return early
indvd00m@0
  2559
					tokens.splice( i, 1 );
indvd00m@0
  2560
					selector = seed.length && toSelector( tokens );
indvd00m@0
  2561
					if ( !selector ) {
indvd00m@0
  2562
						push.apply( results, seed );
indvd00m@0
  2563
						return results;
indvd00m@0
  2564
					}
indvd00m@0
  2565
indvd00m@0
  2566
					break;
indvd00m@0
  2567
				}
indvd00m@0
  2568
			}
indvd00m@0
  2569
		}
indvd00m@0
  2570
	}
indvd00m@0
  2571
indvd00m@0
  2572
	// Compile and execute a filtering function if one is not provided
indvd00m@0
  2573
	// Provide `match` to avoid retokenization if we modified the selector above
indvd00m@0
  2574
	( compiled || compile( selector, match ) )(
indvd00m@0
  2575
		seed,
indvd00m@0
  2576
		context,
indvd00m@0
  2577
		!documentIsHTML,
indvd00m@0
  2578
		results,
indvd00m@0
  2579
		rsibling.test( selector ) && testContext( context.parentNode ) || context
indvd00m@0
  2580
	);
indvd00m@0
  2581
	return results;
indvd00m@0
  2582
};
indvd00m@0
  2583
indvd00m@0
  2584
// One-time assignments
indvd00m@0
  2585
indvd00m@0
  2586
// Sort stability
indvd00m@0
  2587
support.sortStable = expando.split("").sort( sortOrder ).join("") === expando;
indvd00m@0
  2588
indvd00m@0
  2589
// Support: Chrome 14-35+
indvd00m@0
  2590
// Always assume duplicates if they aren't passed to the comparison function
indvd00m@0
  2591
support.detectDuplicates = !!hasDuplicate;
indvd00m@0
  2592
indvd00m@0
  2593
// Initialize against the default document
indvd00m@0
  2594
setDocument();
indvd00m@0
  2595
indvd00m@0
  2596
// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)
indvd00m@0
  2597
// Detached nodes confoundingly follow *each other*
indvd00m@0
  2598
support.sortDetached = assert(function( div1 ) {
indvd00m@0
  2599
	// Should return 1, but returns 4 (following)
indvd00m@0
  2600
	return div1.compareDocumentPosition( document.createElement("div") ) & 1;
indvd00m@0
  2601
});
indvd00m@0
  2602
indvd00m@0
  2603
// Support: IE<8
indvd00m@0
  2604
// Prevent attribute/property "interpolation"
indvd00m@0
  2605
// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
indvd00m@0
  2606
if ( !assert(function( div ) {
indvd00m@0
  2607
	div.innerHTML = "<a href='#'></a>";
indvd00m@0
  2608
	return div.firstChild.getAttribute("href") === "#" ;
indvd00m@0
  2609
}) ) {
indvd00m@0
  2610
	addHandle( "type|href|height|width", function( elem, name, isXML ) {
indvd00m@0
  2611
		if ( !isXML ) {
indvd00m@0
  2612
			return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 );
indvd00m@0
  2613
		}
indvd00m@0
  2614
	});
indvd00m@0
  2615
}
indvd00m@0
  2616
indvd00m@0
  2617
// Support: IE<9
indvd00m@0
  2618
// Use defaultValue in place of getAttribute("value")
indvd00m@0
  2619
if ( !support.attributes || !assert(function( div ) {
indvd00m@0
  2620
	div.innerHTML = "<input/>";
indvd00m@0
  2621
	div.firstChild.setAttribute( "value", "" );
indvd00m@0
  2622
	return div.firstChild.getAttribute( "value" ) === "";
indvd00m@0
  2623
}) ) {
indvd00m@0
  2624
	addHandle( "value", function( elem, name, isXML ) {
indvd00m@0
  2625
		if ( !isXML && elem.nodeName.toLowerCase() === "input" ) {
indvd00m@0
  2626
			return elem.defaultValue;
indvd00m@0
  2627
		}
indvd00m@0
  2628
	});
indvd00m@0
  2629
}
indvd00m@0
  2630
indvd00m@0
  2631
// Support: IE<9
indvd00m@0
  2632
// Use getAttributeNode to fetch booleans when getAttribute lies
indvd00m@0
  2633
if ( !assert(function( div ) {
indvd00m@0
  2634
	return div.getAttribute("disabled") == null;
indvd00m@0
  2635
}) ) {
indvd00m@0
  2636
	addHandle( booleans, function( elem, name, isXML ) {
indvd00m@0
  2637
		var val;
indvd00m@0
  2638
		if ( !isXML ) {
indvd00m@0
  2639
			return elem[ name ] === true ? name.toLowerCase() :
indvd00m@0
  2640
					(val = elem.getAttributeNode( name )) && val.specified ?
indvd00m@0
  2641
					val.value :
indvd00m@0
  2642
				null;
indvd00m@0
  2643
		}
indvd00m@0
  2644
	});
indvd00m@0
  2645
}
indvd00m@0
  2646
indvd00m@0
  2647
return Sizzle;
indvd00m@0
  2648
indvd00m@0
  2649
})( window );
indvd00m@0
  2650
indvd00m@0
  2651
indvd00m@0
  2652
indvd00m@0
  2653
jQuery.find = Sizzle;
indvd00m@0
  2654
jQuery.expr = Sizzle.selectors;
indvd00m@0
  2655
jQuery.expr[":"] = jQuery.expr.pseudos;
indvd00m@0
  2656
jQuery.unique = Sizzle.uniqueSort;
indvd00m@0
  2657
jQuery.text = Sizzle.getText;
indvd00m@0
  2658
jQuery.isXMLDoc = Sizzle.isXML;
indvd00m@0
  2659
jQuery.contains = Sizzle.contains;
indvd00m@0
  2660
indvd00m@0
  2661
indvd00m@0
  2662
indvd00m@0
  2663
var rneedsContext = jQuery.expr.match.needsContext;
indvd00m@0
  2664
indvd00m@0
  2665
var rsingleTag = (/^<(\w+)\s*\/?>(?:<\/\1>|)$/);
indvd00m@0
  2666
indvd00m@0
  2667
indvd00m@0
  2668
indvd00m@0
  2669
var risSimple = /^.[^:#\[\.,]*$/;
indvd00m@0
  2670
indvd00m@0
  2671
// Implement the identical functionality for filter and not
indvd00m@0
  2672
function winnow( elements, qualifier, not ) {
indvd00m@0
  2673
	if ( jQuery.isFunction( qualifier ) ) {
indvd00m@0
  2674
		return jQuery.grep( elements, function( elem, i ) {
indvd00m@0
  2675
			/* jshint -W018 */
indvd00m@0
  2676
			return !!qualifier.call( elem, i, elem ) !== not;
indvd00m@0
  2677
		});
indvd00m@0
  2678
indvd00m@0
  2679
	}
indvd00m@0
  2680
indvd00m@0
  2681
	if ( qualifier.nodeType ) {
indvd00m@0
  2682
		return jQuery.grep( elements, function( elem ) {
indvd00m@0
  2683
			return ( elem === qualifier ) !== not;
indvd00m@0
  2684
		});
indvd00m@0
  2685
indvd00m@0
  2686
	}
indvd00m@0
  2687
indvd00m@0
  2688
	if ( typeof qualifier === "string" ) {
indvd00m@0
  2689
		if ( risSimple.test( qualifier ) ) {
indvd00m@0
  2690
			return jQuery.filter( qualifier, elements, not );
indvd00m@0
  2691
		}
indvd00m@0
  2692
indvd00m@0
  2693
		qualifier = jQuery.filter( qualifier, elements );
indvd00m@0
  2694
	}
indvd00m@0
  2695
indvd00m@0
  2696
	return jQuery.grep( elements, function( elem ) {
indvd00m@0
  2697
		return ( jQuery.inArray( elem, qualifier ) >= 0 ) !== not;
indvd00m@0
  2698
	});
indvd00m@0
  2699
}
indvd00m@0
  2700
indvd00m@0
  2701
jQuery.filter = function( expr, elems, not ) {
indvd00m@0
  2702
	var elem = elems[ 0 ];
indvd00m@0
  2703
indvd00m@0
  2704
	if ( not ) {
indvd00m@0
  2705
		expr = ":not(" + expr + ")";
indvd00m@0
  2706
	}
indvd00m@0
  2707
indvd00m@0
  2708
	return elems.length === 1 && elem.nodeType === 1 ?
indvd00m@0
  2709
		jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] :
indvd00m@0
  2710
		jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {
indvd00m@0
  2711
			return elem.nodeType === 1;
indvd00m@0
  2712
		}));
indvd00m@0
  2713
};
indvd00m@0
  2714
indvd00m@0
  2715
jQuery.fn.extend({
indvd00m@0
  2716
	find: function( selector ) {
indvd00m@0
  2717
		var i,
indvd00m@0
  2718
			ret = [],
indvd00m@0
  2719
			self = this,
indvd00m@0
  2720
			len = self.length;
indvd00m@0
  2721
indvd00m@0
  2722
		if ( typeof selector !== "string" ) {
indvd00m@0
  2723
			return this.pushStack( jQuery( selector ).filter(function() {
indvd00m@0
  2724
				for ( i = 0; i < len; i++ ) {
indvd00m@0
  2725
					if ( jQuery.contains( self[ i ], this ) ) {
indvd00m@0
  2726
						return true;
indvd00m@0
  2727
					}
indvd00m@0
  2728
				}
indvd00m@0
  2729
			}) );
indvd00m@0
  2730
		}
indvd00m@0
  2731
indvd00m@0
  2732
		for ( i = 0; i < len; i++ ) {
indvd00m@0
  2733
			jQuery.find( selector, self[ i ], ret );
indvd00m@0
  2734
		}
indvd00m@0
  2735
indvd00m@0
  2736
		// Needed because $( selector, context ) becomes $( context ).find( selector )
indvd00m@0
  2737
		ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret );
indvd00m@0
  2738
		ret.selector = this.selector ? this.selector + " " + selector : selector;
indvd00m@0
  2739
		return ret;
indvd00m@0
  2740
	},
indvd00m@0
  2741
	filter: function( selector ) {
indvd00m@0
  2742
		return this.pushStack( winnow(this, selector || [], false) );
indvd00m@0
  2743
	},
indvd00m@0
  2744
	not: function( selector ) {
indvd00m@0
  2745
		return this.pushStack( winnow(this, selector || [], true) );
indvd00m@0
  2746
	},
indvd00m@0
  2747
	is: function( selector ) {
indvd00m@0
  2748
		return !!winnow(
indvd00m@0
  2749
			this,
indvd00m@0
  2750
indvd00m@0
  2751
			// If this is a positional/relative selector, check membership in the returned set
indvd00m@0
  2752
			// so $("p:first").is("p:last") won't return true for a doc with two "p".
indvd00m@0
  2753
			typeof selector === "string" && rneedsContext.test( selector ) ?
indvd00m@0
  2754
				jQuery( selector ) :
indvd00m@0
  2755
				selector || [],
indvd00m@0
  2756
			false
indvd00m@0
  2757
		).length;
indvd00m@0
  2758
	}
indvd00m@0
  2759
});
indvd00m@0
  2760
indvd00m@0
  2761
indvd00m@0
  2762
// Initialize a jQuery object
indvd00m@0
  2763
indvd00m@0
  2764
indvd00m@0
  2765
// A central reference to the root jQuery(document)
indvd00m@0
  2766
var rootjQuery,
indvd00m@0
  2767
indvd00m@0
  2768
	// Use the correct document accordingly with window argument (sandbox)
indvd00m@0
  2769
	document = window.document,
indvd00m@0
  2770
indvd00m@0
  2771
	// A simple way to check for HTML strings
indvd00m@0
  2772
	// Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
indvd00m@0
  2773
	// Strict HTML recognition (#11290: must start with <)
indvd00m@0
  2774
	rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,
indvd00m@0
  2775
indvd00m@0
  2776
	init = jQuery.fn.init = function( selector, context ) {
indvd00m@0
  2777
		var match, elem;
indvd00m@0
  2778
indvd00m@0
  2779
		// HANDLE: $(""), $(null), $(undefined), $(false)
indvd00m@0
  2780
		if ( !selector ) {
indvd00m@0
  2781
			return this;
indvd00m@0
  2782
		}
indvd00m@0
  2783
indvd00m@0
  2784
		// Handle HTML strings
indvd00m@0
  2785
		if ( typeof selector === "string" ) {
indvd00m@0
  2786
			if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {
indvd00m@0
  2787
				// Assume that strings that start and end with <> are HTML and skip the regex check
indvd00m@0
  2788
				match = [ null, selector, null ];
indvd00m@0
  2789
indvd00m@0
  2790
			} else {
indvd00m@0
  2791
				match = rquickExpr.exec( selector );
indvd00m@0
  2792
			}
indvd00m@0
  2793
indvd00m@0
  2794
			// Match html or make sure no context is specified for #id
indvd00m@0
  2795
			if ( match && (match[1] || !context) ) {
indvd00m@0
  2796
indvd00m@0
  2797
				// HANDLE: $(html) -> $(array)
indvd00m@0
  2798
				if ( match[1] ) {
indvd00m@0
  2799
					context = context instanceof jQuery ? context[0] : context;
indvd00m@0
  2800
indvd00m@0
  2801
					// scripts is true for back-compat
indvd00m@0
  2802
					// Intentionally let the error be thrown if parseHTML is not present
indvd00m@0
  2803
					jQuery.merge( this, jQuery.parseHTML(
indvd00m@0
  2804
						match[1],
indvd00m@0
  2805
						context && context.nodeType ? context.ownerDocument || context : document,
indvd00m@0
  2806
						true
indvd00m@0
  2807
					) );
indvd00m@0
  2808
indvd00m@0
  2809
					// HANDLE: $(html, props)
indvd00m@0
  2810
					if ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) {
indvd00m@0
  2811
						for ( match in context ) {
indvd00m@0
  2812
							// Properties of context are called as methods if possible
indvd00m@0
  2813
							if ( jQuery.isFunction( this[ match ] ) ) {
indvd00m@0
  2814
								this[ match ]( context[ match ] );
indvd00m@0
  2815
indvd00m@0
  2816
							// ...and otherwise set as attributes
indvd00m@0
  2817
							} else {
indvd00m@0
  2818
								this.attr( match, context[ match ] );
indvd00m@0
  2819
							}
indvd00m@0
  2820
						}
indvd00m@0
  2821
					}
indvd00m@0
  2822
indvd00m@0
  2823
					return this;
indvd00m@0
  2824
indvd00m@0
  2825
				// HANDLE: $(#id)
indvd00m@0
  2826
				} else {
indvd00m@0
  2827
					elem = document.getElementById( match[2] );
indvd00m@0
  2828
indvd00m@0
  2829
					// Check parentNode to catch when Blackberry 4.6 returns
indvd00m@0
  2830
					// nodes that are no longer in the document #6963
indvd00m@0
  2831
					if ( elem && elem.parentNode ) {
indvd00m@0
  2832
						// Handle the case where IE and Opera return items
indvd00m@0
  2833
						// by name instead of ID
indvd00m@0
  2834
						if ( elem.id !== match[2] ) {
indvd00m@0
  2835
							return rootjQuery.find( selector );
indvd00m@0
  2836
						}
indvd00m@0
  2837
indvd00m@0
  2838
						// Otherwise, we inject the element directly into the jQuery object
indvd00m@0
  2839
						this.length = 1;
indvd00m@0
  2840
						this[0] = elem;
indvd00m@0
  2841
					}
indvd00m@0
  2842
indvd00m@0
  2843
					this.context = document;
indvd00m@0
  2844
					this.selector = selector;
indvd00m@0
  2845
					return this;
indvd00m@0
  2846
				}
indvd00m@0
  2847
indvd00m@0
  2848
			// HANDLE: $(expr, $(...))
indvd00m@0
  2849
			} else if ( !context || context.jquery ) {
indvd00m@0
  2850
				return ( context || rootjQuery ).find( selector );
indvd00m@0
  2851
indvd00m@0
  2852
			// HANDLE: $(expr, context)
indvd00m@0
  2853
			// (which is just equivalent to: $(context).find(expr)
indvd00m@0
  2854
			} else {
indvd00m@0
  2855
				return this.constructor( context ).find( selector );
indvd00m@0
  2856
			}
indvd00m@0
  2857
indvd00m@0
  2858
		// HANDLE: $(DOMElement)
indvd00m@0
  2859
		} else if ( selector.nodeType ) {
indvd00m@0
  2860
			this.context = this[0] = selector;
indvd00m@0
  2861
			this.length = 1;
indvd00m@0
  2862
			return this;
indvd00m@0
  2863
indvd00m@0
  2864
		// HANDLE: $(function)
indvd00m@0
  2865
		// Shortcut for document ready
indvd00m@0
  2866
		} else if ( jQuery.isFunction( selector ) ) {
indvd00m@0
  2867
			return typeof rootjQuery.ready !== "undefined" ?
indvd00m@0
  2868
				rootjQuery.ready( selector ) :
indvd00m@0
  2869
				// Execute immediately if ready is not present
indvd00m@0
  2870
				selector( jQuery );
indvd00m@0
  2871
		}
indvd00m@0
  2872
indvd00m@0
  2873
		if ( selector.selector !== undefined ) {
indvd00m@0
  2874
			this.selector = selector.selector;
indvd00m@0
  2875
			this.context = selector.context;
indvd00m@0
  2876
		}
indvd00m@0
  2877
indvd00m@0
  2878
		return jQuery.makeArray( selector, this );
indvd00m@0
  2879
	};
indvd00m@0
  2880
indvd00m@0
  2881
// Give the init function the jQuery prototype for later instantiation
indvd00m@0
  2882
init.prototype = jQuery.fn;
indvd00m@0
  2883
indvd00m@0
  2884
// Initialize central reference
indvd00m@0
  2885
rootjQuery = jQuery( document );
indvd00m@0
  2886
indvd00m@0
  2887
indvd00m@0
  2888
var rparentsprev = /^(?:parents|prev(?:Until|All))/,
indvd00m@0
  2889
	// methods guaranteed to produce a unique set when starting from a unique set
indvd00m@0
  2890
	guaranteedUnique = {
indvd00m@0
  2891
		children: true,
indvd00m@0
  2892
		contents: true,
indvd00m@0
  2893
		next: true,
indvd00m@0
  2894
		prev: true
indvd00m@0
  2895
	};
indvd00m@0
  2896
indvd00m@0
  2897
jQuery.extend({
indvd00m@0
  2898
	dir: function( elem, dir, until ) {
indvd00m@0
  2899
		var matched = [],
indvd00m@0
  2900
			cur = elem[ dir ];
indvd00m@0
  2901
indvd00m@0
  2902
		while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {
indvd00m@0
  2903
			if ( cur.nodeType === 1 ) {
indvd00m@0
  2904
				matched.push( cur );
indvd00m@0
  2905
			}
indvd00m@0
  2906
			cur = cur[dir];
indvd00m@0
  2907
		}
indvd00m@0
  2908
		return matched;
indvd00m@0
  2909
	},
indvd00m@0
  2910
indvd00m@0
  2911
	sibling: function( n, elem ) {
indvd00m@0
  2912
		var r = [];
indvd00m@0
  2913
indvd00m@0
  2914
		for ( ; n; n = n.nextSibling ) {
indvd00m@0
  2915
			if ( n.nodeType === 1 && n !== elem ) {
indvd00m@0
  2916
				r.push( n );
indvd00m@0
  2917
			}
indvd00m@0
  2918
		}
indvd00m@0
  2919
indvd00m@0
  2920
		return r;
indvd00m@0
  2921
	}
indvd00m@0
  2922
});
indvd00m@0
  2923
indvd00m@0
  2924
jQuery.fn.extend({
indvd00m@0
  2925
	has: function( target ) {
indvd00m@0
  2926
		var i,
indvd00m@0
  2927
			targets = jQuery( target, this ),
indvd00m@0
  2928
			len = targets.length;
indvd00m@0
  2929
indvd00m@0
  2930
		return this.filter(function() {
indvd00m@0
  2931
			for ( i = 0; i < len; i++ ) {
indvd00m@0
  2932
				if ( jQuery.contains( this, targets[i] ) ) {
indvd00m@0
  2933
					return true;
indvd00m@0
  2934
				}
indvd00m@0
  2935
			}
indvd00m@0
  2936
		});
indvd00m@0
  2937
	},
indvd00m@0
  2938
indvd00m@0
  2939
	closest: function( selectors, context ) {
indvd00m@0
  2940
		var cur,
indvd00m@0
  2941
			i = 0,
indvd00m@0
  2942
			l = this.length,
indvd00m@0
  2943
			matched = [],
indvd00m@0
  2944
			pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ?
indvd00m@0
  2945
				jQuery( selectors, context || this.context ) :
indvd00m@0
  2946
				0;
indvd00m@0
  2947
indvd00m@0
  2948
		for ( ; i < l; i++ ) {
indvd00m@0
  2949
			for ( cur = this[i]; cur && cur !== context; cur = cur.parentNode ) {
indvd00m@0
  2950
				// Always skip document fragments
indvd00m@0
  2951
				if ( cur.nodeType < 11 && (pos ?
indvd00m@0
  2952
					pos.index(cur) > -1 :
indvd00m@0
  2953
indvd00m@0
  2954
					// Don't pass non-elements to Sizzle
indvd00m@0
  2955
					cur.nodeType === 1 &&
indvd00m@0
  2956
						jQuery.find.matchesSelector(cur, selectors)) ) {
indvd00m@0
  2957
indvd00m@0
  2958
					matched.push( cur );
indvd00m@0
  2959
					break;
indvd00m@0
  2960
				}
indvd00m@0
  2961
			}
indvd00m@0
  2962
		}
indvd00m@0
  2963
indvd00m@0
  2964
		return this.pushStack( matched.length > 1 ? jQuery.unique( matched ) : matched );
indvd00m@0
  2965
	},
indvd00m@0
  2966
indvd00m@0
  2967
	// Determine the position of an element within
indvd00m@0
  2968
	// the matched set of elements
indvd00m@0
  2969
	index: function( elem ) {
indvd00m@0
  2970
indvd00m@0
  2971
		// No argument, return index in parent
indvd00m@0
  2972
		if ( !elem ) {
indvd00m@0
  2973
			return ( this[0] && this[0].parentNode ) ? this.first().prevAll().length : -1;
indvd00m@0
  2974
		}
indvd00m@0
  2975
indvd00m@0
  2976
		// index in selector
indvd00m@0
  2977
		if ( typeof elem === "string" ) {
indvd00m@0
  2978
			return jQuery.inArray( this[0], jQuery( elem ) );
indvd00m@0
  2979
		}
indvd00m@0
  2980
indvd00m@0
  2981
		// Locate the position of the desired element
indvd00m@0
  2982
		return jQuery.inArray(
indvd00m@0
  2983
			// If it receives a jQuery object, the first element is used
indvd00m@0
  2984
			elem.jquery ? elem[0] : elem, this );
indvd00m@0
  2985
	},
indvd00m@0
  2986
indvd00m@0
  2987
	add: function( selector, context ) {
indvd00m@0
  2988
		return this.pushStack(
indvd00m@0
  2989
			jQuery.unique(
indvd00m@0
  2990
				jQuery.merge( this.get(), jQuery( selector, context ) )
indvd00m@0
  2991
			)
indvd00m@0
  2992
		);
indvd00m@0
  2993
	},
indvd00m@0
  2994
indvd00m@0
  2995
	addBack: function( selector ) {
indvd00m@0
  2996
		return this.add( selector == null ?
indvd00m@0
  2997
			this.prevObject : this.prevObject.filter(selector)
indvd00m@0
  2998
		);
indvd00m@0
  2999
	}
indvd00m@0
  3000
});
indvd00m@0
  3001
indvd00m@0
  3002
function sibling( cur, dir ) {
indvd00m@0
  3003
	do {
indvd00m@0
  3004
		cur = cur[ dir ];
indvd00m@0
  3005
	} while ( cur && cur.nodeType !== 1 );
indvd00m@0
  3006
indvd00m@0
  3007
	return cur;
indvd00m@0
  3008
}
indvd00m@0
  3009
indvd00m@0
  3010
jQuery.each({
indvd00m@0
  3011
	parent: function( elem ) {
indvd00m@0
  3012
		var parent = elem.parentNode;
indvd00m@0
  3013
		return parent && parent.nodeType !== 11 ? parent : null;
indvd00m@0
  3014
	},
indvd00m@0
  3015
	parents: function( elem ) {
indvd00m@0
  3016
		return jQuery.dir( elem, "parentNode" );
indvd00m@0
  3017
	},
indvd00m@0
  3018
	parentsUntil: function( elem, i, until ) {
indvd00m@0
  3019
		return jQuery.dir( elem, "parentNode", until );
indvd00m@0
  3020
	},
indvd00m@0
  3021
	next: function( elem ) {
indvd00m@0
  3022
		return sibling( elem, "nextSibling" );
indvd00m@0
  3023
	},
indvd00m@0
  3024
	prev: function( elem ) {
indvd00m@0
  3025
		return sibling( elem, "previousSibling" );
indvd00m@0
  3026
	},
indvd00m@0
  3027
	nextAll: function( elem ) {
indvd00m@0
  3028
		return jQuery.dir( elem, "nextSibling" );
indvd00m@0
  3029
	},
indvd00m@0
  3030
	prevAll: function( elem ) {
indvd00m@0
  3031
		return jQuery.dir( elem, "previousSibling" );
indvd00m@0
  3032
	},
indvd00m@0
  3033
	nextUntil: function( elem, i, until ) {
indvd00m@0
  3034
		return jQuery.dir( elem, "nextSibling", until );
indvd00m@0
  3035
	},
indvd00m@0
  3036
	prevUntil: function( elem, i, until ) {
indvd00m@0
  3037
		return jQuery.dir( elem, "previousSibling", until );
indvd00m@0
  3038
	},
indvd00m@0
  3039
	siblings: function( elem ) {
indvd00m@0
  3040
		return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem );
indvd00m@0
  3041
	},
indvd00m@0
  3042
	children: function( elem ) {
indvd00m@0
  3043
		return jQuery.sibling( elem.firstChild );
indvd00m@0
  3044
	},
indvd00m@0
  3045
	contents: function( elem ) {
indvd00m@0
  3046
		return jQuery.nodeName( elem, "iframe" ) ?
indvd00m@0
  3047
			elem.contentDocument || elem.contentWindow.document :
indvd00m@0
  3048
			jQuery.merge( [], elem.childNodes );
indvd00m@0
  3049
	}
indvd00m@0
  3050
}, function( name, fn ) {
indvd00m@0
  3051
	jQuery.fn[ name ] = function( until, selector ) {
indvd00m@0
  3052
		var ret = jQuery.map( this, fn, until );
indvd00m@0
  3053
indvd00m@0
  3054
		if ( name.slice( -5 ) !== "Until" ) {
indvd00m@0
  3055
			selector = until;
indvd00m@0
  3056
		}
indvd00m@0
  3057
indvd00m@0
  3058
		if ( selector && typeof selector === "string" ) {
indvd00m@0
  3059
			ret = jQuery.filter( selector, ret );
indvd00m@0
  3060
		}
indvd00m@0
  3061
indvd00m@0
  3062
		if ( this.length > 1 ) {
indvd00m@0
  3063
			// Remove duplicates
indvd00m@0
  3064
			if ( !guaranteedUnique[ name ] ) {
indvd00m@0
  3065
				ret = jQuery.unique( ret );
indvd00m@0
  3066
			}
indvd00m@0
  3067
indvd00m@0
  3068
			// Reverse order for parents* and prev-derivatives
indvd00m@0
  3069
			if ( rparentsprev.test( name ) ) {
indvd00m@0
  3070
				ret = ret.reverse();
indvd00m@0
  3071
			}
indvd00m@0
  3072
		}
indvd00m@0
  3073
indvd00m@0
  3074
		return this.pushStack( ret );
indvd00m@0
  3075
	};
indvd00m@0
  3076
});
indvd00m@0
  3077
var rnotwhite = (/\S+/g);
indvd00m@0
  3078
indvd00m@0
  3079
indvd00m@0
  3080
indvd00m@0
  3081
// String to Object options format cache
indvd00m@0
  3082
var optionsCache = {};
indvd00m@0
  3083
indvd00m@0
  3084
// Convert String-formatted options into Object-formatted ones and store in cache
indvd00m@0
  3085
function createOptions( options ) {
indvd00m@0
  3086
	var object = optionsCache[ options ] = {};
indvd00m@0
  3087
	jQuery.each( options.match( rnotwhite ) || [], function( _, flag ) {
indvd00m@0
  3088
		object[ flag ] = true;
indvd00m@0
  3089
	});
indvd00m@0
  3090
	return object;
indvd00m@0
  3091
}
indvd00m@0
  3092
indvd00m@0
  3093
/*
indvd00m@0
  3094
 * Create a callback list using the following parameters:
indvd00m@0
  3095
 *
indvd00m@0
  3096
 *	options: an optional list of space-separated options that will change how
indvd00m@0
  3097
 *			the callback list behaves or a more traditional option object
indvd00m@0
  3098
 *
indvd00m@0
  3099
 * By default a callback list will act like an event callback list and can be
indvd00m@0
  3100
 * "fired" multiple times.
indvd00m@0
  3101
 *
indvd00m@0
  3102
 * Possible options:
indvd00m@0
  3103
 *
indvd00m@0
  3104
 *	once:			will ensure the callback list can only be fired once (like a Deferred)
indvd00m@0
  3105
 *
indvd00m@0
  3106
 *	memory:			will keep track of previous values and will call any callback added
indvd00m@0
  3107
 *					after the list has been fired right away with the latest "memorized"
indvd00m@0
  3108
 *					values (like a Deferred)
indvd00m@0
  3109
 *
indvd00m@0
  3110
 *	unique:			will ensure a callback can only be added once (no duplicate in the list)
indvd00m@0
  3111
 *
indvd00m@0
  3112
 *	stopOnFalse:	interrupt callings when a callback returns false
indvd00m@0
  3113
 *
indvd00m@0
  3114
 */
indvd00m@0
  3115
jQuery.Callbacks = function( options ) {
indvd00m@0
  3116
indvd00m@0
  3117
	// Convert options from String-formatted to Object-formatted if needed
indvd00m@0
  3118
	// (we check in cache first)
indvd00m@0
  3119
	options = typeof options === "string" ?
indvd00m@0
  3120
		( optionsCache[ options ] || createOptions( options ) ) :
indvd00m@0
  3121
		jQuery.extend( {}, options );
indvd00m@0
  3122
indvd00m@0
  3123
	var // Flag to know if list is currently firing
indvd00m@0
  3124
		firing,
indvd00m@0
  3125
		// Last fire value (for non-forgettable lists)
indvd00m@0
  3126
		memory,
indvd00m@0
  3127
		// Flag to know if list was already fired
indvd00m@0
  3128
		fired,
indvd00m@0
  3129
		// End of the loop when firing
indvd00m@0
  3130
		firingLength,
indvd00m@0
  3131
		// Index of currently firing callback (modified by remove if needed)
indvd00m@0
  3132
		firingIndex,
indvd00m@0
  3133
		// First callback to fire (used internally by add and fireWith)
indvd00m@0
  3134
		firingStart,
indvd00m@0
  3135
		// Actual callback list
indvd00m@0
  3136
		list = [],
indvd00m@0
  3137
		// Stack of fire calls for repeatable lists
indvd00m@0
  3138
		stack = !options.once && [],
indvd00m@0
  3139
		// Fire callbacks
indvd00m@0
  3140
		fire = function( data ) {
indvd00m@0
  3141
			memory = options.memory && data;
indvd00m@0
  3142
			fired = true;
indvd00m@0
  3143
			firingIndex = firingStart || 0;
indvd00m@0
  3144
			firingStart = 0;
indvd00m@0
  3145
			firingLength = list.length;
indvd00m@0
  3146
			firing = true;
indvd00m@0
  3147
			for ( ; list && firingIndex < firingLength; firingIndex++ ) {
indvd00m@0
  3148
				if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) {
indvd00m@0
  3149
					memory = false; // To prevent further calls using add
indvd00m@0
  3150
					break;
indvd00m@0
  3151
				}
indvd00m@0
  3152
			}
indvd00m@0
  3153
			firing = false;
indvd00m@0
  3154
			if ( list ) {
indvd00m@0
  3155
				if ( stack ) {
indvd00m@0
  3156
					if ( stack.length ) {
indvd00m@0
  3157
						fire( stack.shift() );
indvd00m@0
  3158
					}
indvd00m@0
  3159
				} else if ( memory ) {
indvd00m@0
  3160
					list = [];
indvd00m@0
  3161
				} else {
indvd00m@0
  3162
					self.disable();
indvd00m@0
  3163
				}
indvd00m@0
  3164
			}
indvd00m@0
  3165
		},
indvd00m@0
  3166
		// Actual Callbacks object
indvd00m@0
  3167
		self = {
indvd00m@0
  3168
			// Add a callback or a collection of callbacks to the list
indvd00m@0
  3169
			add: function() {
indvd00m@0
  3170
				if ( list ) {
indvd00m@0
  3171
					// First, we save the current length
indvd00m@0
  3172
					var start = list.length;
indvd00m@0
  3173
					(function add( args ) {
indvd00m@0
  3174
						jQuery.each( args, function( _, arg ) {
indvd00m@0
  3175
							var type = jQuery.type( arg );
indvd00m@0
  3176
							if ( type === "function" ) {
indvd00m@0
  3177
								if ( !options.unique || !self.has( arg ) ) {
indvd00m@0
  3178
									list.push( arg );
indvd00m@0
  3179
								}
indvd00m@0
  3180
							} else if ( arg && arg.length && type !== "string" ) {
indvd00m@0
  3181
								// Inspect recursively
indvd00m@0
  3182
								add( arg );
indvd00m@0
  3183
							}
indvd00m@0
  3184
						});
indvd00m@0
  3185
					})( arguments );
indvd00m@0
  3186
					// Do we need to add the callbacks to the
indvd00m@0
  3187
					// current firing batch?
indvd00m@0
  3188
					if ( firing ) {
indvd00m@0
  3189
						firingLength = list.length;
indvd00m@0
  3190
					// With memory, if we're not firing then
indvd00m@0
  3191
					// we should call right away
indvd00m@0
  3192
					} else if ( memory ) {
indvd00m@0
  3193
						firingStart = start;
indvd00m@0
  3194
						fire( memory );
indvd00m@0
  3195
					}
indvd00m@0
  3196
				}
indvd00m@0
  3197
				return this;
indvd00m@0
  3198
			},
indvd00m@0
  3199
			// Remove a callback from the list
indvd00m@0
  3200
			remove: function() {
indvd00m@0
  3201
				if ( list ) {
indvd00m@0
  3202
					jQuery.each( arguments, function( _, arg ) {
indvd00m@0
  3203
						var index;
indvd00m@0
  3204
						while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {
indvd00m@0
  3205
							list.splice( index, 1 );
indvd00m@0
  3206
							// Handle firing indexes
indvd00m@0
  3207
							if ( firing ) {
indvd00m@0
  3208
								if ( index <= firingLength ) {
indvd00m@0
  3209
									firingLength--;
indvd00m@0
  3210
								}
indvd00m@0
  3211
								if ( index <= firingIndex ) {
indvd00m@0
  3212
									firingIndex--;
indvd00m@0
  3213
								}
indvd00m@0
  3214
							}
indvd00m@0
  3215
						}
indvd00m@0
  3216
					});
indvd00m@0
  3217
				}
indvd00m@0
  3218
				return this;
indvd00m@0
  3219
			},
indvd00m@0
  3220
			// Check if a given callback is in the list.
indvd00m@0
  3221
			// If no argument is given, return whether or not list has callbacks attached.
indvd00m@0
  3222
			has: function( fn ) {
indvd00m@0
  3223
				return fn ? jQuery.inArray( fn, list ) > -1 : !!( list && list.length );
indvd00m@0
  3224
			},
indvd00m@0
  3225
			// Remove all callbacks from the list
indvd00m@0
  3226
			empty: function() {
indvd00m@0
  3227
				list = [];
indvd00m@0
  3228
				firingLength = 0;
indvd00m@0
  3229
				return this;
indvd00m@0
  3230
			},
indvd00m@0
  3231
			// Have the list do nothing anymore
indvd00m@0
  3232
			disable: function() {
indvd00m@0
  3233
				list = stack = memory = undefined;
indvd00m@0
  3234
				return this;
indvd00m@0
  3235
			},
indvd00m@0
  3236
			// Is it disabled?
indvd00m@0
  3237
			disabled: function() {
indvd00m@0
  3238
				return !list;
indvd00m@0
  3239
			},
indvd00m@0
  3240
			// Lock the list in its current state
indvd00m@0
  3241
			lock: function() {
indvd00m@0
  3242
				stack = undefined;
indvd00m@0
  3243
				if ( !memory ) {
indvd00m@0
  3244
					self.disable();
indvd00m@0
  3245
				}
indvd00m@0
  3246
				return this;
indvd00m@0
  3247
			},
indvd00m@0
  3248
			// Is it locked?
indvd00m@0
  3249
			locked: function() {
indvd00m@0
  3250
				return !stack;
indvd00m@0
  3251
			},
indvd00m@0
  3252
			// Call all callbacks with the given context and arguments
indvd00m@0
  3253
			fireWith: function( context, args ) {
indvd00m@0
  3254
				if ( list && ( !fired || stack ) ) {
indvd00m@0
  3255
					args = args || [];
indvd00m@0
  3256
					args = [ context, args.slice ? args.slice() : args ];
indvd00m@0
  3257
					if ( firing ) {
indvd00m@0
  3258
						stack.push( args );
indvd00m@0
  3259
					} else {
indvd00m@0
  3260
						fire( args );
indvd00m@0
  3261
					}
indvd00m@0
  3262
				}
indvd00m@0
  3263
				return this;
indvd00m@0
  3264
			},
indvd00m@0
  3265
			// Call all the callbacks with the given arguments
indvd00m@0
  3266
			fire: function() {
indvd00m@0
  3267
				self.fireWith( this, arguments );
indvd00m@0
  3268
				return this;
indvd00m@0
  3269
			},
indvd00m@0
  3270
			// To know if the callbacks have already been called at least once
indvd00m@0
  3271
			fired: function() {
indvd00m@0
  3272
				return !!fired;
indvd00m@0
  3273
			}
indvd00m@0
  3274
		};
indvd00m@0
  3275
indvd00m@0
  3276
	return self;
indvd00m@0
  3277
};
indvd00m@0
  3278
indvd00m@0
  3279
indvd00m@0
  3280
jQuery.extend({
indvd00m@0
  3281
indvd00m@0
  3282
	Deferred: function( func ) {
indvd00m@0
  3283
		var tuples = [
indvd00m@0
  3284
				// action, add listener, listener list, final state
indvd00m@0
  3285
				[ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
indvd00m@0
  3286
				[ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],
indvd00m@0
  3287
				[ "notify", "progress", jQuery.Callbacks("memory") ]
indvd00m@0
  3288
			],
indvd00m@0
  3289
			state = "pending",
indvd00m@0
  3290
			promise = {
indvd00m@0
  3291
				state: function() {
indvd00m@0
  3292
					return state;
indvd00m@0
  3293
				},
indvd00m@0
  3294
				always: function() {
indvd00m@0
  3295
					deferred.done( arguments ).fail( arguments );
indvd00m@0
  3296
					return this;
indvd00m@0
  3297
				},
indvd00m@0
  3298
				then: function( /* fnDone, fnFail, fnProgress */ ) {
indvd00m@0
  3299
					var fns = arguments;
indvd00m@0
  3300
					return jQuery.Deferred(function( newDefer ) {
indvd00m@0
  3301
						jQuery.each( tuples, function( i, tuple ) {
indvd00m@0
  3302
							var fn = jQuery.isFunction( fns[ i ] ) && fns[ i ];
indvd00m@0
  3303
							// deferred[ done | fail | progress ] for forwarding actions to newDefer
indvd00m@0
  3304
							deferred[ tuple[1] ](function() {
indvd00m@0
  3305
								var returned = fn && fn.apply( this, arguments );
indvd00m@0
  3306
								if ( returned && jQuery.isFunction( returned.promise ) ) {
indvd00m@0
  3307
									returned.promise()
indvd00m@0
  3308
										.done( newDefer.resolve )
indvd00m@0
  3309
										.fail( newDefer.reject )
indvd00m@0
  3310
										.progress( newDefer.notify );
indvd00m@0
  3311
								} else {
indvd00m@0
  3312
									newDefer[ tuple[ 0 ] + "With" ]( this === promise ? newDefer.promise() : this, fn ? [ returned ] : arguments );
indvd00m@0
  3313
								}
indvd00m@0
  3314
							});
indvd00m@0
  3315
						});
indvd00m@0
  3316
						fns = null;
indvd00m@0
  3317
					}).promise();
indvd00m@0
  3318
				},
indvd00m@0
  3319
				// Get a promise for this deferred
indvd00m@0
  3320
				// If obj is provided, the promise aspect is added to the object
indvd00m@0
  3321
				promise: function( obj ) {
indvd00m@0
  3322
					return obj != null ? jQuery.extend( obj, promise ) : promise;
indvd00m@0
  3323
				}
indvd00m@0
  3324
			},
indvd00m@0
  3325
			deferred = {};
indvd00m@0
  3326
indvd00m@0
  3327
		// Keep pipe for back-compat
indvd00m@0
  3328
		promise.pipe = promise.then;
indvd00m@0
  3329
indvd00m@0
  3330
		// Add list-specific methods
indvd00m@0
  3331
		jQuery.each( tuples, function( i, tuple ) {
indvd00m@0
  3332
			var list = tuple[ 2 ],
indvd00m@0
  3333
				stateString = tuple[ 3 ];
indvd00m@0
  3334
indvd00m@0
  3335
			// promise[ done | fail | progress ] = list.add
indvd00m@0
  3336
			promise[ tuple[1] ] = list.add;
indvd00m@0
  3337
indvd00m@0
  3338
			// Handle state
indvd00m@0
  3339
			if ( stateString ) {
indvd00m@0
  3340
				list.add(function() {
indvd00m@0
  3341
					// state = [ resolved | rejected ]
indvd00m@0
  3342
					state = stateString;
indvd00m@0
  3343
indvd00m@0
  3344
				// [ reject_list | resolve_list ].disable; progress_list.lock
indvd00m@0
  3345
				}, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock );
indvd00m@0
  3346
			}
indvd00m@0
  3347
indvd00m@0
  3348
			// deferred[ resolve | reject | notify ]
indvd00m@0
  3349
			deferred[ tuple[0] ] = function() {
indvd00m@0
  3350
				deferred[ tuple[0] + "With" ]( this === deferred ? promise : this, arguments );
indvd00m@0
  3351
				return this;
indvd00m@0
  3352
			};
indvd00m@0
  3353
			deferred[ tuple[0] + "With" ] = list.fireWith;
indvd00m@0
  3354
		});
indvd00m@0
  3355
indvd00m@0
  3356
		// Make the deferred a promise
indvd00m@0
  3357
		promise.promise( deferred );
indvd00m@0
  3358
indvd00m@0
  3359
		// Call given func if any
indvd00m@0
  3360
		if ( func ) {
indvd00m@0
  3361
			func.call( deferred, deferred );
indvd00m@0
  3362
		}
indvd00m@0
  3363
indvd00m@0
  3364
		// All done!
indvd00m@0
  3365
		return deferred;
indvd00m@0
  3366
	},
indvd00m@0
  3367
indvd00m@0
  3368
	// Deferred helper
indvd00m@0
  3369
	when: function( subordinate /* , ..., subordinateN */ ) {
indvd00m@0
  3370
		var i = 0,
indvd00m@0
  3371
			resolveValues = slice.call( arguments ),
indvd00m@0
  3372
			length = resolveValues.length,
indvd00m@0
  3373
indvd00m@0
  3374
			// the count of uncompleted subordinates
indvd00m@0
  3375
			remaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0,
indvd00m@0
  3376
indvd00m@0
  3377
			// the master Deferred. If resolveValues consist of only a single Deferred, just use that.
indvd00m@0
  3378
			deferred = remaining === 1 ? subordinate : jQuery.Deferred(),
indvd00m@0
  3379
indvd00m@0
  3380
			// Update function for both resolve and progress values
indvd00m@0
  3381
			updateFunc = function( i, contexts, values ) {
indvd00m@0
  3382
				return function( value ) {
indvd00m@0
  3383
					contexts[ i ] = this;
indvd00m@0
  3384
					values[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;
indvd00m@0
  3385
					if ( values === progressValues ) {
indvd00m@0
  3386
						deferred.notifyWith( contexts, values );
indvd00m@0
  3387
indvd00m@0
  3388
					} else if ( !(--remaining) ) {
indvd00m@0
  3389
						deferred.resolveWith( contexts, values );
indvd00m@0
  3390
					}
indvd00m@0
  3391
				};
indvd00m@0
  3392
			},
indvd00m@0
  3393
indvd00m@0
  3394
			progressValues, progressContexts, resolveContexts;
indvd00m@0
  3395
indvd00m@0
  3396
		// add listeners to Deferred subordinates; treat others as resolved
indvd00m@0
  3397
		if ( length > 1 ) {
indvd00m@0
  3398
			progressValues = new Array( length );
indvd00m@0
  3399
			progressContexts = new Array( length );
indvd00m@0
  3400
			resolveContexts = new Array( length );
indvd00m@0
  3401
			for ( ; i < length; i++ ) {
indvd00m@0
  3402
				if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) {
indvd00m@0
  3403
					resolveValues[ i ].promise()
indvd00m@0
  3404
						.done( updateFunc( i, resolveContexts, resolveValues ) )
indvd00m@0
  3405
						.fail( deferred.reject )
indvd00m@0
  3406
						.progress( updateFunc( i, progressContexts, progressValues ) );
indvd00m@0
  3407
				} else {
indvd00m@0
  3408
					--remaining;
indvd00m@0
  3409
				}
indvd00m@0
  3410
			}
indvd00m@0
  3411
		}
indvd00m@0
  3412
indvd00m@0
  3413
		// if we're not waiting on anything, resolve the master
indvd00m@0
  3414
		if ( !remaining ) {
indvd00m@0
  3415
			deferred.resolveWith( resolveContexts, resolveValues );
indvd00m@0
  3416
		}
indvd00m@0
  3417
indvd00m@0
  3418
		return deferred.promise();
indvd00m@0
  3419
	}
indvd00m@0
  3420
});
indvd00m@0
  3421
indvd00m@0
  3422
indvd00m@0
  3423
// The deferred used on DOM ready
indvd00m@0
  3424
var readyList;
indvd00m@0
  3425
indvd00m@0
  3426
jQuery.fn.ready = function( fn ) {
indvd00m@0
  3427
	// Add the callback
indvd00m@0
  3428
	jQuery.ready.promise().done( fn );
indvd00m@0
  3429
indvd00m@0
  3430
	return this;
indvd00m@0
  3431
};
indvd00m@0
  3432
indvd00m@0
  3433
jQuery.extend({
indvd00m@0
  3434
	// Is the DOM ready to be used? Set to true once it occurs.
indvd00m@0
  3435
	isReady: false,
indvd00m@0
  3436
indvd00m@0
  3437
	// A counter to track how many items to wait for before
indvd00m@0
  3438
	// the ready event fires. See #6781
indvd00m@0
  3439
	readyWait: 1,
indvd00m@0
  3440
indvd00m@0
  3441
	// Hold (or release) the ready event
indvd00m@0
  3442
	holdReady: function( hold ) {
indvd00m@0
  3443
		if ( hold ) {
indvd00m@0
  3444
			jQuery.readyWait++;
indvd00m@0
  3445
		} else {
indvd00m@0
  3446
			jQuery.ready( true );
indvd00m@0
  3447
		}
indvd00m@0
  3448
	},
indvd00m@0
  3449
indvd00m@0
  3450
	// Handle when the DOM is ready
indvd00m@0
  3451
	ready: function( wait ) {
indvd00m@0
  3452
indvd00m@0
  3453
		// Abort if there are pending holds or we're already ready
indvd00m@0
  3454
		if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
indvd00m@0
  3455
			return;
indvd00m@0
  3456
		}
indvd00m@0
  3457
indvd00m@0
  3458
		// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
indvd00m@0
  3459
		if ( !document.body ) {
indvd00m@0
  3460
			return setTimeout( jQuery.ready );
indvd00m@0
  3461
		}
indvd00m@0
  3462
indvd00m@0
  3463
		// Remember that the DOM is ready
indvd00m@0
  3464
		jQuery.isReady = true;
indvd00m@0
  3465
indvd00m@0
  3466
		// If a normal DOM Ready event fired, decrement, and wait if need be
indvd00m@0
  3467
		if ( wait !== true && --jQuery.readyWait > 0 ) {
indvd00m@0
  3468
			return;
indvd00m@0
  3469
		}
indvd00m@0
  3470
indvd00m@0
  3471
		// If there are functions bound, to execute
indvd00m@0
  3472
		readyList.resolveWith( document, [ jQuery ] );
indvd00m@0
  3473
indvd00m@0
  3474
		// Trigger any bound ready events
indvd00m@0
  3475
		if ( jQuery.fn.triggerHandler ) {
indvd00m@0
  3476
			jQuery( document ).triggerHandler( "ready" );
indvd00m@0
  3477
			jQuery( document ).off( "ready" );
indvd00m@0
  3478
		}
indvd00m@0
  3479
	}
indvd00m@0
  3480
});
indvd00m@0
  3481
indvd00m@0
  3482
/**
indvd00m@0
  3483
 * Clean-up method for dom ready events
indvd00m@0
  3484
 */
indvd00m@0
  3485
function detach() {
indvd00m@0
  3486
	if ( document.addEventListener ) {
indvd00m@0
  3487
		document.removeEventListener( "DOMContentLoaded", completed, false );
indvd00m@0
  3488
		window.removeEventListener( "load", completed, false );
indvd00m@0
  3489
indvd00m@0
  3490
	} else {
indvd00m@0
  3491
		document.detachEvent( "onreadystatechange", completed );
indvd00m@0
  3492
		window.detachEvent( "onload", completed );
indvd00m@0
  3493
	}
indvd00m@0
  3494
}
indvd00m@0
  3495
indvd00m@0
  3496
/**
indvd00m@0
  3497
 * The ready event handler and self cleanup method
indvd00m@0
  3498
 */
indvd00m@0
  3499
function completed() {
indvd00m@0
  3500
	// readyState === "complete" is good enough for us to call the dom ready in oldIE
indvd00m@0
  3501
	if ( document.addEventListener || event.type === "load" || document.readyState === "complete" ) {
indvd00m@0
  3502
		detach();
indvd00m@0
  3503
		jQuery.ready();
indvd00m@0
  3504
	}
indvd00m@0
  3505
}
indvd00m@0
  3506
indvd00m@0
  3507
jQuery.ready.promise = function( obj ) {
indvd00m@0
  3508
	if ( !readyList ) {
indvd00m@0
  3509
indvd00m@0
  3510
		readyList = jQuery.Deferred();
indvd00m@0
  3511
indvd00m@0
  3512
		// Catch cases where $(document).ready() is called after the browser event has already occurred.
indvd00m@0
  3513
		// we once tried to use readyState "interactive" here, but it caused issues like the one
indvd00m@0
  3514
		// discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15
indvd00m@0
  3515
		if ( document.readyState === "complete" ) {
indvd00m@0
  3516
			// Handle it asynchronously to allow scripts the opportunity to delay ready
indvd00m@0
  3517
			setTimeout( jQuery.ready );
indvd00m@0
  3518
indvd00m@0
  3519
		// Standards-based browsers support DOMContentLoaded
indvd00m@0
  3520
		} else if ( document.addEventListener ) {
indvd00m@0
  3521
			// Use the handy event callback
indvd00m@0
  3522
			document.addEventListener( "DOMContentLoaded", completed, false );
indvd00m@0
  3523
indvd00m@0
  3524
			// A fallback to window.onload, that will always work
indvd00m@0
  3525
			window.addEventListener( "load", completed, false );
indvd00m@0
  3526
indvd00m@0
  3527
		// If IE event model is used
indvd00m@0
  3528
		} else {
indvd00m@0
  3529
			// Ensure firing before onload, maybe late but safe also for iframes
indvd00m@0
  3530
			document.attachEvent( "onreadystatechange", completed );
indvd00m@0
  3531
indvd00m@0
  3532
			// A fallback to window.onload, that will always work
indvd00m@0
  3533
			window.attachEvent( "onload", completed );
indvd00m@0
  3534
indvd00m@0
  3535
			// If IE and not a frame
indvd00m@0
  3536
			// continually check to see if the document is ready
indvd00m@0
  3537
			var top = false;
indvd00m@0
  3538
indvd00m@0
  3539
			try {
indvd00m@0
  3540
				top = window.frameElement == null && document.documentElement;
indvd00m@0
  3541
			} catch(e) {}
indvd00m@0
  3542
indvd00m@0
  3543
			if ( top && top.doScroll ) {
indvd00m@0
  3544
				(function doScrollCheck() {
indvd00m@0
  3545
					if ( !jQuery.isReady ) {
indvd00m@0
  3546
indvd00m@0
  3547
						try {
indvd00m@0
  3548
							// Use the trick by Diego Perini
indvd00m@0
  3549
							// http://javascript.nwbox.com/IEContentLoaded/
indvd00m@0
  3550
							top.doScroll("left");
indvd00m@0
  3551
						} catch(e) {
indvd00m@0
  3552
							return setTimeout( doScrollCheck, 50 );
indvd00m@0
  3553
						}
indvd00m@0
  3554
indvd00m@0
  3555
						// detach all dom ready events
indvd00m@0
  3556
						detach();
indvd00m@0
  3557
indvd00m@0
  3558
						// and execute any waiting functions
indvd00m@0
  3559
						jQuery.ready();
indvd00m@0
  3560
					}
indvd00m@0
  3561
				})();
indvd00m@0
  3562
			}
indvd00m@0
  3563
		}
indvd00m@0
  3564
	}
indvd00m@0
  3565
	return readyList.promise( obj );
indvd00m@0
  3566
};
indvd00m@0
  3567
indvd00m@0
  3568
indvd00m@0
  3569
var strundefined = typeof undefined;
indvd00m@0
  3570
indvd00m@0
  3571
indvd00m@0
  3572
indvd00m@0
  3573
// Support: IE<9
indvd00m@0
  3574
// Iteration over object's inherited properties before its own
indvd00m@0
  3575
var i;
indvd00m@0
  3576
for ( i in jQuery( support ) ) {
indvd00m@0
  3577
	break;
indvd00m@0
  3578
}
indvd00m@0
  3579
support.ownLast = i !== "0";
indvd00m@0
  3580
indvd00m@0
  3581
// Note: most support tests are defined in their respective modules.
indvd00m@0
  3582
// false until the test is run
indvd00m@0
  3583
support.inlineBlockNeedsLayout = false;
indvd00m@0
  3584
indvd00m@0
  3585
// Execute ASAP in case we need to set body.style.zoom
indvd00m@0
  3586
jQuery(function() {
indvd00m@0
  3587
	// Minified: var a,b,c,d
indvd00m@0
  3588
	var val, div, body, container;
indvd00m@0
  3589
indvd00m@0
  3590
	body = document.getElementsByTagName( "body" )[ 0 ];
indvd00m@0
  3591
	if ( !body || !body.style ) {
indvd00m@0
  3592
		// Return for frameset docs that don't have a body
indvd00m@0
  3593
		return;
indvd00m@0
  3594
	}
indvd00m@0
  3595
indvd00m@0
  3596
	// Setup
indvd00m@0
  3597
	div = document.createElement( "div" );
indvd00m@0
  3598
	container = document.createElement( "div" );
indvd00m@0
  3599
	container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px";
indvd00m@0
  3600
	body.appendChild( container ).appendChild( div );
indvd00m@0
  3601
indvd00m@0
  3602
	if ( typeof div.style.zoom !== strundefined ) {
indvd00m@0
  3603
		// Support: IE<8
indvd00m@0
  3604
		// Check if natively block-level elements act like inline-block
indvd00m@0
  3605
		// elements when setting their display to 'inline' and giving
indvd00m@0
  3606
		// them layout
indvd00m@0
  3607
		div.style.cssText = "display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1";
indvd00m@0
  3608
indvd00m@0
  3609
		support.inlineBlockNeedsLayout = val = div.offsetWidth === 3;
indvd00m@0
  3610
		if ( val ) {
indvd00m@0
  3611
			// Prevent IE 6 from affecting layout for positioned elements #11048
indvd00m@0
  3612
			// Prevent IE from shrinking the body in IE 7 mode #12869
indvd00m@0
  3613
			// Support: IE<8
indvd00m@0
  3614
			body.style.zoom = 1;
indvd00m@0
  3615
		}
indvd00m@0
  3616
	}
indvd00m@0
  3617
indvd00m@0
  3618
	body.removeChild( container );
indvd00m@0
  3619
});
indvd00m@0
  3620
indvd00m@0
  3621
indvd00m@0
  3622
indvd00m@0
  3623
indvd00m@0
  3624
(function() {
indvd00m@0
  3625
	var div = document.createElement( "div" );
indvd00m@0
  3626
indvd00m@0
  3627
	// Execute the test only if not already executed in another module.
indvd00m@0
  3628
	if (support.deleteExpando == null) {
indvd00m@0
  3629
		// Support: IE<9
indvd00m@0
  3630
		support.deleteExpando = true;
indvd00m@0
  3631
		try {
indvd00m@0
  3632
			delete div.test;
indvd00m@0
  3633
		} catch( e ) {
indvd00m@0
  3634
			support.deleteExpando = false;
indvd00m@0
  3635
		}
indvd00m@0
  3636
	}
indvd00m@0
  3637
indvd00m@0
  3638
	// Null elements to avoid leaks in IE.
indvd00m@0
  3639
	div = null;
indvd00m@0
  3640
})();
indvd00m@0
  3641
indvd00m@0
  3642
indvd00m@0
  3643
/**
indvd00m@0
  3644
 * Determines whether an object can have data
indvd00m@0
  3645
 */
indvd00m@0
  3646
jQuery.acceptData = function( elem ) {
indvd00m@0
  3647
	var noData = jQuery.noData[ (elem.nodeName + " ").toLowerCase() ],
indvd00m@0
  3648
		nodeType = +elem.nodeType || 1;
indvd00m@0
  3649
indvd00m@0
  3650
	// Do not set data on non-element DOM nodes because it will not be cleared (#8335).
indvd00m@0
  3651
	return nodeType !== 1 && nodeType !== 9 ?
indvd00m@0
  3652
		false :
indvd00m@0
  3653
indvd00m@0
  3654
		// Nodes accept data unless otherwise specified; rejection can be conditional
indvd00m@0
  3655
		!noData || noData !== true && elem.getAttribute("classid") === noData;
indvd00m@0
  3656
};
indvd00m@0
  3657
indvd00m@0
  3658
indvd00m@0
  3659
var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
indvd00m@0
  3660
	rmultiDash = /([A-Z])/g;
indvd00m@0
  3661
indvd00m@0
  3662
function dataAttr( elem, key, data ) {
indvd00m@0
  3663
	// If nothing was found internally, try to fetch any
indvd00m@0
  3664
	// data from the HTML5 data-* attribute
indvd00m@0
  3665
	if ( data === undefined && elem.nodeType === 1 ) {
indvd00m@0
  3666
indvd00m@0
  3667
		var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();
indvd00m@0
  3668
indvd00m@0
  3669
		data = elem.getAttribute( name );
indvd00m@0
  3670
indvd00m@0
  3671
		if ( typeof data === "string" ) {
indvd00m@0
  3672
			try {
indvd00m@0
  3673
				data = data === "true" ? true :
indvd00m@0
  3674
					data === "false" ? false :
indvd00m@0
  3675
					data === "null" ? null :
indvd00m@0
  3676
					// Only convert to a number if it doesn't change the string
indvd00m@0
  3677
					+data + "" === data ? +data :
indvd00m@0
  3678
					rbrace.test( data ) ? jQuery.parseJSON( data ) :
indvd00m@0
  3679
					data;
indvd00m@0
  3680
			} catch( e ) {}
indvd00m@0
  3681
indvd00m@0
  3682
			// Make sure we set the data so it isn't changed later
indvd00m@0
  3683
			jQuery.data( elem, key, data );
indvd00m@0
  3684
indvd00m@0
  3685
		} else {
indvd00m@0
  3686
			data = undefined;
indvd00m@0
  3687
		}
indvd00m@0
  3688
	}
indvd00m@0
  3689
indvd00m@0
  3690
	return data;
indvd00m@0
  3691
}
indvd00m@0
  3692
indvd00m@0
  3693
// checks a cache object for emptiness
indvd00m@0
  3694
function isEmptyDataObject( obj ) {
indvd00m@0
  3695
	var name;
indvd00m@0
  3696
	for ( name in obj ) {
indvd00m@0
  3697
indvd00m@0
  3698
		// if the public data object is empty, the private is still empty
indvd00m@0
  3699
		if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) {
indvd00m@0
  3700
			continue;
indvd00m@0
  3701
		}
indvd00m@0
  3702
		if ( name !== "toJSON" ) {
indvd00m@0
  3703
			return false;
indvd00m@0
  3704
		}
indvd00m@0
  3705
	}
indvd00m@0
  3706
indvd00m@0
  3707
	return true;
indvd00m@0
  3708
}
indvd00m@0
  3709
indvd00m@0
  3710
function internalData( elem, name, data, pvt /* Internal Use Only */ ) {
indvd00m@0
  3711
	if ( !jQuery.acceptData( elem ) ) {
indvd00m@0
  3712
		return;
indvd00m@0
  3713
	}
indvd00m@0
  3714
indvd00m@0
  3715
	var ret, thisCache,
indvd00m@0
  3716
		internalKey = jQuery.expando,
indvd00m@0
  3717
indvd00m@0
  3718
		// We have to handle DOM nodes and JS objects differently because IE6-7
indvd00m@0
  3719
		// can't GC object references properly across the DOM-JS boundary
indvd00m@0
  3720
		isNode = elem.nodeType,
indvd00m@0
  3721
indvd00m@0
  3722
		// Only DOM nodes need the global jQuery cache; JS object data is
indvd00m@0
  3723
		// attached directly to the object so GC can occur automatically
indvd00m@0
  3724
		cache = isNode ? jQuery.cache : elem,
indvd00m@0
  3725
indvd00m@0
  3726
		// Only defining an ID for JS objects if its cache already exists allows
indvd00m@0
  3727
		// the code to shortcut on the same path as a DOM node with no cache
indvd00m@0
  3728
		id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey;
indvd00m@0
  3729
indvd00m@0
  3730
	// Avoid doing any more work than we need to when trying to get data on an
indvd00m@0
  3731
	// object that has no data at all
indvd00m@0
  3732
	if ( (!id || !cache[id] || (!pvt && !cache[id].data)) && data === undefined && typeof name === "string" ) {
indvd00m@0
  3733
		return;
indvd00m@0
  3734
	}
indvd00m@0
  3735
indvd00m@0
  3736
	if ( !id ) {
indvd00m@0
  3737
		// Only DOM nodes need a new unique ID for each element since their data
indvd00m@0
  3738
		// ends up in the global cache
indvd00m@0
  3739
		if ( isNode ) {
indvd00m@0
  3740
			id = elem[ internalKey ] = deletedIds.pop() || jQuery.guid++;
indvd00m@0
  3741
		} else {
indvd00m@0
  3742
			id = internalKey;
indvd00m@0
  3743
		}
indvd00m@0
  3744
	}
indvd00m@0
  3745
indvd00m@0
  3746
	if ( !cache[ id ] ) {
indvd00m@0
  3747
		// Avoid exposing jQuery metadata on plain JS objects when the object
indvd00m@0
  3748
		// is serialized using JSON.stringify
indvd00m@0
  3749
		cache[ id ] = isNode ? {} : { toJSON: jQuery.noop };
indvd00m@0
  3750
	}
indvd00m@0
  3751
indvd00m@0
  3752
	// An object can be passed to jQuery.data instead of a key/value pair; this gets
indvd00m@0
  3753
	// shallow copied over onto the existing cache
indvd00m@0
  3754
	if ( typeof name === "object" || typeof name === "function" ) {
indvd00m@0
  3755
		if ( pvt ) {
indvd00m@0
  3756
			cache[ id ] = jQuery.extend( cache[ id ], name );
indvd00m@0
  3757
		} else {
indvd00m@0
  3758
			cache[ id ].data = jQuery.extend( cache[ id ].data, name );
indvd00m@0
  3759
		}
indvd00m@0
  3760
	}
indvd00m@0
  3761
indvd00m@0
  3762
	thisCache = cache[ id ];
indvd00m@0
  3763
indvd00m@0
  3764
	// jQuery data() is stored in a separate object inside the object's internal data
indvd00m@0
  3765
	// cache in order to avoid key collisions between internal data and user-defined
indvd00m@0
  3766
	// data.
indvd00m@0
  3767
	if ( !pvt ) {
indvd00m@0
  3768
		if ( !thisCache.data ) {
indvd00m@0
  3769
			thisCache.data = {};
indvd00m@0
  3770
		}
indvd00m@0
  3771
indvd00m@0
  3772
		thisCache = thisCache.data;
indvd00m@0
  3773
	}
indvd00m@0
  3774
indvd00m@0
  3775
	if ( data !== undefined ) {
indvd00m@0
  3776
		thisCache[ jQuery.camelCase( name ) ] = data;
indvd00m@0
  3777
	}
indvd00m@0
  3778
indvd00m@0
  3779
	// Check for both converted-to-camel and non-converted data property names
indvd00m@0
  3780
	// If a data property was specified
indvd00m@0
  3781
	if ( typeof name === "string" ) {
indvd00m@0
  3782
indvd00m@0
  3783
		// First Try to find as-is property data
indvd00m@0
  3784
		ret = thisCache[ name ];
indvd00m@0
  3785
indvd00m@0
  3786
		// Test for null|undefined property data
indvd00m@0
  3787
		if ( ret == null ) {
indvd00m@0
  3788
indvd00m@0
  3789
			// Try to find the camelCased property
indvd00m@0
  3790
			ret = thisCache[ jQuery.camelCase( name ) ];
indvd00m@0
  3791
		}
indvd00m@0
  3792
	} else {
indvd00m@0
  3793
		ret = thisCache;
indvd00m@0
  3794
	}
indvd00m@0
  3795
indvd00m@0
  3796
	return ret;
indvd00m@0
  3797
}
indvd00m@0
  3798
indvd00m@0
  3799
function internalRemoveData( elem, name, pvt ) {
indvd00m@0
  3800
	if ( !jQuery.acceptData( elem ) ) {
indvd00m@0
  3801
		return;
indvd00m@0
  3802
	}
indvd00m@0
  3803
indvd00m@0
  3804
	var thisCache, i,
indvd00m@0
  3805
		isNode = elem.nodeType,
indvd00m@0
  3806
indvd00m@0
  3807
		// See jQuery.data for more information
indvd00m@0
  3808
		cache = isNode ? jQuery.cache : elem,
indvd00m@0
  3809
		id = isNode ? elem[ jQuery.expando ] : jQuery.expando;
indvd00m@0
  3810
indvd00m@0
  3811
	// If there is already no cache entry for this object, there is no
indvd00m@0
  3812
	// purpose in continuing
indvd00m@0
  3813
	if ( !cache[ id ] ) {
indvd00m@0
  3814
		return;
indvd00m@0
  3815
	}
indvd00m@0
  3816
indvd00m@0
  3817
	if ( name ) {
indvd00m@0
  3818
indvd00m@0
  3819
		thisCache = pvt ? cache[ id ] : cache[ id ].data;
indvd00m@0
  3820
indvd00m@0
  3821
		if ( thisCache ) {
indvd00m@0
  3822
indvd00m@0
  3823
			// Support array or space separated string names for data keys
indvd00m@0
  3824
			if ( !jQuery.isArray( name ) ) {
indvd00m@0
  3825
indvd00m@0
  3826
				// try the string as a key before any manipulation
indvd00m@0
  3827
				if ( name in thisCache ) {
indvd00m@0
  3828
					name = [ name ];
indvd00m@0
  3829
				} else {
indvd00m@0
  3830
indvd00m@0
  3831
					// split the camel cased version by spaces unless a key with the spaces exists
indvd00m@0
  3832
					name = jQuery.camelCase( name );
indvd00m@0
  3833
					if ( name in thisCache ) {
indvd00m@0
  3834
						name = [ name ];
indvd00m@0
  3835
					} else {
indvd00m@0
  3836
						name = name.split(" ");
indvd00m@0
  3837
					}
indvd00m@0
  3838
				}
indvd00m@0
  3839
			} else {
indvd00m@0
  3840
				// If "name" is an array of keys...
indvd00m@0
  3841
				// When data is initially created, via ("key", "val") signature,
indvd00m@0
  3842
				// keys will be converted to camelCase.
indvd00m@0
  3843
				// Since there is no way to tell _how_ a key was added, remove
indvd00m@0
  3844
				// both plain key and camelCase key. #12786
indvd00m@0
  3845
				// This will only penalize the array argument path.
indvd00m@0
  3846
				name = name.concat( jQuery.map( name, jQuery.camelCase ) );
indvd00m@0
  3847
			}
indvd00m@0
  3848
indvd00m@0
  3849
			i = name.length;
indvd00m@0
  3850
			while ( i-- ) {
indvd00m@0
  3851
				delete thisCache[ name[i] ];
indvd00m@0
  3852
			}
indvd00m@0
  3853
indvd00m@0
  3854
			// If there is no data left in the cache, we want to continue
indvd00m@0
  3855
			// and let the cache object itself get destroyed
indvd00m@0
  3856
			if ( pvt ? !isEmptyDataObject(thisCache) : !jQuery.isEmptyObject(thisCache) ) {
indvd00m@0
  3857
				return;
indvd00m@0
  3858
			}
indvd00m@0
  3859
		}
indvd00m@0
  3860
	}
indvd00m@0
  3861
indvd00m@0
  3862
	// See jQuery.data for more information
indvd00m@0
  3863
	if ( !pvt ) {
indvd00m@0
  3864
		delete cache[ id ].data;
indvd00m@0
  3865
indvd00m@0
  3866
		// Don't destroy the parent cache unless the internal data object
indvd00m@0
  3867
		// had been the only thing left in it
indvd00m@0
  3868
		if ( !isEmptyDataObject( cache[ id ] ) ) {
indvd00m@0
  3869
			return;
indvd00m@0
  3870
		}
indvd00m@0
  3871
	}
indvd00m@0
  3872
indvd00m@0
  3873
	// Destroy the cache
indvd00m@0
  3874
	if ( isNode ) {
indvd00m@0
  3875
		jQuery.cleanData( [ elem ], true );
indvd00m@0
  3876
indvd00m@0
  3877
	// Use delete when supported for expandos or `cache` is not a window per isWindow (#10080)
indvd00m@0
  3878
	/* jshint eqeqeq: false */
indvd00m@0
  3879
	} else if ( support.deleteExpando || cache != cache.window ) {
indvd00m@0
  3880
		/* jshint eqeqeq: true */
indvd00m@0
  3881
		delete cache[ id ];
indvd00m@0
  3882
indvd00m@0
  3883
	// When all else fails, null
indvd00m@0
  3884
	} else {
indvd00m@0
  3885
		cache[ id ] = null;
indvd00m@0
  3886
	}
indvd00m@0
  3887
}
indvd00m@0
  3888
indvd00m@0
  3889
jQuery.extend({
indvd00m@0
  3890
	cache: {},
indvd00m@0
  3891
indvd00m@0
  3892
	// The following elements (space-suffixed to avoid Object.prototype collisions)
indvd00m@0
  3893
	// throw uncatchable exceptions if you attempt to set expando properties
indvd00m@0
  3894
	noData: {
indvd00m@0
  3895
		"applet ": true,
indvd00m@0
  3896
		"embed ": true,
indvd00m@0
  3897
		// ...but Flash objects (which have this classid) *can* handle expandos
indvd00m@0
  3898
		"object ": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
indvd00m@0
  3899
	},
indvd00m@0
  3900
indvd00m@0
  3901
	hasData: function( elem ) {
indvd00m@0
  3902
		elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ];
indvd00m@0
  3903
		return !!elem && !isEmptyDataObject( elem );
indvd00m@0
  3904
	},
indvd00m@0
  3905
indvd00m@0
  3906
	data: function( elem, name, data ) {
indvd00m@0
  3907
		return internalData( elem, name, data );
indvd00m@0
  3908
	},
indvd00m@0
  3909
indvd00m@0
  3910
	removeData: function( elem, name ) {
indvd00m@0
  3911
		return internalRemoveData( elem, name );
indvd00m@0
  3912
	},
indvd00m@0
  3913
indvd00m@0
  3914
	// For internal use only.
indvd00m@0
  3915
	_data: function( elem, name, data ) {
indvd00m@0
  3916
		return internalData( elem, name, data, true );
indvd00m@0
  3917
	},
indvd00m@0
  3918
indvd00m@0
  3919
	_removeData: function( elem, name ) {
indvd00m@0
  3920
		return internalRemoveData( elem, name, true );
indvd00m@0
  3921
	}
indvd00m@0
  3922
});
indvd00m@0
  3923
indvd00m@0
  3924
jQuery.fn.extend({
indvd00m@0
  3925
	data: function( key, value ) {
indvd00m@0
  3926
		var i, name, data,
indvd00m@0
  3927
			elem = this[0],
indvd00m@0
  3928
			attrs = elem && elem.attributes;
indvd00m@0
  3929
indvd00m@0
  3930
		// Special expections of .data basically thwart jQuery.access,
indvd00m@0
  3931
		// so implement the relevant behavior ourselves
indvd00m@0
  3932
indvd00m@0
  3933
		// Gets all values
indvd00m@0
  3934
		if ( key === undefined ) {
indvd00m@0
  3935
			if ( this.length ) {
indvd00m@0
  3936
				data = jQuery.data( elem );
indvd00m@0
  3937
indvd00m@0
  3938
				if ( elem.nodeType === 1 && !jQuery._data( elem, "parsedAttrs" ) ) {
indvd00m@0
  3939
					i = attrs.length;
indvd00m@0
  3940
					while ( i-- ) {
indvd00m@0
  3941
indvd00m@0
  3942
						// Support: IE11+
indvd00m@0
  3943
						// The attrs elements can be null (#14894)
indvd00m@0
  3944
						if ( attrs[ i ] ) {
indvd00m@0
  3945
							name = attrs[ i ].name;
indvd00m@0
  3946
							if ( name.indexOf( "data-" ) === 0 ) {
indvd00m@0
  3947
								name = jQuery.camelCase( name.slice(5) );
indvd00m@0
  3948
								dataAttr( elem, name, data[ name ] );
indvd00m@0
  3949
							}
indvd00m@0
  3950
						}
indvd00m@0
  3951
					}
indvd00m@0
  3952
					jQuery._data( elem, "parsedAttrs", true );
indvd00m@0
  3953
				}
indvd00m@0
  3954
			}
indvd00m@0
  3955
indvd00m@0
  3956
			return data;
indvd00m@0
  3957
		}
indvd00m@0
  3958
indvd00m@0
  3959
		// Sets multiple values
indvd00m@0
  3960
		if ( typeof key === "object" ) {
indvd00m@0
  3961
			return this.each(function() {
indvd00m@0
  3962
				jQuery.data( this, key );
indvd00m@0
  3963
			});
indvd00m@0
  3964
		}
indvd00m@0
  3965
indvd00m@0
  3966
		return arguments.length > 1 ?
indvd00m@0
  3967
indvd00m@0
  3968
			// Sets one value
indvd00m@0
  3969
			this.each(function() {
indvd00m@0
  3970
				jQuery.data( this, key, value );
indvd00m@0
  3971
			}) :
indvd00m@0
  3972
indvd00m@0
  3973
			// Gets one value
indvd00m@0
  3974
			// Try to fetch any internally stored data first
indvd00m@0
  3975
			elem ? dataAttr( elem, key, jQuery.data( elem, key ) ) : undefined;
indvd00m@0
  3976
	},
indvd00m@0
  3977
indvd00m@0
  3978
	removeData: function( key ) {
indvd00m@0
  3979
		return this.each(function() {
indvd00m@0
  3980
			jQuery.removeData( this, key );
indvd00m@0
  3981
		});
indvd00m@0
  3982
	}
indvd00m@0
  3983
});
indvd00m@0
  3984
indvd00m@0
  3985
indvd00m@0
  3986
jQuery.extend({
indvd00m@0
  3987
	queue: function( elem, type, data ) {
indvd00m@0
  3988
		var queue;
indvd00m@0
  3989
indvd00m@0
  3990
		if ( elem ) {
indvd00m@0
  3991
			type = ( type || "fx" ) + "queue";
indvd00m@0
  3992
			queue = jQuery._data( elem, type );
indvd00m@0
  3993
indvd00m@0
  3994
			// Speed up dequeue by getting out quickly if this is just a lookup
indvd00m@0
  3995
			if ( data ) {
indvd00m@0
  3996
				if ( !queue || jQuery.isArray(data) ) {
indvd00m@0
  3997
					queue = jQuery._data( elem, type, jQuery.makeArray(data) );
indvd00m@0
  3998
				} else {
indvd00m@0
  3999
					queue.push( data );
indvd00m@0
  4000
				}
indvd00m@0
  4001
			}
indvd00m@0
  4002
			return queue || [];
indvd00m@0
  4003
		}
indvd00m@0
  4004
	},
indvd00m@0
  4005
indvd00m@0
  4006
	dequeue: function( elem, type ) {
indvd00m@0
  4007
		type = type || "fx";
indvd00m@0
  4008
indvd00m@0
  4009
		var queue = jQuery.queue( elem, type ),
indvd00m@0
  4010
			startLength = queue.length,
indvd00m@0
  4011
			fn = queue.shift(),
indvd00m@0
  4012
			hooks = jQuery._queueHooks( elem, type ),
indvd00m@0
  4013
			next = function() {
indvd00m@0
  4014
				jQuery.dequeue( elem, type );
indvd00m@0
  4015
			};
indvd00m@0
  4016
indvd00m@0
  4017
		// If the fx queue is dequeued, always remove the progress sentinel
indvd00m@0
  4018
		if ( fn === "inprogress" ) {
indvd00m@0
  4019
			fn = queue.shift();
indvd00m@0
  4020
			startLength--;
indvd00m@0
  4021
		}
indvd00m@0
  4022
indvd00m@0
  4023
		if ( fn ) {
indvd00m@0
  4024
indvd00m@0
  4025
			// Add a progress sentinel to prevent the fx queue from being
indvd00m@0
  4026
			// automatically dequeued
indvd00m@0
  4027
			if ( type === "fx" ) {
indvd00m@0
  4028
				queue.unshift( "inprogress" );
indvd00m@0
  4029
			}
indvd00m@0
  4030
indvd00m@0
  4031
			// clear up the last queue stop function
indvd00m@0
  4032
			delete hooks.stop;
indvd00m@0
  4033
			fn.call( elem, next, hooks );
indvd00m@0
  4034
		}
indvd00m@0
  4035
indvd00m@0
  4036
		if ( !startLength && hooks ) {
indvd00m@0
  4037
			hooks.empty.fire();
indvd00m@0
  4038
		}
indvd00m@0
  4039
	},
indvd00m@0
  4040
indvd00m@0
  4041
	// not intended for public consumption - generates a queueHooks object, or returns the current one
indvd00m@0
  4042
	_queueHooks: function( elem, type ) {
indvd00m@0
  4043
		var key = type + "queueHooks";
indvd00m@0
  4044
		return jQuery._data( elem, key ) || jQuery._data( elem, key, {
indvd00m@0
  4045
			empty: jQuery.Callbacks("once memory").add(function() {
indvd00m@0
  4046
				jQuery._removeData( elem, type + "queue" );
indvd00m@0
  4047
				jQuery._removeData( elem, key );
indvd00m@0
  4048
			})
indvd00m@0
  4049
		});
indvd00m@0
  4050
	}
indvd00m@0
  4051
});
indvd00m@0
  4052
indvd00m@0
  4053
jQuery.fn.extend({
indvd00m@0
  4054
	queue: function( type, data ) {
indvd00m@0
  4055
		var setter = 2;
indvd00m@0
  4056
indvd00m@0
  4057
		if ( typeof type !== "string" ) {
indvd00m@0
  4058
			data = type;
indvd00m@0
  4059
			type = "fx";
indvd00m@0
  4060
			setter--;
indvd00m@0
  4061
		}
indvd00m@0
  4062
indvd00m@0
  4063
		if ( arguments.length < setter ) {
indvd00m@0
  4064
			return jQuery.queue( this[0], type );
indvd00m@0
  4065
		}
indvd00m@0
  4066
indvd00m@0
  4067
		return data === undefined ?
indvd00m@0
  4068
			this :
indvd00m@0
  4069
			this.each(function() {
indvd00m@0
  4070
				var queue = jQuery.queue( this, type, data );
indvd00m@0
  4071
indvd00m@0
  4072
				// ensure a hooks for this queue
indvd00m@0
  4073
				jQuery._queueHooks( this, type );
indvd00m@0
  4074
indvd00m@0
  4075
				if ( type === "fx" && queue[0] !== "inprogress" ) {
indvd00m@0
  4076
					jQuery.dequeue( this, type );
indvd00m@0
  4077
				}
indvd00m@0
  4078
			});
indvd00m@0
  4079
	},
indvd00m@0
  4080
	dequeue: function( type ) {
indvd00m@0
  4081
		return this.each(function() {
indvd00m@0
  4082
			jQuery.dequeue( this, type );
indvd00m@0
  4083
		});
indvd00m@0
  4084
	},
indvd00m@0
  4085
	clearQueue: function( type ) {
indvd00m@0
  4086
		return this.queue( type || "fx", [] );
indvd00m@0
  4087
	},
indvd00m@0
  4088
	// Get a promise resolved when queues of a certain type
indvd00m@0
  4089
	// are emptied (fx is the type by default)
indvd00m@0
  4090
	promise: function( type, obj ) {
indvd00m@0
  4091
		var tmp,
indvd00m@0
  4092
			count = 1,
indvd00m@0
  4093
			defer = jQuery.Deferred(),
indvd00m@0
  4094
			elements = this,
indvd00m@0
  4095
			i = this.length,
indvd00m@0
  4096
			resolve = function() {
indvd00m@0
  4097
				if ( !( --count ) ) {
indvd00m@0
  4098
					defer.resolveWith( elements, [ elements ] );
indvd00m@0
  4099
				}
indvd00m@0
  4100
			};
indvd00m@0
  4101
indvd00m@0
  4102
		if ( typeof type !== "string" ) {
indvd00m@0
  4103
			obj = type;
indvd00m@0
  4104
			type = undefined;
indvd00m@0
  4105
		}
indvd00m@0
  4106
		type = type || "fx";
indvd00m@0
  4107
indvd00m@0
  4108
		while ( i-- ) {
indvd00m@0
  4109
			tmp = jQuery._data( elements[ i ], type + "queueHooks" );
indvd00m@0
  4110
			if ( tmp && tmp.empty ) {
indvd00m@0
  4111
				count++;
indvd00m@0
  4112
				tmp.empty.add( resolve );
indvd00m@0
  4113
			}
indvd00m@0
  4114
		}
indvd00m@0
  4115
		resolve();
indvd00m@0
  4116
		return defer.promise( obj );
indvd00m@0
  4117
	}
indvd00m@0
  4118
});
indvd00m@0
  4119
var pnum = (/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/).source;
indvd00m@0
  4120
indvd00m@0
  4121
var cssExpand = [ "Top", "Right", "Bottom", "Left" ];
indvd00m@0
  4122
indvd00m@0
  4123
var isHidden = function( elem, el ) {
indvd00m@0
  4124
		// isHidden might be called from jQuery#filter function;
indvd00m@0
  4125
		// in that case, element will be second argument
indvd00m@0
  4126
		elem = el || elem;
indvd00m@0
  4127
		return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem );
indvd00m@0
  4128
	};
indvd00m@0
  4129
indvd00m@0
  4130
indvd00m@0
  4131
indvd00m@0
  4132
// Multifunctional method to get and set values of a collection
indvd00m@0
  4133
// The value/s can optionally be executed if it's a function
indvd00m@0
  4134
var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
indvd00m@0
  4135
	var i = 0,
indvd00m@0
  4136
		length = elems.length,
indvd00m@0
  4137
		bulk = key == null;
indvd00m@0
  4138
indvd00m@0
  4139
	// Sets many values
indvd00m@0
  4140
	if ( jQuery.type( key ) === "object" ) {
indvd00m@0
  4141
		chainable = true;
indvd00m@0
  4142
		for ( i in key ) {
indvd00m@0
  4143
			jQuery.access( elems, fn, i, key[i], true, emptyGet, raw );
indvd00m@0
  4144
		}
indvd00m@0
  4145
indvd00m@0
  4146
	// Sets one value
indvd00m@0
  4147
	} else if ( value !== undefined ) {
indvd00m@0
  4148
		chainable = true;
indvd00m@0
  4149
indvd00m@0
  4150
		if ( !jQuery.isFunction( value ) ) {
indvd00m@0
  4151
			raw = true;
indvd00m@0
  4152
		}
indvd00m@0
  4153
indvd00m@0
  4154
		if ( bulk ) {
indvd00m@0
  4155
			// Bulk operations run against the entire set
indvd00m@0
  4156
			if ( raw ) {
indvd00m@0
  4157
				fn.call( elems, value );
indvd00m@0
  4158
				fn = null;
indvd00m@0
  4159
indvd00m@0
  4160
			// ...except when executing function values
indvd00m@0
  4161
			} else {
indvd00m@0
  4162
				bulk = fn;
indvd00m@0
  4163
				fn = function( elem, key, value ) {
indvd00m@0
  4164
					return bulk.call( jQuery( elem ), value );
indvd00m@0
  4165
				};
indvd00m@0
  4166
			}
indvd00m@0
  4167
		}
indvd00m@0
  4168
indvd00m@0
  4169
		if ( fn ) {
indvd00m@0
  4170
			for ( ; i < length; i++ ) {
indvd00m@0
  4171
				fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) );
indvd00m@0
  4172
			}
indvd00m@0
  4173
		}
indvd00m@0
  4174
	}
indvd00m@0
  4175
indvd00m@0
  4176
	return chainable ?
indvd00m@0
  4177
		elems :
indvd00m@0
  4178
indvd00m@0
  4179
		// Gets
indvd00m@0
  4180
		bulk ?
indvd00m@0
  4181
			fn.call( elems ) :
indvd00m@0
  4182
			length ? fn( elems[0], key ) : emptyGet;
indvd00m@0
  4183
};
indvd00m@0
  4184
var rcheckableType = (/^(?:checkbox|radio)$/i);
indvd00m@0
  4185
indvd00m@0
  4186
indvd00m@0
  4187
indvd00m@0
  4188
(function() {
indvd00m@0
  4189
	// Minified: var a,b,c
indvd00m@0
  4190
	var input = document.createElement( "input" ),
indvd00m@0
  4191
		div = document.createElement( "div" ),
indvd00m@0
  4192
		fragment = document.createDocumentFragment();
indvd00m@0
  4193
indvd00m@0
  4194
	// Setup
indvd00m@0
  4195
	div.innerHTML = "  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";
indvd00m@0
  4196
indvd00m@0
  4197
	// IE strips leading whitespace when .innerHTML is used
indvd00m@0
  4198
	support.leadingWhitespace = div.firstChild.nodeType === 3;
indvd00m@0
  4199
indvd00m@0
  4200
	// Make sure that tbody elements aren't automatically inserted
indvd00m@0
  4201
	// IE will insert them into empty tables
indvd00m@0
  4202
	support.tbody = !div.getElementsByTagName( "tbody" ).length;
indvd00m@0
  4203
indvd00m@0
  4204
	// Make sure that link elements get serialized correctly by innerHTML
indvd00m@0
  4205
	// This requires a wrapper element in IE
indvd00m@0
  4206
	support.htmlSerialize = !!div.getElementsByTagName( "link" ).length;
indvd00m@0
  4207
indvd00m@0
  4208
	// Makes sure cloning an html5 element does not cause problems
indvd00m@0
  4209
	// Where outerHTML is undefined, this still works
indvd00m@0
  4210
	support.html5Clone =
indvd00m@0
  4211
		document.createElement( "nav" ).cloneNode( true ).outerHTML !== "<:nav></:nav>";
indvd00m@0
  4212
indvd00m@0
  4213
	// Check if a disconnected checkbox will retain its checked
indvd00m@0
  4214
	// value of true after appended to the DOM (IE6/7)
indvd00m@0
  4215
	input.type = "checkbox";
indvd00m@0
  4216
	input.checked = true;
indvd00m@0
  4217
	fragment.appendChild( input );
indvd00m@0
  4218
	support.appendChecked = input.checked;
indvd00m@0
  4219
indvd00m@0
  4220
	// Make sure textarea (and checkbox) defaultValue is properly cloned
indvd00m@0
  4221
	// Support: IE6-IE11+
indvd00m@0
  4222
	div.innerHTML = "<textarea>x</textarea>";
indvd00m@0
  4223
	support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
indvd00m@0
  4224
indvd00m@0
  4225
	// #11217 - WebKit loses check when the name is after the checked attribute
indvd00m@0
  4226
	fragment.appendChild( div );
indvd00m@0
  4227
	div.innerHTML = "<input type='radio' checked='checked' name='t'/>";
indvd00m@0
  4228
indvd00m@0
  4229
	// Support: Safari 5.1, iOS 5.1, Android 4.x, Android 2.3
indvd00m@0
  4230
	// old WebKit doesn't clone checked state correctly in fragments
indvd00m@0
  4231
	support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
indvd00m@0
  4232
indvd00m@0
  4233
	// Support: IE<9
indvd00m@0
  4234
	// Opera does not clone events (and typeof div.attachEvent === undefined).
indvd00m@0
  4235
	// IE9-10 clones events bound via attachEvent, but they don't trigger with .click()
indvd00m@0
  4236
	support.noCloneEvent = true;
indvd00m@0
  4237
	if ( div.attachEvent ) {
indvd00m@0
  4238
		div.attachEvent( "onclick", function() {
indvd00m@0
  4239
			support.noCloneEvent = false;
indvd00m@0
  4240
		});
indvd00m@0
  4241
indvd00m@0
  4242
		div.cloneNode( true ).click();
indvd00m@0
  4243
	}
indvd00m@0
  4244
indvd00m@0
  4245
	// Execute the test only if not already executed in another module.
indvd00m@0
  4246
	if (support.deleteExpando == null) {
indvd00m@0
  4247
		// Support: IE<9
indvd00m@0
  4248
		support.deleteExpando = true;
indvd00m@0
  4249
		try {
indvd00m@0
  4250
			delete div.test;
indvd00m@0
  4251
		} catch( e ) {
indvd00m@0
  4252
			support.deleteExpando = false;
indvd00m@0
  4253
		}
indvd00m@0
  4254
	}
indvd00m@0
  4255
})();
indvd00m@0
  4256
indvd00m@0
  4257
indvd00m@0
  4258
(function() {
indvd00m@0
  4259
	var i, eventName,
indvd00m@0
  4260
		div = document.createElement( "div" );
indvd00m@0
  4261
indvd00m@0
  4262
	// Support: IE<9 (lack submit/change bubble), Firefox 23+ (lack focusin event)
indvd00m@0
  4263
	for ( i in { submit: true, change: true, focusin: true }) {
indvd00m@0
  4264
		eventName = "on" + i;
indvd00m@0
  4265
indvd00m@0
  4266
		if ( !(support[ i + "Bubbles" ] = eventName in window) ) {
indvd00m@0
  4267
			// Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP)
indvd00m@0
  4268
			div.setAttribute( eventName, "t" );
indvd00m@0
  4269
			support[ i + "Bubbles" ] = div.attributes[ eventName ].expando === false;
indvd00m@0
  4270
		}
indvd00m@0
  4271
	}
indvd00m@0
  4272
indvd00m@0
  4273
	// Null elements to avoid leaks in IE.
indvd00m@0
  4274
	div = null;
indvd00m@0
  4275
})();
indvd00m@0
  4276
indvd00m@0
  4277
indvd00m@0
  4278
var rformElems = /^(?:input|select|textarea)$/i,
indvd00m@0
  4279
	rkeyEvent = /^key/,
indvd00m@0
  4280
	rmouseEvent = /^(?:mouse|pointer|contextmenu)|click/,
indvd00m@0
  4281
	rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
indvd00m@0
  4282
	rtypenamespace = /^([^.]*)(?:\.(.+)|)$/;
indvd00m@0
  4283
indvd00m@0
  4284
function returnTrue() {
indvd00m@0
  4285
	return true;
indvd00m@0
  4286
}
indvd00m@0
  4287
indvd00m@0
  4288
function returnFalse() {
indvd00m@0
  4289
	return false;
indvd00m@0
  4290
}
indvd00m@0
  4291
indvd00m@0
  4292
function safeActiveElement() {
indvd00m@0
  4293
	try {
indvd00m@0
  4294
		return document.activeElement;
indvd00m@0
  4295
	} catch ( err ) { }
indvd00m@0
  4296
}
indvd00m@0
  4297
indvd00m@0
  4298
/*
indvd00m@0
  4299
 * Helper functions for managing events -- not part of the public interface.
indvd00m@0
  4300
 * Props to Dean Edwards' addEvent library for many of the ideas.
indvd00m@0
  4301
 */
indvd00m@0
  4302
jQuery.event = {
indvd00m@0
  4303
indvd00m@0
  4304
	global: {},
indvd00m@0
  4305
indvd00m@0
  4306
	add: function( elem, types, handler, data, selector ) {
indvd00m@0
  4307
		var tmp, events, t, handleObjIn,
indvd00m@0
  4308
			special, eventHandle, handleObj,
indvd00m@0
  4309
			handlers, type, namespaces, origType,
indvd00m@0
  4310
			elemData = jQuery._data( elem );
indvd00m@0
  4311
indvd00m@0
  4312
		// Don't attach events to noData or text/comment nodes (but allow plain objects)
indvd00m@0
  4313
		if ( !elemData ) {
indvd00m@0
  4314
			return;
indvd00m@0
  4315
		}
indvd00m@0
  4316
indvd00m@0
  4317
		// Caller can pass in an object of custom data in lieu of the handler
indvd00m@0
  4318
		if ( handler.handler ) {
indvd00m@0
  4319
			handleObjIn = handler;
indvd00m@0
  4320
			handler = handleObjIn.handler;
indvd00m@0
  4321
			selector = handleObjIn.selector;
indvd00m@0
  4322
		}
indvd00m@0
  4323
indvd00m@0
  4324
		// Make sure that the handler has a unique ID, used to find/remove it later
indvd00m@0
  4325
		if ( !handler.guid ) {
indvd00m@0
  4326
			handler.guid = jQuery.guid++;
indvd00m@0
  4327
		}
indvd00m@0
  4328
indvd00m@0
  4329
		// Init the element's event structure and main handler, if this is the first
indvd00m@0
  4330
		if ( !(events = elemData.events) ) {
indvd00m@0
  4331
			events = elemData.events = {};
indvd00m@0
  4332
		}
indvd00m@0
  4333
		if ( !(eventHandle = elemData.handle) ) {
indvd00m@0
  4334
			eventHandle = elemData.handle = function( e ) {
indvd00m@0
  4335
				// Discard the second event of a jQuery.event.trigger() and
indvd00m@0
  4336
				// when an event is called after a page has unloaded
indvd00m@0
  4337
				return typeof jQuery !== strundefined && (!e || jQuery.event.triggered !== e.type) ?
indvd00m@0
  4338
					jQuery.event.dispatch.apply( eventHandle.elem, arguments ) :
indvd00m@0
  4339
					undefined;
indvd00m@0
  4340
			};
indvd00m@0
  4341
			// Add elem as a property of the handle fn to prevent a memory leak with IE non-native events
indvd00m@0
  4342
			eventHandle.elem = elem;
indvd00m@0
  4343
		}
indvd00m@0
  4344
indvd00m@0
  4345
		// Handle multiple events separated by a space
indvd00m@0
  4346
		types = ( types || "" ).match( rnotwhite ) || [ "" ];
indvd00m@0
  4347
		t = types.length;
indvd00m@0
  4348
		while ( t-- ) {
indvd00m@0
  4349
			tmp = rtypenamespace.exec( types[t] ) || [];
indvd00m@0
  4350
			type = origType = tmp[1];
indvd00m@0
  4351
			namespaces = ( tmp[2] || "" ).split( "." ).sort();
indvd00m@0
  4352
indvd00m@0
  4353
			// There *must* be a type, no attaching namespace-only handlers
indvd00m@0
  4354
			if ( !type ) {
indvd00m@0
  4355
				continue;
indvd00m@0
  4356
			}
indvd00m@0
  4357
indvd00m@0
  4358
			// If event changes its type, use the special event handlers for the changed type
indvd00m@0
  4359
			special = jQuery.event.special[ type ] || {};
indvd00m@0
  4360
indvd00m@0
  4361
			// If selector defined, determine special event api type, otherwise given type
indvd00m@0
  4362
			type = ( selector ? special.delegateType : special.bindType ) || type;
indvd00m@0
  4363
indvd00m@0
  4364
			// Update special based on newly reset type
indvd00m@0
  4365
			special = jQuery.event.special[ type ] || {};
indvd00m@0
  4366
indvd00m@0
  4367
			// handleObj is passed to all event handlers
indvd00m@0
  4368
			handleObj = jQuery.extend({
indvd00m@0
  4369
				type: type,
indvd00m@0
  4370
				origType: origType,
indvd00m@0
  4371
				data: data,
indvd00m@0
  4372
				handler: handler,
indvd00m@0
  4373
				guid: handler.guid,
indvd00m@0
  4374
				selector: selector,
indvd00m@0
  4375
				needsContext: selector && jQuery.expr.match.needsContext.test( selector ),
indvd00m@0
  4376
				namespace: namespaces.join(".")
indvd00m@0
  4377
			}, handleObjIn );
indvd00m@0
  4378
indvd00m@0
  4379
			// Init the event handler queue if we're the first
indvd00m@0
  4380
			if ( !(handlers = events[ type ]) ) {
indvd00m@0
  4381
				handlers = events[ type ] = [];
indvd00m@0
  4382
				handlers.delegateCount = 0;
indvd00m@0
  4383
indvd00m@0
  4384
				// Only use addEventListener/attachEvent if the special events handler returns false
indvd00m@0
  4385
				if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
indvd00m@0
  4386
					// Bind the global event handler to the element
indvd00m@0
  4387
					if ( elem.addEventListener ) {
indvd00m@0
  4388
						elem.addEventListener( type, eventHandle, false );
indvd00m@0
  4389
indvd00m@0
  4390
					} else if ( elem.attachEvent ) {
indvd00m@0
  4391
						elem.attachEvent( "on" + type, eventHandle );
indvd00m@0
  4392
					}
indvd00m@0
  4393
				}
indvd00m@0
  4394
			}
indvd00m@0
  4395
indvd00m@0
  4396
			if ( special.add ) {
indvd00m@0
  4397
				special.add.call( elem, handleObj );
indvd00m@0
  4398
indvd00m@0
  4399
				if ( !handleObj.handler.guid ) {
indvd00m@0
  4400
					handleObj.handler.guid = handler.guid;
indvd00m@0
  4401
				}
indvd00m@0
  4402
			}
indvd00m@0
  4403
indvd00m@0
  4404
			// Add to the element's handler list, delegates in front
indvd00m@0
  4405
			if ( selector ) {
indvd00m@0
  4406
				handlers.splice( handlers.delegateCount++, 0, handleObj );
indvd00m@0
  4407
			} else {
indvd00m@0
  4408
				handlers.push( handleObj );
indvd00m@0
  4409
			}
indvd00m@0
  4410
indvd00m@0
  4411
			// Keep track of which events have ever been used, for event optimization
indvd00m@0
  4412
			jQuery.event.global[ type ] = true;
indvd00m@0
  4413
		}
indvd00m@0
  4414
indvd00m@0
  4415
		// Nullify elem to prevent memory leaks in IE
indvd00m@0
  4416
		elem = null;
indvd00m@0
  4417
	},
indvd00m@0
  4418
indvd00m@0
  4419
	// Detach an event or set of events from an element
indvd00m@0
  4420
	remove: function( elem, types, handler, selector, mappedTypes ) {
indvd00m@0
  4421
		var j, handleObj, tmp,
indvd00m@0
  4422
			origCount, t, events,
indvd00m@0
  4423
			special, handlers, type,
indvd00m@0
  4424
			namespaces, origType,
indvd00m@0
  4425
			elemData = jQuery.hasData( elem ) && jQuery._data( elem );
indvd00m@0
  4426
indvd00m@0
  4427
		if ( !elemData || !(events = elemData.events) ) {
indvd00m@0
  4428
			return;
indvd00m@0
  4429
		}
indvd00m@0
  4430
indvd00m@0
  4431
		// Once for each type.namespace in types; type may be omitted
indvd00m@0
  4432
		types = ( types || "" ).match( rnotwhite ) || [ "" ];
indvd00m@0
  4433
		t = types.length;
indvd00m@0
  4434
		while ( t-- ) {
indvd00m@0
  4435
			tmp = rtypenamespace.exec( types[t] ) || [];
indvd00m@0
  4436
			type = origType = tmp[1];
indvd00m@0
  4437
			namespaces = ( tmp[2] || "" ).split( "." ).sort();
indvd00m@0
  4438
indvd00m@0
  4439
			// Unbind all events (on this namespace, if provided) for the element
indvd00m@0
  4440
			if ( !type ) {
indvd00m@0
  4441
				for ( type in events ) {
indvd00m@0
  4442
					jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
indvd00m@0
  4443
				}
indvd00m@0
  4444
				continue;
indvd00m@0
  4445
			}
indvd00m@0
  4446
indvd00m@0
  4447
			special = jQuery.event.special[ type ] || {};
indvd00m@0
  4448
			type = ( selector ? special.delegateType : special.bindType ) || type;
indvd00m@0
  4449
			handlers = events[ type ] || [];
indvd00m@0
  4450
			tmp = tmp[2] && new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" );
indvd00m@0
  4451
indvd00m@0
  4452
			// Remove matching events
indvd00m@0
  4453
			origCount = j = handlers.length;
indvd00m@0
  4454
			while ( j-- ) {
indvd00m@0
  4455
				handleObj = handlers[ j ];
indvd00m@0
  4456
indvd00m@0
  4457
				if ( ( mappedTypes || origType === handleObj.origType ) &&
indvd00m@0
  4458
					( !handler || handler.guid === handleObj.guid ) &&
indvd00m@0
  4459
					( !tmp || tmp.test( handleObj.namespace ) ) &&
indvd00m@0
  4460
					( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
indvd00m@0
  4461
					handlers.splice( j, 1 );
indvd00m@0
  4462
indvd00m@0
  4463
					if ( handleObj.selector ) {
indvd00m@0
  4464
						handlers.delegateCount--;
indvd00m@0
  4465
					}
indvd00m@0
  4466
					if ( special.remove ) {
indvd00m@0
  4467
						special.remove.call( elem, handleObj );
indvd00m@0
  4468
					}
indvd00m@0
  4469
				}
indvd00m@0
  4470
			}
indvd00m@0
  4471
indvd00m@0
  4472
			// Remove generic event handler if we removed something and no more handlers exist
indvd00m@0
  4473
			// (avoids potential for endless recursion during removal of special event handlers)
indvd00m@0
  4474
			if ( origCount && !handlers.length ) {
indvd00m@0
  4475
				if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) {
indvd00m@0
  4476
					jQuery.removeEvent( elem, type, elemData.handle );
indvd00m@0
  4477
				}
indvd00m@0
  4478
indvd00m@0
  4479
				delete events[ type ];
indvd00m@0
  4480
			}
indvd00m@0
  4481
		}
indvd00m@0
  4482
indvd00m@0
  4483
		// Remove the expando if it's no longer used
indvd00m@0
  4484
		if ( jQuery.isEmptyObject( events ) ) {
indvd00m@0
  4485
			delete elemData.handle;
indvd00m@0
  4486
indvd00m@0
  4487
			// removeData also checks for emptiness and clears the expando if empty
indvd00m@0
  4488
			// so use it instead of delete
indvd00m@0
  4489
			jQuery._removeData( elem, "events" );
indvd00m@0
  4490
		}
indvd00m@0
  4491
	},
indvd00m@0
  4492
indvd00m@0
  4493
	trigger: function( event, data, elem, onlyHandlers ) {
indvd00m@0
  4494
		var handle, ontype, cur,
indvd00m@0
  4495
			bubbleType, special, tmp, i,
indvd00m@0
  4496
			eventPath = [ elem || document ],
indvd00m@0
  4497
			type = hasOwn.call( event, "type" ) ? event.type : event,
indvd00m@0
  4498
			namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split(".") : [];
indvd00m@0
  4499
indvd00m@0
  4500
		cur = tmp = elem = elem || document;
indvd00m@0
  4501
indvd00m@0
  4502
		// Don't do events on text and comment nodes
indvd00m@0
  4503
		if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
indvd00m@0
  4504
			return;
indvd00m@0
  4505
		}
indvd00m@0
  4506
indvd00m@0
  4507
		// focus/blur morphs to focusin/out; ensure we're not firing them right now
indvd00m@0
  4508
		if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
indvd00m@0
  4509
			return;
indvd00m@0
  4510
		}
indvd00m@0
  4511
indvd00m@0
  4512
		if ( type.indexOf(".") >= 0 ) {
indvd00m@0
  4513
			// Namespaced trigger; create a regexp to match event type in handle()
indvd00m@0
  4514
			namespaces = type.split(".");
indvd00m@0
  4515
			type = namespaces.shift();
indvd00m@0
  4516
			namespaces.sort();
indvd00m@0
  4517
		}
indvd00m@0
  4518
		ontype = type.indexOf(":") < 0 && "on" + type;
indvd00m@0
  4519
indvd00m@0
  4520
		// Caller can pass in a jQuery.Event object, Object, or just an event type string
indvd00m@0
  4521
		event = event[ jQuery.expando ] ?
indvd00m@0
  4522
			event :
indvd00m@0
  4523
			new jQuery.Event( type, typeof event === "object" && event );
indvd00m@0
  4524
indvd00m@0
  4525
		// Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)
indvd00m@0
  4526
		event.isTrigger = onlyHandlers ? 2 : 3;
indvd00m@0
  4527
		event.namespace = namespaces.join(".");
indvd00m@0
  4528
		event.namespace_re = event.namespace ?
indvd00m@0
  4529
			new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ) :
indvd00m@0
  4530
			null;
indvd00m@0
  4531
indvd00m@0
  4532
		// Clean up the event in case it is being reused
indvd00m@0
  4533
		event.result = undefined;
indvd00m@0
  4534
		if ( !event.target ) {
indvd00m@0
  4535
			event.target = elem;
indvd00m@0
  4536
		}
indvd00m@0
  4537
indvd00m@0
  4538
		// Clone any incoming data and prepend the event, creating the handler arg list
indvd00m@0
  4539
		data = data == null ?
indvd00m@0
  4540
			[ event ] :
indvd00m@0
  4541
			jQuery.makeArray( data, [ event ] );
indvd00m@0
  4542
indvd00m@0
  4543
		// Allow special events to draw outside the lines
indvd00m@0
  4544
		special = jQuery.event.special[ type ] || {};
indvd00m@0
  4545
		if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {
indvd00m@0
  4546
			return;
indvd00m@0
  4547
		}
indvd00m@0
  4548
indvd00m@0
  4549
		// Determine event propagation path in advance, per W3C events spec (#9951)
indvd00m@0
  4550
		// Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
indvd00m@0
  4551
		if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {
indvd00m@0
  4552
indvd00m@0
  4553
			bubbleType = special.delegateType || type;
indvd00m@0
  4554
			if ( !rfocusMorph.test( bubbleType + type ) ) {
indvd00m@0
  4555
				cur = cur.parentNode;
indvd00m@0
  4556
			}
indvd00m@0
  4557
			for ( ; cur; cur = cur.parentNode ) {
indvd00m@0
  4558
				eventPath.push( cur );
indvd00m@0
  4559
				tmp = cur;
indvd00m@0
  4560
			}
indvd00m@0
  4561
indvd00m@0
  4562
			// Only add window if we got to document (e.g., not plain obj or detached DOM)
indvd00m@0
  4563
			if ( tmp === (elem.ownerDocument || document) ) {
indvd00m@0
  4564
				eventPath.push( tmp.defaultView || tmp.parentWindow || window );
indvd00m@0
  4565
			}
indvd00m@0
  4566
		}
indvd00m@0
  4567
indvd00m@0
  4568
		// Fire handlers on the event path
indvd00m@0
  4569
		i = 0;
indvd00m@0
  4570
		while ( (cur = eventPath[i++]) && !event.isPropagationStopped() ) {
indvd00m@0
  4571
indvd00m@0
  4572
			event.type = i > 1 ?
indvd00m@0
  4573
				bubbleType :
indvd00m@0
  4574
				special.bindType || type;
indvd00m@0
  4575
indvd00m@0
  4576
			// jQuery handler
indvd00m@0
  4577
			handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" );
indvd00m@0
  4578
			if ( handle ) {
indvd00m@0
  4579
				handle.apply( cur, data );
indvd00m@0
  4580
			}
indvd00m@0
  4581
indvd00m@0
  4582
			// Native handler
indvd00m@0
  4583
			handle = ontype && cur[ ontype ];
indvd00m@0
  4584
			if ( handle && handle.apply && jQuery.acceptData( cur ) ) {
indvd00m@0
  4585
				event.result = handle.apply( cur, data );
indvd00m@0
  4586
				if ( event.result === false ) {
indvd00m@0
  4587
					event.preventDefault();
indvd00m@0
  4588
				}
indvd00m@0
  4589
			}
indvd00m@0
  4590
		}
indvd00m@0
  4591
		event.type = type;
indvd00m@0
  4592
indvd00m@0
  4593
		// If nobody prevented the default action, do it now
indvd00m@0
  4594
		if ( !onlyHandlers && !event.isDefaultPrevented() ) {
indvd00m@0
  4595
indvd00m@0
  4596
			if ( (!special._default || special._default.apply( eventPath.pop(), data ) === false) &&
indvd00m@0
  4597
				jQuery.acceptData( elem ) ) {
indvd00m@0
  4598
indvd00m@0
  4599
				// Call a native DOM method on the target with the same name name as the event.
indvd00m@0
  4600
				// Can't use an .isFunction() check here because IE6/7 fails that test.
indvd00m@0
  4601
				// Don't do default actions on window, that's where global variables be (#6170)
indvd00m@0
  4602
				if ( ontype && elem[ type ] && !jQuery.isWindow( elem ) ) {
indvd00m@0
  4603
indvd00m@0
  4604
					// Don't re-trigger an onFOO event when we call its FOO() method
indvd00m@0
  4605
					tmp = elem[ ontype ];
indvd00m@0
  4606
indvd00m@0
  4607
					if ( tmp ) {
indvd00m@0
  4608
						elem[ ontype ] = null;
indvd00m@0
  4609
					}
indvd00m@0
  4610
indvd00m@0
  4611
					// Prevent re-triggering of the same event, since we already bubbled it above
indvd00m@0
  4612
					jQuery.event.triggered = type;
indvd00m@0
  4613
					try {
indvd00m@0
  4614
						elem[ type ]();
indvd00m@0
  4615
					} catch ( e ) {
indvd00m@0
  4616
						// IE<9 dies on focus/blur to hidden element (#1486,#12518)
indvd00m@0
  4617
						// only reproducible on winXP IE8 native, not IE9 in IE8 mode
indvd00m@0
  4618
					}
indvd00m@0
  4619
					jQuery.event.triggered = undefined;
indvd00m@0
  4620
indvd00m@0
  4621
					if ( tmp ) {
indvd00m@0
  4622
						elem[ ontype ] = tmp;
indvd00m@0
  4623
					}
indvd00m@0
  4624
				}
indvd00m@0
  4625
			}
indvd00m@0
  4626
		}
indvd00m@0
  4627
indvd00m@0
  4628
		return event.result;
indvd00m@0
  4629
	},
indvd00m@0
  4630
indvd00m@0
  4631
	dispatch: function( event ) {
indvd00m@0
  4632
indvd00m@0
  4633
		// Make a writable jQuery.Event from the native event object
indvd00m@0
  4634
		event = jQuery.event.fix( event );
indvd00m@0
  4635
indvd00m@0
  4636
		var i, ret, handleObj, matched, j,
indvd00m@0
  4637
			handlerQueue = [],
indvd00m@0
  4638
			args = slice.call( arguments ),
indvd00m@0
  4639
			handlers = ( jQuery._data( this, "events" ) || {} )[ event.type ] || [],
indvd00m@0
  4640
			special = jQuery.event.special[ event.type ] || {};
indvd00m@0
  4641
indvd00m@0
  4642
		// Use the fix-ed jQuery.Event rather than the (read-only) native event
indvd00m@0
  4643
		args[0] = event;
indvd00m@0
  4644
		event.delegateTarget = this;
indvd00m@0
  4645
indvd00m@0
  4646
		// Call the preDispatch hook for the mapped type, and let it bail if desired
indvd00m@0
  4647
		if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {
indvd00m@0
  4648
			return;
indvd00m@0
  4649
		}
indvd00m@0
  4650
indvd00m@0
  4651
		// Determine handlers
indvd00m@0
  4652
		handlerQueue = jQuery.event.handlers.call( this, event, handlers );
indvd00m@0
  4653
indvd00m@0
  4654
		// Run delegates first; they may want to stop propagation beneath us
indvd00m@0
  4655
		i = 0;
indvd00m@0
  4656
		while ( (matched = handlerQueue[ i++ ]) && !event.isPropagationStopped() ) {
indvd00m@0
  4657
			event.currentTarget = matched.elem;
indvd00m@0
  4658
indvd00m@0
  4659
			j = 0;
indvd00m@0
  4660
			while ( (handleObj = matched.handlers[ j++ ]) && !event.isImmediatePropagationStopped() ) {
indvd00m@0
  4661
indvd00m@0
  4662
				// Triggered event must either 1) have no namespace, or
indvd00m@0
  4663
				// 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace).
indvd00m@0
  4664
				if ( !event.namespace_re || event.namespace_re.test( handleObj.namespace ) ) {
indvd00m@0
  4665
indvd00m@0
  4666
					event.handleObj = handleObj;
indvd00m@0
  4667
					event.data = handleObj.data;
indvd00m@0
  4668
indvd00m@0
  4669
					ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler )
indvd00m@0
  4670
							.apply( matched.elem, args );
indvd00m@0
  4671
indvd00m@0
  4672
					if ( ret !== undefined ) {
indvd00m@0
  4673
						if ( (event.result = ret) === false ) {
indvd00m@0
  4674
							event.preventDefault();
indvd00m@0
  4675
							event.stopPropagation();
indvd00m@0
  4676
						}
indvd00m@0
  4677
					}
indvd00m@0
  4678
				}
indvd00m@0
  4679
			}
indvd00m@0
  4680
		}
indvd00m@0
  4681
indvd00m@0
  4682
		// Call the postDispatch hook for the mapped type
indvd00m@0
  4683
		if ( special.postDispatch ) {
indvd00m@0
  4684
			special.postDispatch.call( this, event );
indvd00m@0
  4685
		}
indvd00m@0
  4686
indvd00m@0
  4687
		return event.result;
indvd00m@0
  4688
	},
indvd00m@0
  4689
indvd00m@0
  4690
	handlers: function( event, handlers ) {
indvd00m@0
  4691
		var sel, handleObj, matches, i,
indvd00m@0
  4692
			handlerQueue = [],
indvd00m@0
  4693
			delegateCount = handlers.delegateCount,
indvd00m@0
  4694
			cur = event.target;
indvd00m@0
  4695
indvd00m@0
  4696
		// Find delegate handlers
indvd00m@0
  4697
		// Black-hole SVG <use> instance trees (#13180)
indvd00m@0
  4698
		// Avoid non-left-click bubbling in Firefox (#3861)
indvd00m@0
  4699
		if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) {
indvd00m@0
  4700
indvd00m@0
  4701
			/* jshint eqeqeq: false */
indvd00m@0
  4702
			for ( ; cur != this; cur = cur.parentNode || this ) {
indvd00m@0
  4703
				/* jshint eqeqeq: true */
indvd00m@0
  4704
indvd00m@0
  4705
				// Don't check non-elements (#13208)
indvd00m@0
  4706
				// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
indvd00m@0
  4707
				if ( cur.nodeType === 1 && (cur.disabled !== true || event.type !== "click") ) {
indvd00m@0
  4708
					matches = [];
indvd00m@0
  4709
					for ( i = 0; i < delegateCount; i++ ) {
indvd00m@0
  4710
						handleObj = handlers[ i ];
indvd00m@0
  4711
indvd00m@0
  4712
						// Don't conflict with Object.prototype properties (#13203)
indvd00m@0
  4713
						sel = handleObj.selector + " ";
indvd00m@0
  4714
indvd00m@0
  4715
						if ( matches[ sel ] === undefined ) {
indvd00m@0
  4716
							matches[ sel ] = handleObj.needsContext ?
indvd00m@0
  4717
								jQuery( sel, this ).index( cur ) >= 0 :
indvd00m@0
  4718
								jQuery.find( sel, this, null, [ cur ] ).length;
indvd00m@0
  4719
						}
indvd00m@0
  4720
						if ( matches[ sel ] ) {
indvd00m@0
  4721
							matches.push( handleObj );
indvd00m@0
  4722
						}
indvd00m@0
  4723
					}
indvd00m@0
  4724
					if ( matches.length ) {
indvd00m@0
  4725
						handlerQueue.push({ elem: cur, handlers: matches });
indvd00m@0
  4726
					}
indvd00m@0
  4727
				}
indvd00m@0
  4728
			}
indvd00m@0
  4729
		}
indvd00m@0
  4730
indvd00m@0
  4731
		// Add the remaining (directly-bound) handlers
indvd00m@0
  4732
		if ( delegateCount < handlers.length ) {
indvd00m@0
  4733
			handlerQueue.push({ elem: this, handlers: handlers.slice( delegateCount ) });
indvd00m@0
  4734
		}
indvd00m@0
  4735
indvd00m@0
  4736
		return handlerQueue;
indvd00m@0
  4737
	},
indvd00m@0
  4738
indvd00m@0
  4739
	fix: function( event ) {
indvd00m@0
  4740
		if ( event[ jQuery.expando ] ) {
indvd00m@0
  4741
			return event;
indvd00m@0
  4742
		}
indvd00m@0
  4743
indvd00m@0
  4744
		// Create a writable copy of the event object and normalize some properties
indvd00m@0
  4745
		var i, prop, copy,
indvd00m@0
  4746
			type = event.type,
indvd00m@0
  4747
			originalEvent = event,
indvd00m@0
  4748
			fixHook = this.fixHooks[ type ];
indvd00m@0
  4749
indvd00m@0
  4750
		if ( !fixHook ) {
indvd00m@0
  4751
			this.fixHooks[ type ] = fixHook =
indvd00m@0
  4752
				rmouseEvent.test( type ) ? this.mouseHooks :
indvd00m@0
  4753
				rkeyEvent.test( type ) ? this.keyHooks :
indvd00m@0
  4754
				{};
indvd00m@0
  4755
		}
indvd00m@0
  4756
		copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;
indvd00m@0
  4757
indvd00m@0
  4758
		event = new jQuery.Event( originalEvent );
indvd00m@0
  4759
indvd00m@0
  4760
		i = copy.length;
indvd00m@0
  4761
		while ( i-- ) {
indvd00m@0
  4762
			prop = copy[ i ];
indvd00m@0
  4763
			event[ prop ] = originalEvent[ prop ];
indvd00m@0
  4764
		}
indvd00m@0
  4765
indvd00m@0
  4766
		// Support: IE<9
indvd00m@0
  4767
		// Fix target property (#1925)
indvd00m@0
  4768
		if ( !event.target ) {
indvd00m@0
  4769
			event.target = originalEvent.srcElement || document;
indvd00m@0
  4770
		}
indvd00m@0
  4771
indvd00m@0
  4772
		// Support: Chrome 23+, Safari?
indvd00m@0
  4773
		// Target should not be a text node (#504, #13143)
indvd00m@0
  4774
		if ( event.target.nodeType === 3 ) {
indvd00m@0
  4775
			event.target = event.target.parentNode;
indvd00m@0
  4776
		}
indvd00m@0
  4777
indvd00m@0
  4778
		// Support: IE<9
indvd00m@0
  4779
		// For mouse/key events, metaKey==false if it's undefined (#3368, #11328)
indvd00m@0
  4780
		event.metaKey = !!event.metaKey;
indvd00m@0
  4781
indvd00m@0
  4782
		return fixHook.filter ? fixHook.filter( event, originalEvent ) : event;
indvd00m@0
  4783
	},
indvd00m@0
  4784
indvd00m@0
  4785
	// Includes some event props shared by KeyEvent and MouseEvent
indvd00m@0
  4786
	props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
indvd00m@0
  4787
indvd00m@0
  4788
	fixHooks: {},
indvd00m@0
  4789
indvd00m@0
  4790
	keyHooks: {
indvd00m@0
  4791
		props: "char charCode key keyCode".split(" "),
indvd00m@0
  4792
		filter: function( event, original ) {
indvd00m@0
  4793
indvd00m@0
  4794
			// Add which for key events
indvd00m@0
  4795
			if ( event.which == null ) {
indvd00m@0
  4796
				event.which = original.charCode != null ? original.charCode : original.keyCode;
indvd00m@0
  4797
			}
indvd00m@0
  4798
indvd00m@0
  4799
			return event;
indvd00m@0
  4800
		}
indvd00m@0
  4801
	},
indvd00m@0
  4802
indvd00m@0
  4803
	mouseHooks: {
indvd00m@0
  4804
		props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
indvd00m@0
  4805
		filter: function( event, original ) {
indvd00m@0
  4806
			var body, eventDoc, doc,
indvd00m@0
  4807
				button = original.button,
indvd00m@0
  4808
				fromElement = original.fromElement;
indvd00m@0
  4809
indvd00m@0
  4810
			// Calculate pageX/Y if missing and clientX/Y available
indvd00m@0
  4811
			if ( event.pageX == null && original.clientX != null ) {
indvd00m@0
  4812
				eventDoc = event.target.ownerDocument || document;
indvd00m@0
  4813
				doc = eventDoc.documentElement;
indvd00m@0
  4814
				body = eventDoc.body;
indvd00m@0
  4815
indvd00m@0
  4816
				event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );
indvd00m@0
  4817
				event.pageY = original.clientY + ( doc && doc.scrollTop  || body && body.scrollTop  || 0 ) - ( doc && doc.clientTop  || body && body.clientTop  || 0 );
indvd00m@0
  4818
			}
indvd00m@0
  4819
indvd00m@0
  4820
			// Add relatedTarget, if necessary
indvd00m@0
  4821
			if ( !event.relatedTarget && fromElement ) {
indvd00m@0
  4822
				event.relatedTarget = fromElement === event.target ? original.toElement : fromElement;
indvd00m@0
  4823
			}
indvd00m@0
  4824
indvd00m@0
  4825
			// Add which for click: 1 === left; 2 === middle; 3 === right
indvd00m@0
  4826
			// Note: button is not normalized, so don't use it
indvd00m@0
  4827
			if ( !event.which && button !== undefined ) {
indvd00m@0
  4828
				event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );
indvd00m@0
  4829
			}
indvd00m@0
  4830
indvd00m@0
  4831
			return event;
indvd00m@0
  4832
		}
indvd00m@0
  4833
	},
indvd00m@0
  4834
indvd00m@0
  4835
	special: {
indvd00m@0
  4836
		load: {
indvd00m@0
  4837
			// Prevent triggered image.load events from bubbling to window.load
indvd00m@0
  4838
			noBubble: true
indvd00m@0
  4839
		},
indvd00m@0
  4840
		focus: {
indvd00m@0
  4841
			// Fire native event if possible so blur/focus sequence is correct
indvd00m@0
  4842
			trigger: function() {
indvd00m@0
  4843
				if ( this !== safeActiveElement() && this.focus ) {
indvd00m@0
  4844
					try {
indvd00m@0
  4845
						this.focus();
indvd00m@0
  4846
						return false;
indvd00m@0
  4847
					} catch ( e ) {
indvd00m@0
  4848
						// Support: IE<9
indvd00m@0
  4849
						// If we error on focus to hidden element (#1486, #12518),
indvd00m@0
  4850
						// let .trigger() run the handlers
indvd00m@0
  4851
					}
indvd00m@0
  4852
				}
indvd00m@0
  4853
			},
indvd00m@0
  4854
			delegateType: "focusin"
indvd00m@0
  4855
		},
indvd00m@0
  4856
		blur: {
indvd00m@0
  4857
			trigger: function() {
indvd00m@0
  4858
				if ( this === safeActiveElement() && this.blur ) {
indvd00m@0
  4859
					this.blur();
indvd00m@0
  4860
					return false;
indvd00m@0
  4861
				}
indvd00m@0
  4862
			},
indvd00m@0
  4863
			delegateType: "focusout"
indvd00m@0
  4864
		},
indvd00m@0
  4865
		click: {
indvd00m@0
  4866
			// For checkbox, fire native event so checked state will be right
indvd00m@0
  4867
			trigger: function() {
indvd00m@0
  4868
				if ( jQuery.nodeName( this, "input" ) && this.type === "checkbox" && this.click ) {
indvd00m@0
  4869
					this.click();
indvd00m@0
  4870
					return false;
indvd00m@0
  4871
				}
indvd00m@0
  4872
			},
indvd00m@0
  4873
indvd00m@0
  4874
			// For cross-browser consistency, don't fire native .click() on links
indvd00m@0
  4875
			_default: function( event ) {
indvd00m@0
  4876
				return jQuery.nodeName( event.target, "a" );
indvd00m@0
  4877
			}
indvd00m@0
  4878
		},
indvd00m@0
  4879
indvd00m@0
  4880
		beforeunload: {
indvd00m@0
  4881
			postDispatch: function( event ) {
indvd00m@0
  4882
indvd00m@0
  4883
				// Support: Firefox 20+
indvd00m@0
  4884
				// Firefox doesn't alert if the returnValue field is not set.
indvd00m@0
  4885
				if ( event.result !== undefined && event.originalEvent ) {
indvd00m@0
  4886
					event.originalEvent.returnValue = event.result;
indvd00m@0
  4887
				}
indvd00m@0
  4888
			}
indvd00m@0
  4889
		}
indvd00m@0
  4890
	},
indvd00m@0
  4891
indvd00m@0
  4892
	simulate: function( type, elem, event, bubble ) {
indvd00m@0
  4893
		// Piggyback on a donor event to simulate a different one.
indvd00m@0
  4894
		// Fake originalEvent to avoid donor's stopPropagation, but if the
indvd00m@0
  4895
		// simulated event prevents default then we do the same on the donor.
indvd00m@0
  4896
		var e = jQuery.extend(
indvd00m@0
  4897
			new jQuery.Event(),
indvd00m@0
  4898
			event,
indvd00m@0
  4899
			{
indvd00m@0
  4900
				type: type,
indvd00m@0
  4901
				isSimulated: true,
indvd00m@0
  4902
				originalEvent: {}
indvd00m@0
  4903
			}
indvd00m@0
  4904
		);
indvd00m@0
  4905
		if ( bubble ) {
indvd00m@0
  4906
			jQuery.event.trigger( e, null, elem );
indvd00m@0
  4907
		} else {
indvd00m@0
  4908
			jQuery.event.dispatch.call( elem, e );
indvd00m@0
  4909
		}
indvd00m@0
  4910
		if ( e.isDefaultPrevented() ) {
indvd00m@0
  4911
			event.preventDefault();
indvd00m@0
  4912
		}
indvd00m@0
  4913
	}
indvd00m@0
  4914
};
indvd00m@0
  4915
indvd00m@0
  4916
jQuery.removeEvent = document.removeEventListener ?
indvd00m@0
  4917
	function( elem, type, handle ) {
indvd00m@0
  4918
		if ( elem.removeEventListener ) {
indvd00m@0
  4919
			elem.removeEventListener( type, handle, false );
indvd00m@0
  4920
		}
indvd00m@0
  4921
	} :
indvd00m@0
  4922
	function( elem, type, handle ) {
indvd00m@0
  4923
		var name = "on" + type;
indvd00m@0
  4924
indvd00m@0
  4925
		if ( elem.detachEvent ) {
indvd00m@0
  4926
indvd00m@0
  4927
			// #8545, #7054, preventing memory leaks for custom events in IE6-8
indvd00m@0
  4928
			// detachEvent needed property on element, by name of that event, to properly expose it to GC
indvd00m@0
  4929
			if ( typeof elem[ name ] === strundefined ) {
indvd00m@0
  4930
				elem[ name ] = null;
indvd00m@0
  4931
			}
indvd00m@0
  4932
indvd00m@0
  4933
			elem.detachEvent( name, handle );
indvd00m@0
  4934
		}
indvd00m@0
  4935
	};
indvd00m@0
  4936
indvd00m@0
  4937
jQuery.Event = function( src, props ) {
indvd00m@0
  4938
	// Allow instantiation without the 'new' keyword
indvd00m@0
  4939
	if ( !(this instanceof jQuery.Event) ) {
indvd00m@0
  4940
		return new jQuery.Event( src, props );
indvd00m@0
  4941
	}
indvd00m@0
  4942
indvd00m@0
  4943
	// Event object
indvd00m@0
  4944
	if ( src && src.type ) {
indvd00m@0
  4945
		this.originalEvent = src;
indvd00m@0
  4946
		this.type = src.type;
indvd00m@0
  4947
indvd00m@0
  4948
		// Events bubbling up the document may have been marked as prevented
indvd00m@0
  4949
		// by a handler lower down the tree; reflect the correct value.
indvd00m@0
  4950
		this.isDefaultPrevented = src.defaultPrevented ||
indvd00m@0
  4951
				src.defaultPrevented === undefined &&
indvd00m@0
  4952
				// Support: IE < 9, Android < 4.0
indvd00m@0
  4953
				src.returnValue === false ?
indvd00m@0
  4954
			returnTrue :
indvd00m@0
  4955
			returnFalse;
indvd00m@0
  4956
indvd00m@0
  4957
	// Event type
indvd00m@0
  4958
	} else {
indvd00m@0
  4959
		this.type = src;
indvd00m@0
  4960
	}
indvd00m@0
  4961
indvd00m@0
  4962
	// Put explicitly provided properties onto the event object
indvd00m@0
  4963
	if ( props ) {
indvd00m@0
  4964
		jQuery.extend( this, props );
indvd00m@0
  4965
	}
indvd00m@0
  4966
indvd00m@0
  4967
	// Create a timestamp if incoming event doesn't have one
indvd00m@0
  4968
	this.timeStamp = src && src.timeStamp || jQuery.now();
indvd00m@0
  4969
indvd00m@0
  4970
	// Mark it as fixed
indvd00m@0
  4971
	this[ jQuery.expando ] = true;
indvd00m@0
  4972
};
indvd00m@0
  4973
indvd00m@0
  4974
// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
indvd00m@0
  4975
// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
indvd00m@0
  4976
jQuery.Event.prototype = {
indvd00m@0
  4977
	isDefaultPrevented: returnFalse,
indvd00m@0
  4978
	isPropagationStopped: returnFalse,
indvd00m@0
  4979
	isImmediatePropagationStopped: returnFalse,
indvd00m@0
  4980
indvd00m@0
  4981
	preventDefault: function() {
indvd00m@0
  4982
		var e = this.originalEvent;
indvd00m@0
  4983
indvd00m@0
  4984
		this.isDefaultPrevented = returnTrue;
indvd00m@0
  4985
		if ( !e ) {
indvd00m@0
  4986
			return;
indvd00m@0
  4987
		}
indvd00m@0
  4988
indvd00m@0
  4989
		// If preventDefault exists, run it on the original event
indvd00m@0
  4990
		if ( e.preventDefault ) {
indvd00m@0
  4991
			e.preventDefault();
indvd00m@0
  4992
indvd00m@0
  4993
		// Support: IE
indvd00m@0
  4994
		// Otherwise set the returnValue property of the original event to false
indvd00m@0
  4995
		} else {
indvd00m@0
  4996
			e.returnValue = false;
indvd00m@0
  4997
		}
indvd00m@0
  4998
	},
indvd00m@0
  4999
	stopPropagation: function() {
indvd00m@0
  5000
		var e = this.originalEvent;
indvd00m@0
  5001
indvd00m@0
  5002
		this.isPropagationStopped = returnTrue;
indvd00m@0
  5003
		if ( !e ) {
indvd00m@0
  5004
			return;
indvd00m@0
  5005
		}
indvd00m@0
  5006
		// If stopPropagation exists, run it on the original event
indvd00m@0
  5007
		if ( e.stopPropagation ) {
indvd00m@0
  5008
			e.stopPropagation();
indvd00m@0
  5009
		}
indvd00m@0
  5010
indvd00m@0
  5011
		// Support: IE
indvd00m@0
  5012
		// Set the cancelBubble property of the original event to true
indvd00m@0
  5013
		e.cancelBubble = true;
indvd00m@0
  5014
	},
indvd00m@0
  5015
	stopImmediatePropagation: function() {
indvd00m@0
  5016
		var e = this.originalEvent;
indvd00m@0
  5017
indvd00m@0
  5018
		this.isImmediatePropagationStopped = returnTrue;
indvd00m@0
  5019
indvd00m@0
  5020
		if ( e && e.stopImmediatePropagation ) {
indvd00m@0
  5021
			e.stopImmediatePropagation();
indvd00m@0
  5022
		}
indvd00m@0
  5023
indvd00m@0
  5024
		this.stopPropagation();
indvd00m@0
  5025
	}
indvd00m@0
  5026
};
indvd00m@0
  5027
indvd00m@0
  5028
// Create mouseenter/leave events using mouseover/out and event-time checks
indvd00m@0
  5029
jQuery.each({
indvd00m@0
  5030
	mouseenter: "mouseover",
indvd00m@0
  5031
	mouseleave: "mouseout",
indvd00m@0
  5032
	pointerenter: "pointerover",
indvd00m@0
  5033
	pointerleave: "pointerout"
indvd00m@0
  5034
}, function( orig, fix ) {
indvd00m@0
  5035
	jQuery.event.special[ orig ] = {
indvd00m@0
  5036
		delegateType: fix,
indvd00m@0
  5037
		bindType: fix,
indvd00m@0
  5038
indvd00m@0
  5039
		handle: function( event ) {
indvd00m@0
  5040
			var ret,
indvd00m@0
  5041
				target = this,
indvd00m@0
  5042
				related = event.relatedTarget,
indvd00m@0
  5043
				handleObj = event.handleObj;
indvd00m@0
  5044
indvd00m@0
  5045
			// For mousenter/leave call the handler if related is outside the target.
indvd00m@0
  5046
			// NB: No relatedTarget if the mouse left/entered the browser window
indvd00m@0
  5047
			if ( !related || (related !== target && !jQuery.contains( target, related )) ) {
indvd00m@0
  5048
				event.type = handleObj.origType;
indvd00m@0
  5049
				ret = handleObj.handler.apply( this, arguments );
indvd00m@0
  5050
				event.type = fix;
indvd00m@0
  5051
			}
indvd00m@0
  5052
			return ret;
indvd00m@0
  5053
		}
indvd00m@0
  5054
	};
indvd00m@0
  5055
});
indvd00m@0
  5056
indvd00m@0
  5057
// IE submit delegation
indvd00m@0
  5058
if ( !support.submitBubbles ) {
indvd00m@0
  5059
indvd00m@0
  5060
	jQuery.event.special.submit = {
indvd00m@0
  5061
		setup: function() {
indvd00m@0
  5062
			// Only need this for delegated form submit events
indvd00m@0
  5063
			if ( jQuery.nodeName( this, "form" ) ) {
indvd00m@0
  5064
				return false;
indvd00m@0
  5065
			}
indvd00m@0
  5066
indvd00m@0
  5067
			// Lazy-add a submit handler when a descendant form may potentially be submitted
indvd00m@0
  5068
			jQuery.event.add( this, "click._submit keypress._submit", function( e ) {
indvd00m@0
  5069
				// Node name check avoids a VML-related crash in IE (#9807)
indvd00m@0
  5070
				var elem = e.target,
indvd00m@0
  5071
					form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined;
indvd00m@0
  5072
				if ( form && !jQuery._data( form, "submitBubbles" ) ) {
indvd00m@0
  5073
					jQuery.event.add( form, "submit._submit", function( event ) {
indvd00m@0
  5074
						event._submit_bubble = true;
indvd00m@0
  5075
					});
indvd00m@0
  5076
					jQuery._data( form, "submitBubbles", true );
indvd00m@0
  5077
				}
indvd00m@0
  5078
			});
indvd00m@0
  5079
			// return undefined since we don't need an event listener
indvd00m@0
  5080
		},
indvd00m@0
  5081
indvd00m@0
  5082
		postDispatch: function( event ) {
indvd00m@0
  5083
			// If form was submitted by the user, bubble the event up the tree
indvd00m@0
  5084
			if ( event._submit_bubble ) {
indvd00m@0
  5085
				delete event._submit_bubble;
indvd00m@0
  5086
				if ( this.parentNode && !event.isTrigger ) {
indvd00m@0
  5087
					jQuery.event.simulate( "submit", this.parentNode, event, true );
indvd00m@0
  5088
				}
indvd00m@0
  5089
			}
indvd00m@0
  5090
		},
indvd00m@0
  5091
indvd00m@0
  5092
		teardown: function() {
indvd00m@0
  5093
			// Only need this for delegated form submit events
indvd00m@0
  5094
			if ( jQuery.nodeName( this, "form" ) ) {
indvd00m@0
  5095
				return false;
indvd00m@0
  5096
			}
indvd00m@0
  5097
indvd00m@0
  5098
			// Remove delegated handlers; cleanData eventually reaps submit handlers attached above
indvd00m@0
  5099
			jQuery.event.remove( this, "._submit" );
indvd00m@0
  5100
		}
indvd00m@0
  5101
	};
indvd00m@0
  5102
}
indvd00m@0
  5103
indvd00m@0
  5104
// IE change delegation and checkbox/radio fix
indvd00m@0
  5105
if ( !support.changeBubbles ) {
indvd00m@0
  5106
indvd00m@0
  5107
	jQuery.event.special.change = {
indvd00m@0
  5108
indvd00m@0
  5109
		setup: function() {
indvd00m@0
  5110
indvd00m@0
  5111
			if ( rformElems.test( this.nodeName ) ) {
indvd00m@0
  5112
				// IE doesn't fire change on a check/radio until blur; trigger it on click
indvd00m@0
  5113
				// after a propertychange. Eat the blur-change in special.change.handle.
indvd00m@0
  5114
				// This still fires onchange a second time for check/radio after blur.
indvd00m@0
  5115
				if ( this.type === "checkbox" || this.type === "radio" ) {
indvd00m@0
  5116
					jQuery.event.add( this, "propertychange._change", function( event ) {
indvd00m@0
  5117
						if ( event.originalEvent.propertyName === "checked" ) {
indvd00m@0
  5118
							this._just_changed = true;
indvd00m@0
  5119
						}
indvd00m@0
  5120
					});
indvd00m@0
  5121
					jQuery.event.add( this, "click._change", function( event ) {
indvd00m@0
  5122
						if ( this._just_changed && !event.isTrigger ) {
indvd00m@0
  5123
							this._just_changed = false;
indvd00m@0
  5124
						}
indvd00m@0
  5125
						// Allow triggered, simulated change events (#11500)
indvd00m@0
  5126
						jQuery.event.simulate( "change", this, event, true );
indvd00m@0
  5127
					});
indvd00m@0
  5128
				}
indvd00m@0
  5129
				return false;
indvd00m@0
  5130
			}
indvd00m@0
  5131
			// Delegated event; lazy-add a change handler on descendant inputs
indvd00m@0
  5132
			jQuery.event.add( this, "beforeactivate._change", function( e ) {
indvd00m@0
  5133
				var elem = e.target;
indvd00m@0
  5134
indvd00m@0
  5135
				if ( rformElems.test( elem.nodeName ) && !jQuery._data( elem, "changeBubbles" ) ) {
indvd00m@0
  5136
					jQuery.event.add( elem, "change._change", function( event ) {
indvd00m@0
  5137
						if ( this.parentNode && !event.isSimulated && !event.isTrigger ) {
indvd00m@0
  5138
							jQuery.event.simulate( "change", this.parentNode, event, true );
indvd00m@0
  5139
						}
indvd00m@0
  5140
					});
indvd00m@0
  5141
					jQuery._data( elem, "changeBubbles", true );
indvd00m@0
  5142
				}
indvd00m@0
  5143
			});
indvd00m@0
  5144
		},
indvd00m@0
  5145
indvd00m@0
  5146
		handle: function( event ) {
indvd00m@0
  5147
			var elem = event.target;
indvd00m@0
  5148
indvd00m@0
  5149
			// Swallow native change events from checkbox/radio, we already triggered them above
indvd00m@0
  5150
			if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) {
indvd00m@0
  5151
				return event.handleObj.handler.apply( this, arguments );
indvd00m@0
  5152
			}
indvd00m@0
  5153
		},
indvd00m@0
  5154
indvd00m@0
  5155
		teardown: function() {
indvd00m@0
  5156
			jQuery.event.remove( this, "._change" );
indvd00m@0
  5157
indvd00m@0
  5158
			return !rformElems.test( this.nodeName );
indvd00m@0
  5159
		}
indvd00m@0
  5160
	};
indvd00m@0
  5161
}
indvd00m@0
  5162
indvd00m@0
  5163
// Create "bubbling" focus and blur events
indvd00m@0
  5164
if ( !support.focusinBubbles ) {
indvd00m@0
  5165
	jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {
indvd00m@0
  5166
indvd00m@0
  5167
		// Attach a single capturing handler on the document while someone wants focusin/focusout
indvd00m@0
  5168
		var handler = function( event ) {
indvd00m@0
  5169
				jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true );
indvd00m@0
  5170
			};
indvd00m@0
  5171
indvd00m@0
  5172
		jQuery.event.special[ fix ] = {
indvd00m@0
  5173
			setup: function() {
indvd00m@0
  5174
				var doc = this.ownerDocument || this,
indvd00m@0
  5175
					attaches = jQuery._data( doc, fix );
indvd00m@0
  5176
indvd00m@0
  5177
				if ( !attaches ) {
indvd00m@0
  5178
					doc.addEventListener( orig, handler, true );
indvd00m@0
  5179
				}
indvd00m@0
  5180
				jQuery._data( doc, fix, ( attaches || 0 ) + 1 );
indvd00m@0
  5181
			},
indvd00m@0
  5182
			teardown: function() {
indvd00m@0
  5183
				var doc = this.ownerDocument || this,
indvd00m@0
  5184
					attaches = jQuery._data( doc, fix ) - 1;
indvd00m@0
  5185
indvd00m@0
  5186
				if ( !attaches ) {
indvd00m@0
  5187
					doc.removeEventListener( orig, handler, true );
indvd00m@0
  5188
					jQuery._removeData( doc, fix );
indvd00m@0
  5189
				} else {
indvd00m@0
  5190
					jQuery._data( doc, fix, attaches );
indvd00m@0
  5191
				}
indvd00m@0
  5192
			}
indvd00m@0
  5193
		};
indvd00m@0
  5194
	});
indvd00m@0
  5195
}
indvd00m@0
  5196
indvd00m@0
  5197
jQuery.fn.extend({
indvd00m@0
  5198
indvd00m@0
  5199
	on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
indvd00m@0
  5200
		var type, origFn;
indvd00m@0
  5201
indvd00m@0
  5202
		// Types can be a map of types/handlers
indvd00m@0
  5203
		if ( typeof types === "object" ) {
indvd00m@0
  5204
			// ( types-Object, selector, data )
indvd00m@0
  5205
			if ( typeof selector !== "string" ) {
indvd00m@0
  5206
				// ( types-Object, data )
indvd00m@0
  5207
				data = data || selector;
indvd00m@0
  5208
				selector = undefined;
indvd00m@0
  5209
			}
indvd00m@0
  5210
			for ( type in types ) {
indvd00m@0
  5211
				this.on( type, selector, data, types[ type ], one );
indvd00m@0
  5212
			}
indvd00m@0
  5213
			return this;
indvd00m@0
  5214
		}
indvd00m@0
  5215
indvd00m@0
  5216
		if ( data == null && fn == null ) {
indvd00m@0
  5217
			// ( types, fn )
indvd00m@0
  5218
			fn = selector;
indvd00m@0
  5219
			data = selector = undefined;
indvd00m@0
  5220
		} else if ( fn == null ) {
indvd00m@0
  5221
			if ( typeof selector === "string" ) {
indvd00m@0
  5222
				// ( types, selector, fn )
indvd00m@0
  5223
				fn = data;
indvd00m@0
  5224
				data = undefined;
indvd00m@0
  5225
			} else {
indvd00m@0
  5226
				// ( types, data, fn )
indvd00m@0
  5227
				fn = data;
indvd00m@0
  5228
				data = selector;
indvd00m@0
  5229
				selector = undefined;
indvd00m@0
  5230
			}
indvd00m@0
  5231
		}
indvd00m@0
  5232
		if ( fn === false ) {
indvd00m@0
  5233
			fn = returnFalse;
indvd00m@0
  5234
		} else if ( !fn ) {
indvd00m@0
  5235
			return this;
indvd00m@0
  5236
		}
indvd00m@0
  5237
indvd00m@0
  5238
		if ( one === 1 ) {
indvd00m@0
  5239
			origFn = fn;
indvd00m@0
  5240
			fn = function( event ) {
indvd00m@0
  5241
				// Can use an empty set, since event contains the info
indvd00m@0
  5242
				jQuery().off( event );
indvd00m@0
  5243
				return origFn.apply( this, arguments );
indvd00m@0
  5244
			};
indvd00m@0
  5245
			// Use same guid so caller can remove using origFn
indvd00m@0
  5246
			fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
indvd00m@0
  5247
		}
indvd00m@0
  5248
		return this.each( function() {
indvd00m@0
  5249
			jQuery.event.add( this, types, fn, data, selector );
indvd00m@0
  5250
		});
indvd00m@0
  5251
	},
indvd00m@0
  5252
	one: function( types, selector, data, fn ) {
indvd00m@0
  5253
		return this.on( types, selector, data, fn, 1 );
indvd00m@0
  5254
	},
indvd00m@0
  5255
	off: function( types, selector, fn ) {
indvd00m@0
  5256
		var handleObj, type;
indvd00m@0
  5257
		if ( types && types.preventDefault && types.handleObj ) {
indvd00m@0
  5258
			// ( event )  dispatched jQuery.Event
indvd00m@0
  5259
			handleObj = types.handleObj;
indvd00m@0
  5260
			jQuery( types.delegateTarget ).off(
indvd00m@0
  5261
				handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType,
indvd00m@0
  5262
				handleObj.selector,
indvd00m@0
  5263
				handleObj.handler
indvd00m@0
  5264
			);
indvd00m@0
  5265
			return this;
indvd00m@0
  5266
		}
indvd00m@0
  5267
		if ( typeof types === "object" ) {
indvd00m@0
  5268
			// ( types-object [, selector] )
indvd00m@0
  5269
			for ( type in types ) {
indvd00m@0
  5270
				this.off( type, selector, types[ type ] );
indvd00m@0
  5271
			}
indvd00m@0
  5272
			return this;
indvd00m@0
  5273
		}
indvd00m@0
  5274
		if ( selector === false || typeof selector === "function" ) {
indvd00m@0
  5275
			// ( types [, fn] )
indvd00m@0
  5276
			fn = selector;
indvd00m@0
  5277
			selector = undefined;
indvd00m@0
  5278
		}
indvd00m@0
  5279
		if ( fn === false ) {
indvd00m@0
  5280
			fn = returnFalse;
indvd00m@0
  5281
		}
indvd00m@0
  5282
		return this.each(function() {
indvd00m@0
  5283
			jQuery.event.remove( this, types, fn, selector );
indvd00m@0
  5284
		});
indvd00m@0
  5285
	},
indvd00m@0
  5286
indvd00m@0
  5287
	trigger: function( type, data ) {
indvd00m@0
  5288
		return this.each(function() {
indvd00m@0
  5289
			jQuery.event.trigger( type, data, this );
indvd00m@0
  5290
		});
indvd00m@0
  5291
	},
indvd00m@0
  5292
	triggerHandler: function( type, data ) {
indvd00m@0
  5293
		var elem = this[0];
indvd00m@0
  5294
		if ( elem ) {
indvd00m@0
  5295
			return jQuery.event.trigger( type, data, elem, true );
indvd00m@0
  5296
		}
indvd00m@0
  5297
	}
indvd00m@0
  5298
});
indvd00m@0
  5299
indvd00m@0
  5300
indvd00m@0
  5301
function createSafeFragment( document ) {
indvd00m@0
  5302
	var list = nodeNames.split( "|" ),
indvd00m@0
  5303
		safeFrag = document.createDocumentFragment();
indvd00m@0
  5304
indvd00m@0
  5305
	if ( safeFrag.createElement ) {
indvd00m@0
  5306
		while ( list.length ) {
indvd00m@0
  5307
			safeFrag.createElement(
indvd00m@0
  5308
				list.pop()
indvd00m@0
  5309
			);
indvd00m@0
  5310
		}
indvd00m@0
  5311
	}
indvd00m@0
  5312
	return safeFrag;
indvd00m@0
  5313
}
indvd00m@0
  5314
indvd00m@0
  5315
var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" +
indvd00m@0
  5316
		"header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
indvd00m@0
  5317
	rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g,
indvd00m@0
  5318
	rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"),
indvd00m@0
  5319
	rleadingWhitespace = /^\s+/,
indvd00m@0
  5320
	rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,
indvd00m@0
  5321
	rtagName = /<([\w:]+)/,
indvd00m@0
  5322
	rtbody = /<tbody/i,
indvd00m@0
  5323
	rhtml = /<|&#?\w+;/,
indvd00m@0
  5324
	rnoInnerhtml = /<(?:script|style|link)/i,
indvd00m@0
  5325
	// checked="checked" or checked
indvd00m@0
  5326
	rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
indvd00m@0
  5327
	rscriptType = /^$|\/(?:java|ecma)script/i,
indvd00m@0
  5328
	rscriptTypeMasked = /^true\/(.*)/,
indvd00m@0
  5329
	rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,
indvd00m@0
  5330
indvd00m@0
  5331
	// We have to close these tags to support XHTML (#13200)
indvd00m@0
  5332
	wrapMap = {
indvd00m@0
  5333
		option: [ 1, "<select multiple='multiple'>", "</select>" ],
indvd00m@0
  5334
		legend: [ 1, "<fieldset>", "</fieldset>" ],
indvd00m@0
  5335
		area: [ 1, "<map>", "</map>" ],
indvd00m@0
  5336
		param: [ 1, "<object>", "</object>" ],
indvd00m@0
  5337
		thead: [ 1, "<table>", "</table>" ],
indvd00m@0
  5338
		tr: [ 2, "<table><tbody>", "</tbody></table>" ],
indvd00m@0
  5339
		col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],
indvd00m@0
  5340
		td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
indvd00m@0
  5341
indvd00m@0
  5342
		// IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags,
indvd00m@0
  5343
		// unless wrapped in a div with non-breaking characters in front of it.
indvd00m@0
  5344
		_default: support.htmlSerialize ? [ 0, "", "" ] : [ 1, "X<div>", "</div>"  ]
indvd00m@0
  5345
	},
indvd00m@0
  5346
	safeFragment = createSafeFragment( document ),
indvd00m@0
  5347
	fragmentDiv = safeFragment.appendChild( document.createElement("div") );
indvd00m@0
  5348
indvd00m@0
  5349
wrapMap.optgroup = wrapMap.option;
indvd00m@0
  5350
wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
indvd00m@0
  5351
wrapMap.th = wrapMap.td;
indvd00m@0
  5352
indvd00m@0
  5353
function getAll( context, tag ) {
indvd00m@0
  5354
	var elems, elem,
indvd00m@0
  5355
		i = 0,
indvd00m@0
  5356
		found = typeof context.getElementsByTagName !== strundefined ? context.getElementsByTagName( tag || "*" ) :
indvd00m@0
  5357
			typeof context.querySelectorAll !== strundefined ? context.querySelectorAll( tag || "*" ) :
indvd00m@0
  5358
			undefined;
indvd00m@0
  5359
indvd00m@0
  5360
	if ( !found ) {
indvd00m@0
  5361
		for ( found = [], elems = context.childNodes || context; (elem = elems[i]) != null; i++ ) {
indvd00m@0
  5362
			if ( !tag || jQuery.nodeName( elem, tag ) ) {
indvd00m@0
  5363
				found.push( elem );
indvd00m@0
  5364
			} else {
indvd00m@0
  5365
				jQuery.merge( found, getAll( elem, tag ) );
indvd00m@0
  5366
			}
indvd00m@0
  5367
		}
indvd00m@0
  5368
	}
indvd00m@0
  5369
indvd00m@0
  5370
	return tag === undefined || tag && jQuery.nodeName( context, tag ) ?
indvd00m@0
  5371
		jQuery.merge( [ context ], found ) :
indvd00m@0
  5372
		found;
indvd00m@0
  5373
}
indvd00m@0
  5374
indvd00m@0
  5375
// Used in buildFragment, fixes the defaultChecked property
indvd00m@0
  5376
function fixDefaultChecked( elem ) {
indvd00m@0
  5377
	if ( rcheckableType.test( elem.type ) ) {
indvd00m@0
  5378
		elem.defaultChecked = elem.checked;
indvd00m@0
  5379
	}
indvd00m@0
  5380
}
indvd00m@0
  5381
indvd00m@0
  5382
// Support: IE<8
indvd00m@0
  5383
// Manipulating tables requires a tbody
indvd00m@0
  5384
function manipulationTarget( elem, content ) {
indvd00m@0
  5385
	return jQuery.nodeName( elem, "table" ) &&
indvd00m@0
  5386
		jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ?
indvd00m@0
  5387
indvd00m@0
  5388
		elem.getElementsByTagName("tbody")[0] ||
indvd00m@0
  5389
			elem.appendChild( elem.ownerDocument.createElement("tbody") ) :
indvd00m@0
  5390
		elem;
indvd00m@0
  5391
}
indvd00m@0
  5392
indvd00m@0
  5393
// Replace/restore the type attribute of script elements for safe DOM manipulation
indvd00m@0
  5394
function disableScript( elem ) {
indvd00m@0
  5395
	elem.type = (jQuery.find.attr( elem, "type" ) !== null) + "/" + elem.type;
indvd00m@0
  5396
	return elem;
indvd00m@0
  5397
}
indvd00m@0
  5398
function restoreScript( elem ) {
indvd00m@0
  5399
	var match = rscriptTypeMasked.exec( elem.type );
indvd00m@0
  5400
	if ( match ) {
indvd00m@0
  5401
		elem.type = match[1];
indvd00m@0
  5402
	} else {
indvd00m@0
  5403
		elem.removeAttribute("type");
indvd00m@0
  5404
	}
indvd00m@0
  5405
	return elem;
indvd00m@0
  5406
}
indvd00m@0
  5407
indvd00m@0
  5408
// Mark scripts as having already been evaluated
indvd00m@0
  5409
function setGlobalEval( elems, refElements ) {
indvd00m@0
  5410
	var elem,
indvd00m@0
  5411
		i = 0;
indvd00m@0
  5412
	for ( ; (elem = elems[i]) != null; i++ ) {
indvd00m@0
  5413
		jQuery._data( elem, "globalEval", !refElements || jQuery._data( refElements[i], "globalEval" ) );
indvd00m@0
  5414
	}
indvd00m@0
  5415
}
indvd00m@0
  5416
indvd00m@0
  5417
function cloneCopyEvent( src, dest ) {
indvd00m@0
  5418
indvd00m@0
  5419
	if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) {
indvd00m@0
  5420
		return;
indvd00m@0
  5421
	}
indvd00m@0
  5422
indvd00m@0
  5423
	var type, i, l,
indvd00m@0
  5424
		oldData = jQuery._data( src ),
indvd00m@0
  5425
		curData = jQuery._data( dest, oldData ),
indvd00m@0
  5426
		events = oldData.events;
indvd00m@0
  5427
indvd00m@0
  5428
	if ( events ) {
indvd00m@0
  5429
		delete curData.handle;
indvd00m@0
  5430
		curData.events = {};
indvd00m@0
  5431
indvd00m@0
  5432
		for ( type in events ) {
indvd00m@0
  5433
			for ( i = 0, l = events[ type ].length; i < l; i++ ) {
indvd00m@0
  5434
				jQuery.event.add( dest, type, events[ type ][ i ] );
indvd00m@0
  5435
			}
indvd00m@0
  5436
		}
indvd00m@0
  5437
	}
indvd00m@0
  5438
indvd00m@0
  5439
	// make the cloned public data object a copy from the original
indvd00m@0
  5440
	if ( curData.data ) {
indvd00m@0
  5441
		curData.data = jQuery.extend( {}, curData.data );
indvd00m@0
  5442
	}
indvd00m@0
  5443
}
indvd00m@0
  5444
indvd00m@0
  5445
function fixCloneNodeIssues( src, dest ) {
indvd00m@0
  5446
	var nodeName, e, data;
indvd00m@0
  5447
indvd00m@0
  5448
	// We do not need to do anything for non-Elements
indvd00m@0
  5449
	if ( dest.nodeType !== 1 ) {
indvd00m@0
  5450
		return;
indvd00m@0
  5451
	}
indvd00m@0
  5452
indvd00m@0
  5453
	nodeName = dest.nodeName.toLowerCase();
indvd00m@0
  5454
indvd00m@0
  5455
	// IE6-8 copies events bound via attachEvent when using cloneNode.
indvd00m@0
  5456
	if ( !support.noCloneEvent && dest[ jQuery.expando ] ) {
indvd00m@0
  5457
		data = jQuery._data( dest );
indvd00m@0
  5458
indvd00m@0
  5459
		for ( e in data.events ) {
indvd00m@0
  5460
			jQuery.removeEvent( dest, e, data.handle );
indvd00m@0
  5461
		}
indvd00m@0
  5462
indvd00m@0
  5463
		// Event data gets referenced instead of copied if the expando gets copied too
indvd00m@0
  5464
		dest.removeAttribute( jQuery.expando );
indvd00m@0
  5465
	}
indvd00m@0
  5466
indvd00m@0
  5467
	// IE blanks contents when cloning scripts, and tries to evaluate newly-set text
indvd00m@0
  5468
	if ( nodeName === "script" && dest.text !== src.text ) {
indvd00m@0
  5469
		disableScript( dest ).text = src.text;
indvd00m@0
  5470
		restoreScript( dest );
indvd00m@0
  5471
indvd00m@0
  5472
	// IE6-10 improperly clones children of object elements using classid.
indvd00m@0
  5473
	// IE10 throws NoModificationAllowedError if parent is null, #12132.
indvd00m@0
  5474
	} else if ( nodeName === "object" ) {
indvd00m@0
  5475
		if ( dest.parentNode ) {
indvd00m@0
  5476
			dest.outerHTML = src.outerHTML;
indvd00m@0
  5477
		}
indvd00m@0
  5478
indvd00m@0
  5479
		// This path appears unavoidable for IE9. When cloning an object
indvd00m@0
  5480
		// element in IE9, the outerHTML strategy above is not sufficient.
indvd00m@0
  5481
		// If the src has innerHTML and the destination does not,
indvd00m@0
  5482
		// copy the src.innerHTML into the dest.innerHTML. #10324
indvd00m@0
  5483
		if ( support.html5Clone && ( src.innerHTML && !jQuery.trim(dest.innerHTML) ) ) {
indvd00m@0
  5484
			dest.innerHTML = src.innerHTML;
indvd00m@0
  5485
		}
indvd00m@0
  5486
indvd00m@0
  5487
	} else if ( nodeName === "input" && rcheckableType.test( src.type ) ) {
indvd00m@0
  5488
		// IE6-8 fails to persist the checked state of a cloned checkbox
indvd00m@0
  5489
		// or radio button. Worse, IE6-7 fail to give the cloned element
indvd00m@0
  5490
		// a checked appearance if the defaultChecked value isn't also set
indvd00m@0
  5491
indvd00m@0
  5492
		dest.defaultChecked = dest.checked = src.checked;
indvd00m@0
  5493
indvd00m@0
  5494
		// IE6-7 get confused and end up setting the value of a cloned
indvd00m@0
  5495
		// checkbox/radio button to an empty string instead of "on"
indvd00m@0
  5496
		if ( dest.value !== src.value ) {
indvd00m@0
  5497
			dest.value = src.value;
indvd00m@0
  5498
		}
indvd00m@0
  5499
indvd00m@0
  5500
	// IE6-8 fails to return the selected option to the default selected
indvd00m@0
  5501
	// state when cloning options
indvd00m@0
  5502
	} else if ( nodeName === "option" ) {
indvd00m@0
  5503
		dest.defaultSelected = dest.selected = src.defaultSelected;
indvd00m@0
  5504
indvd00m@0
  5505
	// IE6-8 fails to set the defaultValue to the correct value when
indvd00m@0
  5506
	// cloning other types of input fields
indvd00m@0
  5507
	} else if ( nodeName === "input" || nodeName === "textarea" ) {
indvd00m@0
  5508
		dest.defaultValue = src.defaultValue;
indvd00m@0
  5509
	}
indvd00m@0
  5510
}
indvd00m@0
  5511
indvd00m@0
  5512
jQuery.extend({
indvd00m@0
  5513
	clone: function( elem, dataAndEvents, deepDataAndEvents ) {
indvd00m@0
  5514
		var destElements, node, clone, i, srcElements,
indvd00m@0
  5515
			inPage = jQuery.contains( elem.ownerDocument, elem );
indvd00m@0
  5516
indvd00m@0
  5517
		if ( support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) {
indvd00m@0
  5518
			clone = elem.cloneNode( true );
indvd00m@0
  5519
indvd00m@0
  5520
		// IE<=8 does not properly clone detached, unknown element nodes
indvd00m@0
  5521
		} else {
indvd00m@0
  5522
			fragmentDiv.innerHTML = elem.outerHTML;
indvd00m@0
  5523
			fragmentDiv.removeChild( clone = fragmentDiv.firstChild );
indvd00m@0
  5524
		}
indvd00m@0
  5525
indvd00m@0
  5526
		if ( (!support.noCloneEvent || !support.noCloneChecked) &&
indvd00m@0
  5527
				(elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) {
indvd00m@0
  5528
indvd00m@0
  5529
			// We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2
indvd00m@0
  5530
			destElements = getAll( clone );
indvd00m@0
  5531
			srcElements = getAll( elem );
indvd00m@0
  5532
indvd00m@0
  5533
			// Fix all IE cloning issues
indvd00m@0
  5534
			for ( i = 0; (node = srcElements[i]) != null; ++i ) {
indvd00m@0
  5535
				// Ensure that the destination node is not null; Fixes #9587
indvd00m@0
  5536
				if ( destElements[i] ) {
indvd00m@0
  5537
					fixCloneNodeIssues( node, destElements[i] );
indvd00m@0
  5538
				}
indvd00m@0
  5539
			}
indvd00m@0
  5540
		}
indvd00m@0
  5541
indvd00m@0
  5542
		// Copy the events from the original to the clone
indvd00m@0
  5543
		if ( dataAndEvents ) {
indvd00m@0
  5544
			if ( deepDataAndEvents ) {
indvd00m@0
  5545
				srcElements = srcElements || getAll( elem );
indvd00m@0
  5546
				destElements = destElements || getAll( clone );
indvd00m@0
  5547
indvd00m@0
  5548
				for ( i = 0; (node = srcElements[i]) != null; i++ ) {
indvd00m@0
  5549
					cloneCopyEvent( node, destElements[i] );
indvd00m@0
  5550
				}
indvd00m@0
  5551
			} else {
indvd00m@0
  5552
				cloneCopyEvent( elem, clone );
indvd00m@0
  5553
			}
indvd00m@0
  5554
		}
indvd00m@0
  5555
indvd00m@0
  5556
		// Preserve script evaluation history
indvd00m@0
  5557
		destElements = getAll( clone, "script" );
indvd00m@0
  5558
		if ( destElements.length > 0 ) {
indvd00m@0
  5559
			setGlobalEval( destElements, !inPage && getAll( elem, "script" ) );
indvd00m@0
  5560
		}
indvd00m@0
  5561
indvd00m@0
  5562
		destElements = srcElements = node = null;
indvd00m@0
  5563
indvd00m@0
  5564
		// Return the cloned set
indvd00m@0
  5565
		return clone;
indvd00m@0
  5566
	},
indvd00m@0
  5567
indvd00m@0
  5568
	buildFragment: function( elems, context, scripts, selection ) {
indvd00m@0
  5569
		var j, elem, contains,
indvd00m@0
  5570
			tmp, tag, tbody, wrap,
indvd00m@0
  5571
			l = elems.length,
indvd00m@0
  5572
indvd00m@0
  5573
			// Ensure a safe fragment
indvd00m@0
  5574
			safe = createSafeFragment( context ),
indvd00m@0
  5575
indvd00m@0
  5576
			nodes = [],
indvd00m@0
  5577
			i = 0;
indvd00m@0
  5578
indvd00m@0
  5579
		for ( ; i < l; i++ ) {
indvd00m@0
  5580
			elem = elems[ i ];
indvd00m@0
  5581
indvd00m@0
  5582
			if ( elem || elem === 0 ) {
indvd00m@0
  5583
indvd00m@0
  5584
				// Add nodes directly
indvd00m@0
  5585
				if ( jQuery.type( elem ) === "object" ) {
indvd00m@0
  5586
					jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );
indvd00m@0
  5587
indvd00m@0
  5588
				// Convert non-html into a text node
indvd00m@0
  5589
				} else if ( !rhtml.test( elem ) ) {
indvd00m@0
  5590
					nodes.push( context.createTextNode( elem ) );
indvd00m@0
  5591
indvd00m@0
  5592
				// Convert html into DOM nodes
indvd00m@0
  5593
				} else {
indvd00m@0
  5594
					tmp = tmp || safe.appendChild( context.createElement("div") );
indvd00m@0
  5595
indvd00m@0
  5596
					// Deserialize a standard representation
indvd00m@0
  5597
					tag = (rtagName.exec( elem ) || [ "", "" ])[ 1 ].toLowerCase();
indvd00m@0
  5598
					wrap = wrapMap[ tag ] || wrapMap._default;
indvd00m@0
  5599
indvd00m@0
  5600
					tmp.innerHTML = wrap[1] + elem.replace( rxhtmlTag, "<$1></$2>" ) + wrap[2];
indvd00m@0
  5601
indvd00m@0
  5602
					// Descend through wrappers to the right content
indvd00m@0
  5603
					j = wrap[0];
indvd00m@0
  5604
					while ( j-- ) {
indvd00m@0
  5605
						tmp = tmp.lastChild;
indvd00m@0
  5606
					}
indvd00m@0
  5607
indvd00m@0
  5608
					// Manually add leading whitespace removed by IE
indvd00m@0
  5609
					if ( !support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {
indvd00m@0
  5610
						nodes.push( context.createTextNode( rleadingWhitespace.exec( elem )[0] ) );
indvd00m@0
  5611
					}
indvd00m@0
  5612
indvd00m@0
  5613
					// Remove IE's autoinserted <tbody> from table fragments
indvd00m@0
  5614
					if ( !support.tbody ) {
indvd00m@0
  5615
indvd00m@0
  5616
						// String was a <table>, *may* have spurious <tbody>
indvd00m@0
  5617
						elem = tag === "table" && !rtbody.test( elem ) ?
indvd00m@0
  5618
							tmp.firstChild :
indvd00m@0
  5619
indvd00m@0
  5620
							// String was a bare <thead> or <tfoot>
indvd00m@0
  5621
							wrap[1] === "<table>" && !rtbody.test( elem ) ?
indvd00m@0
  5622
								tmp :
indvd00m@0
  5623
								0;
indvd00m@0
  5624
indvd00m@0
  5625
						j = elem && elem.childNodes.length;
indvd00m@0
  5626
						while ( j-- ) {
indvd00m@0
  5627
							if ( jQuery.nodeName( (tbody = elem.childNodes[j]), "tbody" ) && !tbody.childNodes.length ) {
indvd00m@0
  5628
								elem.removeChild( tbody );
indvd00m@0
  5629
							}
indvd00m@0
  5630
						}
indvd00m@0
  5631
					}
indvd00m@0
  5632
indvd00m@0
  5633
					jQuery.merge( nodes, tmp.childNodes );
indvd00m@0
  5634
indvd00m@0
  5635
					// Fix #12392 for WebKit and IE > 9
indvd00m@0
  5636
					tmp.textContent = "";
indvd00m@0
  5637
indvd00m@0
  5638
					// Fix #12392 for oldIE
indvd00m@0
  5639
					while ( tmp.firstChild ) {
indvd00m@0
  5640
						tmp.removeChild( tmp.firstChild );
indvd00m@0
  5641
					}
indvd00m@0
  5642
indvd00m@0
  5643
					// Remember the top-level container for proper cleanup
indvd00m@0
  5644
					tmp = safe.lastChild;
indvd00m@0
  5645
				}
indvd00m@0
  5646
			}
indvd00m@0
  5647
		}
indvd00m@0
  5648
indvd00m@0
  5649
		// Fix #11356: Clear elements from fragment
indvd00m@0
  5650
		if ( tmp ) {
indvd00m@0
  5651
			safe.removeChild( tmp );
indvd00m@0
  5652
		}
indvd00m@0
  5653
indvd00m@0
  5654
		// Reset defaultChecked for any radios and checkboxes
indvd00m@0
  5655
		// about to be appended to the DOM in IE 6/7 (#8060)
indvd00m@0
  5656
		if ( !support.appendChecked ) {
indvd00m@0
  5657
			jQuery.grep( getAll( nodes, "input" ), fixDefaultChecked );
indvd00m@0
  5658
		}
indvd00m@0
  5659
indvd00m@0
  5660
		i = 0;
indvd00m@0
  5661
		while ( (elem = nodes[ i++ ]) ) {
indvd00m@0
  5662
indvd00m@0
  5663
			// #4087 - If origin and destination elements are the same, and this is
indvd00m@0
  5664
			// that element, do not do anything
indvd00m@0
  5665
			if ( selection && jQuery.inArray( elem, selection ) !== -1 ) {
indvd00m@0
  5666
				continue;
indvd00m@0
  5667
			}
indvd00m@0
  5668
indvd00m@0
  5669
			contains = jQuery.contains( elem.ownerDocument, elem );
indvd00m@0
  5670
indvd00m@0
  5671
			// Append to fragment
indvd00m@0
  5672
			tmp = getAll( safe.appendChild( elem ), "script" );
indvd00m@0
  5673
indvd00m@0
  5674
			// Preserve script evaluation history
indvd00m@0
  5675
			if ( contains ) {
indvd00m@0
  5676
				setGlobalEval( tmp );
indvd00m@0
  5677
			}
indvd00m@0
  5678
indvd00m@0
  5679
			// Capture executables
indvd00m@0
  5680
			if ( scripts ) {
indvd00m@0
  5681
				j = 0;
indvd00m@0
  5682
				while ( (elem = tmp[ j++ ]) ) {
indvd00m@0
  5683
					if ( rscriptType.test( elem.type || "" ) ) {
indvd00m@0
  5684
						scripts.push( elem );
indvd00m@0
  5685
					}
indvd00m@0
  5686
				}
indvd00m@0
  5687
			}
indvd00m@0
  5688
		}
indvd00m@0
  5689
indvd00m@0
  5690
		tmp = null;
indvd00m@0
  5691
indvd00m@0
  5692
		return safe;
indvd00m@0
  5693
	},
indvd00m@0
  5694
indvd00m@0
  5695
	cleanData: function( elems, /* internal */ acceptData ) {
indvd00m@0
  5696
		var elem, type, id, data,
indvd00m@0
  5697
			i = 0,
indvd00m@0
  5698
			internalKey = jQuery.expando,
indvd00m@0
  5699
			cache = jQuery.cache,
indvd00m@0
  5700
			deleteExpando = support.deleteExpando,
indvd00m@0
  5701
			special = jQuery.event.special;
indvd00m@0
  5702
indvd00m@0
  5703
		for ( ; (elem = elems[i]) != null; i++ ) {
indvd00m@0
  5704
			if ( acceptData || jQuery.acceptData( elem ) ) {
indvd00m@0
  5705
indvd00m@0
  5706
				id = elem[ internalKey ];
indvd00m@0
  5707
				data = id && cache[ id ];
indvd00m@0
  5708
indvd00m@0
  5709
				if ( data ) {
indvd00m@0
  5710
					if ( data.events ) {
indvd00m@0
  5711
						for ( type in data.events ) {
indvd00m@0
  5712
							if ( special[ type ] ) {
indvd00m@0
  5713
								jQuery.event.remove( elem, type );
indvd00m@0
  5714
indvd00m@0
  5715
							// This is a shortcut to avoid jQuery.event.remove's overhead
indvd00m@0
  5716
							} else {
indvd00m@0
  5717
								jQuery.removeEvent( elem, type, data.handle );
indvd00m@0
  5718
							}
indvd00m@0
  5719
						}
indvd00m@0
  5720
					}
indvd00m@0
  5721
indvd00m@0
  5722
					// Remove cache only if it was not already removed by jQuery.event.remove
indvd00m@0
  5723
					if ( cache[ id ] ) {
indvd00m@0
  5724
indvd00m@0
  5725
						delete cache[ id ];
indvd00m@0
  5726
indvd00m@0
  5727
						// IE does not allow us to delete expando properties from nodes,
indvd00m@0
  5728
						// nor does it have a removeAttribute function on Document nodes;
indvd00m@0
  5729
						// we must handle all of these cases
indvd00m@0
  5730
						if ( deleteExpando ) {
indvd00m@0
  5731
							delete elem[ internalKey ];
indvd00m@0
  5732
indvd00m@0
  5733
						} else if ( typeof elem.removeAttribute !== strundefined ) {
indvd00m@0
  5734
							elem.removeAttribute( internalKey );
indvd00m@0
  5735
indvd00m@0
  5736
						} else {
indvd00m@0
  5737
							elem[ internalKey ] = null;
indvd00m@0
  5738
						}
indvd00m@0
  5739
indvd00m@0
  5740
						deletedIds.push( id );
indvd00m@0
  5741
					}
indvd00m@0
  5742
				}
indvd00m@0
  5743
			}
indvd00m@0
  5744
		}
indvd00m@0
  5745
	}
indvd00m@0
  5746
});
indvd00m@0
  5747
indvd00m@0
  5748
jQuery.fn.extend({
indvd00m@0
  5749
	text: function( value ) {
indvd00m@0
  5750
		return access( this, function( value ) {
indvd00m@0
  5751
			return value === undefined ?
indvd00m@0
  5752
				jQuery.text( this ) :
indvd00m@0
  5753
				this.empty().append( ( this[0] && this[0].ownerDocument || document ).createTextNode( value ) );
indvd00m@0
  5754
		}, null, value, arguments.length );
indvd00m@0
  5755
	},
indvd00m@0
  5756
indvd00m@0
  5757
	append: function() {
indvd00m@0
  5758
		return this.domManip( arguments, function( elem ) {
indvd00m@0
  5759
			if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
indvd00m@0
  5760
				var target = manipulationTarget( this, elem );
indvd00m@0
  5761
				target.appendChild( elem );
indvd00m@0
  5762
			}
indvd00m@0
  5763
		});
indvd00m@0
  5764
	},
indvd00m@0
  5765
indvd00m@0
  5766
	prepend: function() {
indvd00m@0
  5767
		return this.domManip( arguments, function( elem ) {
indvd00m@0
  5768
			if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
indvd00m@0
  5769
				var target = manipulationTarget( this, elem );
indvd00m@0
  5770
				target.insertBefore( elem, target.firstChild );
indvd00m@0
  5771
			}
indvd00m@0
  5772
		});
indvd00m@0
  5773
	},
indvd00m@0
  5774
indvd00m@0
  5775
	before: function() {
indvd00m@0
  5776
		return this.domManip( arguments, function( elem ) {
indvd00m@0
  5777
			if ( this.parentNode ) {
indvd00m@0
  5778
				this.parentNode.insertBefore( elem, this );
indvd00m@0
  5779
			}
indvd00m@0
  5780
		});
indvd00m@0
  5781
	},
indvd00m@0
  5782
indvd00m@0
  5783
	after: function() {
indvd00m@0
  5784
		return this.domManip( arguments, function( elem ) {
indvd00m@0
  5785
			if ( this.parentNode ) {
indvd00m@0
  5786
				this.parentNode.insertBefore( elem, this.nextSibling );
indvd00m@0
  5787
			}
indvd00m@0
  5788
		});
indvd00m@0
  5789
	},
indvd00m@0
  5790
indvd00m@0
  5791
	remove: function( selector, keepData /* Internal Use Only */ ) {
indvd00m@0
  5792
		var elem,
indvd00m@0
  5793
			elems = selector ? jQuery.filter( selector, this ) : this,
indvd00m@0
  5794
			i = 0;
indvd00m@0
  5795
indvd00m@0
  5796
		for ( ; (elem = elems[i]) != null; i++ ) {
indvd00m@0
  5797
indvd00m@0
  5798
			if ( !keepData && elem.nodeType === 1 ) {
indvd00m@0
  5799
				jQuery.cleanData( getAll( elem ) );
indvd00m@0
  5800
			}
indvd00m@0
  5801
indvd00m@0
  5802
			if ( elem.parentNode ) {
indvd00m@0
  5803
				if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) {
indvd00m@0
  5804
					setGlobalEval( getAll( elem, "script" ) );
indvd00m@0
  5805
				}
indvd00m@0
  5806
				elem.parentNode.removeChild( elem );
indvd00m@0
  5807
			}
indvd00m@0
  5808
		}
indvd00m@0
  5809
indvd00m@0
  5810
		return this;
indvd00m@0
  5811
	},
indvd00m@0
  5812
indvd00m@0
  5813
	empty: function() {
indvd00m@0
  5814
		var elem,
indvd00m@0
  5815
			i = 0;
indvd00m@0
  5816
indvd00m@0
  5817
		for ( ; (elem = this[i]) != null; i++ ) {
indvd00m@0
  5818
			// Remove element nodes and prevent memory leaks
indvd00m@0
  5819
			if ( elem.nodeType === 1 ) {
indvd00m@0
  5820
				jQuery.cleanData( getAll( elem, false ) );
indvd00m@0
  5821
			}
indvd00m@0
  5822
indvd00m@0
  5823
			// Remove any remaining nodes
indvd00m@0
  5824
			while ( elem.firstChild ) {
indvd00m@0
  5825
				elem.removeChild( elem.firstChild );
indvd00m@0
  5826
			}
indvd00m@0
  5827
indvd00m@0
  5828
			// If this is a select, ensure that it displays empty (#12336)
indvd00m@0
  5829
			// Support: IE<9
indvd00m@0
  5830
			if ( elem.options && jQuery.nodeName( elem, "select" ) ) {
indvd00m@0
  5831
				elem.options.length = 0;
indvd00m@0
  5832
			}
indvd00m@0
  5833
		}
indvd00m@0
  5834
indvd00m@0
  5835
		return this;
indvd00m@0
  5836
	},
indvd00m@0
  5837
indvd00m@0
  5838
	clone: function( dataAndEvents, deepDataAndEvents ) {
indvd00m@0
  5839
		dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
indvd00m@0
  5840
		deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
indvd00m@0
  5841
indvd00m@0
  5842
		return this.map(function() {
indvd00m@0
  5843
			return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
indvd00m@0
  5844
		});
indvd00m@0
  5845
	},
indvd00m@0
  5846
indvd00m@0
  5847
	html: function( value ) {
indvd00m@0
  5848
		return access( this, function( value ) {
indvd00m@0
  5849
			var elem = this[ 0 ] || {},
indvd00m@0
  5850
				i = 0,
indvd00m@0
  5851
				l = this.length;
indvd00m@0
  5852
indvd00m@0
  5853
			if ( value === undefined ) {
indvd00m@0
  5854
				return elem.nodeType === 1 ?
indvd00m@0
  5855
					elem.innerHTML.replace( rinlinejQuery, "" ) :
indvd00m@0
  5856
					undefined;
indvd00m@0
  5857
			}
indvd00m@0
  5858
indvd00m@0
  5859
			// See if we can take a shortcut and just use innerHTML
indvd00m@0
  5860
			if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
indvd00m@0
  5861
				( support.htmlSerialize || !rnoshimcache.test( value )  ) &&
indvd00m@0
  5862
				( support.leadingWhitespace || !rleadingWhitespace.test( value ) ) &&
indvd00m@0
  5863
				!wrapMap[ (rtagName.exec( value ) || [ "", "" ])[ 1 ].toLowerCase() ] ) {
indvd00m@0
  5864
indvd00m@0
  5865
				value = value.replace( rxhtmlTag, "<$1></$2>" );
indvd00m@0
  5866
indvd00m@0
  5867
				try {
indvd00m@0
  5868
					for (; i < l; i++ ) {
indvd00m@0
  5869
						// Remove element nodes and prevent memory leaks
indvd00m@0
  5870
						elem = this[i] || {};
indvd00m@0
  5871
						if ( elem.nodeType === 1 ) {
indvd00m@0
  5872
							jQuery.cleanData( getAll( elem, false ) );
indvd00m@0
  5873
							elem.innerHTML = value;
indvd00m@0
  5874
						}
indvd00m@0
  5875
					}
indvd00m@0
  5876
indvd00m@0
  5877
					elem = 0;
indvd00m@0
  5878
indvd00m@0
  5879
				// If using innerHTML throws an exception, use the fallback method
indvd00m@0
  5880
				} catch(e) {}
indvd00m@0
  5881
			}
indvd00m@0
  5882
indvd00m@0
  5883
			if ( elem ) {
indvd00m@0
  5884
				this.empty().append( value );
indvd00m@0
  5885
			}
indvd00m@0
  5886
		}, null, value, arguments.length );
indvd00m@0
  5887
	},
indvd00m@0
  5888
indvd00m@0
  5889
	replaceWith: function() {
indvd00m@0
  5890
		var arg = arguments[ 0 ];
indvd00m@0
  5891
indvd00m@0
  5892
		// Make the changes, replacing each context element with the new content
indvd00m@0
  5893
		this.domManip( arguments, function( elem ) {
indvd00m@0
  5894
			arg = this.parentNode;
indvd00m@0
  5895
indvd00m@0
  5896
			jQuery.cleanData( getAll( this ) );
indvd00m@0
  5897
indvd00m@0
  5898
			if ( arg ) {
indvd00m@0
  5899
				arg.replaceChild( elem, this );
indvd00m@0
  5900
			}
indvd00m@0
  5901
		});
indvd00m@0
  5902
indvd00m@0
  5903
		// Force removal if there was no new content (e.g., from empty arguments)
indvd00m@0
  5904
		return arg && (arg.length || arg.nodeType) ? this : this.remove();
indvd00m@0
  5905
	},
indvd00m@0
  5906
indvd00m@0
  5907
	detach: function( selector ) {
indvd00m@0
  5908
		return this.remove( selector, true );
indvd00m@0
  5909
	},
indvd00m@0
  5910
indvd00m@0
  5911
	domManip: function( args, callback ) {
indvd00m@0
  5912
indvd00m@0
  5913
		// Flatten any nested arrays
indvd00m@0
  5914
		args = concat.apply( [], args );
indvd00m@0
  5915
indvd00m@0
  5916
		var first, node, hasScripts,
indvd00m@0
  5917
			scripts, doc, fragment,
indvd00m@0
  5918
			i = 0,
indvd00m@0
  5919
			l = this.length,
indvd00m@0
  5920
			set = this,
indvd00m@0
  5921
			iNoClone = l - 1,
indvd00m@0
  5922
			value = args[0],
indvd00m@0
  5923
			isFunction = jQuery.isFunction( value );
indvd00m@0
  5924
indvd00m@0
  5925
		// We can't cloneNode fragments that contain checked, in WebKit
indvd00m@0
  5926
		if ( isFunction ||
indvd00m@0
  5927
				( l > 1 && typeof value === "string" &&
indvd00m@0
  5928
					!support.checkClone && rchecked.test( value ) ) ) {
indvd00m@0
  5929
			return this.each(function( index ) {
indvd00m@0
  5930
				var self = set.eq( index );
indvd00m@0
  5931
				if ( isFunction ) {
indvd00m@0
  5932
					args[0] = value.call( this, index, self.html() );
indvd00m@0
  5933
				}
indvd00m@0
  5934
				self.domManip( args, callback );
indvd00m@0
  5935
			});
indvd00m@0
  5936
		}
indvd00m@0
  5937
indvd00m@0
  5938
		if ( l ) {
indvd00m@0
  5939
			fragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, this );
indvd00m@0
  5940
			first = fragment.firstChild;
indvd00m@0
  5941
indvd00m@0
  5942
			if ( fragment.childNodes.length === 1 ) {
indvd00m@0
  5943
				fragment = first;
indvd00m@0
  5944
			}
indvd00m@0
  5945
indvd00m@0
  5946
			if ( first ) {
indvd00m@0
  5947
				scripts = jQuery.map( getAll( fragment, "script" ), disableScript );
indvd00m@0
  5948
				hasScripts = scripts.length;
indvd00m@0
  5949
indvd00m@0
  5950
				// Use the original fragment for the last item instead of the first because it can end up
indvd00m@0
  5951
				// being emptied incorrectly in certain situations (#8070).
indvd00m@0
  5952
				for ( ; i < l; i++ ) {
indvd00m@0
  5953
					node = fragment;
indvd00m@0
  5954
indvd00m@0
  5955
					if ( i !== iNoClone ) {
indvd00m@0
  5956
						node = jQuery.clone( node, true, true );
indvd00m@0
  5957
indvd00m@0
  5958
						// Keep references to cloned scripts for later restoration
indvd00m@0
  5959
						if ( hasScripts ) {
indvd00m@0
  5960
							jQuery.merge( scripts, getAll( node, "script" ) );
indvd00m@0
  5961
						}
indvd00m@0
  5962
					}
indvd00m@0
  5963
indvd00m@0
  5964
					callback.call( this[i], node, i );
indvd00m@0
  5965
				}
indvd00m@0
  5966
indvd00m@0
  5967
				if ( hasScripts ) {
indvd00m@0
  5968
					doc = scripts[ scripts.length - 1 ].ownerDocument;
indvd00m@0
  5969
indvd00m@0
  5970
					// Reenable scripts
indvd00m@0
  5971
					jQuery.map( scripts, restoreScript );
indvd00m@0
  5972
indvd00m@0
  5973
					// Evaluate executable scripts on first document insertion
indvd00m@0
  5974
					for ( i = 0; i < hasScripts; i++ ) {
indvd00m@0
  5975
						node = scripts[ i ];
indvd00m@0
  5976
						if ( rscriptType.test( node.type || "" ) &&
indvd00m@0
  5977
							!jQuery._data( node, "globalEval" ) && jQuery.contains( doc, node ) ) {
indvd00m@0
  5978
indvd00m@0
  5979
							if ( node.src ) {
indvd00m@0
  5980
								// Optional AJAX dependency, but won't run scripts if not present
indvd00m@0
  5981
								if ( jQuery._evalUrl ) {
indvd00m@0
  5982
									jQuery._evalUrl( node.src );
indvd00m@0
  5983
								}
indvd00m@0
  5984
							} else {
indvd00m@0
  5985
								jQuery.globalEval( ( node.text || node.textContent || node.innerHTML || "" ).replace( rcleanScript, "" ) );
indvd00m@0
  5986
							}
indvd00m@0
  5987
						}
indvd00m@0
  5988
					}
indvd00m@0
  5989
				}
indvd00m@0
  5990
indvd00m@0
  5991
				// Fix #11809: Avoid leaking memory
indvd00m@0
  5992
				fragment = first = null;
indvd00m@0
  5993
			}
indvd00m@0
  5994
		}
indvd00m@0
  5995
indvd00m@0
  5996
		return this;
indvd00m@0
  5997
	}
indvd00m@0
  5998
});
indvd00m@0
  5999
indvd00m@0
  6000
jQuery.each({
indvd00m@0
  6001
	appendTo: "append",
indvd00m@0
  6002
	prependTo: "prepend",
indvd00m@0
  6003
	insertBefore: "before",
indvd00m@0
  6004
	insertAfter: "after",
indvd00m@0
  6005
	replaceAll: "replaceWith"
indvd00m@0
  6006
}, function( name, original ) {
indvd00m@0
  6007
	jQuery.fn[ name ] = function( selector ) {
indvd00m@0
  6008
		var elems,
indvd00m@0
  6009
			i = 0,
indvd00m@0
  6010
			ret = [],
indvd00m@0
  6011
			insert = jQuery( selector ),
indvd00m@0
  6012
			last = insert.length - 1;
indvd00m@0
  6013
indvd00m@0
  6014
		for ( ; i <= last; i++ ) {
indvd00m@0
  6015
			elems = i === last ? this : this.clone(true);
indvd00m@0
  6016
			jQuery( insert[i] )[ original ]( elems );
indvd00m@0
  6017
indvd00m@0
  6018
			// Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get()
indvd00m@0
  6019
			push.apply( ret, elems.get() );
indvd00m@0
  6020
		}
indvd00m@0
  6021
indvd00m@0
  6022
		return this.pushStack( ret );
indvd00m@0
  6023
	};
indvd00m@0
  6024
});
indvd00m@0
  6025
indvd00m@0
  6026
indvd00m@0
  6027
var iframe,
indvd00m@0
  6028
	elemdisplay = {};
indvd00m@0
  6029
indvd00m@0
  6030
/**
indvd00m@0
  6031
 * Retrieve the actual display of a element
indvd00m@0
  6032
 * @param {String} name nodeName of the element
indvd00m@0
  6033
 * @param {Object} doc Document object
indvd00m@0
  6034
 */
indvd00m@0
  6035
// Called only from within defaultDisplay
indvd00m@0
  6036
function actualDisplay( name, doc ) {
indvd00m@0
  6037
	var style,
indvd00m@0
  6038
		elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ),
indvd00m@0
  6039
indvd00m@0
  6040
		// getDefaultComputedStyle might be reliably used only on attached element
indvd00m@0
  6041
		display = window.getDefaultComputedStyle && ( style = window.getDefaultComputedStyle( elem[ 0 ] ) ) ?
indvd00m@0
  6042
indvd00m@0
  6043
			// Use of this method is a temporary fix (more like optmization) until something better comes along,
indvd00m@0
  6044
			// since it was removed from specification and supported only in FF
indvd00m@0
  6045
			style.display : jQuery.css( elem[ 0 ], "display" );
indvd00m@0
  6046
indvd00m@0
  6047
	// We don't have any data stored on the element,
indvd00m@0
  6048
	// so use "detach" method as fast way to get rid of the element
indvd00m@0
  6049
	elem.detach();
indvd00m@0
  6050
indvd00m@0
  6051
	return display;
indvd00m@0
  6052
}
indvd00m@0
  6053
indvd00m@0
  6054
/**
indvd00m@0
  6055
 * Try to determine the default display value of an element
indvd00m@0
  6056
 * @param {String} nodeName
indvd00m@0
  6057
 */
indvd00m@0
  6058
function defaultDisplay( nodeName ) {
indvd00m@0
  6059
	var doc = document,
indvd00m@0
  6060
		display = elemdisplay[ nodeName ];
indvd00m@0
  6061
indvd00m@0
  6062
	if ( !display ) {
indvd00m@0
  6063
		display = actualDisplay( nodeName, doc );
indvd00m@0
  6064
indvd00m@0
  6065
		// If the simple way fails, read from inside an iframe
indvd00m@0
  6066
		if ( display === "none" || !display ) {
indvd00m@0
  6067
indvd00m@0
  6068
			// Use the already-created iframe if possible
indvd00m@0
  6069
			iframe = (iframe || jQuery( "<iframe frameborder='0' width='0' height='0'/>" )).appendTo( doc.documentElement );
indvd00m@0
  6070
indvd00m@0
  6071
			// Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse
indvd00m@0
  6072
			doc = ( iframe[ 0 ].contentWindow || iframe[ 0 ].contentDocument ).document;
indvd00m@0
  6073
indvd00m@0
  6074
			// Support: IE
indvd00m@0
  6075
			doc.write();
indvd00m@0
  6076
			doc.close();
indvd00m@0
  6077
indvd00m@0
  6078
			display = actualDisplay( nodeName, doc );
indvd00m@0
  6079
			iframe.detach();
indvd00m@0
  6080
		}
indvd00m@0
  6081
indvd00m@0
  6082
		// Store the correct default display
indvd00m@0
  6083
		elemdisplay[ nodeName ] = display;
indvd00m@0
  6084
	}
indvd00m@0
  6085
indvd00m@0
  6086
	return display;
indvd00m@0
  6087
}
indvd00m@0
  6088
indvd00m@0
  6089
indvd00m@0
  6090
(function() {
indvd00m@0
  6091
	var shrinkWrapBlocksVal;
indvd00m@0
  6092
indvd00m@0
  6093
	support.shrinkWrapBlocks = function() {
indvd00m@0
  6094
		if ( shrinkWrapBlocksVal != null ) {
indvd00m@0
  6095
			return shrinkWrapBlocksVal;
indvd00m@0
  6096
		}
indvd00m@0
  6097
indvd00m@0
  6098
		// Will be changed later if needed.
indvd00m@0
  6099
		shrinkWrapBlocksVal = false;
indvd00m@0
  6100
indvd00m@0
  6101
		// Minified: var b,c,d
indvd00m@0
  6102
		var div, body, container;
indvd00m@0
  6103
indvd00m@0
  6104
		body = document.getElementsByTagName( "body" )[ 0 ];
indvd00m@0
  6105
		if ( !body || !body.style ) {
indvd00m@0
  6106
			// Test fired too early or in an unsupported environment, exit.
indvd00m@0
  6107
			return;
indvd00m@0
  6108
		}
indvd00m@0
  6109
indvd00m@0
  6110
		// Setup
indvd00m@0
  6111
		div = document.createElement( "div" );
indvd00m@0
  6112
		container = document.createElement( "div" );
indvd00m@0
  6113
		container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px";
indvd00m@0
  6114
		body.appendChild( container ).appendChild( div );
indvd00m@0
  6115
indvd00m@0
  6116
		// Support: IE6
indvd00m@0
  6117
		// Check if elements with layout shrink-wrap their children
indvd00m@0
  6118
		if ( typeof div.style.zoom !== strundefined ) {
indvd00m@0
  6119
			// Reset CSS: box-sizing; display; margin; border
indvd00m@0
  6120
			div.style.cssText =
indvd00m@0
  6121
				// Support: Firefox<29, Android 2.3
indvd00m@0
  6122
				// Vendor-prefix box-sizing
indvd00m@0
  6123
				"-webkit-box-sizing:content-box;-moz-box-sizing:content-box;" +
indvd00m@0
  6124
				"box-sizing:content-box;display:block;margin:0;border:0;" +
indvd00m@0
  6125
				"padding:1px;width:1px;zoom:1";
indvd00m@0
  6126
			div.appendChild( document.createElement( "div" ) ).style.width = "5px";
indvd00m@0
  6127
			shrinkWrapBlocksVal = div.offsetWidth !== 3;
indvd00m@0
  6128
		}
indvd00m@0
  6129
indvd00m@0
  6130
		body.removeChild( container );
indvd00m@0
  6131
indvd00m@0
  6132
		return shrinkWrapBlocksVal;
indvd00m@0
  6133
	};
indvd00m@0
  6134
indvd00m@0
  6135
})();
indvd00m@0
  6136
var rmargin = (/^margin/);
indvd00m@0
  6137
indvd00m@0
  6138
var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );
indvd00m@0
  6139
indvd00m@0
  6140
indvd00m@0
  6141
indvd00m@0
  6142
var getStyles, curCSS,
indvd00m@0
  6143
	rposition = /^(top|right|bottom|left)$/;
indvd00m@0
  6144
indvd00m@0
  6145
if ( window.getComputedStyle ) {
indvd00m@0
  6146
	getStyles = function( elem ) {
indvd00m@0
  6147
		// Support: IE<=11+, Firefox<=30+ (#15098, #14150)
indvd00m@0
  6148
		// IE throws on elements created in popups
indvd00m@0
  6149
		// FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
indvd00m@0
  6150
		if ( elem.ownerDocument.defaultView.opener ) {
indvd00m@0
  6151
			return elem.ownerDocument.defaultView.getComputedStyle( elem, null );
indvd00m@0
  6152
		}
indvd00m@0
  6153
indvd00m@0
  6154
		return window.getComputedStyle( elem, null );
indvd00m@0
  6155
	};
indvd00m@0
  6156
indvd00m@0
  6157
	curCSS = function( elem, name, computed ) {
indvd00m@0
  6158
		var width, minWidth, maxWidth, ret,
indvd00m@0
  6159
			style = elem.style;
indvd00m@0
  6160
indvd00m@0
  6161
		computed = computed || getStyles( elem );
indvd00m@0
  6162
indvd00m@0
  6163
		// getPropertyValue is only needed for .css('filter') in IE9, see #12537
indvd00m@0
  6164
		ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined;
indvd00m@0
  6165
indvd00m@0
  6166
		if ( computed ) {
indvd00m@0
  6167
indvd00m@0
  6168
			if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) {
indvd00m@0
  6169
				ret = jQuery.style( elem, name );
indvd00m@0
  6170
			}
indvd00m@0
  6171
indvd00m@0
  6172
			// A tribute to the "awesome hack by Dean Edwards"
indvd00m@0
  6173
			// Chrome < 17 and Safari 5.0 uses "computed value" instead of "used value" for margin-right
indvd00m@0
  6174
			// Safari 5.1.7 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels
indvd00m@0
  6175
			// this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values
indvd00m@0
  6176
			if ( rnumnonpx.test( ret ) && rmargin.test( name ) ) {
indvd00m@0
  6177
indvd00m@0
  6178
				// Remember the original values
indvd00m@0
  6179
				width = style.width;
indvd00m@0
  6180
				minWidth = style.minWidth;
indvd00m@0
  6181
				maxWidth = style.maxWidth;
indvd00m@0
  6182
indvd00m@0
  6183
				// Put in the new values to get a computed value out
indvd00m@0
  6184
				style.minWidth = style.maxWidth = style.width = ret;
indvd00m@0
  6185
				ret = computed.width;
indvd00m@0
  6186
indvd00m@0
  6187
				// Revert the changed values
indvd00m@0
  6188
				style.width = width;
indvd00m@0
  6189
				style.minWidth = minWidth;
indvd00m@0
  6190
				style.maxWidth = maxWidth;
indvd00m@0
  6191
			}
indvd00m@0
  6192
		}
indvd00m@0
  6193
indvd00m@0
  6194
		// Support: IE
indvd00m@0
  6195
		// IE returns zIndex value as an integer.
indvd00m@0
  6196
		return ret === undefined ?
indvd00m@0
  6197
			ret :
indvd00m@0
  6198
			ret + "";
indvd00m@0
  6199
	};
indvd00m@0
  6200
} else if ( document.documentElement.currentStyle ) {
indvd00m@0
  6201
	getStyles = function( elem ) {
indvd00m@0
  6202
		return elem.currentStyle;
indvd00m@0
  6203
	};
indvd00m@0
  6204
indvd00m@0
  6205
	curCSS = function( elem, name, computed ) {
indvd00m@0
  6206
		var left, rs, rsLeft, ret,
indvd00m@0
  6207
			style = elem.style;
indvd00m@0
  6208
indvd00m@0
  6209
		computed = computed || getStyles( elem );
indvd00m@0
  6210
		ret = computed ? computed[ name ] : undefined;
indvd00m@0
  6211
indvd00m@0
  6212
		// Avoid setting ret to empty string here
indvd00m@0
  6213
		// so we don't default to auto
indvd00m@0
  6214
		if ( ret == null && style && style[ name ] ) {
indvd00m@0
  6215
			ret = style[ name ];
indvd00m@0
  6216
		}
indvd00m@0
  6217
indvd00m@0
  6218
		// From the awesome hack by Dean Edwards
indvd00m@0
  6219
		// http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
indvd00m@0
  6220
indvd00m@0
  6221
		// If we're not dealing with a regular pixel number
indvd00m@0
  6222
		// but a number that has a weird ending, we need to convert it to pixels
indvd00m@0
  6223
		// but not position css attributes, as those are proportional to the parent element instead
indvd00m@0
  6224
		// and we can't measure the parent instead because it might trigger a "stacking dolls" problem
indvd00m@0
  6225
		if ( rnumnonpx.test( ret ) && !rposition.test( name ) ) {
indvd00m@0
  6226
indvd00m@0
  6227
			// Remember the original values
indvd00m@0
  6228
			left = style.left;
indvd00m@0
  6229
			rs = elem.runtimeStyle;
indvd00m@0
  6230
			rsLeft = rs && rs.left;
indvd00m@0
  6231
indvd00m@0
  6232
			// Put in the new values to get a computed value out
indvd00m@0
  6233
			if ( rsLeft ) {
indvd00m@0
  6234
				rs.left = elem.currentStyle.left;
indvd00m@0
  6235
			}
indvd00m@0
  6236
			style.left = name === "fontSize" ? "1em" : ret;
indvd00m@0
  6237
			ret = style.pixelLeft + "px";
indvd00m@0
  6238
indvd00m@0
  6239
			// Revert the changed values
indvd00m@0
  6240
			style.left = left;
indvd00m@0
  6241
			if ( rsLeft ) {
indvd00m@0
  6242
				rs.left = rsLeft;
indvd00m@0
  6243
			}
indvd00m@0
  6244
		}
indvd00m@0
  6245
indvd00m@0
  6246
		// Support: IE
indvd00m@0
  6247
		// IE returns zIndex value as an integer.
indvd00m@0
  6248
		return ret === undefined ?
indvd00m@0
  6249
			ret :
indvd00m@0
  6250
			ret + "" || "auto";
indvd00m@0
  6251
	};
indvd00m@0
  6252
}
indvd00m@0
  6253
indvd00m@0
  6254
indvd00m@0
  6255
indvd00m@0
  6256
indvd00m@0
  6257
function addGetHookIf( conditionFn, hookFn ) {
indvd00m@0
  6258
	// Define the hook, we'll check on the first run if it's really needed.
indvd00m@0
  6259
	return {
indvd00m@0
  6260
		get: function() {
indvd00m@0
  6261
			var condition = conditionFn();
indvd00m@0
  6262
indvd00m@0
  6263
			if ( condition == null ) {
indvd00m@0
  6264
				// The test was not ready at this point; screw the hook this time
indvd00m@0
  6265
				// but check again when needed next time.
indvd00m@0
  6266
				return;
indvd00m@0
  6267
			}
indvd00m@0
  6268
indvd00m@0
  6269
			if ( condition ) {
indvd00m@0
  6270
				// Hook not needed (or it's not possible to use it due to missing dependency),
indvd00m@0
  6271
				// remove it.
indvd00m@0
  6272
				// Since there are no other hooks for marginRight, remove the whole object.
indvd00m@0
  6273
				delete this.get;
indvd00m@0
  6274
				return;
indvd00m@0
  6275
			}
indvd00m@0
  6276
indvd00m@0
  6277
			// Hook needed; redefine it so that the support test is not executed again.
indvd00m@0
  6278
indvd00m@0
  6279
			return (this.get = hookFn).apply( this, arguments );
indvd00m@0
  6280
		}
indvd00m@0
  6281
	};
indvd00m@0
  6282
}
indvd00m@0
  6283
indvd00m@0
  6284
indvd00m@0
  6285
(function() {
indvd00m@0
  6286
	// Minified: var b,c,d,e,f,g, h,i
indvd00m@0
  6287
	var div, style, a, pixelPositionVal, boxSizingReliableVal,
indvd00m@0
  6288
		reliableHiddenOffsetsVal, reliableMarginRightVal;
indvd00m@0
  6289
indvd00m@0
  6290
	// Setup
indvd00m@0
  6291
	div = document.createElement( "div" );
indvd00m@0
  6292
	div.innerHTML = "  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";
indvd00m@0
  6293
	a = div.getElementsByTagName( "a" )[ 0 ];
indvd00m@0
  6294
	style = a && a.style;
indvd00m@0
  6295
indvd00m@0
  6296
	// Finish early in limited (non-browser) environments
indvd00m@0
  6297
	if ( !style ) {
indvd00m@0
  6298
		return;
indvd00m@0
  6299
	}
indvd00m@0
  6300
indvd00m@0
  6301
	style.cssText = "float:left;opacity:.5";
indvd00m@0
  6302
indvd00m@0
  6303
	// Support: IE<9
indvd00m@0
  6304
	// Make sure that element opacity exists (as opposed to filter)
indvd00m@0
  6305
	support.opacity = style.opacity === "0.5";
indvd00m@0
  6306
indvd00m@0
  6307
	// Verify style float existence
indvd00m@0
  6308
	// (IE uses styleFloat instead of cssFloat)
indvd00m@0
  6309
	support.cssFloat = !!style.cssFloat;
indvd00m@0
  6310
indvd00m@0
  6311
	div.style.backgroundClip = "content-box";
indvd00m@0
  6312
	div.cloneNode( true ).style.backgroundClip = "";
indvd00m@0
  6313
	support.clearCloneStyle = div.style.backgroundClip === "content-box";
indvd00m@0
  6314
indvd00m@0
  6315
	// Support: Firefox<29, Android 2.3
indvd00m@0
  6316
	// Vendor-prefix box-sizing
indvd00m@0
  6317
	support.boxSizing = style.boxSizing === "" || style.MozBoxSizing === "" ||
indvd00m@0
  6318
		style.WebkitBoxSizing === "";
indvd00m@0
  6319
indvd00m@0
  6320
	jQuery.extend(support, {
indvd00m@0
  6321
		reliableHiddenOffsets: function() {
indvd00m@0
  6322
			if ( reliableHiddenOffsetsVal == null ) {
indvd00m@0
  6323
				computeStyleTests();
indvd00m@0
  6324
			}
indvd00m@0
  6325
			return reliableHiddenOffsetsVal;
indvd00m@0
  6326
		},
indvd00m@0
  6327
indvd00m@0
  6328
		boxSizingReliable: function() {
indvd00m@0
  6329
			if ( boxSizingReliableVal == null ) {
indvd00m@0
  6330
				computeStyleTests();
indvd00m@0
  6331
			}
indvd00m@0
  6332
			return boxSizingReliableVal;
indvd00m@0
  6333
		},
indvd00m@0
  6334
indvd00m@0
  6335
		pixelPosition: function() {
indvd00m@0
  6336
			if ( pixelPositionVal == null ) {
indvd00m@0
  6337
				computeStyleTests();
indvd00m@0
  6338
			}
indvd00m@0
  6339
			return pixelPositionVal;
indvd00m@0
  6340
		},
indvd00m@0
  6341
indvd00m@0
  6342
		// Support: Android 2.3
indvd00m@0
  6343
		reliableMarginRight: function() {
indvd00m@0
  6344
			if ( reliableMarginRightVal == null ) {
indvd00m@0
  6345
				computeStyleTests();
indvd00m@0
  6346
			}
indvd00m@0
  6347
			return reliableMarginRightVal;
indvd00m@0
  6348
		}
indvd00m@0
  6349
	});
indvd00m@0
  6350
indvd00m@0
  6351
	function computeStyleTests() {
indvd00m@0
  6352
		// Minified: var b,c,d,j
indvd00m@0
  6353
		var div, body, container, contents;
indvd00m@0
  6354
indvd00m@0
  6355
		body = document.getElementsByTagName( "body" )[ 0 ];
indvd00m@0
  6356
		if ( !body || !body.style ) {
indvd00m@0
  6357
			// Test fired too early or in an unsupported environment, exit.
indvd00m@0
  6358
			return;
indvd00m@0
  6359
		}
indvd00m@0
  6360
indvd00m@0
  6361
		// Setup
indvd00m@0
  6362
		div = document.createElement( "div" );
indvd00m@0
  6363
		container = document.createElement( "div" );
indvd00m@0
  6364
		container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px";
indvd00m@0
  6365
		body.appendChild( container ).appendChild( div );
indvd00m@0
  6366
indvd00m@0
  6367
		div.style.cssText =
indvd00m@0
  6368
			// Support: Firefox<29, Android 2.3
indvd00m@0
  6369
			// Vendor-prefix box-sizing
indvd00m@0
  6370
			"-webkit-box-sizing:border-box;-moz-box-sizing:border-box;" +
indvd00m@0
  6371
			"box-sizing:border-box;display:block;margin-top:1%;top:1%;" +
indvd00m@0
  6372
			"border:1px;padding:1px;width:4px;position:absolute";
indvd00m@0
  6373
indvd00m@0
  6374
		// Support: IE<9
indvd00m@0
  6375
		// Assume reasonable values in the absence of getComputedStyle
indvd00m@0
  6376
		pixelPositionVal = boxSizingReliableVal = false;
indvd00m@0
  6377
		reliableMarginRightVal = true;
indvd00m@0
  6378
indvd00m@0
  6379
		// Check for getComputedStyle so that this code is not run in IE<9.
indvd00m@0
  6380
		if ( window.getComputedStyle ) {
indvd00m@0
  6381
			pixelPositionVal = ( window.getComputedStyle( div, null ) || {} ).top !== "1%";
indvd00m@0
  6382
			boxSizingReliableVal =
indvd00m@0
  6383
				( window.getComputedStyle( div, null ) || { width: "4px" } ).width === "4px";
indvd00m@0
  6384
indvd00m@0
  6385
			// Support: Android 2.3
indvd00m@0
  6386
			// Div with explicit width and no margin-right incorrectly
indvd00m@0
  6387
			// gets computed margin-right based on width of container (#3333)
indvd00m@0
  6388
			// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
indvd00m@0
  6389
			contents = div.appendChild( document.createElement( "div" ) );
indvd00m@0
  6390
indvd00m@0
  6391
			// Reset CSS: box-sizing; display; margin; border; padding
indvd00m@0
  6392
			contents.style.cssText = div.style.cssText =
indvd00m@0
  6393
				// Support: Firefox<29, Android 2.3
indvd00m@0
  6394
				// Vendor-prefix box-sizing
indvd00m@0
  6395
				"-webkit-box-sizing:content-box;-moz-box-sizing:content-box;" +
indvd00m@0
  6396
				"box-sizing:content-box;display:block;margin:0;border:0;padding:0";
indvd00m@0
  6397
			contents.style.marginRight = contents.style.width = "0";
indvd00m@0
  6398
			div.style.width = "1px";
indvd00m@0
  6399
indvd00m@0
  6400
			reliableMarginRightVal =
indvd00m@0
  6401
				!parseFloat( ( window.getComputedStyle( contents, null ) || {} ).marginRight );
indvd00m@0
  6402
indvd00m@0
  6403
			div.removeChild( contents );
indvd00m@0
  6404
		}
indvd00m@0
  6405
indvd00m@0
  6406
		// Support: IE8
indvd00m@0
  6407
		// Check if table cells still have offsetWidth/Height when they are set
indvd00m@0
  6408
		// to display:none and there are still other visible table cells in a
indvd00m@0
  6409
		// table row; if so, offsetWidth/Height are not reliable for use when
indvd00m@0
  6410
		// determining if an element has been hidden directly using
indvd00m@0
  6411
		// display:none (it is still safe to use offsets if a parent element is
indvd00m@0
  6412
		// hidden; don safety goggles and see bug #4512 for more information).
indvd00m@0
  6413
		div.innerHTML = "<table><tr><td></td><td>t</td></tr></table>";
indvd00m@0
  6414
		contents = div.getElementsByTagName( "td" );
indvd00m@0
  6415
		contents[ 0 ].style.cssText = "margin:0;border:0;padding:0;display:none";
indvd00m@0
  6416
		reliableHiddenOffsetsVal = contents[ 0 ].offsetHeight === 0;
indvd00m@0
  6417
		if ( reliableHiddenOffsetsVal ) {
indvd00m@0
  6418
			contents[ 0 ].style.display = "";
indvd00m@0
  6419
			contents[ 1 ].style.display = "none";
indvd00m@0
  6420
			reliableHiddenOffsetsVal = contents[ 0 ].offsetHeight === 0;
indvd00m@0
  6421
		}
indvd00m@0
  6422
indvd00m@0
  6423
		body.removeChild( container );
indvd00m@0
  6424
	}
indvd00m@0
  6425
indvd00m@0
  6426
})();
indvd00m@0
  6427
indvd00m@0
  6428
indvd00m@0
  6429
// A method for quickly swapping in/out CSS properties to get correct calculations.
indvd00m@0
  6430
jQuery.swap = function( elem, options, callback, args ) {
indvd00m@0
  6431
	var ret, name,
indvd00m@0
  6432
		old = {};
indvd00m@0
  6433
indvd00m@0
  6434
	// Remember the old values, and insert the new ones
indvd00m@0
  6435
	for ( name in options ) {
indvd00m@0
  6436
		old[ name ] = elem.style[ name ];
indvd00m@0
  6437
		elem.style[ name ] = options[ name ];
indvd00m@0
  6438
	}
indvd00m@0
  6439
indvd00m@0
  6440
	ret = callback.apply( elem, args || [] );
indvd00m@0
  6441
indvd00m@0
  6442
	// Revert the old values
indvd00m@0
  6443
	for ( name in options ) {
indvd00m@0
  6444
		elem.style[ name ] = old[ name ];
indvd00m@0
  6445
	}
indvd00m@0
  6446
indvd00m@0
  6447
	return ret;
indvd00m@0
  6448
};
indvd00m@0
  6449
indvd00m@0
  6450
indvd00m@0
  6451
var
indvd00m@0
  6452
		ralpha = /alpha\([^)]*\)/i,
indvd00m@0
  6453
	ropacity = /opacity\s*=\s*([^)]*)/,
indvd00m@0
  6454
indvd00m@0
  6455
	// swappable if display is none or starts with table except "table", "table-cell", or "table-caption"
indvd00m@0
  6456
	// see here for display values: https://developer.mozilla.org/en-US/docs/CSS/display
indvd00m@0
  6457
	rdisplayswap = /^(none|table(?!-c[ea]).+)/,
indvd00m@0
  6458
	rnumsplit = new RegExp( "^(" + pnum + ")(.*)$", "i" ),
indvd00m@0
  6459
	rrelNum = new RegExp( "^([+-])=(" + pnum + ")", "i" ),
indvd00m@0
  6460
indvd00m@0
  6461
	cssShow = { position: "absolute", visibility: "hidden", display: "block" },
indvd00m@0
  6462
	cssNormalTransform = {
indvd00m@0
  6463
		letterSpacing: "0",
indvd00m@0
  6464
		fontWeight: "400"
indvd00m@0
  6465
	},
indvd00m@0
  6466
indvd00m@0
  6467
	cssPrefixes = [ "Webkit", "O", "Moz", "ms" ];
indvd00m@0
  6468
indvd00m@0
  6469
indvd00m@0
  6470
// return a css property mapped to a potentially vendor prefixed property
indvd00m@0
  6471
function vendorPropName( style, name ) {
indvd00m@0
  6472
indvd00m@0
  6473
	// shortcut for names that are not vendor prefixed
indvd00m@0
  6474
	if ( name in style ) {
indvd00m@0
  6475
		return name;
indvd00m@0
  6476
	}
indvd00m@0
  6477
indvd00m@0
  6478
	// check for vendor prefixed names
indvd00m@0
  6479
	var capName = name.charAt(0).toUpperCase() + name.slice(1),
indvd00m@0
  6480
		origName = name,
indvd00m@0
  6481
		i = cssPrefixes.length;
indvd00m@0
  6482
indvd00m@0
  6483
	while ( i-- ) {
indvd00m@0
  6484
		name = cssPrefixes[ i ] + capName;
indvd00m@0
  6485
		if ( name in style ) {
indvd00m@0
  6486
			return name;
indvd00m@0
  6487
		}
indvd00m@0
  6488
	}
indvd00m@0
  6489
indvd00m@0
  6490
	return origName;
indvd00m@0
  6491
}
indvd00m@0
  6492
indvd00m@0
  6493
function showHide( elements, show ) {
indvd00m@0
  6494
	var display, elem, hidden,
indvd00m@0
  6495
		values = [],
indvd00m@0
  6496
		index = 0,
indvd00m@0
  6497
		length = elements.length;
indvd00m@0
  6498
indvd00m@0
  6499
	for ( ; index < length; index++ ) {
indvd00m@0
  6500
		elem = elements[ index ];
indvd00m@0
  6501
		if ( !elem.style ) {
indvd00m@0
  6502
			continue;
indvd00m@0
  6503
		}
indvd00m@0
  6504
indvd00m@0
  6505
		values[ index ] = jQuery._data( elem, "olddisplay" );
indvd00m@0
  6506
		display = elem.style.display;
indvd00m@0
  6507
		if ( show ) {
indvd00m@0
  6508
			// Reset the inline display of this element to learn if it is
indvd00m@0
  6509
			// being hidden by cascaded rules or not
indvd00m@0
  6510
			if ( !values[ index ] && display === "none" ) {
indvd00m@0
  6511
				elem.style.display = "";
indvd00m@0
  6512
			}
indvd00m@0
  6513
indvd00m@0
  6514
			// Set elements which have been overridden with display: none
indvd00m@0
  6515
			// in a stylesheet to whatever the default browser style is
indvd00m@0
  6516
			// for such an element
indvd00m@0
  6517
			if ( elem.style.display === "" && isHidden( elem ) ) {
indvd00m@0
  6518
				values[ index ] = jQuery._data( elem, "olddisplay", defaultDisplay(elem.nodeName) );
indvd00m@0
  6519
			}
indvd00m@0
  6520
		} else {
indvd00m@0
  6521
			hidden = isHidden( elem );
indvd00m@0
  6522
indvd00m@0
  6523
			if ( display && display !== "none" || !hidden ) {
indvd00m@0
  6524
				jQuery._data( elem, "olddisplay", hidden ? display : jQuery.css( elem, "display" ) );
indvd00m@0
  6525
			}
indvd00m@0
  6526
		}
indvd00m@0
  6527
	}
indvd00m@0
  6528
indvd00m@0
  6529
	// Set the display of most of the elements in a second loop
indvd00m@0
  6530
	// to avoid the constant reflow
indvd00m@0
  6531
	for ( index = 0; index < length; index++ ) {
indvd00m@0
  6532
		elem = elements[ index ];
indvd00m@0
  6533
		if ( !elem.style ) {
indvd00m@0
  6534
			continue;
indvd00m@0
  6535
		}
indvd00m@0
  6536
		if ( !show || elem.style.display === "none" || elem.style.display === "" ) {
indvd00m@0
  6537
			elem.style.display = show ? values[ index ] || "" : "none";
indvd00m@0
  6538
		}
indvd00m@0
  6539
	}
indvd00m@0
  6540
indvd00m@0
  6541
	return elements;
indvd00m@0
  6542
}
indvd00m@0
  6543
indvd00m@0
  6544
function setPositiveNumber( elem, value, subtract ) {
indvd00m@0
  6545
	var matches = rnumsplit.exec( value );
indvd00m@0
  6546
	return matches ?
indvd00m@0
  6547
		// Guard against undefined "subtract", e.g., when used as in cssHooks
indvd00m@0
  6548
		Math.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || "px" ) :
indvd00m@0
  6549
		value;
indvd00m@0
  6550
}
indvd00m@0
  6551
indvd00m@0
  6552
function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
indvd00m@0
  6553
	var i = extra === ( isBorderBox ? "border" : "content" ) ?
indvd00m@0
  6554
		// If we already have the right measurement, avoid augmentation
indvd00m@0
  6555
		4 :
indvd00m@0
  6556
		// Otherwise initialize for horizontal or vertical properties
indvd00m@0
  6557
		name === "width" ? 1 : 0,
indvd00m@0
  6558
indvd00m@0
  6559
		val = 0;
indvd00m@0
  6560
indvd00m@0
  6561
	for ( ; i < 4; i += 2 ) {
indvd00m@0
  6562
		// both box models exclude margin, so add it if we want it
indvd00m@0
  6563
		if ( extra === "margin" ) {
indvd00m@0
  6564
			val += jQuery.css( elem, extra + cssExpand[ i ], true, styles );
indvd00m@0
  6565
		}
indvd00m@0
  6566
indvd00m@0
  6567
		if ( isBorderBox ) {
indvd00m@0
  6568
			// border-box includes padding, so remove it if we want content
indvd00m@0
  6569
			if ( extra === "content" ) {
indvd00m@0
  6570
				val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
indvd00m@0
  6571
			}
indvd00m@0
  6572
indvd00m@0
  6573
			// at this point, extra isn't border nor margin, so remove border
indvd00m@0
  6574
			if ( extra !== "margin" ) {
indvd00m@0
  6575
				val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
indvd00m@0
  6576
			}
indvd00m@0
  6577
		} else {
indvd00m@0
  6578
			// at this point, extra isn't content, so add padding
indvd00m@0
  6579
			val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
indvd00m@0
  6580
indvd00m@0
  6581
			// at this point, extra isn't content nor padding, so add border
indvd00m@0
  6582
			if ( extra !== "padding" ) {
indvd00m@0
  6583
				val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
indvd00m@0
  6584
			}
indvd00m@0
  6585
		}
indvd00m@0
  6586
	}
indvd00m@0
  6587
indvd00m@0
  6588
	return val;
indvd00m@0
  6589
}
indvd00m@0
  6590
indvd00m@0
  6591
function getWidthOrHeight( elem, name, extra ) {
indvd00m@0
  6592
indvd00m@0
  6593
	// Start with offset property, which is equivalent to the border-box value
indvd00m@0
  6594
	var valueIsBorderBox = true,
indvd00m@0
  6595
		val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
indvd00m@0
  6596
		styles = getStyles( elem ),
indvd00m@0
  6597
		isBorderBox = support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
indvd00m@0
  6598
indvd00m@0
  6599
	// some non-html elements return undefined for offsetWidth, so check for null/undefined
indvd00m@0
  6600
	// svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285
indvd00m@0
  6601
	// MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668
indvd00m@0
  6602
	if ( val <= 0 || val == null ) {
indvd00m@0
  6603
		// Fall back to computed then uncomputed css if necessary
indvd00m@0
  6604
		val = curCSS( elem, name, styles );
indvd00m@0
  6605
		if ( val < 0 || val == null ) {
indvd00m@0
  6606
			val = elem.style[ name ];
indvd00m@0
  6607
		}
indvd00m@0
  6608
indvd00m@0
  6609
		// Computed unit is not pixels. Stop here and return.
indvd00m@0
  6610
		if ( rnumnonpx.test(val) ) {
indvd00m@0
  6611
			return val;
indvd00m@0
  6612
		}
indvd00m@0
  6613
indvd00m@0
  6614
		// we need the check for style in case a browser which returns unreliable values
indvd00m@0
  6615
		// for getComputedStyle silently falls back to the reliable elem.style
indvd00m@0
  6616
		valueIsBorderBox = isBorderBox && ( support.boxSizingReliable() || val === elem.style[ name ] );
indvd00m@0
  6617
indvd00m@0
  6618
		// Normalize "", auto, and prepare for extra
indvd00m@0
  6619
		val = parseFloat( val ) || 0;
indvd00m@0
  6620
	}
indvd00m@0
  6621
indvd00m@0
  6622
	// use the active box-sizing model to add/subtract irrelevant styles
indvd00m@0
  6623
	return ( val +
indvd00m@0
  6624
		augmentWidthOrHeight(
indvd00m@0
  6625
			elem,
indvd00m@0
  6626
			name,
indvd00m@0
  6627
			extra || ( isBorderBox ? "border" : "content" ),
indvd00m@0
  6628
			valueIsBorderBox,
indvd00m@0
  6629
			styles
indvd00m@0
  6630
		)
indvd00m@0
  6631
	) + "px";
indvd00m@0
  6632
}
indvd00m@0
  6633
indvd00m@0
  6634
jQuery.extend({
indvd00m@0
  6635
	// Add in style property hooks for overriding the default
indvd00m@0
  6636
	// behavior of getting and setting a style property
indvd00m@0
  6637
	cssHooks: {
indvd00m@0
  6638
		opacity: {
indvd00m@0
  6639
			get: function( elem, computed ) {
indvd00m@0
  6640
				if ( computed ) {
indvd00m@0
  6641
					// We should always get a number back from opacity
indvd00m@0
  6642
					var ret = curCSS( elem, "opacity" );
indvd00m@0
  6643
					return ret === "" ? "1" : ret;
indvd00m@0
  6644
				}
indvd00m@0
  6645
			}
indvd00m@0
  6646
		}
indvd00m@0
  6647
	},
indvd00m@0
  6648
indvd00m@0
  6649
	// Don't automatically add "px" to these possibly-unitless properties
indvd00m@0
  6650
	cssNumber: {
indvd00m@0
  6651
		"columnCount": true,
indvd00m@0
  6652
		"fillOpacity": true,
indvd00m@0
  6653
		"flexGrow": true,
indvd00m@0
  6654
		"flexShrink": true,
indvd00m@0
  6655
		"fontWeight": true,
indvd00m@0
  6656
		"lineHeight": true,
indvd00m@0
  6657
		"opacity": true,
indvd00m@0
  6658
		"order": true,
indvd00m@0
  6659
		"orphans": true,
indvd00m@0
  6660
		"widows": true,
indvd00m@0
  6661
		"zIndex": true,
indvd00m@0
  6662
		"zoom": true
indvd00m@0
  6663
	},
indvd00m@0
  6664
indvd00m@0
  6665
	// Add in properties whose names you wish to fix before
indvd00m@0
  6666
	// setting or getting the value
indvd00m@0
  6667
	cssProps: {
indvd00m@0
  6668
		// normalize float css property
indvd00m@0
  6669
		"float": support.cssFloat ? "cssFloat" : "styleFloat"
indvd00m@0
  6670
	},
indvd00m@0
  6671
indvd00m@0
  6672
	// Get and set the style property on a DOM Node
indvd00m@0
  6673
	style: function( elem, name, value, extra ) {
indvd00m@0
  6674
		// Don't set styles on text and comment nodes
indvd00m@0
  6675
		if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
indvd00m@0
  6676
			return;
indvd00m@0
  6677
		}
indvd00m@0
  6678
indvd00m@0
  6679
		// Make sure that we're working with the right name
indvd00m@0
  6680
		var ret, type, hooks,
indvd00m@0
  6681
			origName = jQuery.camelCase( name ),
indvd00m@0
  6682
			style = elem.style;
indvd00m@0
  6683
indvd00m@0
  6684
		name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( style, origName ) );
indvd00m@0
  6685
indvd00m@0
  6686
		// gets hook for the prefixed version
indvd00m@0
  6687
		// followed by the unprefixed version
indvd00m@0
  6688
		hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
indvd00m@0
  6689
indvd00m@0
  6690
		// Check if we're setting a value
indvd00m@0
  6691
		if ( value !== undefined ) {
indvd00m@0
  6692
			type = typeof value;
indvd00m@0
  6693
indvd00m@0
  6694
			// convert relative number strings (+= or -=) to relative numbers. #7345
indvd00m@0
  6695
			if ( type === "string" && (ret = rrelNum.exec( value )) ) {
indvd00m@0
  6696
				value = ( ret[1] + 1 ) * ret[2] + parseFloat( jQuery.css( elem, name ) );
indvd00m@0
  6697
				// Fixes bug #9237
indvd00m@0
  6698
				type = "number";
indvd00m@0
  6699
			}
indvd00m@0
  6700
indvd00m@0
  6701
			// Make sure that null and NaN values aren't set. See: #7116
indvd00m@0
  6702
			if ( value == null || value !== value ) {
indvd00m@0
  6703
				return;
indvd00m@0
  6704
			}
indvd00m@0
  6705
indvd00m@0
  6706
			// If a number was passed in, add 'px' to the (except for certain CSS properties)
indvd00m@0
  6707
			if ( type === "number" && !jQuery.cssNumber[ origName ] ) {
indvd00m@0
  6708
				value += "px";
indvd00m@0
  6709
			}
indvd00m@0
  6710
indvd00m@0
  6711
			// Fixes #8908, it can be done more correctly by specifing setters in cssHooks,
indvd00m@0
  6712
			// but it would mean to define eight (for every problematic property) identical functions
indvd00m@0
  6713
			if ( !support.clearCloneStyle && value === "" && name.indexOf("background") === 0 ) {
indvd00m@0
  6714
				style[ name ] = "inherit";
indvd00m@0
  6715
			}
indvd00m@0
  6716
indvd00m@0
  6717
			// If a hook was provided, use that value, otherwise just set the specified value
indvd00m@0
  6718
			if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) {
indvd00m@0
  6719
indvd00m@0
  6720
				// Support: IE
indvd00m@0
  6721
				// Swallow errors from 'invalid' CSS values (#5509)
indvd00m@0
  6722
				try {
indvd00m@0
  6723
					style[ name ] = value;
indvd00m@0
  6724
				} catch(e) {}
indvd00m@0
  6725
			}
indvd00m@0
  6726
indvd00m@0
  6727
		} else {
indvd00m@0
  6728
			// If a hook was provided get the non-computed value from there
indvd00m@0
  6729
			if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {
indvd00m@0
  6730
				return ret;
indvd00m@0
  6731
			}
indvd00m@0
  6732
indvd00m@0
  6733
			// Otherwise just get the value from the style object
indvd00m@0
  6734
			return style[ name ];
indvd00m@0
  6735
		}
indvd00m@0
  6736
	},
indvd00m@0
  6737
indvd00m@0
  6738
	css: function( elem, name, extra, styles ) {
indvd00m@0
  6739
		var num, val, hooks,
indvd00m@0
  6740
			origName = jQuery.camelCase( name );
indvd00m@0
  6741
indvd00m@0
  6742
		// Make sure that we're working with the right name
indvd00m@0
  6743
		name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( elem.style, origName ) );
indvd00m@0
  6744
indvd00m@0
  6745
		// gets hook for the prefixed version
indvd00m@0
  6746
		// followed by the unprefixed version
indvd00m@0
  6747
		hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
indvd00m@0
  6748
indvd00m@0
  6749
		// If a hook was provided get the computed value from there
indvd00m@0
  6750
		if ( hooks && "get" in hooks ) {
indvd00m@0
  6751
			val = hooks.get( elem, true, extra );
indvd00m@0
  6752
		}
indvd00m@0
  6753
indvd00m@0
  6754
		// Otherwise, if a way to get the computed value exists, use that
indvd00m@0
  6755
		if ( val === undefined ) {
indvd00m@0
  6756
			val = curCSS( elem, name, styles );
indvd00m@0
  6757
		}
indvd00m@0
  6758
indvd00m@0
  6759
		//convert "normal" to computed value
indvd00m@0
  6760
		if ( val === "normal" && name in cssNormalTransform ) {
indvd00m@0
  6761
			val = cssNormalTransform[ name ];
indvd00m@0
  6762
		}
indvd00m@0
  6763
indvd00m@0
  6764
		// Return, converting to number if forced or a qualifier was provided and val looks numeric
indvd00m@0
  6765
		if ( extra === "" || extra ) {
indvd00m@0
  6766
			num = parseFloat( val );
indvd00m@0
  6767
			return extra === true || jQuery.isNumeric( num ) ? num || 0 : val;
indvd00m@0
  6768
		}
indvd00m@0
  6769
		return val;
indvd00m@0
  6770
	}
indvd00m@0
  6771
});
indvd00m@0
  6772
indvd00m@0
  6773
jQuery.each([ "height", "width" ], function( i, name ) {
indvd00m@0
  6774
	jQuery.cssHooks[ name ] = {
indvd00m@0
  6775
		get: function( elem, computed, extra ) {
indvd00m@0
  6776
			if ( computed ) {
indvd00m@0
  6777
				// certain elements can have dimension info if we invisibly show them
indvd00m@0
  6778
				// however, it must have a current display style that would benefit from this
indvd00m@0
  6779
				return rdisplayswap.test( jQuery.css( elem, "display" ) ) && elem.offsetWidth === 0 ?
indvd00m@0
  6780
					jQuery.swap( elem, cssShow, function() {
indvd00m@0
  6781
						return getWidthOrHeight( elem, name, extra );
indvd00m@0
  6782
					}) :
indvd00m@0
  6783
					getWidthOrHeight( elem, name, extra );
indvd00m@0
  6784
			}
indvd00m@0
  6785
		},
indvd00m@0
  6786
indvd00m@0
  6787
		set: function( elem, value, extra ) {
indvd00m@0
  6788
			var styles = extra && getStyles( elem );
indvd00m@0
  6789
			return setPositiveNumber( elem, value, extra ?
indvd00m@0
  6790
				augmentWidthOrHeight(
indvd00m@0
  6791
					elem,
indvd00m@0
  6792
					name,
indvd00m@0
  6793
					extra,
indvd00m@0
  6794
					support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
indvd00m@0
  6795
					styles
indvd00m@0
  6796
				) : 0
indvd00m@0
  6797
			);
indvd00m@0
  6798
		}
indvd00m@0
  6799
	};
indvd00m@0
  6800
});
indvd00m@0
  6801
indvd00m@0
  6802
if ( !support.opacity ) {
indvd00m@0
  6803
	jQuery.cssHooks.opacity = {
indvd00m@0
  6804
		get: function( elem, computed ) {
indvd00m@0
  6805
			// IE uses filters for opacity
indvd00m@0
  6806
			return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
indvd00m@0
  6807
				( 0.01 * parseFloat( RegExp.$1 ) ) + "" :
indvd00m@0
  6808
				computed ? "1" : "";
indvd00m@0
  6809
		},
indvd00m@0
  6810
indvd00m@0
  6811
		set: function( elem, value ) {
indvd00m@0
  6812
			var style = elem.style,
indvd00m@0
  6813
				currentStyle = elem.currentStyle,
indvd00m@0
  6814
				opacity = jQuery.isNumeric( value ) ? "alpha(opacity=" + value * 100 + ")" : "",
indvd00m@0
  6815
				filter = currentStyle && currentStyle.filter || style.filter || "";
indvd00m@0
  6816
indvd00m@0
  6817
			// IE has trouble with opacity if it does not have layout
indvd00m@0
  6818
			// Force it by setting the zoom level
indvd00m@0
  6819
			style.zoom = 1;
indvd00m@0
  6820
indvd00m@0
  6821
			// if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #6652
indvd00m@0
  6822
			// if value === "", then remove inline opacity #12685
indvd00m@0
  6823
			if ( ( value >= 1 || value === "" ) &&
indvd00m@0
  6824
					jQuery.trim( filter.replace( ralpha, "" ) ) === "" &&
indvd00m@0
  6825
					style.removeAttribute ) {
indvd00m@0
  6826
indvd00m@0
  6827
				// Setting style.filter to null, "" & " " still leave "filter:" in the cssText
indvd00m@0
  6828
				// if "filter:" is present at all, clearType is disabled, we want to avoid this
indvd00m@0
  6829
				// style.removeAttribute is IE Only, but so apparently is this code path...
indvd00m@0
  6830
				style.removeAttribute( "filter" );
indvd00m@0
  6831
indvd00m@0
  6832
				// if there is no filter style applied in a css rule or unset inline opacity, we are done
indvd00m@0
  6833
				if ( value === "" || currentStyle && !currentStyle.filter ) {
indvd00m@0
  6834
					return;
indvd00m@0
  6835
				}
indvd00m@0
  6836
			}
indvd00m@0
  6837
indvd00m@0
  6838
			// otherwise, set new filter values
indvd00m@0
  6839
			style.filter = ralpha.test( filter ) ?
indvd00m@0
  6840
				filter.replace( ralpha, opacity ) :
indvd00m@0
  6841
				filter + " " + opacity;
indvd00m@0
  6842
		}
indvd00m@0
  6843
	};
indvd00m@0
  6844
}
indvd00m@0
  6845
indvd00m@0
  6846
jQuery.cssHooks.marginRight = addGetHookIf( support.reliableMarginRight,
indvd00m@0
  6847
	function( elem, computed ) {
indvd00m@0
  6848
		if ( computed ) {
indvd00m@0
  6849
			// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
indvd00m@0
  6850
			// Work around by temporarily setting element display to inline-block
indvd00m@0
  6851
			return jQuery.swap( elem, { "display": "inline-block" },
indvd00m@0
  6852
				curCSS, [ elem, "marginRight" ] );
indvd00m@0
  6853
		}
indvd00m@0
  6854
	}
indvd00m@0
  6855
);
indvd00m@0
  6856
indvd00m@0
  6857
// These hooks are used by animate to expand properties
indvd00m@0
  6858
jQuery.each({
indvd00m@0
  6859
	margin: "",
indvd00m@0
  6860
	padding: "",
indvd00m@0
  6861
	border: "Width"
indvd00m@0
  6862
}, function( prefix, suffix ) {
indvd00m@0
  6863
	jQuery.cssHooks[ prefix + suffix ] = {
indvd00m@0
  6864
		expand: function( value ) {
indvd00m@0
  6865
			var i = 0,
indvd00m@0
  6866
				expanded = {},
indvd00m@0
  6867
indvd00m@0
  6868
				// assumes a single number if not a string
indvd00m@0
  6869
				parts = typeof value === "string" ? value.split(" ") : [ value ];
indvd00m@0
  6870
indvd00m@0
  6871
			for ( ; i < 4; i++ ) {
indvd00m@0
  6872
				expanded[ prefix + cssExpand[ i ] + suffix ] =
indvd00m@0
  6873
					parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
indvd00m@0
  6874
			}
indvd00m@0
  6875
indvd00m@0
  6876
			return expanded;
indvd00m@0
  6877
		}
indvd00m@0
  6878
	};
indvd00m@0
  6879
indvd00m@0
  6880
	if ( !rmargin.test( prefix ) ) {
indvd00m@0
  6881
		jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;
indvd00m@0
  6882
	}
indvd00m@0
  6883
});
indvd00m@0
  6884
indvd00m@0
  6885
jQuery.fn.extend({
indvd00m@0
  6886
	css: function( name, value ) {
indvd00m@0
  6887
		return access( this, function( elem, name, value ) {
indvd00m@0
  6888
			var styles, len,
indvd00m@0
  6889
				map = {},
indvd00m@0
  6890
				i = 0;
indvd00m@0
  6891
indvd00m@0
  6892
			if ( jQuery.isArray( name ) ) {
indvd00m@0
  6893
				styles = getStyles( elem );
indvd00m@0
  6894
				len = name.length;
indvd00m@0
  6895
indvd00m@0
  6896
				for ( ; i < len; i++ ) {
indvd00m@0
  6897
					map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );
indvd00m@0
  6898
				}
indvd00m@0
  6899
indvd00m@0
  6900
				return map;
indvd00m@0
  6901
			}
indvd00m@0
  6902
indvd00m@0
  6903
			return value !== undefined ?
indvd00m@0
  6904
				jQuery.style( elem, name, value ) :
indvd00m@0
  6905
				jQuery.css( elem, name );
indvd00m@0
  6906
		}, name, value, arguments.length > 1 );
indvd00m@0
  6907
	},
indvd00m@0
  6908
	show: function() {
indvd00m@0
  6909
		return showHide( this, true );
indvd00m@0
  6910
	},
indvd00m@0
  6911
	hide: function() {
indvd00m@0
  6912
		return showHide( this );
indvd00m@0
  6913
	},
indvd00m@0
  6914
	toggle: function( state ) {
indvd00m@0
  6915
		if ( typeof state === "boolean" ) {
indvd00m@0
  6916
			return state ? this.show() : this.hide();
indvd00m@0
  6917
		}
indvd00m@0
  6918
indvd00m@0
  6919
		return this.each(function() {
indvd00m@0
  6920
			if ( isHidden( this ) ) {
indvd00m@0
  6921
				jQuery( this ).show();
indvd00m@0
  6922
			} else {
indvd00m@0
  6923
				jQuery( this ).hide();
indvd00m@0
  6924
			}
indvd00m@0
  6925
		});
indvd00m@0
  6926
	}
indvd00m@0
  6927
});
indvd00m@0
  6928
indvd00m@0
  6929
indvd00m@0
  6930
function Tween( elem, options, prop, end, easing ) {
indvd00m@0
  6931
	return new Tween.prototype.init( elem, options, prop, end, easing );
indvd00m@0
  6932
}
indvd00m@0
  6933
jQuery.Tween = Tween;
indvd00m@0
  6934
indvd00m@0
  6935
Tween.prototype = {
indvd00m@0
  6936
	constructor: Tween,
indvd00m@0
  6937
	init: function( elem, options, prop, end, easing, unit ) {
indvd00m@0
  6938
		this.elem = elem;
indvd00m@0
  6939
		this.prop = prop;
indvd00m@0
  6940
		this.easing = easing || "swing";
indvd00m@0
  6941
		this.options = options;
indvd00m@0
  6942
		this.start = this.now = this.cur();
indvd00m@0
  6943
		this.end = end;
indvd00m@0
  6944
		this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" );
indvd00m@0
  6945
	},
indvd00m@0
  6946
	cur: function() {
indvd00m@0
  6947
		var hooks = Tween.propHooks[ this.prop ];
indvd00m@0
  6948
indvd00m@0
  6949
		return hooks && hooks.get ?
indvd00m@0
  6950
			hooks.get( this ) :
indvd00m@0
  6951
			Tween.propHooks._default.get( this );
indvd00m@0
  6952
	},
indvd00m@0
  6953
	run: function( percent ) {
indvd00m@0
  6954
		var eased,
indvd00m@0
  6955
			hooks = Tween.propHooks[ this.prop ];
indvd00m@0
  6956
indvd00m@0
  6957
		if ( this.options.duration ) {
indvd00m@0
  6958
			this.pos = eased = jQuery.easing[ this.easing ](
indvd00m@0
  6959
				percent, this.options.duration * percent, 0, 1, this.options.duration
indvd00m@0
  6960
			);
indvd00m@0
  6961
		} else {
indvd00m@0
  6962
			this.pos = eased = percent;
indvd00m@0
  6963
		}
indvd00m@0
  6964
		this.now = ( this.end - this.start ) * eased + this.start;
indvd00m@0
  6965
indvd00m@0
  6966
		if ( this.options.step ) {
indvd00m@0
  6967
			this.options.step.call( this.elem, this.now, this );
indvd00m@0
  6968
		}
indvd00m@0
  6969
indvd00m@0
  6970
		if ( hooks && hooks.set ) {
indvd00m@0
  6971
			hooks.set( this );
indvd00m@0
  6972
		} else {
indvd00m@0
  6973
			Tween.propHooks._default.set( this );
indvd00m@0
  6974
		}
indvd00m@0
  6975
		return this;
indvd00m@0
  6976
	}
indvd00m@0
  6977
};
indvd00m@0
  6978
indvd00m@0
  6979
Tween.prototype.init.prototype = Tween.prototype;
indvd00m@0
  6980
indvd00m@0
  6981
Tween.propHooks = {
indvd00m@0
  6982
	_default: {
indvd00m@0
  6983
		get: function( tween ) {
indvd00m@0
  6984
			var result;
indvd00m@0
  6985
indvd00m@0
  6986
			if ( tween.elem[ tween.prop ] != null &&
indvd00m@0
  6987
				(!tween.elem.style || tween.elem.style[ tween.prop ] == null) ) {
indvd00m@0
  6988
				return tween.elem[ tween.prop ];
indvd00m@0
  6989
			}
indvd00m@0
  6990
indvd00m@0
  6991
			// passing an empty string as a 3rd parameter to .css will automatically
indvd00m@0
  6992
			// attempt a parseFloat and fallback to a string if the parse fails
indvd00m@0
  6993
			// so, simple values such as "10px" are parsed to Float.
indvd00m@0
  6994
			// complex values such as "rotate(1rad)" are returned as is.
indvd00m@0
  6995
			result = jQuery.css( tween.elem, tween.prop, "" );
indvd00m@0
  6996
			// Empty strings, null, undefined and "auto" are converted to 0.
indvd00m@0
  6997
			return !result || result === "auto" ? 0 : result;
indvd00m@0
  6998
		},
indvd00m@0
  6999
		set: function( tween ) {
indvd00m@0
  7000
			// use step hook for back compat - use cssHook if its there - use .style if its
indvd00m@0
  7001
			// available and use plain properties where available
indvd00m@0
  7002
			if ( jQuery.fx.step[ tween.prop ] ) {
indvd00m@0
  7003
				jQuery.fx.step[ tween.prop ]( tween );
indvd00m@0
  7004
			} else if ( tween.elem.style && ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null || jQuery.cssHooks[ tween.prop ] ) ) {
indvd00m@0
  7005
				jQuery.style( tween.elem, tween.prop, tween.now + tween.unit );
indvd00m@0
  7006
			} else {
indvd00m@0
  7007
				tween.elem[ tween.prop ] = tween.now;
indvd00m@0
  7008
			}
indvd00m@0
  7009
		}
indvd00m@0
  7010
	}
indvd00m@0
  7011
};
indvd00m@0
  7012
indvd00m@0
  7013
// Support: IE <=9
indvd00m@0
  7014
// Panic based approach to setting things on disconnected nodes
indvd00m@0
  7015
indvd00m@0
  7016
Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
indvd00m@0
  7017
	set: function( tween ) {
indvd00m@0
  7018
		if ( tween.elem.nodeType && tween.elem.parentNode ) {
indvd00m@0
  7019
			tween.elem[ tween.prop ] = tween.now;
indvd00m@0
  7020
		}
indvd00m@0
  7021
	}
indvd00m@0
  7022
};
indvd00m@0
  7023
indvd00m@0
  7024
jQuery.easing = {
indvd00m@0
  7025
	linear: function( p ) {
indvd00m@0
  7026
		return p;
indvd00m@0
  7027
	},
indvd00m@0
  7028
	swing: function( p ) {
indvd00m@0
  7029
		return 0.5 - Math.cos( p * Math.PI ) / 2;
indvd00m@0
  7030
	}
indvd00m@0
  7031
};
indvd00m@0
  7032
indvd00m@0
  7033
jQuery.fx = Tween.prototype.init;
indvd00m@0
  7034
indvd00m@0
  7035
// Back Compat <1.8 extension point
indvd00m@0
  7036
jQuery.fx.step = {};
indvd00m@0
  7037
indvd00m@0
  7038
indvd00m@0
  7039
indvd00m@0
  7040
indvd00m@0
  7041
var
indvd00m@0
  7042
	fxNow, timerId,
indvd00m@0
  7043
	rfxtypes = /^(?:toggle|show|hide)$/,
indvd00m@0
  7044
	rfxnum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ),
indvd00m@0
  7045
	rrun = /queueHooks$/,
indvd00m@0
  7046
	animationPrefilters = [ defaultPrefilter ],
indvd00m@0
  7047
	tweeners = {
indvd00m@0
  7048
		"*": [ function( prop, value ) {
indvd00m@0
  7049
			var tween = this.createTween( prop, value ),
indvd00m@0
  7050
				target = tween.cur(),
indvd00m@0
  7051
				parts = rfxnum.exec( value ),
indvd00m@0
  7052
				unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
indvd00m@0
  7053
indvd00m@0
  7054
				// Starting value computation is required for potential unit mismatches
indvd00m@0
  7055
				start = ( jQuery.cssNumber[ prop ] || unit !== "px" && +target ) &&
indvd00m@0
  7056
					rfxnum.exec( jQuery.css( tween.elem, prop ) ),
indvd00m@0
  7057
				scale = 1,
indvd00m@0
  7058
				maxIterations = 20;
indvd00m@0
  7059
indvd00m@0
  7060
			if ( start && start[ 3 ] !== unit ) {
indvd00m@0
  7061
				// Trust units reported by jQuery.css
indvd00m@0
  7062
				unit = unit || start[ 3 ];
indvd00m@0
  7063
indvd00m@0
  7064
				// Make sure we update the tween properties later on
indvd00m@0
  7065
				parts = parts || [];
indvd00m@0
  7066
indvd00m@0
  7067
				// Iteratively approximate from a nonzero starting point
indvd00m@0
  7068
				start = +target || 1;
indvd00m@0
  7069
indvd00m@0
  7070
				do {
indvd00m@0
  7071
					// If previous iteration zeroed out, double until we get *something*
indvd00m@0
  7072
					// Use a string for doubling factor so we don't accidentally see scale as unchanged below
indvd00m@0
  7073
					scale = scale || ".5";
indvd00m@0
  7074
indvd00m@0
  7075
					// Adjust and apply
indvd00m@0
  7076
					start = start / scale;
indvd00m@0
  7077
					jQuery.style( tween.elem, prop, start + unit );
indvd00m@0
  7078
indvd00m@0
  7079
				// Update scale, tolerating zero or NaN from tween.cur()
indvd00m@0
  7080
				// And breaking the loop if scale is unchanged or perfect, or if we've just had enough
indvd00m@0
  7081
				} while ( scale !== (scale = tween.cur() / target) && scale !== 1 && --maxIterations );
indvd00m@0
  7082
			}
indvd00m@0
  7083
indvd00m@0
  7084
			// Update tween properties
indvd00m@0
  7085
			if ( parts ) {
indvd00m@0
  7086
				start = tween.start = +start || +target || 0;
indvd00m@0
  7087
				tween.unit = unit;
indvd00m@0
  7088
				// If a +=/-= token was provided, we're doing a relative animation
indvd00m@0
  7089
				tween.end = parts[ 1 ] ?
indvd00m@0
  7090
					start + ( parts[ 1 ] + 1 ) * parts[ 2 ] :
indvd00m@0
  7091
					+parts[ 2 ];
indvd00m@0
  7092
			}
indvd00m@0
  7093
indvd00m@0
  7094
			return tween;
indvd00m@0
  7095
		} ]
indvd00m@0
  7096
	};
indvd00m@0
  7097
indvd00m@0
  7098
// Animations created synchronously will run synchronously
indvd00m@0
  7099
function createFxNow() {
indvd00m@0
  7100
	setTimeout(function() {
indvd00m@0
  7101
		fxNow = undefined;
indvd00m@0
  7102
	});
indvd00m@0
  7103
	return ( fxNow = jQuery.now() );
indvd00m@0
  7104
}
indvd00m@0
  7105
indvd00m@0
  7106
// Generate parameters to create a standard animation
indvd00m@0
  7107
function genFx( type, includeWidth ) {
indvd00m@0
  7108
	var which,
indvd00m@0
  7109
		attrs = { height: type },
indvd00m@0
  7110
		i = 0;
indvd00m@0
  7111
indvd00m@0
  7112
	// if we include width, step value is 1 to do all cssExpand values,
indvd00m@0
  7113
	// if we don't include width, step value is 2 to skip over Left and Right
indvd00m@0
  7114
	includeWidth = includeWidth ? 1 : 0;
indvd00m@0
  7115
	for ( ; i < 4 ; i += 2 - includeWidth ) {
indvd00m@0
  7116
		which = cssExpand[ i ];
indvd00m@0
  7117
		attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
indvd00m@0
  7118
	}
indvd00m@0
  7119
indvd00m@0
  7120
	if ( includeWidth ) {
indvd00m@0
  7121
		attrs.opacity = attrs.width = type;
indvd00m@0
  7122
	}
indvd00m@0
  7123
indvd00m@0
  7124
	return attrs;
indvd00m@0
  7125
}
indvd00m@0
  7126
indvd00m@0
  7127
function createTween( value, prop, animation ) {
indvd00m@0
  7128
	var tween,
indvd00m@0
  7129
		collection = ( tweeners[ prop ] || [] ).concat( tweeners[ "*" ] ),
indvd00m@0
  7130
		index = 0,
indvd00m@0
  7131
		length = collection.length;
indvd00m@0
  7132
	for ( ; index < length; index++ ) {
indvd00m@0
  7133
		if ( (tween = collection[ index ].call( animation, prop, value )) ) {
indvd00m@0
  7134
indvd00m@0
  7135
			// we're done with this property
indvd00m@0
  7136
			return tween;
indvd00m@0
  7137
		}
indvd00m@0
  7138
	}
indvd00m@0
  7139
}
indvd00m@0
  7140
indvd00m@0
  7141
function defaultPrefilter( elem, props, opts ) {
indvd00m@0
  7142
	/* jshint validthis: true */
indvd00m@0
  7143
	var prop, value, toggle, tween, hooks, oldfire, display, checkDisplay,
indvd00m@0
  7144
		anim = this,
indvd00m@0
  7145
		orig = {},
indvd00m@0
  7146
		style = elem.style,
indvd00m@0
  7147
		hidden = elem.nodeType && isHidden( elem ),
indvd00m@0
  7148
		dataShow = jQuery._data( elem, "fxshow" );
indvd00m@0
  7149
indvd00m@0
  7150
	// handle queue: false promises
indvd00m@0
  7151
	if ( !opts.queue ) {
indvd00m@0
  7152
		hooks = jQuery._queueHooks( elem, "fx" );
indvd00m@0
  7153
		if ( hooks.unqueued == null ) {
indvd00m@0
  7154
			hooks.unqueued = 0;
indvd00m@0
  7155
			oldfire = hooks.empty.fire;
indvd00m@0
  7156
			hooks.empty.fire = function() {
indvd00m@0
  7157
				if ( !hooks.unqueued ) {
indvd00m@0
  7158
					oldfire();
indvd00m@0
  7159
				}
indvd00m@0
  7160
			};
indvd00m@0
  7161
		}
indvd00m@0
  7162
		hooks.unqueued++;
indvd00m@0
  7163
indvd00m@0
  7164
		anim.always(function() {
indvd00m@0
  7165
			// doing this makes sure that the complete handler will be called
indvd00m@0
  7166
			// before this completes
indvd00m@0
  7167
			anim.always(function() {
indvd00m@0
  7168
				hooks.unqueued--;
indvd00m@0
  7169
				if ( !jQuery.queue( elem, "fx" ).length ) {
indvd00m@0
  7170
					hooks.empty.fire();
indvd00m@0
  7171
				}
indvd00m@0
  7172
			});
indvd00m@0
  7173
		});
indvd00m@0
  7174
	}
indvd00m@0
  7175
indvd00m@0
  7176
	// height/width overflow pass
indvd00m@0
  7177
	if ( elem.nodeType === 1 && ( "height" in props || "width" in props ) ) {
indvd00m@0
  7178
		// Make sure that nothing sneaks out
indvd00m@0
  7179
		// Record all 3 overflow attributes because IE does not
indvd00m@0
  7180
		// change the overflow attribute when overflowX and
indvd00m@0
  7181
		// overflowY are set to the same value
indvd00m@0
  7182
		opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];
indvd00m@0
  7183
indvd00m@0
  7184
		// Set display property to inline-block for height/width
indvd00m@0
  7185
		// animations on inline elements that are having width/height animated
indvd00m@0
  7186
		display = jQuery.css( elem, "display" );
indvd00m@0
  7187
indvd00m@0
  7188
		// Test default display if display is currently "none"
indvd00m@0
  7189
		checkDisplay = display === "none" ?
indvd00m@0
  7190
			jQuery._data( elem, "olddisplay" ) || defaultDisplay( elem.nodeName ) : display;
indvd00m@0
  7191
indvd00m@0
  7192
		if ( checkDisplay === "inline" && jQuery.css( elem, "float" ) === "none" ) {
indvd00m@0
  7193
indvd00m@0
  7194
			// inline-level elements accept inline-block;
indvd00m@0
  7195
			// block-level elements need to be inline with layout
indvd00m@0
  7196
			if ( !support.inlineBlockNeedsLayout || defaultDisplay( elem.nodeName ) === "inline" ) {
indvd00m@0
  7197
				style.display = "inline-block";
indvd00m@0
  7198
			} else {
indvd00m@0
  7199
				style.zoom = 1;
indvd00m@0
  7200
			}
indvd00m@0
  7201
		}
indvd00m@0
  7202
	}
indvd00m@0
  7203
indvd00m@0
  7204
	if ( opts.overflow ) {
indvd00m@0
  7205
		style.overflow = "hidden";
indvd00m@0
  7206
		if ( !support.shrinkWrapBlocks() ) {
indvd00m@0
  7207
			anim.always(function() {
indvd00m@0
  7208
				style.overflow = opts.overflow[ 0 ];
indvd00m@0
  7209
				style.overflowX = opts.overflow[ 1 ];
indvd00m@0
  7210
				style.overflowY = opts.overflow[ 2 ];
indvd00m@0
  7211
			});
indvd00m@0
  7212
		}
indvd00m@0
  7213
	}
indvd00m@0
  7214
indvd00m@0
  7215
	// show/hide pass
indvd00m@0
  7216
	for ( prop in props ) {
indvd00m@0
  7217
		value = props[ prop ];
indvd00m@0
  7218
		if ( rfxtypes.exec( value ) ) {
indvd00m@0
  7219
			delete props[ prop ];
indvd00m@0
  7220
			toggle = toggle || value === "toggle";
indvd00m@0
  7221
			if ( value === ( hidden ? "hide" : "show" ) ) {
indvd00m@0
  7222
indvd00m@0
  7223
				// If there is dataShow left over from a stopped hide or show and we are going to proceed with show, we should pretend to be hidden
indvd00m@0
  7224
				if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) {
indvd00m@0
  7225
					hidden = true;
indvd00m@0
  7226
				} else {
indvd00m@0
  7227
					continue;
indvd00m@0
  7228
				}
indvd00m@0
  7229
			}
indvd00m@0
  7230
			orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );
indvd00m@0
  7231
indvd00m@0
  7232
		// Any non-fx value stops us from restoring the original display value
indvd00m@0
  7233
		} else {
indvd00m@0
  7234
			display = undefined;
indvd00m@0
  7235
		}
indvd00m@0
  7236
	}
indvd00m@0
  7237
indvd00m@0
  7238
	if ( !jQuery.isEmptyObject( orig ) ) {
indvd00m@0
  7239
		if ( dataShow ) {
indvd00m@0
  7240
			if ( "hidden" in dataShow ) {
indvd00m@0
  7241
				hidden = dataShow.hidden;
indvd00m@0
  7242
			}
indvd00m@0
  7243
		} else {
indvd00m@0
  7244
			dataShow = jQuery._data( elem, "fxshow", {} );
indvd00m@0
  7245
		}
indvd00m@0
  7246
indvd00m@0
  7247
		// store state if its toggle - enables .stop().toggle() to "reverse"
indvd00m@0
  7248
		if ( toggle ) {
indvd00m@0
  7249
			dataShow.hidden = !hidden;
indvd00m@0
  7250
		}
indvd00m@0
  7251
		if ( hidden ) {
indvd00m@0
  7252
			jQuery( elem ).show();
indvd00m@0
  7253
		} else {
indvd00m@0
  7254
			anim.done(function() {
indvd00m@0
  7255
				jQuery( elem ).hide();
indvd00m@0
  7256
			});
indvd00m@0
  7257
		}
indvd00m@0
  7258
		anim.done(function() {
indvd00m@0
  7259
			var prop;
indvd00m@0
  7260
			jQuery._removeData( elem, "fxshow" );
indvd00m@0
  7261
			for ( prop in orig ) {
indvd00m@0
  7262
				jQuery.style( elem, prop, orig[ prop ] );
indvd00m@0
  7263
			}
indvd00m@0
  7264
		});
indvd00m@0
  7265
		for ( prop in orig ) {
indvd00m@0
  7266
			tween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );
indvd00m@0
  7267
indvd00m@0
  7268
			if ( !( prop in dataShow ) ) {
indvd00m@0
  7269
				dataShow[ prop ] = tween.start;
indvd00m@0
  7270
				if ( hidden ) {
indvd00m@0
  7271
					tween.end = tween.start;
indvd00m@0
  7272
					tween.start = prop === "width" || prop === "height" ? 1 : 0;
indvd00m@0
  7273
				}
indvd00m@0
  7274
			}
indvd00m@0
  7275
		}
indvd00m@0
  7276
indvd00m@0
  7277
	// If this is a noop like .hide().hide(), restore an overwritten display value
indvd00m@0
  7278
	} else if ( (display === "none" ? defaultDisplay( elem.nodeName ) : display) === "inline" ) {
indvd00m@0
  7279
		style.display = display;
indvd00m@0
  7280
	}
indvd00m@0
  7281
}
indvd00m@0
  7282
indvd00m@0
  7283
function propFilter( props, specialEasing ) {
indvd00m@0
  7284
	var index, name, easing, value, hooks;
indvd00m@0
  7285
indvd00m@0
  7286
	// camelCase, specialEasing and expand cssHook pass
indvd00m@0
  7287
	for ( index in props ) {
indvd00m@0
  7288
		name = jQuery.camelCase( index );
indvd00m@0
  7289
		easing = specialEasing[ name ];
indvd00m@0
  7290
		value = props[ index ];
indvd00m@0
  7291
		if ( jQuery.isArray( value ) ) {
indvd00m@0
  7292
			easing = value[ 1 ];
indvd00m@0
  7293
			value = props[ index ] = value[ 0 ];
indvd00m@0
  7294
		}
indvd00m@0
  7295
indvd00m@0
  7296
		if ( index !== name ) {
indvd00m@0
  7297
			props[ name ] = value;
indvd00m@0
  7298
			delete props[ index ];
indvd00m@0
  7299
		}
indvd00m@0
  7300
indvd00m@0
  7301
		hooks = jQuery.cssHooks[ name ];
indvd00m@0
  7302
		if ( hooks && "expand" in hooks ) {
indvd00m@0
  7303
			value = hooks.expand( value );
indvd00m@0
  7304
			delete props[ name ];
indvd00m@0
  7305
indvd00m@0
  7306
			// not quite $.extend, this wont overwrite keys already present.
indvd00m@0
  7307
			// also - reusing 'index' from above because we have the correct "name"
indvd00m@0
  7308
			for ( index in value ) {
indvd00m@0
  7309
				if ( !( index in props ) ) {
indvd00m@0
  7310
					props[ index ] = value[ index ];
indvd00m@0
  7311
					specialEasing[ index ] = easing;
indvd00m@0
  7312
				}
indvd00m@0
  7313
			}
indvd00m@0
  7314
		} else {
indvd00m@0
  7315
			specialEasing[ name ] = easing;
indvd00m@0
  7316
		}
indvd00m@0
  7317
	}
indvd00m@0
  7318
}
indvd00m@0
  7319
indvd00m@0
  7320
function Animation( elem, properties, options ) {
indvd00m@0
  7321
	var result,
indvd00m@0
  7322
		stopped,
indvd00m@0
  7323
		index = 0,
indvd00m@0
  7324
		length = animationPrefilters.length,
indvd00m@0
  7325
		deferred = jQuery.Deferred().always( function() {
indvd00m@0
  7326
			// don't match elem in the :animated selector
indvd00m@0
  7327
			delete tick.elem;
indvd00m@0
  7328
		}),
indvd00m@0
  7329
		tick = function() {
indvd00m@0
  7330
			if ( stopped ) {
indvd00m@0
  7331
				return false;
indvd00m@0
  7332
			}
indvd00m@0
  7333
			var currentTime = fxNow || createFxNow(),
indvd00m@0
  7334
				remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
indvd00m@0
  7335
				// archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497)
indvd00m@0
  7336
				temp = remaining / animation.duration || 0,
indvd00m@0
  7337
				percent = 1 - temp,
indvd00m@0
  7338
				index = 0,
indvd00m@0
  7339
				length = animation.tweens.length;
indvd00m@0
  7340
indvd00m@0
  7341
			for ( ; index < length ; index++ ) {
indvd00m@0
  7342
				animation.tweens[ index ].run( percent );
indvd00m@0
  7343
			}
indvd00m@0
  7344
indvd00m@0
  7345
			deferred.notifyWith( elem, [ animation, percent, remaining ]);
indvd00m@0
  7346
indvd00m@0
  7347
			if ( percent < 1 && length ) {
indvd00m@0
  7348
				return remaining;
indvd00m@0
  7349
			} else {
indvd00m@0
  7350
				deferred.resolveWith( elem, [ animation ] );
indvd00m@0
  7351
				return false;
indvd00m@0
  7352
			}
indvd00m@0
  7353
		},
indvd00m@0
  7354
		animation = deferred.promise({
indvd00m@0
  7355
			elem: elem,
indvd00m@0
  7356
			props: jQuery.extend( {}, properties ),
indvd00m@0
  7357
			opts: jQuery.extend( true, { specialEasing: {} }, options ),
indvd00m@0
  7358
			originalProperties: properties,
indvd00m@0
  7359
			originalOptions: options,
indvd00m@0
  7360
			startTime: fxNow || createFxNow(),
indvd00m@0
  7361
			duration: options.duration,
indvd00m@0
  7362
			tweens: [],
indvd00m@0
  7363
			createTween: function( prop, end ) {
indvd00m@0
  7364
				var tween = jQuery.Tween( elem, animation.opts, prop, end,
indvd00m@0
  7365
						animation.opts.specialEasing[ prop ] || animation.opts.easing );
indvd00m@0
  7366
				animation.tweens.push( tween );
indvd00m@0
  7367
				return tween;
indvd00m@0
  7368
			},
indvd00m@0
  7369
			stop: function( gotoEnd ) {
indvd00m@0
  7370
				var index = 0,
indvd00m@0
  7371
					// if we are going to the end, we want to run all the tweens
indvd00m@0
  7372
					// otherwise we skip this part
indvd00m@0
  7373
					length = gotoEnd ? animation.tweens.length : 0;
indvd00m@0
  7374
				if ( stopped ) {
indvd00m@0
  7375
					return this;
indvd00m@0
  7376
				}
indvd00m@0
  7377
				stopped = true;
indvd00m@0
  7378
				for ( ; index < length ; index++ ) {
indvd00m@0
  7379
					animation.tweens[ index ].run( 1 );
indvd00m@0
  7380
				}
indvd00m@0
  7381
indvd00m@0
  7382
				// resolve when we played the last frame
indvd00m@0
  7383
				// otherwise, reject
indvd00m@0
  7384
				if ( gotoEnd ) {
indvd00m@0
  7385
					deferred.resolveWith( elem, [ animation, gotoEnd ] );
indvd00m@0
  7386
				} else {
indvd00m@0
  7387
					deferred.rejectWith( elem, [ animation, gotoEnd ] );
indvd00m@0
  7388
				}
indvd00m@0
  7389
				return this;
indvd00m@0
  7390
			}
indvd00m@0
  7391
		}),
indvd00m@0
  7392
		props = animation.props;
indvd00m@0
  7393
indvd00m@0
  7394
	propFilter( props, animation.opts.specialEasing );
indvd00m@0
  7395
indvd00m@0
  7396
	for ( ; index < length ; index++ ) {
indvd00m@0
  7397
		result = animationPrefilters[ index ].call( animation, elem, props, animation.opts );
indvd00m@0
  7398
		if ( result ) {
indvd00m@0
  7399
			return result;
indvd00m@0
  7400
		}
indvd00m@0
  7401
	}
indvd00m@0
  7402
indvd00m@0
  7403
	jQuery.map( props, createTween, animation );
indvd00m@0
  7404
indvd00m@0
  7405
	if ( jQuery.isFunction( animation.opts.start ) ) {
indvd00m@0
  7406
		animation.opts.start.call( elem, animation );
indvd00m@0
  7407
	}
indvd00m@0
  7408
indvd00m@0
  7409
	jQuery.fx.timer(
indvd00m@0
  7410
		jQuery.extend( tick, {
indvd00m@0
  7411
			elem: elem,
indvd00m@0
  7412
			anim: animation,
indvd00m@0
  7413
			queue: animation.opts.queue
indvd00m@0
  7414
		})
indvd00m@0
  7415
	);
indvd00m@0
  7416
indvd00m@0
  7417
	// attach callbacks from options
indvd00m@0
  7418
	return animation.progress( animation.opts.progress )
indvd00m@0
  7419
		.done( animation.opts.done, animation.opts.complete )
indvd00m@0
  7420
		.fail( animation.opts.fail )
indvd00m@0
  7421
		.always( animation.opts.always );
indvd00m@0
  7422
}
indvd00m@0
  7423
indvd00m@0
  7424
jQuery.Animation = jQuery.extend( Animation, {
indvd00m@0
  7425
	tweener: function( props, callback ) {
indvd00m@0
  7426
		if ( jQuery.isFunction( props ) ) {
indvd00m@0
  7427
			callback = props;
indvd00m@0
  7428
			props = [ "*" ];
indvd00m@0
  7429
		} else {
indvd00m@0
  7430
			props = props.split(" ");
indvd00m@0
  7431
		}
indvd00m@0
  7432
indvd00m@0
  7433
		var prop,
indvd00m@0
  7434
			index = 0,
indvd00m@0
  7435
			length = props.length;
indvd00m@0
  7436
indvd00m@0
  7437
		for ( ; index < length ; index++ ) {
indvd00m@0
  7438
			prop = props[ index ];
indvd00m@0
  7439
			tweeners[ prop ] = tweeners[ prop ] || [];
indvd00m@0
  7440
			tweeners[ prop ].unshift( callback );
indvd00m@0
  7441
		}
indvd00m@0
  7442
	},
indvd00m@0
  7443
indvd00m@0
  7444
	prefilter: function( callback, prepend ) {
indvd00m@0
  7445
		if ( prepend ) {
indvd00m@0
  7446
			animationPrefilters.unshift( callback );
indvd00m@0
  7447
		} else {
indvd00m@0
  7448
			animationPrefilters.push( callback );
indvd00m@0
  7449
		}
indvd00m@0
  7450
	}
indvd00m@0
  7451
});
indvd00m@0
  7452
indvd00m@0
  7453
jQuery.speed = function( speed, easing, fn ) {
indvd00m@0
  7454
	var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
indvd00m@0
  7455
		complete: fn || !fn && easing ||
indvd00m@0
  7456
			jQuery.isFunction( speed ) && speed,
indvd00m@0
  7457
		duration: speed,
indvd00m@0
  7458
		easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
indvd00m@0
  7459
	};
indvd00m@0
  7460
indvd00m@0
  7461
	opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
indvd00m@0
  7462
		opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
indvd00m@0
  7463
indvd00m@0
  7464
	// normalize opt.queue - true/undefined/null -> "fx"
indvd00m@0
  7465
	if ( opt.queue == null || opt.queue === true ) {
indvd00m@0
  7466
		opt.queue = "fx";
indvd00m@0
  7467
	}
indvd00m@0
  7468
indvd00m@0
  7469
	// Queueing
indvd00m@0
  7470
	opt.old = opt.complete;
indvd00m@0
  7471
indvd00m@0
  7472
	opt.complete = function() {
indvd00m@0
  7473
		if ( jQuery.isFunction( opt.old ) ) {
indvd00m@0
  7474
			opt.old.call( this );
indvd00m@0
  7475
		}
indvd00m@0
  7476
indvd00m@0
  7477
		if ( opt.queue ) {
indvd00m@0
  7478
			jQuery.dequeue( this, opt.queue );
indvd00m@0
  7479
		}
indvd00m@0
  7480
	};
indvd00m@0
  7481
indvd00m@0
  7482
	return opt;
indvd00m@0
  7483
};
indvd00m@0
  7484
indvd00m@0
  7485
jQuery.fn.extend({
indvd00m@0
  7486
	fadeTo: function( speed, to, easing, callback ) {
indvd00m@0
  7487
indvd00m@0
  7488
		// show any hidden elements after setting opacity to 0
indvd00m@0
  7489
		return this.filter( isHidden ).css( "opacity", 0 ).show()
indvd00m@0
  7490
indvd00m@0
  7491
			// animate to the value specified
indvd00m@0
  7492
			.end().animate({ opacity: to }, speed, easing, callback );
indvd00m@0
  7493
	},
indvd00m@0
  7494
	animate: function( prop, speed, easing, callback ) {
indvd00m@0
  7495
		var empty = jQuery.isEmptyObject( prop ),
indvd00m@0
  7496
			optall = jQuery.speed( speed, easing, callback ),
indvd00m@0
  7497
			doAnimation = function() {
indvd00m@0
  7498
				// Operate on a copy of prop so per-property easing won't be lost
indvd00m@0
  7499
				var anim = Animation( this, jQuery.extend( {}, prop ), optall );
indvd00m@0
  7500
indvd00m@0
  7501
				// Empty animations, or finishing resolves immediately
indvd00m@0
  7502
				if ( empty || jQuery._data( this, "finish" ) ) {
indvd00m@0
  7503
					anim.stop( true );
indvd00m@0
  7504
				}
indvd00m@0
  7505
			};
indvd00m@0
  7506
			doAnimation.finish = doAnimation;
indvd00m@0
  7507
indvd00m@0
  7508
		return empty || optall.queue === false ?
indvd00m@0
  7509
			this.each( doAnimation ) :
indvd00m@0
  7510
			this.queue( optall.queue, doAnimation );
indvd00m@0
  7511
	},
indvd00m@0
  7512
	stop: function( type, clearQueue, gotoEnd ) {
indvd00m@0
  7513
		var stopQueue = function( hooks ) {
indvd00m@0
  7514
			var stop = hooks.stop;
indvd00m@0
  7515
			delete hooks.stop;
indvd00m@0
  7516
			stop( gotoEnd );
indvd00m@0
  7517
		};
indvd00m@0
  7518
indvd00m@0
  7519
		if ( typeof type !== "string" ) {
indvd00m@0
  7520
			gotoEnd = clearQueue;
indvd00m@0
  7521
			clearQueue = type;
indvd00m@0
  7522
			type = undefined;
indvd00m@0
  7523
		}
indvd00m@0
  7524
		if ( clearQueue && type !== false ) {
indvd00m@0
  7525
			this.queue( type || "fx", [] );
indvd00m@0
  7526
		}
indvd00m@0
  7527
indvd00m@0
  7528
		return this.each(function() {
indvd00m@0
  7529
			var dequeue = true,
indvd00m@0
  7530
				index = type != null && type + "queueHooks",
indvd00m@0
  7531
				timers = jQuery.timers,
indvd00m@0
  7532
				data = jQuery._data( this );
indvd00m@0
  7533
indvd00m@0
  7534
			if ( index ) {
indvd00m@0
  7535
				if ( data[ index ] && data[ index ].stop ) {
indvd00m@0
  7536
					stopQueue( data[ index ] );
indvd00m@0
  7537
				}
indvd00m@0
  7538
			} else {
indvd00m@0
  7539
				for ( index in data ) {
indvd00m@0
  7540
					if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {
indvd00m@0
  7541
						stopQueue( data[ index ] );
indvd00m@0
  7542
					}
indvd00m@0
  7543
				}
indvd00m@0
  7544
			}
indvd00m@0
  7545
indvd00m@0
  7546
			for ( index = timers.length; index--; ) {
indvd00m@0
  7547
				if ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) {
indvd00m@0
  7548
					timers[ index ].anim.stop( gotoEnd );
indvd00m@0
  7549
					dequeue = false;
indvd00m@0
  7550
					timers.splice( index, 1 );
indvd00m@0
  7551
				}
indvd00m@0
  7552
			}
indvd00m@0
  7553
indvd00m@0
  7554
			// start the next in the queue if the last step wasn't forced
indvd00m@0
  7555
			// timers currently will call their complete callbacks, which will dequeue
indvd00m@0
  7556
			// but only if they were gotoEnd
indvd00m@0
  7557
			if ( dequeue || !gotoEnd ) {
indvd00m@0
  7558
				jQuery.dequeue( this, type );
indvd00m@0
  7559
			}
indvd00m@0
  7560
		});
indvd00m@0
  7561
	},
indvd00m@0
  7562
	finish: function( type ) {
indvd00m@0
  7563
		if ( type !== false ) {
indvd00m@0
  7564
			type = type || "fx";
indvd00m@0
  7565
		}
indvd00m@0
  7566
		return this.each(function() {
indvd00m@0
  7567
			var index,
indvd00m@0
  7568
				data = jQuery._data( this ),
indvd00m@0
  7569
				queue = data[ type + "queue" ],
indvd00m@0
  7570
				hooks = data[ type + "queueHooks" ],
indvd00m@0
  7571
				timers = jQuery.timers,
indvd00m@0
  7572
				length = queue ? queue.length : 0;
indvd00m@0
  7573
indvd00m@0
  7574
			// enable finishing flag on private data
indvd00m@0
  7575
			data.finish = true;
indvd00m@0
  7576
indvd00m@0
  7577
			// empty the queue first
indvd00m@0
  7578
			jQuery.queue( this, type, [] );
indvd00m@0
  7579
indvd00m@0
  7580
			if ( hooks && hooks.stop ) {
indvd00m@0
  7581
				hooks.stop.call( this, true );
indvd00m@0
  7582
			}
indvd00m@0
  7583
indvd00m@0
  7584
			// look for any active animations, and finish them
indvd00m@0
  7585
			for ( index = timers.length; index--; ) {
indvd00m@0
  7586
				if ( timers[ index ].elem === this && timers[ index ].queue === type ) {
indvd00m@0
  7587
					timers[ index ].anim.stop( true );
indvd00m@0
  7588
					timers.splice( index, 1 );
indvd00m@0
  7589
				}
indvd00m@0
  7590
			}
indvd00m@0
  7591
indvd00m@0
  7592
			// look for any animations in the old queue and finish them
indvd00m@0
  7593
			for ( index = 0; index < length; index++ ) {
indvd00m@0
  7594
				if ( queue[ index ] && queue[ index ].finish ) {
indvd00m@0
  7595
					queue[ index ].finish.call( this );
indvd00m@0
  7596
				}
indvd00m@0
  7597
			}
indvd00m@0
  7598
indvd00m@0
  7599
			// turn off finishing flag
indvd00m@0
  7600
			delete data.finish;
indvd00m@0
  7601
		});
indvd00m@0
  7602
	}
indvd00m@0
  7603
});
indvd00m@0
  7604
indvd00m@0
  7605
jQuery.each([ "toggle", "show", "hide" ], function( i, name ) {
indvd00m@0
  7606
	var cssFn = jQuery.fn[ name ];
indvd00m@0
  7607
	jQuery.fn[ name ] = function( speed, easing, callback ) {
indvd00m@0
  7608
		return speed == null || typeof speed === "boolean" ?
indvd00m@0
  7609
			cssFn.apply( this, arguments ) :
indvd00m@0
  7610
			this.animate( genFx( name, true ), speed, easing, callback );
indvd00m@0
  7611
	};
indvd00m@0
  7612
});
indvd00m@0
  7613
indvd00m@0
  7614
// Generate shortcuts for custom animations
indvd00m@0
  7615
jQuery.each({
indvd00m@0
  7616
	slideDown: genFx("show"),
indvd00m@0
  7617
	slideUp: genFx("hide"),
indvd00m@0
  7618
	slideToggle: genFx("toggle"),
indvd00m@0
  7619
	fadeIn: { opacity: "show" },
indvd00m@0
  7620
	fadeOut: { opacity: "hide" },
indvd00m@0
  7621
	fadeToggle: { opacity: "toggle" }
indvd00m@0
  7622
}, function( name, props ) {
indvd00m@0
  7623
	jQuery.fn[ name ] = function( speed, easing, callback ) {
indvd00m@0
  7624
		return this.animate( props, speed, easing, callback );
indvd00m@0
  7625
	};
indvd00m@0
  7626
});
indvd00m@0
  7627
indvd00m@0
  7628
jQuery.timers = [];
indvd00m@0
  7629
jQuery.fx.tick = function() {
indvd00m@0
  7630
	var timer,
indvd00m@0
  7631
		timers = jQuery.timers,
indvd00m@0
  7632
		i = 0;
indvd00m@0
  7633
indvd00m@0
  7634
	fxNow = jQuery.now();
indvd00m@0
  7635
indvd00m@0
  7636
	for ( ; i < timers.length; i++ ) {
indvd00m@0
  7637
		timer = timers[ i ];
indvd00m@0
  7638
		// Checks the timer has not already been removed
indvd00m@0
  7639
		if ( !timer() && timers[ i ] === timer ) {
indvd00m@0
  7640
			timers.splice( i--, 1 );
indvd00m@0
  7641
		}
indvd00m@0
  7642
	}
indvd00m@0
  7643
indvd00m@0
  7644
	if ( !timers.length ) {
indvd00m@0
  7645
		jQuery.fx.stop();
indvd00m@0
  7646
	}
indvd00m@0
  7647
	fxNow = undefined;
indvd00m@0
  7648
};
indvd00m@0
  7649
indvd00m@0
  7650
jQuery.fx.timer = function( timer ) {
indvd00m@0
  7651
	jQuery.timers.push( timer );
indvd00m@0
  7652
	if ( timer() ) {
indvd00m@0
  7653
		jQuery.fx.start();
indvd00m@0
  7654
	} else {
indvd00m@0
  7655
		jQuery.timers.pop();
indvd00m@0
  7656
	}
indvd00m@0
  7657
};
indvd00m@0
  7658
indvd00m@0
  7659
jQuery.fx.interval = 13;
indvd00m@0
  7660
indvd00m@0
  7661
jQuery.fx.start = function() {
indvd00m@0
  7662
	if ( !timerId ) {
indvd00m@0
  7663
		timerId = setInterval( jQuery.fx.tick, jQuery.fx.interval );
indvd00m@0
  7664
	}
indvd00m@0
  7665
};
indvd00m@0
  7666
indvd00m@0
  7667
jQuery.fx.stop = function() {
indvd00m@0
  7668
	clearInterval( timerId );
indvd00m@0
  7669
	timerId = null;
indvd00m@0
  7670
};
indvd00m@0
  7671
indvd00m@0
  7672
jQuery.fx.speeds = {
indvd00m@0
  7673
	slow: 600,
indvd00m@0
  7674
	fast: 200,
indvd00m@0
  7675
	// Default speed
indvd00m@0
  7676
	_default: 400
indvd00m@0
  7677
};
indvd00m@0
  7678
indvd00m@0
  7679
indvd00m@0
  7680
// Based off of the plugin by Clint Helfers, with permission.
indvd00m@0
  7681
// http://blindsignals.com/index.php/2009/07/jquery-delay/
indvd00m@0
  7682
jQuery.fn.delay = function( time, type ) {
indvd00m@0
  7683
	time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
indvd00m@0
  7684
	type = type || "fx";
indvd00m@0
  7685
indvd00m@0
  7686
	return this.queue( type, function( next, hooks ) {
indvd00m@0
  7687
		var timeout = setTimeout( next, time );
indvd00m@0
  7688
		hooks.stop = function() {
indvd00m@0
  7689
			clearTimeout( timeout );
indvd00m@0
  7690
		};
indvd00m@0
  7691
	});
indvd00m@0
  7692
};
indvd00m@0
  7693
indvd00m@0
  7694
indvd00m@0
  7695
(function() {
indvd00m@0
  7696
	// Minified: var a,b,c,d,e
indvd00m@0
  7697
	var input, div, select, a, opt;
indvd00m@0
  7698
indvd00m@0
  7699
	// Setup
indvd00m@0
  7700
	div = document.createElement( "div" );
indvd00m@0
  7701
	div.setAttribute( "className", "t" );
indvd00m@0
  7702
	div.innerHTML = "  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";
indvd00m@0
  7703
	a = div.getElementsByTagName("a")[ 0 ];
indvd00m@0
  7704
indvd00m@0
  7705
	// First batch of tests.
indvd00m@0
  7706
	select = document.createElement("select");
indvd00m@0
  7707
	opt = select.appendChild( document.createElement("option") );
indvd00m@0
  7708
	input = div.getElementsByTagName("input")[ 0 ];
indvd00m@0
  7709
indvd00m@0
  7710
	a.style.cssText = "top:1px";
indvd00m@0
  7711
indvd00m@0
  7712
	// Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)
indvd00m@0
  7713
	support.getSetAttribute = div.className !== "t";
indvd00m@0
  7714
indvd00m@0
  7715
	// Get the style information from getAttribute
indvd00m@0
  7716
	// (IE uses .cssText instead)
indvd00m@0
  7717
	support.style = /top/.test( a.getAttribute("style") );
indvd00m@0
  7718
indvd00m@0
  7719
	// Make sure that URLs aren't manipulated
indvd00m@0
  7720
	// (IE normalizes it by default)
indvd00m@0
  7721
	support.hrefNormalized = a.getAttribute("href") === "/a";
indvd00m@0
  7722
indvd00m@0
  7723
	// Check the default checkbox/radio value ("" on WebKit; "on" elsewhere)
indvd00m@0
  7724
	support.checkOn = !!input.value;
indvd00m@0
  7725
indvd00m@0
  7726
	// Make sure that a selected-by-default option has a working selected property.
indvd00m@0
  7727
	// (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
indvd00m@0
  7728
	support.optSelected = opt.selected;
indvd00m@0
  7729
indvd00m@0
  7730
	// Tests for enctype support on a form (#6743)
indvd00m@0
  7731
	support.enctype = !!document.createElement("form").enctype;
indvd00m@0
  7732
indvd00m@0
  7733
	// Make sure that the options inside disabled selects aren't marked as disabled
indvd00m@0
  7734
	// (WebKit marks them as disabled)
indvd00m@0
  7735
	select.disabled = true;
indvd00m@0
  7736
	support.optDisabled = !opt.disabled;
indvd00m@0
  7737
indvd00m@0
  7738
	// Support: IE8 only
indvd00m@0
  7739
	// Check if we can trust getAttribute("value")
indvd00m@0
  7740
	input = document.createElement( "input" );
indvd00m@0
  7741
	input.setAttribute( "value", "" );
indvd00m@0
  7742
	support.input = input.getAttribute( "value" ) === "";
indvd00m@0
  7743
indvd00m@0
  7744
	// Check if an input maintains its value after becoming a radio
indvd00m@0
  7745
	input.value = "t";
indvd00m@0
  7746
	input.setAttribute( "type", "radio" );
indvd00m@0
  7747
	support.radioValue = input.value === "t";
indvd00m@0
  7748
})();
indvd00m@0
  7749
indvd00m@0
  7750
indvd00m@0
  7751
var rreturn = /\r/g;
indvd00m@0
  7752
indvd00m@0
  7753
jQuery.fn.extend({
indvd00m@0
  7754
	val: function( value ) {
indvd00m@0
  7755
		var hooks, ret, isFunction,
indvd00m@0
  7756
			elem = this[0];
indvd00m@0
  7757
indvd00m@0
  7758
		if ( !arguments.length ) {
indvd00m@0
  7759
			if ( elem ) {
indvd00m@0
  7760
				hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ];
indvd00m@0
  7761
indvd00m@0
  7762
				if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {
indvd00m@0
  7763
					return ret;
indvd00m@0
  7764
				}
indvd00m@0
  7765
indvd00m@0
  7766
				ret = elem.value;
indvd00m@0
  7767
indvd00m@0
  7768
				return typeof ret === "string" ?
indvd00m@0
  7769
					// handle most common string cases
indvd00m@0
  7770
					ret.replace(rreturn, "") :
indvd00m@0
  7771
					// handle cases where value is null/undef or number
indvd00m@0
  7772
					ret == null ? "" : ret;
indvd00m@0
  7773
			}
indvd00m@0
  7774
indvd00m@0
  7775
			return;
indvd00m@0
  7776
		}
indvd00m@0
  7777
indvd00m@0
  7778
		isFunction = jQuery.isFunction( value );
indvd00m@0
  7779
indvd00m@0
  7780
		return this.each(function( i ) {
indvd00m@0
  7781
			var val;
indvd00m@0
  7782
indvd00m@0
  7783
			if ( this.nodeType !== 1 ) {
indvd00m@0
  7784
				return;
indvd00m@0
  7785
			}
indvd00m@0
  7786
indvd00m@0
  7787
			if ( isFunction ) {
indvd00m@0
  7788
				val = value.call( this, i, jQuery( this ).val() );
indvd00m@0
  7789
			} else {
indvd00m@0
  7790
				val = value;
indvd00m@0
  7791
			}
indvd00m@0
  7792
indvd00m@0
  7793
			// Treat null/undefined as ""; convert numbers to string
indvd00m@0
  7794
			if ( val == null ) {
indvd00m@0
  7795
				val = "";
indvd00m@0
  7796
			} else if ( typeof val === "number" ) {
indvd00m@0
  7797
				val += "";
indvd00m@0
  7798
			} else if ( jQuery.isArray( val ) ) {
indvd00m@0
  7799
				val = jQuery.map( val, function( value ) {
indvd00m@0
  7800
					return value == null ? "" : value + "";
indvd00m@0
  7801
				});
indvd00m@0
  7802
			}
indvd00m@0
  7803
indvd00m@0
  7804
			hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];
indvd00m@0
  7805
indvd00m@0
  7806
			// If set returns undefined, fall back to normal setting
indvd00m@0
  7807
			if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {
indvd00m@0
  7808
				this.value = val;
indvd00m@0
  7809
			}
indvd00m@0
  7810
		});
indvd00m@0
  7811
	}
indvd00m@0
  7812
});
indvd00m@0
  7813
indvd00m@0
  7814
jQuery.extend({
indvd00m@0
  7815
	valHooks: {
indvd00m@0
  7816
		option: {
indvd00m@0
  7817
			get: function( elem ) {
indvd00m@0
  7818
				var val = jQuery.find.attr( elem, "value" );
indvd00m@0
  7819
				return val != null ?
indvd00m@0
  7820
					val :
indvd00m@0
  7821
					// Support: IE10-11+
indvd00m@0
  7822
					// option.text throws exceptions (#14686, #14858)
indvd00m@0
  7823
					jQuery.trim( jQuery.text( elem ) );
indvd00m@0
  7824
			}
indvd00m@0
  7825
		},
indvd00m@0
  7826
		select: {
indvd00m@0
  7827
			get: function( elem ) {
indvd00m@0
  7828
				var value, option,
indvd00m@0
  7829
					options = elem.options,
indvd00m@0
  7830
					index = elem.selectedIndex,
indvd00m@0
  7831
					one = elem.type === "select-one" || index < 0,
indvd00m@0
  7832
					values = one ? null : [],
indvd00m@0
  7833
					max = one ? index + 1 : options.length,
indvd00m@0
  7834
					i = index < 0 ?
indvd00m@0
  7835
						max :
indvd00m@0
  7836
						one ? index : 0;
indvd00m@0
  7837
indvd00m@0
  7838
				// Loop through all the selected options
indvd00m@0
  7839
				for ( ; i < max; i++ ) {
indvd00m@0
  7840
					option = options[ i ];
indvd00m@0
  7841
indvd00m@0
  7842
					// oldIE doesn't update selected after form reset (#2551)
indvd00m@0
  7843
					if ( ( option.selected || i === index ) &&
indvd00m@0
  7844
							// Don't return options that are disabled or in a disabled optgroup
indvd00m@0
  7845
							( support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null ) &&
indvd00m@0
  7846
							( !option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) {
indvd00m@0
  7847
indvd00m@0
  7848
						// Get the specific value for the option
indvd00m@0
  7849
						value = jQuery( option ).val();
indvd00m@0
  7850
indvd00m@0
  7851
						// We don't need an array for one selects
indvd00m@0
  7852
						if ( one ) {
indvd00m@0
  7853
							return value;
indvd00m@0
  7854
						}
indvd00m@0
  7855
indvd00m@0
  7856
						// Multi-Selects return an array
indvd00m@0
  7857
						values.push( value );
indvd00m@0
  7858
					}
indvd00m@0
  7859
				}
indvd00m@0
  7860
indvd00m@0
  7861
				return values;
indvd00m@0
  7862
			},
indvd00m@0
  7863
indvd00m@0
  7864
			set: function( elem, value ) {
indvd00m@0
  7865
				var optionSet, option,
indvd00m@0
  7866
					options = elem.options,
indvd00m@0
  7867
					values = jQuery.makeArray( value ),
indvd00m@0
  7868
					i = options.length;
indvd00m@0
  7869
indvd00m@0
  7870
				while ( i-- ) {
indvd00m@0
  7871
					option = options[ i ];
indvd00m@0
  7872
indvd00m@0
  7873
					if ( jQuery.inArray( jQuery.valHooks.option.get( option ), values ) >= 0 ) {
indvd00m@0
  7874
indvd00m@0
  7875
						// Support: IE6
indvd00m@0
  7876
						// When new option element is added to select box we need to
indvd00m@0
  7877
						// force reflow of newly added node in order to workaround delay
indvd00m@0
  7878
						// of initialization properties
indvd00m@0
  7879
						try {
indvd00m@0
  7880
							option.selected = optionSet = true;
indvd00m@0
  7881
indvd00m@0
  7882
						} catch ( _ ) {
indvd00m@0
  7883
indvd00m@0
  7884
							// Will be executed only in IE6
indvd00m@0
  7885
							option.scrollHeight;
indvd00m@0
  7886
						}
indvd00m@0
  7887
indvd00m@0
  7888
					} else {
indvd00m@0
  7889
						option.selected = false;
indvd00m@0
  7890
					}
indvd00m@0
  7891
				}
indvd00m@0
  7892
indvd00m@0
  7893
				// Force browsers to behave consistently when non-matching value is set
indvd00m@0
  7894
				if ( !optionSet ) {
indvd00m@0
  7895
					elem.selectedIndex = -1;
indvd00m@0
  7896
				}
indvd00m@0
  7897
indvd00m@0
  7898
				return options;
indvd00m@0
  7899
			}
indvd00m@0
  7900
		}
indvd00m@0
  7901
	}
indvd00m@0
  7902
});
indvd00m@0
  7903
indvd00m@0
  7904
// Radios and checkboxes getter/setter
indvd00m@0
  7905
jQuery.each([ "radio", "checkbox" ], function() {
indvd00m@0
  7906
	jQuery.valHooks[ this ] = {
indvd00m@0
  7907
		set: function( elem, value ) {
indvd00m@0
  7908
			if ( jQuery.isArray( value ) ) {
indvd00m@0
  7909
				return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );
indvd00m@0
  7910
			}
indvd00m@0
  7911
		}
indvd00m@0
  7912
	};
indvd00m@0
  7913
	if ( !support.checkOn ) {
indvd00m@0
  7914
		jQuery.valHooks[ this ].get = function( elem ) {
indvd00m@0
  7915
			// Support: Webkit
indvd00m@0
  7916
			// "" is returned instead of "on" if a value isn't specified
indvd00m@0
  7917
			return elem.getAttribute("value") === null ? "on" : elem.value;
indvd00m@0
  7918
		};
indvd00m@0
  7919
	}
indvd00m@0
  7920
});
indvd00m@0
  7921
indvd00m@0
  7922
indvd00m@0
  7923
indvd00m@0
  7924
indvd00m@0
  7925
var nodeHook, boolHook,
indvd00m@0
  7926
	attrHandle = jQuery.expr.attrHandle,
indvd00m@0
  7927
	ruseDefault = /^(?:checked|selected)$/i,
indvd00m@0
  7928
	getSetAttribute = support.getSetAttribute,
indvd00m@0
  7929
	getSetInput = support.input;
indvd00m@0
  7930
indvd00m@0
  7931
jQuery.fn.extend({
indvd00m@0
  7932
	attr: function( name, value ) {
indvd00m@0
  7933
		return access( this, jQuery.attr, name, value, arguments.length > 1 );
indvd00m@0
  7934
	},
indvd00m@0
  7935
indvd00m@0
  7936
	removeAttr: function( name ) {
indvd00m@0
  7937
		return this.each(function() {
indvd00m@0
  7938
			jQuery.removeAttr( this, name );
indvd00m@0
  7939
		});
indvd00m@0
  7940
	}
indvd00m@0
  7941
});
indvd00m@0
  7942
indvd00m@0
  7943
jQuery.extend({
indvd00m@0
  7944
	attr: function( elem, name, value ) {
indvd00m@0
  7945
		var hooks, ret,
indvd00m@0
  7946
			nType = elem.nodeType;
indvd00m@0
  7947
indvd00m@0
  7948
		// don't get/set attributes on text, comment and attribute nodes
indvd00m@0
  7949
		if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
indvd00m@0
  7950
			return;
indvd00m@0
  7951
		}
indvd00m@0
  7952
indvd00m@0
  7953
		// Fallback to prop when attributes are not supported
indvd00m@0
  7954
		if ( typeof elem.getAttribute === strundefined ) {
indvd00m@0
  7955
			return jQuery.prop( elem, name, value );
indvd00m@0
  7956
		}
indvd00m@0
  7957
indvd00m@0
  7958
		// All attributes are lowercase
indvd00m@0
  7959
		// Grab necessary hook if one is defined
indvd00m@0
  7960
		if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
indvd00m@0
  7961
			name = name.toLowerCase();
indvd00m@0
  7962
			hooks = jQuery.attrHooks[ name ] ||
indvd00m@0
  7963
				( jQuery.expr.match.bool.test( name ) ? boolHook : nodeHook );
indvd00m@0
  7964
		}
indvd00m@0
  7965
indvd00m@0
  7966
		if ( value !== undefined ) {
indvd00m@0
  7967
indvd00m@0
  7968
			if ( value === null ) {
indvd00m@0
  7969
				jQuery.removeAttr( elem, name );
indvd00m@0
  7970
indvd00m@0
  7971
			} else if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
indvd00m@0
  7972
				return ret;
indvd00m@0
  7973
indvd00m@0
  7974
			} else {
indvd00m@0
  7975
				elem.setAttribute( name, value + "" );
indvd00m@0
  7976
				return value;
indvd00m@0
  7977
			}
indvd00m@0
  7978
indvd00m@0
  7979
		} else if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
indvd00m@0
  7980
			return ret;
indvd00m@0
  7981
indvd00m@0
  7982
		} else {
indvd00m@0
  7983
			ret = jQuery.find.attr( elem, name );
indvd00m@0
  7984
indvd00m@0
  7985
			// Non-existent attributes return null, we normalize to undefined
indvd00m@0
  7986
			return ret == null ?
indvd00m@0
  7987
				undefined :
indvd00m@0
  7988
				ret;
indvd00m@0
  7989
		}
indvd00m@0
  7990
	},
indvd00m@0
  7991
indvd00m@0
  7992
	removeAttr: function( elem, value ) {
indvd00m@0
  7993
		var name, propName,
indvd00m@0
  7994
			i = 0,
indvd00m@0
  7995
			attrNames = value && value.match( rnotwhite );
indvd00m@0
  7996
indvd00m@0
  7997
		if ( attrNames && elem.nodeType === 1 ) {
indvd00m@0
  7998
			while ( (name = attrNames[i++]) ) {
indvd00m@0
  7999
				propName = jQuery.propFix[ name ] || name;
indvd00m@0
  8000
indvd00m@0
  8001
				// Boolean attributes get special treatment (#10870)
indvd00m@0
  8002
				if ( jQuery.expr.match.bool.test( name ) ) {
indvd00m@0
  8003
					// Set corresponding property to false
indvd00m@0
  8004
					if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) {
indvd00m@0
  8005
						elem[ propName ] = false;
indvd00m@0
  8006
					// Support: IE<9
indvd00m@0
  8007
					// Also clear defaultChecked/defaultSelected (if appropriate)
indvd00m@0
  8008
					} else {
indvd00m@0
  8009
						elem[ jQuery.camelCase( "default-" + name ) ] =
indvd00m@0
  8010
							elem[ propName ] = false;
indvd00m@0
  8011
					}
indvd00m@0
  8012
indvd00m@0
  8013
				// See #9699 for explanation of this approach (setting first, then removal)
indvd00m@0
  8014
				} else {
indvd00m@0
  8015
					jQuery.attr( elem, name, "" );
indvd00m@0
  8016
				}
indvd00m@0
  8017
indvd00m@0
  8018
				elem.removeAttribute( getSetAttribute ? name : propName );
indvd00m@0
  8019
			}
indvd00m@0
  8020
		}
indvd00m@0
  8021
	},
indvd00m@0
  8022
indvd00m@0
  8023
	attrHooks: {
indvd00m@0
  8024
		type: {
indvd00m@0
  8025
			set: function( elem, value ) {
indvd00m@0
  8026
				if ( !support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) {
indvd00m@0
  8027
					// Setting the type on a radio button after the value resets the value in IE6-9
indvd00m@0
  8028
					// Reset value to default in case type is set after value during creation
indvd00m@0
  8029
					var val = elem.value;
indvd00m@0
  8030
					elem.setAttribute( "type", value );
indvd00m@0
  8031
					if ( val ) {
indvd00m@0
  8032
						elem.value = val;
indvd00m@0
  8033
					}
indvd00m@0
  8034
					return value;
indvd00m@0
  8035
				}
indvd00m@0
  8036
			}
indvd00m@0
  8037
		}
indvd00m@0
  8038
	}
indvd00m@0
  8039
});
indvd00m@0
  8040
indvd00m@0
  8041
// Hook for boolean attributes
indvd00m@0
  8042
boolHook = {
indvd00m@0
  8043
	set: function( elem, value, name ) {
indvd00m@0
  8044
		if ( value === false ) {
indvd00m@0
  8045
			// Remove boolean attributes when set to false
indvd00m@0
  8046
			jQuery.removeAttr( elem, name );
indvd00m@0
  8047
		} else if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) {
indvd00m@0
  8048
			// IE<8 needs the *property* name
indvd00m@0
  8049
			elem.setAttribute( !getSetAttribute && jQuery.propFix[ name ] || name, name );
indvd00m@0
  8050
indvd00m@0
  8051
		// Use defaultChecked and defaultSelected for oldIE
indvd00m@0
  8052
		} else {
indvd00m@0
  8053
			elem[ jQuery.camelCase( "default-" + name ) ] = elem[ name ] = true;
indvd00m@0
  8054
		}
indvd00m@0
  8055
indvd00m@0
  8056
		return name;
indvd00m@0
  8057
	}
indvd00m@0
  8058
};
indvd00m@0
  8059
indvd00m@0
  8060
// Retrieve booleans specially
indvd00m@0
  8061
jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {
indvd00m@0
  8062
indvd00m@0
  8063
	var getter = attrHandle[ name ] || jQuery.find.attr;
indvd00m@0
  8064
indvd00m@0
  8065
	attrHandle[ name ] = getSetInput && getSetAttribute || !ruseDefault.test( name ) ?
indvd00m@0
  8066
		function( elem, name, isXML ) {
indvd00m@0
  8067
			var ret, handle;
indvd00m@0
  8068
			if ( !isXML ) {
indvd00m@0
  8069
				// Avoid an infinite loop by temporarily removing this function from the getter
indvd00m@0
  8070
				handle = attrHandle[ name ];
indvd00m@0
  8071
				attrHandle[ name ] = ret;
indvd00m@0
  8072
				ret = getter( elem, name, isXML ) != null ?
indvd00m@0
  8073
					name.toLowerCase() :
indvd00m@0
  8074
					null;
indvd00m@0
  8075
				attrHandle[ name ] = handle;
indvd00m@0
  8076
			}
indvd00m@0
  8077
			return ret;
indvd00m@0
  8078
		} :
indvd00m@0
  8079
		function( elem, name, isXML ) {
indvd00m@0
  8080
			if ( !isXML ) {
indvd00m@0
  8081
				return elem[ jQuery.camelCase( "default-" + name ) ] ?
indvd00m@0
  8082
					name.toLowerCase() :
indvd00m@0
  8083
					null;
indvd00m@0
  8084
			}
indvd00m@0
  8085
		};
indvd00m@0
  8086
});
indvd00m@0
  8087
indvd00m@0
  8088
// fix oldIE attroperties
indvd00m@0
  8089
if ( !getSetInput || !getSetAttribute ) {
indvd00m@0
  8090
	jQuery.attrHooks.value = {
indvd00m@0
  8091
		set: function( elem, value, name ) {
indvd00m@0
  8092
			if ( jQuery.nodeName( elem, "input" ) ) {
indvd00m@0
  8093
				// Does not return so that setAttribute is also used
indvd00m@0
  8094
				elem.defaultValue = value;
indvd00m@0
  8095
			} else {
indvd00m@0
  8096
				// Use nodeHook if defined (#1954); otherwise setAttribute is fine
indvd00m@0
  8097
				return nodeHook && nodeHook.set( elem, value, name );
indvd00m@0
  8098
			}
indvd00m@0
  8099
		}
indvd00m@0
  8100
	};
indvd00m@0
  8101
}
indvd00m@0
  8102
indvd00m@0
  8103
// IE6/7 do not support getting/setting some attributes with get/setAttribute
indvd00m@0
  8104
if ( !getSetAttribute ) {
indvd00m@0
  8105
indvd00m@0
  8106
	// Use this for any attribute in IE6/7
indvd00m@0
  8107
	// This fixes almost every IE6/7 issue
indvd00m@0
  8108
	nodeHook = {
indvd00m@0
  8109
		set: function( elem, value, name ) {
indvd00m@0
  8110
			// Set the existing or create a new attribute node
indvd00m@0
  8111
			var ret = elem.getAttributeNode( name );
indvd00m@0
  8112
			if ( !ret ) {
indvd00m@0
  8113
				elem.setAttributeNode(
indvd00m@0
  8114
					(ret = elem.ownerDocument.createAttribute( name ))
indvd00m@0
  8115
				);
indvd00m@0
  8116
			}
indvd00m@0
  8117
indvd00m@0
  8118
			ret.value = value += "";
indvd00m@0
  8119
indvd00m@0
  8120
			// Break association with cloned elements by also using setAttribute (#9646)
indvd00m@0
  8121
			if ( name === "value" || value === elem.getAttribute( name ) ) {
indvd00m@0
  8122
				return value;
indvd00m@0
  8123
			}
indvd00m@0
  8124
		}
indvd00m@0
  8125
	};
indvd00m@0
  8126
indvd00m@0
  8127
	// Some attributes are constructed with empty-string values when not defined
indvd00m@0
  8128
	attrHandle.id = attrHandle.name = attrHandle.coords =
indvd00m@0
  8129
		function( elem, name, isXML ) {
indvd00m@0
  8130
			var ret;
indvd00m@0
  8131
			if ( !isXML ) {
indvd00m@0
  8132
				return (ret = elem.getAttributeNode( name )) && ret.value !== "" ?
indvd00m@0
  8133
					ret.value :
indvd00m@0
  8134
					null;
indvd00m@0
  8135
			}
indvd00m@0
  8136
		};
indvd00m@0
  8137
indvd00m@0
  8138
	// Fixing value retrieval on a button requires this module
indvd00m@0
  8139
	jQuery.valHooks.button = {
indvd00m@0
  8140
		get: function( elem, name ) {
indvd00m@0
  8141
			var ret = elem.getAttributeNode( name );
indvd00m@0
  8142
			if ( ret && ret.specified ) {
indvd00m@0
  8143
				return ret.value;
indvd00m@0
  8144
			}
indvd00m@0
  8145
		},
indvd00m@0
  8146
		set: nodeHook.set
indvd00m@0
  8147
	};
indvd00m@0
  8148
indvd00m@0
  8149
	// Set contenteditable to false on removals(#10429)
indvd00m@0
  8150
	// Setting to empty string throws an error as an invalid value
indvd00m@0
  8151
	jQuery.attrHooks.contenteditable = {
indvd00m@0
  8152
		set: function( elem, value, name ) {
indvd00m@0
  8153
			nodeHook.set( elem, value === "" ? false : value, name );
indvd00m@0
  8154
		}
indvd00m@0
  8155
	};
indvd00m@0
  8156
indvd00m@0
  8157
	// Set width and height to auto instead of 0 on empty string( Bug #8150 )
indvd00m@0
  8158
	// This is for removals
indvd00m@0
  8159
	jQuery.each([ "width", "height" ], function( i, name ) {
indvd00m@0
  8160
		jQuery.attrHooks[ name ] = {
indvd00m@0
  8161
			set: function( elem, value ) {
indvd00m@0
  8162
				if ( value === "" ) {
indvd00m@0
  8163
					elem.setAttribute( name, "auto" );
indvd00m@0
  8164
					return value;
indvd00m@0
  8165
				}
indvd00m@0
  8166
			}
indvd00m@0
  8167
		};
indvd00m@0
  8168
	});
indvd00m@0
  8169
}
indvd00m@0
  8170
indvd00m@0
  8171
if ( !support.style ) {
indvd00m@0
  8172
	jQuery.attrHooks.style = {
indvd00m@0
  8173
		get: function( elem ) {
indvd00m@0
  8174
			// Return undefined in the case of empty string
indvd00m@0
  8175
			// Note: IE uppercases css property names, but if we were to .toLowerCase()
indvd00m@0
  8176
			// .cssText, that would destroy case senstitivity in URL's, like in "background"
indvd00m@0
  8177
			return elem.style.cssText || undefined;
indvd00m@0
  8178
		},
indvd00m@0
  8179
		set: function( elem, value ) {
indvd00m@0
  8180
			return ( elem.style.cssText = value + "" );
indvd00m@0
  8181
		}
indvd00m@0
  8182
	};
indvd00m@0
  8183
}
indvd00m@0
  8184
indvd00m@0
  8185
indvd00m@0
  8186
indvd00m@0
  8187
indvd00m@0
  8188
var rfocusable = /^(?:input|select|textarea|button|object)$/i,
indvd00m@0
  8189
	rclickable = /^(?:a|area)$/i;
indvd00m@0
  8190
indvd00m@0
  8191
jQuery.fn.extend({
indvd00m@0
  8192
	prop: function( name, value ) {
indvd00m@0
  8193
		return access( this, jQuery.prop, name, value, arguments.length > 1 );
indvd00m@0
  8194
	},
indvd00m@0
  8195
indvd00m@0
  8196
	removeProp: function( name ) {
indvd00m@0
  8197
		name = jQuery.propFix[ name ] || name;
indvd00m@0
  8198
		return this.each(function() {
indvd00m@0
  8199
			// try/catch handles cases where IE balks (such as removing a property on window)
indvd00m@0
  8200
			try {
indvd00m@0
  8201
				this[ name ] = undefined;
indvd00m@0
  8202
				delete this[ name ];
indvd00m@0
  8203
			} catch( e ) {}
indvd00m@0
  8204
		});
indvd00m@0
  8205
	}
indvd00m@0
  8206
});
indvd00m@0
  8207
indvd00m@0
  8208
jQuery.extend({
indvd00m@0
  8209
	propFix: {
indvd00m@0
  8210
		"for": "htmlFor",
indvd00m@0
  8211
		"class": "className"
indvd00m@0
  8212
	},
indvd00m@0
  8213
indvd00m@0
  8214
	prop: function( elem, name, value ) {
indvd00m@0
  8215
		var ret, hooks, notxml,
indvd00m@0
  8216
			nType = elem.nodeType;
indvd00m@0
  8217
indvd00m@0
  8218
		// don't get/set properties on text, comment and attribute nodes
indvd00m@0
  8219
		if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
indvd00m@0
  8220
			return;
indvd00m@0
  8221
		}
indvd00m@0
  8222
indvd00m@0
  8223
		notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
indvd00m@0
  8224
indvd00m@0
  8225
		if ( notxml ) {
indvd00m@0
  8226
			// Fix name and attach hooks
indvd00m@0
  8227
			name = jQuery.propFix[ name ] || name;
indvd00m@0
  8228
			hooks = jQuery.propHooks[ name ];
indvd00m@0
  8229
		}
indvd00m@0
  8230
indvd00m@0
  8231
		if ( value !== undefined ) {
indvd00m@0
  8232
			return hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ?
indvd00m@0
  8233
				ret :
indvd00m@0
  8234
				( elem[ name ] = value );
indvd00m@0
  8235
indvd00m@0
  8236
		} else {
indvd00m@0
  8237
			return hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ?
indvd00m@0
  8238
				ret :
indvd00m@0
  8239
				elem[ name ];
indvd00m@0
  8240
		}
indvd00m@0
  8241
	},
indvd00m@0
  8242
indvd00m@0
  8243
	propHooks: {
indvd00m@0
  8244
		tabIndex: {
indvd00m@0
  8245
			get: function( elem ) {
indvd00m@0
  8246
				// elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
indvd00m@0
  8247
				// http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
indvd00m@0
  8248
				// Use proper attribute retrieval(#12072)
indvd00m@0
  8249
				var tabindex = jQuery.find.attr( elem, "tabindex" );
indvd00m@0
  8250
indvd00m@0
  8251
				return tabindex ?
indvd00m@0
  8252
					parseInt( tabindex, 10 ) :
indvd00m@0
  8253
					rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
indvd00m@0
  8254
						0 :
indvd00m@0
  8255
						-1;
indvd00m@0
  8256
			}
indvd00m@0
  8257
		}
indvd00m@0
  8258
	}
indvd00m@0
  8259
});
indvd00m@0
  8260
indvd00m@0
  8261
// Some attributes require a special call on IE
indvd00m@0
  8262
// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
indvd00m@0
  8263
if ( !support.hrefNormalized ) {
indvd00m@0
  8264
	// href/src property should get the full normalized URL (#10299/#12915)
indvd00m@0
  8265
	jQuery.each([ "href", "src" ], function( i, name ) {
indvd00m@0
  8266
		jQuery.propHooks[ name ] = {
indvd00m@0
  8267
			get: function( elem ) {
indvd00m@0
  8268
				return elem.getAttribute( name, 4 );
indvd00m@0
  8269
			}
indvd00m@0
  8270
		};
indvd00m@0
  8271
	});
indvd00m@0
  8272
}
indvd00m@0
  8273
indvd00m@0
  8274
// Support: Safari, IE9+
indvd00m@0
  8275
// mis-reports the default selected property of an option
indvd00m@0
  8276
// Accessing the parent's selectedIndex property fixes it
indvd00m@0
  8277
if ( !support.optSelected ) {
indvd00m@0
  8278
	jQuery.propHooks.selected = {
indvd00m@0
  8279
		get: function( elem ) {
indvd00m@0
  8280
			var parent = elem.parentNode;
indvd00m@0
  8281
indvd00m@0
  8282
			if ( parent ) {
indvd00m@0
  8283
				parent.selectedIndex;
indvd00m@0
  8284
indvd00m@0
  8285
				// Make sure that it also works with optgroups, see #5701
indvd00m@0
  8286
				if ( parent.parentNode ) {
indvd00m@0
  8287
					parent.parentNode.selectedIndex;
indvd00m@0
  8288
				}
indvd00m@0
  8289
			}
indvd00m@0
  8290
			return null;
indvd00m@0
  8291
		}
indvd00m@0
  8292
	};
indvd00m@0
  8293
}
indvd00m@0
  8294
indvd00m@0
  8295
jQuery.each([
indvd00m@0
  8296
	"tabIndex",
indvd00m@0
  8297
	"readOnly",
indvd00m@0
  8298
	"maxLength",
indvd00m@0
  8299
	"cellSpacing",
indvd00m@0
  8300
	"cellPadding",
indvd00m@0
  8301
	"rowSpan",
indvd00m@0
  8302
	"colSpan",
indvd00m@0
  8303
	"useMap",
indvd00m@0
  8304
	"frameBorder",
indvd00m@0
  8305
	"contentEditable"
indvd00m@0
  8306
], function() {
indvd00m@0
  8307
	jQuery.propFix[ this.toLowerCase() ] = this;
indvd00m@0
  8308
});
indvd00m@0
  8309
indvd00m@0
  8310
// IE6/7 call enctype encoding
indvd00m@0
  8311
if ( !support.enctype ) {
indvd00m@0
  8312
	jQuery.propFix.enctype = "encoding";
indvd00m@0
  8313
}
indvd00m@0
  8314
indvd00m@0
  8315
indvd00m@0
  8316
indvd00m@0
  8317
indvd00m@0
  8318
var rclass = /[\t\r\n\f]/g;
indvd00m@0
  8319
indvd00m@0
  8320
jQuery.fn.extend({
indvd00m@0
  8321
	addClass: function( value ) {
indvd00m@0
  8322
		var classes, elem, cur, clazz, j, finalValue,
indvd00m@0
  8323
			i = 0,
indvd00m@0
  8324
			len = this.length,
indvd00m@0
  8325
			proceed = typeof value === "string" && value;
indvd00m@0
  8326
indvd00m@0
  8327
		if ( jQuery.isFunction( value ) ) {
indvd00m@0
  8328
			return this.each(function( j ) {
indvd00m@0
  8329
				jQuery( this ).addClass( value.call( this, j, this.className ) );
indvd00m@0
  8330
			});
indvd00m@0
  8331
		}
indvd00m@0
  8332
indvd00m@0
  8333
		if ( proceed ) {
indvd00m@0
  8334
			// The disjunction here is for better compressibility (see removeClass)
indvd00m@0
  8335
			classes = ( value || "" ).match( rnotwhite ) || [];
indvd00m@0
  8336
indvd00m@0
  8337
			for ( ; i < len; i++ ) {
indvd00m@0
  8338
				elem = this[ i ];
indvd00m@0
  8339
				cur = elem.nodeType === 1 && ( elem.className ?
indvd00m@0
  8340
					( " " + elem.className + " " ).replace( rclass, " " ) :
indvd00m@0
  8341
					" "
indvd00m@0
  8342
				);
indvd00m@0
  8343
indvd00m@0
  8344
				if ( cur ) {
indvd00m@0
  8345
					j = 0;
indvd00m@0
  8346
					while ( (clazz = classes[j++]) ) {
indvd00m@0
  8347
						if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
indvd00m@0
  8348
							cur += clazz + " ";
indvd00m@0
  8349
						}
indvd00m@0
  8350
					}
indvd00m@0
  8351
indvd00m@0
  8352
					// only assign if different to avoid unneeded rendering.
indvd00m@0
  8353
					finalValue = jQuery.trim( cur );
indvd00m@0
  8354
					if ( elem.className !== finalValue ) {
indvd00m@0
  8355
						elem.className = finalValue;
indvd00m@0
  8356
					}
indvd00m@0
  8357
				}
indvd00m@0
  8358
			}
indvd00m@0
  8359
		}
indvd00m@0
  8360
indvd00m@0
  8361
		return this;
indvd00m@0
  8362
	},
indvd00m@0
  8363
indvd00m@0
  8364
	removeClass: function( value ) {
indvd00m@0
  8365
		var classes, elem, cur, clazz, j, finalValue,
indvd00m@0
  8366
			i = 0,
indvd00m@0
  8367
			len = this.length,
indvd00m@0
  8368
			proceed = arguments.length === 0 || typeof value === "string" && value;
indvd00m@0
  8369
indvd00m@0
  8370
		if ( jQuery.isFunction( value ) ) {
indvd00m@0
  8371
			return this.each(function( j ) {
indvd00m@0
  8372
				jQuery( this ).removeClass( value.call( this, j, this.className ) );
indvd00m@0
  8373
			});
indvd00m@0
  8374
		}
indvd00m@0
  8375
		if ( proceed ) {
indvd00m@0
  8376
			classes = ( value || "" ).match( rnotwhite ) || [];
indvd00m@0
  8377
indvd00m@0
  8378
			for ( ; i < len; i++ ) {
indvd00m@0
  8379
				elem = this[ i ];
indvd00m@0
  8380
				// This expression is here for better compressibility (see addClass)
indvd00m@0
  8381
				cur = elem.nodeType === 1 && ( elem.className ?
indvd00m@0
  8382
					( " " + elem.className + " " ).replace( rclass, " " ) :
indvd00m@0
  8383
					""
indvd00m@0
  8384
				);
indvd00m@0
  8385
indvd00m@0
  8386
				if ( cur ) {
indvd00m@0
  8387
					j = 0;
indvd00m@0
  8388
					while ( (clazz = classes[j++]) ) {
indvd00m@0
  8389
						// Remove *all* instances
indvd00m@0
  8390
						while ( cur.indexOf( " " + clazz + " " ) >= 0 ) {
indvd00m@0
  8391
							cur = cur.replace( " " + clazz + " ", " " );
indvd00m@0
  8392
						}
indvd00m@0
  8393
					}
indvd00m@0
  8394
indvd00m@0
  8395
					// only assign if different to avoid unneeded rendering.
indvd00m@0
  8396
					finalValue = value ? jQuery.trim( cur ) : "";
indvd00m@0
  8397
					if ( elem.className !== finalValue ) {
indvd00m@0
  8398
						elem.className = finalValue;
indvd00m@0
  8399
					}
indvd00m@0
  8400
				}
indvd00m@0
  8401
			}
indvd00m@0
  8402
		}
indvd00m@0
  8403
indvd00m@0
  8404
		return this;
indvd00m@0
  8405
	},
indvd00m@0
  8406
indvd00m@0
  8407
	toggleClass: function( value, stateVal ) {
indvd00m@0
  8408
		var type = typeof value;
indvd00m@0
  8409
indvd00m@0
  8410
		if ( typeof stateVal === "boolean" && type === "string" ) {
indvd00m@0
  8411
			return stateVal ? this.addClass( value ) : this.removeClass( value );
indvd00m@0
  8412
		}
indvd00m@0
  8413
indvd00m@0
  8414
		if ( jQuery.isFunction( value ) ) {
indvd00m@0
  8415
			return this.each(function( i ) {
indvd00m@0
  8416
				jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );
indvd00m@0
  8417
			});
indvd00m@0
  8418
		}
indvd00m@0
  8419
indvd00m@0
  8420
		return this.each(function() {
indvd00m@0
  8421
			if ( type === "string" ) {
indvd00m@0
  8422
				// toggle individual class names
indvd00m@0
  8423
				var className,
indvd00m@0
  8424
					i = 0,
indvd00m@0
  8425
					self = jQuery( this ),
indvd00m@0
  8426
					classNames = value.match( rnotwhite ) || [];
indvd00m@0
  8427
indvd00m@0
  8428
				while ( (className = classNames[ i++ ]) ) {
indvd00m@0
  8429
					// check each className given, space separated list
indvd00m@0
  8430
					if ( self.hasClass( className ) ) {
indvd00m@0
  8431
						self.removeClass( className );
indvd00m@0
  8432
					} else {
indvd00m@0
  8433
						self.addClass( className );
indvd00m@0
  8434
					}
indvd00m@0
  8435
				}
indvd00m@0
  8436
indvd00m@0
  8437
			// Toggle whole class name
indvd00m@0
  8438
			} else if ( type === strundefined || type === "boolean" ) {
indvd00m@0
  8439
				if ( this.className ) {
indvd00m@0
  8440
					// store className if set
indvd00m@0
  8441
					jQuery._data( this, "__className__", this.className );
indvd00m@0
  8442
				}
indvd00m@0
  8443
indvd00m@0
  8444
				// If the element has a class name or if we're passed "false",
indvd00m@0
  8445
				// then remove the whole classname (if there was one, the above saved it).
indvd00m@0
  8446
				// Otherwise bring back whatever was previously saved (if anything),
indvd00m@0
  8447
				// falling back to the empty string if nothing was stored.
indvd00m@0
  8448
				this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || "";
indvd00m@0
  8449
			}
indvd00m@0
  8450
		});
indvd00m@0
  8451
	},
indvd00m@0
  8452
indvd00m@0
  8453
	hasClass: function( selector ) {
indvd00m@0
  8454
		var className = " " + selector + " ",
indvd00m@0
  8455
			i = 0,
indvd00m@0
  8456
			l = this.length;
indvd00m@0
  8457
		for ( ; i < l; i++ ) {
indvd00m@0
  8458
			if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) >= 0 ) {
indvd00m@0
  8459
				return true;
indvd00m@0
  8460
			}
indvd00m@0
  8461
		}
indvd00m@0
  8462
indvd00m@0
  8463
		return false;
indvd00m@0
  8464
	}
indvd00m@0
  8465
});
indvd00m@0
  8466
indvd00m@0
  8467
indvd00m@0
  8468
indvd00m@0
  8469
indvd00m@0
  8470
// Return jQuery for attributes-only inclusion
indvd00m@0
  8471
indvd00m@0
  8472
indvd00m@0
  8473
jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
indvd00m@0
  8474
	"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
indvd00m@0
  8475
	"change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) {
indvd00m@0
  8476
indvd00m@0
  8477
	// Handle event binding
indvd00m@0
  8478
	jQuery.fn[ name ] = function( data, fn ) {
indvd00m@0
  8479
		return arguments.length > 0 ?
indvd00m@0
  8480
			this.on( name, null, data, fn ) :
indvd00m@0
  8481
			this.trigger( name );
indvd00m@0
  8482
	};
indvd00m@0
  8483
});
indvd00m@0
  8484
indvd00m@0
  8485
jQuery.fn.extend({
indvd00m@0
  8486
	hover: function( fnOver, fnOut ) {
indvd00m@0
  8487
		return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
indvd00m@0
  8488
	},
indvd00m@0
  8489
indvd00m@0
  8490
	bind: function( types, data, fn ) {
indvd00m@0
  8491
		return this.on( types, null, data, fn );
indvd00m@0
  8492
	},
indvd00m@0
  8493
	unbind: function( types, fn ) {
indvd00m@0
  8494
		return this.off( types, null, fn );
indvd00m@0
  8495
	},
indvd00m@0
  8496
indvd00m@0
  8497
	delegate: function( selector, types, data, fn ) {
indvd00m@0
  8498
		return this.on( types, selector, data, fn );
indvd00m@0
  8499
	},
indvd00m@0
  8500
	undelegate: function( selector, types, fn ) {
indvd00m@0
  8501
		// ( namespace ) or ( selector, types [, fn] )
indvd00m@0
  8502
		return arguments.length === 1 ? this.off( selector, "**" ) : this.off( types, selector || "**", fn );
indvd00m@0
  8503
	}
indvd00m@0
  8504
});
indvd00m@0
  8505
indvd00m@0
  8506
indvd00m@0
  8507
var nonce = jQuery.now();
indvd00m@0
  8508
indvd00m@0
  8509
var rquery = (/\?/);
indvd00m@0
  8510
indvd00m@0
  8511
indvd00m@0
  8512
indvd00m@0
  8513
var rvalidtokens = /(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;
indvd00m@0
  8514
indvd00m@0
  8515
jQuery.parseJSON = function( data ) {
indvd00m@0
  8516
	// Attempt to parse using the native JSON parser first
indvd00m@0
  8517
	if ( window.JSON && window.JSON.parse ) {
indvd00m@0
  8518
		// Support: Android 2.3
indvd00m@0
  8519
		// Workaround failure to string-cast null input
indvd00m@0
  8520
		return window.JSON.parse( data + "" );
indvd00m@0
  8521
	}
indvd00m@0
  8522
indvd00m@0
  8523
	var requireNonComma,
indvd00m@0
  8524
		depth = null,
indvd00m@0
  8525
		str = jQuery.trim( data + "" );
indvd00m@0
  8526
indvd00m@0
  8527
	// Guard against invalid (and possibly dangerous) input by ensuring that nothing remains
indvd00m@0
  8528
	// after removing valid tokens
indvd00m@0
  8529
	return str && !jQuery.trim( str.replace( rvalidtokens, function( token, comma, open, close ) {
indvd00m@0
  8530
indvd00m@0
  8531
		// Force termination if we see a misplaced comma
indvd00m@0
  8532
		if ( requireNonComma && comma ) {
indvd00m@0
  8533
			depth = 0;
indvd00m@0
  8534
		}
indvd00m@0
  8535
indvd00m@0
  8536
		// Perform no more replacements after returning to outermost depth
indvd00m@0
  8537
		if ( depth === 0 ) {
indvd00m@0
  8538
			return token;
indvd00m@0
  8539
		}
indvd00m@0
  8540
indvd00m@0
  8541
		// Commas must not follow "[", "{", or ","
indvd00m@0
  8542
		requireNonComma = open || comma;
indvd00m@0
  8543
indvd00m@0
  8544
		// Determine new depth
indvd00m@0
  8545
		// array/object open ("[" or "{"): depth += true - false (increment)
indvd00m@0
  8546
		// array/object close ("]" or "}"): depth += false - true (decrement)
indvd00m@0
  8547
		// other cases ("," or primitive): depth += true - true (numeric cast)
indvd00m@0
  8548
		depth += !close - !open;
indvd00m@0
  8549
indvd00m@0
  8550
		// Remove this token
indvd00m@0
  8551
		return "";
indvd00m@0
  8552
	}) ) ?
indvd00m@0
  8553
		( Function( "return " + str ) )() :
indvd00m@0
  8554
		jQuery.error( "Invalid JSON: " + data );
indvd00m@0
  8555
};
indvd00m@0
  8556
indvd00m@0
  8557
indvd00m@0
  8558
// Cross-browser xml parsing
indvd00m@0
  8559
jQuery.parseXML = function( data ) {
indvd00m@0
  8560
	var xml, tmp;
indvd00m@0
  8561
	if ( !data || typeof data !== "string" ) {
indvd00m@0
  8562
		return null;
indvd00m@0
  8563
	}
indvd00m@0
  8564
	try {
indvd00m@0
  8565
		if ( window.DOMParser ) { // Standard
indvd00m@0
  8566
			tmp = new DOMParser();
indvd00m@0
  8567
			xml = tmp.parseFromString( data, "text/xml" );
indvd00m@0
  8568
		} else { // IE
indvd00m@0
  8569
			xml = new ActiveXObject( "Microsoft.XMLDOM" );
indvd00m@0
  8570
			xml.async = "false";
indvd00m@0
  8571
			xml.loadXML( data );
indvd00m@0
  8572
		}
indvd00m@0
  8573
	} catch( e ) {
indvd00m@0
  8574
		xml = undefined;
indvd00m@0
  8575
	}
indvd00m@0
  8576
	if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) {
indvd00m@0
  8577
		jQuery.error( "Invalid XML: " + data );
indvd00m@0
  8578
	}
indvd00m@0
  8579
	return xml;
indvd00m@0
  8580
};
indvd00m@0
  8581
indvd00m@0
  8582
indvd00m@0
  8583
var
indvd00m@0
  8584
	// Document location
indvd00m@0
  8585
	ajaxLocParts,
indvd00m@0
  8586
	ajaxLocation,
indvd00m@0
  8587
indvd00m@0
  8588
	rhash = /#.*$/,
indvd00m@0
  8589
	rts = /([?&])_=[^&]*/,
indvd00m@0
  8590
	rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL
indvd00m@0
  8591
	// #7653, #8125, #8152: local protocol detection
indvd00m@0
  8592
	rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
indvd00m@0
  8593
	rnoContent = /^(?:GET|HEAD)$/,
indvd00m@0
  8594
	rprotocol = /^\/\//,
indvd00m@0
  8595
	rurl = /^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,
indvd00m@0
  8596
indvd00m@0
  8597
	/* Prefilters
indvd00m@0
  8598
	 * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
indvd00m@0
  8599
	 * 2) These are called:
indvd00m@0
  8600
	 *    - BEFORE asking for a transport
indvd00m@0
  8601
	 *    - AFTER param serialization (s.data is a string if s.processData is true)
indvd00m@0
  8602
	 * 3) key is the dataType
indvd00m@0
  8603
	 * 4) the catchall symbol "*" can be used
indvd00m@0
  8604
	 * 5) execution will start with transport dataType and THEN continue down to "*" if needed
indvd00m@0
  8605
	 */
indvd00m@0
  8606
	prefilters = {},
indvd00m@0
  8607
indvd00m@0
  8608
	/* Transports bindings
indvd00m@0
  8609
	 * 1) key is the dataType
indvd00m@0
  8610
	 * 2) the catchall symbol "*" can be used
indvd00m@0
  8611
	 * 3) selection will start with transport dataType and THEN go to "*" if needed
indvd00m@0
  8612
	 */
indvd00m@0
  8613
	transports = {},
indvd00m@0
  8614
indvd00m@0
  8615
	// Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
indvd00m@0
  8616
	allTypes = "*/".concat("*");
indvd00m@0
  8617
indvd00m@0
  8618
// #8138, IE may throw an exception when accessing
indvd00m@0
  8619
// a field from window.location if document.domain has been set
indvd00m@0
  8620
try {
indvd00m@0
  8621
	ajaxLocation = location.href;
indvd00m@0
  8622
} catch( e ) {
indvd00m@0
  8623
	// Use the href attribute of an A element
indvd00m@0
  8624
	// since IE will modify it given document.location
indvd00m@0
  8625
	ajaxLocation = document.createElement( "a" );
indvd00m@0
  8626
	ajaxLocation.href = "";
indvd00m@0
  8627
	ajaxLocation = ajaxLocation.href;
indvd00m@0
  8628
}
indvd00m@0
  8629
indvd00m@0
  8630
// Segment location into parts
indvd00m@0
  8631
ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];
indvd00m@0
  8632
indvd00m@0
  8633
// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
indvd00m@0
  8634
function addToPrefiltersOrTransports( structure ) {
indvd00m@0
  8635
indvd00m@0
  8636
	// dataTypeExpression is optional and defaults to "*"
indvd00m@0
  8637
	return function( dataTypeExpression, func ) {
indvd00m@0
  8638
indvd00m@0
  8639
		if ( typeof dataTypeExpression !== "string" ) {
indvd00m@0
  8640
			func = dataTypeExpression;
indvd00m@0
  8641
			dataTypeExpression = "*";
indvd00m@0
  8642
		}
indvd00m@0
  8643
indvd00m@0
  8644
		var dataType,
indvd00m@0
  8645
			i = 0,
indvd00m@0
  8646
			dataTypes = dataTypeExpression.toLowerCase().match( rnotwhite ) || [];
indvd00m@0
  8647
indvd00m@0
  8648
		if ( jQuery.isFunction( func ) ) {
indvd00m@0
  8649
			// For each dataType in the dataTypeExpression
indvd00m@0
  8650
			while ( (dataType = dataTypes[i++]) ) {
indvd00m@0
  8651
				// Prepend if requested
indvd00m@0
  8652
				if ( dataType.charAt( 0 ) === "+" ) {
indvd00m@0
  8653
					dataType = dataType.slice( 1 ) || "*";
indvd00m@0
  8654
					(structure[ dataType ] = structure[ dataType ] || []).unshift( func );
indvd00m@0
  8655
indvd00m@0
  8656
				// Otherwise append
indvd00m@0
  8657
				} else {
indvd00m@0
  8658
					(structure[ dataType ] = structure[ dataType ] || []).push( func );
indvd00m@0
  8659
				}
indvd00m@0
  8660
			}
indvd00m@0
  8661
		}
indvd00m@0
  8662
	};
indvd00m@0
  8663
}
indvd00m@0
  8664
indvd00m@0
  8665
// Base inspection function for prefilters and transports
indvd00m@0
  8666
function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {
indvd00m@0
  8667
indvd00m@0
  8668
	var inspected = {},
indvd00m@0
  8669
		seekingTransport = ( structure === transports );
indvd00m@0
  8670
indvd00m@0
  8671
	function inspect( dataType ) {
indvd00m@0
  8672
		var selected;
indvd00m@0
  8673
		inspected[ dataType ] = true;
indvd00m@0
  8674
		jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {
indvd00m@0
  8675
			var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );
indvd00m@0
  8676
			if ( typeof dataTypeOrTransport === "string" && !seekingTransport && !inspected[ dataTypeOrTransport ] ) {
indvd00m@0
  8677
				options.dataTypes.unshift( dataTypeOrTransport );
indvd00m@0
  8678
				inspect( dataTypeOrTransport );
indvd00m@0
  8679
				return false;
indvd00m@0
  8680
			} else if ( seekingTransport ) {
indvd00m@0
  8681
				return !( selected = dataTypeOrTransport );
indvd00m@0
  8682
			}
indvd00m@0
  8683
		});
indvd00m@0
  8684
		return selected;
indvd00m@0
  8685
	}
indvd00m@0
  8686
indvd00m@0
  8687
	return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" );
indvd00m@0
  8688
}
indvd00m@0
  8689
indvd00m@0
  8690
// A special extend for ajax options
indvd00m@0
  8691
// that takes "flat" options (not to be deep extended)
indvd00m@0
  8692
// Fixes #9887
indvd00m@0
  8693
function ajaxExtend( target, src ) {
indvd00m@0
  8694
	var deep, key,
indvd00m@0
  8695
		flatOptions = jQuery.ajaxSettings.flatOptions || {};
indvd00m@0
  8696
indvd00m@0
  8697
	for ( key in src ) {
indvd00m@0
  8698
		if ( src[ key ] !== undefined ) {
indvd00m@0
  8699
			( flatOptions[ key ] ? target : ( deep || (deep = {}) ) )[ key ] = src[ key ];
indvd00m@0
  8700
		}
indvd00m@0
  8701
	}
indvd00m@0
  8702
	if ( deep ) {
indvd00m@0
  8703
		jQuery.extend( true, target, deep );
indvd00m@0
  8704
	}
indvd00m@0
  8705
indvd00m@0
  8706
	return target;
indvd00m@0
  8707
}
indvd00m@0
  8708
indvd00m@0
  8709
/* Handles responses to an ajax request:
indvd00m@0
  8710
 * - finds the right dataType (mediates between content-type and expected dataType)
indvd00m@0
  8711
 * - returns the corresponding response
indvd00m@0
  8712
 */
indvd00m@0
  8713
function ajaxHandleResponses( s, jqXHR, responses ) {
indvd00m@0
  8714
	var firstDataType, ct, finalDataType, type,
indvd00m@0
  8715
		contents = s.contents,
indvd00m@0
  8716
		dataTypes = s.dataTypes;
indvd00m@0
  8717
indvd00m@0
  8718
	// Remove auto dataType and get content-type in the process
indvd00m@0
  8719
	while ( dataTypes[ 0 ] === "*" ) {
indvd00m@0
  8720
		dataTypes.shift();
indvd00m@0
  8721
		if ( ct === undefined ) {
indvd00m@0
  8722
			ct = s.mimeType || jqXHR.getResponseHeader("Content-Type");
indvd00m@0
  8723
		}
indvd00m@0
  8724
	}
indvd00m@0
  8725
indvd00m@0
  8726
	// Check if we're dealing with a known content-type
indvd00m@0
  8727
	if ( ct ) {
indvd00m@0
  8728
		for ( type in contents ) {
indvd00m@0
  8729
			if ( contents[ type ] && contents[ type ].test( ct ) ) {
indvd00m@0
  8730
				dataTypes.unshift( type );
indvd00m@0
  8731
				break;
indvd00m@0
  8732
			}
indvd00m@0
  8733
		}
indvd00m@0
  8734
	}
indvd00m@0
  8735
indvd00m@0
  8736
	// Check to see if we have a response for the expected dataType
indvd00m@0
  8737
	if ( dataTypes[ 0 ] in responses ) {
indvd00m@0
  8738
		finalDataType = dataTypes[ 0 ];
indvd00m@0
  8739
	} else {
indvd00m@0
  8740
		// Try convertible dataTypes
indvd00m@0
  8741
		for ( type in responses ) {
indvd00m@0
  8742
			if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) {
indvd00m@0
  8743
				finalDataType = type;
indvd00m@0
  8744
				break;
indvd00m@0
  8745
			}
indvd00m@0
  8746
			if ( !firstDataType ) {
indvd00m@0
  8747
				firstDataType = type;
indvd00m@0
  8748
			}
indvd00m@0
  8749
		}
indvd00m@0
  8750
		// Or just use first one
indvd00m@0
  8751
		finalDataType = finalDataType || firstDataType;
indvd00m@0
  8752
	}
indvd00m@0
  8753
indvd00m@0
  8754
	// If we found a dataType
indvd00m@0
  8755
	// We add the dataType to the list if needed
indvd00m@0
  8756
	// and return the corresponding response
indvd00m@0
  8757
	if ( finalDataType ) {
indvd00m@0
  8758
		if ( finalDataType !== dataTypes[ 0 ] ) {
indvd00m@0
  8759
			dataTypes.unshift( finalDataType );
indvd00m@0
  8760
		}
indvd00m@0
  8761
		return responses[ finalDataType ];
indvd00m@0
  8762
	}
indvd00m@0
  8763
}
indvd00m@0
  8764
indvd00m@0
  8765
/* Chain conversions given the request and the original response
indvd00m@0
  8766
 * Also sets the responseXXX fields on the jqXHR instance
indvd00m@0
  8767
 */
indvd00m@0
  8768
function ajaxConvert( s, response, jqXHR, isSuccess ) {
indvd00m@0
  8769
	var conv2, current, conv, tmp, prev,
indvd00m@0
  8770
		converters = {},
indvd00m@0
  8771
		// Work with a copy of dataTypes in case we need to modify it for conversion
indvd00m@0
  8772
		dataTypes = s.dataTypes.slice();
indvd00m@0
  8773
indvd00m@0
  8774
	// Create converters map with lowercased keys
indvd00m@0
  8775
	if ( dataTypes[ 1 ] ) {
indvd00m@0
  8776
		for ( conv in s.converters ) {
indvd00m@0
  8777
			converters[ conv.toLowerCase() ] = s.converters[ conv ];
indvd00m@0
  8778
		}
indvd00m@0
  8779
	}
indvd00m@0
  8780
indvd00m@0
  8781
	current = dataTypes.shift();
indvd00m@0
  8782
indvd00m@0
  8783
	// Convert to each sequential dataType
indvd00m@0
  8784
	while ( current ) {
indvd00m@0
  8785
indvd00m@0
  8786
		if ( s.responseFields[ current ] ) {
indvd00m@0
  8787
			jqXHR[ s.responseFields[ current ] ] = response;
indvd00m@0
  8788
		}
indvd00m@0
  8789
indvd00m@0
  8790
		// Apply the dataFilter if provided
indvd00m@0
  8791
		if ( !prev && isSuccess && s.dataFilter ) {
indvd00m@0
  8792
			response = s.dataFilter( response, s.dataType );
indvd00m@0
  8793
		}
indvd00m@0
  8794
indvd00m@0
  8795
		prev = current;
indvd00m@0
  8796
		current = dataTypes.shift();
indvd00m@0
  8797
indvd00m@0
  8798
		if ( current ) {
indvd00m@0
  8799
indvd00m@0
  8800
			// There's only work to do if current dataType is non-auto
indvd00m@0
  8801
			if ( current === "*" ) {
indvd00m@0
  8802
indvd00m@0
  8803
				current = prev;
indvd00m@0
  8804
indvd00m@0
  8805
			// Convert response if prev dataType is non-auto and differs from current
indvd00m@0
  8806
			} else if ( prev !== "*" && prev !== current ) {
indvd00m@0
  8807
indvd00m@0
  8808
				// Seek a direct converter
indvd00m@0
  8809
				conv = converters[ prev + " " + current ] || converters[ "* " + current ];
indvd00m@0
  8810
indvd00m@0
  8811
				// If none found, seek a pair
indvd00m@0
  8812
				if ( !conv ) {
indvd00m@0
  8813
					for ( conv2 in converters ) {
indvd00m@0
  8814
indvd00m@0
  8815
						// If conv2 outputs current
indvd00m@0
  8816
						tmp = conv2.split( " " );
indvd00m@0
  8817
						if ( tmp[ 1 ] === current ) {
indvd00m@0
  8818
indvd00m@0
  8819
							// If prev can be converted to accepted input
indvd00m@0
  8820
							conv = converters[ prev + " " + tmp[ 0 ] ] ||
indvd00m@0
  8821
								converters[ "* " + tmp[ 0 ] ];
indvd00m@0
  8822
							if ( conv ) {
indvd00m@0
  8823
								// Condense equivalence converters
indvd00m@0
  8824
								if ( conv === true ) {
indvd00m@0
  8825
									conv = converters[ conv2 ];
indvd00m@0
  8826
indvd00m@0
  8827
								// Otherwise, insert the intermediate dataType
indvd00m@0
  8828
								} else if ( converters[ conv2 ] !== true ) {
indvd00m@0
  8829
									current = tmp[ 0 ];
indvd00m@0
  8830
									dataTypes.unshift( tmp[ 1 ] );
indvd00m@0
  8831
								}
indvd00m@0
  8832
								break;
indvd00m@0
  8833
							}
indvd00m@0
  8834
						}
indvd00m@0
  8835
					}
indvd00m@0
  8836
				}
indvd00m@0
  8837
indvd00m@0
  8838
				// Apply converter (if not an equivalence)
indvd00m@0
  8839
				if ( conv !== true ) {
indvd00m@0
  8840
indvd00m@0
  8841
					// Unless errors are allowed to bubble, catch and return them
indvd00m@0
  8842
					if ( conv && s[ "throws" ] ) {
indvd00m@0
  8843
						response = conv( response );
indvd00m@0
  8844
					} else {
indvd00m@0
  8845
						try {
indvd00m@0
  8846
							response = conv( response );
indvd00m@0
  8847
						} catch ( e ) {
indvd00m@0
  8848
							return { state: "parsererror", error: conv ? e : "No conversion from " + prev + " to " + current };
indvd00m@0
  8849
						}
indvd00m@0
  8850
					}
indvd00m@0
  8851
				}
indvd00m@0
  8852
			}
indvd00m@0
  8853
		}
indvd00m@0
  8854
	}
indvd00m@0
  8855
indvd00m@0
  8856
	return { state: "success", data: response };
indvd00m@0
  8857
}
indvd00m@0
  8858
indvd00m@0
  8859
jQuery.extend({
indvd00m@0
  8860
indvd00m@0
  8861
	// Counter for holding the number of active queries
indvd00m@0
  8862
	active: 0,
indvd00m@0
  8863
indvd00m@0
  8864
	// Last-Modified header cache for next request
indvd00m@0
  8865
	lastModified: {},
indvd00m@0
  8866
	etag: {},
indvd00m@0
  8867
indvd00m@0
  8868
	ajaxSettings: {
indvd00m@0
  8869
		url: ajaxLocation,
indvd00m@0
  8870
		type: "GET",
indvd00m@0
  8871
		isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),
indvd00m@0
  8872
		global: true,
indvd00m@0
  8873
		processData: true,
indvd00m@0
  8874
		async: true,
indvd00m@0
  8875
		contentType: "application/x-www-form-urlencoded; charset=UTF-8",
indvd00m@0
  8876
		/*
indvd00m@0
  8877
		timeout: 0,
indvd00m@0
  8878
		data: null,
indvd00m@0
  8879
		dataType: null,
indvd00m@0
  8880
		username: null,
indvd00m@0
  8881
		password: null,
indvd00m@0
  8882
		cache: null,
indvd00m@0
  8883
		throws: false,
indvd00m@0
  8884
		traditional: false,
indvd00m@0
  8885
		headers: {},
indvd00m@0
  8886
		*/
indvd00m@0
  8887
indvd00m@0
  8888
		accepts: {
indvd00m@0
  8889
			"*": allTypes,
indvd00m@0
  8890
			text: "text/plain",
indvd00m@0
  8891
			html: "text/html",
indvd00m@0
  8892
			xml: "application/xml, text/xml",
indvd00m@0
  8893
			json: "application/json, text/javascript"
indvd00m@0
  8894
		},
indvd00m@0
  8895
indvd00m@0
  8896
		contents: {
indvd00m@0
  8897
			xml: /xml/,
indvd00m@0
  8898
			html: /html/,
indvd00m@0
  8899
			json: /json/
indvd00m@0
  8900
		},
indvd00m@0
  8901
indvd00m@0
  8902
		responseFields: {
indvd00m@0
  8903
			xml: "responseXML",
indvd00m@0
  8904
			text: "responseText",
indvd00m@0
  8905
			json: "responseJSON"
indvd00m@0
  8906
		},
indvd00m@0
  8907
indvd00m@0
  8908
		// Data converters
indvd00m@0
  8909
		// Keys separate source (or catchall "*") and destination types with a single space
indvd00m@0
  8910
		converters: {
indvd00m@0
  8911
indvd00m@0
  8912
			// Convert anything to text
indvd00m@0
  8913
			"* text": String,
indvd00m@0
  8914
indvd00m@0
  8915
			// Text to html (true = no transformation)
indvd00m@0
  8916
			"text html": true,
indvd00m@0
  8917
indvd00m@0
  8918
			// Evaluate text as a json expression
indvd00m@0
  8919
			"text json": jQuery.parseJSON,
indvd00m@0
  8920
indvd00m@0
  8921
			// Parse text as xml
indvd00m@0
  8922
			"text xml": jQuery.parseXML
indvd00m@0
  8923
		},
indvd00m@0
  8924
indvd00m@0
  8925
		// For options that shouldn't be deep extended:
indvd00m@0
  8926
		// you can add your own custom options here if
indvd00m@0
  8927
		// and when you create one that shouldn't be
indvd00m@0
  8928
		// deep extended (see ajaxExtend)
indvd00m@0
  8929
		flatOptions: {
indvd00m@0
  8930
			url: true,
indvd00m@0
  8931
			context: true
indvd00m@0
  8932
		}
indvd00m@0
  8933
	},
indvd00m@0
  8934
indvd00m@0
  8935
	// Creates a full fledged settings object into target
indvd00m@0
  8936
	// with both ajaxSettings and settings fields.
indvd00m@0
  8937
	// If target is omitted, writes into ajaxSettings.
indvd00m@0
  8938
	ajaxSetup: function( target, settings ) {
indvd00m@0
  8939
		return settings ?
indvd00m@0
  8940
indvd00m@0
  8941
			// Building a settings object
indvd00m@0
  8942
			ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :
indvd00m@0
  8943
indvd00m@0
  8944
			// Extending ajaxSettings
indvd00m@0
  8945
			ajaxExtend( jQuery.ajaxSettings, target );
indvd00m@0
  8946
	},
indvd00m@0
  8947
indvd00m@0
  8948
	ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
indvd00m@0
  8949
	ajaxTransport: addToPrefiltersOrTransports( transports ),
indvd00m@0
  8950
indvd00m@0
  8951
	// Main method
indvd00m@0
  8952
	ajax: function( url, options ) {
indvd00m@0
  8953
indvd00m@0
  8954
		// If url is an object, simulate pre-1.5 signature
indvd00m@0
  8955
		if ( typeof url === "object" ) {
indvd00m@0
  8956
			options = url;
indvd00m@0
  8957
			url = undefined;
indvd00m@0
  8958
		}
indvd00m@0
  8959
indvd00m@0
  8960
		// Force options to be an object
indvd00m@0
  8961
		options = options || {};
indvd00m@0
  8962
indvd00m@0
  8963
		var // Cross-domain detection vars
indvd00m@0
  8964
			parts,
indvd00m@0
  8965
			// Loop variable
indvd00m@0
  8966
			i,
indvd00m@0
  8967
			// URL without anti-cache param
indvd00m@0
  8968
			cacheURL,
indvd00m@0
  8969
			// Response headers as string
indvd00m@0
  8970
			responseHeadersString,
indvd00m@0
  8971
			// timeout handle
indvd00m@0
  8972
			timeoutTimer,
indvd00m@0
  8973
indvd00m@0
  8974
			// To know if global events are to be dispatched
indvd00m@0
  8975
			fireGlobals,
indvd00m@0
  8976
indvd00m@0
  8977
			transport,
indvd00m@0
  8978
			// Response headers
indvd00m@0
  8979
			responseHeaders,
indvd00m@0
  8980
			// Create the final options object
indvd00m@0
  8981
			s = jQuery.ajaxSetup( {}, options ),
indvd00m@0
  8982
			// Callbacks context
indvd00m@0
  8983
			callbackContext = s.context || s,
indvd00m@0
  8984
			// Context for global events is callbackContext if it is a DOM node or jQuery collection
indvd00m@0
  8985
			globalEventContext = s.context && ( callbackContext.nodeType || callbackContext.jquery ) ?
indvd00m@0
  8986
				jQuery( callbackContext ) :
indvd00m@0
  8987
				jQuery.event,
indvd00m@0
  8988
			// Deferreds
indvd00m@0
  8989
			deferred = jQuery.Deferred(),
indvd00m@0
  8990
			completeDeferred = jQuery.Callbacks("once memory"),
indvd00m@0
  8991
			// Status-dependent callbacks
indvd00m@0
  8992
			statusCode = s.statusCode || {},
indvd00m@0
  8993
			// Headers (they are sent all at once)
indvd00m@0
  8994
			requestHeaders = {},
indvd00m@0
  8995
			requestHeadersNames = {},
indvd00m@0
  8996
			// The jqXHR state
indvd00m@0
  8997
			state = 0,
indvd00m@0
  8998
			// Default abort message
indvd00m@0
  8999
			strAbort = "canceled",
indvd00m@0
  9000
			// Fake xhr
indvd00m@0
  9001
			jqXHR = {
indvd00m@0
  9002
				readyState: 0,
indvd00m@0
  9003
indvd00m@0
  9004
				// Builds headers hashtable if needed
indvd00m@0
  9005
				getResponseHeader: function( key ) {
indvd00m@0
  9006
					var match;
indvd00m@0
  9007
					if ( state === 2 ) {
indvd00m@0
  9008
						if ( !responseHeaders ) {
indvd00m@0
  9009
							responseHeaders = {};
indvd00m@0
  9010
							while ( (match = rheaders.exec( responseHeadersString )) ) {
indvd00m@0
  9011
								responseHeaders[ match[1].toLowerCase() ] = match[ 2 ];
indvd00m@0
  9012
							}
indvd00m@0
  9013
						}
indvd00m@0
  9014
						match = responseHeaders[ key.toLowerCase() ];
indvd00m@0
  9015
					}
indvd00m@0
  9016
					return match == null ? null : match;
indvd00m@0
  9017
				},
indvd00m@0
  9018
indvd00m@0
  9019
				// Raw string
indvd00m@0
  9020
				getAllResponseHeaders: function() {
indvd00m@0
  9021
					return state === 2 ? responseHeadersString : null;
indvd00m@0
  9022
				},
indvd00m@0
  9023
indvd00m@0
  9024
				// Caches the header
indvd00m@0
  9025
				setRequestHeader: function( name, value ) {
indvd00m@0
  9026
					var lname = name.toLowerCase();
indvd00m@0
  9027
					if ( !state ) {
indvd00m@0
  9028
						name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
indvd00m@0
  9029
						requestHeaders[ name ] = value;
indvd00m@0
  9030
					}
indvd00m@0
  9031
					return this;
indvd00m@0
  9032
				},
indvd00m@0
  9033
indvd00m@0
  9034
				// Overrides response content-type header
indvd00m@0
  9035
				overrideMimeType: function( type ) {
indvd00m@0
  9036
					if ( !state ) {
indvd00m@0
  9037
						s.mimeType = type;
indvd00m@0
  9038
					}
indvd00m@0
  9039
					return this;
indvd00m@0
  9040
				},
indvd00m@0
  9041
indvd00m@0
  9042
				// Status-dependent callbacks
indvd00m@0
  9043
				statusCode: function( map ) {
indvd00m@0
  9044
					var code;
indvd00m@0
  9045
					if ( map ) {
indvd00m@0
  9046
						if ( state < 2 ) {
indvd00m@0
  9047
							for ( code in map ) {
indvd00m@0
  9048
								// Lazy-add the new callback in a way that preserves old ones
indvd00m@0
  9049
								statusCode[ code ] = [ statusCode[ code ], map[ code ] ];
indvd00m@0
  9050
							}
indvd00m@0
  9051
						} else {
indvd00m@0
  9052
							// Execute the appropriate callbacks
indvd00m@0
  9053
							jqXHR.always( map[ jqXHR.status ] );
indvd00m@0
  9054
						}
indvd00m@0
  9055
					}
indvd00m@0
  9056
					return this;
indvd00m@0
  9057
				},
indvd00m@0
  9058
indvd00m@0
  9059
				// Cancel the request
indvd00m@0
  9060
				abort: function( statusText ) {
indvd00m@0
  9061
					var finalText = statusText || strAbort;
indvd00m@0
  9062
					if ( transport ) {
indvd00m@0
  9063
						transport.abort( finalText );
indvd00m@0
  9064
					}
indvd00m@0
  9065
					done( 0, finalText );
indvd00m@0
  9066
					return this;
indvd00m@0
  9067
				}
indvd00m@0
  9068
			};
indvd00m@0
  9069
indvd00m@0
  9070
		// Attach deferreds
indvd00m@0
  9071
		deferred.promise( jqXHR ).complete = completeDeferred.add;
indvd00m@0
  9072
		jqXHR.success = jqXHR.done;
indvd00m@0
  9073
		jqXHR.error = jqXHR.fail;
indvd00m@0
  9074
indvd00m@0
  9075
		// Remove hash character (#7531: and string promotion)
indvd00m@0
  9076
		// Add protocol if not provided (#5866: IE7 issue with protocol-less urls)
indvd00m@0
  9077
		// Handle falsy url in the settings object (#10093: consistency with old signature)
indvd00m@0
  9078
		// We also use the url parameter if available
indvd00m@0
  9079
		s.url = ( ( url || s.url || ajaxLocation ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" );
indvd00m@0
  9080
indvd00m@0
  9081
		// Alias method option to type as per ticket #12004
indvd00m@0
  9082
		s.type = options.method || options.type || s.method || s.type;
indvd00m@0
  9083
indvd00m@0
  9084
		// Extract dataTypes list
indvd00m@0
  9085
		s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().match( rnotwhite ) || [ "" ];
indvd00m@0
  9086
indvd00m@0
  9087
		// A cross-domain request is in order when we have a protocol:host:port mismatch
indvd00m@0
  9088
		if ( s.crossDomain == null ) {
indvd00m@0
  9089
			parts = rurl.exec( s.url.toLowerCase() );
indvd00m@0
  9090
			s.crossDomain = !!( parts &&
indvd00m@0
  9091
				( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] ||
indvd00m@0
  9092
					( parts[ 3 ] || ( parts[ 1 ] === "http:" ? "80" : "443" ) ) !==
indvd00m@0
  9093
						( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? "80" : "443" ) ) )
indvd00m@0
  9094
			);
indvd00m@0
  9095
		}
indvd00m@0
  9096
indvd00m@0
  9097
		// Convert data if not already a string
indvd00m@0
  9098
		if ( s.data && s.processData && typeof s.data !== "string" ) {
indvd00m@0
  9099
			s.data = jQuery.param( s.data, s.traditional );
indvd00m@0
  9100
		}
indvd00m@0
  9101
indvd00m@0
  9102
		// Apply prefilters
indvd00m@0
  9103
		inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
indvd00m@0
  9104
indvd00m@0
  9105
		// If request was aborted inside a prefilter, stop there
indvd00m@0
  9106
		if ( state === 2 ) {
indvd00m@0
  9107
			return jqXHR;
indvd00m@0
  9108
		}
indvd00m@0
  9109
indvd00m@0
  9110
		// We can fire global events as of now if asked to
indvd00m@0
  9111
		// Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118)
indvd00m@0
  9112
		fireGlobals = jQuery.event && s.global;
indvd00m@0
  9113
indvd00m@0
  9114
		// Watch for a new set of requests
indvd00m@0
  9115
		if ( fireGlobals && jQuery.active++ === 0 ) {
indvd00m@0
  9116
			jQuery.event.trigger("ajaxStart");
indvd00m@0
  9117
		}
indvd00m@0
  9118
indvd00m@0
  9119
		// Uppercase the type
indvd00m@0
  9120
		s.type = s.type.toUpperCase();
indvd00m@0
  9121
indvd00m@0
  9122
		// Determine if request has content
indvd00m@0
  9123
		s.hasContent = !rnoContent.test( s.type );
indvd00m@0
  9124
indvd00m@0
  9125
		// Save the URL in case we're toying with the If-Modified-Since
indvd00m@0
  9126
		// and/or If-None-Match header later on
indvd00m@0
  9127
		cacheURL = s.url;
indvd00m@0
  9128
indvd00m@0
  9129
		// More options handling for requests with no content
indvd00m@0
  9130
		if ( !s.hasContent ) {
indvd00m@0
  9131
indvd00m@0
  9132
			// If data is available, append data to url
indvd00m@0
  9133
			if ( s.data ) {
indvd00m@0
  9134
				cacheURL = ( s.url += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data );
indvd00m@0
  9135
				// #9682: remove data so that it's not used in an eventual retry
indvd00m@0
  9136
				delete s.data;
indvd00m@0
  9137
			}
indvd00m@0
  9138
indvd00m@0
  9139
			// Add anti-cache in url if needed
indvd00m@0
  9140
			if ( s.cache === false ) {
indvd00m@0
  9141
				s.url = rts.test( cacheURL ) ?
indvd00m@0
  9142
indvd00m@0
  9143
					// If there is already a '_' parameter, set its value
indvd00m@0
  9144
					cacheURL.replace( rts, "$1_=" + nonce++ ) :
indvd00m@0
  9145
indvd00m@0
  9146
					// Otherwise add one to the end
indvd00m@0
  9147
					cacheURL + ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + nonce++;
indvd00m@0
  9148
			}
indvd00m@0
  9149
		}
indvd00m@0
  9150
indvd00m@0
  9151
		// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
indvd00m@0
  9152
		if ( s.ifModified ) {
indvd00m@0
  9153
			if ( jQuery.lastModified[ cacheURL ] ) {
indvd00m@0
  9154
				jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] );
indvd00m@0
  9155
			}
indvd00m@0
  9156
			if ( jQuery.etag[ cacheURL ] ) {
indvd00m@0
  9157
				jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] );
indvd00m@0
  9158
			}
indvd00m@0
  9159
		}
indvd00m@0
  9160
indvd00m@0
  9161
		// Set the correct header, if data is being sent
indvd00m@0
  9162
		if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
indvd00m@0
  9163
			jqXHR.setRequestHeader( "Content-Type", s.contentType );
indvd00m@0
  9164
		}
indvd00m@0
  9165
indvd00m@0
  9166
		// Set the Accepts header for the server, depending on the dataType
indvd00m@0
  9167
		jqXHR.setRequestHeader(
indvd00m@0
  9168
			"Accept",
indvd00m@0
  9169
			s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?
indvd00m@0
  9170
				s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
indvd00m@0
  9171
				s.accepts[ "*" ]
indvd00m@0
  9172
		);
indvd00m@0
  9173
indvd00m@0
  9174
		// Check for headers option
indvd00m@0
  9175
		for ( i in s.headers ) {
indvd00m@0
  9176
			jqXHR.setRequestHeader( i, s.headers[ i ] );
indvd00m@0
  9177
		}
indvd00m@0
  9178
indvd00m@0
  9179
		// Allow custom headers/mimetypes and early abort
indvd00m@0
  9180
		if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
indvd00m@0
  9181
			// Abort if not done already and return
indvd00m@0
  9182
			return jqXHR.abort();
indvd00m@0
  9183
		}
indvd00m@0
  9184
indvd00m@0
  9185
		// aborting is no longer a cancellation
indvd00m@0
  9186
		strAbort = "abort";
indvd00m@0
  9187
indvd00m@0
  9188
		// Install callbacks on deferreds
indvd00m@0
  9189
		for ( i in { success: 1, error: 1, complete: 1 } ) {
indvd00m@0
  9190
			jqXHR[ i ]( s[ i ] );
indvd00m@0
  9191
		}
indvd00m@0
  9192
indvd00m@0
  9193
		// Get transport
indvd00m@0
  9194
		transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
indvd00m@0
  9195
indvd00m@0
  9196
		// If no transport, we auto-abort
indvd00m@0
  9197
		if ( !transport ) {
indvd00m@0
  9198
			done( -1, "No Transport" );
indvd00m@0
  9199
		} else {
indvd00m@0
  9200
			jqXHR.readyState = 1;
indvd00m@0
  9201
indvd00m@0
  9202
			// Send global event
indvd00m@0
  9203
			if ( fireGlobals ) {
indvd00m@0
  9204
				globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
indvd00m@0
  9205
			}
indvd00m@0
  9206
			// Timeout
indvd00m@0
  9207
			if ( s.async && s.timeout > 0 ) {
indvd00m@0
  9208
				timeoutTimer = setTimeout(function() {
indvd00m@0
  9209
					jqXHR.abort("timeout");
indvd00m@0
  9210
				}, s.timeout );
indvd00m@0
  9211
			}
indvd00m@0
  9212
indvd00m@0
  9213
			try {
indvd00m@0
  9214
				state = 1;
indvd00m@0
  9215
				transport.send( requestHeaders, done );
indvd00m@0
  9216
			} catch ( e ) {
indvd00m@0
  9217
				// Propagate exception as error if not done
indvd00m@0
  9218
				if ( state < 2 ) {
indvd00m@0
  9219
					done( -1, e );
indvd00m@0
  9220
				// Simply rethrow otherwise
indvd00m@0
  9221
				} else {
indvd00m@0
  9222
					throw e;
indvd00m@0
  9223
				}
indvd00m@0
  9224
			}
indvd00m@0
  9225
		}
indvd00m@0
  9226
indvd00m@0
  9227
		// Callback for when everything is done
indvd00m@0
  9228
		function done( status, nativeStatusText, responses, headers ) {
indvd00m@0
  9229
			var isSuccess, success, error, response, modified,
indvd00m@0
  9230
				statusText = nativeStatusText;
indvd00m@0
  9231
indvd00m@0
  9232
			// Called once
indvd00m@0
  9233
			if ( state === 2 ) {
indvd00m@0
  9234
				return;
indvd00m@0
  9235
			}
indvd00m@0
  9236
indvd00m@0
  9237
			// State is "done" now
indvd00m@0
  9238
			state = 2;
indvd00m@0
  9239
indvd00m@0
  9240
			// Clear timeout if it exists
indvd00m@0
  9241
			if ( timeoutTimer ) {
indvd00m@0
  9242
				clearTimeout( timeoutTimer );
indvd00m@0
  9243
			}
indvd00m@0
  9244
indvd00m@0
  9245
			// Dereference transport for early garbage collection
indvd00m@0
  9246
			// (no matter how long the jqXHR object will be used)
indvd00m@0
  9247
			transport = undefined;
indvd00m@0
  9248
indvd00m@0
  9249
			// Cache response headers
indvd00m@0
  9250
			responseHeadersString = headers || "";
indvd00m@0
  9251
indvd00m@0
  9252
			// Set readyState
indvd00m@0
  9253
			jqXHR.readyState = status > 0 ? 4 : 0;
indvd00m@0
  9254
indvd00m@0
  9255
			// Determine if successful
indvd00m@0
  9256
			isSuccess = status >= 200 && status < 300 || status === 304;
indvd00m@0
  9257
indvd00m@0
  9258
			// Get response data
indvd00m@0
  9259
			if ( responses ) {
indvd00m@0
  9260
				response = ajaxHandleResponses( s, jqXHR, responses );
indvd00m@0
  9261
			}
indvd00m@0
  9262
indvd00m@0
  9263
			// Convert no matter what (that way responseXXX fields are always set)
indvd00m@0
  9264
			response = ajaxConvert( s, response, jqXHR, isSuccess );
indvd00m@0
  9265
indvd00m@0
  9266
			// If successful, handle type chaining
indvd00m@0
  9267
			if ( isSuccess ) {
indvd00m@0
  9268
indvd00m@0
  9269
				// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
indvd00m@0
  9270
				if ( s.ifModified ) {
indvd00m@0
  9271
					modified = jqXHR.getResponseHeader("Last-Modified");
indvd00m@0
  9272
					if ( modified ) {
indvd00m@0
  9273
						jQuery.lastModified[ cacheURL ] = modified;
indvd00m@0
  9274
					}
indvd00m@0
  9275
					modified = jqXHR.getResponseHeader("etag");
indvd00m@0
  9276
					if ( modified ) {
indvd00m@0
  9277
						jQuery.etag[ cacheURL ] = modified;
indvd00m@0
  9278
					}
indvd00m@0
  9279
				}
indvd00m@0
  9280
indvd00m@0
  9281
				// if no content
indvd00m@0
  9282
				if ( status === 204 || s.type === "HEAD" ) {
indvd00m@0
  9283
					statusText = "nocontent";
indvd00m@0
  9284
indvd00m@0
  9285
				// if not modified
indvd00m@0
  9286
				} else if ( status === 304 ) {
indvd00m@0
  9287
					statusText = "notmodified";
indvd00m@0
  9288
indvd00m@0
  9289
				// If we have data, let's convert it
indvd00m@0
  9290
				} else {
indvd00m@0
  9291
					statusText = response.state;
indvd00m@0
  9292
					success = response.data;
indvd00m@0
  9293
					error = response.error;
indvd00m@0
  9294
					isSuccess = !error;
indvd00m@0
  9295
				}
indvd00m@0
  9296
			} else {
indvd00m@0
  9297
				// We extract error from statusText
indvd00m@0
  9298
				// then normalize statusText and status for non-aborts
indvd00m@0
  9299
				error = statusText;
indvd00m@0
  9300
				if ( status || !statusText ) {
indvd00m@0
  9301
					statusText = "error";
indvd00m@0
  9302
					if ( status < 0 ) {
indvd00m@0
  9303
						status = 0;
indvd00m@0
  9304
					}
indvd00m@0
  9305
				}
indvd00m@0
  9306
			}
indvd00m@0
  9307
indvd00m@0
  9308
			// Set data for the fake xhr object
indvd00m@0
  9309
			jqXHR.status = status;
indvd00m@0
  9310
			jqXHR.statusText = ( nativeStatusText || statusText ) + "";
indvd00m@0
  9311
indvd00m@0
  9312
			// Success/Error
indvd00m@0
  9313
			if ( isSuccess ) {
indvd00m@0
  9314
				deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
indvd00m@0
  9315
			} else {
indvd00m@0
  9316
				deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
indvd00m@0
  9317
			}
indvd00m@0
  9318
indvd00m@0
  9319
			// Status-dependent callbacks
indvd00m@0
  9320
			jqXHR.statusCode( statusCode );
indvd00m@0
  9321
			statusCode = undefined;
indvd00m@0
  9322
indvd00m@0
  9323
			if ( fireGlobals ) {
indvd00m@0
  9324
				globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError",
indvd00m@0
  9325
					[ jqXHR, s, isSuccess ? success : error ] );
indvd00m@0
  9326
			}
indvd00m@0
  9327
indvd00m@0
  9328
			// Complete
indvd00m@0
  9329
			completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
indvd00m@0
  9330
indvd00m@0
  9331
			if ( fireGlobals ) {
indvd00m@0
  9332
				globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
indvd00m@0
  9333
				// Handle the global AJAX counter
indvd00m@0
  9334
				if ( !( --jQuery.active ) ) {
indvd00m@0
  9335
					jQuery.event.trigger("ajaxStop");
indvd00m@0
  9336
				}
indvd00m@0
  9337
			}
indvd00m@0
  9338
		}
indvd00m@0
  9339
indvd00m@0
  9340
		return jqXHR;
indvd00m@0
  9341
	},
indvd00m@0
  9342
indvd00m@0
  9343
	getJSON: function( url, data, callback ) {
indvd00m@0
  9344
		return jQuery.get( url, data, callback, "json" );
indvd00m@0
  9345
	},
indvd00m@0
  9346
indvd00m@0
  9347
	getScript: function( url, callback ) {
indvd00m@0
  9348
		return jQuery.get( url, undefined, callback, "script" );
indvd00m@0
  9349
	}
indvd00m@0
  9350
});
indvd00m@0
  9351
indvd00m@0
  9352
jQuery.each( [ "get", "post" ], function( i, method ) {
indvd00m@0
  9353
	jQuery[ method ] = function( url, data, callback, type ) {
indvd00m@0
  9354
		// shift arguments if data argument was omitted
indvd00m@0
  9355
		if ( jQuery.isFunction( data ) ) {
indvd00m@0
  9356
			type = type || callback;
indvd00m@0
  9357
			callback = data;
indvd00m@0
  9358
			data = undefined;
indvd00m@0
  9359
		}
indvd00m@0
  9360
indvd00m@0
  9361
		return jQuery.ajax({
indvd00m@0
  9362
			url: url,
indvd00m@0
  9363
			type: method,
indvd00m@0
  9364
			dataType: type,
indvd00m@0
  9365
			data: data,
indvd00m@0
  9366
			success: callback
indvd00m@0
  9367
		});
indvd00m@0
  9368
	};
indvd00m@0
  9369
});
indvd00m@0
  9370
indvd00m@0
  9371
indvd00m@0
  9372
jQuery._evalUrl = function( url ) {
indvd00m@0
  9373
	return jQuery.ajax({
indvd00m@0
  9374
		url: url,
indvd00m@0
  9375
		type: "GET",
indvd00m@0
  9376
		dataType: "script",
indvd00m@0
  9377
		async: false,
indvd00m@0
  9378
		global: false,
indvd00m@0
  9379
		"throws": true
indvd00m@0
  9380
	});
indvd00m@0
  9381
};
indvd00m@0
  9382
indvd00m@0
  9383
indvd00m@0
  9384
jQuery.fn.extend({
indvd00m@0
  9385
	wrapAll: function( html ) {
indvd00m@0
  9386
		if ( jQuery.isFunction( html ) ) {
indvd00m@0
  9387
			return this.each(function(i) {
indvd00m@0
  9388
				jQuery(this).wrapAll( html.call(this, i) );
indvd00m@0
  9389
			});
indvd00m@0
  9390
		}
indvd00m@0
  9391
indvd00m@0
  9392
		if ( this[0] ) {
indvd00m@0
  9393
			// The elements to wrap the target around
indvd00m@0
  9394
			var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);
indvd00m@0
  9395
indvd00m@0
  9396
			if ( this[0].parentNode ) {
indvd00m@0
  9397
				wrap.insertBefore( this[0] );
indvd00m@0
  9398
			}
indvd00m@0
  9399
indvd00m@0
  9400
			wrap.map(function() {
indvd00m@0
  9401
				var elem = this;
indvd00m@0
  9402
indvd00m@0
  9403
				while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {
indvd00m@0
  9404
					elem = elem.firstChild;
indvd00m@0
  9405
				}
indvd00m@0
  9406
indvd00m@0
  9407
				return elem;
indvd00m@0
  9408
			}).append( this );
indvd00m@0
  9409
		}
indvd00m@0
  9410
indvd00m@0
  9411
		return this;
indvd00m@0
  9412
	},
indvd00m@0
  9413
indvd00m@0
  9414
	wrapInner: function( html ) {
indvd00m@0
  9415
		if ( jQuery.isFunction( html ) ) {
indvd00m@0
  9416
			return this.each(function(i) {
indvd00m@0
  9417
				jQuery(this).wrapInner( html.call(this, i) );
indvd00m@0
  9418
			});
indvd00m@0
  9419
		}
indvd00m@0
  9420
indvd00m@0
  9421
		return this.each(function() {
indvd00m@0
  9422
			var self = jQuery( this ),
indvd00m@0
  9423
				contents = self.contents();
indvd00m@0
  9424
indvd00m@0
  9425
			if ( contents.length ) {
indvd00m@0
  9426
				contents.wrapAll( html );
indvd00m@0
  9427
indvd00m@0
  9428
			} else {
indvd00m@0
  9429
				self.append( html );
indvd00m@0
  9430
			}
indvd00m@0
  9431
		});
indvd00m@0
  9432
	},
indvd00m@0
  9433
indvd00m@0
  9434
	wrap: function( html ) {
indvd00m@0
  9435
		var isFunction = jQuery.isFunction( html );
indvd00m@0
  9436
indvd00m@0
  9437
		return this.each(function(i) {
indvd00m@0
  9438
			jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );
indvd00m@0
  9439
		});
indvd00m@0
  9440
	},
indvd00m@0
  9441
indvd00m@0
  9442
	unwrap: function() {
indvd00m@0
  9443
		return this.parent().each(function() {
indvd00m@0
  9444
			if ( !jQuery.nodeName( this, "body" ) ) {
indvd00m@0
  9445
				jQuery( this ).replaceWith( this.childNodes );
indvd00m@0
  9446
			}
indvd00m@0
  9447
		}).end();
indvd00m@0
  9448
	}
indvd00m@0
  9449
});
indvd00m@0
  9450
indvd00m@0
  9451
indvd00m@0
  9452
jQuery.expr.filters.hidden = function( elem ) {
indvd00m@0
  9453
	// Support: Opera <= 12.12
indvd00m@0
  9454
	// Opera reports offsetWidths and offsetHeights less than zero on some elements
indvd00m@0
  9455
	return elem.offsetWidth <= 0 && elem.offsetHeight <= 0 ||
indvd00m@0
  9456
		(!support.reliableHiddenOffsets() &&
indvd00m@0
  9457
			((elem.style && elem.style.display) || jQuery.css( elem, "display" )) === "none");
indvd00m@0
  9458
};
indvd00m@0
  9459
indvd00m@0
  9460
jQuery.expr.filters.visible = function( elem ) {
indvd00m@0
  9461
	return !jQuery.expr.filters.hidden( elem );
indvd00m@0
  9462
};
indvd00m@0
  9463
indvd00m@0
  9464
indvd00m@0
  9465
indvd00m@0
  9466
indvd00m@0
  9467
var r20 = /%20/g,
indvd00m@0
  9468
	rbracket = /\[\]$/,
indvd00m@0
  9469
	rCRLF = /\r?\n/g,
indvd00m@0
  9470
	rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
indvd00m@0
  9471
	rsubmittable = /^(?:input|select|textarea|keygen)/i;
indvd00m@0
  9472
indvd00m@0
  9473
function buildParams( prefix, obj, traditional, add ) {
indvd00m@0
  9474
	var name;
indvd00m@0
  9475
indvd00m@0
  9476
	if ( jQuery.isArray( obj ) ) {
indvd00m@0
  9477
		// Serialize array item.
indvd00m@0
  9478
		jQuery.each( obj, function( i, v ) {
indvd00m@0
  9479
			if ( traditional || rbracket.test( prefix ) ) {
indvd00m@0
  9480
				// Treat each array item as a scalar.
indvd00m@0
  9481
				add( prefix, v );
indvd00m@0
  9482
indvd00m@0
  9483
			} else {
indvd00m@0
  9484
				// Item is non-scalar (array or object), encode its numeric index.
indvd00m@0
  9485
				buildParams( prefix + "[" + ( typeof v === "object" ? i : "" ) + "]", v, traditional, add );
indvd00m@0
  9486
			}
indvd00m@0
  9487
		});
indvd00m@0
  9488
indvd00m@0
  9489
	} else if ( !traditional && jQuery.type( obj ) === "object" ) {
indvd00m@0
  9490
		// Serialize object item.
indvd00m@0
  9491
		for ( name in obj ) {
indvd00m@0
  9492
			buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
indvd00m@0
  9493
		}
indvd00m@0
  9494
indvd00m@0
  9495
	} else {
indvd00m@0
  9496
		// Serialize scalar item.
indvd00m@0
  9497
		add( prefix, obj );
indvd00m@0
  9498
	}
indvd00m@0
  9499
}
indvd00m@0
  9500
indvd00m@0
  9501
// Serialize an array of form elements or a set of
indvd00m@0
  9502
// key/values into a query string
indvd00m@0
  9503
jQuery.param = function( a, traditional ) {
indvd00m@0
  9504
	var prefix,
indvd00m@0
  9505
		s = [],
indvd00m@0
  9506
		add = function( key, value ) {
indvd00m@0
  9507
			// If value is a function, invoke it and return its value
indvd00m@0
  9508
			value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value );
indvd00m@0
  9509
			s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
indvd00m@0
  9510
		};
indvd00m@0
  9511
indvd00m@0
  9512
	// Set traditional to true for jQuery <= 1.3.2 behavior.
indvd00m@0
  9513
	if ( traditional === undefined ) {
indvd00m@0
  9514
		traditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional;
indvd00m@0
  9515
	}
indvd00m@0
  9516
indvd00m@0
  9517
	// If an array was passed in, assume that it is an array of form elements.
indvd00m@0
  9518
	if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
indvd00m@0
  9519
		// Serialize the form elements
indvd00m@0
  9520
		jQuery.each( a, function() {
indvd00m@0
  9521
			add( this.name, this.value );
indvd00m@0
  9522
		});
indvd00m@0
  9523
indvd00m@0
  9524
	} else {
indvd00m@0
  9525
		// If traditional, encode the "old" way (the way 1.3.2 or older
indvd00m@0
  9526
		// did it), otherwise encode params recursively.
indvd00m@0
  9527
		for ( prefix in a ) {
indvd00m@0
  9528
			buildParams( prefix, a[ prefix ], traditional, add );
indvd00m@0
  9529
		}
indvd00m@0
  9530
	}
indvd00m@0
  9531
indvd00m@0
  9532
	// Return the resulting serialization
indvd00m@0
  9533
	return s.join( "&" ).replace( r20, "+" );
indvd00m@0
  9534
};
indvd00m@0
  9535
indvd00m@0
  9536
jQuery.fn.extend({
indvd00m@0
  9537
	serialize: function() {
indvd00m@0
  9538
		return jQuery.param( this.serializeArray() );
indvd00m@0
  9539
	},
indvd00m@0
  9540
	serializeArray: function() {
indvd00m@0
  9541
		return this.map(function() {
indvd00m@0
  9542
			// Can add propHook for "elements" to filter or add form elements
indvd00m@0
  9543
			var elements = jQuery.prop( this, "elements" );
indvd00m@0
  9544
			return elements ? jQuery.makeArray( elements ) : this;
indvd00m@0
  9545
		})
indvd00m@0
  9546
		.filter(function() {
indvd00m@0
  9547
			var type = this.type;
indvd00m@0
  9548
			// Use .is(":disabled") so that fieldset[disabled] works
indvd00m@0
  9549
			return this.name && !jQuery( this ).is( ":disabled" ) &&
indvd00m@0
  9550
				rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
indvd00m@0
  9551
				( this.checked || !rcheckableType.test( type ) );
indvd00m@0
  9552
		})
indvd00m@0
  9553
		.map(function( i, elem ) {
indvd00m@0
  9554
			var val = jQuery( this ).val();
indvd00m@0
  9555
indvd00m@0
  9556
			return val == null ?
indvd00m@0
  9557
				null :
indvd00m@0
  9558
				jQuery.isArray( val ) ?
indvd00m@0
  9559
					jQuery.map( val, function( val ) {
indvd00m@0
  9560
						return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
indvd00m@0
  9561
					}) :
indvd00m@0
  9562
					{ name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
indvd00m@0
  9563
		}).get();
indvd00m@0
  9564
	}
indvd00m@0
  9565
});
indvd00m@0
  9566
indvd00m@0
  9567
indvd00m@0
  9568
// Create the request object
indvd00m@0
  9569
// (This is still attached to ajaxSettings for backward compatibility)
indvd00m@0
  9570
jQuery.ajaxSettings.xhr = window.ActiveXObject !== undefined ?
indvd00m@0
  9571
	// Support: IE6+
indvd00m@0
  9572
	function() {
indvd00m@0
  9573
indvd00m@0
  9574
		// XHR cannot access local files, always use ActiveX for that case
indvd00m@0
  9575
		return !this.isLocal &&
indvd00m@0
  9576
indvd00m@0
  9577
			// Support: IE7-8
indvd00m@0
  9578
			// oldIE XHR does not support non-RFC2616 methods (#13240)
indvd00m@0
  9579
			// See http://msdn.microsoft.com/en-us/library/ie/ms536648(v=vs.85).aspx
indvd00m@0
  9580
			// and http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9
indvd00m@0
  9581
			// Although this check for six methods instead of eight
indvd00m@0
  9582
			// since IE also does not support "trace" and "connect"
indvd00m@0
  9583
			/^(get|post|head|put|delete|options)$/i.test( this.type ) &&
indvd00m@0
  9584
indvd00m@0
  9585
			createStandardXHR() || createActiveXHR();
indvd00m@0
  9586
	} :
indvd00m@0
  9587
	// For all other browsers, use the standard XMLHttpRequest object
indvd00m@0
  9588
	createStandardXHR;
indvd00m@0
  9589
indvd00m@0
  9590
var xhrId = 0,
indvd00m@0
  9591
	xhrCallbacks = {},
indvd00m@0
  9592
	xhrSupported = jQuery.ajaxSettings.xhr();
indvd00m@0
  9593
indvd00m@0
  9594
// Support: IE<10
indvd00m@0
  9595
// Open requests must be manually aborted on unload (#5280)
indvd00m@0
  9596
// See https://support.microsoft.com/kb/2856746 for more info
indvd00m@0
  9597
if ( window.attachEvent ) {
indvd00m@0
  9598
	window.attachEvent( "onunload", function() {
indvd00m@0
  9599
		for ( var key in xhrCallbacks ) {
indvd00m@0
  9600
			xhrCallbacks[ key ]( undefined, true );
indvd00m@0
  9601
		}
indvd00m@0
  9602
	});
indvd00m@0
  9603
}
indvd00m@0
  9604
indvd00m@0
  9605
// Determine support properties
indvd00m@0
  9606
support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported );
indvd00m@0
  9607
xhrSupported = support.ajax = !!xhrSupported;
indvd00m@0
  9608
indvd00m@0
  9609
// Create transport if the browser can provide an xhr
indvd00m@0
  9610
if ( xhrSupported ) {
indvd00m@0
  9611
indvd00m@0
  9612
	jQuery.ajaxTransport(function( options ) {
indvd00m@0
  9613
		// Cross domain only allowed if supported through XMLHttpRequest
indvd00m@0
  9614
		if ( !options.crossDomain || support.cors ) {
indvd00m@0
  9615
indvd00m@0
  9616
			var callback;
indvd00m@0
  9617
indvd00m@0
  9618
			return {
indvd00m@0
  9619
				send: function( headers, complete ) {
indvd00m@0
  9620
					var i,
indvd00m@0
  9621
						xhr = options.xhr(),
indvd00m@0
  9622
						id = ++xhrId;
indvd00m@0
  9623
indvd00m@0
  9624
					// Open the socket
indvd00m@0
  9625
					xhr.open( options.type, options.url, options.async, options.username, options.password );
indvd00m@0
  9626
indvd00m@0
  9627
					// Apply custom fields if provided
indvd00m@0
  9628
					if ( options.xhrFields ) {
indvd00m@0
  9629
						for ( i in options.xhrFields ) {
indvd00m@0
  9630
							xhr[ i ] = options.xhrFields[ i ];
indvd00m@0
  9631
						}
indvd00m@0
  9632
					}
indvd00m@0
  9633
indvd00m@0
  9634
					// Override mime type if needed
indvd00m@0
  9635
					if ( options.mimeType && xhr.overrideMimeType ) {
indvd00m@0
  9636
						xhr.overrideMimeType( options.mimeType );
indvd00m@0
  9637
					}
indvd00m@0
  9638
indvd00m@0
  9639
					// X-Requested-With header
indvd00m@0
  9640
					// For cross-domain requests, seeing as conditions for a preflight are
indvd00m@0
  9641
					// akin to a jigsaw puzzle, we simply never set it to be sure.
indvd00m@0
  9642
					// (it can always be set on a per-request basis or even using ajaxSetup)
indvd00m@0
  9643
					// For same-domain requests, won't change header if already provided.
indvd00m@0
  9644
					if ( !options.crossDomain && !headers["X-Requested-With"] ) {
indvd00m@0
  9645
						headers["X-Requested-With"] = "XMLHttpRequest";
indvd00m@0
  9646
					}
indvd00m@0
  9647
indvd00m@0
  9648
					// Set headers
indvd00m@0
  9649
					for ( i in headers ) {
indvd00m@0
  9650
						// Support: IE<9
indvd00m@0
  9651
						// IE's ActiveXObject throws a 'Type Mismatch' exception when setting
indvd00m@0
  9652
						// request header to a null-value.
indvd00m@0
  9653
						//
indvd00m@0
  9654
						// To keep consistent with other XHR implementations, cast the value
indvd00m@0
  9655
						// to string and ignore `undefined`.
indvd00m@0
  9656
						if ( headers[ i ] !== undefined ) {
indvd00m@0
  9657
							xhr.setRequestHeader( i, headers[ i ] + "" );
indvd00m@0
  9658
						}
indvd00m@0
  9659
					}
indvd00m@0
  9660
indvd00m@0
  9661
					// Do send the request
indvd00m@0
  9662
					// This may raise an exception which is actually
indvd00m@0
  9663
					// handled in jQuery.ajax (so no try/catch here)
indvd00m@0
  9664
					xhr.send( ( options.hasContent && options.data ) || null );
indvd00m@0
  9665
indvd00m@0
  9666
					// Listener
indvd00m@0
  9667
					callback = function( _, isAbort ) {
indvd00m@0
  9668
						var status, statusText, responses;
indvd00m@0
  9669
indvd00m@0
  9670
						// Was never called and is aborted or complete
indvd00m@0
  9671
						if ( callback && ( isAbort || xhr.readyState === 4 ) ) {
indvd00m@0
  9672
							// Clean up
indvd00m@0
  9673
							delete xhrCallbacks[ id ];
indvd00m@0
  9674
							callback = undefined;
indvd00m@0
  9675
							xhr.onreadystatechange = jQuery.noop;
indvd00m@0
  9676
indvd00m@0
  9677
							// Abort manually if needed
indvd00m@0
  9678
							if ( isAbort ) {
indvd00m@0
  9679
								if ( xhr.readyState !== 4 ) {
indvd00m@0
  9680
									xhr.abort();
indvd00m@0
  9681
								}
indvd00m@0
  9682
							} else {
indvd00m@0
  9683
								responses = {};
indvd00m@0
  9684
								status = xhr.status;
indvd00m@0
  9685
indvd00m@0
  9686
								// Support: IE<10
indvd00m@0
  9687
								// Accessing binary-data responseText throws an exception
indvd00m@0
  9688
								// (#11426)
indvd00m@0
  9689
								if ( typeof xhr.responseText === "string" ) {
indvd00m@0
  9690
									responses.text = xhr.responseText;
indvd00m@0
  9691
								}
indvd00m@0
  9692
indvd00m@0
  9693
								// Firefox throws an exception when accessing
indvd00m@0
  9694
								// statusText for faulty cross-domain requests
indvd00m@0
  9695
								try {
indvd00m@0
  9696
									statusText = xhr.statusText;
indvd00m@0
  9697
								} catch( e ) {
indvd00m@0
  9698
									// We normalize with Webkit giving an empty statusText
indvd00m@0
  9699
									statusText = "";
indvd00m@0
  9700
								}
indvd00m@0
  9701
indvd00m@0
  9702
								// Filter status for non standard behaviors
indvd00m@0
  9703
indvd00m@0
  9704
								// If the request is local and we have data: assume a success
indvd00m@0
  9705
								// (success with no data won't get notified, that's the best we
indvd00m@0
  9706
								// can do given current implementations)
indvd00m@0
  9707
								if ( !status && options.isLocal && !options.crossDomain ) {
indvd00m@0
  9708
									status = responses.text ? 200 : 404;
indvd00m@0
  9709
								// IE - #1450: sometimes returns 1223 when it should be 204
indvd00m@0
  9710
								} else if ( status === 1223 ) {
indvd00m@0
  9711
									status = 204;
indvd00m@0
  9712
								}
indvd00m@0
  9713
							}
indvd00m@0
  9714
						}
indvd00m@0
  9715
indvd00m@0
  9716
						// Call complete if needed
indvd00m@0
  9717
						if ( responses ) {
indvd00m@0
  9718
							complete( status, statusText, responses, xhr.getAllResponseHeaders() );
indvd00m@0
  9719
						}
indvd00m@0
  9720
					};
indvd00m@0
  9721
indvd00m@0
  9722
					if ( !options.async ) {
indvd00m@0
  9723
						// if we're in sync mode we fire the callback
indvd00m@0
  9724
						callback();
indvd00m@0
  9725
					} else if ( xhr.readyState === 4 ) {
indvd00m@0
  9726
						// (IE6 & IE7) if it's in cache and has been
indvd00m@0
  9727
						// retrieved directly we need to fire the callback
indvd00m@0
  9728
						setTimeout( callback );
indvd00m@0
  9729
					} else {
indvd00m@0
  9730
						// Add to the list of active xhr callbacks
indvd00m@0
  9731
						xhr.onreadystatechange = xhrCallbacks[ id ] = callback;
indvd00m@0
  9732
					}
indvd00m@0
  9733
				},
indvd00m@0
  9734
indvd00m@0
  9735
				abort: function() {
indvd00m@0
  9736
					if ( callback ) {
indvd00m@0
  9737
						callback( undefined, true );
indvd00m@0
  9738
					}
indvd00m@0
  9739
				}
indvd00m@0
  9740
			};
indvd00m@0
  9741
		}
indvd00m@0
  9742
	});
indvd00m@0
  9743
}
indvd00m@0
  9744
indvd00m@0
  9745
// Functions to create xhrs
indvd00m@0
  9746
function createStandardXHR() {
indvd00m@0
  9747
	try {
indvd00m@0
  9748
		return new window.XMLHttpRequest();
indvd00m@0
  9749
	} catch( e ) {}
indvd00m@0
  9750
}
indvd00m@0
  9751
indvd00m@0
  9752
function createActiveXHR() {
indvd00m@0
  9753
	try {
indvd00m@0
  9754
		return new window.ActiveXObject( "Microsoft.XMLHTTP" );
indvd00m@0
  9755
	} catch( e ) {}
indvd00m@0
  9756
}
indvd00m@0
  9757
indvd00m@0
  9758
indvd00m@0
  9759
indvd00m@0
  9760
indvd00m@0
  9761
// Install script dataType
indvd00m@0
  9762
jQuery.ajaxSetup({
indvd00m@0
  9763
	accepts: {
indvd00m@0
  9764
		script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
indvd00m@0
  9765
	},
indvd00m@0
  9766
	contents: {
indvd00m@0
  9767
		script: /(?:java|ecma)script/
indvd00m@0
  9768
	},
indvd00m@0
  9769
	converters: {
indvd00m@0
  9770
		"text script": function( text ) {
indvd00m@0
  9771
			jQuery.globalEval( text );
indvd00m@0
  9772
			return text;
indvd00m@0
  9773
		}
indvd00m@0
  9774
	}
indvd00m@0
  9775
});
indvd00m@0
  9776
indvd00m@0
  9777
// Handle cache's special case and global
indvd00m@0
  9778
jQuery.ajaxPrefilter( "script", function( s ) {
indvd00m@0
  9779
	if ( s.cache === undefined ) {
indvd00m@0
  9780
		s.cache = false;
indvd00m@0
  9781
	}
indvd00m@0
  9782
	if ( s.crossDomain ) {
indvd00m@0
  9783
		s.type = "GET";
indvd00m@0
  9784
		s.global = false;
indvd00m@0
  9785
	}
indvd00m@0
  9786
});
indvd00m@0
  9787
indvd00m@0
  9788
// Bind script tag hack transport
indvd00m@0
  9789
jQuery.ajaxTransport( "script", function(s) {
indvd00m@0
  9790
indvd00m@0
  9791
	// This transport only deals with cross domain requests
indvd00m@0
  9792
	if ( s.crossDomain ) {
indvd00m@0
  9793
indvd00m@0
  9794
		var script,
indvd00m@0
  9795
			head = document.head || jQuery("head")[0] || document.documentElement;
indvd00m@0
  9796
indvd00m@0
  9797
		return {
indvd00m@0
  9798
indvd00m@0
  9799
			send: function( _, callback ) {
indvd00m@0
  9800
indvd00m@0
  9801
				script = document.createElement("script");
indvd00m@0
  9802
indvd00m@0
  9803
				script.async = true;
indvd00m@0
  9804
indvd00m@0
  9805
				if ( s.scriptCharset ) {
indvd00m@0
  9806
					script.charset = s.scriptCharset;
indvd00m@0
  9807
				}
indvd00m@0
  9808
indvd00m@0
  9809
				script.src = s.url;
indvd00m@0
  9810
indvd00m@0
  9811
				// Attach handlers for all browsers
indvd00m@0
  9812
				script.onload = script.onreadystatechange = function( _, isAbort ) {
indvd00m@0
  9813
indvd00m@0
  9814
					if ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) {
indvd00m@0
  9815
indvd00m@0
  9816
						// Handle memory leak in IE
indvd00m@0
  9817
						script.onload = script.onreadystatechange = null;
indvd00m@0
  9818
indvd00m@0
  9819
						// Remove the script
indvd00m@0
  9820
						if ( script.parentNode ) {
indvd00m@0
  9821
							script.parentNode.removeChild( script );
indvd00m@0
  9822
						}
indvd00m@0
  9823
indvd00m@0
  9824
						// Dereference the script
indvd00m@0
  9825
						script = null;
indvd00m@0
  9826
indvd00m@0
  9827
						// Callback if not abort
indvd00m@0
  9828
						if ( !isAbort ) {
indvd00m@0
  9829
							callback( 200, "success" );
indvd00m@0
  9830
						}
indvd00m@0
  9831
					}
indvd00m@0
  9832
				};
indvd00m@0
  9833
indvd00m@0
  9834
				// Circumvent IE6 bugs with base elements (#2709 and #4378) by prepending
indvd00m@0
  9835
				// Use native DOM manipulation to avoid our domManip AJAX trickery
indvd00m@0
  9836
				head.insertBefore( script, head.firstChild );
indvd00m@0
  9837
			},
indvd00m@0
  9838
indvd00m@0
  9839
			abort: function() {
indvd00m@0
  9840
				if ( script ) {
indvd00m@0
  9841
					script.onload( undefined, true );
indvd00m@0
  9842
				}
indvd00m@0
  9843
			}
indvd00m@0
  9844
		};
indvd00m@0
  9845
	}
indvd00m@0
  9846
});
indvd00m@0
  9847
indvd00m@0
  9848
indvd00m@0
  9849
indvd00m@0
  9850
indvd00m@0
  9851
var oldCallbacks = [],
indvd00m@0
  9852
	rjsonp = /(=)\?(?=&|$)|\?\?/;
indvd00m@0
  9853
indvd00m@0
  9854
// Default jsonp settings
indvd00m@0
  9855
jQuery.ajaxSetup({
indvd00m@0
  9856
	jsonp: "callback",
indvd00m@0
  9857
	jsonpCallback: function() {
indvd00m@0
  9858
		var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce++ ) );
indvd00m@0
  9859
		this[ callback ] = true;
indvd00m@0
  9860
		return callback;
indvd00m@0
  9861
	}
indvd00m@0
  9862
});
indvd00m@0
  9863
indvd00m@0
  9864
// Detect, normalize options and install callbacks for jsonp requests
indvd00m@0
  9865
jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
indvd00m@0
  9866
indvd00m@0
  9867
	var callbackName, overwritten, responseContainer,
indvd00m@0
  9868
		jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?
indvd00m@0
  9869
			"url" :
indvd00m@0
  9870
			typeof s.data === "string" && !( s.contentType || "" ).indexOf("application/x-www-form-urlencoded") && rjsonp.test( s.data ) && "data"
indvd00m@0
  9871
		);
indvd00m@0
  9872
indvd00m@0
  9873
	// Handle iff the expected data type is "jsonp" or we have a parameter to set
indvd00m@0
  9874
	if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) {
indvd00m@0
  9875
indvd00m@0
  9876
		// Get callback name, remembering preexisting value associated with it
indvd00m@0
  9877
		callbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ?
indvd00m@0
  9878
			s.jsonpCallback() :
indvd00m@0
  9879
			s.jsonpCallback;
indvd00m@0
  9880
indvd00m@0
  9881
		// Insert callback into url or form data
indvd00m@0
  9882
		if ( jsonProp ) {
indvd00m@0
  9883
			s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName );
indvd00m@0
  9884
		} else if ( s.jsonp !== false ) {
indvd00m@0
  9885
			s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName;
indvd00m@0
  9886
		}
indvd00m@0
  9887
indvd00m@0
  9888
		// Use data converter to retrieve json after script execution
indvd00m@0
  9889
		s.converters["script json"] = function() {
indvd00m@0
  9890
			if ( !responseContainer ) {
indvd00m@0
  9891
				jQuery.error( callbackName + " was not called" );
indvd00m@0
  9892
			}
indvd00m@0
  9893
			return responseContainer[ 0 ];
indvd00m@0
  9894
		};
indvd00m@0
  9895
indvd00m@0
  9896
		// force json dataType
indvd00m@0
  9897
		s.dataTypes[ 0 ] = "json";
indvd00m@0
  9898
indvd00m@0
  9899
		// Install callback
indvd00m@0
  9900
		overwritten = window[ callbackName ];
indvd00m@0
  9901
		window[ callbackName ] = function() {
indvd00m@0
  9902
			responseContainer = arguments;
indvd00m@0
  9903
		};
indvd00m@0
  9904
indvd00m@0
  9905
		// Clean-up function (fires after converters)
indvd00m@0
  9906
		jqXHR.always(function() {
indvd00m@0
  9907
			// Restore preexisting value
indvd00m@0
  9908
			window[ callbackName ] = overwritten;
indvd00m@0
  9909
indvd00m@0
  9910
			// Save back as free
indvd00m@0
  9911
			if ( s[ callbackName ] ) {
indvd00m@0
  9912
				// make sure that re-using the options doesn't screw things around
indvd00m@0
  9913
				s.jsonpCallback = originalSettings.jsonpCallback;
indvd00m@0
  9914
indvd00m@0
  9915
				// save the callback name for future use
indvd00m@0
  9916
				oldCallbacks.push( callbackName );
indvd00m@0
  9917
			}
indvd00m@0
  9918
indvd00m@0
  9919
			// Call if it was a function and we have a response
indvd00m@0
  9920
			if ( responseContainer && jQuery.isFunction( overwritten ) ) {
indvd00m@0
  9921
				overwritten( responseContainer[ 0 ] );
indvd00m@0
  9922
			}
indvd00m@0
  9923
indvd00m@0
  9924
			responseContainer = overwritten = undefined;
indvd00m@0
  9925
		});
indvd00m@0
  9926
indvd00m@0
  9927
		// Delegate to script
indvd00m@0
  9928
		return "script";
indvd00m@0
  9929
	}
indvd00m@0
  9930
});
indvd00m@0
  9931
indvd00m@0
  9932
indvd00m@0
  9933
indvd00m@0
  9934
indvd00m@0
  9935
// data: string of html
indvd00m@0
  9936
// context (optional): If specified, the fragment will be created in this context, defaults to document
indvd00m@0
  9937
// keepScripts (optional): If true, will include scripts passed in the html string
indvd00m@0
  9938
jQuery.parseHTML = function( data, context, keepScripts ) {
indvd00m@0
  9939
	if ( !data || typeof data !== "string" ) {
indvd00m@0
  9940
		return null;
indvd00m@0
  9941
	}
indvd00m@0
  9942
	if ( typeof context === "boolean" ) {
indvd00m@0
  9943
		keepScripts = context;
indvd00m@0
  9944
		context = false;
indvd00m@0
  9945
	}
indvd00m@0
  9946
	context = context || document;
indvd00m@0
  9947
indvd00m@0
  9948
	var parsed = rsingleTag.exec( data ),
indvd00m@0
  9949
		scripts = !keepScripts && [];
indvd00m@0
  9950
indvd00m@0
  9951
	// Single tag
indvd00m@0
  9952
	if ( parsed ) {
indvd00m@0
  9953
		return [ context.createElement( parsed[1] ) ];
indvd00m@0
  9954
	}
indvd00m@0
  9955
indvd00m@0
  9956
	parsed = jQuery.buildFragment( [ data ], context, scripts );
indvd00m@0
  9957
indvd00m@0
  9958
	if ( scripts && scripts.length ) {
indvd00m@0
  9959
		jQuery( scripts ).remove();
indvd00m@0
  9960
	}
indvd00m@0
  9961
indvd00m@0
  9962
	return jQuery.merge( [], parsed.childNodes );
indvd00m@0
  9963
};
indvd00m@0
  9964
indvd00m@0
  9965
indvd00m@0
  9966
// Keep a copy of the old load method
indvd00m@0
  9967
var _load = jQuery.fn.load;
indvd00m@0
  9968
indvd00m@0
  9969
/**
indvd00m@0
  9970
 * Load a url into a page
indvd00m@0
  9971
 */
indvd00m@0
  9972
jQuery.fn.load = function( url, params, callback ) {
indvd00m@0
  9973
	if ( typeof url !== "string" && _load ) {
indvd00m@0
  9974
		return _load.apply( this, arguments );
indvd00m@0
  9975
	}
indvd00m@0
  9976
indvd00m@0
  9977
	var selector, response, type,
indvd00m@0
  9978
		self = this,
indvd00m@0
  9979
		off = url.indexOf(" ");
indvd00m@0
  9980
indvd00m@0
  9981
	if ( off >= 0 ) {
indvd00m@0
  9982
		selector = jQuery.trim( url.slice( off, url.length ) );
indvd00m@0
  9983
		url = url.slice( 0, off );
indvd00m@0
  9984
	}
indvd00m@0
  9985
indvd00m@0
  9986
	// If it's a function
indvd00m@0
  9987
	if ( jQuery.isFunction( params ) ) {
indvd00m@0
  9988
indvd00m@0
  9989
		// We assume that it's the callback
indvd00m@0
  9990
		callback = params;
indvd00m@0
  9991
		params = undefined;
indvd00m@0
  9992
indvd00m@0
  9993
	// Otherwise, build a param string
indvd00m@0
  9994
	} else if ( params && typeof params === "object" ) {
indvd00m@0
  9995
		type = "POST";
indvd00m@0
  9996
	}
indvd00m@0
  9997
indvd00m@0
  9998
	// If we have elements to modify, make the request
indvd00m@0
  9999
	if ( self.length > 0 ) {
indvd00m@0
 10000
		jQuery.ajax({
indvd00m@0
 10001
			url: url,
indvd00m@0
 10002
indvd00m@0
 10003
			// if "type" variable is undefined, then "GET" method will be used
indvd00m@0
 10004
			type: type,
indvd00m@0
 10005
			dataType: "html",
indvd00m@0
 10006
			data: params
indvd00m@0
 10007
		}).done(function( responseText ) {
indvd00m@0
 10008
indvd00m@0
 10009
			// Save response for use in complete callback
indvd00m@0
 10010
			response = arguments;
indvd00m@0
 10011
indvd00m@0
 10012
			self.html( selector ?
indvd00m@0
 10013
indvd00m@0
 10014
				// If a selector was specified, locate the right elements in a dummy div
indvd00m@0
 10015
				// Exclude scripts to avoid IE 'Permission Denied' errors
indvd00m@0
 10016
				jQuery("<div>").append( jQuery.parseHTML( responseText ) ).find( selector ) :
indvd00m@0
 10017
indvd00m@0
 10018
				// Otherwise use the full result
indvd00m@0
 10019
				responseText );
indvd00m@0
 10020
indvd00m@0
 10021
		}).complete( callback && function( jqXHR, status ) {
indvd00m@0
 10022
			self.each( callback, response || [ jqXHR.responseText, status, jqXHR ] );
indvd00m@0
 10023
		});
indvd00m@0
 10024
	}
indvd00m@0
 10025
indvd00m@0
 10026
	return this;
indvd00m@0
 10027
};
indvd00m@0
 10028
indvd00m@0
 10029
indvd00m@0
 10030
indvd00m@0
 10031
indvd00m@0
 10032
// Attach a bunch of functions for handling common AJAX events
indvd00m@0
 10033
jQuery.each( [ "ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend" ], function( i, type ) {
indvd00m@0
 10034
	jQuery.fn[ type ] = function( fn ) {
indvd00m@0
 10035
		return this.on( type, fn );
indvd00m@0
 10036
	};
indvd00m@0
 10037
});
indvd00m@0
 10038
indvd00m@0
 10039
indvd00m@0
 10040
indvd00m@0
 10041
indvd00m@0
 10042
jQuery.expr.filters.animated = function( elem ) {
indvd00m@0
 10043
	return jQuery.grep(jQuery.timers, function( fn ) {
indvd00m@0
 10044
		return elem === fn.elem;
indvd00m@0
 10045
	}).length;
indvd00m@0
 10046
};
indvd00m@0
 10047
indvd00m@0
 10048
indvd00m@0
 10049
indvd00m@0
 10050
indvd00m@0
 10051
indvd00m@0
 10052
var docElem = window.document.documentElement;
indvd00m@0
 10053
indvd00m@0
 10054
/**
indvd00m@0
 10055
 * Gets a window from an element
indvd00m@0
 10056
 */
indvd00m@0
 10057
function getWindow( elem ) {
indvd00m@0
 10058
	return jQuery.isWindow( elem ) ?
indvd00m@0
 10059
		elem :
indvd00m@0
 10060
		elem.nodeType === 9 ?
indvd00m@0
 10061
			elem.defaultView || elem.parentWindow :
indvd00m@0
 10062
			false;
indvd00m@0
 10063
}
indvd00m@0
 10064
indvd00m@0
 10065
jQuery.offset = {
indvd00m@0
 10066
	setOffset: function( elem, options, i ) {
indvd00m@0
 10067
		var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
indvd00m@0
 10068
			position = jQuery.css( elem, "position" ),
indvd00m@0
 10069
			curElem = jQuery( elem ),
indvd00m@0
 10070
			props = {};
indvd00m@0
 10071
indvd00m@0
 10072
		// set position first, in-case top/left are set even on static elem
indvd00m@0
 10073
		if ( position === "static" ) {
indvd00m@0
 10074
			elem.style.position = "relative";
indvd00m@0
 10075
		}
indvd00m@0
 10076
indvd00m@0
 10077
		curOffset = curElem.offset();
indvd00m@0
 10078
		curCSSTop = jQuery.css( elem, "top" );
indvd00m@0
 10079
		curCSSLeft = jQuery.css( elem, "left" );
indvd00m@0
 10080
		calculatePosition = ( position === "absolute" || position === "fixed" ) &&
indvd00m@0
 10081
			jQuery.inArray("auto", [ curCSSTop, curCSSLeft ] ) > -1;
indvd00m@0
 10082
indvd00m@0
 10083
		// need to be able to calculate position if either top or left is auto and position is either absolute or fixed
indvd00m@0
 10084
		if ( calculatePosition ) {
indvd00m@0
 10085
			curPosition = curElem.position();
indvd00m@0
 10086
			curTop = curPosition.top;
indvd00m@0
 10087
			curLeft = curPosition.left;
indvd00m@0
 10088
		} else {
indvd00m@0
 10089
			curTop = parseFloat( curCSSTop ) || 0;
indvd00m@0
 10090
			curLeft = parseFloat( curCSSLeft ) || 0;
indvd00m@0
 10091
		}
indvd00m@0
 10092
indvd00m@0
 10093
		if ( jQuery.isFunction( options ) ) {
indvd00m@0
 10094
			options = options.call( elem, i, curOffset );
indvd00m@0
 10095
		}
indvd00m@0
 10096
indvd00m@0
 10097
		if ( options.top != null ) {
indvd00m@0
 10098
			props.top = ( options.top - curOffset.top ) + curTop;
indvd00m@0
 10099
		}
indvd00m@0
 10100
		if ( options.left != null ) {
indvd00m@0
 10101
			props.left = ( options.left - curOffset.left ) + curLeft;
indvd00m@0
 10102
		}
indvd00m@0
 10103
indvd00m@0
 10104
		if ( "using" in options ) {
indvd00m@0
 10105
			options.using.call( elem, props );
indvd00m@0
 10106
		} else {
indvd00m@0
 10107
			curElem.css( props );
indvd00m@0
 10108
		}
indvd00m@0
 10109
	}
indvd00m@0
 10110
};
indvd00m@0
 10111
indvd00m@0
 10112
jQuery.fn.extend({
indvd00m@0
 10113
	offset: function( options ) {
indvd00m@0
 10114
		if ( arguments.length ) {
indvd00m@0
 10115
			return options === undefined ?
indvd00m@0
 10116
				this :
indvd00m@0
 10117
				this.each(function( i ) {
indvd00m@0
 10118
					jQuery.offset.setOffset( this, options, i );
indvd00m@0
 10119
				});
indvd00m@0
 10120
		}
indvd00m@0
 10121
indvd00m@0
 10122
		var docElem, win,
indvd00m@0
 10123
			box = { top: 0, left: 0 },
indvd00m@0
 10124
			elem = this[ 0 ],
indvd00m@0
 10125
			doc = elem && elem.ownerDocument;
indvd00m@0
 10126
indvd00m@0
 10127
		if ( !doc ) {
indvd00m@0
 10128
			return;
indvd00m@0
 10129
		}
indvd00m@0
 10130
indvd00m@0
 10131
		docElem = doc.documentElement;
indvd00m@0
 10132
indvd00m@0
 10133
		// Make sure it's not a disconnected DOM node
indvd00m@0
 10134
		if ( !jQuery.contains( docElem, elem ) ) {
indvd00m@0
 10135
			return box;
indvd00m@0
 10136
		}
indvd00m@0
 10137
indvd00m@0
 10138
		// If we don't have gBCR, just use 0,0 rather than error
indvd00m@0
 10139
		// BlackBerry 5, iOS 3 (original iPhone)
indvd00m@0
 10140
		if ( typeof elem.getBoundingClientRect !== strundefined ) {
indvd00m@0
 10141
			box = elem.getBoundingClientRect();
indvd00m@0
 10142
		}
indvd00m@0
 10143
		win = getWindow( doc );
indvd00m@0
 10144
		return {
indvd00m@0
 10145
			top: box.top  + ( win.pageYOffset || docElem.scrollTop )  - ( docElem.clientTop  || 0 ),
indvd00m@0
 10146
			left: box.left + ( win.pageXOffset || docElem.scrollLeft ) - ( docElem.clientLeft || 0 )
indvd00m@0
 10147
		};
indvd00m@0
 10148
	},
indvd00m@0
 10149
indvd00m@0
 10150
	position: function() {
indvd00m@0
 10151
		if ( !this[ 0 ] ) {
indvd00m@0
 10152
			return;
indvd00m@0
 10153
		}
indvd00m@0
 10154
indvd00m@0
 10155
		var offsetParent, offset,
indvd00m@0
 10156
			parentOffset = { top: 0, left: 0 },
indvd00m@0
 10157
			elem = this[ 0 ];
indvd00m@0
 10158
indvd00m@0
 10159
		// fixed elements are offset from window (parentOffset = {top:0, left: 0}, because it is its only offset parent
indvd00m@0
 10160
		if ( jQuery.css( elem, "position" ) === "fixed" ) {
indvd00m@0
 10161
			// we assume that getBoundingClientRect is available when computed position is fixed
indvd00m@0
 10162
			offset = elem.getBoundingClientRect();
indvd00m@0
 10163
		} else {
indvd00m@0
 10164
			// Get *real* offsetParent
indvd00m@0
 10165
			offsetParent = this.offsetParent();
indvd00m@0
 10166
indvd00m@0
 10167
			// Get correct offsets
indvd00m@0
 10168
			offset = this.offset();
indvd00m@0
 10169
			if ( !jQuery.nodeName( offsetParent[ 0 ], "html" ) ) {
indvd00m@0
 10170
				parentOffset = offsetParent.offset();
indvd00m@0
 10171
			}
indvd00m@0
 10172
indvd00m@0
 10173
			// Add offsetParent borders
indvd00m@0
 10174
			parentOffset.top  += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true );
indvd00m@0
 10175
			parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true );
indvd00m@0
 10176
		}
indvd00m@0
 10177
indvd00m@0
 10178
		// Subtract parent offsets and element margins
indvd00m@0
 10179
		// note: when an element has margin: auto the offsetLeft and marginLeft
indvd00m@0
 10180
		// are the same in Safari causing offset.left to incorrectly be 0
indvd00m@0
 10181
		return {
indvd00m@0
 10182
			top:  offset.top  - parentOffset.top - jQuery.css( elem, "marginTop", true ),
indvd00m@0
 10183
			left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true)
indvd00m@0
 10184
		};
indvd00m@0
 10185
	},
indvd00m@0
 10186
indvd00m@0
 10187
	offsetParent: function() {
indvd00m@0
 10188
		return this.map(function() {
indvd00m@0
 10189
			var offsetParent = this.offsetParent || docElem;
indvd00m@0
 10190
indvd00m@0
 10191
			while ( offsetParent && ( !jQuery.nodeName( offsetParent, "html" ) && jQuery.css( offsetParent, "position" ) === "static" ) ) {
indvd00m@0
 10192
				offsetParent = offsetParent.offsetParent;
indvd00m@0
 10193
			}
indvd00m@0
 10194
			return offsetParent || docElem;
indvd00m@0
 10195
		});
indvd00m@0
 10196
	}
indvd00m@0
 10197
});
indvd00m@0
 10198
indvd00m@0
 10199
// Create scrollLeft and scrollTop methods
indvd00m@0
 10200
jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( method, prop ) {
indvd00m@0
 10201
	var top = /Y/.test( prop );
indvd00m@0
 10202
indvd00m@0
 10203
	jQuery.fn[ method ] = function( val ) {
indvd00m@0
 10204
		return access( this, function( elem, method, val ) {
indvd00m@0
 10205
			var win = getWindow( elem );
indvd00m@0
 10206
indvd00m@0
 10207
			if ( val === undefined ) {
indvd00m@0
 10208
				return win ? (prop in win) ? win[ prop ] :
indvd00m@0
 10209
					win.document.documentElement[ method ] :
indvd00m@0
 10210
					elem[ method ];
indvd00m@0
 10211
			}
indvd00m@0
 10212
indvd00m@0
 10213
			if ( win ) {
indvd00m@0
 10214
				win.scrollTo(
indvd00m@0
 10215
					!top ? val : jQuery( win ).scrollLeft(),
indvd00m@0
 10216
					top ? val : jQuery( win ).scrollTop()
indvd00m@0
 10217
				);
indvd00m@0
 10218
indvd00m@0
 10219
			} else {
indvd00m@0
 10220
				elem[ method ] = val;
indvd00m@0
 10221
			}
indvd00m@0
 10222
		}, method, val, arguments.length, null );
indvd00m@0
 10223
	};
indvd00m@0
 10224
});
indvd00m@0
 10225
indvd00m@0
 10226
// Add the top/left cssHooks using jQuery.fn.position
indvd00m@0
 10227
// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
indvd00m@0
 10228
// getComputedStyle returns percent when specified for top/left/bottom/right
indvd00m@0
 10229
// rather than make the css module depend on the offset module, we just check for it here
indvd00m@0
 10230
jQuery.each( [ "top", "left" ], function( i, prop ) {
indvd00m@0
 10231
	jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,
indvd00m@0
 10232
		function( elem, computed ) {
indvd00m@0
 10233
			if ( computed ) {
indvd00m@0
 10234
				computed = curCSS( elem, prop );
indvd00m@0
 10235
				// if curCSS returns percentage, fallback to offset
indvd00m@0
 10236
				return rnumnonpx.test( computed ) ?
indvd00m@0
 10237
					jQuery( elem ).position()[ prop ] + "px" :
indvd00m@0
 10238
					computed;
indvd00m@0
 10239
			}
indvd00m@0
 10240
		}
indvd00m@0
 10241
	);
indvd00m@0
 10242
});
indvd00m@0
 10243
indvd00m@0
 10244
indvd00m@0
 10245
// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
indvd00m@0
 10246
jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
indvd00m@0
 10247
	jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name }, function( defaultExtra, funcName ) {
indvd00m@0
 10248
		// margin is only for outerHeight, outerWidth
indvd00m@0
 10249
		jQuery.fn[ funcName ] = function( margin, value ) {
indvd00m@0
 10250
			var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ),
indvd00m@0
 10251
				extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" );
indvd00m@0
 10252
indvd00m@0
 10253
			return access( this, function( elem, type, value ) {
indvd00m@0
 10254
				var doc;
indvd00m@0
 10255
indvd00m@0
 10256
				if ( jQuery.isWindow( elem ) ) {
indvd00m@0
 10257
					// As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there
indvd00m@0
 10258
					// isn't a whole lot we can do. See pull request at this URL for discussion:
indvd00m@0
 10259
					// https://github.com/jquery/jquery/pull/764
indvd00m@0
 10260
					return elem.document.documentElement[ "client" + name ];
indvd00m@0
 10261
				}
indvd00m@0
 10262
indvd00m@0
 10263
				// Get document width or height
indvd00m@0
 10264
				if ( elem.nodeType === 9 ) {
indvd00m@0
 10265
					doc = elem.documentElement;
indvd00m@0
 10266
indvd00m@0
 10267
					// Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], whichever is greatest
indvd00m@0
 10268
					// unfortunately, this causes bug #3838 in IE6/8 only, but there is currently no good, small way to fix it.
indvd00m@0
 10269
					return Math.max(
indvd00m@0
 10270
						elem.body[ "scroll" + name ], doc[ "scroll" + name ],
indvd00m@0
 10271
						elem.body[ "offset" + name ], doc[ "offset" + name ],
indvd00m@0
 10272
						doc[ "client" + name ]
indvd00m@0
 10273
					);
indvd00m@0
 10274
				}
indvd00m@0
 10275
indvd00m@0
 10276
				return value === undefined ?
indvd00m@0
 10277
					// Get width or height on the element, requesting but not forcing parseFloat
indvd00m@0
 10278
					jQuery.css( elem, type, extra ) :
indvd00m@0
 10279
indvd00m@0
 10280
					// Set width or height on the element
indvd00m@0
 10281
					jQuery.style( elem, type, value, extra );
indvd00m@0
 10282
			}, type, chainable ? margin : undefined, chainable, null );
indvd00m@0
 10283
		};
indvd00m@0
 10284
	});
indvd00m@0
 10285
});
indvd00m@0
 10286
indvd00m@0
 10287
indvd00m@0
 10288
// The number of elements contained in the matched element set
indvd00m@0
 10289
jQuery.fn.size = function() {
indvd00m@0
 10290
	return this.length;
indvd00m@0
 10291
};
indvd00m@0
 10292
indvd00m@0
 10293
jQuery.fn.andSelf = jQuery.fn.addBack;
indvd00m@0
 10294
indvd00m@0
 10295
indvd00m@0
 10296
indvd00m@0
 10297
indvd00m@0
 10298
// Register as a named AMD module, since jQuery can be concatenated with other
indvd00m@0
 10299
// files that may use define, but not via a proper concatenation script that
indvd00m@0
 10300
// understands anonymous AMD modules. A named AMD is safest and most robust
indvd00m@0
 10301
// way to register. Lowercase jquery is used because AMD module names are
indvd00m@0
 10302
// derived from file names, and jQuery is normally delivered in a lowercase
indvd00m@0
 10303
// file name. Do this after creating the global so that if an AMD module wants
indvd00m@0
 10304
// to call noConflict to hide this version of jQuery, it will work.
indvd00m@0
 10305
indvd00m@0
 10306
// Note that for maximum portability, libraries that are not jQuery should
indvd00m@0
 10307
// declare themselves as anonymous modules, and avoid setting a global if an
indvd00m@0
 10308
// AMD loader is present. jQuery is a special case. For more information, see
indvd00m@0
 10309
// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon
indvd00m@0
 10310
indvd00m@0
 10311
if ( typeof define === "function" && define.amd ) {
indvd00m@0
 10312
	define( "jquery", [], function() {
indvd00m@0
 10313
		return jQuery;
indvd00m@0
 10314
	});
indvd00m@0
 10315
}
indvd00m@0
 10316
indvd00m@0
 10317
indvd00m@0
 10318
indvd00m@0
 10319
indvd00m@0
 10320
var
indvd00m@0
 10321
	// Map over jQuery in case of overwrite
indvd00m@0
 10322
	_jQuery = window.jQuery,
indvd00m@0
 10323
indvd00m@0
 10324
	// Map over the $ in case of overwrite
indvd00m@0
 10325
	_$ = window.$;
indvd00m@0
 10326
indvd00m@0
 10327
jQuery.noConflict = function( deep ) {
indvd00m@0
 10328
	if ( window.$ === jQuery ) {
indvd00m@0
 10329
		window.$ = _$;
indvd00m@0
 10330
	}
indvd00m@0
 10331
indvd00m@0
 10332
	if ( deep && window.jQuery === jQuery ) {
indvd00m@0
 10333
		window.jQuery = _jQuery;
indvd00m@0
 10334
	}
indvd00m@0
 10335
indvd00m@0
 10336
	return jQuery;
indvd00m@0
 10337
};
indvd00m@0
 10338
indvd00m@0
 10339
// Expose jQuery and $ identifiers, even in
indvd00m@0
 10340
// AMD (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
indvd00m@0
 10341
// and CommonJS for browser emulators (#13566)
indvd00m@0
 10342
if ( typeof noGlobal === strundefined ) {
indvd00m@0
 10343
	window.jQuery = window.$ = jQuery;
indvd00m@0
 10344
}
indvd00m@0
 10345
indvd00m@0
 10346
indvd00m@0
 10347
indvd00m@0
 10348
indvd00m@0
 10349
return jQuery;
indvd00m@0
 10350
indvd00m@0
 10351
}));