PageSourceSearch

https://threeriver.net/wp-content/themes/threeriver/assets/scripts/app.js?ver=1761767127

js threeriver.net collected 2026-10-07 22:54:06 UTC 422,798 bytes, 9,613 lines download raw bytes

vendor: 6,383 bytes, lines 1-225
1/*!
2 * jQuery JavaScript Library v2.0.3
3 * http://jquery.com/
4 *
5 * Includes Sizzle.js
6 * http://sizzlejs.com/
7 *
8 * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
9 * Released under the MIT license
10 * http://jquery.org/license
11 *
12 * Date: 2013-07-03T13:30Z
13 */
14(function( window, undefined ) {
15
16// Can't do this because several apps including ASP.NET trace
17// the stack via arguments.caller.callee and Firefox dies if
18// you try to trace through "use strict" call chains. (#13335)
19// Support: Firefox 18+
20//"use strict";
21var
22	// A central reference to the root jQuery(document)
23	rootjQuery,
24
25	// The deferred used on DOM ready
26	readyList,
27
28	// Support: IE9
29	// For `typeof xmlNode.method` instead of `xmlNode.method !== undefined`
30	core_strundefined = typeof undefined,
31
32	// Use the correct document accordingly with window argument (sandbox)
33	location = window.location,
34	document = window.document,
35	docElem = document.documentElement,
36
37	// Map over jQuery in case of overwrite
38	_jQuery = window.jQuery,
39
40	// Map over the $ in case of overwrite
41	_$ = window.$,
42
43	// [[Class]] -> type pairs
44	class2type = {},
45
46	// List of deleted data cache ids, so we can reuse them
47	core_deletedIds = [],
48
49	core_version = "2.0.3",
50
51	// Save a reference to some core methods
52	core_concat = core_deletedIds.concat,
53	core_push = core_deletedIds.push,
54	core_slice = core_deletedIds.slice,
55	core_indexOf = core_deletedIds.indexOf,
56	core_toString = class2type.toString,
57	core_hasOwn = class2type.hasOwnProperty,
58	core_trim = core_version.trim,
59
60	// Define a local copy of jQuery
61	jQuery = function( selector, context ) {
62		// The jQuery object is actually just the init constructor 'enhanced'
63		return new jQuery.fn.init( selector, context, rootjQuery );
64	},
65
66	// Used for matching numbers
67	core_pnum = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,
68
69	// Used for splitting on whitespace
70	core_rnotwhite = /\S+/g,
71
72	// A simple way to check for HTML strings
73	// Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
74	// Strict HTML recognition (#11290: must start with <)
75	rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,
76
77	// Match a standalone tag
78	rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>|)$/,
79
80	// Matches dashed string for camelizing
81	rmsPrefix = /^-ms-/,
82	rdashAlpha = /-([\da-z])/gi,
83
84	// Used by jQuery.camelCase as callback to replace()
85	fcamelCase = function( all, letter ) {
86		return letter.toUpperCase();
87	},
88
89	// The ready event handler and self cleanup method
90	completed = function() {
91		document.removeEventListener( "DOMContentLoaded", completed, false );
92		window.removeEventListener( "load", completed, false );
93		jQuery.ready();
94	};
95
96jQuery.fn = jQuery.prototype = {
97	// The current version of jQuery being used
98	jquery: core_version,
99
100	constructor: jQuery,
101	init: function( selector, context, rootjQuery ) {
102		var match, elem;
103
104		// HANDLE: $(""), $(null), $(undefined), $(false)
105		if ( !selector ) {
106			return this;
107		}
108
109		// Handle HTML strings
110		if ( typeof selector === "string" ) {
111			if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {
112				// Assume that strings that start and end with <> are HTML and skip the regex check
113				match = [ null, selector, null ];
114
115			} else {
116				match = rquickExpr.exec( selector );
117			}
118
119			// Match html or make sure no context is specified for #id
120			if ( match && (match[1] || !context) ) {
121
122				// HANDLE: $(html) -> $(array)
123				if ( match[1] ) {
124					context = context instanceof jQuery ? context[0] : context;
125
126					// scripts is true for back-compat
127					jQuery.merge( this, jQuery.parseHTML(
128						match[1],
129						context && context.nodeType ? context.ownerDocument || context : document,
130						true
131					) );
132
133					// HANDLE: $(html, props)
134					if ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) {
135						for ( match in context ) {
136							// Properties of context are called as methods if possible
137							if ( jQuery.isFunction( this[ match ] ) ) {
138								this[ match ]( context[ match ] );
139
140							// ...and otherwise set as attributes
141							} else {
142								this.attr( match, context[ match ] );
143							}
144						}
145					}
146
147					return this;
148
149				// HANDLE: $(#id)
150				} else {
151					elem = document.getElementById( match[2] );
152
153					// Check parentNode to catch when Blackberry 4.6 returns
154					// nodes that are no longer in the document #6963
155					if ( elem && elem.parentNode ) {
156						// Inject the element directly into the jQuery object
157						this.length = 1;
158						this[0] = elem;
159					}
160
161					this.context = document;
162					this.selector = selector;
163					return this;
164				}
165
166			// HANDLE: $(expr, $(...))
167			} else if ( !context || context.jquery ) {
168				return ( context || rootjQuery ).find( selector );
169
170			// HANDLE: $(expr, context)
171			// (which is just equivalent to: $(context).find(expr)
172			} else {
173				return this.constructor( context ).find( selector );
174			}
175
176		// HANDLE: $(DOMElement)
177		} else if ( selector.nodeType ) {
178			this.context = this[0] = selector;
179			this.length = 1;
180			return this;
181
182		// HANDLE: $(function)
183		// Shortcut for document ready
184		} else if ( jQuery.isFunction( selector ) ) {
185			return rootjQuery.ready( selector );
186		}
187
188		if ( selector.selector !== undefined ) {
189			this.selector = selector.selector;
190			this.context = selector.context;
191		}
192
193		return jQuery.makeArray( selector, this );
194	},
195
196	// Start with an empty selector
197	selector: "",
198
199	// The default length of a jQuery object is 0
200	length: 0,
201
202	toArray: function() {
203		return core_slice.call( this );
204	},
205
206	// Get the Nth element in the matched element set OR
207	// Get the whole matched element set as a clean array
208	get: function( num ) {
209		return num == null ?
210
211			// Return a 'clean' array
212			this.toArray() :
213
214			// Return just the object
215			( num < 0 ? this[ this.length + num ] : this[ num ] );
216	},
217
218	// Take an array of elements and push it onto the stack
219	// (returning the new matched element set)
220	pushStack: function( elems ) {
221
222		// Build a new jQuery matched element set
223		var ret = jQuery.merge( this.constructor(), elems );
224
225		// Add the old object onto the stack (as a reference)
vendor: 14,995 bytes, lines 226-841
226		ret.prevObject = this;
227		ret.context = this.context;
228
229		// Return the newly-formed element set
230		return ret;
231	},
232
233	// Execute a callback for every element in the matched set.
234	// (You can seed the arguments with an array of args, but this is
235	// only used internally.)
236	each: function( callback, args ) {
237		return jQuery.each( this, callback, args );
238	},
239
240	ready: function( fn ) {
241		// Add the callback
242		jQuery.ready.promise().done( fn );
243
244		return this;
245	},
246
247	slice: function() {
248		return this.pushStack( core_slice.apply( this, arguments ) );
249	},
250
251	first: function() {
252		return this.eq( 0 );
253	},
254
255	last: function() {
256		return this.eq( -1 );
257	},
258
259	eq: function( i ) {
260		var len = this.length,
261			j = +i + ( i < 0 ? len : 0 );
262		return this.pushStack( j >= 0 && j < len ? [ this[j] ] : [] );
263	},
264
265	map: function( callback ) {
266		return this.pushStack( jQuery.map(this, function( elem, i ) {
267			return callback.call( elem, i, elem );
268		}));
269	},
270
271	end: function() {
272		return this.prevObject || this.constructor(null);
273	},
274
275	// For internal use only.
276	// Behaves like an Array's method, not like a jQuery method.
277	push: core_push,
278	sort: [].sort,
279	splice: [].splice
280};
281
282// Give the init function the jQuery prototype for later instantiation
283jQuery.fn.init.prototype = jQuery.fn;
284
285jQuery.extend = jQuery.fn.extend = function() {
286	var options, name, src, copy, copyIsArray, clone,
287		target = arguments[0] || {},
288		i = 1,
289		length = arguments.length,
290		deep = false;
291
292	// Handle a deep copy situation
293	if ( typeof target === "boolean" ) {
294		deep = target;
295		target = arguments[1] || {};
296		// skip the boolean and the target
297		i = 2;
298	}
299
300	// Handle case when target is a string or something (possible in deep copy)
301	if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
302		target = {};
303	}
304
305	// extend jQuery itself if only one argument is passed
306	if ( length === i ) {
307		target = this;
308		--i;
309	}
310
311	for ( ; i < length; i++ ) {
312		// Only deal with non-null/undefined values
313		if ( (options = arguments[ i ]) != null ) {
314			// Extend the base object
315			for ( name in options ) {
316				src = target[ name ];
317				copy = options[ name ];
318
319				// Prevent never-ending loop
320				if ( target === copy ) {
321					continue;
322				}
323
324				// Recurse if we're merging plain objects or arrays
325				if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {
326					if ( copyIsArray ) {
327						copyIsArray = false;
328						clone = src && jQuery.isArray(src) ? src : [];
329
330					} else {
331						clone = src && jQuery.isPlainObject(src) ? src : {};
332					}
333
334					// Never move original objects, clone them
335					target[ name ] = jQuery.extend( deep, clone, copy );
336
337				// Don't bring in undefined values
338				} else if ( copy !== undefined ) {
339					target[ name ] = copy;
340				}
341			}
342		}
343	}
344
345	// Return the modified object
346	return target;
347};
348
349jQuery.extend({
350	// Unique for each copy of jQuery on the page
351	expando: "jQuery" + ( core_version + Math.random() ).replace( /\D/g, "" ),
352
353	noConflict: function( deep ) {
354		if ( window.$ === jQuery ) {
355			window.$ = _$;
356		}
357
358		if ( deep && window.jQuery === jQuery ) {
359			window.jQuery = _jQuery;
360		}
361
362		return jQuery;
363	},
364
365	// Is the DOM ready to be used? Set to true once it occurs.
366	isReady: false,
367
368	// A counter to track how many items to wait for before
369	// the ready event fires. See #6781
370	readyWait: 1,
371
372	// Hold (or release) the ready event
373	holdReady: function( hold ) {
374		if ( hold ) {
375			jQuery.readyWait++;
376		} else {
377			jQuery.ready( true );
378		}
379	},
380
381	// Handle when the DOM is ready
382	ready: function( wait ) {
383
384		// Abort if there are pending holds or we're already ready
385		if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
386			return;
387		}
388
389		// Remember that the DOM is ready
390		jQuery.isReady = true;
391
392		// If a normal DOM Ready event fired, decrement, and wait if need be
393		if ( wait !== true && --jQuery.readyWait > 0 ) {
394			return;
395		}
396
397		// If there are functions bound, to execute
398		readyList.resolveWith( document, [ jQuery ] );
399
400		// Trigger any bound ready events
401		if ( jQuery.fn.trigger ) {
402			jQuery( document ).trigger("ready").off("ready");
403		}
404	},
405
406	// See test/unit/core.js for details concerning isFunction.
407	// Since version 1.3, DOM methods and functions like alert
408	// aren't supported. They return false on IE (#2968).
409	isFunction: function( obj ) {
410		return jQuery.type(obj) === "function";
411	},
412
413	isArray: Array.isArray,
414
415	isWindow: function( obj ) {
416		return obj != null && obj === obj.window;
417	},
418
419	isNumeric: function( obj ) {
420		return !isNaN( parseFloat(obj) ) && isFinite( obj );
421	},
422
423	type: function( obj ) {
424		if ( obj == null ) {
425			return String( obj );
426		}
427		// Support: Safari <= 5.1 (functionish RegExp)
428		return typeof obj === "object" || typeof obj === "function" ?
429			class2type[ core_toString.call(obj) ] || "object" :
430			typeof obj;
431	},
432
433	isPlainObject: function( obj ) {
434		// Not plain objects:
435		// - Any object or value whose internal [[Class]] property is not "[object Object]"
436		// - DOM nodes
437		// - window
438		if ( jQuery.type( obj ) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
439			return false;
440		}
441
442		// Support: Firefox <20
443		// The try/catch suppresses exceptions thrown when attempting to access
444		// the "constructor" property of certain host objects, ie. |window.location|
445		// https://bugzilla.mozilla.org/show_bug.cgi?id=814622
446		try {
447			if ( obj.constructor &&
448					!core_hasOwn.call( obj.constructor.prototype, "isPrototypeOf" ) ) {
449				return false;
450			}
451		} catch ( e ) {
452			return false;
453		}
454
455		// If the function hasn't returned already, we're confident that
456		// |obj| is a plain object, created by {} or constructed with new Object
457		return true;
458	},
459
460	isEmptyObject: function( obj ) {
461		var name;
462		for ( name in obj ) {
463			return false;
464		}
465		return true;
466	},
467
468	error: function( msg ) {
469		throw new Error( msg );
470	},
471
472	// data: string of html
473	// context (optional): If specified, the fragment will be created in this context, defaults to document
474	// keepScripts (optional): If true, will include scripts passed in the html string
475	parseHTML: function( data, context, keepScripts ) {
476		if ( !data || typeof data !== "string" ) {
477			return null;
478		}
479		if ( typeof context === "boolean" ) {
480			keepScripts = context;
481			context = false;
482		}
483		context = context || document;
484
485		var parsed = rsingleTag.exec( data ),
486			scripts = !keepScripts && [];
487
488		// Single tag
489		if ( parsed ) {
490			return [ context.createElement( parsed[1] ) ];
491		}
492
493		parsed = jQuery.buildFragment( [ data ], context, scripts );
494
495		if ( scripts ) {
496			jQuery( scripts ).remove();
497		}
498
499		return jQuery.merge( [], parsed.childNodes );
500	},
501
502	parseJSON: JSON.parse,
503
504	// Cross-browser xml parsing
505	parseXML: function( data ) {
506		var xml, tmp;
507		if ( !data || typeof data !== "string" ) {
508			return null;
509		}
510
511		// Support: IE9
512		try {
513			tmp = new DOMParser();
514			xml = tmp.parseFromString( data , "text/xml" );
515		} catch ( e ) {
516			xml = undefined;
517		}
518
519		if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) {
520			jQuery.error( "Invalid XML: " + data );
521		}
522		return xml;
523	},
524
525	noop: function() {},
526
527	// Evaluates a script in a global context
528	globalEval: function( code ) {
529		var script,
530				indirect = eval;
531
532		code = jQuery.trim( code );
533
534		if ( code ) {
535			// If the code includes a valid, prologue position
536			// strict mode pragma, execute code by injecting a
537			// script tag into the document.
538			if ( code.indexOf("use strict") === 1 ) {
539				script = document.createElement("script");
540				script.text = code;
541				document.head.appendChild( script ).parentNode.removeChild( script );
542			} else {
543			// Otherwise, avoid the DOM node creation, insertion
544			// and removal by using an indirect global eval
545				indirect( code );
546			}
547		}
548	},
549
550	// Convert dashed to camelCase; used by the css and data modules
551	// Microsoft forgot to hump their vendor prefix (#9572)
552	camelCase: function( string ) {
553		return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
554	},
555
556	nodeName: function( elem, name ) {
557		return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
558	},
559
560	// args is for internal usage only
561	each: function( obj, callback, args ) {
562		var value,
563			i = 0,
564			length = obj.length,
565			isArray = isArraylike( obj );
566
567		if ( args ) {
568			if ( isArray ) {
569				for ( ; i < length; i++ ) {
570					value = callback.apply( obj[ i ], args );
571
572					if ( value === false ) {
573						break;
574					}
575				}
576			} else {
577				for ( i in obj ) {
578					value = callback.apply( obj[ i ], args );
579
580					if ( value === false ) {
581						break;
582					}
583				}
584			}
585
586		// A special, fast, case for the most common use of each
587		} else {
588			if ( isArray ) {
589				for ( ; i < length; i++ ) {
590					value = callback.call( obj[ i ], i, obj[ i ] );
591
592					if ( value === false ) {
593						break;
594					}
595				}
596			} else {
597				for ( i in obj ) {
598					value = callback.call( obj[ i ], i, obj[ i ] );
599
600					if ( value === false ) {
601						break;
602					}
603				}
604			}
605		}
606
607		return obj;
608	},
609
610	trim: function( text ) {
611		return text == null ? "" : core_trim.call( text );
612	},
613
614	// results is for internal usage only
615	makeArray: function( arr, results ) {
616		var ret = results || [];
617
618		if ( arr != null ) {
619			if ( isArraylike( Object(arr) ) ) {
620				jQuery.merge( ret,
621					typeof arr === "string" ?
622					[ arr ] : arr
623				);
624			} else {
625				core_push.call( ret, arr );
626			}
627		}
628
629		return ret;
630	},
631
632	inArray: function( elem, arr, i ) {
633		return arr == null ? -1 : core_indexOf.call( arr, elem, i );
634	},
635
636	merge: function( first, second ) {
637		var l = second.length,
638			i = first.length,
639			j = 0;
640
641		if ( typeof l === "number" ) {
642			for ( ; j < l; j++ ) {
643				first[ i++ ] = second[ j ];
644			}
645		} else {
646			while ( second[j] !== undefined ) {
647				first[ i++ ] = second[ j++ ];
648			}
649		}
650
651		first.length = i;
652
653		return first;
654	},
655
656	grep: function( elems, callback, inv ) {
657		var retVal,
658			ret = [],
659			i = 0,
660			length = elems.length;
661		inv = !!inv;
662
663		// Go through the array, only saving the items
664		// that pass the validator function
665		for ( ; i < length; i++ ) {
666			retVal = !!callback( elems[ i ], i );
667			if ( inv !== retVal ) {
668				ret.push( elems[ i ] );
669			}
670		}
671
672		return ret;
673	},
674
675	// arg is for internal usage only
676	map: function( elems, callback, arg ) {
677		var value,
678			i = 0,
679			length = elems.length,
680			isArray = isArraylike( elems ),
681			ret = [];
682
683		// Go through the array, translating each of the items to their
684		if ( isArray ) {
685			for ( ; i < length; i++ ) {
686				value = callback( elems[ i ], i, arg );
687
688				if ( value != null ) {
689					ret[ ret.length ] = value;
690				}
691			}
692
693		// Go through every key on the object,
694		} else {
695			for ( i in elems ) {
696				value = callback( elems[ i ], i, arg );
697
698				if ( value != null ) {
699					ret[ ret.length ] = value;
700				}
701			}
702		}
703
704		// Flatten any nested arrays
705		return core_concat.apply( [], ret );
706	},
707
708	// A global GUID counter for objects
709	guid: 1,
710
711	// Bind a function to a context, optionally partially applying any
712	// arguments.
713	proxy: function( fn, context ) {
714		var tmp, args, proxy;
715
716		if ( typeof context === "string" ) {
717			tmp = fn[ context ];
718			context = fn;
719			fn = tmp;
720		}
721
722		// Quick check to determine if target is callable, in the spec
723		// this throws a TypeError, but we will just return undefined.
724		if ( !jQuery.isFunction( fn ) ) {
725			return undefined;
726		}
727
728		// Simulated bind
729		args = core_slice.call( arguments, 2 );
730		proxy = function() {
731			return fn.apply( context || this, args.concat( core_slice.call( arguments ) ) );
732		};
733
734		// Set the guid of unique handler to the same of original handler, so it can be removed
735		proxy.guid = fn.guid = fn.guid || jQuery.guid++;
736
737		return proxy;
738	},
739
740	// Multifunctional method to get and set values of a collection
741	// The value/s can optionally be executed if it's a function
742	access: function( elems, fn, key, value, chainable, emptyGet, raw ) {
743		var i = 0,
744			length = elems.length,
745			bulk = key == null;
746
747		// Sets many values
748		if ( jQuery.type( key ) === "object" ) {
749			chainable = true;
750			for ( i in key ) {
751				jQuery.access( elems, fn, i, key[i], true, emptyGet, raw );
752			}
753
754		// Sets one value
755		} else if ( value !== undefined ) {
756			chainable = true;
757
758			if ( !jQuery.isFunction( value ) ) {
759				raw = true;
760			}
761
762			if ( bulk ) {
763				// Bulk operations run against the entire set
764				if ( raw ) {
765					fn.call( elems, value );
766					fn = null;
767
768				// ...except when executing function values
769				} else {
770					bulk = fn;
771					fn = function( elem, key, value ) {
772						return bulk.call( jQuery( elem ), value );
773					};
774				}
775			}
776
777			if ( fn ) {
778				for ( ; i < length; i++ ) {
779					fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) );
780				}
781			}
782		}
783
784		return chainable ?
785			elems :
786
787			// Gets
788			bulk ?
789				fn.call( elems ) :
790				length ? fn( elems[0], key ) : emptyGet;
791	},
792
793	now: Date.now,
794
795	// A method for quickly swapping in/out CSS properties to get correct calculations.
796	// Note: this method belongs to the css module but it's needed here for the support module.
797	// If support gets modularized, this method should be moved back to the css module.
798	swap: function( elem, options, callback, args ) {
799		var ret, name,
800			old = {};
801
802		// Remember the old values, and insert the new ones
803		for ( name in options ) {
804			old[ name ] = elem.style[ name ];
805			elem.style[ name ] = options[ name ];
806		}
807
808		ret = callback.apply( elem, args || [] );
809
810		// Revert the old values
811		for ( name in options ) {
812			elem.style[ name ] = old[ name ];
813		}
814
815		return ret;
816	}
817});
818
819jQuery.ready.promise = function( obj ) {
820	if ( !readyList ) {
821
822		readyList = jQuery.Deferred();
823
824		// Catch cases where $(document).ready() is called after the browser event has already occurred.
825		// we once tried to use readyState "interactive" here, but it caused issues like the one
826		// discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15
827		if ( document.readyState === "complete" ) {
828			// Handle it asynchronously to allow scripts the opportunity to delay ready
829			setTimeout( jQuery.ready );
830
831		} else {
832
833			// Use the handy event callback
834			document.addEventListener( "DOMContentLoaded", completed, false );
835
836			// A fallback to window.onload, that will always work
837			window.addEventListener( "load", completed, false );
838		}
839	}
840	return readyList.promise( obj );
841};
842
843// Populate the class2type map
844jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) {
845	class2type[ "[object " + name + "]" ] = name.toLowerCase();
846});
847
848function isArraylike( obj ) {
849	var length = obj.length,
850		type = jQuery.type( obj );
851
852	if ( jQuery.isWindow( obj ) ) {
853		return false;
854	}
855
856	if ( obj.nodeType === 1 && length ) {
857		return true;
858	}
859
860	return type === "array" || type !== "function" &&
861		( length === 0 ||
862		typeof length === "number" && length > 0 && ( length - 1 ) in obj );
863}
864
865// All jQuery objects should point back to these
866rootjQuery = jQuery(document);
867/*!
868 * Sizzle CSS Selector Engine v1.9.4-pre
869 * http://sizzlejs.com/
870 *
871 * Copyright 2013 jQuery Foundation, Inc. and other contributors
872 * Released under the MIT license
873 * http://jquery.org/license
874 *
875 * Date: 2013-06-03
876 */
877(function( window, undefined ) {
878
879var i,
880	support,
881	cachedruns,
882	Expr,
883	getText,
884	isXML,
885	compile,
886	outermostContext,
887	sortInput,
888
889	// Local document vars
890	setDocument,
891	document,
892	docElem,
893	documentIsHTML,
894	rbuggyQSA,
895	rbuggyMatches,
896	matches,
897	contains,
898
899	// Instance-specific data
900	expando = "sizzle" + -(new Date()),
901	preferredDoc = window.document,
902	dirruns = 0,
903	done = 0,
904	classCache = createCache(),
905	tokenCache = createCache(),
906	compilerCache = createCache(),
907	hasDuplicate = false,
908	sortOrder = function( a, b ) {
909		if ( a === b ) {
910			hasDuplicate = true;
911			return 0;
912		}
913		return 0;
914	},
915
916	// General-purpose constants
917	strundefined = typeof undefined,
918	MAX_NEGATIVE = 1 << 31,
919
920	// Instance methods
921	hasOwn = ({}).hasOwnProperty,
922	arr = [],
923	pop = arr.pop,
924	push_native = arr.push,
925	push = arr.push,
926	slice = arr.slice,
927	// Use a stripped-down indexOf if we can't use a native one
928	indexOf = arr.indexOf || function( elem ) {
929		var i = 0,
930			len = this.length;
931		for ( ; i < len; i++ ) {
932			if ( this[i] === elem ) {
933				return i;
934			}
935		}
936		return -1;
937	},
938
939	booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
940
941	// Regular expressions
942
943	// Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace
944	whitespace = "[\\x20\\t\\r\\n\\f]",
945	// http://www.w3.org/TR/css3-syntax/#characters
946	characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",
947
948	// Loosely modeled on CSS identifier characters
949	// An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors
950	// Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
951	identifier = characterEncoding.replace( "w", "w#" ),
952
953	// Acceptable operators http://www.w3.org/TR/selectors/#attribute-selectors
954	attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace +
955		"*(?:([*^$|!~]?=)" + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]",
956
957	// Prefer arguments quoted,
958	//   then not containing pseudos/brackets,
959	//   then attribute selectors/non-parenthetical expressions,
960	//   then anything else
961	// These preferences are here to reduce the number of selectors
962	//   needing tokenize in the PSEUDO preFilter
963	pseudos = ":(" + characterEncoding + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + attributes.replace( 3, 8 ) + ")*)|.*)\\)|)",
964
965	// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
966	rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ),
967
968	rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
969	rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ),
970
971	rsibling = new RegExp( whitespace + "*[+~]" ),
972	rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*)" + whitespace + "*\\]", "g" ),
973
974	rpseudo = new RegExp( pseudos ),
975	ridentifier = new RegExp( "^" + identifier + "$" ),
976
977	matchExpr = {
978		"ID": new RegExp( "^#(" + characterEncoding + ")" ),
979		"CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ),
980		"TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ),
981		"ATTR": new RegExp( "^" + attributes ),
982		"PSEUDO": new RegExp( "^" + pseudos ),
983		"CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace +
984			"*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace +
985			"*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
986		"bool": new RegExp( "^(?:" + booleans + ")$", "i" ),
987		// For use in libraries implementing .is()
988		// We use this for POS matching in `select`
989		"needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +
990			whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
991	},
992
993	rnative = /^[^{]+\{\s*\[native \w/,
994
995	// Easily-parseable/retrievable ID or TAG or CLASS selectors
996	rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
997
998	rinputs = /^(?:input|select|textarea|button)$/i,
999	rheader = /^h\d$/i,
1000
1001	rescape = /'|\\/g,
1002
1003	// CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
1004	runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ),
1005	funescape = function( _, escaped, escapedWhitespace ) {
1006		var high = "0x" + escaped - 0x10000;
1007		// NaN means non-codepoint
vendor: 63,424 bytes, lines 1008-3177
1008		// Support: Firefox
1009		// Workaround erroneous numeric interpretation of +"0x"
1010		return high !== high || escapedWhitespace ?
1011			escaped :
1012			// BMP codepoint
1013			high < 0 ?
1014				String.fromCharCode( high + 0x10000 ) :
1015				// Supplemental Plane codepoint (surrogate pair)
1016				String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
1017	};
1018
1019// Optimize for push.apply( _, NodeList )
1020try {
1021	push.apply(
1022		(arr = slice.call( preferredDoc.childNodes )),
1023		preferredDoc.childNodes
1024	);
1025	// Support: Android<4.0
1026	// Detect silently failing push.apply
1027	arr[ preferredDoc.childNodes.length ].nodeType;
1028} catch ( e ) {
1029	push = { apply: arr.length ?
1030
1031		// Leverage slice if possible
1032		function( target, els ) {
1033			push_native.apply( target, slice.call(els) );
1034		} :
1035
1036		// Support: IE<9
1037		// Otherwise append directly
1038		function( target, els ) {
1039			var j = target.length,
1040				i = 0;
1041			// Can't trust NodeList.length
1042			while ( (target[j++] = els[i++]) ) {}
1043			target.length = j - 1;
1044		}
1045	};
1046}
1047
1048function Sizzle( selector, context, results, seed ) {
1049	var match, elem, m, nodeType,
1050		// QSA vars
1051		i, groups, old, nid, newContext, newSelector;
1052
1053	if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {
1054		setDocument( context );
1055	}
1056
1057	context = context || document;
1058	results = results || [];
1059
1060	if ( !selector || typeof selector !== "string" ) {
1061		return results;
1062	}
1063
1064	if ( (nodeType = context.nodeType) !== 1 && nodeType !== 9 ) {
1065		return [];
1066	}
1067
1068	if ( documentIsHTML && !seed ) {
1069
1070		// Shortcuts
1071		if ( (match = rquickExpr.exec( selector )) ) {
1072			// Speed-up: Sizzle("#ID")
1073			if ( (m = match[1]) ) {
1074				if ( nodeType === 9 ) {
1075					elem = context.getElementById( m );
1076					// Check parentNode to catch when Blackberry 4.6 returns
1077					// nodes that are no longer in the document #6963
1078					if ( elem && elem.parentNode ) {
1079						// Handle the case where IE, Opera, and Webkit return items
1080						// by name instead of ID
1081						if ( elem.id === m ) {
1082							results.push( elem );
1083							return results;
1084						}
1085					} else {
1086						return results;
1087					}
1088				} else {
1089					// Context is not a document
1090					if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) &&
1091						contains( context, elem ) && elem.id === m ) {
1092						results.push( elem );
1093						return results;
1094					}
1095				}
1096
1097			// Speed-up: Sizzle("TAG")
1098			} else if ( match[2] ) {
1099				push.apply( results, context.getElementsByTagName( selector ) );
1100				return results;
1101
1102			// Speed-up: Sizzle(".CLASS")
1103			} else if ( (m = match[3]) && support.getElementsByClassName && context.getElementsByClassName ) {
1104				push.apply( results, context.getElementsByClassName( m ) );
1105				return results;
1106			}
1107		}
1108
1109		// QSA path
1110		if ( support.qsa && (!rbuggyQSA || !rbuggyQSA.test( selector )) ) {
1111			nid = old = expando;
1112			newContext = context;
1113			newSelector = nodeType === 9 && selector;
1114
1115			// qSA works strangely on Element-rooted queries
1116			// We can work around this by specifying an extra ID on the root
1117			// and working up from there (Thanks to Andrew Dupont for the technique)
1118			// IE 8 doesn't work on object elements
1119			if ( nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
1120				groups = tokenize( selector );
1121
1122				if ( (old = context.getAttribute("id")) ) {
1123					nid = old.replace( rescape, "\\$&" );
1124				} else {
1125					context.setAttribute( "id", nid );
1126				}
1127				nid = "[id='" + nid + "'] ";
1128
1129				i = groups.length;
1130				while ( i-- ) {
1131					groups[i] = nid + toSelector( groups[i] );
1132				}
1133				newContext = rsibling.test( selector ) && context.parentNode || context;
1134				newSelector = groups.join(",");
1135			}
1136
1137			if ( newSelector ) {
1138				try {
1139					push.apply( results,
1140						newContext.querySelectorAll( newSelector )
1141					);
1142					return results;
1143				} catch(qsaError) {
1144				} finally {
1145					if ( !old ) {
1146						context.removeAttribute("id");
1147					}
1148				}
1149			}
1150		}
1151	}
1152
1153	// All others
1154	return select( selector.replace( rtrim, "$1" ), context, results, seed );
1155}
1156
1157/**
1158 * Create key-value caches of limited size
1159 * @returns {Function(string, Object)} Returns the Object data after storing it on itself with
1160 *	property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
1161 *	deleting the oldest entry
1162 */
1163function createCache() {
1164	var keys = [];
1165
1166	function cache( key, value ) {
1167		// Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
1168		if ( keys.push( key += " " ) > Expr.cacheLength ) {
1169			// Only keep the most recent entries
1170			delete cache[ keys.shift() ];
1171		}
1172		return (cache[ key ] = value);
1173	}
1174	return cache;
1175}
1176
1177/**
1178 * Mark a function for special use by Sizzle
1179 * @param {Function} fn The function to mark
1180 */
1181function markFunction( fn ) {
1182	fn[ expando ] = true;
1183	return fn;
1184}
1185
1186/**
1187 * Support testing using an element
1188 * @param {Function} fn Passed the created div and expects a boolean result
1189 */
1190function assert( fn ) {
1191	var div = document.createElement("div");
1192
1193	try {
1194		return !!fn( div );
1195	} catch (e) {
1196		return false;
1197	} finally {
1198		// Remove from its parent by default
1199		if ( div.parentNode ) {
1200			div.parentNode.removeChild( div );
1201		}
1202		// release memory in IE
1203		div = null;
1204	}
1205}
1206
1207/**
1208 * Adds the same handler for all of the specified attrs
1209 * @param {String} attrs Pipe-separated list of attributes
1210 * @param {Function} handler The method that will be applied
1211 */
1212function addHandle( attrs, handler ) {
1213	var arr = attrs.split("|"),
1214		i = attrs.length;
1215
1216	while ( i-- ) {
1217		Expr.attrHandle[ arr[i] ] = handler;
1218	}
1219}
1220
1221/**
1222 * Checks document order of two siblings
1223 * @param {Element} a
1224 * @param {Element} b
1225 * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b
1226 */
1227function siblingCheck( a, b ) {
1228	var cur = b && a,
1229		diff = cur && a.nodeType === 1 && b.nodeType === 1 &&
1230			( ~b.sourceIndex || MAX_NEGATIVE ) -
1231			( ~a.sourceIndex || MAX_NEGATIVE );
1232
1233	// Use IE sourceIndex if available on both nodes
1234	if ( diff ) {
1235		return diff;
1236	}
1237
1238	// Check if b follows a
1239	if ( cur ) {
1240		while ( (cur = cur.nextSibling) ) {
1241			if ( cur === b ) {
1242				return -1;
1243			}
1244		}
1245	}
1246
1247	return a ? 1 : -1;
1248}
1249
1250/**
1251 * Returns a function to use in pseudos for input types
1252 * @param {String} type
1253 */
1254function createInputPseudo( type ) {
1255	return function( elem ) {
1256		var name = elem.nodeName.toLowerCase();
1257		return name === "input" && elem.type === type;
1258	};
1259}
1260
1261/**
1262 * Returns a function to use in pseudos for buttons
1263 * @param {String} type
1264 */
1265function createButtonPseudo( type ) {
1266	return function( elem ) {
1267		var name = elem.nodeName.toLowerCase();
1268		return (name === "input" || name === "button") && elem.type === type;
1269	};
1270}
1271
1272/**
1273 * Returns a function to use in pseudos for positionals
1274 * @param {Function} fn
1275 */
1276function createPositionalPseudo( fn ) {
1277	return markFunction(function( argument ) {
1278		argument = +argument;
1279		return markFunction(function( seed, matches ) {
1280			var j,
1281				matchIndexes = fn( [], seed.length, argument ),
1282				i = matchIndexes.length;
1283
1284			// Match elements found at the specified indexes
1285			while ( i-- ) {
1286				if ( seed[ (j = matchIndexes[i]) ] ) {
1287					seed[j] = !(matches[j] = seed[j]);
1288				}
1289			}
1290		});
1291	});
1292}
1293
1294/**
1295 * Detect xml
1296 * @param {Element|Object} elem An element or a document
1297 */
1298isXML = Sizzle.isXML = function( elem ) {
1299	// documentElement is verified for cases where it doesn't yet exist
1300	// (such as loading iframes in IE - #4833)
1301	var documentElement = elem && (elem.ownerDocument || elem).documentElement;
1302	return documentElement ? documentElement.nodeName !== "HTML" : false;
1303};
1304
1305// Expose support vars for convenience
1306support = Sizzle.support = {};
1307
1308/**
1309 * Sets document-related variables once based on the current document
1310 * @param {Element|Object} [doc] An element or document object to use to set the document
1311 * @returns {Object} Returns the current document
1312 */
1313setDocument = Sizzle.setDocument = function( node ) {
1314	var doc = node ? node.ownerDocument || node : preferredDoc,
1315		parent = doc.defaultView;
1316
1317	// If no document and documentElement is available, return
1318	if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
1319		return document;
1320	}
1321
1322	// Set our document
1323	document = doc;
1324	docElem = doc.documentElement;
1325
1326	// Support tests
1327	documentIsHTML = !isXML( doc );
1328
1329	// Support: IE>8
1330	// If iframe document is assigned to "document" variable and if iframe has been reloaded,
1331	// IE will throw "permission denied" error when accessing "document" variable, see jQuery #13936
1332	// IE6-8 do not support the defaultView property so parent will be undefined
1333	if ( parent && parent.attachEvent && parent !== parent.top ) {
1334		parent.attachEvent( "onbeforeunload", function() {
1335			setDocument();
1336		});
1337	}
1338
1339	/* Attributes
1340	---------------------------------------------------------------------- */
1341
1342	// Support: IE<8
1343	// Verify that getAttribute really returns attributes and not properties (excepting IE8 booleans)
1344	support.attributes = assert(function( div ) {
1345		div.className = "i";
1346		return !div.getAttribute("className");
1347	});
1348
1349	/* getElement(s)By*
1350	---------------------------------------------------------------------- */
1351
1352	// Check if getElementsByTagName("*") returns only elements
1353	support.getElementsByTagName = assert(function( div ) {
1354		div.appendChild( doc.createComment("") );
1355		return !div.getElementsByTagName("*").length;
1356	});
1357
1358	// Check if getElementsByClassName can be trusted
1359	support.getElementsByClassName = assert(function( div ) {
1360		div.innerHTML = "<div class='a'></div><div class='a i'></div>";
1361
1362		// Support: Safari<4
1363		// Catch class over-caching
1364		div.firstChild.className = "i";
1365		// Support: Opera<10
1366		// Catch gEBCN failure to find non-leading classes
1367		return div.getElementsByClassName("i").length === 2;
1368	});
1369
1370	// Support: IE<10
1371	// Check if getElementById returns elements by name
1372	// The broken getElementById methods don't pick up programatically-set names,
1373	// so use a roundabout getElementsByName test
1374	support.getById = assert(function( div ) {
1375		docElem.appendChild( div ).id = expando;
1376		return !doc.getElementsByName || !doc.getElementsByName( expando ).length;
1377	});
1378
1379	// ID find and filter
1380	if ( support.getById ) {
1381		Expr.find["ID"] = function( id, context ) {
1382			if ( typeof context.getElementById !== strundefined && documentIsHTML ) {
1383				var m = context.getElementById( id );
1384				// Check parentNode to catch when Blackberry 4.6 returns
1385				// nodes that are no longer in the document #6963
1386				return m && m.parentNode ? [m] : [];
1387			}
1388		};
1389		Expr.filter["ID"] = function( id ) {
1390			var attrId = id.replace( runescape, funescape );
1391			return function( elem ) {
1392				return elem.getAttribute("id") === attrId;
1393			};
1394		};
1395	} else {
1396		// Support: IE6/7
1397		// getElementById is not reliable as a find shortcut
1398		delete Expr.find["ID"];
1399
1400		Expr.filter["ID"] =  function( id ) {
1401			var attrId = id.replace( runescape, funescape );
1402			return function( elem ) {
1403				var node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode("id");
1404				return node && node.value === attrId;
1405			};
1406		};
1407	}
1408
1409	// Tag
1410	Expr.find["TAG"] = support.getElementsByTagName ?
1411		function( tag, context ) {
1412			if ( typeof context.getElementsByTagName !== strundefined ) {
1413				return context.getElementsByTagName( tag );
1414			}
1415		} :
1416		function( tag, context ) {
1417			var elem,
1418				tmp = [],
1419				i = 0,
1420				results = context.getElementsByTagName( tag );
1421
1422			// Filter out possible comments
1423			if ( tag === "*" ) {
1424				while ( (elem = results[i++]) ) {
1425					if ( elem.nodeType === 1 ) {
1426						tmp.push( elem );
1427					}
1428				}
1429
1430				return tmp;
1431			}
1432			return results;
1433		};
1434
1435	// Class
1436	Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) {
1437		if ( typeof context.getElementsByClassName !== strundefined && documentIsHTML ) {
1438			return context.getElementsByClassName( className );
1439		}
1440	};
1441
1442	/* QSA/matchesSelector
1443	---------------------------------------------------------------------- */
1444
1445	// QSA and matchesSelector support
1446
1447	// matchesSelector(:active) reports false when true (IE9/Opera 11.5)
1448	rbuggyMatches = [];
1449
1450	// qSa(:focus) reports false when true (Chrome 21)
1451	// We allow this because of a bug in IE8/9 that throws an error
1452	// whenever `document.activeElement` is accessed on an iframe
1453	// So, we allow :focus to pass through QSA all the time to avoid the IE error
1454	// See http://bugs.jquery.com/ticket/13378
1455	rbuggyQSA = [];
1456
1457	if ( (support.qsa = rnative.test( doc.querySelectorAll )) ) {
1458		// Build QSA regex
1459		// Regex strategy adopted from Diego Perini
1460		assert(function( div ) {
1461			// Select is set to empty string on purpose
1462			// This is to test IE's treatment of not explicitly
1463			// setting a boolean content attribute,
1464			// since its presence should be enough
1465			// http://bugs.jquery.com/ticket/12359
1466			div.innerHTML = "<select><option selected=''></option></select>";
1467
1468			// Support: IE8
1469			// Boolean attributes and "value" are not treated correctly
1470			if ( !div.querySelectorAll("[selected]").length ) {
1471				rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" );
1472			}
1473
1474			// Webkit/Opera - :checked should return selected option elements
1475			// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
1476			// IE8 throws error here and will not see later tests
1477			if ( !div.querySelectorAll(":checked").length ) {
1478				rbuggyQSA.push(":checked");
1479			}
1480		});
1481
1482		assert(function( div ) {
1483
1484			// Support: Opera 10-12/IE8
1485			// ^= $= *= and empty values
1486			// Should not select anything
1487			// Support: Windows 8 Native Apps
1488			// The type attribute is restricted during .innerHTML assignment
1489			var input = doc.createElement("input");
1490			input.setAttribute( "type", "hidden" );
1491			div.appendChild( input ).setAttribute( "t", "" );
1492
1493			if ( div.querySelectorAll("[t^='']").length ) {
1494				rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" );
1495			}
1496
1497			// FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
1498			// IE8 throws error here and will not see later tests
1499			if ( !div.querySelectorAll(":enabled").length ) {
1500				rbuggyQSA.push( ":enabled", ":disabled" );
1501			}
1502
1503			// Opera 10-11 does not throw on post-comma invalid pseudos
1504			div.querySelectorAll("*,:x");
1505			rbuggyQSA.push(",.*:");
1506		});
1507	}
1508
1509	if ( (support.matchesSelector = rnative.test( (matches = docElem.webkitMatchesSelector ||
1510		docElem.mozMatchesSelector ||
1511		docElem.oMatchesSelector ||
1512		docElem.msMatchesSelector) )) ) {
1513
1514		assert(function( div ) {
1515			// Check to see if it's possible to do matchesSelector
1516			// on a disconnected node (IE 9)
1517			support.disconnectedMatch = matches.call( div, "div" );
1518
1519			// This should fail with an exception
1520			// Gecko does not error, returns false instead
1521			matches.call( div, "[s!='']:x" );
1522			rbuggyMatches.push( "!=", pseudos );
1523		});
1524	}
1525
1526	rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") );
1527	rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") );
1528
1529	/* Contains
1530	---------------------------------------------------------------------- */
1531
1532	// Element contains another
1533	// Purposefully does not implement inclusive descendent
1534	// As in, an element does not contain itself
1535	contains = rnative.test( docElem.contains ) || docElem.compareDocumentPosition ?
1536		function( a, b ) {
1537			var adown = a.nodeType === 9 ? a.documentElement : a,
1538				bup = b && b.parentNode;
1539			return a === bup || !!( bup && bup.nodeType === 1 && (
1540				adown.contains ?
1541					adown.contains( bup ) :
1542					a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16
1543			));
1544		} :
1545		function( a, b ) {
1546			if ( b ) {
1547				while ( (b = b.parentNode) ) {
1548					if ( b === a ) {
1549						return true;
1550					}
1551				}
1552			}
1553			return false;
1554		};
1555
1556	/* Sorting
1557	---------------------------------------------------------------------- */
1558
1559	// Document order sorting
1560	sortOrder = docElem.compareDocumentPosition ?
1561	function( a, b ) {
1562
1563		// Flag for duplicate removal
1564		if ( a === b ) {
1565			hasDuplicate = true;
1566			return 0;
1567		}
1568
1569		var compare = b.compareDocumentPosition && a.compareDocumentPosition && a.compareDocumentPosition( b );
1570
1571		if ( compare ) {
1572			// Disconnected nodes
1573			if ( compare & 1 ||
1574				(!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) {
1575
1576				// Choose the first element that is related to our preferred document
1577				if ( a === doc || contains(preferredDoc, a) ) {
1578					return -1;
1579				}
1580				if ( b === doc || contains(preferredDoc, b) ) {
1581					return 1;
1582				}
1583
1584				// Maintain original order
1585				return sortInput ?
1586					( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) :
1587					0;
1588			}
1589
1590			return compare & 4 ? -1 : 1;
1591		}
1592
1593		// Not directly comparable, sort on existence of method
1594		return a.compareDocumentPosition ? -1 : 1;
1595	} :
1596	function( a, b ) {
1597		var cur,
1598			i = 0,
1599			aup = a.parentNode,
1600			bup = b.parentNode,
1601			ap = [ a ],
1602			bp = [ b ];
1603
1604		// Exit early if the nodes are identical
1605		if ( a === b ) {
1606			hasDuplicate = true;
1607			return 0;
1608
1609		// Parentless nodes are either documents or disconnected
1610		} else if ( !aup || !bup ) {
1611			return a === doc ? -1 :
1612				b === doc ? 1 :
1613				aup ? -1 :
1614				bup ? 1 :
1615				sortInput ?
1616				( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) :
1617				0;
1618
1619		// If the nodes are siblings, we can do a quick check
1620		} else if ( aup === bup ) {
1621			return siblingCheck( a, b );
1622		}
1623
1624		// Otherwise we need full lists of their ancestors for comparison
1625		cur = a;
1626		while ( (cur = cur.parentNode) ) {
1627			ap.unshift( cur );
1628		}
1629		cur = b;
1630		while ( (cur = cur.parentNode) ) {
1631			bp.unshift( cur );
1632		}
1633
1634		// Walk down the tree looking for a discrepancy
1635		while ( ap[i] === bp[i] ) {
1636			i++;
1637		}
1638
1639		return i ?
1640			// Do a sibling check if the nodes have a common ancestor
1641			siblingCheck( ap[i], bp[i] ) :
1642
1643			// Otherwise nodes in our document sort first
1644			ap[i] === preferredDoc ? -1 :
1645			bp[i] === preferredDoc ? 1 :
1646			0;
1647	};
1648
1649	return doc;
1650};
1651
1652Sizzle.matches = function( expr, elements ) {
1653	return Sizzle( expr, null, null, elements );
1654};
1655
1656Sizzle.matchesSelector = function( elem, expr ) {
1657	// Set document vars if needed
1658	if ( ( elem.ownerDocument || elem ) !== document ) {
1659		setDocument( elem );
1660	}
1661
1662	// Make sure that attribute selectors are quoted
1663	expr = expr.replace( rattributeQuotes, "='$1']" );
1664
1665	if ( support.matchesSelector && documentIsHTML &&
1666		( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
1667		( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {
1668
1669		try {
1670			var ret = matches.call( elem, expr );
1671
1672			// IE 9's matchesSelector returns false on disconnected nodes
1673			if ( ret || support.disconnectedMatch ||
1674					// As well, disconnected nodes are said to be in a document
1675					// fragment in IE 9
1676					elem.document && elem.document.nodeType !== 11 ) {
1677				return ret;
1678			}
1679		} catch(e) {}
1680	}
1681
1682	return Sizzle( expr, document, null, [elem] ).length > 0;
1683};
1684
1685Sizzle.contains = function( context, elem ) {
1686	// Set document vars if needed
1687	if ( ( context.ownerDocument || context ) !== document ) {
1688		setDocument( context );
1689	}
1690	return contains( context, elem );
1691};
1692
1693Sizzle.attr = function( elem, name ) {
1694	// Set document vars if needed
1695	if ( ( elem.ownerDocument || elem ) !== document ) {
1696		setDocument( elem );
1697	}
1698
1699	var fn = Expr.attrHandle[ name.toLowerCase() ],
1700		// Don't get fooled by Object.prototype properties (jQuery #13807)
1701		val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?
1702			fn( elem, name, !documentIsHTML ) :
1703			undefined;
1704
1705	return val === undefined ?
1706		support.attributes || !documentIsHTML ?
1707			elem.getAttribute( name ) :
1708			(val = elem.getAttributeNode(name)) && val.specified ?
1709				val.value :
1710				null :
1711		val;
1712};
1713
1714Sizzle.error = function( msg ) {
1715	throw new Error( "Syntax error, unrecognized expression: " + msg );
1716};
1717
1718/**
1719 * Document sorting and removing duplicates
1720 * @param {ArrayLike} results
1721 */
1722Sizzle.uniqueSort = function( results ) {
1723	var elem,
1724		duplicates = [],
1725		j = 0,
1726		i = 0;
1727
1728	// Unless we *know* we can detect duplicates, assume their presence
1729	hasDuplicate = !support.detectDuplicates;
1730	sortInput = !support.sortStable && results.slice( 0 );
1731	results.sort( sortOrder );
1732
1733	if ( hasDuplicate ) {
1734		while ( (elem = results[i++]) ) {
1735			if ( elem === results[ i ] ) {
1736				j = duplicates.push( i );
1737			}
1738		}
1739		while ( j-- ) {
1740			results.splice( duplicates[ j ], 1 );
1741		}
1742	}
1743
1744	return results;
1745};
1746
1747/**
1748 * Utility function for retrieving the text value of an array of DOM nodes
1749 * @param {Array|Element} elem
1750 */
1751getText = Sizzle.getText = function( elem ) {
1752	var node,
1753		ret = "",
1754		i = 0,
1755		nodeType = elem.nodeType;
1756
1757	if ( !nodeType ) {
1758		// If no nodeType, this is expected to be an array
1759		for ( ; (node = elem[i]); i++ ) {
1760			// Do not traverse comment nodes
1761			ret += getText( node );
1762		}
1763	} else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
1764		// Use textContent for elements
1765		// innerText usage removed for consistency of new lines (see #11153)
1766		if ( typeof elem.textContent === "string" ) {
1767			return elem.textContent;
1768		} else {
1769			// Traverse its children
1770			for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
1771				ret += getText( elem );
1772			}
1773		}
1774	} else if ( nodeType === 3 || nodeType === 4 ) {
1775		return elem.nodeValue;
1776	}
1777	// Do not include comment or processing instruction nodes
1778
1779	return ret;
1780};
1781
1782Expr = Sizzle.selectors = {
1783
1784	// Can be adjusted by the user
1785	cacheLength: 50,
1786
1787	createPseudo: markFunction,
1788
1789	match: matchExpr,
1790
1791	attrHandle: {},
1792
1793	find: {},
1794
1795	relative: {
1796		">": { dir: "parentNode", first: true },
1797		" ": { dir: "parentNode" },
1798		"+": { dir: "previousSibling", first: true },
1799		"~": { dir: "previousSibling" }
1800	},
1801
1802	preFilter: {
1803		"ATTR": function( match ) {
1804			match[1] = match[1].replace( runescape, funescape );
1805
1806			// Move the given value to match[3] whether quoted or unquoted
1807			match[3] = ( match[4] || match[5] || "" ).replace( runescape, funescape );
1808
1809			if ( match[2] === "~=" ) {
1810				match[3] = " " + match[3] + " ";
1811			}
1812
1813			return match.slice( 0, 4 );
1814		},
1815
1816		"CHILD": function( match ) {
1817			/* matches from matchExpr["CHILD"]
1818				1 type (only|nth|...)
1819				2 what (child|of-type)
1820				3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
1821				4 xn-component of xn+y argument ([+-]?\d*n|)
1822				5 sign of xn-component
1823				6 x of xn-component
1824				7 sign of y-component
1825				8 y of y-component
1826			*/
1827			match[1] = match[1].toLowerCase();
1828
1829			if ( match[1].slice( 0, 3 ) === "nth" ) {
1830				// nth-* requires argument
1831				if ( !match[3] ) {
1832					Sizzle.error( match[0] );
1833				}
1834
1835				// numeric x and y parameters for Expr.filter.CHILD
1836				// remember that false/true cast respectively to 0/1
1837				match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) );
1838				match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" );
1839
1840			// other types prohibit arguments
1841			} else if ( match[3] ) {
1842				Sizzle.error( match[0] );
1843			}
1844
1845			return match;
1846		},
1847
1848		"PSEUDO": function( match ) {
1849			var excess,
1850				unquoted = !match[5] && match[2];
1851
1852			if ( matchExpr["CHILD"].test( match[0] ) ) {
1853				return null;
1854			}
1855
1856			// Accept quoted arguments as-is
1857			if ( match[3] && match[4] !== undefined ) {
1858				match[2] = match[4];
1859
1860			// Strip excess characters from unquoted arguments
1861			} else if ( unquoted && rpseudo.test( unquoted ) &&
1862				// Get excess from tokenize (recursively)
1863				(excess = tokenize( unquoted, true )) &&
1864				// advance to the next closing parenthesis
1865				(excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) {
1866
1867				// excess is a negative index
1868				match[0] = match[0].slice( 0, excess );
1869				match[2] = unquoted.slice( 0, excess );
1870			}
1871
1872			// Return only captures needed by the pseudo filter method (type and argument)
1873			return match.slice( 0, 3 );
1874		}
1875	},
1876
1877	filter: {
1878
1879		"TAG": function( nodeNameSelector ) {
1880			var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();
1881			return nodeNameSelector === "*" ?
1882				function() { return true; } :
1883				function( elem ) {
1884					return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;
1885				};
1886		},
1887
1888		"CLASS": function( className ) {
1889			var pattern = classCache[ className + " " ];
1890
1891			return pattern ||
1892				(pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) &&
1893				classCache( className, function( elem ) {
1894					return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== strundefined && elem.getAttribute("class") || "" );
1895				});
1896		},
1897
1898		"ATTR": function( name, operator, check ) {
1899			return function( elem ) {
1900				var result = Sizzle.attr( elem, name );
1901
1902				if ( result == null ) {
1903					return operator === "!=";
1904				}
1905				if ( !operator ) {
1906					return true;
1907				}
1908
1909				result += "";
1910
1911				return operator === "=" ? result === check :
1912					operator === "!=" ? result !== check :
1913					operator === "^=" ? check && result.indexOf( check ) === 0 :
1914					operator === "*=" ? check && result.indexOf( check ) > -1 :
1915					operator === "$=" ? check && result.slice( -check.length ) === check :
1916					operator === "~=" ? ( " " + result + " " ).indexOf( check ) > -1 :
1917					operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" :
1918					false;
1919			};
1920		},
1921
1922		"CHILD": function( type, what, argument, first, last ) {
1923			var simple = type.slice( 0, 3 ) !== "nth",
1924				forward = type.slice( -4 ) !== "last",
1925				ofType = what === "of-type";
1926
1927			return first === 1 && last === 0 ?
1928
1929				// Shortcut for :nth-*(n)
1930				function( elem ) {
1931					return !!elem.parentNode;
1932				} :
1933
1934				function( elem, context, xml ) {
1935					var cache, outerCache, node, diff, nodeIndex, start,
1936						dir = simple !== forward ? "nextSibling" : "previousSibling",
1937						parent = elem.parentNode,
1938						name = ofType && elem.nodeName.toLowerCase(),
1939						useCache = !xml && !ofType;
1940
1941					if ( parent ) {
1942
1943						// :(first|last|only)-(child|of-type)
1944						if ( simple ) {
1945							while ( dir ) {
1946								node = elem;
1947								while ( (node = node[ dir ]) ) {
1948									if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) {
1949										return false;
1950									}
1951								}
1952								// Reverse direction for :only-* (if we haven't yet done so)
1953								start = dir = type === "only" && !start && "nextSibling";
1954							}
1955							return true;
1956						}
1957
1958						start = [ forward ? parent.firstChild : parent.lastChild ];
1959
1960						// non-xml :nth-child(...) stores cache data on `parent`
1961						if ( forward && useCache ) {
1962							// Seek `elem` from a previously-cached index
1963							outerCache = parent[ expando ] || (parent[ expando ] = {});
1964							cache = outerCache[ type ] || [];
1965							nodeIndex = cache[0] === dirruns && cache[1];
1966							diff = cache[0] === dirruns && cache[2];
1967							node = nodeIndex && parent.childNodes[ nodeIndex ];
1968
1969							while ( (node = ++nodeIndex && node && node[ dir ] ||
1970
1971								// Fallback to seeking `elem` from the start
1972								(diff = nodeIndex = 0) || start.pop()) ) {
1973
1974								// When found, cache indexes on `parent` and break
1975								if ( node.nodeType === 1 && ++diff && node === elem ) {
1976									outerCache[ type ] = [ dirruns, nodeIndex, diff ];
1977									break;
1978								}
1979							}
1980
1981						// Use previously-cached element index if available
1982						} else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {
1983							diff = cache[1];
1984
1985						// xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)
1986						} else {
1987							// Use the same loop as above to seek `elem` from the start
1988							while ( (node = ++nodeIndex && node && node[ dir ] ||
1989								(diff = nodeIndex = 0) || start.pop()) ) {
1990
1991								if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) {
1992									// Cache the index of each encountered element
1993									if ( useCache ) {
1994										(node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ];
1995									}
1996
1997									if ( node === elem ) {
1998										break;
1999									}
2000								}
2001							}
2002						}
2003
2004						// Incorporate the offset, then check against cycle size
2005						diff -= last;
2006						return diff === first || ( diff % first === 0 && diff / first >= 0 );
2007					}
2008				};
2009		},
2010
2011		"PSEUDO": function( pseudo, argument ) {
2012			// pseudo-class names are case-insensitive
2013			// http://www.w3.org/TR/selectors/#pseudo-classes
2014			// Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
2015			// Remember that setFilters inherits from pseudos
2016			var args,
2017				fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||
2018					Sizzle.error( "unsupported pseudo: " + pseudo );
2019
2020			// The user may use createPseudo to indicate that
2021			// arguments are needed to create the filter function
2022			// just as Sizzle does
2023			if ( fn[ expando ] ) {
2024				return fn( argument );
2025			}
2026
2027			// But maintain support for old signatures
2028			if ( fn.length > 1 ) {
2029				args = [ pseudo, pseudo, "", argument ];
2030				return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?
2031					markFunction(function( seed, matches ) {
2032						var idx,
2033							matched = fn( seed, argument ),
2034							i = matched.length;
2035						while ( i-- ) {
2036							idx = indexOf.call( seed, matched[i] );
2037							seed[ idx ] = !( matches[ idx ] = matched[i] );
2038						}
2039					}) :
2040					function( elem ) {
2041						return fn( elem, 0, args );
2042					};
2043			}
2044
2045			return fn;
2046		}
2047	},
2048
2049	pseudos: {
2050		// Potentially complex pseudos
2051		"not": markFunction(function( selector ) {
2052			// Trim the selector passed to compile
2053			// to avoid treating leading and trailing
2054			// spaces as combinators
2055			var input = [],
2056				results = [],
2057				matcher = compile( selector.replace( rtrim, "$1" ) );
2058
2059			return matcher[ expando ] ?
2060				markFunction(function( seed, matches, context, xml ) {
2061					var elem,
2062						unmatched = matcher( seed, null, xml, [] ),
2063						i = seed.length;
2064
2065					// Match elements unmatched by `matcher`
2066					while ( i-- ) {
2067						if ( (elem = unmatched[i]) ) {
2068							seed[i] = !(matches[i] = elem);
2069						}
2070					}
2071				}) :
2072				function( elem, context, xml ) {
2073					input[0] = elem;
2074					matcher( input, null, xml, results );
2075					return !results.pop();
2076				};
2077		}),
2078
2079		"has": markFunction(function( selector ) {
2080			return function( elem ) {
2081				return Sizzle( selector, elem ).length > 0;
2082			};
2083		}),
2084
2085		"contains": markFunction(function( text ) {
2086			return function( elem ) {
2087				return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;
2088			};
2089		}),
2090
2091		// "Whether an element is represented by a :lang() selector
2092		// is based solely on the element's language value
2093		// being equal to the identifier C,
2094		// or beginning with the identifier C immediately followed by "-".
2095		// The matching of C against the element's language value is performed case-insensitively.
2096		// The identifier C does not have to be a valid language name."
2097		// http://www.w3.org/TR/selectors/#lang-pseudo
2098		"lang": markFunction( function( lang ) {
2099			// lang value must be a valid identifier
2100			if ( !ridentifier.test(lang || "") ) {
2101				Sizzle.error( "unsupported lang: " + lang );
2102			}
2103			lang = lang.replace( runescape, funescape ).toLowerCase();
2104			return function( elem ) {
2105				var elemLang;
2106				do {
2107					if ( (elemLang = documentIsHTML ?
2108						elem.lang :
2109						elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) {
2110
2111						elemLang = elemLang.toLowerCase();
2112						return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0;
2113					}
2114				} while ( (elem = elem.parentNode) && elem.nodeType === 1 );
2115				return false;
2116			};
2117		}),
2118
2119		// Miscellaneous
2120		"target": function( elem ) {
2121			var hash = window.location && window.location.hash;
2122			return hash && hash.slice( 1 ) === elem.id;
2123		},
2124
2125		"root": function( elem ) {
2126			return elem === docElem;
2127		},
2128
2129		"focus": function( elem ) {
2130			return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);
2131		},
2132
2133		// Boolean properties
2134		"enabled": function( elem ) {
2135			return elem.disabled === false;
2136		},
2137
2138		"disabled": function( elem ) {
2139			return elem.disabled === true;
2140		},
2141
2142		"checked": function( elem ) {
2143			// In CSS3, :checked should return both checked and selected elements
2144			// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
2145			var nodeName = elem.nodeName.toLowerCase();
2146			return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected);
2147		},
2148
2149		"selected": function( elem ) {
2150			// Accessing this property makes selected-by-default
2151			// options in Safari work properly
2152			if ( elem.parentNode ) {
2153				elem.parentNode.selectedIndex;
2154			}
2155
2156			return elem.selected === true;
2157		},
2158
2159		// Contents
2160		"empty": function( elem ) {
2161			// http://www.w3.org/TR/selectors/#empty-pseudo
2162			// :empty is only affected by element nodes and content nodes(including text(3), cdata(4)),
2163			//   not comment, processing instructions, or others
2164			// Thanks to Diego Perini for the nodeName shortcut
2165			//   Greater than "@" means alpha characters (specifically not starting with "#" or "?")
2166			for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
2167				if ( elem.nodeName > "@" || elem.nodeType === 3 || elem.nodeType === 4 ) {
2168					return false;
2169				}
2170			}
2171			return true;
2172		},
2173
2174		"parent": function( elem ) {
2175			return !Expr.pseudos["empty"]( elem );
2176		},
2177
2178		// Element/input types
2179		"header": function( elem ) {
2180			return rheader.test( elem.nodeName );
2181		},
2182
2183		"input": function( elem ) {
2184			return rinputs.test( elem.nodeName );
2185		},
2186
2187		"button": function( elem ) {
2188			var name = elem.nodeName.toLowerCase();
2189			return name === "input" && elem.type === "button" || name === "button";
2190		},
2191
2192		"text": function( elem ) {
2193			var attr;
2194			// IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc)
2195			// use getAttribute instead to test this case
2196			return elem.nodeName.toLowerCase() === "input" &&
2197				elem.type === "text" &&
2198				( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === elem.type );
2199		},
2200
2201		// Position-in-collection
2202		"first": createPositionalPseudo(function() {
2203			return [ 0 ];
2204		}),
2205
2206		"last": createPositionalPseudo(function( matchIndexes, length ) {
2207			return [ length - 1 ];
2208		}),
2209
2210		"eq": createPositionalPseudo(function( matchIndexes, length, argument ) {
2211			return [ argument < 0 ? argument + length : argument ];
2212		}),
2213
2214		"even": createPositionalPseudo(function( matchIndexes, length ) {
2215			var i = 0;
2216			for ( ; i < length; i += 2 ) {
2217				matchIndexes.push( i );
2218			}
2219			return matchIndexes;
2220		}),
2221
2222		"odd": createPositionalPseudo(function( matchIndexes, length ) {
2223			var i = 1;
2224			for ( ; i < length; i += 2 ) {
2225				matchIndexes.push( i );
2226			}
2227			return matchIndexes;
2228		}),
2229
2230		"lt": createPositionalPseudo(function( matchIndexes, length, argument ) {
2231			var i = argument < 0 ? argument + length : argument;
2232			for ( ; --i >= 0; ) {
2233				matchIndexes.push( i );
2234			}
2235			return matchIndexes;
2236		}),
2237
2238		"gt": createPositionalPseudo(function( matchIndexes, length, argument ) {
2239			var i = argument < 0 ? argument + length : argument;
2240			for ( ; ++i < length; ) {
2241				matchIndexes.push( i );
2242			}
2243			return matchIndexes;
2244		})
2245	}
2246};
2247
2248Expr.pseudos["nth"] = Expr.pseudos["eq"];
2249
2250// Add button/input type pseudos
2251for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {
2252	Expr.pseudos[ i ] = createInputPseudo( i );
2253}
2254for ( i in { submit: true, reset: true } ) {
2255	Expr.pseudos[ i ] = createButtonPseudo( i );
2256}
2257
2258// Easy API for creating new setFilters
2259function setFilters() {}
2260setFilters.prototype = Expr.filters = Expr.pseudos;
2261Expr.setFilters = new setFilters();
2262
2263function tokenize( selector, parseOnly ) {
2264	var matched, match, tokens, type,
2265		soFar, groups, preFilters,
2266		cached = tokenCache[ selector + " " ];
2267
2268	if ( cached ) {
2269		return parseOnly ? 0 : cached.slice( 0 );
2270	}
2271
2272	soFar = selector;
2273	groups = [];
2274	preFilters = Expr.preFilter;
2275
2276	while ( soFar ) {
2277
2278		// Comma and first run
2279		if ( !matched || (match = rcomma.exec( soFar )) ) {
2280			if ( match ) {
2281				// Don't consume trailing commas as valid
2282				soFar = soFar.slice( match[0].length ) || soFar;
2283			}
2284			groups.push( tokens = [] );
2285		}
2286
2287		matched = false;
2288
2289		// Combinators
2290		if ( (match = rcombinators.exec( soFar )) ) {
2291			matched = match.shift();
2292			tokens.push({
2293				value: matched,
2294				// Cast descendant combinators to space
2295				type: match[0].replace( rtrim, " " )
2296			});
2297			soFar = soFar.slice( matched.length );
2298		}
2299
2300		// Filters
2301		for ( type in Expr.filter ) {
2302			if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||
2303				(match = preFilters[ type ]( match ))) ) {
2304				matched = match.shift();
2305				tokens.push({
2306					value: matched,
2307					type: type,
2308					matches: match
2309				});
2310				soFar = soFar.slice( matched.length );
2311			}
2312		}
2313
2314		if ( !matched ) {
2315			break;
2316		}
2317	}
2318
2319	// Return the length of the invalid excess
2320	// if we're just parsing
2321	// Otherwise, throw an error or return tokens
2322	return parseOnly ?
2323		soFar.length :
2324		soFar ?
2325			Sizzle.error( selector ) :
2326			// Cache the tokens
2327			tokenCache( selector, groups ).slice( 0 );
2328}
2329
2330function toSelector( tokens ) {
2331	var i = 0,
2332		len = tokens.length,
2333		selector = "";
2334	for ( ; i < len; i++ ) {
2335		selector += tokens[i].value;
2336	}
2337	return selector;
2338}
2339
2340function addCombinator( matcher, combinator, base ) {
2341	var dir = combinator.dir,
2342		checkNonElements = base && dir === "parentNode",
2343		doneName = done++;
2344
2345	return combinator.first ?
2346		// Check against closest ancestor/preceding element
2347		function( elem, context, xml ) {
2348			while ( (elem = elem[ dir ]) ) {
2349				if ( elem.nodeType === 1 || checkNonElements ) {
2350					return matcher( elem, context, xml );
2351				}
2352			}
2353		} :
2354
2355		// Check against all ancestor/preceding elements
2356		function( elem, context, xml ) {
2357			var data, cache, outerCache,
2358				dirkey = dirruns + " " + doneName;
2359
2360			// We can't set arbitrary data on XML nodes, so they don't benefit from dir caching
2361			if ( xml ) {
2362				while ( (elem = elem[ dir ]) ) {
2363					if ( elem.nodeType === 1 || checkNonElements ) {
2364						if ( matcher( elem, context, xml ) ) {
2365							return true;
2366						}
2367					}
2368				}
2369			} else {
2370				while ( (elem = elem[ dir ]) ) {
2371					if ( elem.nodeType === 1 || checkNonElements ) {
2372						outerCache = elem[ expando ] || (elem[ expando ] = {});
2373						if ( (cache = outerCache[ dir ]) && cache[0] === dirkey ) {
2374							if ( (data = cache[1]) === true || data === cachedruns ) {
2375								return data === true;
2376							}
2377						} else {
2378							cache = outerCache[ dir ] = [ dirkey ];
2379							cache[1] = matcher( elem, context, xml ) || cachedruns;
2380							if ( cache[1] === true ) {
2381								return true;
2382							}
2383						}
2384					}
2385				}
2386			}
2387		};
2388}
2389
2390function elementMatcher( matchers ) {
2391	return matchers.length > 1 ?
2392		function( elem, context, xml ) {
2393			var i = matchers.length;
2394			while ( i-- ) {
2395				if ( !matchers[i]( elem, context, xml ) ) {
2396					return false;
2397				}
2398			}
2399			return true;
2400		} :
2401		matchers[0];
2402}
2403
2404function condense( unmatched, map, filter, context, xml ) {
2405	var elem,
2406		newUnmatched = [],
2407		i = 0,
2408		len = unmatched.length,
2409		mapped = map != null;
2410
2411	for ( ; i < len; i++ ) {
2412		if ( (elem = unmatched[i]) ) {
2413			if ( !filter || filter( elem, context, xml ) ) {
2414				newUnmatched.push( elem );
2415				if ( mapped ) {
2416					map.push( i );
2417				}
2418			}
2419		}
2420	}
2421
2422	return newUnmatched;
2423}
2424
2425function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
2426	if ( postFilter && !postFilter[ expando ] ) {
2427		postFilter = setMatcher( postFilter );
2428	}
2429	if ( postFinder && !postFinder[ expando ] ) {
2430		postFinder = setMatcher( postFinder, postSelector );
2431	}
2432	return markFunction(function( seed, results, context, xml ) {
2433		var temp, i, elem,
2434			preMap = [],
2435			postMap = [],
2436			preexisting = results.length,
2437
2438			// Get initial elements from seed or context
2439			elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ),
2440
2441			// Prefilter to get matcher input, preserving a map for seed-results synchronization
2442			matcherIn = preFilter && ( seed || !selector ) ?
2443				condense( elems, preMap, preFilter, context, xml ) :
2444				elems,
2445
2446			matcherOut = matcher ?
2447				// If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,
2448				postFinder || ( seed ? preFilter : preexisting || postFilter ) ?
2449
2450					// ...intermediate processing is necessary
2451					[] :
2452
2453					// ...otherwise use results directly
2454					results :
2455				matcherIn;
2456
2457		// Find primary matches
2458		if ( matcher ) {
2459			matcher( matcherIn, matcherOut, context, xml );
2460		}
2461
2462		// Apply postFilter
2463		if ( postFilter ) {
2464			temp = condense( matcherOut, postMap );
2465			postFilter( temp, [], context, xml );
2466
2467			// Un-match failing elements by moving them back to matcherIn
2468			i = temp.length;
2469			while ( i-- ) {
2470				if ( (elem = temp[i]) ) {
2471					matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);
2472				}
2473			}
2474		}
2475
2476		if ( seed ) {
2477			if ( postFinder || preFilter ) {
2478				if ( postFinder ) {
2479					// Get the final matcherOut by condensing this intermediate into postFinder contexts
2480					temp = [];
2481					i = matcherOut.length;
2482					while ( i-- ) {
2483						if ( (elem = matcherOut[i]) ) {
2484							// Restore matcherIn since elem is not yet a final match
2485							temp.push( (matcherIn[i] = elem) );
2486						}
2487					}
2488					postFinder( null, (matcherOut = []), temp, xml );
2489				}
2490
2491				// Move matched elements from seed to results to keep them synchronized
2492				i = matcherOut.length;
2493				while ( i-- ) {
2494					if ( (elem = matcherOut[i]) &&
2495						(temp = postFinder ? indexOf.call( seed, elem ) : preMap[i]) > -1 ) {
2496
2497						seed[temp] = !(results[temp] = elem);
2498					}
2499				}
2500			}
2501
2502		// Add elements to results, through postFinder if defined
2503		} else {
2504			matcherOut = condense(
2505				matcherOut === results ?
2506					matcherOut.splice( preexisting, matcherOut.length ) :
2507					matcherOut
2508			);
2509			if ( postFinder ) {
2510				postFinder( null, results, matcherOut, xml );
2511			} else {
2512				push.apply( results, matcherOut );
2513			}
2514		}
2515	});
2516}
2517
2518function matcherFromTokens( tokens ) {
2519	var checkContext, matcher, j,
2520		len = tokens.length,
2521		leadingRelative = Expr.relative[ tokens[0].type ],
2522		implicitRelative = leadingRelative || Expr.relative[" "],
2523		i = leadingRelative ? 1 : 0,
2524
2525		// The foundational matcher ensures that elements are reachable from top-level context(s)
2526		matchContext = addCombinator( function( elem ) {
2527			return elem === checkContext;
2528		}, implicitRelative, true ),
2529		matchAnyContext = addCombinator( function( elem ) {
2530			return indexOf.call( checkContext, elem ) > -1;
2531		}, implicitRelative, true ),
2532		matchers = [ function( elem, context, xml ) {
2533			return ( !leadingRelative && ( xml || context !== outermostContext ) ) || (
2534				(checkContext = context).nodeType ?
2535					matchContext( elem, context, xml ) :
2536					matchAnyContext( elem, context, xml ) );
2537		} ];
2538
2539	for ( ; i < len; i++ ) {
2540		if ( (matcher = Expr.relative[ tokens[i].type ]) ) {
2541			matchers = [ addCombinator(elementMatcher( matchers ), matcher) ];
2542		} else {
2543			matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );
2544
2545			// Return special upon seeing a positional matcher
2546			if ( matcher[ expando ] ) {
2547				// Find the next relative operator (if any) for proper handling
2548				j = ++i;
2549				for ( ; j < len; j++ ) {
2550					if ( Expr.relative[ tokens[j].type ] ) {
2551						break;
2552					}
2553				}
2554				return setMatcher(
2555					i > 1 && elementMatcher( matchers ),
2556					i > 1 && toSelector(
2557						// If the preceding token was a descendant combinator, insert an implicit any-element `*`
2558						tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" })
2559					).replace( rtrim, "$1" ),
2560					matcher,
2561					i < j && matcherFromTokens( tokens.slice( i, j ) ),
2562					j < len && matcherFromTokens( (tokens = tokens.slice( j )) ),
2563					j < len && toSelector( tokens )
2564				);
2565			}
2566			matchers.push( matcher );
2567		}
2568	}
2569
2570	return elementMatcher( matchers );
2571}
2572
2573function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
2574	// A counter to specify which element is currently being matched
2575	var matcherCachedRuns = 0,
2576		bySet = setMatchers.length > 0,
2577		byElement = elementMatchers.length > 0,
2578		superMatcher = function( seed, context, xml, results, expandContext ) {
2579			var elem, j, matcher,
2580				setMatched = [],
2581				matchedCount = 0,
2582				i = "0",
2583				unmatched = seed && [],
2584				outermost = expandContext != null,
2585				contextBackup = outermostContext,
2586				// We must always have either seed elements or context
2587				elems = seed || byElement && Expr.find["TAG"]( "*", expandContext && context.parentNode || context ),
2588				// Use integer dirruns iff this is the outermost matcher
2589				dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1);
2590
2591			if ( outermost ) {
2592				outermostContext = context !== document && context;
2593				cachedruns = matcherCachedRuns;
2594			}
2595
2596			// Add elements passing elementMatchers directly to results
2597			// Keep `i` a string if there are no elements so `matchedCount` will be "00" below
2598			for ( ; (elem = elems[i]) != null; i++ ) {
2599				if ( byElement && elem ) {
2600					j = 0;
2601					while ( (matcher = elementMatchers[j++]) ) {
2602						if ( matcher( elem, context, xml ) ) {
2603							results.push( elem );
2604							break;
2605						}
2606					}
2607					if ( outermost ) {
2608						dirruns = dirrunsUnique;
2609						cachedruns = ++matcherCachedRuns;
2610					}
2611				}
2612
2613				// Track unmatched elements for set filters
2614				if ( bySet ) {
2615					// They will have gone through all possible matchers
2616					if ( (elem = !matcher && elem) ) {
2617						matchedCount--;
2618					}
2619
2620					// Lengthen the array for every element, matched or not
2621					if ( seed ) {
2622						unmatched.push( elem );
2623					}
2624				}
2625			}
2626
2627			// Apply set filters to unmatched elements
2628			matchedCount += i;
2629			if ( bySet && i !== matchedCount ) {
2630				j = 0;
2631				while ( (matcher = setMatchers[j++]) ) {
2632					matcher( unmatched, setMatched, context, xml );
2633				}
2634
2635				if ( seed ) {
2636					// Reintegrate element matches to eliminate the need for sorting
2637					if ( matchedCount > 0 ) {
2638						while ( i-- ) {
2639							if ( !(unmatched[i] || setMatched[i]) ) {
2640								setMatched[i] = pop.call( results );
2641							}
2642						}
2643					}
2644
2645					// Discard index placeholder values to get only actual matches
2646					setMatched = condense( setMatched );
2647				}
2648
2649				// Add matches to results
2650				push.apply( results, setMatched );
2651
2652				// Seedless set matches succeeding multiple successful matchers stipulate sorting
2653				if ( outermost && !seed && setMatched.length > 0 &&
2654					( matchedCount + setMatchers.length ) > 1 ) {
2655
2656					Sizzle.uniqueSort( results );
2657				}
2658			}
2659
2660			// Override manipulation of globals by nested matchers
2661			if ( outermost ) {
2662				dirruns = dirrunsUnique;
2663				outermostContext = contextBackup;
2664			}
2665
2666			return unmatched;
2667		};
2668
2669	return bySet ?
2670		markFunction( superMatcher ) :
2671		superMatcher;
2672}
2673
2674compile = Sizzle.compile = function( selector, group /* Internal Use Only */ ) {
2675	var i,
2676		setMatchers = [],
2677		elementMatchers = [],
2678		cached = compilerCache[ selector + " " ];
2679
2680	if ( !cached ) {
2681		// Generate a function of recursive functions that can be used to check each element
2682		if ( !group ) {
2683			group = tokenize( selector );
2684		}
2685		i = group.length;
2686		while ( i-- ) {
2687			cached = matcherFromTokens( group[i] );
2688			if ( cached[ expando ] ) {
2689				setMatchers.push( cached );
2690			} else {
2691				elementMatchers.push( cached );
2692			}
2693		}
2694
2695		// Cache the compiled function
2696		cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );
2697	}
2698	return cached;
2699};
2700
2701function multipleContexts( selector, contexts, results ) {
2702	var i = 0,
2703		len = contexts.length;
2704	for ( ; i < len; i++ ) {
2705		Sizzle( selector, contexts[i], results );
2706	}
2707	return results;
2708}
2709
2710function select( selector, context, results, seed ) {
2711	var i, tokens, token, type, find,
2712		match = tokenize( selector );
2713
2714	if ( !seed ) {
2715		// Try to minimize operations if there is only one group
2716		if ( match.length === 1 ) {
2717
2718			// Take a shortcut and set the context if the root selector is an ID
2719			tokens = match[0] = match[0].slice( 0 );
2720			if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
2721					support.getById && context.nodeType === 9 && documentIsHTML &&
2722					Expr.relative[ tokens[1].type ] ) {
2723
2724				context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
2725				if ( !context ) {
2726					return results;
2727				}
2728				selector = selector.slice( tokens.shift().value.length );
2729			}
2730
2731			// Fetch a seed set for right-to-left matching
2732			i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length;
2733			while ( i-- ) {
2734				token = tokens[i];
2735
2736				// Abort if we hit a combinator
2737				if ( Expr.relative[ (type = token.type) ] ) {
2738					break;
2739				}
2740				if ( (find = Expr.find[ type ]) ) {
2741					// Search, expanding context for leading sibling combinators
2742					if ( (seed = find(
2743						token.matches[0].replace( runescape, funescape ),
2744						rsibling.test( tokens[0].type ) && context.parentNode || context
2745					)) ) {
2746
2747						// If seed is empty or no tokens remain, we can return early
2748						tokens.splice( i, 1 );
2749						selector = seed.length && toSelector( tokens );
2750						if ( !selector ) {
2751							push.apply( results, seed );
2752							return results;
2753						}
2754
2755						break;
2756					}
2757				}
2758			}
2759		}
2760	}
2761
2762	// Compile and execute a filtering function
2763	// Provide `match` to avoid retokenization if we modified the selector above
2764	compile( selector, match )(
2765		seed,
2766		context,
2767		!documentIsHTML,
2768		results,
2769		rsibling.test( selector )
2770	);
2771	return results;
2772}
2773
2774// One-time assignments
2775
2776// Sort stability
2777support.sortStable = expando.split("").sort( sortOrder ).join("") === expando;
2778
2779// Support: Chrome<14
2780// Always assume duplicates if they aren't passed to the comparison function
2781support.detectDuplicates = hasDuplicate;
2782
2783// Initialize against the default document
2784setDocument();
2785
2786// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)
2787// Detached nodes confoundingly follow *each other*
2788support.sortDetached = assert(function( div1 ) {
2789	// Should return 1, but returns 4 (following)
2790	return div1.compareDocumentPosition( document.createElement("div") ) & 1;
2791});
2792
2793// Support: IE<8
2794// Prevent attribute/property "interpolation"
2795// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
2796if ( !assert(function( div ) {
2797	div.innerHTML = "<a href='#'></a>";
2798	return div.firstChild.getAttribute("href") === "#" ;
2799}) ) {
2800	addHandle( "type|href|height|width", function( elem, name, isXML ) {
2801		if ( !isXML ) {
2802			return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 );
2803		}
2804	});
2805}
2806
2807// Support: IE<9
2808// Use defaultValue in place of getAttribute("value")
2809if ( !support.attributes || !assert(function( div ) {
2810	div.innerHTML = "<input/>";
2811	div.firstChild.setAttribute( "value", "" );
2812	return div.firstChild.getAttribute( "value" ) === "";
2813}) ) {
2814	addHandle( "value", function( elem, name, isXML ) {
2815		if ( !isXML && elem.nodeName.toLowerCase() === "input" ) {
2816			return elem.defaultValue;
2817		}
2818	});
2819}
2820
2821// Support: IE<9
2822// Use getAttributeNode to fetch booleans when getAttribute lies
2823if ( !assert(function( div ) {
2824	return div.getAttribute("disabled") == null;
2825}) ) {
2826	addHandle( booleans, function( elem, name, isXML ) {
2827		var val;
2828		if ( !isXML ) {
2829			return (val = elem.getAttributeNode( name )) && val.specified ?
2830				val.value :
2831				elem[ name ] === true ? name.toLowerCase() : null;
2832		}
2833	});
2834}
2835
2836jQuery.find = Sizzle;
2837jQuery.expr = Sizzle.selectors;
2838jQuery.expr[":"] = jQuery.expr.pseudos;
2839jQuery.unique = Sizzle.uniqueSort;
2840jQuery.text = Sizzle.getText;
2841jQuery.isXMLDoc = Sizzle.isXML;
2842jQuery.contains = Sizzle.contains;
2843
2844
2845})( window );
2846// String to Object options format cache
2847var optionsCache = {};
2848
2849// Convert String-formatted options into Object-formatted ones and store in cache
2850function createOptions( options ) {
2851	var object = optionsCache[ options ] = {};
2852	jQuery.each( options.match( core_rnotwhite ) || [], function( _, flag ) {
2853		object[ flag ] = true;
2854	});
2855	return object;
2856}
2857
2858/*
2859 * Create a callback list using the following parameters:
2860 *
2861 *	options: an optional list of space-separated options that will change how
2862 *			the callback list behaves or a more traditional option object
2863 *
2864 * By default a callback list will act like an event callback list and can be
2865 * "fired" multiple times.
2866 *
2867 * Possible options:
2868 *
2869 *	once:			will ensure the callback list can only be fired once (like a Deferred)
2870 *
2871 *	memory:			will keep track of previous values and will call any callback added
2872 *					after the list has been fired right away with the latest "memorized"
2873 *					values (like a Deferred)
2874 *
2875 *	unique:			will ensure a callback can only be added once (no duplicate in the list)
2876 *
2877 *	stopOnFalse:	interrupt callings when a callback returns false
2878 *
2879 */
2880jQuery.Callbacks = function( options ) {
2881
2882	// Convert options from String-formatted to Object-formatted if needed
2883	// (we check in cache first)
2884	options = typeof options === "string" ?
2885		( optionsCache[ options ] || createOptions( options ) ) :
2886		jQuery.extend( {}, options );
2887
2888	var // Last fire value (for non-forgettable lists)
2889		memory,
2890		// Flag to know if list was already fired
2891		fired,
2892		// Flag to know if list is currently firing
2893		firing,
2894		// First callback to fire (used internally by add and fireWith)
2895		firingStart,
2896		// End of the loop when firing
2897		firingLength,
2898		// Index of currently firing callback (modified by remove if needed)
2899		firingIndex,
2900		// Actual callback list
2901		list = [],
2902		// Stack of fire calls for repeatable lists
2903		stack = !options.once && [],
2904		// Fire callbacks
2905		fire = function( data ) {
2906			memory = options.memory && data;
2907			fired = true;
2908			firingIndex = firingStart || 0;
2909			firingStart = 0;
2910			firingLength = list.length;
2911			firing = true;
2912			for ( ; list && firingIndex < firingLength; firingIndex++ ) {
2913				if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) {
2914					memory = false; // To prevent further calls using add
2915					break;
2916				}
2917			}
2918			firing = false;
2919			if ( list ) {
2920				if ( stack ) {
2921					if ( stack.length ) {
2922						fire( stack.shift() );
2923					}
2924				} else if ( memory ) {
2925					list = [];
2926				} else {
2927					self.disable();
2928				}
2929			}
2930		},
2931		// Actual Callbacks object
2932		self = {
2933			// Add a callback or a collection of callbacks to the list
2934			add: function() {
2935				if ( list ) {
2936					// First, we save the current length
2937					var start = list.length;
2938					(function add( args ) {
2939						jQuery.each( args, function( _, arg ) {
2940							var type = jQuery.type( arg );
2941							if ( type === "function" ) {
2942								if ( !options.unique || !self.has( arg ) ) {
2943									list.push( arg );
2944								}
2945							} else if ( arg && arg.length && type !== "string" ) {
2946								// Inspect recursively
2947								add( arg );
2948							}
2949						});
2950					})( arguments );
2951					// Do we need to add the callbacks to the
2952					// current firing batch?
2953					if ( firing ) {
2954						firingLength = list.length;
2955					// With memory, if we're not firing then
2956					// we should call right away
2957					} else if ( memory ) {
2958						firingStart = start;
2959						fire( memory );
2960					}
2961				}
2962				return this;
2963			},
2964			// Remove a callback from the list
2965			remove: function() {
2966				if ( list ) {
2967					jQuery.each( arguments, function( _, arg ) {
2968						var index;
2969						while( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {
2970							list.splice( index, 1 );
2971							// Handle firing indexes
2972							if ( firing ) {
2973								if ( index <= firingLength ) {
2974									firingLength--;
2975								}
2976								if ( index <= firingIndex ) {
2977									firingIndex--;
2978								}
2979							}
2980						}
2981					});
2982				}
2983				return this;
2984			},
2985			// Check if a given callback is in the list.
2986			// If no argument is given, return whether or not list has callbacks attached.
2987			has: function( fn ) {
2988				return fn ? jQuery.inArray( fn, list ) > -1 : !!( list && list.length );
2989			},
2990			// Remove all callbacks from the list
2991			empty: function() {
2992				list = [];
2993				firingLength = 0;
2994				return this;
2995			},
2996			// Have the list do nothing anymore
2997			disable: function() {
2998				list = stack = memory = undefined;
2999				return this;
3000			},
3001			// Is it disabled?
3002			disabled: function() {
3003				return !list;
3004			},
3005			// Lock the list in its current state
3006			lock: function() {
3007				stack = undefined;
3008				if ( !memory ) {
3009					self.disable();
3010				}
3011				return this;
3012			},
3013			// Is it locked?
3014			locked: function() {
3015				return !stack;
3016			},
3017			// Call all callbacks with the given context and arguments
3018			fireWith: function( context, args ) {
3019				if ( list && ( !fired || stack ) ) {
3020					args = args || [];
3021					args = [ context, args.slice ? args.slice() : args ];
3022					if ( firing ) {
3023						stack.push( args );
3024					} else {
3025						fire( args );
3026					}
3027				}
3028				return this;
3029			},
3030			// Call all the callbacks with the given arguments
3031			fire: function() {
3032				self.fireWith( this, arguments );
3033				return this;
3034			},
3035			// To know if the callbacks have already been called at least once
3036			fired: function() {
3037				return !!fired;
3038			}
3039		};
3040
3041	return self;
3042};
3043jQuery.extend({
3044
3045	Deferred: function( func ) {
3046		var tuples = [
3047				// action, add listener, listener list, final state
3048				[ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
3049				[ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],
3050				[ "notify", "progress", jQuery.Callbacks("memory") ]
3051			],
3052			state = "pending",
3053			promise = {
3054				state: function() {
3055					return state;
3056				},
3057				always: function() {
3058					deferred.done( arguments ).fail( arguments );
3059					return this;
3060				},
3061				then: function( /* fnDone, fnFail, fnProgress */ ) {
3062					var fns = arguments;
3063					return jQuery.Deferred(function( newDefer ) {
3064						jQuery.each( tuples, function( i, tuple ) {
3065							var action = tuple[ 0 ],
3066								fn = jQuery.isFunction( fns[ i ] ) && fns[ i ];
3067							// deferred[ done | fail | progress ] for forwarding actions to newDefer
3068							deferred[ tuple[1] ](function() {
3069								var returned = fn && fn.apply( this, arguments );
3070								if ( returned && jQuery.isFunction( returned.promise ) ) {
3071									returned.promise()
3072										.done( newDefer.resolve )
3073										.fail( newDefer.reject )
3074										.progress( newDefer.notify );
3075								} else {
3076									newDefer[ action + "With" ]( this === promise ? newDefer.promise() : this, fn ? [ returned ] : arguments );
3077								}
3078							});
3079						});
3080						fns = null;
3081					}).promise();
3082				},
3083				// Get a promise for this deferred
3084				// If obj is provided, the promise aspect is added to the object
3085				promise: function( obj ) {
3086					return obj != null ? jQuery.extend( obj, promise ) : promise;
3087				}
3088			},
3089			deferred = {};
3090
3091		// Keep pipe for back-compat
3092		promise.pipe = promise.then;
3093
3094		// Add list-specific methods
3095		jQuery.each( tuples, function( i, tuple ) {
3096			var list = tuple[ 2 ],
3097				stateString = tuple[ 3 ];
3098
3099			// promise[ done | fail | progress ] = list.add
3100			promise[ tuple[1] ] = list.add;
3101
3102			// Handle state
3103			if ( stateString ) {
3104				list.add(function() {
3105					// state = [ resolved | rejected ]
3106					state = stateString;
3107
3108				// [ reject_list | resolve_list ].disable; progress_list.lock
3109				}, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock );
3110			}
3111
3112			// deferred[ resolve | reject | notify ]
3113			deferred[ tuple[0] ] = function() {
3114				deferred[ tuple[0] + "With" ]( this === deferred ? promise : this, arguments );
3115				return this;
3116			};
3117			deferred[ tuple[0] + "With" ] = list.fireWith;
3118		});
3119
3120		// Make the deferred a promise
3121		promise.promise( deferred );
3122
3123		// Call given func if any
3124		if ( func ) {
3125			func.call( deferred, deferred );
3126		}
3127
3128		// All done!
3129		return deferred;
3130	},
3131
3132	// Deferred helper
3133	when: function( subordinate /* , ..., subordinateN */ ) {
3134		var i = 0,
3135			resolveValues = core_slice.call( arguments ),
3136			length = resolveValues.length,
3137
3138			// the count of uncompleted subordinates
3139			remaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0,
3140
3141			// the master Deferred. If resolveValues consist of only a single Deferred, just use that.
3142			deferred = remaining === 1 ? subordinate : jQuery.Deferred(),
3143
3144			// Update function for both resolve and progress values
3145			updateFunc = function( i, contexts, values ) {
3146				return function( value ) {
3147					contexts[ i ] = this;
3148					values[ i ] = arguments.length > 1 ? core_slice.call( arguments ) : value;
3149					if( values === progressValues ) {
3150						deferred.notifyWith( contexts, values );
3151					} else if ( !( --remaining ) ) {
3152						deferred.resolveWith( contexts, values );
3153					}
3154				};
3155			},
3156
3157			progressValues, progressContexts, resolveContexts;
3158
3159		// add listeners to Deferred subordinates; treat others as resolved
3160		if ( length > 1 ) {
3161			progressValues = new Array( length );
3162			progressContexts = new Array( length );
3163			resolveContexts = new Array( length );
3164			for ( ; i < length; i++ ) {
3165				if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) {
3166					resolveValues[ i ].promise()
3167						.done( updateFunc( i, resolveContexts, resolveValues ) )
3168						.fail( deferred.reject )
3169						.progress( updateFunc( i, progressContexts, progressValues ) );
3170				} else {
3171					--remaining;
3172				}
3173			}
3174		}
3175
3176		// if we're not waiting on anything, resolve the master
3177		if ( !remaining ) {
3178			deferred.resolveWith( resolveContexts, resolveValues );
3179		}
3180
3181		return deferred.promise();
3182	}
3183});
3184jQuery.support = (function( support ) {
3185	var input = document.createElement("input"),
3186		fragment = document.createDocumentFragment(),
3187		div = document.createElement("div"),
3188		select = document.createElement("select"),
3189		opt = select.appendChild( document.createElement("option") );
3190
3191	// Finish early in limited environments
3192	if ( !input.type ) {
3193		return support;
3194	}
3195
3196	input.type = "checkbox";
3197
3198	// Support: Safari 5.1, iOS 5.1, Android 4.x, Android 2.3
3199	// Check the default checkbox/radio value ("" on old WebKit; "on" elsewhere)
3200	support.checkOn = input.value !== "";
3201
3202	// Must access the parent to make an option select properly
3203	// Support: IE9, IE10
3204	support.optSelected = opt.selected;
3205
3206	// Will be defined later
3207	support.reliableMarginRight = true;
3208	support.boxSizingReliable = true;
3209	support.pixelPosition = false;
3210
3211	// Make sure checked status is properly cloned
3212	// Support: IE9, IE10
3213	input.checked = true;
3214	support.noCloneChecked = input.cloneNode( true ).checked;
3215
3216	// Make sure that the options inside disabled selects aren't marked as disabled
3217	// (WebKit marks them as disabled)
3218	select.disabled = true;
3219	support.optDisabled = !opt.disabled;
3220
3221	// Check if an input maintains its value after becoming a radio
3222	// Support: IE9, IE10
3223	input = document.createElement("input");
3224	input.value = "t";
3225	input.type = "radio";
3226	support.radioValue = input.value === "t";
3227
3228	// #11217 - WebKit loses check when the name is after the checked attribute
3229	input.setAttribute( "checked", "t" );
3230	input.setAttribute( "name", "t" );
3231
3232	fragment.appendChild( input );
3233
3234	// Support: Safari 5.1, Android 4.x, Android 2.3
3235	// old WebKit doesn't clone checked state correctly in fragments
3236	support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked;
3237
3238	// Support: Firefox, Chrome, Safari
3239	// Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP)
3240	support.focusinBubbles = "onfocusin" in window;
3241
3242	div.style.backgroundClip = "content-box";
3243	div.cloneNode( true ).style.backgroundClip = "";
3244	support.clearCloneStyle = div.style.backgroundClip === "content-box";
3245
3246	// Run tests that need a body at doc ready
3247	jQuery(function() {
3248		var container, marginDiv,
3249			// Support: Firefox, Android 2.3 (Prefixed box-sizing versions).
3250			divReset = "padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box",
3251			body = document.getElementsByTagName("body")[ 0 ];
3252
3253		if ( !body ) {
3254			// Return for frameset docs that don't have a body
3255			return;
3256		}
3257
3258		container = document.createElement("div");
3259		container.style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px";
3260
3261		// Check box-sizing and margin behavior.
3262		body.appendChild( container ).appendChild( div );
3263		div.innerHTML = "";
3264		// Support: Firefox, Android 2.3 (Prefixed box-sizing versions).
3265		div.style.cssText = "-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%";
3266
3267		// Workaround failing boxSizing test due to offsetWidth returning wrong value
3268		// with some non-1 values of body zoom, ticket #13543
3269		jQuery.swap( body, body.style.zoom != null ? { zoom: 1 } : {}, function() {
3270			support.boxSizing = div.offsetWidth === 4;
3271		});
3272
3273		// Use window.getComputedStyle because jsdom on node.js will break without it.
3274		if ( window.getComputedStyle ) {
3275			support.pixelPosition = ( window.getComputedStyle( div, null ) || {} ).top !== "1%";
3276			support.boxSizingReliable = ( window.getComputedStyle( div, null ) || { width: "4px" } ).width === "4px";
3277
3278			// Support: Android 2.3
3279			// Check if div with explicit width and no margin-right incorrectly
3280			// gets computed margin-right based on width of container. (#3333)
3281			// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
3282			marginDiv = div.appendChild( document.createElement("div") );
3283			marginDiv.style.cssText = div.style.cssText = divReset;
3284			marginDiv.style.marginRight = marginDiv.style.width = "0";
3285			div.style.width = "1px";
3286
3287			support.reliableMarginRight =
3288				!parseFloat( ( window.getComputedStyle( marginDiv, null ) || {} ).marginRight );
3289		}
3290
3291		body.removeChild( container );
3292	});
3293
3294	return support;
3295})( {} );
3296
3297/*
3298	Implementation Summary
3299
3300	1. Enforce API surface and semantic compatibility with 1.9.x branch
3301	2. Improve the module's maintainability by reducing the storage
3302		paths to a single mechanism.
3303	3. Use the same single mechanism to support "private" and "user" data.
3304	4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData)
3305	5. Avoid exposing implementation details on user objects (eg. expando properties)
3306	6. Provide a clear path for implementation upgrade to WeakMap in 2014
3307*/
3308var data_user, data_priv,
3309	rbrace = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/,
3310	rmultiDash = /([A-Z])/g;
3311
3312function Data() {
3313	// Support: Android < 4,
3314	// Old WebKit does not have Object.preventExtensions/freeze method,
3315	// return new empty object instead with no [[set]] accessor
3316	Object.defineProperty( this.cache = {}, 0, {
3317		get: function() {
3318			return {};
3319		}
3320	});
3321
3322	this.expando = jQuery.expando + Math.random();
3323}
3324
3325Data.uid = 1;
3326
3327Data.accepts = function( owner ) {
3328	// Accepts only:
3329	//  - Node
3330	//    - Node.ELEMENT_NODE
3331	//    - Node.DOCUMENT_NODE
3332	//  - Object
3333	//    - Any
3334	return owner.nodeType ?
3335		owner.nodeType === 1 || owner.nodeType === 9 : true;
3336};
3337
3338Data.prototype = {
3339	key: function( owner ) {
3340		// We can accept data for non-element nodes in modern browsers,
3341		// but we should not, see #8335.
3342		// Always return the key for a frozen object.
3343		if ( !Data.accepts( owner ) ) {
3344			return 0;
3345		}
3346
3347		var descriptor = {},
3348			// Check if the owner object already has a cache key
3349			unlock = owner[ this.expando ];
3350
3351		// If not, create one
3352		if ( !unlock ) {
3353			unlock = Data.uid++;
3354
3355			// Secure it in a non-enumerable, non-writable property
3356			try {
3357				descriptor[ this.expando ] = { value: unlock };
3358				Object.defineProperties( owner, descriptor );
3359
3360			// Support: Android < 4
3361			// Fallback to a less secure definition
3362			} catch ( e ) {
3363				descriptor[ this.expando ] = unlock;
3364				jQuery.extend( owner, descriptor );
3365			}
3366		}
3367
3368		// Ensure the cache object
3369		if ( !this.cache[ unlock ] ) {
3370			this.cache[ unlock ] = {};
3371		}
3372
3373		return unlock;
3374	},
3375	set: function( owner, data, value ) {
3376		var prop,
3377			// There may be an unlock assigned to this node,
3378			// if there is no entry for this "owner", create one inline
3379			// and set the unlock as though an owner entry had always existed
3380			unlock = this.key( owner ),
3381			cache = this.cache[ unlock ];
3382
3383		// Handle: [ owner, key, value ] args
3384		if ( typeof data === "string" ) {
3385			cache[ data ] = value;
3386
3387		// Handle: [ owner, { properties } ] args
3388		} else {
3389			// Fresh assignments by object are shallow copied
3390			if ( jQuery.isEmptyObject( cache ) ) {
3391				jQuery.extend( this.cache[ unlock ], data );
3392			// Otherwise, copy the properties one-by-one to the cache object
3393			} else {
3394				for ( prop in data ) {
3395					cache[ prop ] = data[ prop ];
3396				}
3397			}
3398		}
3399		return cache;
3400	},
3401	get: function( owner, key ) {
3402		// Either a valid cache is found, or will be created.
3403		// New caches will be created and the unlock returned,
3404		// allowing direct access to the newly created
3405		// empty data object. A valid owner object must be provided.
3406		var cache = this.cache[ this.key( owner ) ];
3407
3408		return key === undefined ?
3409			cache : cache[ key ];
3410	},
3411	access: function( owner, key, value ) {
3412		var stored;
3413		// In cases where either:
3414		//
3415		//   1. No key was specified
3416		//   2. A string key was specified, but no value provided
3417		//
3418		// Take the "read" path and allow the get method to determine
3419		// which value to return, respectively either:
3420		//
3421		//   1. The entire cache object
3422		//   2. The data stored at the key
3423		//
3424		if ( key === undefined ||
3425				((key && typeof key === "string") && value === undefined) ) {
3426
3427			stored = this.get( owner, key );
3428
3429			return stored !== undefined ?
3430				stored : this.get( owner, jQuery.camelCase(key) );
3431		}
3432
3433		// [*]When the key is not a string, or both a key and value
3434		// are specified, set or extend (existing objects) with either:
3435		//
3436		//   1. An object of properties
3437		//   2. A key and value
3438		//
3439		this.set( owner, key, value );
3440
3441		// Since the "set" path can have two possible entry points
3442		// return the expected data based on which path was taken[*]
3443		return value !== undefined ? value : key;
3444	},
3445	remove: function( owner, key ) {
3446		var i, name, camel,
3447			unlock = this.key( owner ),
3448			cache = this.cache[ unlock ];
3449
3450		if ( key === undefined ) {
3451			this.cache[ unlock ] = {};
3452
3453		} else {
3454			// Support array or space separated string of keys
3455			if ( jQuery.isArray( key ) ) {
3456				// If "name" is an array of keys...
3457				// When data is initially created, via ("key", "val") signature,
3458				// keys will be converted to camelCase.
3459				// Since there is no way to tell _how_ a key was added, remove
3460				// both plain key and camelCase key. #12786
3461				// This will only penalize the array argument path.
3462				name = key.concat( key.map( jQuery.camelCase ) );
3463			} else {
3464				camel = jQuery.camelCase( key );
3465				// Try the string as a key before any manipulation
3466				if ( key in cache ) {
3467					name = [ key, camel ];
3468				} else {
3469					// If a key with the spaces exists, use it.
3470					// Otherwise, create an array by matching non-whitespace
3471					name = camel;
3472					name = name in cache ?
3473						[ name ] : ( name.match( core_rnotwhite ) || [] );
3474				}
3475			}
3476
3477			i = name.length;
3478			while ( i-- ) {
3479				delete cache[ name[ i ] ];
3480			}
3481		}
3482	},
3483	hasData: function( owner ) {
3484		return !jQuery.isEmptyObject(
3485			this.cache[ owner[ this.expando ] ] || {}
3486		);
3487	},
3488	discard: function( owner ) {
3489		if ( owner[ this.expando ] ) {
3490			delete this.cache[ owner[ this.expando ] ];
3491		}
3492	}
3493};
3494
3495// These may be used throughout the jQuery core codebase
3496data_user = new Data();
3497data_priv = new Data();
3498
3499
3500jQuery.extend({
3501	acceptData: Data.accepts,
3502
3503	hasData: function( elem ) {
3504		return data_user.hasData( elem ) || data_priv.hasData( elem );
3505	},
3506
3507	data: function( elem, name, data ) {
3508		return data_user.access( elem, name, data );
3509	},
3510
3511	removeData: function( elem, name ) {
3512		data_user.remove( elem, name );
3513	},
3514
3515	// TODO: Now that all calls to _data and _removeData have been replaced
3516	// with direct calls to data_priv methods, these can be deprecated.
3517	_data: function( elem, name, data ) {
3518		return data_priv.access( elem, name, data );
3519	},
3520
3521	_removeData: function( elem, name ) {
3522		data_priv.remove( elem, name );
3523	}
3524});
3525
3526jQuery.fn.extend({
3527	data: function( key, value ) {
3528		var attrs, name,
3529			elem = this[ 0 ],
3530			i = 0,
3531			data = null;
3532
3533		// Gets all values
3534		if ( key === undefined ) {
3535			if ( this.length ) {
3536				data = data_user.get( elem );
3537
3538				if ( elem.nodeType === 1 && !data_priv.get( elem, "hasDataAttrs" ) ) {
3539					attrs = elem.attributes;
3540					for ( ; i < attrs.length; i++ ) {
3541						name = attrs[ i ].name;
3542
3543						if ( name.indexOf( "data-" ) === 0 ) {
3544							name = jQuery.camelCase( name.slice(5) );
3545							dataAttr( elem, name, data[ name ] );
3546						}
3547					}
3548					data_priv.set( elem, "hasDataAttrs", true );
3549				}
3550			}
3551
3552			return data;
3553		}
3554
3555		// Sets multiple values
3556		if ( typeof key === "object" ) {
3557			return this.each(function() {
3558				data_user.set( this, key );
3559			});
3560		}
3561
3562		return jQuery.access( this, function( value ) {
3563			var data,
3564				camelKey = jQuery.camelCase( key );
3565
3566			// The calling jQuery object (element matches) is not empty
3567			// (and therefore has an element appears at this[ 0 ]) and the
3568			// `value` parameter was not undefined. An empty jQuery object
3569			// will result in `undefined` for elem = this[ 0 ] which will
3570			// throw an exception if an attempt to read a data cache is made.
3571			if ( elem && value === undefined ) {
3572				// Attempt to get data from the cache
3573				// with the key as-is
3574				data = data_user.get( elem, key );
3575				if ( data !== undefined ) {
3576					return data;
3577				}
3578
3579				// Attempt to get data from the cache
3580				// with the key camelized
3581				data = data_user.get( elem, camelKey );
3582				if ( data !== undefined ) {
3583					return data;
3584				}
3585
3586				// Attempt to "discover" the data in
3587				// HTML5 custom data-* attrs
3588				data = dataAttr( elem, camelKey, undefined );
3589				if ( data !== undefined ) {
3590					return data;
3591				}
3592
3593				// We tried really hard, but the data doesn't exist.
3594				return;
3595			}
3596
3597			// Set the data...
3598			this.each(function() {
3599				// First, attempt to store a copy or reference of any
3600				// data that might've been store with a camelCased key.
3601				var data = data_user.get( this, camelKey );
3602
3603				// For HTML5 data-* attribute interop, we have to
3604				// store property names with dashes in a camelCase form.
3605				// This might not apply to all properties...*
3606				data_user.set( this, camelKey, value );
3607
3608				// *... In the case of properties that might _actually_
vendor: 35,579 bytes, lines 3609-4869
3609				// have dashes, we need to also store a copy of that
3610				// unchanged property.
3611				if ( key.indexOf("-") !== -1 && data !== undefined ) {
3612					data_user.set( this, key, value );
3613				}
3614			});
3615		}, null, value, arguments.length > 1, null, true );
3616	},
3617
3618	removeData: function( key ) {
3619		return this.each(function() {
3620			data_user.remove( this, key );
3621		});
3622	}
3623});
3624
3625function dataAttr( elem, key, data ) {
3626	var name;
3627
3628	// If nothing was found internally, try to fetch any
3629	// data from the HTML5 data-* attribute
3630	if ( data === undefined && elem.nodeType === 1 ) {
3631		name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();
3632		data = elem.getAttribute( name );
3633
3634		if ( typeof data === "string" ) {
3635			try {
3636				data = data === "true" ? true :
3637					data === "false" ? false :
3638					data === "null" ? null :
3639					// Only convert to a number if it doesn't change the string
3640					+data + "" === data ? +data :
3641					rbrace.test( data ) ? JSON.parse( data ) :
3642					data;
3643			} catch( e ) {}
3644
3645			// Make sure we set the data so it isn't changed later
3646			data_user.set( elem, key, data );
3647		} else {
3648			data = undefined;
3649		}
3650	}
3651	return data;
3652}
3653jQuery.extend({
3654	queue: function( elem, type, data ) {
3655		var queue;
3656
3657		if ( elem ) {
3658			type = ( type || "fx" ) + "queue";
3659			queue = data_priv.get( elem, type );
3660
3661			// Speed up dequeue by getting out quickly if this is just a lookup
3662			if ( data ) {
3663				if ( !queue || jQuery.isArray( data ) ) {
3664					queue = data_priv.access( elem, type, jQuery.makeArray(data) );
3665				} else {
3666					queue.push( data );
3667				}
3668			}
3669			return queue || [];
3670		}
3671	},
3672
3673	dequeue: function( elem, type ) {
3674		type = type || "fx";
3675
3676		var queue = jQuery.queue( elem, type ),
3677			startLength = queue.length,
3678			fn = queue.shift(),
3679			hooks = jQuery._queueHooks( elem, type ),
3680			next = function() {
3681				jQuery.dequeue( elem, type );
3682			};
3683
3684		// If the fx queue is dequeued, always remove the progress sentinel
3685		if ( fn === "inprogress" ) {
3686			fn = queue.shift();
3687			startLength--;
3688		}
3689
3690		if ( fn ) {
3691
3692			// Add a progress sentinel to prevent the fx queue from being
3693			// automatically dequeued
3694			if ( type === "fx" ) {
3695				queue.unshift( "inprogress" );
3696			}
3697
3698			// clear up the last queue stop function
3699			delete hooks.stop;
3700			fn.call( elem, next, hooks );
3701		}
3702
3703		if ( !startLength && hooks ) {
3704			hooks.empty.fire();
3705		}
3706	},
3707
3708	// not intended for public consumption - generates a queueHooks object, or returns the current one
3709	_queueHooks: function( elem, type ) {
3710		var key = type + "queueHooks";
3711		return data_priv.get( elem, key ) || data_priv.access( elem, key, {
3712			empty: jQuery.Callbacks("once memory").add(function() {
3713				data_priv.remove( elem, [ type + "queue", key ] );
3714			})
3715		});
3716	}
3717});
3718
3719jQuery.fn.extend({
3720	queue: function( type, data ) {
3721		var setter = 2;
3722
3723		if ( typeof type !== "string" ) {
3724			data = type;
3725			type = "fx";
3726			setter--;
3727		}
3728
3729		if ( arguments.length < setter ) {
3730			return jQuery.queue( this[0], type );
3731		}
3732
3733		return data === undefined ?
3734			this :
3735			this.each(function() {
3736				var queue = jQuery.queue( this, type, data );
3737
3738				// ensure a hooks for this queue
3739				jQuery._queueHooks( this, type );
3740
3741				if ( type === "fx" && queue[0] !== "inprogress" ) {
3742					jQuery.dequeue( this, type );
3743				}
3744			});
3745	},
3746	dequeue: function( type ) {
3747		return this.each(function() {
3748			jQuery.dequeue( this, type );
3749		});
3750	},
3751	// Based off of the plugin by Clint Helfers, with permission.
3752	// http://blindsignals.com/index.php/2009/07/jquery-delay/
3753	delay: function( time, type ) {
3754		time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
3755		type = type || "fx";
3756
3757		return this.queue( type, function( next, hooks ) {
3758			var timeout = setTimeout( next, time );
3759			hooks.stop = function() {
3760				clearTimeout( timeout );
3761			};
3762		});
3763	},
3764	clearQueue: function( type ) {
3765		return this.queue( type || "fx", [] );
3766	},
3767	// Get a promise resolved when queues of a certain type
3768	// are emptied (fx is the type by default)
3769	promise: function( type, obj ) {
3770		var tmp,
3771			count = 1,
3772			defer = jQuery.Deferred(),
3773			elements = this,
3774			i = this.length,
3775			resolve = function() {
3776				if ( !( --count ) ) {
3777					defer.resolveWith( elements, [ elements ] );
3778				}
3779			};
3780
3781		if ( typeof type !== "string" ) {
3782			obj = type;
3783			type = undefined;
3784		}
3785		type = type || "fx";
3786
3787		while( i-- ) {
3788			tmp = data_priv.get( elements[ i ], type + "queueHooks" );
3789			if ( tmp && tmp.empty ) {
3790				count++;
3791				tmp.empty.add( resolve );
3792			}
3793		}
3794		resolve();
3795		return defer.promise( obj );
3796	}
3797});
3798var nodeHook, boolHook,
3799	rclass = /[\t\r\n\f]/g,
3800	rreturn = /\r/g,
3801	rfocusable = /^(?:input|select|textarea|button)$/i;
3802
3803jQuery.fn.extend({
3804	attr: function( name, value ) {
3805		return jQuery.access( this, jQuery.attr, name, value, arguments.length > 1 );
3806	},
3807
3808	removeAttr: function( name ) {
3809		return this.each(function() {
3810			jQuery.removeAttr( this, name );
3811		});
3812	},
3813
3814	prop: function( name, value ) {
3815		return jQuery.access( this, jQuery.prop, name, value, arguments.length > 1 );
3816	},
3817
3818	removeProp: function( name ) {
3819		return this.each(function() {
3820			delete this[ jQuery.propFix[ name ] || name ];
3821		});
3822	},
3823
3824	addClass: function( value ) {
3825		var classes, elem, cur, clazz, j,
3826			i = 0,
3827			len = this.length,
3828			proceed = typeof value === "string" && value;
3829
3830		if ( jQuery.isFunction( value ) ) {
3831			return this.each(function( j ) {
3832				jQuery( this ).addClass( value.call( this, j, this.className ) );
3833			});
3834		}
3835
3836		if ( proceed ) {
3837			// The disjunction here is for better compressibility (see removeClass)
3838			classes = ( value || "" ).match( core_rnotwhite ) || [];
3839
3840			for ( ; i < len; i++ ) {
3841				elem = this[ i ];
3842				cur = elem.nodeType === 1 && ( elem.className ?
3843					( " " + elem.className + " " ).replace( rclass, " " ) :
3844					" "
3845				);
3846
3847				if ( cur ) {
3848					j = 0;
3849					while ( (clazz = classes[j++]) ) {
3850						if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
3851							cur += clazz + " ";
3852						}
3853					}
3854					elem.className = jQuery.trim( cur );
3855
3856				}
3857			}
3858		}
3859
3860		return this;
3861	},
3862
3863	removeClass: function( value ) {
3864		var classes, elem, cur, clazz, j,
3865			i = 0,
3866			len = this.length,
3867			proceed = arguments.length === 0 || typeof value === "string" && value;
3868
3869		if ( jQuery.isFunction( value ) ) {
3870			return this.each(function( j ) {
3871				jQuery( this ).removeClass( value.call( this, j, this.className ) );
3872			});
3873		}
3874		if ( proceed ) {
3875			classes = ( value || "" ).match( core_rnotwhite ) || [];
3876
3877			for ( ; i < len; i++ ) {
3878				elem = this[ i ];
3879				// This expression is here for better compressibility (see addClass)
3880				cur = elem.nodeType === 1 && ( elem.className ?
3881					( " " + elem.className + " " ).replace( rclass, " " ) :
3882					""
3883				);
3884
3885				if ( cur ) {
3886					j = 0;
3887					while ( (clazz = classes[j++]) ) {
3888						// Remove *all* instances
3889						while ( cur.indexOf( " " + clazz + " " ) >= 0 ) {
3890							cur = cur.replace( " " + clazz + " ", " " );
3891						}
3892					}
3893					elem.className = value ? jQuery.trim( cur ) : "";
3894				}
3895			}
3896		}
3897
3898		return this;
3899	},
3900
3901	toggleClass: function( value, stateVal ) {
3902		var type = typeof value;
3903
3904		if ( typeof stateVal === "boolean" && type === "string" ) {
3905			return stateVal ? this.addClass( value ) : this.removeClass( value );
3906		}
3907
3908		if ( jQuery.isFunction( value ) ) {
3909			return this.each(function( i ) {
3910				jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );
3911			});
3912		}
3913
3914		return this.each(function() {
3915			if ( type === "string" ) {
3916				// toggle individual class names
3917				var className,
3918					i = 0,
3919					self = jQuery( this ),
3920					classNames = value.match( core_rnotwhite ) || [];
3921
3922				while ( (className = classNames[ i++ ]) ) {
3923					// check each className given, space separated list
3924					if ( self.hasClass( className ) ) {
3925						self.removeClass( className );
3926					} else {
3927						self.addClass( className );
3928					}
3929				}
3930
3931			// Toggle whole class name
3932			} else if ( type === core_strundefined || type === "boolean" ) {
3933				if ( this.className ) {
3934					// store className if set
3935					data_priv.set( this, "__className__", this.className );
3936				}
3937
3938				// If the element has a class name or if we're passed "false",
3939				// then remove the whole classname (if there was one, the above saved it).
3940				// Otherwise bring back whatever was previously saved (if anything),
3941				// falling back to the empty string if nothing was stored.
3942				this.className = this.className || value === false ? "" : data_priv.get( this, "__className__" ) || "";
3943			}
3944		});
3945	},
3946
3947	hasClass: function( selector ) {
3948		var className = " " + selector + " ",
3949			i = 0,
3950			l = this.length;
3951		for ( ; i < l; i++ ) {
3952			if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) >= 0 ) {
3953				return true;
3954			}
3955		}
3956
3957		return false;
3958	},
3959
3960	val: function( value ) {
3961		var hooks, ret, isFunction,
3962			elem = this[0];
3963
3964		if ( !arguments.length ) {
3965			if ( elem ) {
3966				hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ];
3967
3968				if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {
3969					return ret;
3970				}
3971
3972				ret = elem.value;
3973
3974				return typeof ret === "string" ?
3975					// handle most common string cases
3976					ret.replace(rreturn, "") :
3977					// handle cases where value is null/undef or number
3978					ret == null ? "" : ret;
3979			}
3980
3981			return;
3982		}
3983
3984		isFunction = jQuery.isFunction( value );
3985
3986		return this.each(function( i ) {
3987			var val;
3988
3989			if ( this.nodeType !== 1 ) {
3990				return;
3991			}
3992
3993			if ( isFunction ) {
3994				val = value.call( this, i, jQuery( this ).val() );
3995			} else {
3996				val = value;
3997			}
3998
3999			// Treat null/undefined as ""; convert numbers to string
4000			if ( val == null ) {
4001				val = "";
4002			} else if ( typeof val === "number" ) {
4003				val += "";
4004			} else if ( jQuery.isArray( val ) ) {
4005				val = jQuery.map(val, function ( value ) {
4006					return value == null ? "" : value + "";
4007				});
4008			}
4009
4010			hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];
4011
4012			// If set returns undefined, fall back to normal setting
4013			if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {
4014				this.value = val;
4015			}
4016		});
4017	}
4018});
4019
4020jQuery.extend({
4021	valHooks: {
4022		option: {
4023			get: function( elem ) {
4024				// attributes.value is undefined in Blackberry 4.7 but
4025				// uses .value. See #6932
4026				var val = elem.attributes.value;
4027				return !val || val.specified ? elem.value : elem.text;
4028			}
4029		},
4030		select: {
4031			get: function( elem ) {
4032				var value, option,
4033					options = elem.options,
4034					index = elem.selectedIndex,
4035					one = elem.type === "select-one" || index < 0,
4036					values = one ? null : [],
4037					max = one ? index + 1 : options.length,
4038					i = index < 0 ?
4039						max :
4040						one ? index : 0;
4041
4042				// Loop through all the selected options
4043				for ( ; i < max; i++ ) {
4044					option = options[ i ];
4045
4046					// IE6-9 doesn't update selected after form reset (#2551)
4047					if ( ( option.selected || i === index ) &&
4048							// Don't return options that are disabled or in a disabled optgroup
4049							( jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null ) &&
4050							( !option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) {
4051
4052						// Get the specific value for the option
4053						value = jQuery( option ).val();
4054
4055						// We don't need an array for one selects
4056						if ( one ) {
4057							return value;
4058						}
4059
4060						// Multi-Selects return an array
4061						values.push( value );
4062					}
4063				}
4064
4065				return values;
4066			},
4067
4068			set: function( elem, value ) {
4069				var optionSet, option,
4070					options = elem.options,
4071					values = jQuery.makeArray( value ),
4072					i = options.length;
4073
4074				while ( i-- ) {
4075					option = options[ i ];
4076					if ( (option.selected = jQuery.inArray( jQuery(option).val(), values ) >= 0) ) {
4077						optionSet = true;
4078					}
4079				}
4080
4081				// force browsers to behave consistently when non-matching value is set
4082				if ( !optionSet ) {
4083					elem.selectedIndex = -1;
4084				}
4085				return values;
4086			}
4087		}
4088	},
4089
4090	attr: function( elem, name, value ) {
4091		var hooks, ret,
4092			nType = elem.nodeType;
4093
4094		// don't get/set attributes on text, comment and attribute nodes
4095		if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
4096			return;
4097		}
4098
4099		// Fallback to prop when attributes are not supported
4100		if ( typeof elem.getAttribute === core_strundefined ) {
4101			return jQuery.prop( elem, name, value );
4102		}
4103
4104		// All attributes are lowercase
4105		// Grab necessary hook if one is defined
4106		if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
4107			name = name.toLowerCase();
4108			hooks = jQuery.attrHooks[ name ] ||
4109				( jQuery.expr.match.bool.test( name ) ? boolHook : nodeHook );
4110		}
4111
4112		if ( value !== undefined ) {
4113
4114			if ( value === null ) {
4115				jQuery.removeAttr( elem, name );
4116
4117			} else if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
4118				return ret;
4119
4120			} else {
4121				elem.setAttribute( name, value + "" );
4122				return value;
4123			}
4124
4125		} else if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
4126			return ret;
4127
4128		} else {
4129			ret = jQuery.find.attr( elem, name );
4130
4131			// Non-existent attributes return null, we normalize to undefined
4132			return ret == null ?
4133				undefined :
4134				ret;
4135		}
4136	},
4137
4138	removeAttr: function( elem, value ) {
4139		var name, propName,
4140			i = 0,
4141			attrNames = value && value.match( core_rnotwhite );
4142
4143		if ( attrNames && elem.nodeType === 1 ) {
4144			while ( (name = attrNames[i++]) ) {
4145				propName = jQuery.propFix[ name ] || name;
4146
4147				// Boolean attributes get special treatment (#10870)
4148				if ( jQuery.expr.match.bool.test( name ) ) {
4149					// Set corresponding property to false
4150					elem[ propName ] = false;
4151				}
4152
4153				elem.removeAttribute( name );
4154			}
4155		}
4156	},
4157
4158	attrHooks: {
4159		type: {
4160			set: function( elem, value ) {
4161				if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) {
4162					// Setting the type on a radio button after the value resets the value in IE6-9
4163					// Reset value to default in case type is set after value during creation
4164					var val = elem.value;
4165					elem.setAttribute( "type", value );
4166					if ( val ) {
4167						elem.value = val;
4168					}
4169					return value;
4170				}
4171			}
4172		}
4173	},
4174
4175	propFix: {
4176		"for": "htmlFor",
4177		"class": "className"
4178	},
4179
4180	prop: function( elem, name, value ) {
4181		var ret, hooks, notxml,
4182			nType = elem.nodeType;
4183
4184		// don't get/set properties on text, comment and attribute nodes
4185		if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
4186			return;
4187		}
4188
4189		notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
4190
4191		if ( notxml ) {
4192			// Fix name and attach hooks
4193			name = jQuery.propFix[ name ] || name;
4194			hooks = jQuery.propHooks[ name ];
4195		}
4196
4197		if ( value !== undefined ) {
4198			return hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ?
4199				ret :
4200				( elem[ name ] = value );
4201
4202		} else {
4203			return hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ?
4204				ret :
4205				elem[ name ];
4206		}
4207	},
4208
4209	propHooks: {
4210		tabIndex: {
4211			get: function( elem ) {
4212				return elem.hasAttribute( "tabindex" ) || rfocusable.test( elem.nodeName ) || elem.href ?
4213					elem.tabIndex :
4214					-1;
4215			}
4216		}
4217	}
4218});
4219
4220// Hooks for boolean attributes
4221boolHook = {
4222	set: function( elem, value, name ) {
4223		if ( value === false ) {
4224			// Remove boolean attributes when set to false
4225			jQuery.removeAttr( elem, name );
4226		} else {
4227			elem.setAttribute( name, name );
4228		}
4229		return name;
4230	}
4231};
4232jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {
4233	var getter = jQuery.expr.attrHandle[ name ] || jQuery.find.attr;
4234
4235	jQuery.expr.attrHandle[ name ] = function( elem, name, isXML ) {
4236		var fn = jQuery.expr.attrHandle[ name ],
4237			ret = isXML ?
4238				undefined :
4239				/* jshint eqeqeq: false */
4240				// Temporarily disable this handler to check existence
4241				(jQuery.expr.attrHandle[ name ] = undefined) !=
4242					getter( elem, name, isXML ) ?
4243
4244					name.toLowerCase() :
4245					null;
4246
4247		// Restore handler
4248		jQuery.expr.attrHandle[ name ] = fn;
4249
4250		return ret;
4251	};
4252});
4253
4254// Support: IE9+
4255// Selectedness for an option in an optgroup can be inaccurate
4256if ( !jQuery.support.optSelected ) {
4257	jQuery.propHooks.selected = {
4258		get: function( elem ) {
4259			var parent = elem.parentNode;
4260			if ( parent && parent.parentNode ) {
4261				parent.parentNode.selectedIndex;
4262			}
4263			return null;
4264		}
4265	};
4266}
4267
4268jQuery.each([
4269	"tabIndex",
4270	"readOnly",
4271	"maxLength",
4272	"cellSpacing",
4273	"cellPadding",
4274	"rowSpan",
4275	"colSpan",
4276	"useMap",
4277	"frameBorder",
4278	"contentEditable"
4279], function() {
4280	jQuery.propFix[ this.toLowerCase() ] = this;
4281});
4282
4283// Radios and checkboxes getter/setter
4284jQuery.each([ "radio", "checkbox" ], function() {
4285	jQuery.valHooks[ this ] = {
4286		set: function( elem, value ) {
4287			if ( jQuery.isArray( value ) ) {
4288				return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );
4289			}
4290		}
4291	};
4292	if ( !jQuery.support.checkOn ) {
4293		jQuery.valHooks[ this ].get = function( elem ) {
4294			// Support: Webkit
4295			// "" is returned instead of "on" if a value isn't specified
4296			return elem.getAttribute("value") === null ? "on" : elem.value;
4297		};
4298	}
4299});
4300var rkeyEvent = /^key/,
4301	rmouseEvent = /^(?:mouse|contextmenu)|click/,
4302	rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
4303	rtypenamespace = /^([^.]*)(?:\.(.+)|)$/;
4304
4305function returnTrue() {
4306	return true;
4307}
4308
4309function returnFalse() {
4310	return false;
4311}
4312
4313function safeActiveElement() {
4314	try {
4315		return document.activeElement;
4316	} catch ( err ) { }
4317}
4318
4319/*
4320 * Helper functions for managing events -- not part of the public interface.
4321 * Props to Dean Edwards' addEvent library for many of the ideas.
4322 */
4323jQuery.event = {
4324
4325	global: {},
4326
4327	add: function( elem, types, handler, data, selector ) {
4328
4329		var handleObjIn, eventHandle, tmp,
4330			events, t, handleObj,
4331			special, handlers, type, namespaces, origType,
4332			elemData = data_priv.get( elem );
4333
4334		// Don't attach events to noData or text/comment nodes (but allow plain objects)
4335		if ( !elemData ) {
4336			return;
4337		}
4338
4339		// Caller can pass in an object of custom data in lieu of the handler
4340		if ( handler.handler ) {
4341			handleObjIn = handler;
4342			handler = handleObjIn.handler;
4343			selector = handleObjIn.selector;
4344		}
4345
4346		// Make sure that the handler has a unique ID, used to find/remove it later
4347		if ( !handler.guid ) {
4348			handler.guid = jQuery.guid++;
4349		}
4350
4351		// Init the element's event structure and main handler, if this is the first
4352		if ( !(events = elemData.events) ) {
4353			events = elemData.events = {};
4354		}
4355		if ( !(eventHandle = elemData.handle) ) {
4356			eventHandle = elemData.handle = function( e ) {
4357				// Discard the second event of a jQuery.event.trigger() and
4358				// when an event is called after a page has unloaded
4359				return typeof jQuery !== core_strundefined && (!e || jQuery.event.triggered !== e.type) ?
4360					jQuery.event.dispatch.apply( eventHandle.elem, arguments ) :
4361					undefined;
4362			};
4363			// Add elem as a property of the handle fn to prevent a memory leak with IE non-native events
4364			eventHandle.elem = elem;
4365		}
4366
4367		// Handle multiple events separated by a space
4368		types = ( types || "" ).match( core_rnotwhite ) || [""];
4369		t = types.length;
4370		while ( t-- ) {
4371			tmp = rtypenamespace.exec( types[t] ) || [];
4372			type = origType = tmp[1];
4373			namespaces = ( tmp[2] || "" ).split( "." ).sort();
4374
4375			// There *must* be a type, no attaching namespace-only handlers
4376			if ( !type ) {
4377				continue;
4378			}
4379
4380			// If event changes its type, use the special event handlers for the changed type
4381			special = jQuery.event.special[ type ] || {};
4382
4383			// If selector defined, determine special event api type, otherwise given type
4384			type = ( selector ? special.delegateType : special.bindType ) || type;
4385
4386			// Update special based on newly reset type
4387			special = jQuery.event.special[ type ] || {};
4388
4389			// handleObj is passed to all event handlers
4390			handleObj = jQuery.extend({
4391				type: type,
4392				origType: origType,
4393				data: data,
4394				handler: handler,
4395				guid: handler.guid,
4396				selector: selector,
4397				needsContext: selector && jQuery.expr.match.needsContext.test( selector ),
4398				namespace: namespaces.join(".")
4399			}, handleObjIn );
4400
4401			// Init the event handler queue if we're the first
4402			if ( !(handlers = events[ type ]) ) {
4403				handlers = events[ type ] = [];
4404				handlers.delegateCount = 0;
4405
4406				// Only use addEventListener if the special events handler returns false
4407				if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
4408					if ( elem.addEventListener ) {
4409						elem.addEventListener( type, eventHandle, false );
4410					}
4411				}
4412			}
4413
4414			if ( special.add ) {
4415				special.add.call( elem, handleObj );
4416
4417				if ( !handleObj.handler.guid ) {
4418					handleObj.handler.guid = handler.guid;
4419				}
4420			}
4421
4422			// Add to the element's handler list, delegates in front
4423			if ( selector ) {
4424				handlers.splice( handlers.delegateCount++, 0, handleObj );
4425			} else {
4426				handlers.push( handleObj );
4427			}
4428
4429			// Keep track of which events have ever been used, for event optimization
4430			jQuery.event.global[ type ] = true;
4431		}
4432
4433		// Nullify elem to prevent memory leaks in IE
4434		elem = null;
4435	},
4436
4437	// Detach an event or set of events from an element
4438	remove: function( elem, types, handler, selector, mappedTypes ) {
4439
4440		var j, origCount, tmp,
4441			events, t, handleObj,
4442			special, handlers, type, namespaces, origType,
4443			elemData = data_priv.hasData( elem ) && data_priv.get( elem );
4444
4445		if ( !elemData || !(events = elemData.events) ) {
4446			return;
4447		}
4448
4449		// Once for each type.namespace in types; type may be omitted
4450		types = ( types || "" ).match( core_rnotwhite ) || [""];
4451		t = types.length;
4452		while ( t-- ) {
4453			tmp = rtypenamespace.exec( types[t] ) || [];
4454			type = origType = tmp[1];
4455			namespaces = ( tmp[2] || "" ).split( "." ).sort();
4456
4457			// Unbind all events (on this namespace, if provided) for the element
4458			if ( !type ) {
4459				for ( type in events ) {
4460					jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
4461				}
4462				continue;
4463			}
4464
4465			special = jQuery.event.special[ type ] || {};
4466			type = ( selector ? special.delegateType : special.bindType ) || type;
4467			handlers = events[ type ] || [];
4468			tmp = tmp[2] && new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" );
4469
4470			// Remove matching events
4471			origCount = j = handlers.length;
4472			while ( j-- ) {
4473				handleObj = handlers[ j ];
4474
4475				if ( ( mappedTypes || origType === handleObj.origType ) &&
4476					( !handler || handler.guid === handleObj.guid ) &&
4477					( !tmp || tmp.test( handleObj.namespace ) ) &&
4478					( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
4479					handlers.splice( j, 1 );
4480
4481					if ( handleObj.selector ) {
4482						handlers.delegateCount--;
4483					}
4484					if ( special.remove ) {
4485						special.remove.call( elem, handleObj );
4486					}
4487				}
4488			}
4489
4490			// Remove generic event handler if we removed something and no more handlers exist
4491			// (avoids potential for endless recursion during removal of special event handlers)
4492			if ( origCount && !handlers.length ) {
4493				if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) {
4494					jQuery.removeEvent( elem, type, elemData.handle );
4495				}
4496
4497				delete events[ type ];
4498			}
4499		}
4500
4501		// Remove the expando if it's no longer used
4502		if ( jQuery.isEmptyObject( events ) ) {
4503			delete elemData.handle;
4504			data_priv.remove( elem, "events" );
4505		}
4506	},
4507
4508	trigger: function( event, data, elem, onlyHandlers ) {
4509
4510		var i, cur, tmp, bubbleType, ontype, handle, special,
4511			eventPath = [ elem || document ],
4512			type = core_hasOwn.call( event, "type" ) ? event.type : event,
4513			namespaces = core_hasOwn.call( event, "namespace" ) ? event.namespace.split(".") : [];
4514
4515		cur = tmp = elem = elem || document;
4516
4517		// Don't do events on text and comment nodes
4518		if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
4519			return;
4520		}
4521
4522		// focus/blur morphs to focusin/out; ensure we're not firing them right now
4523		if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
4524			return;
4525		}
4526
4527		if ( type.indexOf(".") >= 0 ) {
4528			// Namespaced trigger; create a regexp to match event type in handle()
4529			namespaces = type.split(".");
4530			type = namespaces.shift();
4531			namespaces.sort();
4532		}
4533		ontype = type.indexOf(":") < 0 && "on" + type;
4534
4535		// Caller can pass in a jQuery.Event object, Object, or just an event type string
4536		event = event[ jQuery.expando ] ?
4537			event :
4538			new jQuery.Event( type, typeof event === "object" && event );
4539
4540		// Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)
4541		event.isTrigger = onlyHandlers ? 2 : 3;
4542		event.namespace = namespaces.join(".");
4543		event.namespace_re = event.namespace ?
4544			new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ) :
4545			null;
4546
4547		// Clean up the event in case it is being reused
4548		event.result = undefined;
4549		if ( !event.target ) {
4550			event.target = elem;
4551		}
4552
4553		// Clone any incoming data and prepend the event, creating the handler arg list
4554		data = data == null ?
4555			[ event ] :
4556			jQuery.makeArray( data, [ event ] );
4557
4558		// Allow special events to draw outside the lines
4559		special = jQuery.event.special[ type ] || {};
4560		if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {
4561			return;
4562		}
4563
4564		// Determine event propagation path in advance, per W3C events spec (#9951)
4565		// Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
4566		if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {
4567
4568			bubbleType = special.delegateType || type;
4569			if ( !rfocusMorph.test( bubbleType + type ) ) {
4570				cur = cur.parentNode;
4571			}
4572			for ( ; cur; cur = cur.parentNode ) {
4573				eventPath.push( cur );
4574				tmp = cur;
4575			}
4576
4577			// Only add window if we got to document (e.g., not plain obj or detached DOM)
4578			if ( tmp === (elem.ownerDocument || document) ) {
4579				eventPath.push( tmp.defaultView || tmp.parentWindow || window );
4580			}
4581		}
4582
4583		// Fire handlers on the event path
4584		i = 0;
4585		while ( (cur = eventPath[i++]) && !event.isPropagationStopped() ) {
4586
4587			event.type = i > 1 ?
4588				bubbleType :
4589				special.bindType || type;
4590
4591			// jQuery handler
4592			handle = ( data_priv.get( cur, "events" ) || {} )[ event.type ] && data_priv.get( cur, "handle" );
4593			if ( handle ) {
4594				handle.apply( cur, data );
4595			}
4596
4597			// Native handler
4598			handle = ontype && cur[ ontype ];
4599			if ( handle && jQuery.acceptData( cur ) && handle.apply && handle.apply( cur, data ) === false ) {
4600				event.preventDefault();
4601			}
4602		}
4603		event.type = type;
4604
4605		// If nobody prevented the default action, do it now
4606		if ( !onlyHandlers && !event.isDefaultPrevented() ) {
4607
4608			if ( (!special._default || special._default.apply( eventPath.pop(), data ) === false) &&
4609				jQuery.acceptData( elem ) ) {
4610
4611				// Call a native DOM method on the target with the same name name as the event.
4612				// Don't do default actions on window, that's where global variables be (#6170)
4613				if ( ontype && jQuery.isFunction( elem[ type ] ) && !jQuery.isWindow( elem ) ) {
4614
4615					// Don't re-trigger an onFOO event when we call its FOO() method
4616					tmp = elem[ ontype ];
4617
4618					if ( tmp ) {
4619						elem[ ontype ] = null;
4620					}
4621
4622					// Prevent re-triggering of the same event, since we already bubbled it above
4623					jQuery.event.triggered = type;
4624					elem[ type ]();
4625					jQuery.event.triggered = undefined;
4626
4627					if ( tmp ) {
4628						elem[ ontype ] = tmp;
4629					}
4630				}
4631			}
4632		}
4633
4634		return event.result;
4635	},
4636
4637	dispatch: function( event ) {
4638
4639		// Make a writable jQuery.Event from the native event object
4640		event = jQuery.event.fix( event );
4641
4642		var i, j, ret, matched, handleObj,
4643			handlerQueue = [],
4644			args = core_slice.call( arguments ),
4645			handlers = ( data_priv.get( this, "events" ) || {} )[ event.type ] || [],
4646			special = jQuery.event.special[ event.type ] || {};
4647
4648		// Use the fix-ed jQuery.Event rather than the (read-only) native event
4649		args[0] = event;
4650		event.delegateTarget = this;
4651
4652		// Call the preDispatch hook for the mapped type, and let it bail if desired
4653		if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {
4654			return;
4655		}
4656
4657		// Determine handlers
4658		handlerQueue = jQuery.event.handlers.call( this, event, handlers );
4659
4660		// Run delegates first; they may want to stop propagation beneath us
4661		i = 0;
4662		while ( (matched = handlerQueue[ i++ ]) && !event.isPropagationStopped() ) {
4663			event.currentTarget = matched.elem;
4664
4665			j = 0;
4666			while ( (handleObj = matched.handlers[ j++ ]) && !event.isImmediatePropagationStopped() ) {
4667
4668				// Triggered event must either 1) have no namespace, or
4669				// 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace).
4670				if ( !event.namespace_re || event.namespace_re.test( handleObj.namespace ) ) {
4671
4672					event.handleObj = handleObj;
4673					event.data = handleObj.data;
4674
4675					ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler )
4676							.apply( matched.elem, args );
4677
4678					if ( ret !== undefined ) {
4679						if ( (event.result = ret) === false ) {
4680							event.preventDefault();
4681							event.stopPropagation();
4682						}
4683					}
4684				}
4685			}
4686		}
4687
4688		// Call the postDispatch hook for the mapped type
4689		if ( special.postDispatch ) {
4690			special.postDispatch.call( this, event );
4691		}
4692
4693		return event.result;
4694	},
4695
4696	handlers: function( event, handlers ) {
4697		var i, matches, sel, handleObj,
4698			handlerQueue = [],
4699			delegateCount = handlers.delegateCount,
4700			cur = event.target;
4701
4702		// Find delegate handlers
4703		// Black-hole SVG <use> instance trees (#13180)
4704		// Avoid non-left-click bubbling in Firefox (#3861)
4705		if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) {
4706
4707			for ( ; cur !== this; cur = cur.parentNode || this ) {
4708
4709				// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
4710				if ( cur.disabled !== true || event.type !== "click" ) {
4711					matches = [];
4712					for ( i = 0; i < delegateCount; i++ ) {
4713						handleObj = handlers[ i ];
4714
4715						// Don't conflict with Object.prototype properties (#13203)
4716						sel = handleObj.selector + " ";
4717
4718						if ( matches[ sel ] === undefined ) {
4719							matches[ sel ] = handleObj.needsContext ?
4720								jQuery( sel, this ).index( cur ) >= 0 :
4721								jQuery.find( sel, this, null, [ cur ] ).length;
4722						}
4723						if ( matches[ sel ] ) {
4724							matches.push( handleObj );
4725						}
4726					}
4727					if ( matches.length ) {
4728						handlerQueue.push({ elem: cur, handlers: matches });
4729					}
4730				}
4731			}
4732		}
4733
4734		// Add the remaining (directly-bound) handlers
4735		if ( delegateCount < handlers.length ) {
4736			handlerQueue.push({ elem: this, handlers: handlers.slice( delegateCount ) });
4737		}
4738
4739		return handlerQueue;
4740	},
4741
4742	// Includes some event props shared by KeyEvent and MouseEvent
4743	props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
4744
4745	fixHooks: {},
4746
4747	keyHooks: {
4748		props: "char charCode key keyCode".split(" "),
4749		filter: function( event, original ) {
4750
4751			// Add which for key events
4752			if ( event.which == null ) {
4753				event.which = original.charCode != null ? original.charCode : original.keyCode;
4754			}
4755
4756			return event;
4757		}
4758	},
4759
4760	mouseHooks: {
4761		props: "button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
4762		filter: function( event, original ) {
4763			var eventDoc, doc, body,
4764				button = original.button;
4765
4766			// Calculate pageX/Y if missing and clientX/Y available
4767			if ( event.pageX == null && original.clientX != null ) {
4768				eventDoc = event.target.ownerDocument || document;
4769				doc = eventDoc.documentElement;
4770				body = eventDoc.body;
4771
4772				event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );
4773				event.pageY = original.clientY + ( doc && doc.scrollTop  || body && body.scrollTop  || 0 ) - ( doc && doc.clientTop  || body && body.clientTop  || 0 );
4774			}
4775
4776			// Add which for click: 1 === left; 2 === middle; 3 === right
4777			// Note: button is not normalized, so don't use it
4778			if ( !event.which && button !== undefined ) {
4779				event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );
4780			}
4781
4782			return event;
4783		}
4784	},
4785
4786	fix: function( event ) {
4787		if ( event[ jQuery.expando ] ) {
4788			return event;
4789		}
4790
4791		// Create a writable copy of the event object and normalize some properties
4792		var i, prop, copy,
4793			type = event.type,
4794			originalEvent = event,
4795			fixHook = this.fixHooks[ type ];
4796
4797		if ( !fixHook ) {
4798			this.fixHooks[ type ] = fixHook =
4799				rmouseEvent.test( type ) ? this.mouseHooks :
4800				rkeyEvent.test( type ) ? this.keyHooks :
4801				{};
4802		}
4803		copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;
4804
4805		event = new jQuery.Event( originalEvent );
4806
4807		i = copy.length;
4808		while ( i-- ) {
4809			prop = copy[ i ];
4810			event[ prop ] = originalEvent[ prop ];
4811		}
4812
4813		// Support: Cordova 2.5 (WebKit) (#13255)
4814		// All events should have a target; Cordova deviceready doesn't
4815		if ( !event.target ) {
4816			event.target = document;
4817		}
4818
4819		// Support: Safari 6.0+, Chrome < 28
4820		// Target should not be a text node (#504, #13143)
4821		if ( event.target.nodeType === 3 ) {
4822			event.target = event.target.parentNode;
4823		}
4824
4825		return fixHook.filter? fixHook.filter( event, originalEvent ) : event;
4826	},
4827
4828	special: {
4829		load: {
4830			// Prevent triggered image.load events from bubbling to window.load
4831			noBubble: true
4832		},
4833		focus: {
4834			// Fire native event if possible so blur/focus sequence is correct
4835			trigger: function() {
4836				if ( this !== safeActiveElement() && this.focus ) {
4837					this.focus();
4838					return false;
4839				}
4840			},
4841			delegateType: "focusin"
4842		},
4843		blur: {
4844			trigger: function() {
4845				if ( this === safeActiveElement() && this.blur ) {
4846					this.blur();
4847					return false;
4848				}
4849			},
4850			delegateType: "focusout"
4851		},
4852		click: {
4853			// For checkbox, fire native event so checked state will be right
4854			trigger: function() {
4855				if ( this.type === "checkbox" && this.click && jQuery.nodeName( this, "input" ) ) {
4856					this.click();
4857					return false;
4858				}
4859			},
4860
4861			// For cross-browser consistency, don't fire native .click() on links
4862			_default: function( event ) {
4863				return jQuery.nodeName( event.target, "a" );
4864			}
4865		},
4866
4867		beforeunload: {
4868			postDispatch: function( event ) {
4869
vendor: 7,344 bytes, lines 4870-5147
4870				// Support: Firefox 20+
4871				// Firefox doesn't alert if the returnValue field is not set.
4872				if ( event.result !== undefined ) {
4873					event.originalEvent.returnValue = event.result;
4874				}
4875			}
4876		}
4877	},
4878
4879	simulate: function( type, elem, event, bubble ) {
4880		// Piggyback on a donor event to simulate a different one.
4881		// Fake originalEvent to avoid donor's stopPropagation, but if the
4882		// simulated event prevents default then we do the same on the donor.
4883		var e = jQuery.extend(
4884			new jQuery.Event(),
4885			event,
4886			{
4887				type: type,
4888				isSimulated: true,
4889				originalEvent: {}
4890			}
4891		);
4892		if ( bubble ) {
4893			jQuery.event.trigger( e, null, elem );
4894		} else {
4895			jQuery.event.dispatch.call( elem, e );
4896		}
4897		if ( e.isDefaultPrevented() ) {
4898			event.preventDefault();
4899		}
4900	}
4901};
4902
4903jQuery.removeEvent = function( elem, type, handle ) {
4904	if ( elem.removeEventListener ) {
4905		elem.removeEventListener( type, handle, false );
4906	}
4907};
4908
4909jQuery.Event = function( src, props ) {
4910	// Allow instantiation without the 'new' keyword
4911	if ( !(this instanceof jQuery.Event) ) {
4912		return new jQuery.Event( src, props );
4913	}
4914
4915	// Event object
4916	if ( src && src.type ) {
4917		this.originalEvent = src;
4918		this.type = src.type;
4919
4920		// Events bubbling up the document may have been marked as prevented
4921		// by a handler lower down the tree; reflect the correct value.
4922		this.isDefaultPrevented = ( src.defaultPrevented ||
4923			src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse;
4924
4925	// Event type
4926	} else {
4927		this.type = src;
4928	}
4929
4930	// Put explicitly provided properties onto the event object
4931	if ( props ) {
4932		jQuery.extend( this, props );
4933	}
4934
4935	// Create a timestamp if incoming event doesn't have one
4936	this.timeStamp = src && src.timeStamp || jQuery.now();
4937
4938	// Mark it as fixed
4939	this[ jQuery.expando ] = true;
4940};
4941
4942// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
4943// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
4944jQuery.Event.prototype = {
4945	isDefaultPrevented: returnFalse,
4946	isPropagationStopped: returnFalse,
4947	isImmediatePropagationStopped: returnFalse,
4948
4949	preventDefault: function() {
4950		var e = this.originalEvent;
4951
4952		this.isDefaultPrevented = returnTrue;
4953
4954		if ( e && e.preventDefault ) {
4955			e.preventDefault();
4956		}
4957	},
4958	stopPropagation: function() {
4959		var e = this.originalEvent;
4960
4961		this.isPropagationStopped = returnTrue;
4962
4963		if ( e && e.stopPropagation ) {
4964			e.stopPropagation();
4965		}
4966	},
4967	stopImmediatePropagation: function() {
4968		this.isImmediatePropagationStopped = returnTrue;
4969		this.stopPropagation();
4970	}
4971};
4972
4973// Create mouseenter/leave events using mouseover/out and event-time checks
4974// Support: Chrome 15+
4975jQuery.each({
4976	mouseenter: "mouseover",
4977	mouseleave: "mouseout"
4978}, function( orig, fix ) {
4979	jQuery.event.special[ orig ] = {
4980		delegateType: fix,
4981		bindType: fix,
4982
4983		handle: function( event ) {
4984			var ret,
4985				target = this,
4986				related = event.relatedTarget,
4987				handleObj = event.handleObj;
4988
4989			// For mousenter/leave call the handler if related is outside the target.
4990			// NB: No relatedTarget if the mouse left/entered the browser window
4991			if ( !related || (related !== target && !jQuery.contains( target, related )) ) {
4992				event.type = handleObj.origType;
4993				ret = handleObj.handler.apply( this, arguments );
4994				event.type = fix;
4995			}
4996			return ret;
4997		}
4998	};
4999});
5000
5001// Create "bubbling" focus and blur events
5002// Support: Firefox, Chrome, Safari
5003if ( !jQuery.support.focusinBubbles ) {
5004	jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {
5005
5006		// Attach a single capturing handler while someone wants focusin/focusout
5007		var attaches = 0,
5008			handler = function( event ) {
5009				jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true );
5010			};
5011
5012		jQuery.event.special[ fix ] = {
5013			setup: function() {
5014				if ( attaches++ === 0 ) {
5015					document.addEventListener( orig, handler, true );
5016				}
5017			},
5018			teardown: function() {
5019				if ( --attaches === 0 ) {
5020					document.removeEventListener( orig, handler, true );
5021				}
5022			}
5023		};
5024	});
5025}
5026
5027jQuery.fn.extend({
5028
5029	on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
5030		var origFn, type;
5031
5032		// Types can be a map of types/handlers
5033		if ( typeof types === "object" ) {
5034			// ( types-Object, selector, data )
5035			if ( typeof selector !== "string" ) {
5036				// ( types-Object, data )
5037				data = data || selector;
5038				selector = undefined;
5039			}
5040			for ( type in types ) {
5041				this.on( type, selector, data, types[ type ], one );
5042			}
5043			return this;
5044		}
5045
5046		if ( data == null && fn == null ) {
5047			// ( types, fn )
5048			fn = selector;
5049			data = selector = undefined;
5050		} else if ( fn == null ) {
5051			if ( typeof selector === "string" ) {
5052				// ( types, selector, fn )
5053				fn = data;
5054				data = undefined;
5055			} else {
5056				// ( types, data, fn )
5057				fn = data;
5058				data = selector;
5059				selector = undefined;
5060			}
5061		}
5062		if ( fn === false ) {
5063			fn = returnFalse;
5064		} else if ( !fn ) {
5065			return this;
5066		}
5067
5068		if ( one === 1 ) {
5069			origFn = fn;
5070			fn = function( event ) {
5071				// Can use an empty set, since event contains the info
5072				jQuery().off( event );
5073				return origFn.apply( this, arguments );
5074			};
5075			// Use same guid so caller can remove using origFn
5076			fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
5077		}
5078		return this.each( function() {
5079			jQuery.event.add( this, types, fn, data, selector );
5080		});
5081	},
5082	one: function( types, selector, data, fn ) {
5083		return this.on( types, selector, data, fn, 1 );
5084	},
5085	off: function( types, selector, fn ) {
5086		var handleObj, type;
5087		if ( types && types.preventDefault && types.handleObj ) {
5088			// ( event )  dispatched jQuery.Event
5089			handleObj = types.handleObj;
5090			jQuery( types.delegateTarget ).off(
5091				handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType,
5092				handleObj.selector,
5093				handleObj.handler
5094			);
5095			return this;
5096		}
5097		if ( typeof types === "object" ) {
5098			// ( types-object [, selector] )
5099			for ( type in types ) {
5100				this.off( type, selector, types[ type ] );
5101			}
5102			return this;
5103		}
5104		if ( selector === false || typeof selector === "function" ) {
5105			// ( types [, fn] )
5106			fn = selector;
5107			selector = undefined;
5108		}
5109		if ( fn === false ) {
5110			fn = returnFalse;
5111		}
5112		return this.each(function() {
5113			jQuery.event.remove( this, types, fn, selector );
5114		});
5115	},
5116
5117	trigger: function( type, data ) {
5118		return this.each(function() {
5119			jQuery.event.trigger( type, data, this );
5120		});
5121	},
5122	triggerHandler: function( type, data ) {
5123		var elem = this[0];
5124		if ( elem ) {
5125			return jQuery.event.trigger( type, data, elem, true );
5126		}
5127	}
5128});
5129var isSimple = /^.[^:#\[\.,]*$/,
5130	rparentsprev = /^(?:parents|prev(?:Until|All))/,
5131	rneedsContext = jQuery.expr.match.needsContext,
5132	// methods guaranteed to produce a unique set when starting from a unique set
5133	guaranteedUnique = {
5134		children: true,
5135		contents: true,
5136		next: true,
5137		prev: true
5138	};
5139
5140jQuery.fn.extend({
5141	find: function( selector ) {
5142		var i,
5143			ret = [],
5144			self = this,
5145			len = self.length;
5146
5147		if ( typeof selector !== "string" ) {
vendor: 37,259 bytes, lines 5148-6489
5148			return this.pushStack( jQuery( selector ).filter(function() {
5149				for ( i = 0; i < len; i++ ) {
5150					if ( jQuery.contains( self[ i ], this ) ) {
5151						return true;
5152					}
5153				}
5154			}) );
5155		}
5156
5157		for ( i = 0; i < len; i++ ) {
5158			jQuery.find( selector, self[ i ], ret );
5159		}
5160
5161		// Needed because $( selector, context ) becomes $( context ).find( selector )
5162		ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret );
5163		ret.selector = this.selector ? this.selector + " " + selector : selector;
5164		return ret;
5165	},
5166
5167	has: function( target ) {
5168		var targets = jQuery( target, this ),
5169			l = targets.length;
5170
5171		return this.filter(function() {
5172			var i = 0;
5173			for ( ; i < l; i++ ) {
5174				if ( jQuery.contains( this, targets[i] ) ) {
5175					return true;
5176				}
5177			}
5178		});
5179	},
5180
5181	not: function( selector ) {
5182		return this.pushStack( winnow(this, selector || [], true) );
5183	},
5184
5185	filter: function( selector ) {
5186		return this.pushStack( winnow(this, selector || [], false) );
5187	},
5188
5189	is: function( selector ) {
5190		return !!winnow(
5191			this,
5192
5193			// If this is a positional/relative selector, check membership in the returned set
5194			// so $("p:first").is("p:last") won't return true for a doc with two "p".
5195			typeof selector === "string" && rneedsContext.test( selector ) ?
5196				jQuery( selector ) :
5197				selector || [],
5198			false
5199		).length;
5200	},
5201
5202	closest: function( selectors, context ) {
5203		var cur,
5204			i = 0,
5205			l = this.length,
5206			matched = [],
5207			pos = ( rneedsContext.test( selectors ) || typeof selectors !== "string" ) ?
5208				jQuery( selectors, context || this.context ) :
5209				0;
5210
5211		for ( ; i < l; i++ ) {
5212			for ( cur = this[i]; cur && cur !== context; cur = cur.parentNode ) {
5213				// Always skip document fragments
5214				if ( cur.nodeType < 11 && (pos ?
5215					pos.index(cur) > -1 :
5216
5217					// Don't pass non-elements to Sizzle
5218					cur.nodeType === 1 &&
5219						jQuery.find.matchesSelector(cur, selectors)) ) {
5220
5221					cur = matched.push( cur );
5222					break;
5223				}
5224			}
5225		}
5226
5227		return this.pushStack( matched.length > 1 ? jQuery.unique( matched ) : matched );
5228	},
5229
5230	// Determine the position of an element within
5231	// the matched set of elements
5232	index: function( elem ) {
5233
5234		// No argument, return index in parent
5235		if ( !elem ) {
5236			return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1;
5237		}
5238
5239		// index in selector
5240		if ( typeof elem === "string" ) {
5241			return core_indexOf.call( jQuery( elem ), this[ 0 ] );
5242		}
5243
5244		// Locate the position of the desired element
5245		return core_indexOf.call( this,
5246
5247			// If it receives a jQuery object, the first element is used
5248			elem.jquery ? elem[ 0 ] : elem
5249		);
5250	},
5251
5252	add: function( selector, context ) {
5253		var set = typeof selector === "string" ?
5254				jQuery( selector, context ) :
5255				jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ),
5256			all = jQuery.merge( this.get(), set );
5257
5258		return this.pushStack( jQuery.unique(all) );
5259	},
5260
5261	addBack: function( selector ) {
5262		return this.add( selector == null ?
5263			this.prevObject : this.prevObject.filter(selector)
5264		);
5265	}
5266});
5267
5268function sibling( cur, dir ) {
5269	while ( (cur = cur[dir]) && cur.nodeType !== 1 ) {}
5270
5271	return cur;
5272}
5273
5274jQuery.each({
5275	parent: function( elem ) {
5276		var parent = elem.parentNode;
5277		return parent && parent.nodeType !== 11 ? parent : null;
5278	},
5279	parents: function( elem ) {
5280		return jQuery.dir( elem, "parentNode" );
5281	},
5282	parentsUntil: function( elem, i, until ) {
5283		return jQuery.dir( elem, "parentNode", until );
5284	},
5285	next: function( elem ) {
5286		return sibling( elem, "nextSibling" );
5287	},
5288	prev: function( elem ) {
5289		return sibling( elem, "previousSibling" );
5290	},
5291	nextAll: function( elem ) {
5292		return jQuery.dir( elem, "nextSibling" );
5293	},
5294	prevAll: function( elem ) {
5295		return jQuery.dir( elem, "previousSibling" );
5296	},
5297	nextUntil: function( elem, i, until ) {
5298		return jQuery.dir( elem, "nextSibling", until );
5299	},
5300	prevUntil: function( elem, i, until ) {
5301		return jQuery.dir( elem, "previousSibling", until );
5302	},
5303	siblings: function( elem ) {
5304		return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem );
5305	},
5306	children: function( elem ) {
5307		return jQuery.sibling( elem.firstChild );
5308	},
5309	contents: function( elem ) {
5310		return elem.contentDocument || jQuery.merge( [], elem.childNodes );
5311	}
5312}, function( name, fn ) {
5313	jQuery.fn[ name ] = function( until, selector ) {
5314		var matched = jQuery.map( this, fn, until );
5315
5316		if ( name.slice( -5 ) !== "Until" ) {
5317			selector = until;
5318		}
5319
5320		if ( selector && typeof selector === "string" ) {
5321			matched = jQuery.filter( selector, matched );
5322		}
5323
5324		if ( this.length > 1 ) {
5325			// Remove duplicates
5326			if ( !guaranteedUnique[ name ] ) {
5327				jQuery.unique( matched );
5328			}
5329
5330			// Reverse order for parents* and prev-derivatives
5331			if ( rparentsprev.test( name ) ) {
5332				matched.reverse();
5333			}
5334		}
5335
5336		return this.pushStack( matched );
5337	};
5338});
5339
5340jQuery.extend({
5341	filter: function( expr, elems, not ) {
5342		var elem = elems[ 0 ];
5343
5344		if ( not ) {
5345			expr = ":not(" + expr + ")";
5346		}
5347
5348		return elems.length === 1 && elem.nodeType === 1 ?
5349			jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] :
5350			jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {
5351				return elem.nodeType === 1;
5352			}));
5353	},
5354
5355	dir: function( elem, dir, until ) {
5356		var matched = [],
5357			truncate = until !== undefined;
5358
5359		while ( (elem = elem[ dir ]) && elem.nodeType !== 9 ) {
5360			if ( elem.nodeType === 1 ) {
5361				if ( truncate && jQuery( elem ).is( until ) ) {
5362					break;
5363				}
5364				matched.push( elem );
5365			}
5366		}
5367		return matched;
5368	},
5369
5370	sibling: function( n, elem ) {
5371		var matched = [];
5372
5373		for ( ; n; n = n.nextSibling ) {
5374			if ( n.nodeType === 1 && n !== elem ) {
5375				matched.push( n );
5376			}
5377		}
5378
5379		return matched;
5380	}
5381});
5382
5383// Implement the identical functionality for filter and not
5384function winnow( elements, qualifier, not ) {
5385	if ( jQuery.isFunction( qualifier ) ) {
5386		return jQuery.grep( elements, function( elem, i ) {
5387			/* jshint -W018 */
5388			return !!qualifier.call( elem, i, elem ) !== not;
5389		});
5390
5391	}
5392
5393	if ( qualifier.nodeType ) {
5394		return jQuery.grep( elements, function( elem ) {
5395			return ( elem === qualifier ) !== not;
5396		});
5397
5398	}
5399
5400	if ( typeof qualifier === "string" ) {
5401		if ( isSimple.test( qualifier ) ) {
5402			return jQuery.filter( qualifier, elements, not );
5403		}
5404
5405		qualifier = jQuery.filter( qualifier, elements );
5406	}
5407
5408	return jQuery.grep( elements, function( elem ) {
5409		return ( core_indexOf.call( qualifier, elem ) >= 0 ) !== not;
5410	});
5411}
5412var rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,
5413	rtagName = /<([\w:]+)/,
5414	rhtml = /<|&#?\w+;/,
5415	rnoInnerhtml = /<(?:script|style|link)/i,
5416	manipulation_rcheckableType = /^(?:checkbox|radio)$/i,
5417	// checked="checked" or checked
5418	rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
5419	rscriptType = /^$|\/(?:java|ecma)script/i,
5420	rscriptTypeMasked = /^true\/(.*)/,
5421	rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,
5422
5423	// We have to close these tags to support XHTML (#13200)
5424	wrapMap = {
5425
5426		// Support: IE 9
5427		option: [ 1, "<select multiple='multiple'>", "</select>" ],
5428
5429		thead: [ 1, "<table>", "</table>" ],
5430		col: [ 2, "<table><colgroup>", "</colgroup></table>" ],
5431		tr: [ 2, "<table><tbody>", "</tbody></table>" ],
5432		td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
5433
5434		_default: [ 0, "", "" ]
5435	};
5436
5437// Support: IE 9
5438wrapMap.optgroup = wrapMap.option;
5439
5440wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
5441wrapMap.th = wrapMap.td;
5442
5443jQuery.fn.extend({
5444	text: function( value ) {
5445		return jQuery.access( this, function( value ) {
5446			return value === undefined ?
5447				jQuery.text( this ) :
5448				this.empty().append( ( this[ 0 ] && this[ 0 ].ownerDocument || document ).createTextNode( value ) );
5449		}, null, value, arguments.length );
5450	},
5451
5452	append: function() {
5453		return this.domManip( arguments, function( elem ) {
5454			if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
5455				var target = manipulationTarget( this, elem );
5456				target.appendChild( elem );
5457			}
5458		});
5459	},
5460
5461	prepend: function() {
5462		return this.domManip( arguments, function( elem ) {
5463			if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
5464				var target = manipulationTarget( this, elem );
5465				target.insertBefore( elem, target.firstChild );
5466			}
5467		});
5468	},
5469
5470	before: function() {
5471		return this.domManip( arguments, function( elem ) {
5472			if ( this.parentNode ) {
5473				this.parentNode.insertBefore( elem, this );
5474			}
5475		});
5476	},
5477
5478	after: function() {
5479		return this.domManip( arguments, function( elem ) {
5480			if ( this.parentNode ) {
5481				this.parentNode.insertBefore( elem, this.nextSibling );
5482			}
5483		});
5484	},
5485
5486	// keepData is for internal use only--do not document
5487	remove: function( selector, keepData ) {
5488		var elem,
5489			elems = selector ? jQuery.filter( selector, this ) : this,
5490			i = 0;
5491
5492		for ( ; (elem = elems[i]) != null; i++ ) {
5493			if ( !keepData && elem.nodeType === 1 ) {
5494				jQuery.cleanData( getAll( elem ) );
5495			}
5496
5497			if ( elem.parentNode ) {
5498				if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) {
5499					setGlobalEval( getAll( elem, "script" ) );
5500				}
5501				elem.parentNode.removeChild( elem );
5502			}
5503		}
5504
5505		return this;
5506	},
5507
5508	empty: function() {
5509		var elem,
5510			i = 0;
5511
5512		for ( ; (elem = this[i]) != null; i++ ) {
5513			if ( elem.nodeType === 1 ) {
5514
5515				// Prevent memory leaks
5516				jQuery.cleanData( getAll( elem, false ) );
5517
5518				// Remove any remaining nodes
5519				elem.textContent = "";
5520			}
5521		}
5522
5523		return this;
5524	},
5525
5526	clone: function( dataAndEvents, deepDataAndEvents ) {
5527		dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
5528		deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
5529
5530		return this.map( function () {
5531			return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
5532		});
5533	},
5534
5535	html: function( value ) {
5536		return jQuery.access( this, function( value ) {
5537			var elem = this[ 0 ] || {},
5538				i = 0,
5539				l = this.length;
5540
5541			if ( value === undefined && elem.nodeType === 1 ) {
5542				return elem.innerHTML;
5543			}
5544
5545			// See if we can take a shortcut and just use innerHTML
5546			if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
5547				!wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) {
5548
5549				value = value.replace( rxhtmlTag, "<$1></$2>" );
5550
5551				try {
5552					for ( ; i < l; i++ ) {
5553						elem = this[ i ] || {};
5554
5555						// Remove element nodes and prevent memory leaks
5556						if ( elem.nodeType === 1 ) {
5557							jQuery.cleanData( getAll( elem, false ) );
5558							elem.innerHTML = value;
5559						}
5560					}
5561
5562					elem = 0;
5563
5564				// If using innerHTML throws an exception, use the fallback method
5565				} catch( e ) {}
5566			}
5567
5568			if ( elem ) {
5569				this.empty().append( value );
5570			}
5571		}, null, value, arguments.length );
5572	},
5573
5574	replaceWith: function() {
5575		var
5576			// Snapshot the DOM in case .domManip sweeps something relevant into its fragment
5577			args = jQuery.map( this, function( elem ) {
5578				return [ elem.nextSibling, elem.parentNode ];
5579			}),
5580			i = 0;
5581
5582		// Make the changes, replacing each context element with the new content
5583		this.domManip( arguments, function( elem ) {
5584			var next = args[ i++ ],
5585				parent = args[ i++ ];
5586
5587			if ( parent ) {
5588				// Don't use the snapshot next if it has moved (#13810)
5589				if ( next && next.parentNode !== parent ) {
5590					next = this.nextSibling;
5591				}
5592				jQuery( this ).remove();
5593				parent.insertBefore( elem, next );
5594			}
5595		// Allow new content to include elements from the context set
5596		}, true );
5597
5598		// Force removal if there was no new content (e.g., from empty arguments)
5599		return i ? this : this.remove();
5600	},
5601
5602	detach: function( selector ) {
5603		return this.remove( selector, true );
5604	},
5605
5606	domManip: function( args, callback, allowIntersection ) {
5607
5608		// Flatten any nested arrays
5609		args = core_concat.apply( [], args );
5610
5611		var fragment, first, scripts, hasScripts, node, doc,
5612			i = 0,
5613			l = this.length,
5614			set = this,
5615			iNoClone = l - 1,
5616			value = args[ 0 ],
5617			isFunction = jQuery.isFunction( value );
5618
5619		// We can't cloneNode fragments that contain checked, in WebKit
5620		if ( isFunction || !( l <= 1 || typeof value !== "string" || jQuery.support.checkClone || !rchecked.test( value ) ) ) {
5621			return this.each(function( index ) {
5622				var self = set.eq( index );
5623				if ( isFunction ) {
5624					args[ 0 ] = value.call( this, index, self.html() );
5625				}
5626				self.domManip( args, callback, allowIntersection );
5627			});
5628		}
5629
5630		if ( l ) {
5631			fragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, !allowIntersection && this );
5632			first = fragment.firstChild;
5633
5634			if ( fragment.childNodes.length === 1 ) {
5635				fragment = first;
5636			}
5637
5638			if ( first ) {
5639				scripts = jQuery.map( getAll( fragment, "script" ), disableScript );
5640				hasScripts = scripts.length;
5641
5642				// Use the original fragment for the last item instead of the first because it can end up
5643				// being emptied incorrectly in certain situations (#8070).
5644				for ( ; i < l; i++ ) {
5645					node = fragment;
5646
5647					if ( i !== iNoClone ) {
5648						node = jQuery.clone( node, true, true );
5649
5650						// Keep references to cloned scripts for later restoration
5651						if ( hasScripts ) {
5652							// Support: QtWebKit
5653							// jQuery.merge because core_push.apply(_, arraylike) throws
5654							jQuery.merge( scripts, getAll( node, "script" ) );
5655						}
5656					}
5657
5658					callback.call( this[ i ], node, i );
5659				}
5660
5661				if ( hasScripts ) {
5662					doc = scripts[ scripts.length - 1 ].ownerDocument;
5663
5664					// Reenable scripts
5665					jQuery.map( scripts, restoreScript );
5666
5667					// Evaluate executable scripts on first document insertion
5668					for ( i = 0; i < hasScripts; i++ ) {
5669						node = scripts[ i ];
5670						if ( rscriptType.test( node.type || "" ) &&
5671							!data_priv.access( node, "globalEval" ) && jQuery.contains( doc, node ) ) {
5672
5673							if ( node.src ) {
5674								// Hope ajax is available...
5675								jQuery._evalUrl( node.src );
5676							} else {
5677								jQuery.globalEval( node.textContent.replace( rcleanScript, "" ) );
5678							}
5679						}
5680					}
5681				}
5682			}
5683		}
5684
5685		return this;
5686	}
5687});
5688
5689jQuery.each({
5690	appendTo: "append",
5691	prependTo: "prepend",
5692	insertBefore: "before",
5693	insertAfter: "after",
5694	replaceAll: "replaceWith"
5695}, function( name, original ) {
5696	jQuery.fn[ name ] = function( selector ) {
5697		var elems,
5698			ret = [],
5699			insert = jQuery( selector ),
5700			last = insert.length - 1,
5701			i = 0;
5702
5703		for ( ; i <= last; i++ ) {
5704			elems = i === last ? this : this.clone( true );
5705			jQuery( insert[ i ] )[ original ]( elems );
5706
5707			// Support: QtWebKit
5708			// .get() because core_push.apply(_, arraylike) throws
5709			core_push.apply( ret, elems.get() );
5710		}
5711
5712		return this.pushStack( ret );
5713	};
5714});
5715
5716jQuery.extend({
5717	clone: function( elem, dataAndEvents, deepDataAndEvents ) {
5718		var i, l, srcElements, destElements,
5719			clone = elem.cloneNode( true ),
5720			inPage = jQuery.contains( elem.ownerDocument, elem );
5721
5722		// Support: IE >= 9
5723		// Fix Cloning issues
5724		if ( !jQuery.support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) && !jQuery.isXMLDoc( elem ) ) {
5725
5726			// We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2
5727			destElements = getAll( clone );
5728			srcElements = getAll( elem );
5729
5730			for ( i = 0, l = srcElements.length; i < l; i++ ) {
5731				fixInput( srcElements[ i ], destElements[ i ] );
5732			}
5733		}
5734
5735		// Copy the events from the original to the clone
5736		if ( dataAndEvents ) {
5737			if ( deepDataAndEvents ) {
5738				srcElements = srcElements || getAll( elem );
5739				destElements = destElements || getAll( clone );
5740
5741				for ( i = 0, l = srcElements.length; i < l; i++ ) {
5742					cloneCopyEvent( srcElements[ i ], destElements[ i ] );
5743				}
5744			} else {
5745				cloneCopyEvent( elem, clone );
5746			}
5747		}
5748
5749		// Preserve script evaluation history
5750		destElements = getAll( clone, "script" );
5751		if ( destElements.length > 0 ) {
5752			setGlobalEval( destElements, !inPage && getAll( elem, "script" ) );
5753		}
5754
5755		// Return the cloned set
5756		return clone;
5757	},
5758
5759	buildFragment: function( elems, context, scripts, selection ) {
5760		var elem, tmp, tag, wrap, contains, j,
5761			i = 0,
5762			l = elems.length,
5763			fragment = context.createDocumentFragment(),
5764			nodes = [];
5765
5766		for ( ; i < l; i++ ) {
5767			elem = elems[ i ];
5768
5769			if ( elem || elem === 0 ) {
5770
5771				// Add nodes directly
5772				if ( jQuery.type( elem ) === "object" ) {
5773					// Support: QtWebKit
5774					// jQuery.merge because core_push.apply(_, arraylike) throws
5775					jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );
5776
5777				// Convert non-html into a text node
5778				} else if ( !rhtml.test( elem ) ) {
5779					nodes.push( context.createTextNode( elem ) );
5780
5781				// Convert html into DOM nodes
5782				} else {
5783					tmp = tmp || fragment.appendChild( context.createElement("div") );
5784
5785					// Deserialize a standard representation
5786					tag = ( rtagName.exec( elem ) || ["", ""] )[ 1 ].toLowerCase();
5787					wrap = wrapMap[ tag ] || wrapMap._default;
5788					tmp.innerHTML = wrap[ 1 ] + elem.replace( rxhtmlTag, "<$1></$2>" ) + wrap[ 2 ];
5789
5790					// Descend through wrappers to the right content
5791					j = wrap[ 0 ];
5792					while ( j-- ) {
5793						tmp = tmp.lastChild;
5794					}
5795
5796					// Support: QtWebKit
5797					// jQuery.merge because core_push.apply(_, arraylike) throws
5798					jQuery.merge( nodes, tmp.childNodes );
5799
5800					// Remember the top-level container
5801					tmp = fragment.firstChild;
5802
5803					// Fixes #12346
5804					// Support: Webkit, IE
5805					tmp.textContent = "";
5806				}
5807			}
5808		}
5809
5810		// Remove wrapper from fragment
5811		fragment.textContent = "";
5812
5813		i = 0;
5814		while ( (elem = nodes[ i++ ]) ) {
5815
5816			// #4087 - If origin and destination elements are the same, and this is
5817			// that element, do not do anything
5818			if ( selection && jQuery.inArray( elem, selection ) !== -1 ) {
5819				continue;
5820			}
5821
5822			contains = jQuery.contains( elem.ownerDocument, elem );
5823
5824			// Append to fragment
5825			tmp = getAll( fragment.appendChild( elem ), "script" );
5826
5827			// Preserve script evaluation history
5828			if ( contains ) {
5829				setGlobalEval( tmp );
5830			}
5831
5832			// Capture executables
5833			if ( scripts ) {
5834				j = 0;
5835				while ( (elem = tmp[ j++ ]) ) {
5836					if ( rscriptType.test( elem.type || "" ) ) {
5837						scripts.push( elem );
5838					}
5839				}
5840			}
5841		}
5842
5843		return fragment;
5844	},
5845
5846	cleanData: function( elems ) {
5847		var data, elem, events, type, key, j,
5848			special = jQuery.event.special,
5849			i = 0;
5850
5851		for ( ; (elem = elems[ i ]) !== undefined; i++ ) {
5852			if ( Data.accepts( elem ) ) {
5853				key = elem[ data_priv.expando ];
5854
5855				if ( key && (data = data_priv.cache[ key ]) ) {
5856					events = Object.keys( data.events || {} );
5857					if ( events.length ) {
5858						for ( j = 0; (type = events[j]) !== undefined; j++ ) {
5859							if ( special[ type ] ) {
5860								jQuery.event.remove( elem, type );
5861
5862							// This is a shortcut to avoid jQuery.event.remove's overhead
5863							} else {
5864								jQuery.removeEvent( elem, type, data.handle );
5865							}
5866						}
5867					}
5868					if ( data_priv.cache[ key ] ) {
5869						// Discard any remaining `private` data
5870						delete data_priv.cache[ key ];
5871					}
5872				}
5873			}
5874			// Discard any remaining `user` data
5875			delete data_user.cache[ elem[ data_user.expando ] ];
5876		}
5877	},
5878
5879	_evalUrl: function( url ) {
5880		return jQuery.ajax({
5881			url: url,
5882			type: "GET",
5883			dataType: "script",
5884			async: false,
5885			global: false,
5886			"throws": true
5887		});
5888	}
5889});
5890
5891// Support: 1.x compatibility
5892// Manipulating tables requires a tbody
5893function manipulationTarget( elem, content ) {
5894	return jQuery.nodeName( elem, "table" ) &&
5895		jQuery.nodeName( content.nodeType === 1 ? content : content.firstChild, "tr" ) ?
5896
5897		elem.getElementsByTagName("tbody")[0] ||
5898			elem.appendChild( elem.ownerDocument.createElement("tbody") ) :
5899		elem;
5900}
5901
5902// Replace/restore the type attribute of script elements for safe DOM manipulation
5903function disableScript( elem ) {
5904	elem.type = (elem.getAttribute("type") !== null) + "/" + elem.type;
5905	return elem;
5906}
5907function restoreScript( elem ) {
5908	var match = rscriptTypeMasked.exec( elem.type );
5909
5910	if ( match ) {
5911		elem.type = match[ 1 ];
5912	} else {
5913		elem.removeAttribute("type");
5914	}
5915
5916	return elem;
5917}
5918
5919// Mark scripts as having already been evaluated
5920function setGlobalEval( elems, refElements ) {
5921	var l = elems.length,
5922		i = 0;
5923
5924	for ( ; i < l; i++ ) {
5925		data_priv.set(
5926			elems[ i ], "globalEval", !refElements || data_priv.get( refElements[ i ], "globalEval" )
5927		);
5928	}
5929}
5930
5931function cloneCopyEvent( src, dest ) {
5932	var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events;
5933
5934	if ( dest.nodeType !== 1 ) {
5935		return;
5936	}
5937
5938	// 1. Copy private data: events, handlers, etc.
5939	if ( data_priv.hasData( src ) ) {
5940		pdataOld = data_priv.access( src );
5941		pdataCur = data_priv.set( dest, pdataOld );
5942		events = pdataOld.events;
5943
5944		if ( events ) {
5945			delete pdataCur.handle;
5946			pdataCur.events = {};
5947
5948			for ( type in events ) {
5949				for ( i = 0, l = events[ type ].length; i < l; i++ ) {
5950					jQuery.event.add( dest, type, events[ type ][ i ] );
5951				}
5952			}
5953		}
5954	}
5955
5956	// 2. Copy user data
5957	if ( data_user.hasData( src ) ) {
5958		udataOld = data_user.access( src );
5959		udataCur = jQuery.extend( {}, udataOld );
5960
5961		data_user.set( dest, udataCur );
5962	}
5963}
5964
5965
5966function getAll( context, tag ) {
5967	var ret = context.getElementsByTagName ? context.getElementsByTagName( tag || "*" ) :
5968			context.querySelectorAll ? context.querySelectorAll( tag || "*" ) :
5969			[];
5970
5971	return tag === undefined || tag && jQuery.nodeName( context, tag ) ?
5972		jQuery.merge( [ context ], ret ) :
5973		ret;
5974}
5975
5976// Support: IE >= 9
5977function fixInput( src, dest ) {
5978	var nodeName = dest.nodeName.toLowerCase();
5979
5980	// Fails to persist the checked state of a cloned checkbox or radio button.
5981	if ( nodeName === "input" && manipulation_rcheckableType.test( src.type ) ) {
5982		dest.checked = src.checked;
5983
5984	// Fails to return the selected option to the default selected state when cloning options
5985	} else if ( nodeName === "input" || nodeName === "textarea" ) {
5986		dest.defaultValue = src.defaultValue;
5987	}
5988}
5989jQuery.fn.extend({
5990	wrapAll: function( html ) {
5991		var wrap;
5992
5993		if ( jQuery.isFunction( html ) ) {
5994			return this.each(function( i ) {
5995				jQuery( this ).wrapAll( html.call(this, i) );
5996			});
5997		}
5998
5999		if ( this[ 0 ] ) {
6000
6001			// The elements to wrap the target around
6002			wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true );
6003
6004			if ( this[ 0 ].parentNode ) {
6005				wrap.insertBefore( this[ 0 ] );
6006			}
6007
6008			wrap.map(function() {
6009				var elem = this;
6010
6011				while ( elem.firstElementChild ) {
6012					elem = elem.firstElementChild;
6013				}
6014
6015				return elem;
6016			}).append( this );
6017		}
6018
6019		return this;
6020	},
6021
6022	wrapInner: function( html ) {
6023		if ( jQuery.isFunction( html ) ) {
6024			return this.each(function( i ) {
6025				jQuery( this ).wrapInner( html.call(this, i) );
6026			});
6027		}
6028
6029		return this.each(function() {
6030			var self = jQuery( this ),
6031				contents = self.contents();
6032
6033			if ( contents.length ) {
6034				contents.wrapAll( html );
6035
6036			} else {
6037				self.append( html );
6038			}
6039		});
6040	},
6041
6042	wrap: function( html ) {
6043		var isFunction = jQuery.isFunction( html );
6044
6045		return this.each(function( i ) {
6046			jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );
6047		});
6048	},
6049
6050	unwrap: function() {
6051		return this.parent().each(function() {
6052			if ( !jQuery.nodeName( this, "body" ) ) {
6053				jQuery( this ).replaceWith( this.childNodes );
6054			}
6055		}).end();
6056	}
6057});
6058var curCSS, iframe,
6059	// swappable if display is none or starts with table except "table", "table-cell", or "table-caption"
6060	// see here for display values: https://developer.mozilla.org/en-US/docs/CSS/display
6061	rdisplayswap = /^(none|table(?!-c[ea]).+)/,
6062	rmargin = /^margin/,
6063	rnumsplit = new RegExp( "^(" + core_pnum + ")(.*)$", "i" ),
6064	rnumnonpx = new RegExp( "^(" + core_pnum + ")(?!px)[a-z%]+$", "i" ),
6065	rrelNum = new RegExp( "^([+-])=(" + core_pnum + ")", "i" ),
6066	elemdisplay = { BODY: "block" },
6067
6068	cssShow = { position: "absolute", visibility: "hidden", display: "block" },
6069	cssNormalTransform = {
6070		letterSpacing: 0,
6071		fontWeight: 400
6072	},
6073
6074	cssExpand = [ "Top", "Right", "Bottom", "Left" ],
6075	cssPrefixes = [ "Webkit", "O", "Moz", "ms" ];
6076
6077// return a css property mapped to a potentially vendor prefixed property
6078function vendorPropName( style, name ) {
6079
6080	// shortcut for names that are not vendor prefixed
6081	if ( name in style ) {
6082		return name;
6083	}
6084
6085	// check for vendor prefixed names
6086	var capName = name.charAt(0).toUpperCase() + name.slice(1),
6087		origName = name,
6088		i = cssPrefixes.length;
6089
6090	while ( i-- ) {
6091		name = cssPrefixes[ i ] + capName;
6092		if ( name in style ) {
6093			return name;
6094		}
6095	}
6096
6097	return origName;
6098}
6099
6100function isHidden( elem, el ) {
6101	// isHidden might be called from jQuery#filter function;
6102	// in that case, element will be second argument
6103	elem = el || elem;
6104	return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem );
6105}
6106
6107// NOTE: we've included the "window" in window.getComputedStyle
6108// because jsdom on node.js will break without it.
6109function getStyles( elem ) {
6110	return window.getComputedStyle( elem, null );
6111}
6112
6113function showHide( elements, show ) {
6114	var display, elem, hidden,
6115		values = [],
6116		index = 0,
6117		length = elements.length;
6118
6119	for ( ; index < length; index++ ) {
6120		elem = elements[ index ];
6121		if ( !elem.style ) {
6122			continue;
6123		}
6124
6125		values[ index ] = data_priv.get( elem, "olddisplay" );
6126		display = elem.style.display;
6127		if ( show ) {
6128			// Reset the inline display of this element to learn if it is
6129			// being hidden by cascaded rules or not
6130			if ( !values[ index ] && display === "none" ) {
6131				elem.style.display = "";
6132			}
6133
6134			// Set elements which have been overridden with display: none
6135			// in a stylesheet to whatever the default browser style is
6136			// for such an element
6137			if ( elem.style.display === "" && isHidden( elem ) ) {
6138				values[ index ] = data_priv.access( elem, "olddisplay", css_defaultDisplay(elem.nodeName) );
6139			}
6140		} else {
6141
6142			if ( !values[ index ] ) {
6143				hidden = isHidden( elem );
6144
6145				if ( display && display !== "none" || !hidden ) {
6146					data_priv.set( elem, "olddisplay", hidden ? display : jQuery.css(elem, "display") );
6147				}
6148			}
6149		}
6150	}
6151
6152	// Set the display of most of the elements in a second loop
6153	// to avoid the constant reflow
6154	for ( index = 0; index < length; index++ ) {
6155		elem = elements[ index ];
6156		if ( !elem.style ) {
6157			continue;
6158		}
6159		if ( !show || elem.style.display === "none" || elem.style.display === "" ) {
6160			elem.style.display = show ? values[ index ] || "" : "none";
6161		}
6162	}
6163
6164	return elements;
6165}
6166
6167jQuery.fn.extend({
6168	css: function( name, value ) {
6169		return jQuery.access( this, function( elem, name, value ) {
6170			var styles, len,
6171				map = {},
6172				i = 0;
6173
6174			if ( jQuery.isArray( name ) ) {
6175				styles = getStyles( elem );
6176				len = name.length;
6177
6178				for ( ; i < len; i++ ) {
6179					map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );
6180				}
6181
6182				return map;
6183			}
6184
6185			return value !== undefined ?
6186				jQuery.style( elem, name, value ) :
6187				jQuery.css( elem, name );
6188		}, name, value, arguments.length > 1 );
6189	},
6190	show: function() {
6191		return showHide( this, true );
6192	},
6193	hide: function() {
6194		return showHide( this );
6195	},
6196	toggle: function( state ) {
6197		if ( typeof state === "boolean" ) {
6198			return state ? this.show() : this.hide();
6199		}
6200
6201		return this.each(function() {
6202			if ( isHidden( this ) ) {
6203				jQuery( this ).show();
6204			} else {
6205				jQuery( this ).hide();
6206			}
6207		});
6208	}
6209});
6210
6211jQuery.extend({
6212	// Add in style property hooks for overriding the default
6213	// behavior of getting and setting a style property
6214	cssHooks: {
6215		opacity: {
6216			get: function( elem, computed ) {
6217				if ( computed ) {
6218					// We should always get a number back from opacity
6219					var ret = curCSS( elem, "opacity" );
6220					return ret === "" ? "1" : ret;
6221				}
6222			}
6223		}
6224	},
6225
6226	// Don't automatically add "px" to these possibly-unitless properties
6227	cssNumber: {
6228		"columnCount": true,
6229		"fillOpacity": true,
6230		"fontWeight": true,
6231		"lineHeight": true,
6232		"opacity": true,
6233		"order": true,
6234		"orphans": true,
6235		"widows": true,
6236		"zIndex": true,
6237		"zoom": true
6238	},
6239
6240	// Add in properties whose names you wish to fix before
6241	// setting or getting the value
6242	cssProps: {
6243		// normalize float css property
6244		"float": "cssFloat"
6245	},
6246
6247	// Get and set the style property on a DOM Node
6248	style: function( elem, name, value, extra ) {
6249		// Don't set styles on text and comment nodes
6250		if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
6251			return;
6252		}
6253
6254		// Make sure that we're working with the right name
6255		var ret, type, hooks,
6256			origName = jQuery.camelCase( name ),
6257			style = elem.style;
6258
6259		name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( style, origName ) );
6260
6261		// gets hook for the prefixed version
6262		// followed by the unprefixed version
6263		hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
6264
6265		// Check if we're setting a value
6266		if ( value !== undefined ) {
6267			type = typeof value;
6268
6269			// convert relative number strings (+= or -=) to relative numbers. #7345
6270			if ( type === "string" && (ret = rrelNum.exec( value )) ) {
6271				value = ( ret[1] + 1 ) * ret[2] + parseFloat( jQuery.css( elem, name ) );
6272				// Fixes bug #9237
6273				type = "number";
6274			}
6275
6276			// Make sure that NaN and null values aren't set. See: #7116
6277			if ( value == null || type === "number" && isNaN( value ) ) {
6278				return;
6279			}
6280
6281			// If a number was passed in, add 'px' to the (except for certain CSS properties)
6282			if ( type === "number" && !jQuery.cssNumber[ origName ] ) {
6283				value += "px";
6284			}
6285
6286			// Fixes #8908, it can be done more correctly by specifying setters in cssHooks,
6287			// but it would mean to define eight (for every problematic property) identical functions
6288			if ( !jQuery.support.clearCloneStyle && value === "" && name.indexOf("background") === 0 ) {
6289				style[ name ] = "inherit";
6290			}
6291
6292			// If a hook was provided, use that value, otherwise just set the specified value
6293			if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) {
6294				style[ name ] = value;
6295			}
6296
6297		} else {
6298			// If a hook was provided get the non-computed value from there
6299			if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {
6300				return ret;
6301			}
6302
6303			// Otherwise just get the value from the style object
6304			return style[ name ];
6305		}
6306	},
6307
6308	css: function( elem, name, extra, styles ) {
6309		var val, num, hooks,
6310			origName = jQuery.camelCase( name );
6311
6312		// Make sure that we're working with the right name
6313		name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( elem.style, origName ) );
6314
6315		// gets hook for the prefixed version
6316		// followed by the unprefixed version
6317		hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
6318
6319		// If a hook was provided get the computed value from there
6320		if ( hooks && "get" in hooks ) {
6321			val = hooks.get( elem, true, extra );
6322		}
6323
6324		// Otherwise, if a way to get the computed value exists, use that
6325		if ( val === undefined ) {
6326			val = curCSS( elem, name, styles );
6327		}
6328
6329		//convert "normal" to computed value
6330		if ( val === "normal" && name in cssNormalTransform ) {
6331			val = cssNormalTransform[ name ];
6332		}
6333
6334		// Return, converting to number if forced or a qualifier was provided and val looks numeric
6335		if ( extra === "" || extra ) {
6336			num = parseFloat( val );
6337			return extra === true || jQuery.isNumeric( num ) ? num || 0 : val;
6338		}
6339		return val;
6340	}
6341});
6342
6343curCSS = function( elem, name, _computed ) {
6344	var width, minWidth, maxWidth,
6345		computed = _computed || getStyles( elem ),
6346
6347		// Support: IE9
6348		// getPropertyValue is only needed for .css('filter') in IE9, see #12537
6349		ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined,
6350		style = elem.style;
6351
6352	if ( computed ) {
6353
6354		if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) {
6355			ret = jQuery.style( elem, name );
6356		}
6357
6358		// Support: Safari 5.1
6359		// A tribute to the "awesome hack by Dean Edwards"
6360		// Safari 5.1.7 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels
6361		// this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values
6362		if ( rnumnonpx.test( ret ) && rmargin.test( name ) ) {
6363
6364			// Remember the original values
6365			width = style.width;
6366			minWidth = style.minWidth;
6367			maxWidth = style.maxWidth;
6368
6369			// Put in the new values to get a computed value out
6370			style.minWidth = style.maxWidth = style.width = ret;
6371			ret = computed.width;
6372
6373			// Revert the changed values
6374			style.width = width;
6375			style.minWidth = minWidth;
6376			style.maxWidth = maxWidth;
6377		}
6378	}
6379
6380	return ret;
6381};
6382
6383
6384function setPositiveNumber( elem, value, subtract ) {
6385	var matches = rnumsplit.exec( value );
6386	return matches ?
6387		// Guard against undefined "subtract", e.g., when used as in cssHooks
6388		Math.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || "px" ) :
6389		value;
6390}
6391
6392function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
6393	var i = extra === ( isBorderBox ? "border" : "content" ) ?
6394		// If we already have the right measurement, avoid augmentation
6395		4 :
6396		// Otherwise initialize for horizontal or vertical properties
6397		name === "width" ? 1 : 0,
6398
6399		val = 0;
6400
6401	for ( ; i < 4; i += 2 ) {
6402		// both box models exclude margin, so add it if we want it
6403		if ( extra === "margin" ) {
6404			val += jQuery.css( elem, extra + cssExpand[ i ], true, styles );
6405		}
6406
6407		if ( isBorderBox ) {
6408			// border-box includes padding, so remove it if we want content
6409			if ( extra === "content" ) {
6410				val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
6411			}
6412
6413			// at this point, extra isn't border nor margin, so remove border
6414			if ( extra !== "margin" ) {
6415				val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
6416			}
6417		} else {
6418			// at this point, extra isn't content, so add padding
6419			val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
6420
6421			// at this point, extra isn't content nor padding, so add border
6422			if ( extra !== "padding" ) {
6423				val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
6424			}
6425		}
6426	}
6427
6428	return val;
6429}
6430
6431function getWidthOrHeight( elem, name, extra ) {
6432
6433	// Start with offset property, which is equivalent to the border-box value
6434	var valueIsBorderBox = true,
6435		val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
6436		styles = getStyles( elem ),
6437		isBorderBox = jQuery.support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
6438
6439	// some non-html elements return undefined for offsetWidth, so check for null/undefined
6440	// svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285
6441	// MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668
6442	if ( val <= 0 || val == null ) {
6443		// Fall back to computed then uncomputed css if necessary
6444		val = curCSS( elem, name, styles );
6445		if ( val < 0 || val == null ) {
6446			val = elem.style[ name ];
6447		}
6448
6449		// Computed unit is not pixels. Stop here and return.
6450		if ( rnumnonpx.test(val) ) {
6451			return val;
6452		}
6453
6454		// we need the check for style in case a browser which returns unreliable values
6455		// for getComputedStyle silently falls back to the reliable elem.style
6456		valueIsBorderBox = isBorderBox && ( jQuery.support.boxSizingReliable || val === elem.style[ name ] );
6457
6458		// Normalize "", auto, and prepare for extra
6459		val = parseFloat( val ) || 0;
6460	}
6461
6462	// use the active box-sizing model to add/subtract irrelevant styles
6463	return ( val +
6464		augmentWidthOrHeight(
6465			elem,
6466			name,
6467			extra || ( isBorderBox ? "border" : "content" ),
6468			valueIsBorderBox,
6469			styles
6470		)
6471	) + "px";
6472}
6473
6474// Try to determine the default display value of an element
6475function css_defaultDisplay( nodeName ) {
6476	var doc = document,
6477		display = elemdisplay[ nodeName ];
6478
6479	if ( !display ) {
6480		display = actualDisplay( nodeName, doc );
6481
6482		// If the simple way fails, read from inside an iframe
6483		if ( display === "none" || !display ) {
6484			// Use the already-created iframe if possible
6485			iframe = ( iframe ||
6486				jQuery("<iframe frameborder='0' width='0' height='0'/>")
6487				.css( "cssText", "display:block !important" )
6488			).appendTo( doc.documentElement );
6489
6490			// Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse
6491			doc = ( iframe[0].contentWindow || iframe[0].contentDocument ).document;
6492			doc.write("<!doctype html><html><body>");
6493			doc.close();
6494
6495			display = actualDisplay( nodeName, doc );
6496			iframe.detach();
6497		}
6498
6499		// Store the correct default display
6500		elemdisplay[ nodeName ] = display;
6501	}
6502
6503	return display;
6504}
6505
6506// Called ONLY from within css_defaultDisplay
6507function actualDisplay( name, doc ) {
6508	var elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ),
6509		display = jQuery.css( elem[0], "display" );
6510	elem.remove();
6511	return display;
6512}
6513
6514jQuery.each([ "height", "width" ], function( i, name ) {
6515	jQuery.cssHooks[ name ] = {
6516		get: function( elem, computed, extra ) {
6517			if ( computed ) {
6518				// certain elements can have dimension info if we invisibly show them
6519				// however, it must have a current display style that would benefit from this
6520				return elem.offsetWidth === 0 && rdisplayswap.test( jQuery.css( elem, "display" ) ) ?
6521					jQuery.swap( elem, cssShow, function() {
6522						return getWidthOrHeight( elem, name, extra );
6523					}) :
6524					getWidthOrHeight( elem, name, extra );
6525			}
6526		},
6527
6528		set: function( elem, value, extra ) {
6529			var styles = extra && getStyles( elem );
6530			return setPositiveNumber( elem, value, extra ?
6531				augmentWidthOrHeight(
6532					elem,
6533					name,
6534					extra,
6535					jQuery.support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
6536					styles
6537				) : 0
6538			);
6539		}
6540	};
6541});
6542
6543// These hooks cannot be added until DOM ready because the support test
6544// for it is not run until after DOM ready
6545jQuery(function() {
6546	// Support: Android 2.3
6547	if ( !jQuery.support.reliableMarginRight ) {
6548		jQuery.cssHooks.marginRight = {
6549			get: function( elem, computed ) {
6550				if ( computed ) {
6551					// Support: Android 2.3
6552					// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
6553					// Work around by temporarily setting element display to inline-block
6554					return jQuery.swap( elem, { "display": "inline-block" },
6555						curCSS, [ elem, "marginRight" ] );
6556				}
6557			}
6558		};
6559	}
6560
6561	// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
6562	// getComputedStyle returns percent when specified for top/left/bottom/right
6563	// rather than make the css module depend on the offset module, we just check for it here
6564	if ( !jQuery.support.pixelPosition && jQuery.fn.position ) {
6565		jQuery.each( [ "top", "left" ], function( i, prop ) {
6566			jQuery.cssHooks[ prop ] = {
6567				get: function( elem, computed ) {
6568					if ( computed ) {
6569						computed = curCSS( elem, prop );
6570						// if curCSS returns percentage, fallback to offset
6571						return rnumnonpx.test( computed ) ?
6572							jQuery( elem ).position()[ prop ] + "px" :
6573							computed;
6574					}
6575				}
6576			};
6577		});
6578	}
6579
6580});
6581
6582if ( jQuery.expr && jQuery.expr.filters ) {
6583	jQuery.expr.filters.hidden = function( elem ) {
6584		// Support: Opera <= 12.12
6585		// Opera reports offsetWidths and offsetHeights less than zero on some elements
6586		return elem.offsetWidth <= 0 && elem.offsetHeight <= 0;
6587	};
6588
6589	jQuery.expr.filters.visible = function( elem ) {
6590		return !jQuery.expr.filters.hidden( elem );
6591	};
6592}
6593
6594// These hooks are used by animate to expand properties
6595jQuery.each({
6596	margin: "",
6597	padding: "",
6598	border: "Width"
6599}, function( prefix, suffix ) {
6600	jQuery.cssHooks[ prefix + suffix ] = {
6601		expand: function( value ) {
6602			var i = 0,
6603				expanded = {},
6604
6605				// assumes a single number if not a string
6606				parts = typeof value === "string" ? value.split(" ") : [ value ];
6607
6608			for ( ; i < 4; i++ ) {
6609				expanded[ prefix + cssExpand[ i ] + suffix ] =
6610					parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
6611			}
6612
6613			return expanded;
6614		}
6615	};
6616
6617	if ( !rmargin.test( prefix ) ) {
6618		jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;
6619	}
6620});
6621var r20 = /%20/g,
6622	rbracket = /\[\]$/,
6623	rCRLF = /\r?\n/g,
6624	rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
6625	rsubmittable = /^(?:input|select|textarea|keygen)/i;
6626
6627jQuery.fn.extend({
6628	serialize: function() {
6629		return jQuery.param( this.serializeArray() );
6630	},
6631	serializeArray: function() {
6632		return this.map(function(){
6633			// Can add propHook for "elements" to filter or add form elements
6634			var elements = jQuery.prop( this, "elements" );
6635			return elements ? jQuery.makeArray( elements ) : this;
6636		})
6637		.filter(function(){
6638			var type = this.type;
vendor: 4,305 bytes, lines 6639-6775
6639			// Use .is(":disabled") so that fieldset[disabled] works
6640			return this.name && !jQuery( this ).is( ":disabled" ) &&
6641				rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
6642				( this.checked || !manipulation_rcheckableType.test( type ) );
6643		})
6644		.map(function( i, elem ){
6645			var val = jQuery( this ).val();
6646
6647			return val == null ?
6648				null :
6649				jQuery.isArray( val ) ?
6650					jQuery.map( val, function( val ){
6651						return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
6652					}) :
6653					{ name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
6654		}).get();
6655	}
6656});
6657
6658//Serialize an array of form elements or a set of
6659//key/values into a query string
6660jQuery.param = function( a, traditional ) {
6661	var prefix,
6662		s = [],
6663		add = function( key, value ) {
6664			// If value is a function, invoke it and return its value
6665			value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value );
6666			s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
6667		};
6668
6669	// Set traditional to true for jQuery <= 1.3.2 behavior.
6670	if ( traditional === undefined ) {
6671		traditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional;
6672	}
6673
6674	// If an array was passed in, assume that it is an array of form elements.
6675	if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
6676		// Serialize the form elements
6677		jQuery.each( a, function() {
6678			add( this.name, this.value );
6679		});
6680
6681	} else {
6682		// If traditional, encode the "old" way (the way 1.3.2 or older
6683		// did it), otherwise encode params recursively.
6684		for ( prefix in a ) {
6685			buildParams( prefix, a[ prefix ], traditional, add );
6686		}
6687	}
6688
6689	// Return the resulting serialization
6690	return s.join( "&" ).replace( r20, "+" );
6691};
6692
6693function buildParams( prefix, obj, traditional, add ) {
6694	var name;
6695
6696	if ( jQuery.isArray( obj ) ) {
6697		// Serialize array item.
6698		jQuery.each( obj, function( i, v ) {
6699			if ( traditional || rbracket.test( prefix ) ) {
6700				// Treat each array item as a scalar.
6701				add( prefix, v );
6702
6703			} else {
6704				// Item is non-scalar (array or object), encode its numeric index.
6705				buildParams( prefix + "[" + ( typeof v === "object" ? i : "" ) + "]", v, traditional, add );
6706			}
6707		});
6708
6709	} else if ( !traditional && jQuery.type( obj ) === "object" ) {
6710		// Serialize object item.
6711		for ( name in obj ) {
6712			buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
6713		}
6714
6715	} else {
6716		// Serialize scalar item.
6717		add( prefix, obj );
6718	}
6719}
6720jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
6721	"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
6722	"change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) {
6723
6724	// Handle event binding
6725	jQuery.fn[ name ] = function( data, fn ) {
6726		return arguments.length > 0 ?
6727			this.on( name, null, data, fn ) :
6728			this.trigger( name );
6729	};
6730});
6731
6732jQuery.fn.extend({
6733	hover: function( fnOver, fnOut ) {
6734		return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
6735	},
6736
6737	bind: function( types, data, fn ) {
6738		return this.on( types, null, data, fn );
6739	},
6740	unbind: function( types, fn ) {
6741		return this.off( types, null, fn );
6742	},
6743
6744	delegate: function( selector, types, data, fn ) {
6745		return this.on( types, selector, data, fn );
6746	},
6747	undelegate: function( selector, types, fn ) {
6748		// ( namespace ) or ( selector, types [, fn] )
6749		return arguments.length === 1 ? this.off( selector, "**" ) : this.off( types, selector || "**", fn );
6750	}
6751});
6752var
6753	// Document location
6754	ajaxLocParts,
6755	ajaxLocation,
6756
6757	ajax_nonce = jQuery.now(),
6758
6759	ajax_rquery = /\?/,
6760	rhash = /#.*$/,
6761	rts = /([?&])_=[^&]*/,
6762	rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg,
6763	// #7653, #8125, #8152: local protocol detection
6764	rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
6765	rnoContent = /^(?:GET|HEAD)$/,
6766	rprotocol = /^\/\//,
6767	rurl = /^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,
6768
6769	// Keep a copy of the old load method
6770	_load = jQuery.fn.load,
6771
6772	/* Prefilters
6773	 * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
6774	 * 2) These are called:
6775	 *    - BEFORE asking for a transport
vendor: 4,791 bytes, lines 6776-6939
6776	 *    - AFTER param serialization (s.data is a string if s.processData is true)
6777	 * 3) key is the dataType
6778	 * 4) the catchall symbol "*" can be used
6779	 * 5) execution will start with transport dataType and THEN continue down to "*" if needed
6780	 */
6781	prefilters = {},
6782
6783	/* Transports bindings
6784	 * 1) key is the dataType
6785	 * 2) the catchall symbol "*" can be used
6786	 * 3) selection will start with transport dataType and THEN go to "*" if needed
6787	 */
6788	transports = {},
6789
6790	// Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
6791	allTypes = "*/".concat("*");
6792
6793// #8138, IE may throw an exception when accessing
6794// a field from window.location if document.domain has been set
6795try {
6796	ajaxLocation = location.href;
6797} catch( e ) {
6798	// Use the href attribute of an A element
6799	// since IE will modify it given document.location
6800	ajaxLocation = document.createElement( "a" );
6801	ajaxLocation.href = "";
6802	ajaxLocation = ajaxLocation.href;
6803}
6804
6805// Segment location into parts
6806ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];
6807
6808// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
6809function addToPrefiltersOrTransports( structure ) {
6810
6811	// dataTypeExpression is optional and defaults to "*"
6812	return function( dataTypeExpression, func ) {
6813
6814		if ( typeof dataTypeExpression !== "string" ) {
6815			func = dataTypeExpression;
6816			dataTypeExpression = "*";
6817		}
6818
6819		var dataType,
6820			i = 0,
6821			dataTypes = dataTypeExpression.toLowerCase().match( core_rnotwhite ) || [];
6822
6823		if ( jQuery.isFunction( func ) ) {
6824			// For each dataType in the dataTypeExpression
6825			while ( (dataType = dataTypes[i++]) ) {
6826				// Prepend if requested
6827				if ( dataType[0] === "+" ) {
6828					dataType = dataType.slice( 1 ) || "*";
6829					(structure[ dataType ] = structure[ dataType ] || []).unshift( func );
6830
6831				// Otherwise append
6832				} else {
6833					(structure[ dataType ] = structure[ dataType ] || []).push( func );
6834				}
6835			}
6836		}
6837	};
6838}
6839
6840// Base inspection function for prefilters and transports
6841function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {
6842
6843	var inspected = {},
6844		seekingTransport = ( structure === transports );
6845
6846	function inspect( dataType ) {
6847		var selected;
6848		inspected[ dataType ] = true;
6849		jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {
6850			var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );
6851			if( typeof dataTypeOrTransport === "string" && !seekingTransport && !inspected[ dataTypeOrTransport ] ) {
6852				options.dataTypes.unshift( dataTypeOrTransport );
6853				inspect( dataTypeOrTransport );
6854				return false;
6855			} else if ( seekingTransport ) {
6856				return !( selected = dataTypeOrTransport );
6857			}
6858		});
6859		return selected;
6860	}
6861
6862	return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" );
6863}
6864
6865// A special extend for ajax options
6866// that takes "flat" options (not to be deep extended)
6867// Fixes #9887
6868function ajaxExtend( target, src ) {
6869	var key, deep,
6870		flatOptions = jQuery.ajaxSettings.flatOptions || {};
6871
6872	for ( key in src ) {
6873		if ( src[ key ] !== undefined ) {
6874			( flatOptions[ key ] ? target : ( deep || (deep = {}) ) )[ key ] = src[ key ];
6875		}
6876	}
6877	if ( deep ) {
6878		jQuery.extend( true, target, deep );
6879	}
6880
6881	return target;
6882}
6883
6884jQuery.fn.load = function( url, params, callback ) {
6885	if ( typeof url !== "string" && _load ) {
6886		return _load.apply( this, arguments );
6887	}
6888
6889	var selector, type, response,
6890		self = this,
6891		off = url.indexOf(" ");
6892
6893	if ( off >= 0 ) {
6894		selector = url.slice( off );
6895		url = url.slice( 0, off );
6896	}
6897
6898	// If it's a function
6899	if ( jQuery.isFunction( params ) ) {
6900
6901		// We assume that it's the callback
6902		callback = params;
6903		params = undefined;
6904
6905	// Otherwise, build a param string
6906	} else if ( params && typeof params === "object" ) {
6907		type = "POST";
6908	}
6909
6910	// If we have elements to modify, make the request
6911	if ( self.length > 0 ) {
6912		jQuery.ajax({
6913			url: url,
6914
6915			// if "type" variable is undefined, then "GET" method will be used
6916			type: type,
6917			dataType: "html",
6918			data: params
6919		}).done(function( responseText ) {
6920
6921			// Save response for use in complete callback
6922			response = arguments;
6923
6924			self.html( selector ?
6925
6926				// If a selector was specified, locate the right elements in a dummy div
6927				// Exclude scripts to avoid IE 'Permission Denied' errors
6928				jQuery("<div>").append( jQuery.parseHTML( responseText ) ).find( selector ) :
6929
6930				// Otherwise use the full result
6931				responseText );
6932
6933		}).complete( callback && function( jqXHR, status ) {
6934			self.each( callback, response || [ jqXHR.responseText, status, jqXHR ] );
6935		});
6936	}
6937
6938	return this;
6939};
vendor: 7,774 bytes, lines 6940-7219
6940
6941// Attach a bunch of functions for handling common AJAX events
6942jQuery.each( [ "ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend" ], function( i, type ){
6943	jQuery.fn[ type ] = function( fn ){
6944		return this.on( type, fn );
6945	};
6946});
6947
6948jQuery.extend({
6949
6950	// Counter for holding the number of active queries
6951	active: 0,
6952
6953	// Last-Modified header cache for next request
6954	lastModified: {},
6955	etag: {},
6956
6957	ajaxSettings: {
6958		url: ajaxLocation,
6959		type: "GET",
6960		isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),
6961		global: true,
6962		processData: true,
6963		async: true,
6964		contentType: "application/x-www-form-urlencoded; charset=UTF-8",
6965		/*
6966		timeout: 0,
6967		data: null,
6968		dataType: null,
6969		username: null,
6970		password: null,
6971		cache: null,
6972		throws: false,
6973		traditional: false,
6974		headers: {},
6975		*/
6976
6977		accepts: {
6978			"*": allTypes,
6979			text: "text/plain",
6980			html: "text/html",
6981			xml: "application/xml, text/xml",
6982			json: "application/json, text/javascript"
6983		},
6984
6985		contents: {
6986			xml: /xml/,
6987			html: /html/,
6988			json: /json/
6989		},
6990
6991		responseFields: {
6992			xml: "responseXML",
6993			text: "responseText",
6994			json: "responseJSON"
6995		},
6996
6997		// Data converters
6998		// Keys separate source (or catchall "*") and destination types with a single space
6999		converters: {
7000
7001			// Convert anything to text
7002			"* text": String,
7003
7004			// Text to html (true = no transformation)
7005			"text html": true,
7006
7007			// Evaluate text as a json expression
7008			"text json": jQuery.parseJSON,
7009
7010			// Parse text as xml
7011			"text xml": jQuery.parseXML
7012		},
7013
7014		// For options that shouldn't be deep extended:
7015		// you can add your own custom options here if
7016		// and when you create one that shouldn't be
7017		// deep extended (see ajaxExtend)
7018		flatOptions: {
7019			url: true,
7020			context: true
7021		}
7022	},
7023
7024	// Creates a full fledged settings object into target
7025	// with both ajaxSettings and settings fields.
7026	// If target is omitted, writes into ajaxSettings.
7027	ajaxSetup: function( target, settings ) {
7028		return settings ?
7029
7030			// Building a settings object
7031			ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :
7032
7033			// Extending ajaxSettings
7034			ajaxExtend( jQuery.ajaxSettings, target );
7035	},
7036
7037	ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
7038	ajaxTransport: addToPrefiltersOrTransports( transports ),
7039
7040	// Main method
7041	ajax: function( url, options ) {
7042
7043		// If url is an object, simulate pre-1.5 signature
7044		if ( typeof url === "object" ) {
7045			options = url;
7046			url = undefined;
7047		}
7048
7049		// Force options to be an object
7050		options = options || {};
7051
7052		var transport,
7053			// URL without anti-cache param
7054			cacheURL,
7055			// Response headers
7056			responseHeadersString,
7057			responseHeaders,
7058			// timeout handle
7059			timeoutTimer,
7060			// Cross-domain detection vars
7061			parts,
7062			// To know if global events are to be dispatched
7063			fireGlobals,
7064			// Loop variable
7065			i,
7066			// Create the final options object
7067			s = jQuery.ajaxSetup( {}, options ),
7068			// Callbacks context
7069			callbackContext = s.context || s,
7070			// Context for global events is callbackContext if it is a DOM node or jQuery collection
7071			globalEventContext = s.context && ( callbackContext.nodeType || callbackContext.jquery ) ?
7072				jQuery( callbackContext ) :
7073				jQuery.event,
7074			// Deferreds
7075			deferred = jQuery.Deferred(),
7076			completeDeferred = jQuery.Callbacks("once memory"),
7077			// Status-dependent callbacks
7078			statusCode = s.statusCode || {},
7079			// Headers (they are sent all at once)
7080			requestHeaders = {},
7081			requestHeadersNames = {},
7082			// The jqXHR state
7083			state = 0,
7084			// Default abort message
7085			strAbort = "canceled",
7086			// Fake xhr
7087			jqXHR = {
7088				readyState: 0,
7089
7090				// Builds headers hashtable if needed
7091				getResponseHeader: function( key ) {
7092					var match;
7093					if ( state === 2 ) {
7094						if ( !responseHeaders ) {
7095							responseHeaders = {};
7096							while ( (match = rheaders.exec( responseHeadersString )) ) {
7097								responseHeaders[ match[1].toLowerCase() ] = match[ 2 ];
7098							}
7099						}
7100						match = responseHeaders[ key.toLowerCase() ];
7101					}
7102					return match == null ? null : match;
7103				},
7104
7105				// Raw string
7106				getAllResponseHeaders: function() {
7107					return state === 2 ? responseHeadersString : null;
7108				},
7109
7110				// Caches the header
7111				setRequestHeader: function( name, value ) {
7112					var lname = name.toLowerCase();
7113					if ( !state ) {
7114						name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
7115						requestHeaders[ name ] = value;
7116					}
7117					return this;
7118				},
7119
7120				// Overrides response content-type header
7121				overrideMimeType: function( type ) {
7122					if ( !state ) {
7123						s.mimeType = type;
7124					}
7125					return this;
7126				},
7127
7128				// Status-dependent callbacks
7129				statusCode: function( map ) {
7130					var code;
7131					if ( map ) {
7132						if ( state < 2 ) {
7133							for ( code in map ) {
7134								// Lazy-add the new callback in a way that preserves old ones
7135								statusCode[ code ] = [ statusCode[ code ], map[ code ] ];
7136							}
7137						} else {
7138							// Execute the appropriate callbacks
7139							jqXHR.always( map[ jqXHR.status ] );
7140						}
7141					}
7142					return this;
7143				},
7144
7145				// Cancel the request
7146				abort: function( statusText ) {
7147					var finalText = statusText || strAbort;
7148					if ( transport ) {
7149						transport.abort( finalText );
7150					}
7151					done( 0, finalText );
7152					return this;
7153				}
7154			};
7155
7156		// Attach deferreds
7157		deferred.promise( jqXHR ).complete = completeDeferred.add;
7158		jqXHR.success = jqXHR.done;
7159		jqXHR.error = jqXHR.fail;
7160
7161		// Remove hash character (#7531: and string promotion)
7162		// Add protocol if not provided (prefilters might expect it)
7163		// Handle falsy url in the settings object (#10093: consistency with old signature)
7164		// We also use the url parameter if available
7165		s.url = ( ( url || s.url || ajaxLocation ) + "" ).replace( rhash, "" )
7166			.replace( rprotocol, ajaxLocParts[ 1 ] + "//" );
7167
7168		// Alias method option to type as per ticket #12004
7169		s.type = options.method || options.type || s.method || s.type;
7170
7171		// Extract dataTypes list
7172		s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().match( core_rnotwhite ) || [""];
7173
7174		// A cross-domain request is in order when we have a protocol:host:port mismatch
7175		if ( s.crossDomain == null ) {
7176			parts = rurl.exec( s.url.toLowerCase() );
7177			s.crossDomain = !!( parts &&
7178				( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] ||
7179					( parts[ 3 ] || ( parts[ 1 ] === "http:" ? "80" : "443" ) ) !==
7180						( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? "80" : "443" ) ) )
7181			);
7182		}
7183
7184		// Convert data if not already a string
7185		if ( s.data && s.processData && typeof s.data !== "string" ) {
7186			s.data = jQuery.param( s.data, s.traditional );
7187		}
7188
7189		// Apply prefilters
7190		inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
7191
7192		// If request was aborted inside a prefilter, stop there
7193		if ( state === 2 ) {
7194			return jqXHR;
7195		}
7196
7197		// We can fire global events as of now if asked to
7198		fireGlobals = s.global;
7199
7200		// Watch for a new set of requests
7201		if ( fireGlobals && jQuery.active++ === 0 ) {
7202			jQuery.event.trigger("ajaxStart");
7203		}
7204
7205		// Uppercase the type
7206		s.type = s.type.toUpperCase();
7207
7208		// Determine if request has content
7209		s.hasContent = !rnoContent.test( s.type );
7210
7211		// Save the URL in case we're toying with the If-Modified-Since
7212		// and/or If-None-Match header later on
7213		cacheURL = s.url;
7214
7215		// More options handling for requests with no content
7216		if ( !s.hasContent ) {
7217
7218			// If data is available, append data to url
7219			if ( s.data ) {
vendor: 13,238 bytes, lines 7220-7701
7220				cacheURL = ( s.url += ( ajax_rquery.test( cacheURL ) ? "&" : "?" ) + s.data );
7221				// #9682: remove data so that it's not used in an eventual retry
7222				delete s.data;
7223			}
7224
7225			// Add anti-cache in url if needed
7226			if ( s.cache === false ) {
7227				s.url = rts.test( cacheURL ) ?
7228
7229					// If there is already a '_' parameter, set its value
7230					cacheURL.replace( rts, "$1_=" + ajax_nonce++ ) :
7231
7232					// Otherwise add one to the end
7233					cacheURL + ( ajax_rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ajax_nonce++;
7234			}
7235		}
7236
7237		// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
7238		if ( s.ifModified ) {
7239			if ( jQuery.lastModified[ cacheURL ] ) {
7240				jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] );
7241			}
7242			if ( jQuery.etag[ cacheURL ] ) {
7243				jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] );
7244			}
7245		}
7246
7247		// Set the correct header, if data is being sent
7248		if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
7249			jqXHR.setRequestHeader( "Content-Type", s.contentType );
7250		}
7251
7252		// Set the Accepts header for the server, depending on the dataType
7253		jqXHR.setRequestHeader(
7254			"Accept",
7255			s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?
7256				s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
7257				s.accepts[ "*" ]
7258		);
7259
7260		// Check for headers option
7261		for ( i in s.headers ) {
7262			jqXHR.setRequestHeader( i, s.headers[ i ] );
7263		}
7264
7265		// Allow custom headers/mimetypes and early abort
7266		if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
7267			// Abort if not done already and return
7268			return jqXHR.abort();
7269		}
7270
7271		// aborting is no longer a cancellation
7272		strAbort = "abort";
7273
7274		// Install callbacks on deferreds
7275		for ( i in { success: 1, error: 1, complete: 1 } ) {
7276			jqXHR[ i ]( s[ i ] );
7277		}
7278
7279		// Get transport
7280		transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
7281
7282		// If no transport, we auto-abort
7283		if ( !transport ) {
7284			done( -1, "No Transport" );
7285		} else {
7286			jqXHR.readyState = 1;
7287
7288			// Send global event
7289			if ( fireGlobals ) {
7290				globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
7291			}
7292			// Timeout
7293			if ( s.async && s.timeout > 0 ) {
7294				timeoutTimer = setTimeout(function() {
7295					jqXHR.abort("timeout");
7296				}, s.timeout );
7297			}
7298
7299			try {
7300				state = 1;
7301				transport.send( requestHeaders, done );
7302			} catch ( e ) {
7303				// Propagate exception as error if not done
7304				if ( state < 2 ) {
7305					done( -1, e );
7306				// Simply rethrow otherwise
7307				} else {
7308					throw e;
7309				}
7310			}
7311		}
7312
7313		// Callback for when everything is done
7314		function done( status, nativeStatusText, responses, headers ) {
7315			var isSuccess, success, error, response, modified,
7316				statusText = nativeStatusText;
7317
7318			// Called once
7319			if ( state === 2 ) {
7320				return;
7321			}
7322
7323			// State is "done" now
7324			state = 2;
7325
7326			// Clear timeout if it exists
7327			if ( timeoutTimer ) {
7328				clearTimeout( timeoutTimer );
7329			}
7330
7331			// Dereference transport for early garbage collection
7332			// (no matter how long the jqXHR object will be used)
7333			transport = undefined;
7334
7335			// Cache response headers
7336			responseHeadersString = headers || "";
7337
7338			// Set readyState
7339			jqXHR.readyState = status > 0 ? 4 : 0;
7340
7341			// Determine if successful
7342			isSuccess = status >= 200 && status < 300 || status === 304;
7343
7344			// Get response data
7345			if ( responses ) {
7346				response = ajaxHandleResponses( s, jqXHR, responses );
7347			}
7348
7349			// Convert no matter what (that way responseXXX fields are always set)
7350			response = ajaxConvert( s, response, jqXHR, isSuccess );
7351
7352			// If successful, handle type chaining
7353			if ( isSuccess ) {
7354
7355				// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
7356				if ( s.ifModified ) {
7357					modified = jqXHR.getResponseHeader("Last-Modified");
7358					if ( modified ) {
7359						jQuery.lastModified[ cacheURL ] = modified;
7360					}
7361					modified = jqXHR.getResponseHeader("etag");
7362					if ( modified ) {
7363						jQuery.etag[ cacheURL ] = modified;
7364					}
7365				}
7366
7367				// if no content
7368				if ( status === 204 || s.type === "HEAD" ) {
7369					statusText = "nocontent";
7370
7371				// if not modified
7372				} else if ( status === 304 ) {
7373					statusText = "notmodified";
7374
7375				// If we have data, let's convert it
7376				} else {
7377					statusText = response.state;
7378					success = response.data;
7379					error = response.error;
7380					isSuccess = !error;
7381				}
7382			} else {
7383				// We extract error from statusText
7384				// then normalize statusText and status for non-aborts
7385				error = statusText;
7386				if ( status || !statusText ) {
7387					statusText = "error";
7388					if ( status < 0 ) {
7389						status = 0;
7390					}
7391				}
7392			}
7393
7394			// Set data for the fake xhr object
7395			jqXHR.status = status;
7396			jqXHR.statusText = ( nativeStatusText || statusText ) + "";
7397
7398			// Success/Error
7399			if ( isSuccess ) {
7400				deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
7401			} else {
7402				deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
7403			}
7404
7405			// Status-dependent callbacks
7406			jqXHR.statusCode( statusCode );
7407			statusCode = undefined;
7408
7409			if ( fireGlobals ) {
7410				globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError",
7411					[ jqXHR, s, isSuccess ? success : error ] );
7412			}
7413
7414			// Complete
7415			completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
7416
7417			if ( fireGlobals ) {
7418				globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
7419				// Handle the global AJAX counter
7420				if ( !( --jQuery.active ) ) {
7421					jQuery.event.trigger("ajaxStop");
7422				}
7423			}
7424		}
7425
7426		return jqXHR;
7427	},
7428
7429	getJSON: function( url, data, callback ) {
7430		return jQuery.get( url, data, callback, "json" );
7431	},
7432
7433	getScript: function( url, callback ) {
7434		return jQuery.get( url, undefined, callback, "script" );
7435	}
7436});
7437
7438jQuery.each( [ "get", "post" ], function( i, method ) {
7439	jQuery[ method ] = function( url, data, callback, type ) {
7440		// shift arguments if data argument was omitted
7441		if ( jQuery.isFunction( data ) ) {
7442			type = type || callback;
7443			callback = data;
7444			data = undefined;
7445		}
7446
7447		return jQuery.ajax({
7448			url: url,
7449			type: method,
7450			dataType: type,
7451			data: data,
7452			success: callback
7453		});
7454	};
7455});
7456
7457/* Handles responses to an ajax request:
7458 * - finds the right dataType (mediates between content-type and expected dataType)
7459 * - returns the corresponding response
7460 */
7461function ajaxHandleResponses( s, jqXHR, responses ) {
7462
7463	var ct, type, finalDataType, firstDataType,
7464		contents = s.contents,
7465		dataTypes = s.dataTypes;
7466
7467	// Remove auto dataType and get content-type in the process
7468	while( dataTypes[ 0 ] === "*" ) {
7469		dataTypes.shift();
7470		if ( ct === undefined ) {
7471			ct = s.mimeType || jqXHR.getResponseHeader("Content-Type");
7472		}
7473	}
7474
7475	// Check if we're dealing with a known content-type
7476	if ( ct ) {
7477		for ( type in contents ) {
7478			if ( contents[ type ] && contents[ type ].test( ct ) ) {
7479				dataTypes.unshift( type );
7480				break;
7481			}
7482		}
7483	}
7484
7485	// Check to see if we have a response for the expected dataType
7486	if ( dataTypes[ 0 ] in responses ) {
7487		finalDataType = dataTypes[ 0 ];
7488	} else {
7489		// Try convertible dataTypes
7490		for ( type in responses ) {
7491			if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) {
7492				finalDataType = type;
7493				break;
7494			}
7495			if ( !firstDataType ) {
7496				firstDataType = type;
7497			}
7498		}
7499		// Or just use first one
7500		finalDataType = finalDataType || firstDataType;
7501	}
7502
7503	// If we found a dataType
7504	// We add the dataType to the list if needed
7505	// and return the corresponding response
7506	if ( finalDataType ) {
7507		if ( finalDataType !== dataTypes[ 0 ] ) {
7508			dataTypes.unshift( finalDataType );
7509		}
7510		return responses[ finalDataType ];
7511	}
7512}
7513
7514/* Chain conversions given the request and the original response
7515 * Also sets the responseXXX fields on the jqXHR instance
7516 */
7517function ajaxConvert( s, response, jqXHR, isSuccess ) {
7518	var conv2, current, conv, tmp, prev,
7519		converters = {},
7520		// Work with a copy of dataTypes in case we need to modify it for conversion
7521		dataTypes = s.dataTypes.slice();
7522
7523	// Create converters map with lowercased keys
7524	if ( dataTypes[ 1 ] ) {
7525		for ( conv in s.converters ) {
7526			converters[ conv.toLowerCase() ] = s.converters[ conv ];
7527		}
7528	}
7529
7530	current = dataTypes.shift();
7531
7532	// Convert to each sequential dataType
7533	while ( current ) {
7534
7535		if ( s.responseFields[ current ] ) {
7536			jqXHR[ s.responseFields[ current ] ] = response;
7537		}
7538
7539		// Apply the dataFilter if provided
7540		if ( !prev && isSuccess && s.dataFilter ) {
7541			response = s.dataFilter( response, s.dataType );
7542		}
7543
7544		prev = current;
7545		current = dataTypes.shift();
7546
7547		if ( current ) {
7548
7549		// There's only work to do if current dataType is non-auto
7550			if ( current === "*" ) {
7551
7552				current = prev;
7553
7554			// Convert response if prev dataType is non-auto and differs from current
7555			} else if ( prev !== "*" && prev !== current ) {
7556
7557				// Seek a direct converter
7558				conv = converters[ prev + " " + current ] || converters[ "* " + current ];
7559
7560				// If none found, seek a pair
7561				if ( !conv ) {
7562					for ( conv2 in converters ) {
7563
7564						// If conv2 outputs current
7565						tmp = conv2.split( " " );
7566						if ( tmp[ 1 ] === current ) {
7567
7568							// If prev can be converted to accepted input
7569							conv = converters[ prev + " " + tmp[ 0 ] ] ||
7570								converters[ "* " + tmp[ 0 ] ];
7571							if ( conv ) {
7572								// Condense equivalence converters
7573								if ( conv === true ) {
7574									conv = converters[ conv2 ];
7575
7576								// Otherwise, insert the intermediate dataType
7577								} else if ( converters[ conv2 ] !== true ) {
7578									current = tmp[ 0 ];
7579									dataTypes.unshift( tmp[ 1 ] );
7580								}
7581								break;
7582							}
7583						}
7584					}
7585				}
7586
7587				// Apply converter (if not an equivalence)
7588				if ( conv !== true ) {
7589
7590					// Unless errors are allowed to bubble, catch and return them
7591					if ( conv && s[ "throws" ] ) {
7592						response = conv( response );
7593					} else {
7594						try {
7595							response = conv( response );
7596						} catch ( e ) {
7597							return { state: "parsererror", error: conv ? e : "No conversion from " + prev + " to " + current };
7598						}
7599					}
7600				}
7601			}
7602		}
7603	}
7604
7605	return { state: "success", data: response };
7606}
7607// Install script dataType
7608jQuery.ajaxSetup({
7609	accepts: {
7610		script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
7611	},
7612	contents: {
7613		script: /(?:java|ecma)script/
7614	},
7615	converters: {
7616		"text script": function( text ) {
7617			jQuery.globalEval( text );
7618			return text;
7619		}
7620	}
7621});
7622
7623// Handle cache's special case and crossDomain
7624jQuery.ajaxPrefilter( "script", function( s ) {
7625	if ( s.cache === undefined ) {
7626		s.cache = false;
7627	}
7628	if ( s.crossDomain ) {
7629		s.type = "GET";
7630	}
7631});
7632
7633// Bind script tag hack transport
7634jQuery.ajaxTransport( "script", function( s ) {
7635	// This transport only deals with cross domain requests
7636	if ( s.crossDomain ) {
7637		var script, callback;
7638		return {
7639			send: function( _, complete ) {
7640				script = jQuery("<script>").prop({
7641					async: true,
7642					charset: s.scriptCharset,
7643					src: s.url
7644				}).on(
7645					"load error",
7646					callback = function( evt ) {
7647						script.remove();
7648						callback = null;
7649						if ( evt ) {
7650							complete( evt.type === "error" ? 404 : 200, evt.type );
7651						}
7652					}
7653				);
7654				document.head.appendChild( script[ 0 ] );
7655			},
7656			abort: function() {
7657				if ( callback ) {
7658					callback();
7659				}
7660			}
7661		};
7662	}
7663});
7664var oldCallbacks = [],
7665	rjsonp = /(=)\?(?=&|$)|\?\?/;
7666
7667// Default jsonp settings
7668jQuery.ajaxSetup({
7669	jsonp: "callback",
7670	jsonpCallback: function() {
7671		var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( ajax_nonce++ ) );
7672		this[ callback ] = true;
7673		return callback;
7674	}
7675});
7676
7677// Detect, normalize options and install callbacks for jsonp requests
7678jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
7679
7680	var callbackName, overwritten, responseContainer,
7681		jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?
7682			"url" :
7683			typeof s.data === "string" && !( s.contentType || "" ).indexOf("application/x-www-form-urlencoded") && rjsonp.test( s.data ) && "data"
7684		);
7685
7686	// Handle iff the expected data type is "jsonp" or we have a parameter to set
7687	if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) {
7688
7689		// Get callback name, remembering preexisting value associated with it
7690		callbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ?
7691			s.jsonpCallback() :
7692			s.jsonpCallback;
7693
7694		// Insert callback into url or form data
7695		if ( jsonProp ) {
7696			s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName );
7697		} else if ( s.jsonp !== false ) {
7698			s.url += ( ajax_rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName;
7699		}
7700
7701		// Use data converter to retrieve json after script execution
7702		s.converters["script json"] = function() {
7703			if ( !responseContainer ) {
7704				jQuery.error( callbackName + " was not called" );
7705			}
7706			return responseContainer[ 0 ];
7707		};
7708
7709		// force json dataType
7710		s.dataTypes[ 0 ] = "json";
7711
7712		// Install callback
7713		overwritten = window[ callbackName ];
7714		window[ callbackName ] = function() {
7715			responseContainer = arguments;
7716		};
7717
7718		// Clean-up function (fires after converters)
7719		jqXHR.always(function() {
7720			// Restore preexisting value
7721			window[ callbackName ] = overwritten;
7722
7723			// Save back as free
7724			if ( s[ callbackName ] ) {
7725				// make sure that re-using the options doesn't screw things around
7726				s.jsonpCallback = originalSettings.jsonpCallback;
7727
7728				// save the callback name for future use
7729				oldCallbacks.push( callbackName );
7730			}
7731
7732			// Call if it was a function and we have a response
7733			if ( responseContainer && jQuery.isFunction( overwritten ) ) {
7734				overwritten( responseContainer[ 0 ] );
7735			}
7736
7737			responseContainer = overwritten = undefined;
7738		});
7739
7740		// Delegate to script
7741		return "script";
7742	}
7743});
7744jQuery.ajaxSettings.xhr = function() {
7745	try {
7746		return new XMLHttpRequest();
7747	} catch( e ) {}
7748};
7749
7750var xhrSupported = jQuery.ajaxSettings.xhr(),
7751	xhrSuccessStatus = {
7752		// file protocol always yields status code 0, assume 200
7753		0: 200,
7754		// Support: IE9
7755		// #1450: sometimes IE returns 1223 when it should be 204
7756		1223: 204
7757	},
7758	// Support: IE9
7759	// We need to keep track of outbound xhr and abort them manually
7760	// because IE is not smart enough to do it all by itself
7761	xhrId = 0,
7762	xhrCallbacks = {};
7763
7764if ( window.ActiveXObject ) {
7765	jQuery( window ).on( "unload", function() {
7766		for( var key in xhrCallbacks ) {
7767			xhrCallbacks[ key ]();
7768		}
7769		xhrCallbacks = undefined;
7770	});
7771}
7772
7773jQuery.support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported );
7774jQuery.support.ajax = xhrSupported = !!xhrSupported;
7775
7776jQuery.ajaxTransport(function( options ) {
7777	var callback;
7778	// Cross domain only allowed if supported through XMLHttpRequest
7779	if ( jQuery.support.cors || xhrSupported && !options.crossDomain ) {
7780		return {
7781			send: function( headers, complete ) {
7782				var i, id,
7783					xhr = options.xhr();
7784				xhr.open( options.type, options.url, options.async, options.username, options.password );
7785				// Apply custom fields if provided
7786				if ( options.xhrFields ) {
7787					for ( i in options.xhrFields ) {
7788						xhr[ i ] = options.xhrFields[ i ];
7789					}
7790				}
7791				// Override mime type if needed
7792				if ( options.mimeType && xhr.overrideMimeType ) {
7793					xhr.overrideMimeType( options.mimeType );
7794				}
7795				// X-Requested-With header
7796				// For cross-domain requests, seeing as conditions for a preflight are
7797				// akin to a jigsaw puzzle, we simply never set it to be sure.
7798				// (it can always be set on a per-request basis or even using ajaxSetup)
vendor: 14,558 bytes, lines 7799-8310
7799				// For same-domain requests, won't change header if already provided.
7800				if ( !options.crossDomain && !headers["X-Requested-With"] ) {
7801					headers["X-Requested-With"] = "XMLHttpRequest";
7802				}
7803				// Set headers
7804				for ( i in headers ) {
7805					xhr.setRequestHeader( i, headers[ i ] );
7806				}
7807				// Callback
7808				callback = function( type ) {
7809					return function() {
7810						if ( callback ) {
7811							delete xhrCallbacks[ id ];
7812							callback = xhr.onload = xhr.onerror = null;
7813							if ( type === "abort" ) {
7814								xhr.abort();
7815							} else if ( type === "error" ) {
7816								complete(
7817									// file protocol always yields status 0, assume 404
7818									xhr.status || 404,
7819									xhr.statusText
7820								);
7821							} else {
7822								complete(
7823									xhrSuccessStatus[ xhr.status ] || xhr.status,
7824									xhr.statusText,
7825									// Support: IE9
7826									// #11426: When requesting binary data, IE9 will throw an exception
7827									// on any attempt to access responseText
7828									typeof xhr.responseText === "string" ? {
7829										text: xhr.responseText
7830									} : undefined,
7831									xhr.getAllResponseHeaders()
7832								);
7833							}
7834						}
7835					};
7836				};
7837				// Listen to events
7838				xhr.onload = callback();
7839				xhr.onerror = callback("error");
7840				// Create the abort callback
7841				callback = xhrCallbacks[( id = xhrId++ )] = callback("abort");
7842				// Do send the request
7843				// This may raise an exception which is actually
7844				// handled in jQuery.ajax (so no try/catch here)
7845				xhr.send( options.hasContent && options.data || null );
7846			},
7847			abort: function() {
7848				if ( callback ) {
7849					callback();
7850				}
7851			}
7852		};
7853	}
7854});
7855var fxNow, timerId,
7856	rfxtypes = /^(?:toggle|show|hide)$/,
7857	rfxnum = new RegExp( "^(?:([+-])=|)(" + core_pnum + ")([a-z%]*)$", "i" ),
7858	rrun = /queueHooks$/,
7859	animationPrefilters = [ defaultPrefilter ],
7860	tweeners = {
7861		"*": [function( prop, value ) {
7862			var tween = this.createTween( prop, value ),
7863				target = tween.cur(),
7864				parts = rfxnum.exec( value ),
7865				unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
7866
7867				// Starting value computation is required for potential unit mismatches
7868				start = ( jQuery.cssNumber[ prop ] || unit !== "px" && +target ) &&
7869					rfxnum.exec( jQuery.css( tween.elem, prop ) ),
7870				scale = 1,
7871				maxIterations = 20;
7872
7873			if ( start && start[ 3 ] !== unit ) {
7874				// Trust units reported by jQuery.css
7875				unit = unit || start[ 3 ];
7876
7877				// Make sure we update the tween properties later on
7878				parts = parts || [];
7879
7880				// Iteratively approximate from a nonzero starting point
7881				start = +target || 1;
7882
7883				do {
7884					// If previous iteration zeroed out, double until we get *something*
7885					// Use a string for doubling factor so we don't accidentally see scale as unchanged below
7886					scale = scale || ".5";
7887
7888					// Adjust and apply
7889					start = start / scale;
7890					jQuery.style( tween.elem, prop, start + unit );
7891
7892				// Update scale, tolerating zero or NaN from tween.cur()
7893				// And breaking the loop if scale is unchanged or perfect, or if we've just had enough
7894				} while ( scale !== (scale = tween.cur() / target) && scale !== 1 && --maxIterations );
7895			}
7896
7897			// Update tween properties
7898			if ( parts ) {
7899				start = tween.start = +start || +target || 0;
7900				tween.unit = unit;
7901				// If a +=/-= token was provided, we're doing a relative animation
7902				tween.end = parts[ 1 ] ?
7903					start + ( parts[ 1 ] + 1 ) * parts[ 2 ] :
7904					+parts[ 2 ];
7905			}
7906
7907			return tween;
7908		}]
7909	};
7910
7911// Animations created synchronously will run synchronously
7912function createFxNow() {
7913	setTimeout(function() {
7914		fxNow = undefined;
7915	});
7916	return ( fxNow = jQuery.now() );
7917}
7918
7919function createTween( value, prop, animation ) {
7920	var tween,
7921		collection = ( tweeners[ prop ] || [] ).concat( tweeners[ "*" ] ),
7922		index = 0,
7923		length = collection.length;
7924	for ( ; index < length; index++ ) {
7925		if ( (tween = collection[ index ].call( animation, prop, value )) ) {
7926
7927			// we're done with this property
7928			return tween;
7929		}
7930	}
7931}
7932
7933function Animation( elem, properties, options ) {
7934	var result,
7935		stopped,
7936		index = 0,
7937		length = animationPrefilters.length,
7938		deferred = jQuery.Deferred().always( function() {
7939			// don't match elem in the :animated selector
7940			delete tick.elem;
7941		}),
7942		tick = function() {
7943			if ( stopped ) {
7944				return false;
7945			}
7946			var currentTime = fxNow || createFxNow(),
7947				remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
7948				// archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497)
7949				temp = remaining / animation.duration || 0,
7950				percent = 1 - temp,
7951				index = 0,
7952				length = animation.tweens.length;
7953
7954			for ( ; index < length ; index++ ) {
7955				animation.tweens[ index ].run( percent );
7956			}
7957
7958			deferred.notifyWith( elem, [ animation, percent, remaining ]);
7959
7960			if ( percent < 1 && length ) {
7961				return remaining;
7962			} else {
7963				deferred.resolveWith( elem, [ animation ] );
7964				return false;
7965			}
7966		},
7967		animation = deferred.promise({
7968			elem: elem,
7969			props: jQuery.extend( {}, properties ),
7970			opts: jQuery.extend( true, { specialEasing: {} }, options ),
7971			originalProperties: properties,
7972			originalOptions: options,
7973			startTime: fxNow || createFxNow(),
7974			duration: options.duration,
7975			tweens: [],
7976			createTween: function( prop, end ) {
7977				var tween = jQuery.Tween( elem, animation.opts, prop, end,
7978						animation.opts.specialEasing[ prop ] || animation.opts.easing );
7979				animation.tweens.push( tween );
7980				return tween;
7981			},
7982			stop: function( gotoEnd ) {
7983				var index = 0,
7984					// if we are going to the end, we want to run all the tweens
7985					// otherwise we skip this part
7986					length = gotoEnd ? animation.tweens.length : 0;
7987				if ( stopped ) {
7988					return this;
7989				}
7990				stopped = true;
7991				for ( ; index < length ; index++ ) {
7992					animation.tweens[ index ].run( 1 );
7993				}
7994
7995				// resolve when we played the last frame
7996				// otherwise, reject
7997				if ( gotoEnd ) {
7998					deferred.resolveWith( elem, [ animation, gotoEnd ] );
7999				} else {
8000					deferred.rejectWith( elem, [ animation, gotoEnd ] );
8001				}
8002				return this;
8003			}
8004		}),
8005		props = animation.props;
8006
8007	propFilter( props, animation.opts.specialEasing );
8008
8009	for ( ; index < length ; index++ ) {
8010		result = animationPrefilters[ index ].call( animation, elem, props, animation.opts );
8011		if ( result ) {
8012			return result;
8013		}
8014	}
8015
8016	jQuery.map( props, createTween, animation );
8017
8018	if ( jQuery.isFunction( animation.opts.start ) ) {
8019		animation.opts.start.call( elem, animation );
8020	}
8021
8022	jQuery.fx.timer(
8023		jQuery.extend( tick, {
8024			elem: elem,
8025			anim: animation,
8026			queue: animation.opts.queue
8027		})
8028	);
8029
8030	// attach callbacks from options
8031	return animation.progress( animation.opts.progress )
8032		.done( animation.opts.done, animation.opts.complete )
8033		.fail( animation.opts.fail )
8034		.always( animation.opts.always );
8035}
8036
8037function propFilter( props, specialEasing ) {
8038	var index, name, easing, value, hooks;
8039
8040	// camelCase, specialEasing and expand cssHook pass
8041	for ( index in props ) {
8042		name = jQuery.camelCase( index );
8043		easing = specialEasing[ name ];
8044		value = props[ index ];
8045		if ( jQuery.isArray( value ) ) {
8046			easing = value[ 1 ];
8047			value = props[ index ] = value[ 0 ];
8048		}
8049
8050		if ( index !== name ) {
8051			props[ name ] = value;
8052			delete props[ index ];
8053		}
8054
8055		hooks = jQuery.cssHooks[ name ];
8056		if ( hooks && "expand" in hooks ) {
8057			value = hooks.expand( value );
8058			delete props[ name ];
8059
8060			// not quite $.extend, this wont overwrite keys already present.
8061			// also - reusing 'index' from above because we have the correct "name"
8062			for ( index in value ) {
8063				if ( !( index in props ) ) {
8064					props[ index ] = value[ index ];
8065					specialEasing[ index ] = easing;
8066				}
8067			}
8068		} else {
8069			specialEasing[ name ] = easing;
8070		}
8071	}
8072}
8073
8074jQuery.Animation = jQuery.extend( Animation, {
8075
8076	tweener: function( props, callback ) {
8077		if ( jQuery.isFunction( props ) ) {
8078			callback = props;
8079			props = [ "*" ];
8080		} else {
8081			props = props.split(" ");
8082		}
8083
8084		var prop,
8085			index = 0,
8086			length = props.length;
8087
8088		for ( ; index < length ; index++ ) {
8089			prop = props[ index ];
8090			tweeners[ prop ] = tweeners[ prop ] || [];
8091			tweeners[ prop ].unshift( callback );
8092		}
8093	},
8094
8095	prefilter: function( callback, prepend ) {
8096		if ( prepend ) {
8097			animationPrefilters.unshift( callback );
8098		} else {
8099			animationPrefilters.push( callback );
8100		}
8101	}
8102});
8103
8104function defaultPrefilter( elem, props, opts ) {
8105	/* jshint validthis: true */
8106	var prop, value, toggle, tween, hooks, oldfire,
8107		anim = this,
8108		orig = {},
8109		style = elem.style,
8110		hidden = elem.nodeType && isHidden( elem ),
8111		dataShow = data_priv.get( elem, "fxshow" );
8112
8113	// handle queue: false promises
8114	if ( !opts.queue ) {
8115		hooks = jQuery._queueHooks( elem, "fx" );
8116		if ( hooks.unqueued == null ) {
8117			hooks.unqueued = 0;
8118			oldfire = hooks.empty.fire;
8119			hooks.empty.fire = function() {
8120				if ( !hooks.unqueued ) {
8121					oldfire();
8122				}
8123			};
8124		}
8125		hooks.unqueued++;
8126
8127		anim.always(function() {
8128			// doing this makes sure that the complete handler will be called
8129			// before this completes
8130			anim.always(function() {
8131				hooks.unqueued--;
8132				if ( !jQuery.queue( elem, "fx" ).length ) {
8133					hooks.empty.fire();
8134				}
8135			});
8136		});
8137	}
8138
8139	// height/width overflow pass
8140	if ( elem.nodeType === 1 && ( "height" in props || "width" in props ) ) {
8141		// Make sure that nothing sneaks out
8142		// Record all 3 overflow attributes because IE9-10 do not
8143		// change the overflow attribute when overflowX and
8144		// overflowY are set to the same value
8145		opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];
8146
8147		// Set display property to inline-block for height/width
8148		// animations on inline elements that are having width/height animated
8149		if ( jQuery.css( elem, "display" ) === "inline" &&
8150				jQuery.css( elem, "float" ) === "none" ) {
8151
8152			style.display = "inline-block";
8153		}
8154	}
8155
8156	if ( opts.overflow ) {
8157		style.overflow = "hidden";
8158		anim.always(function() {
8159			style.overflow = opts.overflow[ 0 ];
8160			style.overflowX = opts.overflow[ 1 ];
8161			style.overflowY = opts.overflow[ 2 ];
8162		});
8163	}
8164
8165
8166	// show/hide pass
8167	for ( prop in props ) {
8168		value = props[ prop ];
8169		if ( rfxtypes.exec( value ) ) {
8170			delete props[ prop ];
8171			toggle = toggle || value === "toggle";
8172			if ( value === ( hidden ? "hide" : "show" ) ) {
8173
8174				// 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
8175				if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) {
8176					hidden = true;
8177				} else {
8178					continue;
8179				}
8180			}
8181			orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );
8182		}
8183	}
8184
8185	if ( !jQuery.isEmptyObject( orig ) ) {
8186		if ( dataShow ) {
8187			if ( "hidden" in dataShow ) {
8188				hidden = dataShow.hidden;
8189			}
8190		} else {
8191			dataShow = data_priv.access( elem, "fxshow", {} );
8192		}
8193
8194		// store state if its toggle - enables .stop().toggle() to "reverse"
8195		if ( toggle ) {
8196			dataShow.hidden = !hidden;
8197		}
8198		if ( hidden ) {
8199			jQuery( elem ).show();
8200		} else {
8201			anim.done(function() {
8202				jQuery( elem ).hide();
8203			});
8204		}
8205		anim.done(function() {
8206			var prop;
8207
8208			data_priv.remove( elem, "fxshow" );
8209			for ( prop in orig ) {
8210				jQuery.style( elem, prop, orig[ prop ] );
8211			}
8212		});
8213		for ( prop in orig ) {
8214			tween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );
8215
8216			if ( !( prop in dataShow ) ) {
8217				dataShow[ prop ] = tween.start;
8218				if ( hidden ) {
8219					tween.end = tween.start;
8220					tween.start = prop === "width" || prop === "height" ? 1 : 0;
8221				}
8222			}
8223		}
8224	}
8225}
8226
8227function Tween( elem, options, prop, end, easing ) {
8228	return new Tween.prototype.init( elem, options, prop, end, easing );
8229}
8230jQuery.Tween = Tween;
8231
8232Tween.prototype = {
8233	constructor: Tween,
8234	init: function( elem, options, prop, end, easing, unit ) {
8235		this.elem = elem;
8236		this.prop = prop;
8237		this.easing = easing || "swing";
8238		this.options = options;
8239		this.start = this.now = this.cur();
8240		this.end = end;
8241		this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" );
8242	},
8243	cur: function() {
8244		var hooks = Tween.propHooks[ this.prop ];
8245
8246		return hooks && hooks.get ?
8247			hooks.get( this ) :
8248			Tween.propHooks._default.get( this );
8249	},
8250	run: function( percent ) {
8251		var eased,
8252			hooks = Tween.propHooks[ this.prop ];
8253
8254		if ( this.options.duration ) {
8255			this.pos = eased = jQuery.easing[ this.easing ](
8256				percent, this.options.duration * percent, 0, 1, this.options.duration
8257			);
8258		} else {
8259			this.pos = eased = percent;
8260		}
8261		this.now = ( this.end - this.start ) * eased + this.start;
8262
8263		if ( this.options.step ) {
8264			this.options.step.call( this.elem, this.now, this );
8265		}
8266
8267		if ( hooks && hooks.set ) {
8268			hooks.set( this );
8269		} else {
8270			Tween.propHooks._default.set( this );
8271		}
8272		return this;
8273	}
8274};
8275
8276Tween.prototype.init.prototype = Tween.prototype;
8277
8278Tween.propHooks = {
8279	_default: {
8280		get: function( tween ) {
8281			var result;
8282
8283			if ( tween.elem[ tween.prop ] != null &&
8284				(!tween.elem.style || tween.elem.style[ tween.prop ] == null) ) {
8285				return tween.elem[ tween.prop ];
8286			}
8287
8288			// passing an empty string as a 3rd parameter to .css will automatically
8289			// attempt a parseFloat and fallback to a string if the parse fails
8290			// so, simple values such as "10px" are parsed to Float.
8291			// complex values such as "rotate(1rad)" are returned as is.
8292			result = jQuery.css( tween.elem, tween.prop, "" );
8293			// Empty strings, null, undefined and "auto" are converted to 0.
8294			return !result || result === "auto" ? 0 : result;
8295		},
8296		set: function( tween ) {
8297			// use step hook for back compat - use cssHook if its there - use .style if its
8298			// available and use plain properties where available
8299			if ( jQuery.fx.step[ tween.prop ] ) {
8300				jQuery.fx.step[ tween.prop ]( tween );
8301			} else if ( tween.elem.style && ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null || jQuery.cssHooks[ tween.prop ] ) ) {
8302				jQuery.style( tween.elem, tween.prop, tween.now + tween.unit );
8303			} else {
8304				tween.elem[ tween.prop ] = tween.now;
8305			}
8306		}
8307	}
8308};
8309
8310// Support: IE9
vendor: 5,455 bytes, lines 8311-8495
8311// Panic based approach to setting things on disconnected nodes
8312
8313Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
8314	set: function( tween ) {
8315		if ( tween.elem.nodeType && tween.elem.parentNode ) {
8316			tween.elem[ tween.prop ] = tween.now;
8317		}
8318	}
8319};
8320
8321jQuery.each([ "toggle", "show", "hide" ], function( i, name ) {
8322	var cssFn = jQuery.fn[ name ];
8323	jQuery.fn[ name ] = function( speed, easing, callback ) {
8324		return speed == null || typeof speed === "boolean" ?
8325			cssFn.apply( this, arguments ) :
8326			this.animate( genFx( name, true ), speed, easing, callback );
8327	};
8328});
8329
8330jQuery.fn.extend({
8331	fadeTo: function( speed, to, easing, callback ) {
8332
8333		// show any hidden elements after setting opacity to 0
8334		return this.filter( isHidden ).css( "opacity", 0 ).show()
8335
8336			// animate to the value specified
8337			.end().animate({ opacity: to }, speed, easing, callback );
8338	},
8339	animate: function( prop, speed, easing, callback ) {
8340		var empty = jQuery.isEmptyObject( prop ),
8341			optall = jQuery.speed( speed, easing, callback ),
8342			doAnimation = function() {
8343				// Operate on a copy of prop so per-property easing won't be lost
8344				var anim = Animation( this, jQuery.extend( {}, prop ), optall );
8345
8346				// Empty animations, or finishing resolves immediately
8347				if ( empty || data_priv.get( this, "finish" ) ) {
8348					anim.stop( true );
8349				}
8350			};
8351			doAnimation.finish = doAnimation;
8352
8353		return empty || optall.queue === false ?
8354			this.each( doAnimation ) :
8355			this.queue( optall.queue, doAnimation );
8356	},
8357	stop: function( type, clearQueue, gotoEnd ) {
8358		var stopQueue = function( hooks ) {
8359			var stop = hooks.stop;
8360			delete hooks.stop;
8361			stop( gotoEnd );
8362		};
8363
8364		if ( typeof type !== "string" ) {
8365			gotoEnd = clearQueue;
8366			clearQueue = type;
8367			type = undefined;
8368		}
8369		if ( clearQueue && type !== false ) {
8370			this.queue( type || "fx", [] );
8371		}
8372
8373		return this.each(function() {
8374			var dequeue = true,
8375				index = type != null && type + "queueHooks",
8376				timers = jQuery.timers,
8377				data = data_priv.get( this );
8378
8379			if ( index ) {
8380				if ( data[ index ] && data[ index ].stop ) {
8381					stopQueue( data[ index ] );
8382				}
8383			} else {
8384				for ( index in data ) {
8385					if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {
8386						stopQueue( data[ index ] );
8387					}
8388				}
8389			}
8390
8391			for ( index = timers.length; index--; ) {
8392				if ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) {
8393					timers[ index ].anim.stop( gotoEnd );
8394					dequeue = false;
8395					timers.splice( index, 1 );
8396				}
8397			}
8398
8399			// start the next in the queue if the last step wasn't forced
8400			// timers currently will call their complete callbacks, which will dequeue
8401			// but only if they were gotoEnd
8402			if ( dequeue || !gotoEnd ) {
8403				jQuery.dequeue( this, type );
8404			}
8405		});
8406	},
8407	finish: function( type ) {
8408		if ( type !== false ) {
8409			type = type || "fx";
8410		}
8411		return this.each(function() {
8412			var index,
8413				data = data_priv.get( this ),
8414				queue = data[ type + "queue" ],
8415				hooks = data[ type + "queueHooks" ],
8416				timers = jQuery.timers,
8417				length = queue ? queue.length : 0;
8418
8419			// enable finishing flag on private data
8420			data.finish = true;
8421
8422			// empty the queue first
8423			jQuery.queue( this, type, [] );
8424
8425			if ( hooks && hooks.stop ) {
8426				hooks.stop.call( this, true );
8427			}
8428
8429			// look for any active animations, and finish them
8430			for ( index = timers.length; index--; ) {
8431				if ( timers[ index ].elem === this && timers[ index ].queue === type ) {
8432					timers[ index ].anim.stop( true );
8433					timers.splice( index, 1 );
8434				}
8435			}
8436
8437			// look for any animations in the old queue and finish them
8438			for ( index = 0; index < length; index++ ) {
8439				if ( queue[ index ] && queue[ index ].finish ) {
8440					queue[ index ].finish.call( this );
8441				}
8442			}
8443
8444			// turn off finishing flag
8445			delete data.finish;
8446		});
8447	}
8448});
8449
8450// Generate parameters to create a standard animation
8451function genFx( type, includeWidth ) {
8452	var which,
8453		attrs = { height: type },
8454		i = 0;
8455
8456	// if we include width, step value is 1 to do all cssExpand values,
8457	// if we don't include width, step value is 2 to skip over Left and Right
8458	includeWidth = includeWidth? 1 : 0;
8459	for( ; i < 4 ; i += 2 - includeWidth ) {
8460		which = cssExpand[ i ];
8461		attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
8462	}
8463
8464	if ( includeWidth ) {
8465		attrs.opacity = attrs.width = type;
8466	}
8467
8468	return attrs;
8469}
8470
8471// Generate shortcuts for custom animations
8472jQuery.each({
8473	slideDown: genFx("show"),
8474	slideUp: genFx("hide"),
8475	slideToggle: genFx("toggle"),
8476	fadeIn: { opacity: "show" },
8477	fadeOut: { opacity: "hide" },
8478	fadeToggle: { opacity: "toggle" }
8479}, function( name, props ) {
8480	jQuery.fn[ name ] = function( speed, easing, callback ) {
8481		return this.animate( props, speed, easing, callback );
8482	};
8483});
8484
8485jQuery.speed = function( speed, easing, fn ) {
8486	var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
8487		complete: fn || !fn && easing ||
8488			jQuery.isFunction( speed ) && speed,
8489		duration: speed,
8490		easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
8491	};
8492
8493	opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
8494		opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
8495
vendor: 4,215 bytes, lines 8496-8683
8496	// normalize opt.queue - true/undefined/null -> "fx"
8497	if ( opt.queue == null || opt.queue === true ) {
8498		opt.queue = "fx";
8499	}
8500
8501	// Queueing
8502	opt.old = opt.complete;
8503
8504	opt.complete = function() {
8505		if ( jQuery.isFunction( opt.old ) ) {
8506			opt.old.call( this );
8507		}
8508
8509		if ( opt.queue ) {
8510			jQuery.dequeue( this, opt.queue );
8511		}
8512	};
8513
8514	return opt;
8515};
8516
8517jQuery.easing = {
8518	linear: function( p ) {
8519		return p;
8520	},
8521	swing: function( p ) {
8522		return 0.5 - Math.cos( p*Math.PI ) / 2;
8523	}
8524};
8525
8526jQuery.timers = [];
8527jQuery.fx = Tween.prototype.init;
8528jQuery.fx.tick = function() {
8529	var timer,
8530		timers = jQuery.timers,
8531		i = 0;
8532
8533	fxNow = jQuery.now();
8534
8535	for ( ; i < timers.length; i++ ) {
8536		timer = timers[ i ];
8537		// Checks the timer has not already been removed
8538		if ( !timer() && timers[ i ] === timer ) {
8539			timers.splice( i--, 1 );
8540		}
8541	}
8542
8543	if ( !timers.length ) {
8544		jQuery.fx.stop();
8545	}
8546	fxNow = undefined;
8547};
8548
8549jQuery.fx.timer = function( timer ) {
8550	if ( timer() && jQuery.timers.push( timer ) ) {
8551		jQuery.fx.start();
8552	}
8553};
8554
8555jQuery.fx.interval = 13;
8556
8557jQuery.fx.start = function() {
8558	if ( !timerId ) {
8559		timerId = setInterval( jQuery.fx.tick, jQuery.fx.interval );
8560	}
8561};
8562
8563jQuery.fx.stop = function() {
8564	clearInterval( timerId );
8565	timerId = null;
8566};
8567
8568jQuery.fx.speeds = {
8569	slow: 600,
8570	fast: 200,
8571	// Default speed
8572	_default: 400
8573};
8574
8575// Back Compat <1.8 extension point
8576jQuery.fx.step = {};
8577
8578if ( jQuery.expr && jQuery.expr.filters ) {
8579	jQuery.expr.filters.animated = function( elem ) {
8580		return jQuery.grep(jQuery.timers, function( fn ) {
8581			return elem === fn.elem;
8582		}).length;
8583	};
8584}
8585jQuery.fn.offset = function( options ) {
8586	if ( arguments.length ) {
8587		return options === undefined ?
8588			this :
8589			this.each(function( i ) {
8590				jQuery.offset.setOffset( this, options, i );
8591			});
8592	}
8593
8594	var docElem, win,
8595		elem = this[ 0 ],
8596		box = { top: 0, left: 0 },
8597		doc = elem && elem.ownerDocument;
8598
8599	if ( !doc ) {
8600		return;
8601	}
8602
8603	docElem = doc.documentElement;
8604
8605	// Make sure it's not a disconnected DOM node
8606	if ( !jQuery.contains( docElem, elem ) ) {
8607		return box;
8608	}
8609
8610	// If we don't have gBCR, just use 0,0 rather than error
8611	// BlackBerry 5, iOS 3 (original iPhone)
8612	if ( typeof elem.getBoundingClientRect !== core_strundefined ) {
8613		box = elem.getBoundingClientRect();
8614	}
8615	win = getWindow( doc );
8616	return {
8617		top: box.top + win.pageYOffset - docElem.clientTop,
8618		left: box.left + win.pageXOffset - docElem.clientLeft
8619	};
8620};
8621
8622jQuery.offset = {
8623
8624	setOffset: function( elem, options, i ) {
8625		var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
8626			position = jQuery.css( elem, "position" ),
8627			curElem = jQuery( elem ),
8628			props = {};
8629
8630		// Set position first, in-case top/left are set even on static elem
8631		if ( position === "static" ) {
8632			elem.style.position = "relative";
8633		}
8634
8635		curOffset = curElem.offset();
8636		curCSSTop = jQuery.css( elem, "top" );
8637		curCSSLeft = jQuery.css( elem, "left" );
8638		calculatePosition = ( position === "absolute" || position === "fixed" ) && ( curCSSTop + curCSSLeft ).indexOf("auto") > -1;
8639
8640		// Need to be able to calculate position if either top or left is auto and position is either absolute or fixed
8641		if ( calculatePosition ) {
8642			curPosition = curElem.position();
8643			curTop = curPosition.top;
8644			curLeft = curPosition.left;
8645
8646		} else {
8647			curTop = parseFloat( curCSSTop ) || 0;
8648			curLeft = parseFloat( curCSSLeft ) || 0;
8649		}
8650
8651		if ( jQuery.isFunction( options ) ) {
8652			options = options.call( elem, i, curOffset );
8653		}
8654
8655		if ( options.top != null ) {
8656			props.top = ( options.top - curOffset.top ) + curTop;
8657		}
8658		if ( options.left != null ) {
8659			props.left = ( options.left - curOffset.left ) + curLeft;
8660		}
8661
8662		if ( "using" in options ) {
8663			options.using.call( elem, props );
8664
8665		} else {
8666			curElem.css( props );
8667		}
8668	}
8669};
8670
8671
8672jQuery.fn.extend({
8673
8674	position: function() {
8675		if ( !this[ 0 ] ) {
8676			return;
8677		}
8678
8679		var offsetParent, offset,
8680			elem = this[ 0 ],
8681			parentOffset = { top: 0, left: 0 };
8682
8683		// Fixed elements are offset from window (parentOffset = {top:0, left
8683: 0}, because it is it's only offset parent
8684		if ( jQuery.css( elem, "position" ) === "fixed" ) {
8685			// We assume that getBoundingClientRect is available when computed position is fixed
8686			offset = elem.getBoundingClientRect();
8687
8688		} else {
8689			// Get *real* offsetParent
8690			offsetParent = this.offsetParent();
8691
8692			// Get correct offsets
8693			offset = this.offset();
8694			if ( !jQuery.nodeName( offsetParent[ 0 ], "html" ) ) {
8695				parentOffset = offsetParent.offset();
8696			}
8697
8698			// Add offsetParent borders
8699			parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true );
8700			parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true );
8701		}
8702
8703		// Subtract parent offsets and element margins
8704		return {
8705			top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ),
8706			left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true )
8707		};
8708	},
8709
8710	offsetParent: function() {
8711		return this.map(function() {
8712			var offsetParent = this.offsetParent || docElem;
8713
8714			while ( offsetParent && ( !jQuery.nodeName( offsetParent, "html" ) && jQuery.css( offsetParent, "position") === "static" ) ) {
8715				offsetParent = offsetParent.offsetParent;
8716			}
8717
8718			return offsetParent || docElem;
8719		});
8720	}
8721});
8722
8723
8724// Create scrollLeft and scrollTop methods
8725jQuery.each( {scrollLeft: "pageXOffset", scrollTop: "pageYOffset"}, function( method, prop ) {
8726	var top = "pageYOffset" === prop;
8727
8728	jQuery.fn[ method ] = function( val ) {
8729		return jQuery.access( this, function( elem, method, val ) {
8730			var win = getWindow( elem );
8731
8732			if ( val === undefined ) {
8733				return win ? win[ prop ] : elem[ method ];
8734			}
8735
8736			if ( win ) {
8737				win.scrollTo(
8738					!top ? val : window.pageXOffset,
8739					top ? val : window.pageYOffset
8740				);
8741
8742			} else {
8743				elem[ method ] = val;
8744			}
8745		}, method, val, arguments.length, null );
8746	};
8747});
8748
8749function getWindow( elem ) {
8750	return jQuery.isWindow( elem ) ? elem : elem.nodeType === 9 && elem.defaultView;
8751}
8752// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
8753jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
8754	jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name }, function( defaultExtra, funcName ) {
8755		// margin is only for outerHeight, outerWidth
8756		jQuery.fn[ funcName ] = function( margin, value ) {
8757			var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ),
8758				extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" );
8759
8760			return jQuery.access( this, function( elem, type, value ) {
8761				var doc;
8762
8763				if ( jQuery.isWindow( elem ) ) {
8764					// As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there
8765					// isn't a whole lot we can do. See pull request at this URL for discussion:
8766					// https://github.com/jquery/jquery/pull/764
8767					return elem.document.documentElement[ "client" + name ];
8768				}
8769
8770				// Get document width or height
8771				if ( elem.nodeType === 9 ) {
8772					doc = elem.documentElement;
8773
8774					// Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height],
8775					// whichever is greatest
8776					return Math.max(
8777						elem.body[ "scroll" + name ], doc[ "scroll" + name ],
8778						elem.body[ "offset" + name ], doc[ "offset" + name ],
8779						doc[ "client" + name ]
8780					);
8781				}
8782
8783				return value === undefined ?
8784					// Get width or height on the element, requesting but not forcing parseFloat
8785					jQuery.css( elem, type, extra ) :
8786
8787					// Set width or height on the element
8788					jQuery.style( elem, type, value, extra );
8789			}, type, chainable ? margin : undefined, chainable, null );
8790		};
8791	});
8792});
8793// Limit scope pollution from any deprecated API
8794// (function() {
8795
8796// The number of elements contained in the matched element set
8797jQuery.fn.size = function() {
8798	return this.length;
8799};
8800
8801jQuery.fn.andSelf = jQuery.fn.addBack;
8802
8803// })();
8804if ( typeof module === "object" && module && typeof module.exports === "object" ) {
8805	// Expose jQuery as module.exports in loaders that implement the Node
8806	// module pattern (including browserify). Do not create the global, since
8807	// the user will be storing it themselves locally, and globals are frowned
8808	// upon in the Node module world.
8809	module.exports = jQuery;
8810} else {
8811	// Register as a named AMD module, since jQuery can be concatenated with other
8812	// files that may use define, but not via a proper concatenation script that
8813	// understands anonymous AMD modules. A named AMD is safest and most robust
8814	// way to register. Lowercase jquery is used because AMD module names are
8815	// derived from file names, and jQuery is normally delivered in a lowercase
8816	// file name. Do this after creating the global so that if an AMD module wants
8817	// to call noConflict to hide this version of jQuery, it will work.
8818	if ( typeof define === "function" && define.amd ) {
8819		define( "jquery", [], function () { return jQuery; } );
8820	}
8821}
8822
8823// If there is a window object, that at least has a document property,
8824// define jQuery and $ identifiers
8825if ( typeof window === "object" && typeof window.document === "object" ) {
8826	window.jQuery = window.$ = jQuery;
8827}
8828
8829})( window );
8830/*!
8831 * accounting.js v0.4.2, copyright 2014 Open Exchange Rates, MIT license, http://openexchangerates.github.io/accounting.js
8832 */
8833(function(p,z){function q(a){return!!(""===a||a&&a.charCodeAt&&a.substr)}function m(a){return u?u(a):"[object Array]"===v.call(a)}function r(a){return"[object Object]"===v.call(a)}function s(a,b){var d,a=a||{},b=b||{};for(d in b)b.hasOwnProperty(d)&&null==a[d]&&(a[d]=b[d]);return a}function j(a,b,d){var c=[],e,h;if(!a)return c;if(w&&a.map===w)return a.map(b,d);for(e=0,h=a.length;e<h;e++)c[e]=b.call(d,a[e],e,a);return c}
vendor: 2,744 bytes, lines 8833-8838
8833function n(a,b){a=Math.round(Math.abs(a));return isNaN(a)?b:a}function x(a){var b=c.settings.currency.format;"function"===typeof a&&(a=a());return q(a)&&a.match("%v")?{pos:a,neg:a.replace("-","").replace("%v","-%v"),zero:a}:!a||!a.pos||!a.pos.match("%v")?!q(b)?b:c.settings.currency.format={pos:b,neg:b.replace("%v","-%v"),zero:b}:a}var c={version:"0.4.1",settings:{currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}}},w=Array.prototype.map,u=Array.isArray,v=Object.prototype.toString,o=c.unformat=c.parse=function(a,b){if(m(a))return j(a,function(a){return o(a,b)});a=a||0;if("number"===typeof a)return a;var b=b||".",c=RegExp("[^0-9-"+b+"]",["g"]),c=parseFloat((""+a).replace(/\((.*)\)/,"-$1").replace(c,"").replace(b,"."));return!isNaN(c)?c:0},y=c.toFixed=function(a,b){var b=n(b,c.settings.number.precision),d=Math.pow(10,b);return(Math.round(c.unformat(a)*d)/d).toFixed(b)},t=c.formatNumber=c.format=function(a,b,d,i){if(m(a))return j(a,function(a){return t(a,b,d,i)});var a=o(a),e=s(r(b)?b:{precision:b,thousand:d,decimal:i},c.settings.number),h=n(e.precision),f=0>a?"-":"",g=parseInt(y(Math.abs(a||0),h),10)+"",l=3<g.length?g.length%3:0;return f+(l?g.substr(0,l)+e.thousand:"")+g.substr(l).replace(/(\d{3})(?=\d)/g,"$1"+e.thousand)+(h?e.decimal+y(Math.abs(a),h).split(".")[1]:"")},A=c.formatMoney=function(a,b,d,i,e,h){if(m(a))return j(a,function(a){return A(a,b,d,i,e,h)});var a=o(a),f=s(r(b)?b:{symbol:b,precision:d,thousand:i,decimal:e,format:h},c.settings.currency),g=x(f.format);return(0<a?g.pos:0>a?g.neg:g.zero).replace("%s",f.symbol).replace("%v",t(Math.abs(a),n(f.precision),f.thousand,f.decimal))};c.formatColumn=function(a,b,d,i,e,h){if(!a)return[];var f=s(r(b)?b:{symbol:b,precision:d,thousand:i,decimal:e,format:h},c.settings.currency),g=x(f.format),l=g.pos.indexOf("%s")<g.pos.indexOf("%v")?!0:!1,k=0,a=j(a,function(a){if(m(a))return c.formatColumn(a,f);a=o(a);a=(0<a?g.pos:0>a?g.neg:g.zero).replace("%s",f.symbol).replace("%v",t(Math.abs(a),n(f.precision),f.thousand,f.decimal));if(a.length>k)k=a.length;return a});return j(a,function(a){return q(a)&&a.length<k?l?a.replace(f.symbol,f.symbol+Array(k-a.length+1).join(" ")):Array(k-a.length+1).join(" ")+a:a})};if("undefined"!==typeof exports){if("undefined"!==typeof module&&module.exports)exports=module.exports=c;exports.accounting=c}else"function"===typeof define&&define.amd?define([],function(){return c}):(c.noConflict=function(a){return function(){p.accounting=a;c.noConflict=z;return c}}(p.accounting),p.accounting=c)})(this);
8834
8835/*
8836 Popper
8837 Copyright (C) Federico Zivolo 2017
8838 Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).�
vendor: 18,861 bytes, lines 8838-8839
8838
8839 */(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.Popper=t()})(this,function(){'use strict';function e(e){return e&&'[object Function]'==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var o=window.getComputedStyle(e,null);return t?o[t]:o}function o(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function n(e){if(!e||-1!==['HTML','BODY','#document'].indexOf(e.nodeName))return window.document.body;var i=t(e),r=i.overflow,p=i.overflowX,s=i.overflowY;return /(auto|scroll)/.test(r+s+p)?e:n(o(e))}function r(e){var o=e&&e.offsetParent,i=o&&o.nodeName;return i&&'BODY'!==i&&'HTML'!==i?-1!==['TD','TABLE'].indexOf(o.nodeName)&&'static'===t(o,'position')?r(o):o:window.document.documentElement}function p(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||r(e.firstElementChild)===e)}function s(e){return null===e.parentNode?e:s(e.parentNode)}function d(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return window.document.documentElement;var o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=o?e:t,n=o?t:e,a=document.createRange();a.setStart(i,0),a.setEnd(n,0);var f=a.commonAncestorContainer;if(e!==f&&t!==f||i.contains(n))return p(f)?f:r(f);var l=s(e);return l.host?d(l.host,t):d(e,s(t).host)}function a(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'top',o='top'===t?'scrollTop':'scrollLeft',i=e.nodeName;if('BODY'===i||'HTML'===i){var n=window.document.documentElement,r=window.document.scrollingElement||n;return r[o]}return e[o]}function f(e,t){var o=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=a(t,'top'),n=a(t,'left'),r=o?-1:1;return e.top+=i*r,e.bottom+=i*r,e.left+=n*r,e.right+=n*r,e}function l(e,t){var o='x'===t?'Left':'Top',i='Left'==o?'Right':'Bottom';return+e['border'+o+'Width'].split('px')[0]+ +e['border'+i+'Width'].split('px')[0]}function m(e,t,o,i){return _(t['offset'+e],o['client'+e],o['offset'+e],ie()?o['offset'+e]+i['margin'+('Height'===e?'Top':'Left')]+i['margin'+('Height'===e?'Bottom':'Right')]:0)}function h(){var e=window.document.body,t=window.document.documentElement,o=ie()&&window.getComputedStyle(t);return{height:m('Height',e,t,o),width:m('Width',e,t,o)}}function c(e){return se({},e,{right:e.left+e.width,bottom:e.top+e.height})}function g(e){var o={};if(ie())try{o=e.getBoundingClientRect();var i=a(e,'top'),n=a(e,'left');o.top+=i,o.left+=n,o.bottom+=i,o.right+=n}catch(e){}else o=e.getBoundingClientRect();var r={left:o.left,top:o.top,width:o.right-o.left,height:o.bottom-o.top},p='HTML'===e.nodeName?h():{},s=p.width||e.clientWidth||r.right-r.left,d=p.height||e.clientHeight||r.bottom-r.top,f=e.offsetWidth-s,m=e.offsetHeight-d;if(f||m){var g=t(e);f-=l(g,'x'),m-=l(g,'y'),r.width-=f,r.height-=m}return c(r)}function u(e,o){var i=ie(),r='HTML'===o.nodeName,p=g(e),s=g(o),d=n(e),a=t(o),l=+a.borderTopWidth.split('px')[0],m=+a.borderLeftWidth.split('px')[0],h=c({top:p.top-s.top-l,left:p.left-s.left-m,width:p.width,height:p.height});if(h.marginTop=0,h.marginLeft=0,!i&&r){var u=+a.marginTop.split('px')[0],b=+a.marginLeft.split('px')[0];h.top-=l-u,h.bottom-=l-u,h.left-=m-b,h.right-=m-b,h.marginTop=u,h.marginLeft=b}return(i?o.contains(d):o===d&&'BODY'!==d.nodeName)&&(h=f(h,o)),h}function b(e){var t=window.document.documentElement,o=u(e,t),i=_(t.clientWidth,window.innerWidth||0),n=_(t.clientHeight,window.innerHeight||0),r=a(t),p=a(t,'left'),s={top:r-o.top+o.marginTop,left:p-o.left+o.marginLeft,width:i,height:n};return c(s)}function y(e){var i=e.nodeName;return'BODY'===i||'HTML'===i?!1:'fixed'===t(e,'position')||y(o(e))}function w(e,t,i,r){var p={top:0,left:0},s=d(e,t);if('viewport'===r)p=b(s);else{var a;'scrollParent'===r?(a=n(o(e)),'BODY'===a.nodeName&&(a=window.document.documentElement)):'window'===r?a=window.document.documentElement:a=r;var f=u(a,s);if('HTML'===a.nodeName&&!y(s)){var l=h(),m=l.height,c=l.width;p.top+=f.top-f.marginTop,p.bottom=m+f.top,p.left+=f.left-f.marginLeft,p.right=c+f.left}else p=f}return p.left+=i,p.top+=i,p.right-=i,p.bottom-=i,p}function v(e){var t=e.width,o=e.height;return t*o}function E(e,t,o,i,n){var r=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf('auto'))return e;var p=w(o,i,r,n),s={top:{width:p.width,height:t.top-p.top},right:{width:p.right-t.right,height:p.height},bottom:{width:p.width,height:p.bottom-t.bottom},left:{width:t.left-p.left,height:p.height}},d=Object.keys(s).map(function(e){return se({key:e},s[e],{area:v(s[e])})}).sort(function(e,t){return t.area-e.area}),a=d.filter(function(e){var t=e.width,i=e.height;return t>=o.clientWidth&&i>=o.clientHeight}),f=0<a.length?a[0].key:d[0].key,l=e.split('-')[1];return f+(l?'-'+l:'')}function x(e,t,o){var i=d(t,o);return u(o,i)}function O(e){var t=window.getComputedStyle(e),o=parseFloat(t.marginTop)+parseFloat(t.marginBottom),i=parseFloat(t.marginLeft)+parseFloat(t.marginRight),n={width:e.offsetWidth+i,height:e.offsetHeight+o};return n}function L(e){var t={left:'right',right:'left',bottom:'top',top:'bottom'};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function S(e,t,o){o=o.split('-')[0];var i=O(e),n={width:i.width,height:i.height},r=-1!==['right','left'].indexOf(o),p=r?'top':'left',s=r?'left':'top',d=r?'height':'width',a=r?'width':'height';return n[p]=t[p]+t[d]/2-i[d]/2,n[s]=o===s?t[s]-i[a]:t[L(s)],n}function T(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function C(e,t,o){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===o});var i=T(e,function(e){return e[t]===o});return e.indexOf(i)}function N(t,o,i){var n=void 0===i?t:t.slice(0,C(t,'name',i));return n.forEach(function(t){t.function&&console.warn('`modifier.function` is deprecated, use `modifier.fn`!');var i=t.function||t.fn;t.enabled&&e(i)&&(o.offsets.popper=c(o.offsets.popper),o.offsets.reference=c(o.offsets.reference),o=i(o,t))}),o}function k(){if(!this.state.isDestroyed){var e={instance:this,styles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=x(this.state,this.popper,this.reference),e.placement=E(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.offsets.popper=S(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position='absolute',e=N(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function W(e,t){return e.some(function(e){var o=e.name,i=e.enabled;return i&&o===t})}function B(e){for(var t=[!1,'ms','Webkit','Moz','O'],o=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length-1;n++){var i=t[n],r=i?''+i+o:e;if('undefined'!=typeof window.document.body.style[r])return r}return null}function D(){return this.state.isDestroyed=!0,W(this.modifiers,'applyStyle')&&(this.popper.removeAttribute('x-placement'),this.popper.style.left='',this.popper.style.position='',this.popper.style.top='',this.popper.style[B('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function H(e,t,o,i){var r='BODY'===e.nodeName,p=r?window:e;p.addEventListener(t,o,{passive:!0}),r||H(n(p.parentNode),t,o,i),i.push(p)}function P(e,t,o,i){o.updateBound=i,window.addEventListener('resize',o.updateBound,{passive:!0});var r=n(e);return H(r,'scroll',o.updateBound,o.scrollParents),o.scrollElement=r,o.eventsEnabled=!0,o}function A(){this.state.eventsEnabled||(this.state=P(this.reference,this.options,this.state,this.scheduleUpdate))}function M(e,t){return window.removeEventListener('resize',t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener('scroll',t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function I(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=M(this.reference,this.state))}function R(e){return''!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function U(e,t){Object.keys(t).forEach(function(o){var i='';-1!==['width','height','top','right','bottom','left'].indexOf(o)&&R(t[o])&&(i='px'),e.style[o]=t[o]+i})}function Y(e,t){Object.keys(t).forEach(function(o){var i=t[o];!1===i?e.removeAttribute(o):e.setAttribute(o,t[o])})}function F(e,t,o){var i=T(e,function(e){var o=e.name;return o===t}),n=!!i&&e.some(function(e){return e.name===o&&e.enabled&&e.order<i.order});if(!n){var r='`'+t+'`';console.warn('`'+o+'`'+' modifier is required by '+r+' modifier in order to work, be sure to include it before '+r+'!')}return n}function j(e){return'end'===e?'start':'start'===e?'end':e}function K(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=ae.indexOf(e),i=ae.slice(o+1).concat(ae.slice(0,o));return t?i.reverse():i}function q(e,t,o,i){var n=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+n[1],p=n[2];if(!r)return e;if(0===p.indexOf('%')){var s;switch(p){case'%p':s=o;break;case'%':case'%r':default:s=i;}var d=c(s);return d[t]/100*r}if('vh'===p||'vw'===p){var a;return a='vh'===p?_(document.documentElement.clientHeight,window.innerHeight||0):_(document.documentElement.clientWidth,window.innerWidth||0),a/100*r}return r}function G(e,t,o,i){var n=[0,0],r=-1!==['right','left'].indexOf(i),p=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=p.indexOf(T(p,function(e){return-1!==e.search(/,|\s/)}));p[s]&&-1===p[s].indexOf(',')&&console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');var d=/\s*,\s*|\s+/,a=-1===s?[p]:[p.slice(0,s).concat([p[s].split(d)[0]]),[p[s].split(d)[1]].concat(p.slice(s+1))];return a=a.map(function(e,i){var n=(1===i?!r:r)?'height':'width',p=!1;return e.reduce(function(e,t){return''===e[e.length-1]&&-1!==['+','-'].indexOf(t)?(e[e.length-1]=t,p=!0,e):p?(e[e.length-1]+=t,p=!1,e):e.concat(t)},[]).map(function(e){return q(e,n,t,o)})}),a.forEach(function(e,t){e.forEach(function(o,i){R(o)&&(n[t]+=o*('-'===e[i-1]?-1:1))})}),n}for(var z=Math.min,V=Math.floor,_=Math.max,X=['native code','[object MutationObserverConstructor]'],Q=function(e){return X.some(function(t){return-1<(e||'').toString().indexOf(t)})},J='undefined'!=typeof window,Z=['Edge','Trident','Firefox'],$=0,ee=0;ee<Z.length;ee+=1)if(J&&0<=navigator.userAgent.indexOf(Z[ee])){$=1;break}var i,te=J&&Q(window.MutationObserver),oe=te?function(e){var t=!1,o=0,i=document.createElement('span'),n=new MutationObserver(function(){e(),t=!1});return n.observe(i,{attributes:!0}),function(){t||(t=!0,i.setAttribute('x-index',o),++o)}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},$))}},ie=function(){return void 0==i&&(i=-1!==navigator.appVersion.indexOf('MSIE 10')),i},ne=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')},re=function(){function e(e,t){for(var o,n=0;n<t.length;n++)o=t[n],o.enumerable=o.enumerable||!1,o.configurable=!0,'value'in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),pe=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},se=Object.assign||function(e){for(var t,o=1;o<arguments.length;o++)for(var i in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},de=['auto-start','auto','auto-end','top-start','top','top-end','right-start','right','right-end','bottom-end','bottom','bottom-start','left-end','left','left-start'],ae=de.slice(3),fe={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'},le=function(){function t(o,i){var n=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};ne(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=oe(this.update.bind(this)),this.options=se({},t.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=o.jquery?o[0]:o,this.popper=i.jquery?i[0]:i,this.options.modifiers={},Object.keys(se({},t.Defaults.modifiers,r.modifiers)).forEach(function(e){n.options.modifiers[e]=se({},t.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return se({name:e},n.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(t){t.enabled&&e(t.onLoad)&&t.onLoad(n.reference,n.popper,n.options,t,n.state)}),this.update();var p=this.options.eventsEnabled;p&&this.enableEventListeners(),this.state.eventsEnabled=p}return re(t,[{key:'update',value:function(){return k.call(this)}},{key:'destroy',value:function(){return D.call(this)}},{key:'enableEventListeners',value:function(){return A.call(this)}},{key:'disableEventListeners',value:function(){return I.call(this)}}]),t}();return le.Utils=('undefined'==typeof window?global:window).PopperUtils,le.placements=de,le.Defaults={placement:'bottom',eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,o=t.split('-')[0],i=t.split('-')[1];if(i){var n=e.offsets,r=n.reference,p=n.popper,s=-1!==['bottom','top'].indexOf(o),d=s?'left':'top',a=s?'width':'height',f={start:pe({},d,r[d]),end:pe({},d,r[d]+r[a]-p[a])};e.offsets.popper=se({},p,f[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var o,i=t.offset,n=e.placement,r=e.offsets,p=r.popper,s=r.reference,d=n.split('-')[0];return o=R(+i)?[+i,0]:G(i,p,s,d),'left'===d?(p.top+=o[0],p.left-=o[1]):'right'===d?(p.top+=o[0],p.left+=o[1]):'top'===d?(p.left+=o[0],p.top-=o[1]):'bottom'===d&&(p.left+=o[0],p.top+=o[1]),e.popper=p,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var o=t.boundariesElement||r(e.instance.popper);e.instance.reference===o&&(o=r(o));var i=w(e.instance.popper,e.instance.reference,t.padding,o);t.boundaries=i;var n=t.priority,p=e.offsets.popper,s={primary:function(e){var o=p[e];return p[e]<i[e]&&!t.escapeWithReference&&(o=_(p[e],i[e])),pe({},e,o)},secondary:function(e){var o='right'===e?'left':'top',n=p[o];return p[e]>i[e]&&!t.escapeWithReference&&(n=z(p[o],i[e]-('right'===e?p.width:p.height))),pe({},o,n)}};return n.forEach(function(e){var t=-1===['left','top'].indexOf(e)?'secondary':'primary';p=se({},p,s[t](e))}),e.offsets.popper=p,e},priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,o=t.popper,i=t.reference,n=e.placement.split('-')[0],r=V,p=-1!==['top','bottom'].indexOf(n),s=p?'right':'bottom',d=p?'left':'top',a=p?'width':'height';return o[s]<r(i[d])&&(e.offsets.popper[d]=r(i[d])-o[a]),o[d]>r(i[s])&&(e.offsets.popper[d]=r(i[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){if(!F(e.instance.modifiers,'arrow','keepTogether'))return e;var o=t.element;if('string'==typeof o){if(o=e.instance.popper.querySelector(o),!o)return e;}else if(!e.instance.popper.contains(o))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),e;var i=e.placement.split('-')[0],n=e.offsets,r=n.popper,p=n.reference,s=-1!==['left','right'].indexOf(i),d=s?'height':'width',a=s?'top':'left',f=s?'left':'top',l=s?'bottom':'right',m=O(o)[d];p[l]-m<r[a]&&(e.offsets.popper[a]-=r[a]-(p[l]-m)),p[a]+m>r[l]&&(e.offsets.popper[a]+=p[a]+m-r[l]);var h=p[a]+p[d]/2-m/2,g=h-c(e.offsets.popper)[a];return g=_(z(r[d]-m,g),0),e.arrowElement=o,e.offsets.arrow={},e.offsets.arrow[a]=Math.round(g),e.offsets.arrow[f]='',e},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(e,t){if(W(e.instance.modifiers,'inner'))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var o=w(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement),i=e.placement.split('-')[0],n=L(i),r=e.placement.split('-')[1]||'',p=[];switch(t.behavior){case fe.FLIP:p=[i,n];break;case fe.CLOCKWISE:p=K(i);break;case fe.COUNTERCLOCKWISE:p=K(i,!0);break;default:p=t.behavior;}return p.forEach(function(s,d){if(i!==s||p.length===d+1)return e;i=e.placement.split('-')[0],n=L(i);var a=e.offsets.popper,f=e.offsets.reference,l=V,m='left'===i&&l(a.right)>l(f.left)||'right'===i&&l(a.left)<l(f.right)||'top'===i&&l(a.bottom)>l(f.top)||'bottom'===i&&l(a.top)<l(f.bottom),h=l(a.left)<l(o.left),c=l(a.right)>l(o.right),g=l(a.top)<l(o.top),u=l(a.bottom)>l(o.bottom),b='left'===i&&h||'right'===i&&c||'top'===i&&g||'bottom'===i&&u,y=-1!==['top','bottom'].indexOf(i),w=!!t.flipVariations&&(y&&'start'===r&&h||y&&'end'===r&&c||!y&&'start'===r&&g||!y&&'end'===r&&u);(m||b||w)&&(e.flipped=!0,(m||b)&&(i=p[d+1]),w&&(r=j(r)),e.placement=i+(r?'-'+r:''),e.offsets.popper=se({},e.offsets.popper,S(e.instance.popper,e.offsets.reference,e.placement)),e=N(e.instance.modifiers,e,'flip'))}),e},behavior:'flip',padding:5,boundariesElement:'viewport'},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,o=t.split('-')[0],i=e.offsets,n=i.popper,r=i.reference,p=-1!==['left','right'].indexOf(o),s=-1===['top','left'].indexOf(o);return n[p?'left':'top']=r[t]-(s?n[p?'width':'height']:0),e.placement=L(t),e.offsets.popper=c(n),e}},hide:{order:800,enabled:!0,fn:function(e){if(!F(e.instance.modifiers,'hide','preventOverflow'))return e;var t=e.offsets.reference,o=T(e.instance.modifiers,function(e){return'preventOverflow'===e.name}).boundaries;if(t.bottom<o.top||t.left>o.right||t.top>o.bottom||t.right<o.left){if(!0===e.hide)return e;e.hide=!0,e.attributes['x-out-of-boundaries']=''}else{if(!1===e.hide)return e;e.hide=!1,e.attributes['x-out-of-boundaries']=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var o=t.x,i=t.y,n=e.offsets.popper,p=T(e.instance.modifiers,function(e){return'applyStyle'===e.name}).gpuAcceleration;void 0!==p&&console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');var s,d,a=void 0===p?t.gpuAcceleration:p,f=r(e.instance.popper),l=g(f),m={position:n.position},h={left:V(n.left),top:V(n.top),bottom:V(n.bottom),right:V(n.right)},c='bottom'===o?'top':'bottom',u='right'===i?'left':'right',b=B('transform');if(d='bottom'==c?-l.height+h.bottom:h.top,s='right'==u?-l.width+h.right:h.left,a&&b)m[b]='translate3d('+s+'px, '+d+'px, 0)',m[c]=0,m[u]=0,m.willChange='transform';else{var y='bottom'==c?-1:1,w='right'==u?-1:1;m[c]=d*y,m[u]=s*w,m.willChange=c+', '+u}var v={"x-placement":e.placement};return e.attributes=se({},v,e.attributes),e.styles=se({},m,e.styles),e},gpuAcceleration:!0,x:'bottom',y:'right'},applyStyle:{order:900,enabled:!0,fn:function(e){return U(e.instance.popper,e.styles),Y(e.instance.popper,e.attributes),e.offsets.arrow&&U(e.arrowElement,e.offsets.arrow),e},onLoad:function(e,t,o,i,n){var r=x(n,t,e),p=E(o.placement,r,t,e,o.modifiers.flip.boundariesElement,o.modifiers.flip.padding);return t.setAttribute('x-placement',p),U(t,{position:'absolute'}),o},gpuAcceleration:void 0}}},le});
8839
8840//# sourceMappingURL=popper.min.js.map
8841
8842/*!
8843  * Bootstrap v4.3.1 (https://getbootstrap.com/)
8844  * Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
8845  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
8846  */
8847!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e((t=t||self).bootstrap={},t.jQuery,t.Popper)}(this,function(t,g,u){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function l(o){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},e=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),e.forEach(function(t){var e,n,i;e=o,i=r[n=t],n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i})}return o}g=g&&g.hasOwnProperty("default")?g.default:g,u=u&&u.hasOwnProperty("default")?u.default:u;var e="transitionend";function n(t){var e=this,n=!1;return g(this).one(_.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||_.triggerTransitionEnd(e)},t),this}var _={TRANSITION_END:"bsTransitionEnd",getUID:function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=g(t).css("transition-duration"),n=g(t).css("transition-delay"),i=parseFloat(e),o=parseFloat(n);return i||o?(e=e.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(e)+parseFloat(n))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){g(t).trigger(e)},supportsTransitionEnd:function(){return Boolean(e)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],r=e[i],s=r&&_.isElement(r)?"element":(a=r,{}.toString.call(a).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(o).test(s))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+s+'" but expected type "'+o+'".')}var a},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"!=typeof t.getRootNode)return t instanceof ShadowRoot?t:t.parentNode?_.findShadowRoot(t.parentNode):null;var e=t.getRootNode();return e instanceof ShadowRoot?e:null}};g.fn.emulateTransitionEnd=n,g.event.special[_.TRANSITION_END]={bindType:e,delegateType:e,handle:function(t){if(g(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var o="alert",r="bs.alert",a="."+r,c=g.fn[o],h={CLOSE:"close"+a,CLOSED:"closed"+a,CLICK_DATA_API:"click"+a+".data-api"},f="alert",d="fade",m="show",p=function(){function i(t){this._element=t}var t=i.prototype;return t.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},t.dispose=function(){g.removeData(this._element,r),this._element=null},t._getRootElement=function(t){var e=_.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=g(t).closest("."+f)[0]),n},t._triggerCloseEvent=function(t){var e=g.Event(h.CLOSE);return g(t).trigger(e),e},t._removeElement=function(e){var n=this;if(g(e).removeClass(m),g(e).hasClass(d)){var t=_.getTransitionDurationFromElement(e);g(e).one(_.TRANSITION_END,function(t){return n._destroyElement(e,t)}).emulateTransitionEnd(t)}else this._destroyElement(e)},t._destroyElement=function(t){g(t).detach().trigger(h.CLOSED).remove()},i._jQueryInterface=function(n){return this.each(function(){var t=g(this),e=t.data(r);e||(e=new i(this),t.data(r,e)),"close"===n&&e[n](this)})},i._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},s(i,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),i}();
8847g(document).on(h.CLICK_DATA_API,'[data-dismiss="alert"]',p._handleDismiss(new p)),g.fn[o]=p._jQueryInterface,g.fn[o].Constructor=p,g.fn[o].noConflict=function(){return g.fn[o]=c,p._jQueryInterface};var v="button",y="bs.button",E="."+y,C=".data-api",T=g.fn[v],S="active",b="btn",I="focus",D='[data-toggle^="button"]',w='[data-toggle="buttons"]',A='input:not([type="hidden"])',N=".active",O=".btn",k={CLICK_DATA_API:"click"+E+C,FOCUS_BLUR_DATA_API:"focus"+E+C+" blur"+E+C},P=function(){function n(t){this._element=t}var t=n.prototype;return t.toggle=function(){var t=!0,e=!0,n=g(this._element).closest(w)[0];if(n){var i=this._element.querySelector(A);if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains(S))t=!1;else{var o=n.querySelector(N);o&&g(o).removeClass(S)}if(t){if(i.hasAttribute("disabled")||n.hasAttribute("disabled")||i.classList.contains("disabled")||n.classList.contains("disabled"))return;i.checked=!this._element.classList.contains(S),g(i).trigger("change")}i.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(S)),t&&g(this._element).toggleClass(S)},t.dispose=function(){g.removeData(this._element,y),this._element=null},n._jQueryInterface=function(e){return this.each(function(){var t=g(this).data(y);t||(t=new n(this),g(this).data(y,t)),"toggle"===e&&t[e]()})},s(n,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),n}();g(document).on(k.CLICK_DATA_API,D,function(t){t.preventDefault();var e=t.target;g(e).hasClass(b)||(e=g(e).closest(O)),P._jQueryInterface.call(g(e),"toggle")}).on(k.FOCUS_BLUR_DATA_API,D,function(t){var e=g(t.target).closest(O)[0];g(e).toggleClass(I,/^focus(in)?$/.test(t.type))}),g.fn[v]=P._jQueryInterface,g.fn[v].Constructor=P,g.fn[v].noConflict=function(){return g.fn[v]=T,P._jQueryInterface};var L="carousel",j="bs.carousel",H="."+j,R=".data-api",x=g.fn[L],F={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},U={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},W="next",q="prev",M="left",K="right",Q={SLIDE:"slide"+H,SLID:"slid"+H,KEYDOWN:"keydown"+H,MOUSEENTER:"mouseenter"+H,MOUSELEAVE:"mouseleave"+H,TOUCHSTART:"touchstart"+H,TOUCHMOVE:"touchmove"+H,TOUCHEND:"touchend"+H,POINTERDOWN:"pointerdown"+H,POINTERUP:"pointerup"+H,DRAG_START:"dragstart"+H,LOAD_DATA_API:"load"+H+R,CLICK_DATA_API:"click"+H+R},B="carousel",V="active",Y="slide",z="carousel-item-right",X="carousel-item-left",$="carousel-item-next",G="carousel-item-prev",J="pointer-event",Z=".active",tt=".active.carousel-item",et=".carousel-item",nt=".carousel-item img",it=".carousel-item-next, .carousel-item-prev",ot=".carousel-indicators",rt="[data-slide], [data-slide-to]",st='[data-ride="carousel"]',at={TOUCH:"touch",PEN:"pen"},lt=function(){function r(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(ot),this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var t=r.prototype;return t.next=function(){this._isSliding||this._slide(W)},t.nextWhenVisible=function(){!document.hidden&&g(this._element).is(":visible")&&"hidden"!==g(this._element).css("visibility")&&this.next()},t.prev=function(){this._isSliding||this._slide(q)},t.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(it)&&(_.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},t.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},t.to=function(t){var e=this;this._activeElement=this._element.querySelector(tt);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)g(this._element).one(Q.SLID,function(){return e.to(t)});else{if(n===t)return this.pause(),void this.cycle();var i=n<t?W:q;this._slide(i,this._items[t])}},t.dispose=function(){g(this._element).off(H),g.removeData(this._element,j),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},t._getConfig=function(t){return t=l({},F,t),_.typeCheckConfig(L,t,U),t},t._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;0<e&&this.prev(),e<0&&this.next()}},t._addEventListeners=function(){var e=this;this._config.keyboard&&g(this._element).on(Q.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&g(this._element).on(Q.MOUSEENTER,function(t){return e.pause(t)}).on(Q.MOUSELEAVE,function(t){return e.cycle(t)}),this._config.touch&&this._addTouchEventListeners()},t._addTouchEventListeners=function(){var n=this;if(this._touchSupported){var e=function(t){n._pointerEvent&&at[t.originalEvent.pointerType.toUpperCase()]?n.touchStartX=t.originalEvent.clientX:n._pointerEvent||(n.touchStartX=t.originalEvent.touches[0].clientX)},i=function(t){n._pointerEvent&&at[t.originalEvent.pointerType.toUpperCase()]&&(n.touchDeltaX=t.originalEvent.clientX-n.touchStartX),n._handleSwipe(),"hover"===n._config.pause&&(n.pause(),n.touchTimeout&&clearTimeout(n.touchTimeout),n.touchTimeout=setTimeout(function(t){return n.cycle(t)},500+n._config.interval))};g(this._element.querySelectorAll(nt)).on(Q.DRAG_START,function(t){return t.preventDefault()}),this._pointerEvent?(g(this._element).on(Q.POINTERDOWN,function(t){return e(t)}),g(this._element).on(Q.POINTERUP,function(t){return i(t)}),this._element.classList.add(J)):(g(this._element).on(Q.TOUCHSTART,function(t){return e(t)}),g(this._element).on(Q.TOUCHMOVE,function(t){var e;(e=t).originalEvent.touches&&1<e.originalEvent.touches.length?n.touchDeltaX=0:n.touchDeltaX=e.originalEvent.touches[0].clientX-n.touchStartX}),g(this._element).on(Q.TOUCHEND,function(t){return i(t)}))}},t._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},t._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(et)):[],this._items.indexOf(t)},t._getItemByDirection=function(t,e){var n=t===W,i=t===q,o=this._getItemIndex(e),r=this._items.length-1;if((i&&0===o||n&&o===r)&&!this._config.wrap)return e;var s=(o+(t===q?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},t._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),i=this._getItemIndex(this._element.querySelector(tt)),o=g.Event(Q.SLIDE,{relatedTarget:t,direction:e,from:i,to:n});return g(this._element).trigger(o),o},t._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(Z));g(e).removeClass(V);var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&g(n).addClass(V)}},t._slide=function(t,e){var n,i,o,r=this,s=this._element.querySelector(tt),a=this._getItemIndex(s),l=e||s&&this._getItemByDirection(t,s),c=this._getItemIndex(l),h=Boolean(this._interval);if(o=t===W?(n=X,i=$,M):(n=z,i=G,K),l&&g(l).hasClass(V))this._isSliding=!1;else if(!this._triggerSlideEvent(l,o).isDefaultPrevented()&&s&&l){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(l);var u=g.Event(Q.SLID,{relatedTarget:l,direction:o,from:a,to:c});if(g(this._element).hasClass(Y)){g(l).addClass(i),_.reflow(l),g(s).addClass(n),g(l).addClass(n);var f=parseInt(l.getAttribute("data-interval"),10);this._config.interval=f?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,f):this._config.defaultInterval||this._config.interval;var d=_.getTransitionDurationFromElement(s);g(s).one(_.TRANSITION_END,function(){g(l).removeClass(n+" "+i).addClass(V),g(s).removeClass(V+" "+i+" "+n),r._isSliding=!1,setTimeout(function(){return g(r._element).trigger(u)},0)}).emulateTransitionEnd(d)}else g(s).removeClass(V),g(l).addClass(V),this._isSliding=!1,g(this._element).trigger(u);h&&this.cycle()}},r._jQueryInterface=function(i){return this.each(function(){var t=g(this).data(j),e=l({},F,g(this).data());"object"==typeof i&&(e=l({},e,i));var n="string"==typeof i?i:e.slide;if(t||(t=new r(this,e),g(this).data(j,t)),"number"==typeof i)t.to(i);else if("string"==typeof n){if("undefined"==typeof t[n])throw new TypeError('No method n
8847amed "'+n+'"');t[n]()}else e.interval&&e.ride&&(t.pause(),t.cycle())})},r._dataApiClickHandler=function(t){var e=_.getSelectorFromElement(this);if(e){var n=g(e)[0];if(n&&g(n).hasClass(B)){var i=l({},g(n).data(),g(this).data()),o=this.getAttribute("data-slide-to");o&&(i.interval=!1),r._jQueryInterface.call(g(n),i),o&&g(n).data(j).to(o),t.preventDefault()}}},s(r,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return F}}]),r}();g(document).on(Q.CLICK_DATA_API,rt,lt._dataApiClickHandler),g(window).on(Q.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(st)),e=0,n=t.length;e<n;e++){var i=g(t[e]);lt._jQueryInterface.call(i,i.data())}}),g.fn[L]=lt._jQueryInterface,g.fn[L].Constructor=lt,g.fn[L].noConflict=function(){return g.fn[L]=x,lt._jQueryInterface};var ct="collapse",ht="bs.collapse",ut="."+ht,ft=g.fn[ct],dt={toggle:!0,parent:""},gt={toggle:"boolean",parent:"(string|element)"},_t={SHOW:"show"+ut,SHOWN:"shown"+ut,HIDE:"hide"+ut,HIDDEN:"hidden"+ut,CLICK_DATA_API:"click"+ut+".data-api"},mt="show",pt="collapse",vt="collapsing",yt="collapsed",Et="width",Ct="height",Tt=".show, .collapsing",St='[data-toggle="collapse"]',bt=function(){function a(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(St)),i=0,o=n.length;i<o;i++){var r=n[i],s=_.getSelectorFromElement(r),a=[].slice.call(document.querySelectorAll(s)).filter(function(t){return t===e});null!==s&&0<a.length&&(this._selector=s,this._triggerArray.push(r))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var t=a.prototype;return t.toggle=function(){g(this._element).hasClass(mt)?this.hide():this.show()},t.show=function(){var t,e,n=this;if(!this._isTransitioning&&!g(this._element).hasClass(mt)&&(this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(Tt)).filter(function(t){return"string"==typeof n._config.parent?t.getAttribute("data-parent")===n._config.parent:t.classList.contains(pt)})).length&&(t=null),!(t&&(e=g(t).not(this._selector).data(ht))&&e._isTransitioning))){var i=g.Event(_t.SHOW);if(g(this._element).trigger(i),!i.isDefaultPrevented()){t&&(a._jQueryInterface.call(g(t).not(this._selector),"hide"),e||g(t).data(ht,null));var o=this._getDimension();g(this._element).removeClass(pt).addClass(vt),this._element.style[o]=0,this._triggerArray.length&&g(this._triggerArray).removeClass(yt).attr("aria-expanded",!0),this.setTransitioning(!0);var r="scroll"+(o[0].toUpperCase()+o.slice(1)),s=_.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END,function(){g(n._element).removeClass(vt).addClass(pt).addClass(mt),n._element.style[o]="",n.setTransitioning(!1),g(n._element).trigger(_t.SHOWN)}).emulateTransitionEnd(s),this._element.style[o]=this._element[r]+"px"}}},t.hide=function(){var t=this;if(!this._isTransitioning&&g(this._element).hasClass(mt)){var e=g.Event(_t.HIDE);if(g(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",_.reflow(this._element),g(this._element).addClass(vt).removeClass(pt).removeClass(mt);var i=this._triggerArray.length;if(0<i)for(var o=0;o<i;o++){var r=this._triggerArray[o],s=_.getSelectorFromElement(r);if(null!==s)g([].slice.call(document.querySelectorAll(s))).hasClass(mt)||g(r).addClass(yt).attr("aria-expanded",!1)}this.setTransitioning(!0);this._element.style[n]="";var a=_.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END,function(){t.setTransitioning(!1),g(t._element).removeClass(vt).addClass(pt).trigger(_t.HIDDEN)}).emulateTransitionEnd(a)}}},t.setTransitioning=function(t){this._isTransitioning=t},t.dispose=function(){g.removeData(this._element,ht),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},t._getConfig=function(t){return(t=l({},dt,t)).toggle=Boolean(t.toggle),_.typeCheckConfig(ct,t,gt),t},t._getDimension=function(){return g(this._element).hasClass(Et)?Et:Ct},t._getParent=function(){var t,n=this;_.isElement(this._config.parent)?(t=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(t=this._config.parent[0])):t=document.querySelector(this._config.parent);var e='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',i=[].slice.call(t.querySelectorAll(e));return g(i).each(function(t,e){n._addAriaAndCollapsedClass(a._getTargetFromElement(e),[e])}),t},t._addAriaAndCollapsedClass=function(t,e){var n=g(t).hasClass(mt);e.length&&g(e).toggleClass(yt,!n).attr("aria-expanded",n)},a._getTargetFromElement=function(t){var e=_.getSelectorFromElement(t);return e?document.querySelector(e):null},a._jQueryInterface=function(i){return this.each(function(){var t=g(this),e=t.data(ht),n=l({},dt,t.data(),"object"==typeof i&&i?i:{});if(!e&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),e||(e=new a(this,n),t.data(ht,e)),"string"==typeof i){if("undefined"==typeof e[i])throw new TypeError('No method n
8847amed "'+i+'"');e[i]()}})},s(a,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return dt}}]),a}();g(document).on(_t.CLICK_DATA_API,St,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var n=g(this),e=_.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(e));g(i).each(function(){var t=g(this),e=t.data(ht)?"toggle":n.data();bt._jQueryInterface.call(t,e)})}),g.fn[ct]=bt._jQueryInterface,g.fn[ct].Constructor=bt,g.fn[ct].noConflict=function(){return g.fn[ct]=ft,bt._jQueryInterface};var It="dropdown",Dt="bs.dropdown",wt="."+Dt,At=".data-api",Nt=g.fn[It],Ot=new RegExp("38|40|27"),kt={HIDE:"hide"+wt,HIDDEN:"hidden"+wt,SHOW:"show"+wt,SHOWN:"shown"+wt,CLICK:"click"+wt,CLICK_DATA_API:"click"+wt+At,KEYDOWN_DATA_API:"keydown"+wt+At,KEYUP_DATA_API:"keyup"+wt+At},Pt="disabled",Lt="show",jt="dropup",Ht="dropright",Rt="dropleft",xt="dropdown-menu-right",Ft="position-static",Ut='[data-toggle="dropdown"]',Wt=".dropdown form",qt=".dropdown-menu",Mt=".navbar-nav",Kt=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Qt="top-start",Bt="top-end",Vt="bottom-start",Yt="bottom-end",zt="right-start",Xt="left-start",$t={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},Gt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},Jt=function(){function c(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var t=c.prototype;return t.toggle=function(){if(!this._element.disabled&&!g(this._element).hasClass(Pt)){var t=c._getParentFromElement(this._element),e=g(this._menu).hasClass(Lt);if(c._clearMenus(),!e){var n={relatedTarget:this._element},i=g.Event(kt.SHOW,n);if(g(t).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar){if("undefined"==typeof u)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var o=this._element;"parent"===this._config.reference?o=t:_.isElement(this._config.reference)&&(o=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(o=this._config.reference[0])),"scrollParent"!==this._config.boundary&&g(t).addClass(Ft),this._popper=new u(o,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===g(t).closest(Mt).length&&g(document.body).children().on("mouseover",null,g.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),g(this._menu).toggleClass(Lt),g(t).toggleClass(Lt).trigger(g.Event(kt.SHOWN,n))}}}},t.show=function(){if(!(this._element.disabled||g(this._element).hasClass(Pt)||g(this._menu).hasClass(Lt))){var t={relatedTarget:this._element},e=g.Event(kt.SHOW,t),n=c._getParentFromElement(this._element);g(n).trigger(e),e.isDefaultPrevented()||(g(this._menu).toggleClass(Lt),g(n).toggleClass(Lt).trigger(g.Event(kt.SHOWN,t)))}},t.hide=function(){if(!this._element.disabled&&!g(this._element).hasClass(Pt)&&g(this._menu).hasClass(Lt)){var t={relatedTarget:this._element},e=g.Event(kt.HIDE,t),n=c._getParentFromElement(this._element);g(n).trigger(e),e.isDefaultPrevented()||(g(this._menu).toggleClass(Lt),g(n).toggleClass(Lt).trigger(g.Event(kt.HIDDEN,t)))}},t.dispose=function(){g.removeData(this._element,Dt),g(this._element).off(wt),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},t.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},t._addEventListeners=function(){var e=this;g(this._element).on(kt.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},t._getConfig=function(t){return t=l({},this.constructor.Default,g(this._element).data(),t),_.typeCheckConfig(It,t,this.constructor.DefaultType),t},t._getMenuElement=function(){if(!this._menu){var t=c._getParentFromElement(this._element);t&&(this._menu=t.querySelector(qt))}return this._menu},t._getPlacement=function(){var t=g(this._element.parentNode),e=Vt;return t.hasClass(jt)?(e=Qt,g(this._menu).hasClass(xt)&&(e=Bt)):t.hasClass(Ht)?e=zt:t.hasClass(Rt)?e=Xt:g(this._menu).hasClass(xt)&&(e=Yt),e},t._detectNavbar=function(){return 0<g(this._element).closest(".
8847navbar").length},t._getOffset=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e._config.offset(t.offsets,e._element)||{}),t}:t.offset=this._config.offset,t},t._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),t},c._jQueryInterface=function(e){return this.each(function(){var t=g(this).data(Dt);if(t||(t=new c(this,"object"==typeof e?e:null),g(this).data(Dt,t)),"string"==typeof e){if("undefined"==typeof t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},c._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var e=[].slice.call(document.querySelectorAll(Ut)),n=0,i=e.length;n<i;n++){var o=c._getParentFromElement(e[n]),r=g(e[n]).data(Dt),s={relatedTarget:e[n]};if(t&&"click"===t.type&&(s.clickEvent=t),r){var a=r._menu;if(g(o).hasClass(Lt)&&!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&g.contains(o,t.target))){var l=g.Event(kt.HIDE,s);g(o).trigger(l),l.isDefaultPrevented()||("ontouchstart"in document.documentElement&&g(document.body).children().off("mouseover",null,g.noop),e[n].setAttribute("aria-expanded","false"),g(a).removeClass(Lt),g(o).removeClass(Lt).trigger(g.Event(kt.HIDDEN,s)))}}}},c._getParentFromElement=function(t){var e,n=_.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode},c._dataApiKeydownHandler=function(t){if((/input|textarea/i.test(t.target.tagName)?!(32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||g(t.target).closest(qt).length)):Ot.test(t.which))&&(t.preventDefault(),t.stopPropagation(),!this.disabled&&!g(this).hasClass(Pt))){var e=c._getParentFromElement(this),n=g(e).hasClass(Lt);if(n&&(!n||27!==t.which&&32!==t.which)){var i=[].slice.call(e.querySelectorAll(Kt));if(0!==i.length){var o=i.indexOf(t.target);38===t.which&&0<o&&o--,40===t.which&&o<i.length-1&&o++,o<0&&(o=0),i[o].focus()}}else{if(27===t.which){var r=e.querySelector(Ut);g(r).trigger("focus")}g(this).trigger("click")}}},s(c,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return $t}},{key:"DefaultType",get:function(){return Gt}}]),c}();g(document).on(kt.KEYDOWN_DATA_API,Ut,Jt._dataApiKeydownHandler).on(kt.KEYDOWN_DATA_API,qt,Jt._dataApiKeydownHandler).on(kt.CLICK_DATA_API+" "+kt.KEYUP_DATA_API,Jt._clearMenus).on(kt.CLICK_DATA_API,Ut,function(t){t.preventDefault(),t.stopPropagation(),Jt._jQueryInterface.call(g(this),"toggle")}).on(kt.CLICK_DATA_API,Wt,function(t){t.stopPropagation()}),g.fn[It]=Jt._jQueryInterface,g.fn[It].Constructor=Jt,g.fn[It].noConflict=function(){return g.fn[It]=Nt,Jt._jQueryInterface};var Zt="modal",te="bs.modal",ee="."+te,ne=g.fn[Zt],ie={backdrop:!0,keyboard:!0,focus:!0,show:!0},oe={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},re={HIDE:"hide"+ee,HIDDEN:"hidden"+ee,SHOW:"show"+ee,SHOWN:"shown"+ee,FOCUSIN:"focusin"+ee,RESIZE:"resize"+ee,CLICK_DISMISS:"click.dismiss"+ee,KEYDOWN_DISMISS:"keydown.dismiss"+ee,MOUSEUP_DISMISS:"mouseup.dismiss"+ee,MOUSEDOWN_DISMISS:"mousedown.dismiss"+ee,CLICK_DATA_API:"click"+ee+".data-api"},se="modal-dialog-scrollable",ae="modal-scrollbar-measure",le="modal-backdrop",ce="modal-open",he="fade",ue="show",fe=".modal-dialog",de=".modal-body",ge='[data-toggle="modal"]',_e='[data-dismiss="modal"]',me=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",pe=".sticky-top",ve=function(){function o(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(fe),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var t=o.prototype;return t.toggle=function(t){return this._isShown?this.hide():this.show(t)},t.show=function(t){var e=this;if(!this._isShown&&!this._isTransitioning){g(this._element).hasClass(he)&&(this._isTransitioning=!0);var n=g.Event(re.SHOW,{relatedTarget:t});g(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),g(this._element).on(re.CLICK_DISMISS,_e,function(t){return e.hide(t)}),g(this._dialog).on(re.MOUSEDOWN_DISMISS,function(){g(e._element).one(re.MOUSEUP_DISMISS,function(t){g(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return e._showElement(t)}))}},t.hide=function(t){var e=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var n=g.Event(re.HIDE);if(g(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=g(this._element).hasClass(he);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),g(document).off(re.FOCUSIN),g(this._element).removeClass(ue),g(this._element).off(re.CLICK_DISMISS),g(this._dialog).off(re.MOUSEDOWN_DISMISS),i){var o=_.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END,function(t){return e._hideModal(t)}).emulateTransitionEnd(o)}else this._hideModal()}}},t.dispose=function(){[window,this._element,this._dialog].forEach(function(t){return g(t).off(ee)}),g(document).off(re.FOCUSIN),g.removeData(this._element,te),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},t.handleUpdate=function(){this._adjustDialog()},t._getConfig=function(t){return t=l({},ie,t),_.typeCheckConfig(Zt,t,oe),t},t._showElement=function(t){var e=this,n=g(this._element).hasClass(he);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),g(this._dialog).hasClass(se)?this._dialog.querySelector(de).scrollTop=0:this._element.scrollTop=0,n&&_.reflow(this._element),g(this._element).addClass(ue),this._config.focus&&this._enforceFocus();
8847var i=g.Event(re.SHOWN,{relatedTarget:t}),o=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,g(e._element).trigger(i)};if(n){var r=_.getTransitionDurationFromElement(this._dialog);g(this._dialog).one(_.TRANSITION_END,o).emulateTransitionEnd(r)}else o()},t._enforceFocus=function(){var e=this;g(document).off(re.FOCUSIN).on(re.FOCUSIN,function(t){document!==t.target&&e._element!==t.target&&0===g(e._element).has(t.target).length&&e._element.focus()})},t._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?g(this._element).on(re.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),e.hide())}):this._isShown||g(this._element).off(re.KEYDOWN_DISMISS)},t._setResizeEvent=function(){var e=this;this._isShown?g(window).on(re.RESIZE,function(t){return e.handleUpdate(t)}):g(window).off(re.RESIZE)},t._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop(function(){g(document.body).removeClass(ce),t._resetAdjustments(),t._resetScrollbar(),g(t._element).trigger(re.HIDDEN)})},t._removeBackdrop=function(){this._backdrop&&(g(this._backdrop).remove(),this._backdrop=null)},t._showBackdrop=function(t){var e=this,n=g(this._element).hasClass(he)?he:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=le,n&&this._backdrop.classList.add(n),g(this._backdrop).appendTo(document.body),g(this._element).on(re.CLICK_DISMISS,function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._element.focus():e.hide())}),n&&_.reflow(this._backdrop),g(this._backdrop).addClass(ue),!t)return;if(!n)return void t();var i=_.getTransitionDurationFromElement(this._backdrop);g(this._backdrop).one(_.TRANSITION_END,t).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){g(this._backdrop).removeClass(ue);var o=function(){e._removeBackdrop(),t&&t()};if(g(this._element).hasClass(he)){var r=_.getTransitionDurationFromElement(this._backdrop);g(this._backdrop).one(_.TRANSITION_END,o).emulateTransitionEnd(r)}else o()}else t&&t()},t._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},t._setScrollbar=function(){var o=this;if(this._isBodyOverflowing){var t=[].slice.call(document.querySelectorAll(me)),e=[].slice.call(document.querySelectorAll(pe));g(t).each(function(t,e){var n=e.style.paddingRight,i=g(e).css("padding-right");g(e).data("padding-right",n).css("padding-right",parseFloat(i)+o._scrollbarWidth+"px")}),g(e).each(function(t,e){var n=e.style.marginRight,i=g(e).css("margin-right");g(e).data("margin-right",n).css("margin-right",parseFloat(i)-o._scrollbarWidth+"px")});var n=document.body.style.paddingRight,i=g(document.body).css("padding-right");g(document.body).data("padding-right",n).css("padding-right",parseFloat(i)+this._scrollbarWidth+"px")}g(document.body).addClass(ce)},t._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(me));g(t).each(function(t,e){var n=g(e).data("padding-right");g(e).removeData("padding-right"),e.style.paddingRight=n||""});var e=[].slice.call(document.querySelectorAll(""+pe));g(e).each(function(t,e){var n=g(e).data("margin-right");"undefined"!=typeof n&&g(e).css("margin-right",n).removeData("margin-right")});var n=g(document.body).data("padding-right");g(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},t._getScrollbarWidth=function(){var t=document.createElement("div");t.className=ae,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},o._jQueryInterface=function(n,i){return this.each(function(){var t=g(this).data(te),e=l({},ie,g(this).data(),"object"==typeof n&&n?n:{});if(t||(t=new o(this,e),g(this).data(te,t)),"string"==typeof n){if("undefined"==typeof t[n])throw new TypeError('No method n
8847amed "'+n+'"');t[n](i)}else e.show&&t.show(i)})},s(o,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return ie}}]),o}();g(document).on(re.CLICK_DATA_API,ge,function(t){var e,n=this,i=_.getSelectorFromElement(this);i&&(e=document.querySelector(i));var o=g(e).data(te)?"toggle":l({},g(e).data(),g(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var r=g(e).one(re.SHOW,function(t){t.isDefaultPrevented()||r.one(re.HIDDEN,function(){g(n).is(":visible")&&n.focus()})});ve._jQueryInterface.call(g(e),o,this)}),g.fn[Zt]=ve._jQueryInterface,g.fn[Zt].Constructor=ve,g.fn[Zt].noConflict=function(){return g.fn[Zt]=ne,ve._jQueryInterface};var ye=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Ee={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Ce=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Te=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function Se(t,s,e){if(0===t.length)return t;if(e&&"function"==typeof e)return e(t);for(var n=(new window.DOMParser).parseFromString(t,"text/html"),a=Object.keys(s),l=[].slice.call(n.body.querySelectorAll("*")),i=function(t,e){var n=l[t],i=n.nodeName.toLowerCase();if(-1===a.indexOf(n.nodeName.toLowerCase()))return n.parentNode.removeChild(n),"continue";var o=[].slice.call(n.attributes),r=[].concat(s["*"]||[],s[i]||[]);o.forEach(function(t){(function(t,e){var n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===ye.indexOf(n)||Boolean(t.nodeValue.match(Ce)||t.nodeValue.match(Te));for(var i=e.filter(function(t){return t instanceof RegExp}),o=0,r=i.length;o<r;o++)if(n.match(i[o]))return!0;return!1})(t,r)||n.removeAttribute(t.nodeName)})},o=0,r=l.length;o<r;o++)i(o);return n.body.innerHTML}var be="tooltip",Ie="bs.tooltip",De="."+Ie,we=g.fn[be],Ae="bs-tooltip",Ne=new RegExp("(^|\\s)"+Ae+"\\S+","g"),Oe=["sanitize","whiteList","sanitizeFn"],ke={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object"},Pe={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Le={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:Ee},je="show",He="out",Re={HIDE:"hide"+De,HIDDEN:"hidden"+De,SHOW:"show"+De,SHOWN:"shown"+De,INSERTED:"inserted"+De,CLICK:"click"+De,FOCUSIN:"focusin"+De,FOCUSOUT:"focusout"+De,MOUSEENTER:"mouseenter"+De,MOUSELEAVE:"mouseleave"+De},xe="fade",Fe="show",Ue=".tooltip-inner",We=".arrow",qe="hover",Me="focus",Ke="click",Qe="manual",Be=function(){function i(t,e){if("undefined"==typeof u)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var t=i.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=g(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),g(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(g(this.getTipElement()).hasClass(Fe))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),g.removeData(this.element,this.constructor.DATA_KEY),g(this.element).off(this.constructor.EVENT_KEY),g(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&g(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},t.show=function(){var e=this;if("none"===g(this.element).css("display"))throw new Error("Please use show on visible elements");var t=g.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){g(this.element).trigger(t);var n=_.findShadowRoot(this.element),i=g.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!i)return;var o=this.getTipElement(),r=_.getUID(this.constructor.NAME);o.setAttribute("id",r),this.element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&g(o).addClass(xe);var s="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,a=this._getAttachment(s);this.addAttachmentClass(a);var l=this._getContainer();g(o).data(this.constructor.DATA_KEY,this),g.contains(this.element.ownerDocument.documentElement,this.tip)||g(o).appendTo(l),g(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new u(this.element,o,{placement:a,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:We}
8847,preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}}),g(o).addClass(Fe),"ontouchstart"in document.documentElement&&g(document.body).children().on("mouseover",null,g.noop);var c=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,g(e.element).trigger(e.constructor.Event.SHOWN),t===He&&e._leave(null,e)};if(g(this.tip).hasClass(xe)){var h=_.getTransitionDurationFromElement(this.tip);g(this.tip).one(_.TRANSITION_END,c).emulateTransitionEnd(h)}else c()}},t.hide=function(t){var e=this,n=this.getTipElement(),i=g.Event(this.constructor.Event.HIDE),o=function(){e._hoverState!==je&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),g(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(g(this.element).trigger(i),!i.isDefaultPrevented()){if(g(n).removeClass(Fe),"ontouchstart"in document.documentElement&&g(document.body).children().off("mouseover",null,g.noop),this._activeTrigger[Ke]=!1,this._activeTrigger[Me]=!1,this._activeTrigger[qe]=!1,g(this.tip).hasClass(xe)){var r=_.getTransitionDurationFromElement(n);g(n).one(_.TRANSITION_END,o).emulateTransitionEnd(r)}else o();this._hoverState=""}},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(t){g(this.getTipElement()).addClass(Ae+"-"+t)},t.getTipElement=function(){return this.tip=this.tip||g(this.config.template)[0],this.tip},t.setContent=function(){var t=this.getTipElement();this.setElementContent(g(t.querySelectorAll(Ue)),this.getTitle()),g(t).removeClass(xe+" "+Fe)},t.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=Se(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?g(e).parent().is(t)||t.empty().append(e):t.text(g(e).text())},t.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},t._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},t._getContainer=function(){return!1===this.config.container?document.body:_.isElement(this.config.container)?g(this.config.container):g(document).find(this.config.container)},t._getAttachment=function(t){return Pe[t.toUpperCase()]},t._setListeners=function(){var i=this;this.config.trigger.split(" ").forEach(function(t){if("click"===t)g(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(t){return i.toggle(t)});else if(t!==Qe){var e=t===qe?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,n=t===qe?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT;g(i.element).on(e,i.config.selector,function(t){return i._enter(t)}).on(n,i.config.selector,function(t){return i._leave(t)})}}),g(this.element).closest(".modal").on("hide.bs.modal",function(){i.element&&i.hide()}),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},t._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||g(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),g(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?Me:qe]=!0),g(e.getTipElement()).hasClass(Fe)||e._hoverState===je?e._hoverState=je:(clearTimeout(e._timeout),e._hoverState=je,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===je&&e.show()},e.config.delay.show):e.show())},t._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||g(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),g(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?Me:qe]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=He,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){e._hoverState===He&&e.hide()},e.config.delay.hide):e.hide())},t._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},t._getConfig=function(t){var e=g(this.element).data();return Object.keys(e).forEach(function(t){-1!==Oe.indexOf(t)&&delete e[t]}),"number"==typeof(t=l({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),_.typeCheckConfig(be,t,this.constructor.DefaultType),t.sanitize&&(t.template=Se(t.template,t.whiteList,t.sanitizeFn)),t},t._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},t._cleanTipClass=function(){var t=g(this.getTipElement()),e=t.attr("class").match(Ne);null!==e&&e.length&&t.removeClass(e.join(""))},t._handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},t._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(g(t).removeClass(xe),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},i._jQueryInterface=function(n){return this.each(function(){var t=g(this).data(Ie),e="object"==typeof n&&n;if((t||!/dispose|hide/.test(n))&&(t||(t=new i(this,e),g(this).data(Ie,t)),"string"==typeof n)){if("undefined"==typeof t[n])throw new TypeError('No method n
8847amed "'+n+'"');t[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return Le}},{key:"NAME",get:function(){return be}},{key:"DATA_KEY",get:function(){return Ie}},{key:"Event",get:function(){return Re}},{key:"EVENT_KEY",get:function(){return De}},{key:"DefaultType",get:function(){return ke}}]),i}();g.fn[be]=Be._jQueryInterface,g.fn[be].Constructor=Be,g.fn[be].noConflict=function(){return g.fn[be]=we,Be._jQueryInterface};var Ve="popover",Ye="bs.popover",ze="."+Ye,Xe=g.fn[Ve],$e="bs-popover",Ge=new RegExp("(^|\\s)"+$e+"\\S+","g"),Je=l({},Be.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),Ze=l({},Be.DefaultType,{content:"(string|element|function)"}),tn="fade",en="show",nn=".popover-header",on=".popover-body",rn={HIDE:"hide"+ze,HIDDEN:"hidden"+ze,SHOW:"show"+ze,SHOWN:"shown"+ze,INSERTED:"inserted"+ze,CLICK:"click"+ze,FOCUSIN:"focusin"+ze,FOCUSOUT:"focusout"+ze,MOUSEENTER:"mouseenter"+ze,MOUSELEAVE:"mouseleave"+ze},sn=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),(e.prototype.constructor=e).__proto__=n;var o=i.prototype;return o.isWithContent=function(){return this.getTitle()||this._getContent()},o.addAttachmentClass=function(t){g(this.getTipElement()).addClass($e+"-"+t)},o.getTipElement=function(){return this.tip=this.tip||g(this.config.template)[0],this.tip},o.setContent=function(){var t=g(this.getTipElement());this.setElementContent(t.find(nn),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(on),e),t.removeClass(tn+" "+en)},o._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},o._cleanTipClass=function(){var t=g(this.getTipElement()),e=t.attr("class").match(Ge);null!==e&&0<e.length&&t.removeClass(e.join(""))},i._jQueryInterface=function(n){return this.each(function(){var t=g(this).data(Ye),e="object"==typeof n?n:null;if((t||!/dispose|hide/.test(n))&&(t||(t=new i(this,e),g(this).data(Ye,t)),"string"==typeof n)){if("undefined"==typeof t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return Je}},{key:"NAME",get:function(){return Ve}},{key:"DATA_KEY",get:function(){return Ye}},{key:"Event",get:function(){return rn}},{key:"EVENT_KEY",get:function(){return ze}},{key:"DefaultType",get:function(){return Ze}}]),i}(Be);g.fn[Ve]=sn._jQueryInterface,g.fn[Ve].Constructor=sn,g.fn[Ve].noConflict=function(){return g.fn[Ve]=Xe,sn._jQueryInterface};var an="scrollspy",ln="bs.scrollspy",cn="."+ln,hn=g.fn[an],un={offset:10,method:"auto",target:""},fn={offset:"number",method:"string",target:"(string|element)"},dn={ACTIVATE:"activate"+cn,SCROLL:"scroll"+cn,LOAD_DATA_API:"load"+cn+".data-api"},gn="dropdown-item",_n="active",mn='[data-spy="scroll"]',pn=".nav, .list-group",vn=".nav-link",yn=".nav-item",En=".list-group-item",Cn=".dropdown",Tn=".dropdown-item",Sn=".dropdown-toggle",bn="offset",In="position",Dn=function(){function n(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+vn+","+this._config.target+" "+En+","+this._config.target+" "+Tn,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,g(this._scrollElement).on(dn.SCROLL,function(t){return n._process(t)}),this.refresh(),this._process()}var t=n.prototype;return t.refresh=function(){var e=this,t=this._scrollElement===this._scrollElement.window?bn:In,o="auto"===this._config.method?t:this._config.method,r=o===In?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(t){var e,n=_.getSelectorFromElement(t);if(n&&(e=document.querySelector(n)),e){var i=e.getBoundingClientRect();if(i.width||i.height)return[g(e)[o]().top+r,n]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}
8847).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},t.dispose=function(){g.removeData(this._element,ln),g(this._scrollElement).off(cn),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},t._getConfig=function(t){if("string"!=typeof(t=l({},un,"object"==typeof t&&t?t:{})).target){var e=g(t.target).attr("id");e||(e=_.getUID(an),g(t.target).attr("id",e)),t.target="#"+e}return _.typeCheckConfig(an,t,fn),t},t._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},t._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},t._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},t._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),n<=t){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;){this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&("undefined"==typeof this._offsets[o+1]||t<this._offsets[o+1])&&this._activate(this._targets[o])}}},t._activate=function(e){this._activeTarget=e,this._clear();var t=this._selector.split(",").map(function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'}),n=g([].slice.call(document.querySelectorAll(t.join(","))));n.hasClass(gn)?(n.closest(Cn).find(Sn).addClass(_n),n.addClass(_n)):(n.addClass(_n),n.parents(pn).prev(vn+", "+En).addClass(_n),n.parents(pn).prev(yn).children(vn).addClass(_n)),g(this._scrollElement).trigger(dn.ACTIVATE,{relatedTarget:e})},t._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(t){return t.classList.contains(_n)}).forEach(function(t){return t.classList.remove(_n)})},n._jQueryInterface=function(e){return this.each(function(){var t=g(this).data(ln);if(t||(t=new n(this,"object"==typeof e&&e),g(this).data(ln,t)),"string"==typeof e){if("undefined"==typeof t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},s(n,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return un}}]),n}();g(window).on(dn.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(mn)),e=t.length;e--;){var n=g(t[e]);Dn._jQueryInterface.call(n,n.data())}}),g.fn[an]=Dn._jQueryInterface,g.fn[an].Constructor=Dn,g.fn[an].noConflict=function(){return g.fn[an]=hn,Dn._jQueryInterface};var wn="bs.tab",An="."+wn,Nn=g.fn.tab,On={HIDE:"hide"+An,HIDDEN:"hidden"+An,SHOW:"show"+An,SHOWN:"shown"+An,CLICK_DATA_API:"click"+An+".data-api"},kn="dropdown-menu",Pn="active",Ln="disabled",jn="fade",Hn="show",Rn=".dropdown",xn=".nav, .list-group",Fn=".active",Un="> li > .active",Wn='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',qn=".dropdown-toggle",Mn="> .dropdown-menu .active",Kn=function(){function i(t){this._element=t}var t=i.prototype;return t.show=function(){var n=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&g(this._element).hasClass(Pn)||g(this._element).hasClass(Ln))){var t,i,e=g(this._element).closest(xn)[0],o=_.getSelectorFromElement(this._element);if(e){var r="UL"===e.nodeName||"OL"===e.nodeName?Un:Fn;i=(i=g.makeArray(g(e).find(r)))[i.length-1]}var s=g.Event(On.HIDE,{relatedTarget:this._element}),a=g.Event(On.SHOW,{relatedTarget:i});if(i&&g(i).trigger(s),g(this._element).trigger(a),!a.isDefaultPrevented()&&!s.isDefaultPrevented()){o&&(t=document.querySelector(o)),this._activate(this._element,e);var l=function(){var t=g.Event(On.HIDDEN,{relatedTarget:n._element}),e=g.Event(On.SHOWN,{relatedTarget:i});g(i).trigger(t),g(n._element).trigger(e)};t?this._activate(t,t.parentNode,l):l()}}},t.dispose=function(){g.removeData(this._element,wn),this._element=null},t._activate=function(t,e,n){var i=this,o=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?g(e).children(Fn):g(e).find(Un))[0],r=n&&o&&g(o).hasClass(jn),s=function(){return i._transitionComplete(t,o,n)};if(o&&r){var a=_.getTransitionDurationFromElement(o);g(o).removeClass(Hn).one(_.TRANSITION_END,s).emulateTransitionEnd(a)}else s()},t._transitionComplete=function(t,e,n){if(e){g(e).removeClass(Pn);var i=g(e.parentNode).find(Mn)[0];i&&g(i).removeClass(Pn),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(g(t).addClass(Pn),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),_.reflow(t),t.classList.contains(jn)&&t.classList.add(Hn),t.parentNode&&g(t.parentNode).hasClass(kn)){var o=g(t).closest(Rn)[0];if(o){var r=[].slice.call(o.querySelectorAll(qn));g(r).addClass(Pn)}t.setAttribute("aria-expanded",!0)}n&&n()},i._jQueryInterface=function(n){return this.each(function(){var t=g(this),e=t.data(wn);if(e||(e=new i(this),t.data(wn,e)),"string"==typeof n){if("undefined"==typeof e[n])throw new TypeError('No method n
8847amed "'+n+'"');e[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),i}();g(document).on(On.CLICK_DATA_API,Wn,function(t){t.preventDefault(),Kn._jQueryInterface.call(g(this),"show")}),g.fn.tab=Kn._jQueryInterface,g.fn.tab.Constructor=Kn,g.fn.tab.noConflict=function(){return g.fn.tab=Nn,Kn._jQueryInterface};var Qn="toast",Bn="bs.toast",Vn="."+Bn,Yn=g.fn[Qn],zn={CLICK_DISMISS:"click.dismiss"+Vn,HIDE:"hide"+Vn,HIDDEN:"hidden"+Vn,SHOW:"show"+Vn,SHOWN:"shown"+Vn},Xn="fade",$n="hide",Gn="show",Jn="showing",Zn={animation:"boolean",autohide:"boolean",delay:"number"},ti={animation:!0,autohide:!0,delay:500},ei='[data-dismiss="toast"]',ni=function(){function i(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var t=i.prototype;return t.show=function(){var t=this;g(this._element).trigger(zn.SHOW),this._config.animation&&this._element.classList.add(Xn);var e=function(){t._element.classList.remove(Jn),t._element.classList.add(Gn),g(t._element).trigger(zn.SHOWN),t._config.autohide&&t.hide()};if(this._element.classList.remove($n),this._element.classList.add(Jn),this._config.animation){var n=_.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},t.hide=function(t){var e=this;this._element.classList.contains(Gn)&&(g(this._element).trigger(zn.HIDE),t?this._close():this._timeout=setTimeout(function(){e._close()},this._config.delay))},t.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(Gn)&&this._element.classList.remove(Gn),g(this._element).off(zn.CLICK_DISMISS),g.removeData(this._element,Bn),this._element=null,this._config=null},t._getConfig=function(t){return t=l({},ti,g(this._element).data(),"object"==typeof t&&t?t:{}),_.typeCheckConfig(Qn,t,this.constructor.DefaultType),t},t._setListeners=function(){var t=this;g(this._element).on(zn.CLICK_DISMISS,ei,function(){return t.hide(!0)})},t._close=function(){var t=this,e=function(){t._element.classList.add($n),g(t._element).trigger(zn.HIDDEN)};if(this._element.classList.remove(Gn),this._config.animation){var n=_.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},i._jQueryInterface=function(n){return this.each(function(){var t=g(this),e=t.data(Bn);if(e||(e=new i(this,"object"==typeof n&&n),t.data(Bn,e)),"string"==typeof n){if("undefined"==typeof e[n])throw new TypeError('No method named "'+n+'"');e[n](this)}})},s(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"DefaultType",get:function(){return Zn}},{key:"Default",get:function(){return ti}}]),i}();g.fn[Qn]=ni._jQueryInterface,g.fn[Qn].Constructor=ni,g.fn[Qn].noConflict=function(){return g.fn[Qn]=Yn,ni._jQueryInterface},function(){if("undefined"==typeof g)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=g.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||4<=t[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(),t.Util=_,t.Alert=p,t.Button=P,t.Carousel=lt,t.Collapse=bt,t.Dropdown=Jt,t.Modal=ve,t.Popover=sn,t.Scrollspy=Dn,t.Tab=Kn,t.Toast=ni,t.Tooltip=Be,Object.defineProperty(t,"__esModule",{value:!0})});
8848//# sourceMappingURL=bootstrap.min.js.map
8849
8850/**
8851 * FormRlrmrnts.js
8852 *
8853 * @copyright Copyright (c) 2017 Joey Adkins
8854 * @version 1.0.0
8855 * @author Joey Adkins <[email protected]>
8856 * @website http://luciddesignconcepts.com/
8857 *
8858 */
8859
8860if(typeof form === "undefined") { var form = {}; }
8861var form = (function(form) {
8862
8863	// !----- Event Callbacks
8864
8865   /**
8866	* @access private
8867	* @var object _events
8868	*/
8869	var _events = {
8870
8871		/**
8872		 * callback function to switch radio button
8873		 *
8874		 * @param object params
8875		 * @return void
8876		 */
8877		onClickRadioButton : function () {
8878			var
8879				radio = $(this),
8880				value = radio.data('value'),
8881				input = radio.closest('.radio-group').find('input[type="hidden"]');
8882
8883			input.val(value);
8884			radio.addClass('checked').siblings().removeClass('checked');
8885		},
8886
8887		/**
8888		 * callback function to switch checkbox
8889		 *
8890		 * @param object params
8891		 * @return void
8892		 */
8893		onClickCheckbox : function () {
8894			var
8895				checkbox = $(this),
8896				value    = (checkbox.hasClass('checked')) ? 0 : 1,
8897				input    = checkbox.find('input[type="hidden"]');
8898
8899			input.val(value);
8900			checkbox.toggleClass('checked');
8901		}
8902	};
8903
8904
8905	// !----- Private Methods
8906
8907	/**
8908	 * jQuery document ready callback
8909	 *
8910	 * @access private
8911	 * @return void
8912	 */
8913	var _onDocumentReady = function () {
8914		$(document)
8915			// Bind click event to radio option
8916			.on('click', '.radio-group li', _events.onClickRadioButton)
8917			// Bind click event to checkbox option
8918			.on('click', '.checkbox-group li', _events.onClickCheckbox);
8919	};
8920
8921
8922	// !----- Public Methods
8923
8924	// !----- Bind events
8925	$(_onDocumentReady);
8926
8927	// !---- Return the object
8928	return form;
8929
8930}(form || {}));
8931
8932/*!
8933 * imagesLoaded PACKAGED v3.1.4
8934 * JavaScript is all like "You images are done yet or what?"
8935 * MIT License
8936 */
8937
8938(function(){function e(){}function t(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function n(e){return function(){return this[e].apply(this,arguments)}}var i=e.prototype,r=this,o=r.EventEmitter;i.getListeners=function(e){var t,n,i=this._getEvents();if("object"==typeof e){t={};for(n in i)i.hasOwnProperty(n)&&e.test(n)&&(t[n]=i[n])}else t=i[e]||(i[e]=[]);return t},i.flattenListeners=function(e){var t,n=[];for(t=0;e.length>t;t+=1)n.push(e[t].listener);return n},i.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&(t={},t[e]=n),t||n},i.addListener=function(e,n){var i,r=this.getListenersAsObject(e),o="object"==typeof n;for(i in r)r.hasOwnProperty(i)&&-1===t(r[i],n)&&r[i].push(o?n:{listener:n,once:!1});return this},i.on=n("addListener"),i.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},i.once=n("addOnceListener"),i.defineEvent=function(e){return this.getListeners(e),this},i.defineEvents=function(e){for(var t=0;e.length>t;t+=1)this.defineEvent(e[t]);return this},i.removeListener=function(e,n){var i,r,o=this.getListenersAsObject(e);for(r in o)o.hasOwnProperty(r)&&(i=t(o[r],n),-1!==i&&o[r].splice(i,1));return this},i.off=n("removeListener"),i.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},i.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},i.manipulateListeners=function(e,t,n){var i,r,o=e?this.removeListener:this.addListener,s=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(i=n.length;i--;)o.call(this,t,n[i]);else for(i in t)t.hasOwnProperty(i)&&(r=t[i])&&("function"==typeof r?o.call(this,i,r):s.call(this,i,r));return this},i.removeEvent=function(e){var t,n=typeof e,i=this._getEvents();if("string"===n)delete i[e];else if("object"===n)for(t in i)i.hasOwnProperty(t)&&e.test(t)&&delete i[t];else delete this._events;return this},i.removeAllListeners=n("removeEvent"),i.emitEvent=function(e,t){var n,i,r,o,s=this.getListenersAsObject(e);for(r in s)if(s.hasOwnProperty(r))for(i=s[r].length;i--;)n=s[r][i],n.once===!0&&this.removeListener(e,n.listener),o=n.listener.apply(this,t||[]),o===this._getOnceReturnValue()&&this.removeListener(e,n.listener);return this},i.trigger=n("emitEvent"),i.emit=function(e){var t=Array.prototype.slice.call(arguments,1
8938);return this.emitEvent(e,t)},i.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},i._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},i._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return r.EventEmitter=o,e},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return e}):"object"==typeof module&&module.exports?module.exports=e:this.EventEmitter=e}).call(this),function(e){function t(t){var n=e.event;return n.target=n.target||n.srcElement||t,n}var n=document.documentElement,i=function(){};n.addEventListener?i=function(e,t,n){e.addEventListener(t,n,!1)}:n.attachEvent&&(i=function(e,n,i){e[n+i]=i.handleEvent?function(){var n=t(e);i.handleEvent.call(i,n)}:function(){var n=t(e);i.call(e,n)},e.attachEvent("on"+n,e[n+i])});var r=function(){};n.removeEventListener?r=function(e,t,n){e.removeEventListener(t,n,!1)}:n.detachEvent&&(r=function(e,t,n){e.detachEvent("on"+t,e[t+n]);try{delete e[t+n]}catch(i){e[t+n]=void 0}});var o={bind:i,unbind:r};"function"==typeof define&&define.amd?define("eventie/eventie",o):e.eventie=o}(this),function(e,t){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(n,i){return t(e,n,i)}):"object"==typeof exports?module.exports=t(e,require("eventEmitter"),require("eventie")):e.imagesLoaded=t(e,e.EventEmitter,e.eventie)}(this,function(e,t,n){function i(e,t){for(var n in t)e[n]=t[n];return e}function r(e){return"[object Array]"===d.call(e)}function o(e){var t=[];if(r(e))t=e;else if("number"==typeof e.length)for(var n=0,i=e.length;i>n;n++)t.push(e[n]);else t.push(e);return t}function s(e,t,n){if(!(this instanceof s))return new s(e,t);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=o(e),this.options=i({},this.options),"function"==typeof t?n=t:i(this.options,t),n&&this.on("always",n),this.getImages(),a&&(this.jqDeferred=new a.Deferred);var r=this;setTimeout(function(){r.check()})}function c(e){this.img=e}function f(e){this.src=e,v[e]=this}var a=e.jQuery,u=e.console,h=u!==void 0,d=Object.prototype.toString;s.prototype=new t,s.prototype.options={},s.prototype.getImages=function(){this.images=[];for(var e=0,t=this.elements.length;t>e;e++){var n=this.elements[e];"IMG"===n.nodeName&&this.addImage(n);for(var i=n.querySelectorAll("img"),r=0,o=i.length;o>r;r++){var s=i[r];this.addImage(s)}}},s.prototype.addImage=function(e){var t=new c(e);this.images.push(t)},s.prototype.check=function(){function e(e,r){return t.options.debug&&h&&u.log("confirm",e,r),t.progress(e),n++,n===i&&t.complete(),!0}var t=this,n=0,i=this.images.length;if(this.hasAnyBroken=!1,!i)return this.complete(),void 0;for(var r=0;i>r;r++){var o=this.images[r];o.on("confirm",e),o.check()}},s.prototype.progress=function(e){this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,e),t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,e)})},s.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var t=this;setTimeout(function(){if(t.emit(e,t),t.emit("always",t),t.jqDeferred){var n=t.hasAnyBroken?"reject":"resolve";t.jqDeferred[n](t)}})},a&&(a.fn.imagesLoaded=function(e,t){var n=new s(this,e,t);return n.jqDeferred.promise(a(this))}),c.prototype=new t,c.prototype.check=function(){var e=v[this.img.src]||new f(this.img.src);if(e.isConfirmed)return this.confirm(e.isLoaded,"cached was confirmed"),void 0;if(this.img.complete&&void 0!==this.img.naturalWidth)return this.confirm(0!==this.img.naturalWidth,"naturalWidth"),void 0;var t=this;e.on("confirm",function(e,n){return t.confirm(e.isLoaded,n),!0}),e.check()},c.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("confirm",this,t)};var v={};return f.prototype=new t,f.prototype.check=function(){if(!this.isChecked){var e=new Image;n.bind(e,"load",this),n.bind(e,"error",this),e.src=this.src,this.isChecked=!0}},f.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},f.prototype.onload=function(e){this.confirm(!0,"onload"),this.unbindProxyEvents(e)},f.prototype.onerror=function(e){this.confirm(!1,"onerror"),this.unbindProxyEvents(e)},f.prototype.confirm=function(e,t){this.isConfirmed=!0,this.isLoaded=e,this.emit
8938("confirm",this,t)},f.prototype.unbindProxyEvents=function(e){n.unbind(e.target,"load",this),n.unbind(e.target,"error",this)},s});
8939/*
8940 Copyright (C) Federico Zivolo 2019
8941 Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).�
vendor: 20,832 bytes, lines 8941-8942
8941
8942 */(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.Popper=t()})(this,function(){'use strict';function e(e){return e&&'[object Function]'==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var o=e.ownerDocument.defaultView,n=o.getComputedStyle(e,null);return t?n[t]:n}function o(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function n(e){if(!e)return document.body;switch(e.nodeName){case'HTML':case'BODY':return e.ownerDocument.body;case'#document':return e.body;}var i=t(e),r=i.overflow,p=i.overflowX,s=i.overflowY;return /(auto|scroll|overlay)/.test(r+s+p)?e:n(o(e))}function r(e){return 11===e?pe:10===e?se:pe||se}function p(e){if(!e)return document.documentElement;for(var o=r(10)?document.body:null,n=e.offsetParent||null;n===o&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&'BODY'!==i&&'HTML'!==i?-1!==['TH','TD','TABLE'].indexOf(n.nodeName)&&'static'===t(n,'position')?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function s(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||p(e.firstElementChild)===e)}function d(e){return null===e.parentNode?e:d(e.parentNode)}function a(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=o?e:t,i=o?t:e,r=document.createRange();r.setStart(n,0),r.setEnd(i,0);var l=r.commonAncestorContainer;if(e!==l&&t!==l||n.contains(i))return s(l)?l:p(l);var f=d(e);return f.host?a(f.host,t):a(e,d(t).host)}function l(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'top',o='top'===t?'scrollTop':'scrollLeft',n=e.nodeName;if('BODY'===n||'HTML'===n){var i=e.ownerDocument.documentElement,r=e.ownerDocument.scrollingElement||i;return r[o]}return e[o]}function f(e,t){var o=2<arguments.length&&void 0!==arguments[2]&&arguments[2],n=l(t,'top'),i=l(t,'left'),r=o?-1:1;return e.top+=n*r,e.bottom+=n*r,e.left+=i*r,e.right+=i*r,e}function m(e,t){var o='x'===t?'Left':'Top',n='Left'==o?'Right':'Bottom';return parseFloat(e['border'+o+'Width'],10)+parseFloat(e['border'+n+'Width'],10)}function h(e,t,o,n){return ee(t['offset'+e],t['scroll'+e],o['client'+e],o['offset'+e],o['scroll'+e],r(10)?parseInt(o['offset'+e])+parseInt(n['margin'+('Height'===e?'Top':'Left')])+parseInt(n['margin'+('Height'===e?'Bottom':'Right')]):0)}function c(e){var t=e.body,o=e.documentElement,n=r(10)&&getComputedStyle(o);return{height:h('Height',t,o,n),width:h('Width',t,o,n)}}function g(e){return fe({},e,{right:e.left+e.width,bottom:e.top+e.height})}function u(e){var o={};try{if(r(10)){o=e.getBoundingClientRect();var n=l(e,'top'),i=l(e,'left');o.top+=n,o.left+=i,o.bottom+=n,o.right+=i}else o=e.getBoundingClientRect()}catch(t){}var p={left:o.left,top:o.top,width:o.right-o.left,height:o.bottom-o.top},s='HTML'===e.nodeName?c(e.ownerDocument):{},d=s.width||e.clientWidth||p.right-p.left,a=s.height||e.clientHeight||p.bottom-p.top,f=e.offsetWidth-d,h=e.offsetHeight-a;if(f||h){var u=t(e);f-=m(u,'x'),h-=m(u,'y'),p.width-=f,p.height-=h}return g(p)}function b(e,o){var i=2<arguments.length&&void 0!==arguments[2]&&arguments[2],p=r(10),s='HTML'===o.nodeName,d=u(e),a=u(o),l=n(e),m=t(o),h=parseFloat(m.borderTopWidth,10),c=parseFloat(m.borderLeftWidth,10);i&&s&&(a.top=ee(a.top,0),a.left=ee(a.left,0));var b=g({top:d.top-a.top-h,left:d.left-a.left-c,width:d.width,height:d.height});if(b.marginTop=0,b.marginLeft=0,!p&&s){var w=parseFloat(m.marginTop,10),y=parseFloat(m.marginLeft,10);b.top-=h-w,b.bottom-=h-w,b.left-=c-y,b.right-=c-y,b.marginTop=w,b.marginLeft=y}return(p&&!i?o.contains(l):o===l&&'BODY'!==l.nodeName)&&(b=f(b,o)),b}function w(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=e.ownerDocument.documentElement,n=b(e,o),i=ee(o.clientWidth,window.innerWidth||0),r=ee(o.clientHeight,window.innerHeight||0),p=t?0:l(o),s=t?0:l(o,'left'),d={top:p-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:i,height:r};return g(d)}function y(e){var n=e.nodeName;if('BODY'===n||'HTML'===n)return!1;if('fixed'===t(e,'position'))return!0;var i=o(e);return!!i&&y(i)}function E(e){if(!e||!e.parentElement||r())return document.documentElement;for(var o=e.parentElement;o&&'none'===t(o,'transform');)o=o.parentElement;return o||document.documentElement}function v(e,t,i,r){var p=4<arguments.length&&void 0!==arguments[4]&&arguments[4],s={top:0,left:0},d=p?E(e):a(e,t);if('viewport'===r)s=w(d,p);else{var l;'scrollParent'===r?(l=n(o(t)),'BODY'===l.nodeName&&(l=e.ownerDocument.documentElement)):'window'===r?l=e.ownerDocument.documentElement:l=r;var f=b(l,d,p);if('HTML'===l.nodeName&&!y(d)){var m=c(e.ownerDocument),h=m.height,g=m.width;s.top+=f.top-f.marginTop,s.bottom=h+f.top,s.left+=f.left-f.marginLeft,s.right=g+f.left}else s=f}i=i||0;var u='number'==typeof i;return s.left+=u?i:i.left||0,s.top+=u?i:i.top||0,s.right-=u?i:i.right||0,s.bottom-=u?i:i.bottom||0,s}function x(e){var t=e.width,o=e.height;return t*o}function O(e,t,o,n,i){var r=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf('auto'))return e;var p=v(o,n,r,i),s={top:{width:p.width,height:t.top-p.top},right:{width:p.right-t.right,height:p.height},bottom:{width:p.width,height:p.bottom-t.bottom},left:{width:t.left-p.left,height:p.height}},d=Object.keys(s).map(function(e){return fe({key:e},s[e],{area:x(s[e])})}).sort(function(e,t){return t.area-e.area}),a=d.filter(function(e){var t=e.width,n=e.height;return t>=o.clientWidth&&n>=o.clientHeight}),l=0<a.length?a[0].key:d[0].key,f=e.split('-')[1];return l+(f?'-'+f:'')}function L(e,t,o){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,i=n?E(t):a(t,o);return b(o,i,n)}function S(e){var t=e.ownerDocument.defaultView,o=t.getComputedStyle(e),n=parseFloat(o.marginTop||0)+parseFloat(o.marginBottom||0),i=parseFloat(o.marginLeft||0)+parseFloat(o.marginRight||0),r={width:e.offsetWidth+i,height:e.offsetHeight+n};return r}function T(e){var t={left:'right',right:'left',bottom:'top',top:'bottom'};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function D(e,t,o){o=o.split('-')[0];var n=S(e),i={width:n.width,height:n.height},r=-1!==['right','left'].indexOf(o),p=r?'top':'left',s=r?'left':'top',d=r?'height':'width',a=r?'width':'height';return i[p]=t[p]+t[d]/2-n[d]/2,i[s]=o===s?t[s]-n[a]:t[T(s)],i}function C(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function N(e,t,o){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===o});var n=C(e,function(e){return e[t]===o});return e.indexOf(n)}function P(t,o,n){var i=void 0===n?t:t.slice(0,N(t,'name',n));return i.forEach(function(t){t['function']&&console.warn('`modifier.function` is deprecated, use `modifier.fn`!');var n=t['function']||t.fn;t.enabled&&e(n)&&(o.offsets.popper=g(o.offsets.popper),o.offsets.reference=g(o.offsets.reference),o=n(o,t))}),o}function k(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=L(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=O(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=D(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?'fixed':'absolute',e=P(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function W(e,t){return e.some(function(e){var o=e.name,n=e.enabled;return n&&o===t})}function H(e){for(var t=[!1,'ms','Webkit','Moz','O'],o=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length;n++){var i=t[n],r=i?''+i+o:e;if('undefined'!=typeof document.body.style[r])return r}return null}function B(){return this.state.isDestroyed=!0,W(this.modifiers,'applyStyle')&&(this.popper.removeAttribute('x-placement'),this.popper.style.position='',this.popper.style.top='',this.popper.style.left='',this.popper.style.right='',this.popper.style.bottom='',this.popper.style.willChange='',this.popper.style[H('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function A(e){var t=e.ownerDocument;return t?t.defaultView:window}function M(e,t,o,i){var r='BODY'===e.nodeName,p=r?e.ownerDocument.defaultView:e;p.addEventListener(t,o,{passive:!0}),r||M(n(p.parentNode),t,o,i),i.push(p)}function F(e,t,o,i){o.updateBound=i,A(e).addEventListener('resize',o.updateBound,{passive:!0});var r=n(e);return M(r,'scroll',o.updateBound,o.scrollParents),o.scrollElement=r,o.eventsEnabled=!0,o}function I(){this.state.eventsEnabled||(this.state=F(this.reference,this.options,this.state,this.scheduleUpdate))}function R(e,t){return A(e).removeEventListener('resize',t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener('scroll',t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function U(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=R(this.reference,this.state))}function Y(e){return''!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function j(e,t){Object.keys(t).forEach(function(o){var n='';-1!==['width','height','top','right','bottom','left'].indexOf(o)&&Y(t[o])&&(n='px'),e.style[o]=t[o]+n})}function V(e,t){Object.keys(t).forEach(function(o){var n=t[o];!1===n?e.removeAttribute(o):e.setAttribute(o,t[o])})}function q(e,t){var o=e.offsets,n=o.popper,i=o.reference,r=$,p=function(e){return e},s=r(i.width),d=r(n.width),a=-1!==['left','right'].indexOf(e.placement),l=-1!==e.placement.indexOf('-'),f=t?a||l||s%2==d%2?r:Z:p,m=t?r:p;return{left:f(1==s%2&&1==d%2&&!l&&t?n.left-1:n.left),top:m(n.top),bottom:m(n.bottom),right:f(n.right)}}function K(e,t,o){var n=C(e,function(e){var o=e.name;return o===t}),i=!!n&&e.some(function(e){return e.name===o&&e.enabled&&e.order<n.order});if(!i){var r='`'+t+'`';console.warn('`'+o+'`'+' modifier is required by '+r+' modifier in order to work, be sure to include it before '+r+'!')}return i}function z(e){return'end'===e?'start':'start'===e?'end':e}function G(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=ce.indexOf(e),n=ce.slice(o+1).concat(ce.slice(0,o));return t?n.reverse():n}function _(e,t,o,n){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+i[1],p=i[2];if(!r)return e;if(0===p.indexOf('%')){var s;switch(p){case'%p':s=o;break;case'%':case'%r':default:s=n;}var d=g(s);return d[t]/100*r}if('vh'===p||'vw'===p){var a;return a='vh'===p?ee(document.documentElement.clientHeight,window.innerHeight||0):ee(document.documentElement.clientWidth,window.innerWidth||0),a/100*r}return r}function X(e,t,o,n){var i=[0,0],r=-1!==['right','left'].indexOf(n),p=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=p.indexOf(C(p,function(e){return-1!==e.search(/,|\s/)}));p[s]&&-1===p[s].indexOf(',')&&console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');var d=/\s*,\s*|\s+/,a=-1===s?[p]:[p.slice(0,s).concat([p[s].split(d)[0]]),[p[s].split(d)[1]].concat(p.slice(s+1))];return a=a.map(function(e,n){var i=(1===n?!r:r)?'height':'width',p=!1;return e.reduce(function(e,t){return''===e[e.length-1]&&-1!==['+','-'].indexOf(t)?(e[e.length-1]=t,p=!0,e):p?(e[e.length-1]+=t,p=!1,e):e.concat(t)},[]).map(function(e){return _(e,i,t,o)})}),a.forEach(function(e,t){e.forEach(function(o,n){Y(o)&&(i[t]+=o*('-'===e[n-1]?-1:1))})}),i}function J(e,t){var o,n=t.offset,i=e.placement,r=e.offsets,p=r.popper,s=r.reference,d=i.split('-')[0];return o=Y(+n)?[+n,0]:X(n,p,s,d),'left'===d?(p.top+=o[0],p.left-=o[1]):'right'===d?(p.top+=o[0],p.left+=o[1]):'top'===d?(p.left+=o[0],p.top-=o[1]):'bottom'===d&&(p.left+=o[0],p.top+=o[1]),e.popper=p,e}for(var Q=Math.min,Z=Math.floor,$=Math.round,ee=Math.max,te='undefined'!=typeof window&&'undefined'!=typeof document,oe=['Edge','Trident','Firefox'],ne=0,ie=0;ie<oe.length;ie+=1)if(te&&0<=navigator.userAgent.indexOf(oe[ie])){ne=1;break}var i=te&&window.Promise,re=i?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},ne))}},pe=te&&!!(window.MSInputMethodContext&&document.documentMode),se=te&&/MSIE 10/.test(navigator.userAgent),de=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')},ae=function(){function e(e,t){for(var o,n=0;n<t.length;n++)o=t[n],o.enumerable=o.enumerable||!1,o.configurable=!0,'value'in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),le=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},fe=Object.assign||function(e){for(var t,o=1;o<arguments.length;o++)for(var n in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},me=te&&/Firefox/i.test(navigator.userAgent),he=['auto-start','auto','auto-end','top-start','top','top-end','right-start','right','right-end','bottom-end','bottom','bottom-start','left-end','left','left-start'],ce=he.slice(3),ge={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'},ue=function(){function t(o,n){var i=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};de(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=re(this.update.bind(this)),this.options=fe({},t.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=o&&o.jquery?o[0]:o,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(fe({},t.Defaults.modifiers,r.modifiers)).forEach(function(e){i.options.modifiers[e]=fe({},t.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return fe({name:e},i.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(t){t.enabled&&e(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)}),this.update();var p=this.options.eventsEnabled;p&&this.enableEventListeners(),this.state.eventsEnabled=p}return ae(t,[{key:'update',value:function(){return k.call(this)}},{key:'destroy',value:function(){return B.call(this)}},{key:'enableEventListeners',value:function(){return I.call(this)}},{key:'disableEventListeners',value:function(){return U.call(this)}}]),t}();return ue.Utils=('undefined'==typeof window?global:window).PopperUtils,ue.placements=he,ue.Defaults={placement:'bottom',positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,o=t.split('-')[0],n=t.split('-')[1];if(n){var i=e.offsets,r=i.reference,p=i.popper,s=-1!==['bottom','top'].indexOf(o),d=s?'left':'top',a=s?'width':'height',l={start:le({},d,r[d]),end:le({},d,r[d]+r[a]-p[a])};e.offsets.popper=fe({},p,l[n])}return e}},offset:{order:200,enabled:!0,fn:J,offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var o=t.boundariesElement||p(e.instance.popper);e.instance.reference===o&&(o=p(o));var n=H('transform'),i=e.instance.popper.style,r=i.top,s=i.left,d=i[n];i.top='',i.left='',i[n]='';var a=v(e.instance.popper,e.instance.reference,t.padding,o,e.positionFixed);i.top=r,i.left=s,i[n]=d,t.boundaries=a;var l=t.priority,f=e.offsets.popper,m={primary:function(e){var o=f[e];return f[e]<a[e]&&!t.escapeWithReference&&(o=ee(f[e],a[e])),le({},e,o)},secondary:function(e){var o='right'===e?'left':'top',n=f[o];return f[e]>a[e]&&!t.escapeWithReference&&(n=Q(f[o],a[e]-('right'===e?f.width:f.height))),le({},o,n)}};return l.forEach(function(e){var t=-1===['left','top'].indexOf(e)?'secondary':'primary';f=fe({},f,m[t](e))}),e.offsets.popper=f,e},priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,o=t.popper,n=t.reference,i=e.placement.split('-')[0],r=Z,p=-1!==['top','bottom'].indexOf(i),s=p?'right':'bottom',d=p?'left':'top',a=p?'width':'height';return o[s]<r(n[d])&&(e.offsets.popper[d]=r(n[d])-o[a]),o[d]>r(n[s])&&(e.offsets.popper[d]=r(n[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,o){var n;if(!K(e.instance.modifiers,'arrow','keepTogether'))return e;var i=o.element;if('string'==typeof i){if(i=e.instance.popper.querySelector(i),!i)return e;}else if(!e.instance.popper.contains(i))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),e;var r=e.placement.split('-')[0],p=e.offsets,s=p.popper,d=p.reference,a=-1!==['left','right'].indexOf(r),l=a?'height':'width',f=a?'Top':'Left',m=f.toLowerCase(),h=a?'left':'top',c=a?'bottom':'right',u=S(i)[l];d[c]-u<s[m]&&(e.offsets.popper[m]-=s[m]-(d[c]-u)),d[m]+u>s[c]&&(e.offsets.popper[m]+=d[m]+u-s[c]),e.offsets.popper=g(e.offsets.popper);var b=d[m]+d[l]/2-u/2,w=t(e.instance.popper),y=parseFloat(w['margin'+f],10),E=parseFloat(w['border'+f+'Width'],10),v=b-e.offsets.popper[m]-y-E;return v=ee(Q(s[l]-u,v),0),e.arrowElement=i,e.offsets.arrow=(n={},le(n,m,$(v)),le(n,h,''),n),e},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(e,t){if(W(e.instance.modifiers,'inner'))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var o=v(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split('-')[0],i=T(n),r=e.placement.split('-')[1]||'',p=[];switch(t.behavior){case ge.FLIP:p=[n,i];break;case ge.CLOCKWISE:p=G(n);break;case ge.COUNTERCLOCKWISE:p=G(n,!0);break;default:p=t.behavior;}return p.forEach(function(s,d){if(n!==s||p.length===d+1)return e;n=e.placement.split('-')[0],i=T(n);var a=e.offsets.popper,l=e.offsets.reference,f=Z,m='left'===n&&f(a.right)>f(l.left)||'right'===n&&f(a.left)<f(l.right)||'top'===n&&f(a.bottom)>f(l.top)||'bottom'===n&&f(a.top)<f(l.bottom),h=f(a.left)<f(o.left),c=f(a.right)>f(o.right),g=f(a.top)<f(o.top),u=f(a.bottom)>f(o.bottom),b='left'===n&&h||'right'===n&&c||'top'===n&&g||'bottom'===n&&u,w=-1!==['top','bottom'].indexOf(n),y=!!t.flipVariations&&(w&&'start'===r&&h||w&&'end'===r&&c||!w&&'start'===r&&g||!w&&'end'===r&&u);(m||b||y)&&(e.flipped=!0,(m||b)&&(n=p[d+1]),y&&(r=z(r)),e.placement=n+(r?'-'+r:''),e.offsets.popper=fe({},e.offsets.popper,D(e.instance.popper,e.offsets.reference,e.placement)),e=P(e.instance.modifiers,e,'flip'))}),e},behavior:'flip',padding:5,boundariesElement:'viewport'},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,o=t.split('-')[0],n=e.offsets,i=n.popper,r=n.reference,p=-1!==['left','right'].indexOf(o),s=-1===['top','left'].indexOf(o);return i[p?'left':'top']=r[o]-(s?i[p?'width':'height']:0),e.placement=T(t),e.offsets.popper=g(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!K(e.instance.modifiers,'hide','preventOverflow'))return e;var t=e.offsets.reference,o=C(e.instance.modifiers,function(e){return'preventOverflow'===e.name}).boundaries;if(t.bottom<o.top||t.left>o.right||t.top>o.bottom||t.right<o.left){if(!0===e.hide)return e;e.hide=!0,e.attributes['x-out-of-boundaries']=''}else{if(!1===e.hide)return e;e.hide=!1,e.attributes['x-out-of-boundaries']=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var o=t.x,n=t.y,i=e.offsets.popper,r=C(e.instance.modifiers,function(e){return'applyStyle'===e.name}).gpuAcceleration;void 0!==r&&console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');var s,d,a=void 0===r?t.gpuAcceleration:r,l=p(e.instance.popper),f=u(l),m={position:i.position},h=q(e,2>window.devicePixelRatio||!me),c='bottom'===o?'top':'bottom',g='right'===n?'left':'right',b=H('transform');if(d='bottom'==c?'HTML'===l.nodeName?-l.clientHeight+h.bottom:-f.height+h.bottom:h.top,s='right'==g?'HTML'===l.nodeName?-l.clientWidth+h.right:-f.width+h.right:h.left,a&&b)m[b]='translate3d('+s+'px, '+d+'px, 0)',m[c]=0,m[g]=0,m.willChange='transform';else{var w='bottom'==c?-1:1,y='right'==g?-1:1;m[c]=d*w,m[g]=s*y,m.willChange=c+', '+g}var E={"x-placement":e.placement};return e.attributes=fe({},E,e.attributes),e.styles=fe({},m,e.styles),e.arrowStyles=fe({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:'bottom',y:'right'},applyStyle:{order:900,enabled:!0,fn:function(e){return j(e.instance.popper,e.styles),V(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&j(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,o,n,i){var r=L(i,t,e,o.positionFixed),p=O(o.placement,r,t,e,o.modifiers.flip.boundariesElement,o.modifiers.flip.padding);return t.setAttribute('x-placement',p),j(t,{position:o.positionFixed?'fixed':'absolute'}),o},gpuAcceleration:void 0}}},ue});
8942
8943//# sourceMappingURL=popper.min.js.map
8944
8945/**
8946 * Share.js
8947 *
8948 * @copyright Copyright (c) 2017 Joey Adkins
8949 * @version 1.0.0
8950 * @author Joey Adkins <[email protected]>
8951 * @website http://luciddesignconcepts.com/
8952 *
8953 */
8954
8955var share = (function(x, $) {
8956
8957	/**
8958	 * @access private
8959	 */
8960	var _endpoint = {
8961		email : {
8962			url : 'mailto:?subject={TEXT}&body={IMAGE}{DESC}'
8963		},
8964		facebook : {
8965			url : 'http://www.facebook.com/share.php?u={URL}'
8966		},
8967		googleplus : {
8968			url : 'https://plusone.google.com/_/+1/confirm?hl=en&url={URL}'
8969		},
8970		pinterest : {
8971			url: 'http://pinterest.com/pin/create/button/?url={URL}&media={IMAGE}&description={DESC}'
8972		},
8973		tumblr : {
8974			url : 'http://www.tumblr.com/share?v=3&u={URL}'
8975		},
8976		twitter : {
8977			url : 'https://twitter.com/intent/tweet?url={URL}&text={TEXT}'
8978		}
8979	};
8980
8981	/**
8982	 * @access private
8983	 */
8984	var _events = {
8985
8986		/**
8987		 * share toggle onclick callback function
8988		 *
8989		 * @param Event e
8990		 * @return void
8991		 */
8992		onClickShareToggle : function(e) {
8993			e.preventDefault();
8994
8995			var
8996				element   = $(this),
8997				container = element.closest('[data-share-content]'),
8998				opts      = {
8999					url     : container.data('share-url'),
9000					text    : container.data('share-title'),
9001					desc    : container.data('share-description'),
9002					image   : container.data('share-image'),
9003					network : element.data('network')
9004				};
9005
9006			_getShareUrl(opts);
9007		}
9008	};
9009
9010	/**
9011	 * Retrieve the share URL
9012	 *
9013	 * @access private
9014	 * @param object opts
9015	 * @param string opts.network
9016	 * @param string opts.url
9017	 * @param string opts.text
9018	 * @param string opts.desc
9019	 */
9020	var _getShareUrl = function(opts) {
9021		$.each(_endpoint, function(network, element) {
9022			if (network === opts.network) {
9023				var
9024					url = element.url;
9025
9026				if (typeof opts.url !== 'undefined') {
9027					url = url.replace('{URL}', encodeURIComponent(opts.url));
9028				} else {
9029					url = url.replace('{URL}', '');
9030				}
9031
9032				if (typeof opts.image !== 'undefined') {
9033					url = url.replace('{IMAGE}', encodeURIComponent(opts.image));
9034				} else {
9035					url = url.replace('{IMAGE}', '');
9036				}
9037
9038				if (typeof opts.text !== 'undefined') {
9039					url = url.replace('{TEXT}', encodeURIComponent(opts.text));
9040				} else {
9041					url = url.replace('{TEXT}', '');
9042				}
9043
9044				if (typeof opts.desc !== 'undefined') {
9045					url = url.replace('{DESC}', encodeURIComponent(opts.desc));
9046				} else {
9047					url = url.replace('{DESC}', '');
9048				}
9049
9050				_popup(url);
9051
9052				return false;
9053			}
9054		});
9055	};
9056
9057	/**
9058	 * jQuery document ready callback function
9059	 *
9060	 * @access private
9061	 * @return void
9062	 */
9063	var _onDocumentReady = function() {
9064		$(document)
9065			// Bind click event to share elements
9066			.on('click', '.share-toggle', _events.onClickShareToggle);
9067	};
9068
9069	/**
9070	 * Asynchronously load a new JS file into the HTML head
9071	 *
9072	 * @access private
9073	 * @param string file
9074	 * @return void
9075	 */
9076	var _loadJS = function(file) {
9077		var
9078			d = document,
9079			h = d.getElementsByTagName('head')[0],
9080			s = d.createElement('script');
9081
9082		s.type = 'text/javascript';
9083		s.language = 'javascript';
9084		s.async = true;
9085		s.src = file;
9086		h.appendChild(s);
9087	};
9088
9089	/**
9090	 * Handles the popup dialog box
9091	 *
9092	 * @access private
9093	 * @param string url
9094	 * @return void
9095	 */
9096	var _popup = function(url) {
9097		var
9098			width  = 600,
9099			height = 500,
9100			top    = (screen.height) ? (screen.height - height) / 2 : 0,
9101			left   = (screen.width) ? (screen.width - width) / 2 : 0;
9102
9103		window.open(url, '_blank', 'height=' + height + ',width=' + width + ',left=' + left + ',top=' + top + ',location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0');
9104	};
9105
9106	$(_onDocumentReady);
9107
9108	return x;
9109
9110}(share || {}, jQuery));
9111
9112/*
9113     _ _      _       _
9114 ___| (_) ___| | __  (_)___
9115/ __| | |/ __| |/ /  | / __|
9116\__ \ | | (__|   < _ | \__ \
9117|___/_|_|\___|_|\_(_)/ |___/
9118                   |__/
9119
9120 Version: 1.6.0
9121  Author: Ken Wheeler
9122 Website: http://kenwheeler.github.io
9123    Docs: http://kenwheeler.github.io/slick
9124    Repo: http://github.com/kenwheeler/slick
9125  Issues: http://github.com/kenwheeler/slick/issues
9126
9127 */
9128!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"undefined"!=typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){"use strict";var b=window.Slick||{};b=function(){function c(c,d){var f,e=this;e.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:a(c),appendDots:a(c),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(b,c){return a('<button type="button" data-role="none" role="button" tabindex="0" />').text(c+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},e.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,
vendor: 9,458 bytes, line 9128
9128sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},a.extend(e,e.initials),e.activeBreakpoint=null,e.animType=null,e.animProp=null,e.breakpoints=[],e.breakpointSettings=[],e.cssTransitions=!1,e.focussed=!1,e.interrupted=!1,e.hidden="hidden",e.paused=!0,e.positionProp=null,e.respondTo=null,e.rowCount=1,e.shouldClick=!0,e.$slider=a(c),e.$slidesCache=null,e.transformType=null,e.transitionType=null,e.visibilityChange="visibilitychange",e.windowWidth=0,e.windowTimer=null,f=a(c).data("slick")||{},e.options=a.extend({},e.defaults,d,f),e.currentSlide=e.options.initialSlide,e.originalSettings=e.options,"undefined"!=typeof document.mozHidden?(e.hidden="mozHidden",e.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(e.hidden="webkitHidden",e.visibilityChange="webkitvisibilitychange"),e.autoPlay=a.proxy(e.autoPlay,e),e.autoPlayClear=a.proxy(e.autoPlayClear,e),e.autoPlayIterator=a.proxy(e.autoPlayIterator,e),e.changeSlide=a.proxy(e.changeSlide,e),e.clickHandler=a.proxy(e.clickHandler,e),e.selectHandler=a.proxy(e.selectHandler,e),e.setPosition=a.proxy(e.setPosition,e),e.swipeHandler=a.proxy(e.swipeHandler,e),e.dragHandler=a.proxy(e.dragHandler,e),e.keyHandler=a.proxy(e.keyHandler,e),e.instanceUid=b++,e.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,e.registerBreakpoints(),e.init(!0)}var b=0;return c}(),b.prototype.activateADA=function(){var a=this;a.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},b.prototype.addSlide=b.prototype.slickAdd=function(b,c,d){var e=this;if("boolean"==typeof c)d=c,c=null;else if(0>c||c>=e.slideCount)return!1;e.unload(),"number"==typeof c?0===c&&0===e.$slides.length?a(b).appendTo(e.$slideTrack):d?a(b).insertBefore(e.$slides.eq(c)):a(b).insertAfter(e.$slides.eq(c)):d===!0?a(b).prependTo(e.$slideTrack):a(b).appendTo(e.$slideTrack),e.$slides=e.$slideTrack.children(this.options.slide),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.append(e.$slides),e.$slides.each(function(b,c){a(c).attr("data-slick-index",b)}),e.$slidesCache=e.$slides,e.reinit()},b.prototype.animateHeight=function(){var a=this;if(1===a.options.slidesToShow&&a.options.adaptiveHeight===!0&&a.options.vertical===!1){var b=a.$slides.eq(a.currentSlide).outerHeight(!0);a.$list.animate({height:b},a.options.speed)}},b.prototype.animateSlide=function(b,c){var d={},e=this;e.animateHeight(),e.options.rtl===!0&&e.options.vertical===!1&&(b=-b),e.transformsEnabled===!1?e.options.vertical===!1?e.$slideTrack.animate({left:b},e.options.speed,e.options.easing,c):e.$slideTrack.animate({top:b},e.options.speed,e.options.easing,c):e.cssTransitions===!1?(e.options.rtl===!0&&(e.currentLeft=-e.currentLeft),a({animStart:e.currentLeft}).animate({animStart:b},{duration:e.options.speed,easing:e.options.easing,step:function(a){a=Math.ceil(a),e.options.vertical===!1?(d[e.animType]="translate("+a+"px, 0px)",e.$slideTrack.css(d)):(d[e.animType]="translate(0px,"+a+"px)",e.$slideTrack.css(d))},complete:function(){c&&c.call()}})):(e.applyTransition(),b=Math.ceil(b),e.options.vertical===!1?d[e.animType]="translate3d("+b+"px, 0px, 0px)":d[e.animType]="translate3d(0px,"+b+"px, 0px)",e.$slideTrack.css(d),c&&setTimeout(function(){e.disableTransition(),c.call()},e.options.speed))},b.prototype.getNavTarget=function(){var b=this,c=b.options.asNavFor;return c&&null!==c&&(c=a(c).not(b.$slider)),c},b.prototype.asNavFor=function(b){var c=this,d=c.getNavTarget();null!==d&&"object"==typeof d&&d.each(function(){var c=a(this).slick("getSlick");c.unslicked||c.slideHandler(b,!0)})},b.prototype.applyTransition=function(a){var b=this,c={};b.options.fade===!1?c[b.transitionType]=b.transformType+" "+b.options.speed+"ms "+b.options.cssEase:c[b.transitionType]="opacity "+b.options.speed+"ms "+b.options.cssEase,b.options.fade===!1?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.autoPlay=function(){var a=this;a.autoPlayClear(),a.slideCount>a.options.slidesToShow&&(a.autoPlayTimer=setInterval(a.autoPlayIterator,a.options.autoplaySpeed))},b.prototype.autoPlayClear=function(){var a=this;a.autoPlayTimer&&clearInterval(a.autoPlayTimer)},b.prototype.autoPlayIterator=function(){var a=this,b=a.currentSlide+a.options.slidesToScroll;a.paused||a.interrupted||a.focussed||(a.options.infinite===!1&&(1===a.direction&&a.currentSlide+1===a.slideCount-1?a.direction=0:0===a.direction&&(b=a.currentSlide-a.options.slidesToScroll,a.currentSlide-1===0&&(a.direction=1))),a.slideHandler(b))},b.prototype.buildArrows=function(){var b=this;b.options.arrows===!0&&(b.$prevArrow=a(b.options.prevArrow).addClass("slick-arrow"),b.$nextArrow=a(b.options.nextArrow).addClass("slick-arrow"),b.slideCount>b.options.slidesToShow?(b.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),b.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),b.htmlExpr.test(b.options.prevArrow)&&b.$prevArrow.prependTo(b.options.appendArrows),b.htmlExpr.test(b.options.nextArrow)&&b.$nextArrow.appendTo(b.options.appendArrows),b.options.infinite!==!0&&b.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):b.$prevArrow.add(b.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},b.prototype.buildDots=function(){var c,d,b=this;if(b.options.dots===!0&&b.slideCount>b.options.slidesToShow){for(b.$slider.addClass("slick-dotted"),d=a("<ul />").addClass(b.options.dotsClass),c=0;c<=b.getDotCount();c+=1)d.append(a("<li />").append(b.options.customPaging.call(this,b,c)));b.$dots=d.appendTo(b.options.appendDots),b.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},b.prototype.buildOut=function(){var b=this;b.$slides=b.$slider.children(b.options.slide+":not(.slick-cloned)").addClass("slick-slide"),b.slideCount=b.$slides.length,b.$slides.each(function(b,c){a(c).attr("data-slick-index",b).data("originalStyling",a(c).attr("style")||"")}),b.$slider.addClass("slick-slider"),b.$slideTrack=0===b.slideCount?a('<div class="slick-track"/>').appendTo(b.$slider):b.$slides.wrapAll('<div class="slick-track"/>').parent(),b.$list=b.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),b.$slideTrack.css("opacity",0),(b.options.centerMode===!0||b.options.swipeToSlide===!0)&&(b.options.slidesToScroll=1),a("img[data-lazy]",b.$slider).not("[src]").addClass("slick-loading"),b.setupInfinite(),b.buildArrows(),b.buildDots(),b.updateDots(),b.setSlideClasses("number"==typeof b.currentSlide?b.currentSlide:0),b.options.draggable===!0&&b.$list.addClass("draggable")},b.prototype.buildRows=function(){var b,c,d,e,f,g,h,a=this;if(e=document.createDocumentFragment(),g=a.$slider.children(),a.options.rows>1){for(h=a.options.slidesPerRow*a.options.rows,f=Math.ceil(g.length/h),b=0;f>b;b++){var i=document.createElement("div");for(c=0;c<a.options.rows;c++){var j=document.createElement("div");for(d=0;d<a.options.slidesPerRow;d++){var k=b*h+(c*a.options.slidesPerRow+d);g.get(k)&&j.appendChild(g.get(k))}i.appendChild(j)}e.appendChild(i)}a.$slider.empty().append(e),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},b.prototype.checkResponsive=function(b,c){var e,f,g,d=this,h=!1,i=d.$slider.width(),j=window.innerWidth||a(window).width();if("window"===d.respondTo?g=j:"slider"===d.respondTo?g=i:"min"===d.respondTo&&(g=Math.min(j,i)),d.options.responsive&&d.options.responsive.length&&null!==d.options.responsive){f=null;for(e in d.breakpoints)d.breakpoints.hasOwnProperty(e)&&(d.originalSettings.mobileFirst===!1?g<d.breakpoints[e]&&(f=d.breakpoints[e]):g>d.breakpoints[e]&&(f=d.breakpoints[e]));null!==f?null!==d.activeBreakpoint?(f!==d.activeBreakpoint||c)&&(d.activeBreakpoint=f,"unslick"===d.breakpointSettings[f]?d.unslick(f):(d.options=a.extend({},d.originalSettings,d.breakpointSettings[f]),b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b)),h=f):(d.activeBreakpoint=f,"unslick"===d.breakpointSettings[f]?d.unslick(f):(d.options=a.extend({},d.originalSettings,d.breakpointSettings[f]),b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b)),h=f):null!==d.activeBreakpoint&&(d.activeBreakpoint=null,d.options=d.originalSettings,b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b),h=f),b||h===!1||d.$slider.trigger("breakpoint",[d,h])}},b.prototype.changeSlide=function(b,c){var f,g,h,d=this,e=a(b.currentTarget);switch(e.is("a")&&b.preventDefault(),e.is("li")||(e=e.closest("li")),h=d.slideCount%d.options.slidesToScroll!==0,f=h?0:(d.slideCount-d.currentSlide)%d.options.slidesToScroll,b.data.message){case"previous":g=0===f?d.options.slidesToScroll:d.options.slidesToShow-f,d.slideCount>d.options.slidesToShow&&d.slideHandler(d.currentSlide-g,!1,c);break;case"next":g=0===f?d.options.slidesToScroll:f,d.slideCount>d.options.slidesToShow&&d.slideHandler(d.currentSlide+g,!1,c);break;case"index":var i=0===b.data.index?0:b.data.index||e.index()*d.options.slidesToScroll;d.slideHandler(d.checkNavigable(i),!1,c),e.children().trigger("focus");break;default:return}},b.prototype.checkNavigable=function(a){var c,d,b=this;if(c=b.getNavigableIndexes(),d=0,a>c[c.length-1])a=c[c.length-1];else for(var e in c){if(a<c[e]){a=d;break}d=c[e]}return a},b.prototype.cleanUpEvents=function(){var b=this;b.options.dots&&null!==b.$dots&&a("li",b.$dots).off("click.slick",b.changeSlide).off("mouseenter.slick",a.proxy(b.interrupt,b,!0)).off("mouseleave.
9128slick",a.proxy(b.interrupt,b,!1)),b.$slider.off("focus.slick blur.slick"),b.options.arrows===!0&&b.slideCount>b.options.slidesToShow&&(b.$prevArrow&&b.$prevArrow.off("click.slick",b.changeSlide),b.$nextArrow&&b.$nextArrow.off("click.slick",b.changeSlide)),b.$list.off("touchstart.slick mousedown.slick",b.swipeHandler),b.$list.off("touchmove.slick mousemove.slick",b.swipeHandler),b.$list.off("touchend.slick mouseup.slick",b.swipeHandler),b.$list.off("touchcancel.slick mouseleave.slick",b.swipeHandler),b.$list.off("click.slick",b.clickHandler),a(document).off(b.visibilityChange,b.visibility),b.cleanUpSlideEvents(),b.options.accessibility===!0&&b.$list.off("keydown.slick",b.keyHandler),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().off("click.slick",b.selectHandler),a(window).off("orientationchange.slick.slick-"+b.instanceUid,b.orientationChange),a(window).off("resize.slick.slick-"+b.instanceUid,b.resize),a("[draggable!=true]",b.$slideTrack).off("dragstart",b.preventDefault),a(window).off("load.slick.slick-"+b.instanceUid,b.setPosition),a(document).off("ready.slick.slick-"+b.instanceUid,b.setPosition)},b.prototype.cleanUpSlideEvents=function(){var b=this;b.$list.off("mouseenter.slick",a.proxy(b.interrupt,b,!0)),b.$list.off("mouseleave.slick",a.proxy(b.interrupt,b,!1))},b.prototype.cleanUpRows=function(){var b,a=this;a.options.rows>1&&(b=a.$slides.children().children(),b.removeAttr("style"),a.$slider.empty().append(b))},b.prototype.clickHandler=function(a){var b=this;b.shouldClick===!1&&(a.stopImmediatePropagation(),a.stopPropagation(),a.preventDefault())},b.prototype.destroy=function(b){var c=this;c.autoPlayClear(),c.touchObject={},c.cleanUpEvents(),a(".slick-cloned",c.$slider).detach(),c.$dots&&c.$dots.remove(),c.$prevArrow&&c.$prevArrow.length&&(c.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),c.htmlExpr.test(c.options.prevArrow)&&c.$prevArrow.remove()),c.$nextArrow&&c.$nextArrow.length&&(c.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),c.htmlExpr.test(c.options.nextArrow)&&c.$nextArrow.remove()),c.$slides&&(c.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){a(this).attr("style",a(this).data("originalStyling"))}),c.$slideTrack.children(this.options.slide).detach(),c.$slideTrack.detach(),c.$list.detach(),c.$slider.append(c.$slides)),c.cleanUpRows(),c.$slider.removeClass("slick-slider"),c.$slider.removeClass("slick-initialized"),c.$slider.removeClass("slick-dotted"),c.unslicked=!0,b||c.$slider.trigger("destroy",[c])},b.prototype.disableTransition=function(a){var b=this,c={};c[b.transitionType]="",b.options.fade===!1?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.fadeSlide=function(a,b){var c=this;c.cssTransitions===!1?(c.$slides.eq(a).css({zIndex:c.options.zIndex}),c.$slides.eq(a).animate({opacity:1},c.options.speed,c.options.easing,b)):(c.applyTransition(a),c.$slides.eq(a).css({opacity:1,zIndex:c.options.zIndex}),b&&setTimeout(function(){c.disableTransition(a),b.call()},c.options.speed))},b.prototype.fadeSlideOut=function(a){var b=this;b.cssTransitions===!1?b.$slides.eq(a).animate({opacity:0,zIndex:b.options.zIndex-2},b.options.speed,b.options.easing):(b.applyTransition(a),b.$slides.eq(a).css({opacity:0,zIndex:b.options.zIndex-2}))},b.prototype.filterSlides=b.prototype.slickFilter=function(a){var b=this;null!==a&&(b.$slidesCache=b.$slides,b.unload(),b.$slideTrack.children(this.options.slide).detach(),b.$slidesCache.filter(a).appendTo(b.$slideTrack),b.reinit())},b.prototype.focusHandler=function(){var b=this;b.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(c){c.stopImmediatePropagation();var d=a(this);setTimeout(function(){b.options.pauseOnFocus&&(b.focussed=d.is(":focus"),b.autoPlay())},0)})},b.prototype.getCurrent=b.prototype.slickCurrentSlide=function(){var a=this;return a.currentSlide},b.prototype.getDotCount=function(){var a=this,b=0,c=0,d=0;if(a.options.infinite===!0)for(;b<a.slideCount;)++d,b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;else if(a.options.centerMode===!0)d=a.slideCount;else if(a.options.asNavFor)for(;b<a.slideCount;)++d,b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;else d=1+Math.ceil((a.slideCount-a.options.slidesToShow)/a.options.slidesToScroll);return d-1},b.prototype.getLeft=function(a){var c,d,f,b=this,e=0;return b.slideOffset=0,d=b.$slides.first().outerHeight(!0),b.options.infinite===!0?(b.slideCount>b.options.slidesToShow&&(b.slideOffset=b.slideWidth*b.options.slidesToShow*-1,e=d*b.options.slidesToShow*-1),b.slideCount%b.options.slidesToScroll!==0&&a+b.options.slidesToScroll>b.slideCount&&b.slideCount>b.options.slidesToShow&&(a>b.slideCount?(b.slideOffset=(b.options.slidesToShow-(a-b.slideCount))*b.slideWidth*-1,e=(b.options.slidesToShow-(a-b.slideCount))*d*-1):(b.slideOffset=b.slideCount%b.options.slidesToScroll*b.slideWidth*-1,e=b.slideCount%b.options.slidesToScroll*d*-1))):a+b.o
vendor: 4,100 bytes, line 9128
9128ptions.slidesToShow>b.slideCount&&(b.slideOffset=(a+b.options.slidesToShow-b.slideCount)*b.slideWidth,e=(a+b.options.slidesToShow-b.slideCount)*d),b.slideCount<=b.options.slidesToShow&&(b.slideOffset=0,e=0),b.options.centerMode===!0&&b.options.infinite===!0?b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)-b.slideWidth:b.options.centerMode===!0&&(b.slideOffset=0,b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)),c=b.options.vertical===!1?a*b.slideWidth*-1+b.slideOffset:a*d*-1+e,b.options.variableWidth===!0&&(f=b.slideCount<=b.options.slidesToShow||b.options.infinite===!1?b.$slideTrack.children(".slick-slide").eq(a):b.$slideTrack.children(".slick-slide").eq(a+b.options.slidesToShow),c=b.options.rtl===!0?f[0]?-1*(b.$slideTrack.width()-f[0].offsetLeft-f.width()):0:f[0]?-1*f[0].offsetLeft:0,b.options.centerMode===!0&&(f=b.slideCount<=b.options.slidesToShow||b.options.infinite===!1?b.$slideTrack.children(".slick-slide").eq(a):b.$slideTrack.children(".slick-slide").eq(a+b.options.slidesToShow+1),c=b.options.rtl===!0?f[0]?-1*(b.$slideTrack.width()-f[0].offsetLeft-f.width()):0:f[0]?-1*f[0].offsetLeft:0,c+=(b.$list.width()-f.outerWidth())/2)),c},b.prototype.getOption=b.prototype.slickGetOption=function(a){var b=this;return b.options[a]},b.prototype.getNavigableIndexes=function(){var e,a=this,b=0,c=0,d=[];for(a.options.infinite===!1?e=a.slideCount:(b=-1*a.options.slidesToScroll,c=-1*a.options.slidesToScroll,e=2*a.slideCount);e>b;)d.push(b),b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;return d},b.prototype.getSlick=function(){return this},b.prototype.getSlideCount=function(){var c,d,e,b=this;return e=b.options.centerMode===!0?b.slideWidth*Math.floor(b.options.slidesToShow/2):0,b.options.swipeToSlide===!0?(b.$slideTrack.find(".slick-slide").each(function(c,f){return f.offsetLeft-e+a(f).outerWidth()/2>-1*b.swipeLeft?(d=f,!1):void 0}),c=Math.abs(a(d).attr("data-slick-index")-b.currentSlide)||1):b.options.slidesToScroll},b.prototype.goTo=b.prototype.slickGoTo=function(a,b){var c=this;c.changeSlide({data:{message:"index",index:parseInt(a)}},b)},b.prototype.init=function(b){var c=this;a(c.$slider).hasClass("slick-initialized")||(a(c.$slider).addClass("slick-initialized"),c.buildRows(),c.buildOut(),c.setProps(),c.startLoad(),c.loadSlider(),c.initializeEvents(),c.updateArrows(),c.updateDots(),c.checkResponsive(!0),c.focusHandler()),b&&c.$slider.trigger("init",[c]),c.options.accessibility===!0&&c.initADA(),c.options.autoplay&&(c.paused=!1,c.autoPlay())},b.prototype.initADA=function(){var b=this;b.$slides.add(b.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),b.$slideTrack.attr("role","listbox"),b.$slides.not(b.$slideTrack.find(".slick-cloned")).each(function(c){a(this).attr({role:"option","aria-describedby":"slick-slide"+b.instanceUid+c})}),null!==b.$dots&&b.$dots.attr("role","tablist").find("li").each(function(c){a(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+b.instanceUid+c,id:"slick-slide"+b.instanceUid+c})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),b.activateADA()},b.prototype.initArrowEvents=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},a.changeSlide),a.$nextArrow.off("click.slick").on("click.slick",{message:"next"},a.changeSlide))},b.prototype.initDotEvents=function(){var b=this;b.options.dots===!0&&b.slideCount>b.options.slidesToShow&&a("li",b.$dots).on("click.slick",{message:"index"},b.changeSlide),b.options.dots===!0&&b.options.pauseOnDotsHover===!0&&a("li",b.$dots).on("mouseenter.slick",a.proxy(b.interrupt,b,!0)).on("mouseleave.slick",a.proxy(b.interrupt,b,!1))},b.prototype.initSlideEvents=function(){var b=this;b.options.pauseOnHover&&(b.$list.on("mouseenter.slick",a.proxy(b.interrupt,b,!0)),b.$list.on("mouseleave.
9128slick",a.proxy(b.interrupt,b,!1)))},b.prototype.initializeEvents=function(){var b=this;b.initArrowEvents(),b.initDotEvents(),b.initSlideEvents(),b.$list.on("touchstart.slick mousedown.slick",{action:"start"},b.swipeHandler),b.$list.on("touchmove.slick mousemove.slick",{action:"move"},b.swipeHandler),b.$list.on("touchend.slick mouseup.slick",{action:"end"},b.swipeHandler),b.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},b.swipeHandler),b.$list.on("click.slick",b.clickHandler),a(document).on(b.visibilityChange,a.proxy(b.visibility,b)),b.options.accessibility===!0&&b.$list.on("keydown.slick",b.keyHandler),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().on("click.slick",b.selectHandler),a(window).on("orientationchange.slick.slick-"+b.instanceUid,a.proxy(b.orientationChange,b)),a(window).on("resize.slick.slick-"+b.instanceUid,a.proxy(b.resize,b)),a("[draggable!=true]",b.$slideTrack).on("dragstart",b.preventDefault),a(window).on("load.slick.slick-"+b.instanceUid,b.setPosition),a(document).on("ready.slick.slick-"+b.instanceUid,b.setPosition)},b.prototype.initUI=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.show(),a.$nextArrow.show()),a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&a.$dots.show()},b.prototype.keyHandler=function(a){var b=this;a.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===a.keyCode&&b.options.accessibility===!0?b.changeSlide({data:{message:b.options.rtl===!0?"next":"previous"}}):39===a.keyCode&&b.options.accessibility===!0&&b.changeSlide({data:{message:b.options.rtl===!0?"previous":"next"}}))},b.prototype.lazyLoad=function(){function g(c){a("img[data-lazy]",c).each(function(){var c=a(this),d=a(this).attr("data-lazy"),e=document.createElement("img");e.onload=function(){c.animate({opacity:0}
vendor: 4,284 bytes, line 9128
9128,100,function(){c.attr("src",d).animate({opacity:1},200,function(){c.removeAttr("data-lazy").removeClass("slick-loading")}),b.$slider.trigger("lazyLoaded",[b,c,d])})},e.onerror=function(){c.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),b.$slider.trigger("lazyLoadError",[b,c,d])},e.src=d})}var c,d,e,f,b=this;b.options.centerMode===!0?b.options.infinite===!0?(e=b.currentSlide+(b.options.slidesToShow/2+1),f=e+b.options.slidesToShow+2):(e=Math.max(0,b.currentSlide-(b.options.slidesToShow/2+1)),f=2+(b.options.slidesToShow/2+1)+b.currentSlide):(e=b.options.infinite?b.options.slidesToShow+b.currentSlide:b.currentSlide,f=Math.ceil(e+b.options.slidesToShow),b.options.fade===!0&&(e>0&&e--,f<=b.slideCount&&f++)),c=b.$slider.find(".slick-slide").slice(e,f),g(c),b.slideCount<=b.options.slidesToShow?(d=b.$slider.find(".slick-slide"),g(d)):b.currentSlide>=b.slideCount-b.options.slidesToShow?(d=b.$slider.find(".slick-cloned").slice(0,b.options.slidesToShow),g(d)):0===b.currentSlide&&(d=b.$slider.find(".slick-cloned").slice(-1*b.options.slidesToShow),g(d))},b.prototype.loadSlider=function(){var a=this;a.setPosition(),a.$slideTrack.css({opacity:1}),a.$slider.removeClass("slick-loading"),a.initUI(),"progressive"===a.options.lazyLoad&&a.progressiveLazyLoad()},b.prototype.next=b.prototype.slickNext=function(){var a=this;a.changeSlide({data:{message:"next"}})},b.prototype.orientationChange=function(){var a=this;a.checkResponsive(),a.setPosition()},b.prototype.pause=b.prototype.slickPause=function(){var a=this;a.autoPlayClear(),a.paused=!0},b.prototype.play=b.prototype.slickPlay=function(){var a=this;a.autoPlay(),a.options.autoplay=!0,a.paused=!1,a.focussed=!1,a.interrupted=!1},b.prototype.postSlide=function(a){var b=this;b.unslicked||(b.$slider.trigger("afterChange",[b,a]),b.animating=!1,b.setPosition(),b.swipeLeft=null,b.options.autoplay&&b.autoPlay(),b.options.accessibility===!0&&b.initADA())},b.prototype.prev=b.prototype.slickPrev=function(){var a=this;a.changeSlide({data:{message:"previous"}})},b.prototype.preventDefault=function(a){a.preventDefault()},b.prototype.progressiveLazyLoad=function(b){b=b||1;var e,f,g,c=this,d=a("img[data-lazy]",c.$slider);d.length?(e=d.first(),f=e.attr("data-lazy"),g=document.createElement("img"),g.onload=function(){e.attr("src",f).removeAttr("data-lazy").removeClass("slick-loading"),c.options.adaptiveHeight===!0&&c.setPosition(),c.$slider.trigger("lazyLoaded",[c,e,f]),c.progressiveLazyLoad()},g.onerror=function(){3>b?setTimeout(function(){c.progressiveLazyLoad(b+1)},500):(e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),c.$slider.trigger("lazyLoadError",[c,e,f]),c.progressiveLazyLoad())},g.src=f):c.$slider.trigger("allImagesLoaded",[c])},b.prototype.refresh=function(b){var d,e,c=this;e=c.slideCount-c.options.slidesToShow,!c.options.infinite&&c.currentSlide>e&&(c.currentSlide=e),c.slideCount<=c.options.slidesToShow&&(c.currentSlide=0),d=c.currentSlide,c.destroy(!0),a.extend(c,c.initials,{currentSlide:d}),c.init(),b||c.changeSlide({data:{message:"index",index:d}},!1)},b.prototype.registerBreakpoints=function(){var c,d,e,b=this,f=b.options.responsive||null;if("array"===a.type(f)&&f.length){b.respondTo=b.options.respondTo||"window";for(c in f)if(e=b.breakpoints.length-1,d=f[c].breakpoint,f.hasOwnProperty(c)){for(;e>=0;)b.breakpoints[e]&&b.breakpoints[e]===d&&b.breakpoints.splice(e,1),e--;b.breakpoints.push(d),b.breakpointSettings[d]=f[c].settings}b.breakpoints.sort(function(a,c){return b.options.mobileFirst?a-c:c-a})}},b.prototype.reinit=function(){var b=this;b.$slides=b.$slideTrack.children(b.options.slide).addClass("slick-slide"),b.slideCount=b.$slides.length,b.currentSlide>=b.slideCount&&0!==b.currentSlide&&(b.currentSlide=b.currentSlide-b.options.slidesToScroll),b.slideCount<=b.options.slidesToShow&&(b.currentSlide=0),b.registerBreakpoints(),b.setProps(),b.setupInfinite(),b.buildArrows(),b.updateArrows(),b.initArrowEvents(),b.buildDots(),b.updateDots(),b.initDotEvents(),b.cleanUpSlideEvents(),b.initSlideEvents(),b.checkResponsive(!1,!0),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().on("click.slick",b.selectHandler),b.setSlideClasses("number"==typeof b.currentSlide?b.currentSlide:0),b.setPosition(),b.focu
vendor: 2,346 bytes, line 9128
9128sHandler(),b.paused=!b.options.autoplay,b.autoPlay(),b.$slider.trigger("reInit",[b])},b.prototype.resize=function(){var b=this;a(window).width()!==b.windowWidth&&(clearTimeout(b.windowDelay),b.windowDelay=window.setTimeout(function(){b.windowWidth=a(window).width(),b.checkResponsive(),b.unslicked||b.setPosition()},50))},b.prototype.removeSlide=b.prototype.slickRemove=function(a,b,c){var d=this;return"boolean"==typeof a?(b=a,a=b===!0?0:d.slideCount-1):a=b===!0?--a:a,d.slideCount<1||0>a||a>d.slideCount-1?!1:(d.unload(),c===!0?d.$slideTrack.children().remove():d.$slideTrack.children(this.options.slide).eq(a).remove(),d.$slides=d.$slideTrack.children(this.options.slide),d.$slideTrack.children(this.options.slide).detach(),d.$slideTrack.append(d.$slides),d.$slidesCache=d.$slides,void d.reinit())},b.prototype.setCSS=function(a){var d,e,b=this,c={};b.options.rtl===!0&&(a=-a),d="left"==b.positionProp?Math.ceil(a)+"px":"0px",e="top"==b.positionProp?Math.ceil(a)+"px":"0px",c[b.positionProp]=a,b.transformsEnabled===!1?b.$slideTrack.css(c):(c={},b.cssTransitions===!1?(c[b.animType]="translate("+d+", "+e+")",b.$slideTrack.css(c)):(c[b.animType]="translate3d("+d+", "+e+", 0px)",b.$slideTrack.css(c)))},b.prototype.setDimensions=function(){var a=this;a.options.vertical===!1?a.options.centerMode===!0&&a.$list.css({padding:"0px "+a.options.centerPadding}):(a.$list.height(a.$slides.first().outerHeight(!0)*a.options.slidesToShow),a.options.centerMode===!0&&a.$list.css({padding:a.options.centerPadding+" 0px"})),a.listWidth=a.$list.width(),a.listHeight=a.$list.height(),a.options.vertical===!1&&a.options.variableWidth===!1?(a.slideWidth=Math.ceil(a.listWidth/a.options.slidesToShow),a.$slideTrack.width(Math.ceil(a.slideWidth*a.$slideTrack.children(".slick-slide").length))):a.options.variableWidth===!0?a.$slideTrack.width(5e3*a.slideCount):(a.slideWidth=Math.ceil(a.listWidth),a.$slideTrack.height(Math.ceil(a.$slides.first().outerHeight(!0)*a.$slideTrack.children(".slick-slide").length)));var b=a.$slides.first().outerWidth(!0)-a.$slides.first().width();a.options.variableWidth===!1&&a.$slideTrack.children(".slick-slide").width(a.slideWidth-b)},b.prototype.setFade=function(){var c,b=this;b.$slides.each(function(d,e){c=b.slideWidth*d*-1,b.options.rtl===!0?a(e).css({position:"relative",right:c,top:0,zIndex:b.options.zIndex-2,opacity:0}
vendor: 3,178 bytes, line 9128
9128):a(e).css({position:"relative",left:c,top:0,zIndex:b.options.zIndex-2,opacity:0})}),b.$slides.eq(b.currentSlide).css({zIndex:b.options.zIndex-1,opacity:1})},b.prototype.setHeight=function(){var a=this;if(1===a.options.slidesToShow&&a.options.adaptiveHeight===!0&&a.options.vertical===!1){var b=a.$slides.eq(a.currentSlide).outerHeight(!0);a.$list.css("height",b)}},b.prototype.setOption=b.prototype.slickSetOption=function(){var c,d,e,f,h,b=this,g=!1;if("object"===a.type(arguments[0])?(e=arguments[0],g=arguments[1],h="multiple"):"string"===a.type(arguments[0])&&(e=arguments[0],f=arguments[1],g=arguments[2],"responsive"===arguments[0]&&"array"===a.type(arguments[1])?h="responsive":"undefined"!=typeof arguments[1]&&(h="single")),"single"===h)b.options[e]=f;else if("multiple"===h)a.each(e,function(a,c){b.options[a]=c});else if("responsive"===h)for(d in f)if("array"!==a.type(b.options.responsive))b.options.responsive=[f[d]];else{for(c=b.options.responsive.length-1;c>=0;)b.options.responsive[c].breakpoint===f[d].breakpoint&&b.options.responsive.splice(c,1),c--;b.options.responsive.push(f[d])}g&&(b.unload(),b.reinit())},b.prototype.setPosition=function(){var a=this;a.setDimensions(),a.setHeight(),a.options.fade===!1?a.setCSS(a.getLeft(a.currentSlide)):a.setFade(),a.$slider.trigger("setPosition",[a])},b.prototype.setProps=function(){var a=this,b=document.body.style;a.positionProp=a.options.vertical===!0?"top":"left","top"===a.positionProp?a.$slider.addClass("slick-vertical"):a.$slider.removeClass("slick-vertical"),(void 0!==b.WebkitTransition||void 0!==b.MozTransition||void 0!==b.msTransition)&&a.options.useCSS===!0&&(a.cssTransitions=!0),a.options.fade&&("number"==typeof a.options.zIndex?a.options.zIndex<3&&(a.options.zIndex=3):a.options.zIndex=a.defaults.zIndex),void 0!==b.OTransform&&(a.animType="OTransform",a.transformType="-o-transform",a.transitionType="OTransition",void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.MozTransform&&(a.animType="MozTransform",a.transformType="-moz-transform",a.transitionType="MozTransition",void 0===b.perspectiveProperty&&void 0===b.MozPerspective&&(a.animType=!1)),void 0!==b.webkitTransform&&(a.animType="webkitTransform",a.transformType="-webkit-transform",a.transitionType="webkitTransition",void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.msTransform&&(a.animType="msTransform",a.transformType="-ms-transform",a.transitionType="msTransition",void 0===b.msTransform&&(a.animType=!1)),void 0!==b.transform&&a.animType!==!1&&(a.animType="transform",a.transformType="transform",a.transitionType="transition"),a.transformsEnabled=a.options.useTransform&&null!==a.animType&&a.animType!==!1},b.prototype.setSlideClasses=function(a){var c,d,e,f,b=this;d=b.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),b.$slides.eq(a).addClass("slick-current"),b.options.centerMode===!0?(c=Math.floor(b.options.slidesToShow/2),b.options.infinite===!0&&(a>=c&&a<=b.slideCount-1-c?b.$slides.slice(a-c,a+c+1).addClass("slick-active").attr("aria-hidden","false"):(e=b.options.slidesToShow+a,
vendor: 1,607 bytes, line 9129
9129d.slice(e-c+1,e+c+2).addClass("slick-active").attr("aria-hidden","false")),0===a?d.eq(d.length-1-b.options.slidesToShow).addClass("slick-center"):a===b.slideCount-1&&d.eq(b.options.slidesToShow).addClass("slick-center")),b.$slides.eq(a).addClass("slick-center")):a>=0&&a<=b.slideCount-b.options.slidesToShow?b.$slides.slice(a,a+b.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):d.length<=b.options.slidesToShow?d.addClass("slick-active").attr("aria-hidden","false"):(f=b.slideCount%b.options.slidesToShow,e=b.options.infinite===!0?b.options.slidesToShow+a:a,b.options.slidesToShow==b.options.slidesToScroll&&b.slideCount-a<b.options.slidesToShow?d.slice(e-(b.options.slidesToShow-f),e+f).addClass("slick-active").attr("aria-hidden","false"):d.slice(e,e+b.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===b.options.lazyLoad&&b.lazyLoad()},b.prototype.setupInfinite=function(){var c,d,e,b=this;if(b.options.fade===!0&&(b.options.centerMode=!1),b.options.infinite===!0&&b.options.fade===!1&&(d=null,b.slideCount>b.options.slidesToShow)){for(e=b.options.centerMode===!0?b.options.slidesToShow+1:b.options.slidesToShow,c=b.slideCount;c>b.slideCount-e;c-=1)d=c-1,a(b.$slides[d]).clone(!0).attr("id","").attr("data-slick-index",d-b.slideCount).prependTo(b.$slideTrack).addClass("slick-cloned");for(c=0;e>c;c+=1)d=c,a(b.$slides[d]).clone(!0).attr("id","").attr("data-slick-index",d+b.slideCount).appendTo(b.$slideTrack).addClass("slick-cloned");b.$slideTrack.find(".slick-cloned").find("[id]").each(function(){a(this).attr("id","")})}},b.prototype.
vendor: 4,540 bytes, line 9129
9129interrupt=function(a){var b=this;a||b.autoPlay(),b.interrupted=a},b.prototype.selectHandler=function(b){var c=this,d=a(b.target).is(".slick-slide")?a(b.target):a(b.target).parents(".slick-slide"),e=parseInt(d.attr("data-slick-index"));return e||(e=0),c.slideCount<=c.options.slidesToShow?(c.setSlideClasses(e),void c.asNavFor(e)):void c.slideHandler(e)},b.prototype.slideHandler=function(a,b,c){var d,e,f,g,j,h=null,i=this;return b=b||!1,i.animating===!0&&i.options.waitForAnimate===!0||i.options.fade===!0&&i.currentSlide===a||i.slideCount<=i.options.slidesToShow?void 0:(b===!1&&i.asNavFor(a),d=a,h=i.getLeft(d),g=i.getLeft(i.currentSlide),i.currentLeft=null===i.swipeLeft?g:i.swipeLeft,i.options.infinite===!1&&i.options.centerMode===!1&&(0>a||a>i.getDotCount()*i.options.slidesToScroll)?void(i.options.fade===!1&&(d=i.currentSlide,c!==!0?i.animateSlide(g,function(){i.postSlide(d)}):i.postSlide(d))):i.options.infinite===!1&&i.options.centerMode===!0&&(0>a||a>i.slideCount-i.options.slidesToScroll)?void(i.options.fade===!1&&(d=i.currentSlide,c!==!0?i.animateSlide(g,function(){i.postSlide(d)}):i.postSlide(d))):(i.options.autoplay&&clearInterval(i.autoPlayTimer),e=0>d?i.slideCount%i.options.slidesToScroll!==0?i.slideCount-i.slideCount%i.options.slidesToScroll:i.slideCount+d:d>=i.slideCount?i.slideCount%i.options.slidesToScroll!==0?0:d-i.slideCount:d,i.animating=!0,i.$slider.trigger("beforeChange",[i,i.currentSlide,e]),f=i.currentSlide,i.currentSlide=e,i.setSlideClasses(i.currentSlide),i.options.asNavFor&&(j=i.getNavTarget(),j=j.slick("getSlick"),j.slideCount<=j.options.slidesToShow&&j.setSlideClasses(i.currentSlide)),i.updateDots(),i.updateArrows(),i.options.fade===!0?(c!==!0?(i.fadeSlideOut(f),i.fadeSlide(e,function(){i.postSlide(e)})):i.postSlide(e),void i.animateHeight()):void(c!==!0?i.animateSlide(h,function(){i.postSlide(e)}):i.postSlide(e))))},b.prototype.startLoad=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.hide(),a.$nextArrow.hide()),a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&a.$dots.hide(),a.$slider.addClass("slick-loading")},b.prototype.swipeDirection=function(){var a,b,c,d,e=this;return a=e.touchObject.startX-e.touchObject.curX,b=e.touchObject.startY-e.touchObject.curY,c=Math.atan2(b,a),d=Math.round(180*c/Math.PI),0>d&&(d=360-Math.abs(d)),45>=d&&d>=0?e.options.rtl===!1?"left":"right":360>=d&&d>=315?e.options.rtl===!1?"left":"right":d>=135&&225>=d?e.options.rtl===!1?"right":"left":e.options.verticalSwiping===!0?d>=35&&135>=d?"down":"up":"vertical"},b.prototype.swipeEnd=function(a){var c,d,b=this;if(b.dragging=!1,b.interrupted=!1,b.shouldClick=b.touchObject.swipeLength>10?!1:!0,void 0===b.touchObject.curX)return!1;if(b.touchObject.edgeHit===!0&&b.$slider.trigger("edge",[b,b.swipeDirection()]),b.touchObject.swipeLength>=b.touchObject.minSwipe){switch(d=b.swipeDirection()){case"left":case"down":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide+b.getSlideCount()):b.currentSlide+b.getSlideCount(),b.currentDirection=0;break;case"right":case"up":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide-b.getSlideCount()):b.currentSlide-b.getSlideCount(),b.currentDirection=1}"vertical"!=d&&(b.slideHandler(c),b.touchObject={},b.$slider.trigger("swipe",[b,d]))}else b.touchObject.startX!==b.touchObject.curX&&(b.slideHandler(b.currentSlide),b.touchObject={})},b.prototype.swipeHandler=function(a){var b=this;if(!(b.options.swipe===!1||"ontouchend"in document&&b.options.swipe===!1||b.options.draggable===!1&&-1!==a.type.indexOf("mouse")))switch(b.touchObject.fingerCount=a.originalEvent&&void 0!==a.originalEvent.touches?a.originalEvent.touches.length:1,b.touchObject.minSwipe=b.listWidth/b.options.touchThreshold,b.options.verticalSwiping===!0&&(b.touchObject.minSwipe=b.listHeight/b.options.touchThreshold),a.data.action){case"start":b.swipeStart(a);break;case"move":b.swipeMove(a);break;case"end":b.swipeEnd(a)}},b.prototype.swipeMove=function(a){var d,e,f,g,h,b=this;return h=void 0!==a.originalEvent?a.originalEvent.touches:null,!b.dragging||h&&1!==h.length?!1:(d=b.getLeft(b.currentSlide),b.touchObject.curX=void 0!==h?h[0].pageX:a.clientX,b.touchObject.curY=void 0!==h?h[0].pageY:a.clientY,b.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(b.touchObject.curX-b.touchObject.startX,2))),b.options.verticalSwiping===!0&&(b.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(b.touchObject.curY-b.touchObject.startY,2)))),e=b.swipeDirection(),"vertical"!==e?(void 0!==a.originalEvent&&b.touchObject.swipeLength>
91294&&a.preventDefault(),g=(b.options.rtl===!1?1:-1)*(b.touchObject.curX>b.touchObject.startX?1:-1),b.options.verticalSwiping===!0&&(g=b.touchObject.curY>b.touchObject.startY?1:-1),f=b.touchObject.swipeLength,b.touchObject.edgeHit=!1,b.options.infinite===!1&&(0===b.currentSlide&&"right"===e||b.currentSlide>=b.getDotCount()&&"left"===e)&&(f=b.touchObject.swipeLength*b.options.edgeFriction,b.touchObject.edgeHit=!0),b.options.vertical===!1?b.swipeLeft=d+f*g:b.swipeLeft=d+f*(b.$list.height()/b.listWidth)*g,b.options.verticalSwiping===!0&&(b.swipeLeft=d+f*g),b.options.fade===!0||b.options.touchMove===!1?!1:b.animating===!0?(b.swipeLeft=null,!1):void b.setCSS(b.swipeLeft)):void 0)},b.prototype.swipeStart=function(a){var c,b=this;return b.interrupted=!0,1!==b.touchObject.fingerCount||b.slideCount<=b.options.slidesToShow?(b.touchObject={},!1):(void 0!==a.originalEvent&&void 0!==a.originalEvent.touches&&(c=a.originalEvent.touches[0]),b.touchObject.startX=b.touchObject.curX=void 0!==c?c.pageX:a.clientX,b.touchObject.startY=b.touchObject.curY=void 0!==c?c.pageY:a.clientY,void(b.dragging=!0))},b.prototype.unfilterSlides=b.prototype.slickUnfilter=function(){var a=this;null!==a.$slidesCache&&(a.unload(),a.$slideTrack.children(this.options.slide).detach(),a.$slidesCache.appendTo(a.$slideTrack),a.reinit())},b.prototype.unload=function(){var b=this;a(".slick-cloned",b.$slider).remove(),b.$dots&&b.$dots.remove(),b.$prevArrow&&b.htmlExpr.test(b.options.prevArrow)&&b.$prevArrow.remove(),b.$nextArrow&&b.htmlExpr.test(b.options.nextArrow)&&b.$nextArrow.remove(),b.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},b.prototype.unslick=function(a){var b=this;b.$slider.trigger("unslick",[b,a]),b.destroy()},b.prototype.updateArrows=function(){var b,a=this;b=Math.floor(a.options.slidesToShow/2),a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&!a.options.infinite&&(a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),a.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===a.currentSlide?(a.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):a.currentSlide>=a.slideCount-a.options.slidesToShow&&a.options.centerMode===!1?(a.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):a.currentSlide>=a.slideCount-1&&a.options.centerMode===!0&&(a.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},b.prototype.updateDots=function(){var a=this;null!==a.$dots&&(a.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),a.$dots.find("li").eq(Math.floor(a.currentSlide/a.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},b.prototype.visibility=function(){var a=this;a.options.autoplay&&(document[a.hidden]?a.interrupted=!0:a.interrupted=!1)},a.fn.slick=function(){var f,g,a=this,c=arguments[0],d=Array.prototype.slice.call(arguments,1),e=a.length;for(f=0;e>f;f++)if("object"==typeof c||"undefined"==typeof c?a[f].slick=new b(a[f],c):g=a[f].slick[c].apply(a[f].slick,d),"undefined"!=typeof g)return g;return a}});
9130
9131if(typeof order === "undefined") { var order = {}; }
9132var order = (function(order) {
9133
9134	/**
9135	 * @access private
9136	 * @var object
9137	 */
9138	var _opts = {};
9139
9140	/**
9141	 * @access private
9142	 * @var array
9143	 */
9144	var _serviceTotalArray = [];
9145
9146	// !----- Event Callbacks
9147
9148   /**
9149	* @access private
9150	* @var object _events
9151	*/
9152	var _events = {
9153
9154		/**
9155		 * callback function for window scroll
9156		 *
9157		 * @return void
9158		 */
9159		onScrollWindow : function () {
9160			// var
9161			// 	scrollTop = $(this).scrollTop(),
9162			// 	$summary  = $('.order-form-summary');
9163
9164			// if ($summary.length) {
9165			// 	if (scrollTop >= ($summary.offset().top - 60)) {
9166			// 		$summary.find('.order-form-summary-container').addClass('fixed');
9167			// 	} else {
9168			// 		$summary.find('.order-form-summary-container').removeClass('fixed');
9169			// 	}
9170			// }
9171		},
9172
9173		/**
9174		 * callback function for window scroll
9175		 *
9176		 * @return void
9177		 */
9178		onResizeWindow : function () {
9179			// if ($('.order-form-summary-container').length) {
9180			// 	$('.order-form-summary-container').css({ width : $('.order-form-summary-container').parent().width() });
9181			// }
9182		},
9183
9184		/**
9185		 * callback function to toggle the form view
9186		 *
9187		 * @return void
9188		 */
9189		onClickToggleService : function () {
9190			var $element   = $(this),
9191				$container = $('[data-order-form]');
9192
9193			$('html, body').animate({
9194				scrollTop : 0
9195			}, 500, function () {
9196				if ($element.hasClass('btn')) {
9197					$('.order-form-toggle').attr('data-current-view', $element.data('view')).find('a[data="contact"]').addClass('current-view').siblings().removeClass('current-view');
9198				} else {
9199					$element.addClass('current-view').siblings().removeClass('current-view').parent().attr('data-current-view', $element.data('view'));
9200				}
9201
9202				$container.attr('data-current-view', $element.data('view'));
9203			});
9204		},
9205
9206		/**
9207		 * callback function to change the area
9208		 *
9209		 * @return void
9210		 */
9211		onChangeArea : function () {
9212			window.location.href = window.location.pathname + '?a=' + $(this).val();
9213
9214		},
9215
9216		/**
9217		 * callback function to change the area
9218		 *
9219		 * @return void
9220		 */
9221		onChangeAreaModal : function () {
9222
9223			$('#modal-home a').attr("href", '/areas/' + $(this).val() + '/');
9224
9225			$('#modal-business a').attr("href", $(this).data("business")) ;
9226			$('#modal-locations').modal('show');
9227
9228			//window.location.href = _opts.siteUrl + '/areas/' + $(this).val() + '/';
9229		},
9230		onClickRBModal: function (e) {
9231
9232			var href = $(this).attr('href');
9233			$.urlParam = function (name) {
9234				var results = new RegExp('[\?&]' + name + '=([^&#]*)')
9235								.match()
9236				return (results !== null) ? results[1] || 0 : false;
9237			}
9238
9239
9240			var business = 'business';
9241			var businessurl = href.match('[\?&]' + business + '=([^&#]*)');
9242			var encodedhref = encodeURIComponent(href.replace(businessurl[0], ''))
9243			.replace(/!/g, '%21')
9244			.replace(/'/g, '%27')
9245			.replace(/\(/g, '%28')
9246			.replace(/\)/g, '%29')
9247			.replace(/\*/g, '%2A')
9248			.replace(/~/g, '%7E')
9249			.replace(/%20/g, '+')
9250			.replace(/%3A/g, ':')
9251			.replace(/%2F/g, '/');
9252
9253			var encodedbusinessurl = encodeURIComponent(businessurl[1])
9254			.replace(/!/g, '%21')
9255			.replace(/'/g, '%27')
9256			.replace(/\(/g, '%28')
9257			.replace(/\)/g, '%29')
9258			.replace(/\*/g, '%2A')
9259			.replace(/~/g, '%7E')
9260			.replace(/%2F/g, '/');
9261
9262			if (businessurl !== null ){
9263				e.preventDefault();
9264				var newhref = encodedhref;
9265				$('#modal-home a').attr("href", newhref);
9266
9267				$('#modal-business a').attr("href",encodedbusinessurl) ;
9268				$('#modal-locations').modal('show');
9269			}
9270		},
9271
9272		/**
9273		 * callback function to select a package
9274		 *
9275		 * @return void
9276		 */
9277		onClickPackageSelect : function () {
9278			var $element    = $(this),
9279				packageData = {
9280					name        : $element.data('package-name'),
9281					price       : $element.data('package-price'),
9282					category    : $element.data('package-category'),
9283					container   : '[data-packaged-service]',
9284					inputType   : $element.data('input-type'),
9285					serviceType : $element.data('service-type')
9286				};
9287				$(this).addClass('selected-package');
9288				$('a[data-package-category="' + $element.data('package-category') + '"').each(function (index, element) {
9289					$(element).addClass('disabled-links');
9290				});
9291
9292			_updateServiceSummary('package', packageData);
9293			_toggleUpgradePackages(packageData.serviceType, false);
9294		},
9295
9296		/**
9297		 * callback function to select an upgrade
9298		 *
9299		 * @return void
9300		 */
9301		onClickUpgradeSelect : function () {
9302			var $element    = $(this),
9303				upgradeData = {
9304					name      : $element.data('upgrade-name'),
9305					price     : $element.data('upgrade-price'),
9306					container : '[data-upgrade-service]',
9307					inputType : $element.data('input-type'),
9308					groupName : $element.data('group-name'),
9309					serviceType : $element.data('service-type')
9310				};
9311				$(this).addClass('selected-upgrade');
9312
9313			_updateServiceSummary('upgrade', upgradeData);
9314		},
9315
9316		/**
9317		 * callback function to remove line items
9318		 *
9319		 * @return void
9320		 */
9321		onClickRemoveLineItem : function (e) {
9322			e.preventDefault();
9323
9324			var $element    = $(this),
9325				container   = $(this).data('container'),
9326				emptyText   = ('[data-upgrade-service]' === container) ? 'No upgrades selected' : 'No packages selected',
9327				serviceType = $(this).data('service-type');
9328
9329			$element.parent().remove();
9330
9331			$('a[data-package-category="' + $element.parent().data('package-category') + '"').each(function (index, element) {
9332				$(element).removeClass('disabled-links').removeClass('selected-package');
9333			});
9334			if ('[data-packaged-service]' === container) {
9335				$('[data-upgrade-service]').find('li a[data-service-type="' + serviceType + '"]').each(function (index, element) {
9336					$(element).parent().remove();
9337				});
9338
9339				if (!$('[data-upgrade-service]').find('li').length) {
9340					$('[data-upgrade-service]').find('ul').html($('<li class="no-selection" data-line-item-price="0.00">' + emptyText + '</li>'));
9341				}
9342
9343				_toggleUpgradePackages(serviceType, true);
9344			}
9345			if ('[data-upgrade-service]' === container) {
9346				var removetarget = $element.parent().data('line-item-name');
9347				$('button[data-upgrade-name="' + removetarget + '"].selected-upgrade').removeClass('selected-upgrade');
9348			}
9349
9350			if (!$(container).find('li').length) {
9351				$(container).find('ul').html($('<li class="no-selection" data-line-item-price="0.00">' + emptyText + '</li>'));
9352			}
9353
9354			_populateSummaryTotal();
9355		},
9356		onClickTriggerRemoveLineItem : function (e) {
9357			e.preventDefault();
9358
9359			var $element    = $(this),
9360				target   = $(this).data('upgrade-remove-name');
9361
9362				$('.summary-block li[data-line-item-name="' + target + '"] a').click();
9363
9364		},
9365
9366
9367		/**
9368		 * callback function to submit the order form
9369		 *
9370		 * @return void
9371		 */
9372		onSubmitOrderForm : function (e) {
9373			if ($('[data-packaged-service]').find('li.no-selection').length) {
9374				e.preventDefault();
9375
9376				if(window["gf_submitting_25"]){
9377					alert('You must fill out required fields and select at least 1 package.');
9378				}
9379				window["gf_submitting_25"]=false;
9380
9381				$('.gform_ajax_spinner').remove();
9382
9383			}
9384			var $form    = $(this),
9385				data     = {},
9386				upgrades = '',
9387				packages = '';
9388
9389			$('[data-packaged-service] li').each(function (index, element) {
9390				if ($(element).hasClass('no-selection')) {
9391					return false;
9392				}
9393
9394				var package = $(element).data('line-item-name') + ': '+$(element).data('line-item-price')+',';
9395
9396				packages += package;
9397			});
9398
9399			$('[data-upgrade-service] li').each(function (index, element) {
9400				if ($(element).hasClass('no-selection')) {
9401					return false;
9402				}
9403				var quantity = (typeof $(element).data('line-item-quantity') !== 'undefined') ? $(element).data('line-item-quantity') : 1;
9404
9405				var upgrade = $(element).data('line-item-name') + ' X ' + quantity +': '+$(element).data('line-item-price');
9406
9407
9408				upgrades += upgrade;
9409			});
9410
9411			data = {
9412				action       : 'submit_order_form',
9413				form_data    : $form.serialize(),
9414				request_type : $form.attr('method'),
9415				package_data : packages,
9416				upgrade_data : upgrades
9417			};
9418
9419			//Add Ons
9420			$('#field_25_6 input').val(upgrades);
9421			//Packages
9422			$('#field_25_5 input').val(packages);
9423			//Location
9424			$('#field_25_7 input').val($('.selected-location span').text());
9425			//Price
9426			$('#field_25_8 input').val('$'+$('.summary-total .dollars').text()+'.'+$('.summary-total .cents').text());
9427		}
9428	};
9429
9430
9431	// !----- Private Methods
9432
9433	/**
9434	 * Updates the service summary with the line items and pricing
9435	 *
9436	 * @param e
9437	 * @return void
9438	 */
9439	var _updateServiceSummary = function (type, data) {
9440		var formattedPrice = accounting.formatMoney(data.price, '');
9441
9442		if ($(data.container).find('li.no-selection').length) {
9443			$(data.container).find('li.no-selection').remove();
9444		}
9445		switch (data.inputType) {
9446			case 'number':
9447				if ($(data.container).find('li[data-line-item-name="'+ data.name +'"]').length) {
9448					var quauntity   = Number($(data.container).find('li[data-line-item-name="'+ data.name +'"]').data('line-item-quantity')),
9449						newQuantity = quauntity,
9450						newQuanText = ' (X' + newQuantity + ')';
9451
9452					$(data.container).find('li[data-line-item-name="'+ data.name +'"]').attr('data-line-item-quantity', newQuantity).data('line-item-quantity', newQuantity).attr('data-line-item-price', accounting.formatMoney((data.price * newQuantity), '')).data('line-item-price', accounting.formatMoney((data.price * newQuantity), '')).html(data.name +' <a href="#" data-service-type="' + data.serviceType + '" data-container="' + data.container + '" data-remove-line-item>Remove</a><span>$'+ accounting.formatMoney((data.price * newQuantity), '') +'</span>');
9453					$('<abbr>'+ newQuanText +'</abbr>').insertBefore($(data.container).find('li[data-line-item-name="'+ data.name +'"] a'));
9454
9455
9456				} else {
9457					$(data.container).find('ul').append($('<li data-line-item-name="'+ data.name +'" data-line-item-price="'+ formattedPrice +'" data-line-item-quantity="0">'+ data.name +' <a href="#" data-service-type="' + data.serviceType + '" data-container="' + data.container + '" data-remove-line-item>Remove</a><span>$'+ formattedPrice +'</span></li>'));
9458				}
9459				break;
9460
9461			case 'radio':
9462				if ('package' === type) {
9463					if ($(data.container).find('li[data-package-category="'+ data.category +'"]').length) {
9464						$(data.container).find('li[data-package-category="'+ data.category +'"]').replaceWith($('<li data-line-item-name="'+ data.name +'" data-package-category="'+ data.category +'" data-line-item-price="'+ formattedPrice +'">'+ data.name +' <a href="#" data-service-type="' + data.serviceType + '" data-container="' + data.container + '" data-remove-line-item>Remove</a><span>$'+ formattedPrice +'</span></li>'));
9465					} else {
9466						$(data.container).find('ul').append($('<li data-line-item-name="'+ data.name +'" data-package-category="'+ data.category +'" data-line-item-price="'+ formattedPrice +'">'+ data.name +' <a href="#" data-service-type="' + data.serviceType + '" data-container="' + data.container + '" data-remove-line-item>Remove</a><span>$'+ formattedPrice +'</span></li>'));
9467					}
9468				} else {
9469					if ($(data.container).find('li[data-group-name="'+ data.groupName +'"]').length) {
9470						$(data.container).find('li[data-group-name="'+ data.groupName +'"]').replaceWith($('<li data-line-item-name="'+ data.name +'" data-group-name="'+ data.groupName +'" data-line-item-price="'+ formattedPrice +'">'+ data.name +' <a href="#" data-service-type="' + data.serviceType + '" data-container="' + data.container + '" data-remove-line-item>Remove</a><span>$'+ formattedPrice +'</span></li>'));
9471					} else {
9472						$(data.container).find('ul').append($('<li data-line-item-name="'+ data.name +'" data-group-name="'+ data.groupName +'" data-line-item-price="'+ formattedPrice +'">'+ data.name +' <a href="#" data-service-type="' + data.serviceType + '" data-container="' + data.container + '" data-remove-line-item>Remove</a><span>$'+ formattedPrice +'</span></li>'));
9473					}
9474				}
9475
9476				break;
9477
9478			case 'checkbox':
9479			default:
9480				if (!$(data.container).find('li[data-line-item-name="'+ data.name +'"]').length) {
9481					$(data.container).find('ul').append($('<li data-line-item-name="'+ data.name +'" data-line-item-price="'+ formattedPrice +'">'+ data.name +' <a href="#" data-service-type="' + data.serviceType + '" data-container="' + data.container + '" data-remove-line-item>Remove</a><span>$'+ formattedPrice +'</span></li>'));
9482				}
9483				break;
9484		}
9485
9486		_populateSummaryTotal();
9487	};
9488
9489	/**
9490	 * Populates the summary total
9491	 *
9492	 * @param e
9493	 * @return void
9494	 */
9495	var _populateSummaryTotal = function () {
9496		var	d,c,
9497			array,
9498			string,
9499			lItems   = [],
9500			$cents   = $('.summary-total').find('.cents'),
9501			$dollars = $('.summary-total').find('.dollars');
9502
9503		$('.order-form-summary li').each(function (index, element) {
9504			lItems.push(Number($(element).data('line-item-price')));
9505		});
9506
9507		sum    = lItems.reduce((a, b) => a + b, 0);
9508		format = accounting.formatMoney(sum, '');
9509		array  = format.split('.');
9510
9511		$dollars.html(array[0]);
9512		$cents.html(array[1]);
9513	};
9514
9515	/**
9516	 * Toggles the upgrade packages that are tied to the selected package
9517	 *
9518	 * @param e
9519	 * @return void
9520	 */
9521	var _toggleUpgradePackages = function (service, removeItem) {
9522		var	$parent      = $('.order-form-upgrade-block');
9523			serviceArray = service.split(',');
9524
9525		$parent.show();
9526
9527		$('.order-form-upgrade-block .order-form-option-block').each(function (index, element) {
9528			var service = $(element).data('service');
9529
9530			if (serviceArray.includes(service)) {
9531				if (removeItem && $(element).is(':visible')) {
9532					$(element).hide();
9533				} else {
9534					$(element).show();
9535				}
9536			}
9537		});
9538
9539	};
9540
9541
9542
9543	/**
9544	 * jQuery document ready callback
9545	 *
9546	 * @access private
9547	 * @return void
9548	 */
9549	var _onDocumentReady = function () {
9550		$(document).ready(function(){
9551			// Pre-select the package if provided
9552			var params = new URLSearchParams(window.location.search);
9553			if(params.has('b')){
9554				button = $('a[data-package-slug="' + params.get('b') + '"');
9555				$(button).click();
9556			}
9557			$(function () {
9558				$('[data-toggle="tooltip"]').tooltip()
9559			  })
9560		});
9561
9562		$(window)
9563			// Bind scroll event to window
9564			.on('scroll', _events.onScrollWindow)
9565			// Bind resize event to window
9566			.on('resize', _events.onResizeWindow);
9567
9568		$(document)
9569			// Bind click event to toggle view of order form
9570			//.on('click', '[data-toggle-view]', _events.onClickToggleService)
9571			// Bind click event to select service package
9572			.on('click', '[data-package-select]', _events.onClickPackageSelect)
9573			// Bind click event to select service upgrade
9574			.on('click', '[data-upgrade-select]', _events.onClickUpgradeSelect)
9575			// Bind click event to remove from order summary
9576			.on('click', '[data-remove-line-item]', _events.onClickRemoveLineItem)
9577			// Bind click event to remove from order summary
9578			.on('click', '.toggle-off', _events.onClickTriggerRemoveLineItem)
9579			// Bind click event to remove from order summary
9580			.on('click', 'a', _events.onClickRBModal)
9581			// Bind =change event to change service area
9582			.on('change', '#order-area', _events.onChangeArea)
9583			// Bind =change event to change service area
9584			.on('change', '#modal-area', _events.onChangeAreaModal)
9585			// Bind =change event to change service area
9586			.on('submit', '.gform_wrapper form', _events.onSubmitOrderForm);
9587
9588		// if ($('.order-form-summary-container').length) {
9589		// 	$('.order-form-summary-container').css({ width : $('.order-form-summary-container').parent().width() });
9590		// }
9591	};
9592
9593
9594	// !----- Public Methods
9595
9596   /**
9597	* Initializes the order object
9598	*
9599	* @access public
9600	* @return void
9601	*/
9602	order.init = function (opts) {
9603		_opts = $.extend({}, _opts, opts);
9604	};
9605
9606	// !----- Bind events
9607	$(_onDocumentReady);
9608
9609	// !---- Return the object
9610	return order;
9611
9612}(order || {}));
9613

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