@@ -1,8866 +0,0 @@
1-/*!
2- * jQuery JavaScript Library v1.6
3- * http://jquery.com/
4- *
5- * Copyright 2011, John Resig
6- * Dual licensed under the MIT or GPL Version 2 licenses.
7- * http://jquery.org/license
8- *
9- * Includes Sizzle.js
10- * http://sizzlejs.com/
11- * Copyright 2011, The Dojo Foundation
12- * Released under the MIT, BSD, and GPL Licenses.
13- *
14- * Date: Mon May 2 13:50:00 2011 -0400
15- */
16-(function( window, undefined ) {
17-
18-// Use the correct document accordingly with window argument (sandbox)
19-var document = window.document,
20- navigator = window.navigator,
21- location = window.location;
22-var jQuery = (function() {
23-
24-// Define a local copy of jQuery
25-var jQuery = function( selector, context ) {
26- // The jQuery object is actually just the init constructor 'enhanced'
27- return new jQuery.fn.init( selector, context, rootjQuery );
28- },
29-
30- // Map over jQuery in case of overwrite
31- _jQuery = window.jQuery,
32-
33- // Map over the $ in case of overwrite
34- _$ = window.$,
35-
36- // A central reference to the root jQuery(document)
37- rootjQuery,
38-
39- // A simple way to check for HTML strings or ID strings
40- // (both of which we optimize for)
41- quickExpr = /^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,
42-
43- // Check if a string has a non-whitespace character in it
44- rnotwhite = /\S/,
45-
46- // Used for trimming whitespace
47- trimLeft = /^\s+/,
48- trimRight = /\s+$/,
49-
50- // Check for digits
51- rdigit = /\d/,
52-
53- // Match a standalone tag
54- rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
55-
56- // JSON RegExp
57- rvalidchars = /^[\],:{}\s]*$/,
58- rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
59- rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
60- rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g,
61-
62- // Useragent RegExp
63- rwebkit = /(webkit)[ \/]([\w.]+)/,
64- ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/,
65- rmsie = /(msie) ([\w.]+)/,
66- rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/,
67-
68- // Keep a UserAgent string for use with jQuery.browser
69- userAgent = navigator.userAgent,
70-
71- // For matching the engine and version of the browser
72- browserMatch,
73-
74- // The deferred used on DOM ready
75- readyList,
76-
77- // The ready event handler
78- DOMContentLoaded,
79-
80- // Save a reference to some core methods
81- toString = Object.prototype.toString,
82- hasOwn = Object.prototype.hasOwnProperty,
83- push = Array.prototype.push,
84- slice = Array.prototype.slice,
85- trim = String.prototype.trim,
86- indexOf = Array.prototype.indexOf,
87-
88- // [[Class]] -> type pairs
89- class2type = {};
90-
91-jQuery.fn = jQuery.prototype = {
92- constructor: jQuery,
93- init: function( selector, context, rootjQuery ) {
94- var match, elem, ret, doc;
95-
96- // Handle $(""), $(null), or $(undefined)
97- if ( !selector ) {
98- return this;
99- }
100-
101- // Handle $(DOMElement)
102- if ( selector.nodeType ) {
103- this.context = this[0] = selector;
104- this.length = 1;
105- return this;
106- }
107-
108- // The body element only exists once, optimize finding it
109- if ( selector === "body" && !context && document.body ) {
110- this.context = document;
111- this[0] = document.body;
112- this.selector = selector;
113- this.length = 1;
114- return this;
115- }
116-
117- // Handle HTML strings
118- if ( typeof selector === "string" ) {
119- // Are we dealing with HTML string or an ID?
120- if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {
121- // Assume that strings that start and end with <> are HTML and skip the regex check
122- match = [ null, selector, null ];
123-
124- } else {
125- match = quickExpr.exec( selector );
126- }
127-
128- // Verify a match, and that no context was specified for #id
129- if ( match && (match[1] || !context) ) {
130-
131- // HANDLE: $(html) -> $(array)
132- if ( match[1] ) {
133- context = context instanceof jQuery ? context[0] : context;
134- doc = (context ? context.ownerDocument || context : document);
135-
136- // If a single string is passed in and it's a single tag
137- // just do a createElement and skip the rest
138- ret = rsingleTag.exec( selector );
139-
140- if ( ret ) {
141- if ( jQuery.isPlainObject( context ) ) {
142- selector = [ document.createElement( ret[1] ) ];
143- jQuery.fn.attr.call( selector, context, true );
144-
145- } else {
146- selector = [ doc.createElement( ret[1] ) ];
147- }
148-
149- } else {
150- ret = jQuery.buildFragment( [ match[1] ], [ doc ] );
151- selector = (ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment).childNodes;
152- }
153-
154- return jQuery.merge( this, selector );
155-
156- // HANDLE: $("#id")
157- } else {
158- elem = document.getElementById( match[2] );
159-
160- // Check parentNode to catch when Blackberry 4.6 returns
161- // nodes that are no longer in the document #6963
162- if ( elem && elem.parentNode ) {
163- // Handle the case where IE and Opera return items
164- // by name instead of ID
165- if ( elem.id !== match[2] ) {
166- return rootjQuery.find( selector );
167- }
168-
169- // Otherwise, we inject the element directly into the jQuery object
170- this.length = 1;
171- this[0] = elem;
172- }
173-
174- this.context = document;
175- this.selector = selector;
176- return this;
177- }
178-
179- // HANDLE: $(expr, $(...))
180- } else if ( !context || context.jquery ) {
181- return (context || rootjQuery).find( selector );
182-
183- // HANDLE: $(expr, context)
184- // (which is just equivalent to: $(context).find(expr)
185- } else {
186- return this.constructor( context ).find( selector );
187- }
188-
189- // HANDLE: $(function)
190- // Shortcut for document ready
191- } else if ( jQuery.isFunction( selector ) ) {
192- return rootjQuery.ready( selector );
193- }
194-
195- if (selector.selector !== undefined) {
196- this.selector = selector.selector;
197- this.context = selector.context;
198- }
199-
200- return jQuery.makeArray( selector, this );
201- },
202-
203- // Start with an empty selector
204- selector: "",
205-
206- // The current version of jQuery being used
207- jquery: "1.6",
208-
209- // The default length of a jQuery object is 0
210- length: 0,
211-
212- // The number of elements contained in the matched element set
213- size: function() {
214- return this.length;
215- },
216-
217- toArray: function() {
218- return slice.call( this, 0 );
219- },
220-
221- // Get the Nth element in the matched element set OR
222- // Get the whole matched element set as a clean array
223- get: function( num ) {
224- return num == null ?
225-
226- // Return a 'clean' array
227- this.toArray() :
228-
229- // Return just the object
230- ( num < 0 ? this[ this.length + num ] : this[ num ] );
231- },
232-
233- // Take an array of elements and push it onto the stack
234- // (returning the new matched element set)
235- pushStack: function( elems, name, selector ) {
236- // Build a new jQuery matched element set
237- var ret = this.constructor();
238-
239- if ( jQuery.isArray( elems ) ) {
240- push.apply( ret, elems );
241-
242- } else {
243- jQuery.merge( ret, elems );
244- }
245-
246- // Add the old object onto the stack (as a reference)
247- ret.prevObject = this;
248-
249- ret.context = this.context;
250-
251- if ( name === "find" ) {
252- ret.selector = this.selector + (this.selector ? " " : "") + selector;
253- } else if ( name ) {
254- ret.selector = this.selector + "." + name + "(" + selector + ")";
255- }
256-
257- // Return the newly-formed element set
258- return ret;
259- },
260-
261- // Execute a callback for every element in the matched set.
262- // (You can seed the arguments with an array of args, but this is
263- // only used internally.)
264- each: function( callback, args ) {
265- return jQuery.each( this, callback, args );
266- },
267-
268- ready: function( fn ) {
269- // Attach the listeners
270- jQuery.bindReady();
271-
272- // Add the callback
273- readyList.done( fn );
274-
275- return this;
276- },
277-
278- eq: function( i ) {
279- return i === -1 ?
280- this.slice( i ) :
281- this.slice( i, +i + 1 );
282- },
283-
284- first: function() {
285- return this.eq( 0 );
286- },
287-
288- last: function() {
289- return this.eq( -1 );
290- },
291-
292- slice: function() {
293- return this.pushStack( slice.apply( this, arguments ),
294- "slice", slice.call(arguments).join(",") );
295- },
296-
297- map: function( callback ) {
298- return this.pushStack( jQuery.map(this, function( elem, i ) {
299- return callback.call( elem, i, elem );
300- }));
301- },
302-
303- end: function() {
304- return this.prevObject || this.constructor(null);
305- },
306-
307- // For internal use only.
308- // Behaves like an Array's method, not like a jQuery method.
309- push: push,
310- sort: [].sort,
311- splice: [].splice
312-};
313-
314-// Give the init function the jQuery prototype for later instantiation
315-jQuery.fn.init.prototype = jQuery.fn;
316-
317-jQuery.extend = jQuery.fn.extend = function() {
318- var options, name, src, copy, copyIsArray, clone,
319- target = arguments[0] || {},
320- i = 1,
321- length = arguments.length,
322- deep = false;
323-
324- // Handle a deep copy situation
325- if ( typeof target === "boolean" ) {
326- deep = target;
327- target = arguments[1] || {};
328- // skip the boolean and the target
329- i = 2;
330- }
331-
332- // Handle case when target is a string or something (possible in deep copy)
333- if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
334- target = {};
335- }
336-
337- // extend jQuery itself if only one argument is passed
338- if ( length === i ) {
339- target = this;
340- --i;
341- }
342-
343- for ( ; i < length; i++ ) {
344- // Only deal with non-null/undefined values
345- if ( (options = arguments[ i ]) != null ) {
346- // Extend the base object
347- for ( name in options ) {
348- src = target[ name ];
349- copy = options[ name ];
350-
351- // Prevent never-ending loop
352- if ( target === copy ) {
353- continue;
354- }
355-
356- // Recurse if we're merging plain objects or arrays
357- if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {
358- if ( copyIsArray ) {
359- copyIsArray = false;
360- clone = src && jQuery.isArray(src) ? src : [];
361-
362- } else {
363- clone = src && jQuery.isPlainObject(src) ? src : {};
364- }
365-
366- // Never move original objects, clone them
367- target[ name ] = jQuery.extend( deep, clone, copy );
368-
369- // Don't bring in undefined values
370- } else if ( copy !== undefined ) {
371- target[ name ] = copy;
372- }
373- }
374- }
375- }
376-
377- // Return the modified object
378- return target;
379-};
380-
381-jQuery.extend({
382- noConflict: function( deep ) {
383- if ( window.$ === jQuery ) {
384- window.$ = _$;
385- }
386-
387- if ( deep && window.jQuery === jQuery ) {
388- window.jQuery = _jQuery;
389- }
390-
391- return jQuery;
392- },
393-
394- // Is the DOM ready to be used? Set to true once it occurs.
395- isReady: false,
396-
397- // A counter to track how many items to wait for before
398- // the ready event fires. See #6781
399- readyWait: 1,
400-
401- // Hold (or release) the ready event
402- holdReady: function( hold ) {
403- if ( hold ) {
404- jQuery.readyWait++;
405- } else {
406- jQuery.ready( true );
407- }
408- },
409-
410- // Handle when the DOM is ready
411- ready: function( wait ) {
412- // Either a released hold or an DOMready/load event and not yet ready
413- if ( (wait === true && !--jQuery.readyWait) || (wait !== true && !jQuery.isReady) ) {
414- // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
415- if ( !document.body ) {
416- return setTimeout( jQuery.ready, 1 );
417- }
418-
419- // Remember that the DOM is ready
420- jQuery.isReady = true;
421-
422- // If a normal DOM Ready event fired, decrement, and wait if need be
423- if ( wait !== true && --jQuery.readyWait > 0 ) {
424- return;
425- }
426-
427- // If there are functions bound, to execute
428- readyList.resolveWith( document, [ jQuery ] );
429-
430- // Trigger any bound ready events
431- if ( jQuery.fn.trigger ) {
432- jQuery( document ).trigger( "ready" ).unbind( "ready" );
433- }
434- }
435- },
436-
437- bindReady: function() {
438- if ( readyList ) {
439- return;
440- }
441-
442- readyList = jQuery._Deferred();
443-
444- // Catch cases where $(document).ready() is called after the
445- // browser event has already occurred.
446- if ( document.readyState === "complete" ) {
447- // Handle it asynchronously to allow scripts the opportunity to delay ready
448- return setTimeout( jQuery.ready, 1 );
449- }
450-
451- // Mozilla, Opera and webkit nightlies currently support this event
452- if ( document.addEventListener ) {
453- // Use the handy event callback
454- document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false );
455-
456- // A fallback to window.onload, that will always work
457- window.addEventListener( "load", jQuery.ready, false );
458-
459- // If IE event model is used
460- } else if ( document.attachEvent ) {
461- // ensure firing before onload,
462- // maybe late but safe also for iframes
463- document.attachEvent( "onreadystatechange", DOMContentLoaded );
464-
465- // A fallback to window.onload, that will always work
466- window.attachEvent( "onload", jQuery.ready );
467-
468- // If IE and not a frame
469- // continually check to see if the document is ready
470- var toplevel = false;
471-
472- try {
473- toplevel = window.frameElement == null;
474- } catch(e) {}
475-
476- if ( document.documentElement.doScroll && toplevel ) {
477- doScrollCheck();
478- }
479- }
480- },
481-
482- // See test/unit/core.js for details concerning isFunction.
483- // Since version 1.3, DOM methods and functions like alert
484- // aren't supported. They return false on IE (#2968).
485- isFunction: function( obj ) {
486- return jQuery.type(obj) === "function";
487- },
488-
489- isArray: Array.isArray || function( obj ) {
490- return jQuery.type(obj) === "array";
491- },
492-
493- // A crude way of determining if an object is a window
494- isWindow: function( obj ) {
495- return obj && typeof obj === "object" && "setInterval" in obj;
496- },
497-
498- isNaN: function( obj ) {
499- return obj == null || !rdigit.test( obj ) || isNaN( obj );
500- },
501-
502- type: function( obj ) {
503- return obj == null ?
504- String( obj ) :
505- class2type[ toString.call(obj) ] || "object";
506- },
507-
508- isPlainObject: function( obj ) {
509- // Must be an Object.
510- // Because of IE, we also have to check the presence of the constructor property.
511- // Make sure that DOM nodes and window objects don't pass through, as well
512- if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
513- return false;
514- }
515-
516- // Not own constructor property must be Object
517- if ( obj.constructor &&
518- !hasOwn.call(obj, "constructor") &&
519- !hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) {
520- return false;
521- }
522-
523- // Own properties are enumerated firstly, so to speed up,
524- // if last one is own, then all properties are own.
525-
526- var key;
527- for ( key in obj ) {}
528-
529- return key === undefined || hasOwn.call( obj, key );
530- },
531-
532- isEmptyObject: function( obj ) {
533- for ( var name in obj ) {
534- return false;
535- }
536- return true;
537- },
538-
539- error: function( msg ) {
540- throw msg;
541- },
542-
543- parseJSON: function( data ) {
544- if ( typeof data !== "string" || !data ) {
545- return null;
546- }
547-
548- // Make sure leading/trailing whitespace is removed (IE can't handle it)
549- data = jQuery.trim( data );
550-
551- // Attempt to parse using the native JSON parser first
552- if ( window.JSON && window.JSON.parse ) {
553- return window.JSON.parse( data );
554- }
555-
556- // Make sure the incoming data is actual JSON
557- // Logic borrowed from http://json.org/json2.js
558- if ( rvalidchars.test( data.replace( rvalidescape, "@" )
559- .replace( rvalidtokens, "]" )
560- .replace( rvalidbraces, "")) ) {
561-
562- return (new Function( "return " + data ))();
563-
564- }
565- jQuery.error( "Invalid JSON: " + data );
566- },
567-
568- // Cross-browser xml parsing
569- // (xml & tmp used internally)
570- parseXML: function( data , xml , tmp ) {
571-
572- if ( window.DOMParser ) { // Standard
573- tmp = new DOMParser();
574- xml = tmp.parseFromString( data , "text/xml" );
575- } else { // IE
576- xml = new ActiveXObject( "Microsoft.XMLDOM" );
577- xml.async = "false";
578- xml.loadXML( data );
579- }
580-
581- tmp = xml.documentElement;
582-
583- if ( ! tmp || ! tmp.nodeName || tmp.nodeName === "parsererror" ) {
584- jQuery.error( "Invalid XML: " + data );
585- }
586-
587- return xml;
588- },
589-
590- noop: function() {},
591-
592- // Evaluates a script in a global context
593- // Workarounds based on findings by Jim Driscoll
594- // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context
595- globalEval: function( data ) {
596- if ( data && rnotwhite.test( data ) ) {
597- // We use execScript on Internet Explorer
598- // We use an anonymous function so that context is window
Cut short: this commit's diff is over 1000 lines.