home *** CD-ROM | disk | FTP | other *** search
/ 61.19.244.139 / 61.19.244.139.zip / 61.19.244.139 / wsCompulTransfer / cp2013 / Scripts / jquery-1.9.1-vsdoc.js next >
Text File  |  2013-06-07  |  260KB  |  6,728 lines

  1. /*
  2. * This file has been generated to support Visual Studio IntelliSense.
  3. * You should not use this file at runtime inside the browser--it is only
  4. * intended to be used only for design-time IntelliSense.  Please use the
  5. * standard jQuery library for all runtime use.
  6. *
  7. * Comment version: 1.9.1
  8. */
  9.  
  10. /*!
  11. * jQuery JavaScript Library v1.9.1
  12. * http://jquery.com/
  13. *
  14. * Includes Sizzle.js
  15. * http://sizzlejs.com/
  16. *
  17. * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
  18. * Released under the MIT license
  19. * http://jquery.org/license
  20. *
  21. */
  22.  
  23. (function (window, undefined) {
  24.     var jQuery = function (selector, context) {
  25.         /// <summary>
  26.         ///     1: Accepts a string containing a CSS selector which is then used to match a set of elements.
  27.         ///          1.1 - $(selector, context) 
  28.         ///          1.2 - $(element) 
  29.         ///          1.3 - $(elementArray) 
  30.         ///          1.4 - $(object) 
  31.         ///          1.5 - $(jQuery object) 
  32.         ///          1.6 - $()
  33.         ///      2: Creates DOM elements on the fly from the provided string of raw HTML.
  34.         ///          2.1 - $(html, ownerDocument) 
  35.         ///          2.2 - $(html, attributes)
  36.         ///      3: Binds a function to be executed when the DOM has finished loading.
  37.         ///          3.1 - $(callback)
  38.         /// </summary>
  39.         /// <param name="selector" type="String">
  40.         ///     A string containing a selector expression
  41.         /// </param>
  42.         /// <param name="context" type="jQuery">
  43.         ///     A DOM Element, Document, or jQuery to use as context
  44.         /// </param>
  45.         /// <returns type="jQuery" />
  46.  
  47.         // The jQuery object is actually just the init constructor 'enhanced'
  48.         return new jQuery.fn.init(selector, context, rootjQuery);
  49.     };
  50.     jQuery.Animation = function Animation(elem, properties, options) {
  51.  
  52.         var result,
  53.             stopped,
  54.             index = 0,
  55.             length = animationPrefilters.length,
  56.             deferred = jQuery.Deferred().always(function () {
  57.                 // don't match elem in the :animated selector
  58.                 delete tick.elem;
  59.             }),
  60.             tick = function () {
  61.                 if (stopped) {
  62.                     return false;
  63.                 }
  64.                 var currentTime = fxNow || createFxNow(),
  65.                     remaining = Math.max(0, animation.startTime + animation.duration - currentTime),
  66.                     // archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497)
  67.                     temp = remaining / animation.duration || 0,
  68.                     percent = 1 - temp,
  69.                     index = 0,
  70.                     length = animation.tweens.length;
  71.  
  72.                 for (; index < length ; index++) {
  73.                     animation.tweens[index].run(percent);
  74.                 }
  75.  
  76.                 deferred.notifyWith(elem, [animation, percent, remaining]);
  77.  
  78.                 if (percent < 1 && length) {
  79.                     return remaining;
  80.                 } else {
  81.                     deferred.resolveWith(elem, [animation]);
  82.                     return false;
  83.                 }
  84.             },
  85.             animation = deferred.promise({
  86.                 elem: elem,
  87.                 props: jQuery.extend({}, properties),
  88.                 opts: jQuery.extend(true, { specialEasing: {} }, options),
  89.                 originalProperties: properties,
  90.                 originalOptions: options,
  91.                 startTime: fxNow || createFxNow(),
  92.                 duration: options.duration,
  93.                 tweens: [],
  94.                 createTween: function (prop, end) {
  95.                     var tween = jQuery.Tween(elem, animation.opts, prop, end,
  96.                             animation.opts.specialEasing[prop] || animation.opts.easing);
  97.                     animation.tweens.push(tween);
  98.                     return tween;
  99.                 },
  100.                 stop: function (gotoEnd) {
  101.                     var index = 0,
  102.                         // if we are going to the end, we want to run all the tweens
  103.                         // otherwise we skip this part
  104.                         length = gotoEnd ? animation.tweens.length : 0;
  105.                     if (stopped) {
  106.                         return this;
  107.                     }
  108.                     stopped = true;
  109.                     for (; index < length ; index++) {
  110.                         animation.tweens[index].run(1);
  111.                     }
  112.  
  113.                     // resolve when we played the last frame
  114.                     // otherwise, reject
  115.                     if (gotoEnd) {
  116.                         deferred.resolveWith(elem, [animation, gotoEnd]);
  117.                     } else {
  118.                         deferred.rejectWith(elem, [animation, gotoEnd]);
  119.                     }
  120.                     return this;
  121.                 }
  122.             }),
  123.             props = animation.props;
  124.  
  125.         propFilter(props, animation.opts.specialEasing);
  126.  
  127.         for (; index < length ; index++) {
  128.             result = animationPrefilters[index].call(animation, elem, props, animation.opts);
  129.             if (result) {
  130.                 return result;
  131.             }
  132.         }
  133.  
  134.         createTweens(animation, props);
  135.  
  136.         if (jQuery.isFunction(animation.opts.start)) {
  137.             animation.opts.start.call(elem, animation);
  138.         }
  139.  
  140.         jQuery.fx.timer(
  141.             jQuery.extend(tick, {
  142.                 elem: elem,
  143.                 anim: animation,
  144.                 queue: animation.opts.queue
  145.             })
  146.         );
  147.  
  148.         // attach callbacks from options
  149.         return animation.progress(animation.opts.progress)
  150.             .done(animation.opts.done, animation.opts.complete)
  151.             .fail(animation.opts.fail)
  152.             .always(animation.opts.always);
  153.     };
  154.     jQuery.Callbacks = function (options) {
  155.         /// <summary>
  156.         ///     A multi-purpose callbacks list object that provides a powerful way to manage callback lists.
  157.         /// </summary>
  158.         /// <param name="options" type="String">
  159.         ///     An optional list of space-separated flags that change how the callback list behaves.
  160.         /// </param>
  161.         /// <returns type="Callbacks" />
  162.  
  163.  
  164.         // Convert options from String-formatted to Object-formatted if needed
  165.         // (we check in cache first)
  166.         options = typeof options === "string" ?
  167.             (optionsCache[options] || createOptions(options)) :
  168.             jQuery.extend({}, options);
  169.  
  170.         var // Flag to know if list is currently firing
  171.             firing,
  172.             // Last fire value (for non-forgettable lists)
  173.             memory,
  174.             // Flag to know if list was already fired
  175.             fired,
  176.             // End of the loop when firing
  177.             firingLength,
  178.             // Index of currently firing callback (modified by remove if needed)
  179.             firingIndex,
  180.             // First callback to fire (used internally by add and fireWith)
  181.             firingStart,
  182.             // Actual callback list
  183.             list = [],
  184.             // Stack of fire calls for repeatable lists
  185.             stack = !options.once && [],
  186.             // Fire callbacks
  187.             fire = function (data) {
  188.                 memory = options.memory && data;
  189.                 fired = true;
  190.                 firingIndex = firingStart || 0;
  191.                 firingStart = 0;
  192.                 firingLength = list.length;
  193.                 firing = true;
  194.                 for (; list && firingIndex < firingLength; firingIndex++) {
  195.                     if (list[firingIndex].apply(data[0], data[1]) === false && options.stopOnFalse) {
  196.                         memory = false; // To prevent further calls using add
  197.                         break;
  198.                     }
  199.                 }
  200.                 firing = false;
  201.                 if (list) {
  202.                     if (stack) {
  203.                         if (stack.length) {
  204.                             fire(stack.shift());
  205.                         }
  206.                     } else if (memory) {
  207.                         list = [];
  208.                     } else {
  209.                         self.disable();
  210.                     }
  211.                 }
  212.             },
  213.             // Actual Callbacks object
  214.             self = {
  215.                 // Add a callback or a collection of callbacks to the list
  216.                 add: function () {
  217.                     if (list) {
  218.                         // First, we save the current length
  219.                         var start = list.length;
  220.                         (function add(args) {
  221.                             jQuery.each(args, function (_, arg) {
  222.                                 var type = jQuery.type(arg);
  223.                                 if (type === "function") {
  224.                                     if (!options.unique || !self.has(arg)) {
  225.                                         list.push(arg);
  226.                                     }
  227.                                 } else if (arg && arg.length && type !== "string") {
  228.                                     // Inspect recursively
  229.                                     add(arg);
  230.                                 }
  231.                             });
  232.                         })(arguments);
  233.                         // Do we need to add the callbacks to the
  234.                         // current firing batch?
  235.                         if (firing) {
  236.                             firingLength = list.length;
  237.                             // With memory, if we're not firing then
  238.                             // we should call right away
  239.                         } else if (memory) {
  240.                             firingStart = start;
  241.                             fire(memory);
  242.                         }
  243.                     }
  244.                     return this;
  245.                 },
  246.                 // Remove a callback from the list
  247.                 remove: function () {
  248.                     if (list) {
  249.                         jQuery.each(arguments, function (_, arg) {
  250.                             var index;
  251.                             while ((index = jQuery.inArray(arg, list, index)) > -1) {
  252.                                 list.splice(index, 1);
  253.                                 // Handle firing indexes
  254.                                 if (firing) {
  255.                                     if (index <= firingLength) {
  256.                                         firingLength--;
  257.                                     }
  258.                                     if (index <= firingIndex) {
  259.                                         firingIndex--;
  260.                                     }
  261.                                 }
  262.                             }
  263.                         });
  264.                     }
  265.                     return this;
  266.                 },
  267.                 // Check if a given callback is in the list.
  268.                 // If no argument is given, return whether or not list has callbacks attached.
  269.                 has: function (fn) {
  270.                     return fn ? jQuery.inArray(fn, list) > -1 : !!(list && list.length);
  271.                 },
  272.                 // Remove all callbacks from the list
  273.                 empty: function () {
  274.                     list = [];
  275.                     return this;
  276.                 },
  277.                 // Have the list do nothing anymore
  278.                 disable: function () {
  279.                     list = stack = memory = undefined;
  280.                     return this;
  281.                 },
  282.                 // Is it disabled?
  283.                 disabled: function () {
  284.                     return !list;
  285.                 },
  286.                 // Lock the list in its current state
  287.                 lock: function () {
  288.                     stack = undefined;
  289.                     if (!memory) {
  290.                         self.disable();
  291.                     }
  292.                     return this;
  293.                 },
  294.                 // Is it locked?
  295.                 locked: function () {
  296.                     return !stack;
  297.                 },
  298.                 // Call all callbacks with the given context and arguments
  299.                 fireWith: function (context, args) {
  300.                     args = args || [];
  301.                     args = [context, args.slice ? args.slice() : args];
  302.                     if (list && (!fired || stack)) {
  303.                         if (firing) {
  304.                             stack.push(args);
  305.                         } else {
  306.                             fire(args);
  307.                         }
  308.                     }
  309.                     return this;
  310.                 },
  311.                 // Call all the callbacks with the given arguments
  312.                 fire: function () {
  313.                     self.fireWith(this, arguments);
  314.                     return this;
  315.                 },
  316.                 // To know if the callbacks have already been called at least once
  317.                 fired: function () {
  318.                     return !!fired;
  319.                 }
  320.             };
  321.  
  322.         return self;
  323.     };
  324.     jQuery.Deferred = function (func) {
  325.         /// <summary>
  326.         ///     A constructor function that returns a chainable utility object with methods to register multiple callbacks into callback queues, invoke callback queues, and relay the success or failure state of any synchronous or asynchronous function.
  327.         /// </summary>
  328.         /// <param name="func" type="Function">
  329.         ///     A function that is called just before the constructor returns.
  330.         /// </param>
  331.         /// <returns type="Deferred" />
  332.  
  333.         var tuples = [
  334.                 // action, add listener, listener list, final state
  335.                 ["resolve", "done", jQuery.Callbacks("once memory"), "resolved"],
  336.                 ["reject", "fail", jQuery.Callbacks("once memory"), "rejected"],
  337.                 ["notify", "progress", jQuery.Callbacks("memory")]
  338.         ],
  339.             state = "pending",
  340.             promise = {
  341.                 state: function () {
  342.                     return state;
  343.                 },
  344.                 always: function () {
  345.                     deferred.done(arguments).fail(arguments);
  346.                     return this;
  347.                 },
  348.                 then: function ( /* fnDone, fnFail, fnProgress */) {
  349.                     var fns = arguments;
  350.                     return jQuery.Deferred(function (newDefer) {
  351.                         jQuery.each(tuples, function (i, tuple) {
  352.                             var action = tuple[0],
  353.                                 fn = jQuery.isFunction(fns[i]) && fns[i];
  354.                             // deferred[ done | fail | progress ] for forwarding actions to newDefer
  355.                             deferred[tuple[1]](function () {
  356.                                 var returned = fn && fn.apply(this, arguments);
  357.                                 if (returned && jQuery.isFunction(returned.promise)) {
  358.                                     returned.promise()
  359.                                         .done(newDefer.resolve)
  360.                                         .fail(newDefer.reject)
  361.                                         .progress(newDefer.notify);
  362.                                 } else {
  363.                                     newDefer[action + "With"](this === promise ? newDefer.promise() : this, fn ? [returned] : arguments);
  364.                                 }
  365.                             });
  366.                         });
  367.                         fns = null;
  368.                     }).promise();
  369.                 },
  370.                 // Get a promise for this deferred
  371.                 // If obj is provided, the promise aspect is added to the object
  372.                 promise: function (obj) {
  373.                     return obj != null ? jQuery.extend(obj, promise) : promise;
  374.                 }
  375.             },
  376.             deferred = {};
  377.  
  378.         // Keep pipe for back-compat
  379.         promise.pipe = promise.then;
  380.  
  381.         // Add list-specific methods
  382.         jQuery.each(tuples, function (i, tuple) {
  383.             var list = tuple[2],
  384.                 stateString = tuple[3];
  385.  
  386.             // promise[ done | fail | progress ] = list.add
  387.             promise[tuple[1]] = list.add;
  388.  
  389.             // Handle state
  390.             if (stateString) {
  391.                 list.add(function () {
  392.                     // state = [ resolved | rejected ]
  393.                     state = stateString;
  394.  
  395.                     // [ reject_list | resolve_list ].disable; progress_list.lock
  396.                 }, tuples[i ^ 1][2].disable, tuples[2][2].lock);
  397.             }
  398.  
  399.             // deferred[ resolve | reject | notify ]
  400.             deferred[tuple[0]] = function () {
  401.                 deferred[tuple[0] + "With"](this === deferred ? promise : this, arguments);
  402.                 return this;
  403.             };
  404.             deferred[tuple[0] + "With"] = list.fireWith;
  405.         });
  406.  
  407.         // Make the deferred a promise
  408.         promise.promise(deferred);
  409.  
  410.         // Call given func if any
  411.         if (func) {
  412.             func.call(deferred, deferred);
  413.         }
  414.  
  415.         // All done!
  416.         return deferred;
  417.     };
  418.     jQuery.Event = function (src, props) {
  419.  
  420.         // Allow instantiation without the 'new' keyword
  421.         if (!(this instanceof jQuery.Event)) {
  422.             return new jQuery.Event(src, props);
  423.         }
  424.  
  425.         // Event object
  426.         if (src && src.type) {
  427.             this.originalEvent = src;
  428.             this.type = src.type;
  429.  
  430.             // Events bubbling up the document may have been marked as prevented
  431.             // by a handler lower down the tree; reflect the correct value.
  432.             this.isDefaultPrevented = (src.defaultPrevented || src.returnValue === false ||
  433.                 src.getPreventDefault && src.getPreventDefault()) ? returnTrue : returnFalse;
  434.  
  435.             // Event type
  436.         } else {
  437.             this.type = src;
  438.         }
  439.  
  440.         // Put explicitly provided properties onto the event object
  441.         if (props) {
  442.             jQuery.extend(this, props);
  443.         }
  444.  
  445.         // Create a timestamp if incoming event doesn't have one
  446.         this.timeStamp = src && src.timeStamp || jQuery.now();
  447.  
  448.         // Mark it as fixed
  449.         this[jQuery.expando] = true;
  450.     };
  451.     jQuery.Tween = function Tween(elem, options, prop, end, easing) {
  452.  
  453.         return new Tween.prototype.init(elem, options, prop, end, easing);
  454.     };
  455.     jQuery._data = function (elem, name, data) {
  456.  
  457.         return internalData(elem, name, data, true);
  458.     };
  459.     jQuery._queueHooks = function (elem, type) {
  460.  
  461.         var key = type + "queueHooks";
  462.         return jQuery._data(elem, key) || jQuery._data(elem, key, {
  463.             empty: jQuery.Callbacks("once memory").add(function () {
  464.                 jQuery._removeData(elem, type + "queue");
  465.                 jQuery._removeData(elem, key);
  466.             })
  467.         });
  468.     };
  469.     jQuery._removeData = function (elem, name) {
  470.  
  471.         return internalRemoveData(elem, name, true);
  472.     };
  473.     jQuery.acceptData = function (elem) {
  474.  
  475.         // Do not set data on non-element because it will not be cleared (#8335).
  476.         if (elem.nodeType && elem.nodeType !== 1 && elem.nodeType !== 9) {
  477.             return false;
  478.         }
  479.  
  480.         var noData = elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()];
  481.  
  482.         // nodes accept data unless otherwise specified; rejection can be conditional
  483.         return !noData || noData !== true && elem.getAttribute("classid") === noData;
  484.     };
  485.     jQuery.access = function (elems, fn, key, value, chainable, emptyGet, raw) {
  486.  
  487.         var i = 0,
  488.             length = elems.length,
  489.             bulk = key == null;
  490.  
  491.         // Sets many values
  492.         if (jQuery.type(key) === "object") {
  493.             chainable = true;
  494.             for (i in key) {
  495.                 jQuery.access(elems, fn, i, key[i], true, emptyGet, raw);
  496.             }
  497.  
  498.             // Sets one value
  499.         } else if (value !== undefined) {
  500.             chainable = true;
  501.  
  502.             if (!jQuery.isFunction(value)) {
  503.                 raw = true;
  504.             }
  505.  
  506.             if (bulk) {
  507.                 // Bulk operations run against the entire set
  508.                 if (raw) {
  509.                     fn.call(elems, value);
  510.                     fn = null;
  511.  
  512.                     // ...except when executing function values
  513.                 } else {
  514.                     bulk = fn;
  515.                     fn = function (elem, key, value) {
  516.                         return bulk.call(jQuery(elem), value);
  517.                     };
  518.                 }
  519.             }
  520.  
  521.             if (fn) {
  522.                 for (; i < length; i++) {
  523.                     fn(elems[i], key, raw ? value : value.call(elems[i], i, fn(elems[i], key)));
  524.                 }
  525.             }
  526.         }
  527.  
  528.         return chainable ?
  529.             elems :
  530.  
  531.             // Gets
  532.             bulk ?
  533.                 fn.call(elems) :
  534.                 length ? fn(elems[0], key) : emptyGet;
  535.     };
  536.     jQuery.active = 0;
  537.     jQuery.ajax = function (url, options) {
  538.         /// <summary>
  539.         ///     Perform an asynchronous HTTP (Ajax) request.
  540.         ///      1 - jQuery.ajax(url, settings) 
  541.         ///      2 - jQuery.ajax(settings)
  542.         /// </summary>
  543.         /// <param name="url" type="String">
  544.         ///     A string containing the URL to which the request is sent.
  545.         /// </param>
  546.         /// <param name="options" type="PlainObject">
  547.         ///     A set of key/value pairs that configure the Ajax request. All settings are optional. A default can be set for any option with $.ajaxSetup(). See jQuery.ajax( settings ) below for a complete list of all settings.
  548.         /// </param>
  549.  
  550.  
  551.         // If url is an object, simulate pre-1.5 signature
  552.         if (typeof url === "object") {
  553.             options = url;
  554.             url = undefined;
  555.         }
  556.  
  557.         // Force options to be an object
  558.         options = options || {};
  559.  
  560.         var // Cross-domain detection vars
  561.             parts,
  562.             // Loop variable
  563.             i,
  564.             // URL without anti-cache param
  565.             cacheURL,
  566.             // Response headers as string
  567.             responseHeadersString,
  568.             // timeout handle
  569.             timeoutTimer,
  570.  
  571.             // To know if global events are to be dispatched
  572.             fireGlobals,
  573.  
  574.             transport,
  575.             // Response headers
  576.             responseHeaders,
  577.             // Create the final options object
  578.             s = jQuery.ajaxSetup({}, options),
  579.             // Callbacks context
  580.             callbackContext = s.context || s,
  581.             // Context for global events is callbackContext if it is a DOM node or jQuery collection
  582.             globalEventContext = s.context && (callbackContext.nodeType || callbackContext.jquery) ?
  583.                 jQuery(callbackContext) :
  584.                 jQuery.event,
  585.             // Deferreds
  586.             deferred = jQuery.Deferred(),
  587.             completeDeferred = jQuery.Callbacks("once memory"),
  588.             // Status-dependent callbacks
  589.             statusCode = s.statusCode || {},
  590.             // Headers (they are sent all at once)
  591.             requestHeaders = {},
  592.             requestHeadersNames = {},
  593.             // The jqXHR state
  594.             state = 0,
  595.             // Default abort message
  596.             strAbort = "canceled",
  597.             // Fake xhr
  598.             jqXHR = {
  599.                 readyState: 0,
  600.  
  601.                 // Builds headers hashtable if needed
  602.                 getResponseHeader: function (key) {
  603.                     var match;
  604.                     if (state === 2) {
  605.                         if (!responseHeaders) {
  606.                             responseHeaders = {};
  607.                             while ((match = rheaders.exec(responseHeadersString))) {
  608.                                 responseHeaders[match[1].toLowerCase()] = match[2];
  609.                             }
  610.                         }
  611.                         match = responseHeaders[key.toLowerCase()];
  612.                     }
  613.                     return match == null ? null : match;
  614.                 },
  615.  
  616.                 // Raw string
  617.                 getAllResponseHeaders: function () {
  618.                     return state === 2 ? responseHeadersString : null;
  619.                 },
  620.  
  621.                 // Caches the header
  622.                 setRequestHeader: function (name, value) {
  623.                     var lname = name.toLowerCase();
  624.                     if (!state) {
  625.                         name = requestHeadersNames[lname] = requestHeadersNames[lname] || name;
  626.                         requestHeaders[name] = value;
  627.                     }
  628.                     return this;
  629.                 },
  630.  
  631.                 // Overrides response content-type header
  632.                 overrideMimeType: function (type) {
  633.                     if (!state) {
  634.                         s.mimeType = type;
  635.                     }
  636.                     return this;
  637.                 },
  638.  
  639.                 // Status-dependent callbacks
  640.                 statusCode: function (map) {
  641.                     var code;
  642.                     if (map) {
  643.                         if (state < 2) {
  644.                             for (code in map) {
  645.                                 // Lazy-add the new callback in a way that preserves old ones
  646.                                 statusCode[code] = [statusCode[code], map[code]];
  647.                             }
  648.                         } else {
  649.                             // Execute the appropriate callbacks
  650.                             jqXHR.always(map[jqXHR.status]);
  651.                         }
  652.                     }
  653.                     return this;
  654.                 },
  655.  
  656.                 // Cancel the request
  657.                 abort: function (statusText) {
  658.                     var finalText = statusText || strAbort;
  659.                     if (transport) {
  660.                         transport.abort(finalText);
  661.                     }
  662.                     done(0, finalText);
  663.                     return this;
  664.                 }
  665.             };
  666.  
  667.         // Attach deferreds
  668.         deferred.promise(jqXHR).complete = completeDeferred.add;
  669.         jqXHR.success = jqXHR.done;
  670.         jqXHR.error = jqXHR.fail;
  671.  
  672.         // Remove hash character (#7531: and string promotion)
  673.         // Add protocol if not provided (#5866: IE7 issue with protocol-less urls)
  674.         // Handle falsy url in the settings object (#10093: consistency with old signature)
  675.         // We also use the url parameter if available
  676.         s.url = ((url || s.url || ajaxLocation) + "").replace(rhash, "").replace(rprotocol, ajaxLocParts[1] + "//");
  677.  
  678.         // Alias method option to type as per ticket #12004
  679.         s.type = options.method || options.type || s.method || s.type;
  680.  
  681.         // Extract dataTypes list
  682.         s.dataTypes = jQuery.trim(s.dataType || "*").toLowerCase().match(core_rnotwhite) || [""];
  683.  
  684.         // A cross-domain request is in order when we have a protocol:host:port mismatch
  685.         if (s.crossDomain == null) {
  686.             parts = rurl.exec(s.url.toLowerCase());
  687.             s.crossDomain = !!(parts &&
  688.                 (parts[1] !== ajaxLocParts[1] || parts[2] !== ajaxLocParts[2] ||
  689.                     (parts[3] || (parts[1] === "http:" ? 80 : 443)) !=
  690.                         (ajaxLocParts[3] || (ajaxLocParts[1] === "http:" ? 80 : 443)))
  691.             );
  692.         }
  693.  
  694.         // Convert data if not already a string
  695.         if (s.data && s.processData && typeof s.data !== "string") {
  696.             s.data = jQuery.param(s.data, s.traditional);
  697.         }
  698.  
  699.         // Apply prefilters
  700.         inspectPrefiltersOrTransports(prefilters, s, options, jqXHR);
  701.  
  702.         // If request was aborted inside a prefilter, stop there
  703.         if (state === 2) {
  704.             return jqXHR;
  705.         }
  706.  
  707.         // We can fire global events as of now if asked to
  708.         fireGlobals = s.global;
  709.  
  710.         // Watch for a new set of requests
  711.         if (fireGlobals && jQuery.active++ === 0) {
  712.             jQuery.event.trigger("ajaxStart");
  713.         }
  714.  
  715.         // Uppercase the type
  716.         s.type = s.type.toUpperCase();
  717.  
  718.         // Determine if request has content
  719.         s.hasContent = !rnoContent.test(s.type);
  720.  
  721.         // Save the URL in case we're toying with the If-Modified-Since
  722.         // and/or If-None-Match header later on
  723.         cacheURL = s.url;
  724.  
  725.         // More options handling for requests with no content
  726.         if (!s.hasContent) {
  727.  
  728.             // If data is available, append data to url
  729.             if (s.data) {
  730.                 cacheURL = (s.url += (ajax_rquery.test(cacheURL) ? "&" : "?") + s.data);
  731.                 // #9682: remove data so that it's not used in an eventual retry
  732.                 delete s.data;
  733.             }
  734.  
  735.             // Add anti-cache in url if needed
  736.             if (s.cache === false) {
  737.                 s.url = rts.test(cacheURL) ?
  738.  
  739.                     // If there is already a '_' parameter, set its value
  740.                     cacheURL.replace(rts, "$1_=" + ajax_nonce++) :
  741.  
  742.                     // Otherwise add one to the end
  743.                     cacheURL + (ajax_rquery.test(cacheURL) ? "&" : "?") + "_=" + ajax_nonce++;
  744.             }
  745.         }
  746.  
  747.         // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
  748.         if (s.ifModified) {
  749.             if (jQuery.lastModified[cacheURL]) {
  750.                 jqXHR.setRequestHeader("If-Modified-Since", jQuery.lastModified[cacheURL]);
  751.             }
  752.             if (jQuery.etag[cacheURL]) {
  753.                 jqXHR.setRequestHeader("If-None-Match", jQuery.etag[cacheURL]);
  754.             }
  755.         }
  756.  
  757.         // Set the correct header, if data is being sent
  758.         if (s.data && s.hasContent && s.contentType !== false || options.contentType) {
  759.             jqXHR.setRequestHeader("Content-Type", s.contentType);
  760.         }
  761.  
  762.         // Set the Accepts header for the server, depending on the dataType
  763.         jqXHR.setRequestHeader(
  764.             "Accept",
  765.             s.dataTypes[0] && s.accepts[s.dataTypes[0]] ?
  766.                 s.accepts[s.dataTypes[0]] + (s.dataTypes[0] !== "*" ? ", " + allTypes + "; q=0.01" : "") :
  767.                 s.accepts["*"]
  768.         );
  769.  
  770.         // Check for headers option
  771.         for (i in s.headers) {
  772.             jqXHR.setRequestHeader(i, s.headers[i]);
  773.         }
  774.  
  775.         // Allow custom headers/mimetypes and early abort
  776.         if (s.beforeSend && (s.beforeSend.call(callbackContext, jqXHR, s) === false || state === 2)) {
  777.             // Abort if not done already and return
  778.             return jqXHR.abort();
  779.         }
  780.  
  781.         // aborting is no longer a cancellation
  782.         strAbort = "abort";
  783.  
  784.         // Install callbacks on deferreds
  785.         for (i in { success: 1, error: 1, complete: 1 }) {
  786.             jqXHR[i](s[i]);
  787.         }
  788.  
  789.         // Get transport
  790.         transport = inspectPrefiltersOrTransports(transports, s, options, jqXHR);
  791.  
  792.         // If no transport, we auto-abort
  793.         if (!transport) {
  794.             done(-1, "No Transport");
  795.         } else {
  796.             jqXHR.readyState = 1;
  797.  
  798.             // Send global event
  799.             if (fireGlobals) {
  800.                 globalEventContext.trigger("ajaxSend", [jqXHR, s]);
  801.             }
  802.             // Timeout
  803.             if (s.async && s.timeout > 0) {
  804.                 timeoutTimer = setTimeout(function () {
  805.                     jqXHR.abort("timeout");
  806.                 }, s.timeout);
  807.             }
  808.  
  809.             try {
  810.                 state = 1;
  811.                 transport.send(requestHeaders, done);
  812.             } catch (e) {
  813.                 // Propagate exception as error if not done
  814.                 if (state < 2) {
  815.                     done(-1, e);
  816.                     // Simply rethrow otherwise
  817.                 } else {
  818.                     throw e;
  819.                 }
  820.             }
  821.         }
  822.  
  823.         // Callback for when everything is done
  824.         function done(status, nativeStatusText, responses, headers) {
  825.             var isSuccess, success, error, response, modified,
  826.                 statusText = nativeStatusText;
  827.  
  828.             // Called once
  829.             if (state === 2) {
  830.                 return;
  831.             }
  832.  
  833.             // State is "done" now
  834.             state = 2;
  835.  
  836.             // Clear timeout if it exists
  837.             if (timeoutTimer) {
  838.                 clearTimeout(timeoutTimer);
  839.             }
  840.  
  841.             // Dereference transport for early garbage collection
  842.             // (no matter how long the jqXHR object will be used)
  843.             transport = undefined;
  844.  
  845.             // Cache response headers
  846.             responseHeadersString = headers || "";
  847.  
  848.             // Set readyState
  849.             jqXHR.readyState = status > 0 ? 4 : 0;
  850.  
  851.             // Get response data
  852.             if (responses) {
  853.                 response = ajaxHandleResponses(s, jqXHR, responses);
  854.             }
  855.  
  856.             // If successful, handle type chaining
  857.             if (status >= 200 && status < 300 || status === 304) {
  858.  
  859.                 // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
  860.                 if (s.ifModified) {
  861.                     modified = jqXHR.getResponseHeader("Last-Modified");
  862.                     if (modified) {
  863.                         jQuery.lastModified[cacheURL] = modified;
  864.                     }
  865.                     modified = jqXHR.getResponseHeader("etag");
  866.                     if (modified) {
  867.                         jQuery.etag[cacheURL] = modified;
  868.                     }
  869.                 }
  870.  
  871.                 // if no content
  872.                 if (status === 204) {
  873.                     isSuccess = true;
  874.                     statusText = "nocontent";
  875.  
  876.                     // if not modified
  877.                 } else if (status === 304) {
  878.                     isSuccess = true;
  879.                     statusText = "notmodified";
  880.  
  881.                     // If we have data, let's convert it
  882.                 } else {
  883.                     isSuccess = ajaxConvert(s, response);
  884.                     statusText = isSuccess.state;
  885.                     success = isSuccess.data;
  886.                     error = isSuccess.error;
  887.                     isSuccess = !error;
  888.                 }
  889.             } else {
  890.                 // We extract error from statusText
  891.                 // then normalize statusText and status for non-aborts
  892.                 error = statusText;
  893.                 if (status || !statusText) {
  894.                     statusText = "error";
  895.                     if (status < 0) {
  896.                         status = 0;
  897.                     }
  898.                 }
  899.             }
  900.  
  901.             // Set data for the fake xhr object
  902.             jqXHR.status = status;
  903.             jqXHR.statusText = (nativeStatusText || statusText) + "";
  904.  
  905.             // Success/Error
  906.             if (isSuccess) {
  907.                 deferred.resolveWith(callbackContext, [success, statusText, jqXHR]);
  908.             } else {
  909.                 deferred.rejectWith(callbackContext, [jqXHR, statusText, error]);
  910.             }
  911.  
  912.             // Status-dependent callbacks
  913.             jqXHR.statusCode(statusCode);
  914.             statusCode = undefined;
  915.  
  916.             if (fireGlobals) {
  917.                 globalEventContext.trigger(isSuccess ? "ajaxSuccess" : "ajaxError",
  918.                     [jqXHR, s, isSuccess ? success : error]);
  919.             }
  920.  
  921.             // Complete
  922.             completeDeferred.fireWith(callbackContext, [jqXHR, statusText]);
  923.  
  924.             if (fireGlobals) {
  925.                 globalEventContext.trigger("ajaxComplete", [jqXHR, s]);
  926.                 // Handle the global AJAX counter
  927.                 if (!(--jQuery.active)) {
  928.                     jQuery.event.trigger("ajaxStop");
  929.                 }
  930.             }
  931.         }
  932.  
  933.         return jqXHR;
  934.     };
  935.     jQuery.ajaxPrefilter = function (dataTypeExpression, func) {
  936.         /// <summary>
  937.         ///     Handle custom Ajax options or modify existing options before each request is sent and before they are processed by $.ajax().
  938.         /// </summary>
  939.         /// <param name="dataTypeExpression" type="String">
  940.         ///     An optional string containing one or more space-separated dataTypes
  941.         /// </param>
  942.         /// <param name="func" type="Function">
  943.         ///     A handler to set default values for future Ajax requests.
  944.         /// </param>
  945.         /// <returns type="undefined" />
  946.  
  947.  
  948.         if (typeof dataTypeExpression !== "string") {
  949.             func = dataTypeExpression;
  950.             dataTypeExpression = "*";
  951.         }
  952.  
  953.         var dataType,
  954.             i = 0,
  955.             dataTypes = dataTypeExpression.toLowerCase().match(core_rnotwhite) || [];
  956.  
  957.         if (jQuery.isFunction(func)) {
  958.             // For each dataType in the dataTypeExpression
  959.             while ((dataType = dataTypes[i++])) {
  960.                 // Prepend if requested
  961.                 if (dataType[0] === "+") {
  962.                     dataType = dataType.slice(1) || "*";
  963.                     (structure[dataType] = structure[dataType] || []).unshift(func);
  964.  
  965.                     // Otherwise append
  966.                 } else {
  967.                     (structure[dataType] = structure[dataType] || []).push(func);
  968.                 }
  969.             }
  970.         }
  971.     };
  972.     jQuery.ajaxSettings = {
  973.         "url": 'http://localhost:25812/',
  974.         "type": 'GET',
  975.         "isLocal": false,
  976.         "global": true,
  977.         "processData": true,
  978.         "async": true,
  979.         "contentType": 'application/x-www-form-urlencoded; charset=UTF-8',
  980.         "accepts": {},
  981.         "contents": {},
  982.         "responseFields": {},
  983.         "converters": {},
  984.         "flatOptions": {},
  985.         "jsonp": 'callback'
  986.     };
  987.     jQuery.ajaxSetup = function (target, settings) {
  988.         /// <summary>
  989.         ///     Set default values for future Ajax requests.
  990.         /// </summary>
  991.         /// <param name="target" type="PlainObject">
  992.         ///     A set of key/value pairs that configure the default Ajax request. All options are optional.
  993.         /// </param>
  994.  
  995.         return settings ?
  996.  
  997.             // Building a settings object
  998.             ajaxExtend(ajaxExtend(target, jQuery.ajaxSettings), settings) :
  999.  
  1000.             // Extending ajaxSettings
  1001.             ajaxExtend(jQuery.ajaxSettings, target);
  1002.     };
  1003.     jQuery.ajaxTransport = function (dataTypeExpression, func) {
  1004.         /// <summary>
  1005.         ///     Creates an object that handles the actual transmission of Ajax data.
  1006.         /// </summary>
  1007.         /// <param name="dataTypeExpression" type="String">
  1008.         ///     A string identifying the data type to use
  1009.         /// </param>
  1010.         /// <param name="func" type="Function">
  1011.         ///     A handler to return the new transport object to use with the data type provided in the first argument.
  1012.         /// </param>
  1013.         /// <returns type="undefined" />
  1014.  
  1015.  
  1016.         if (typeof dataTypeExpression !== "string") {
  1017.             func = dataTypeExpression;
  1018.             dataTypeExpression = "*";
  1019.         }
  1020.  
  1021.         var dataType,
  1022.             i = 0,
  1023.             dataTypes = dataTypeExpression.toLowerCase().match(core_rnotwhite) || [];
  1024.  
  1025.         if (jQuery.isFunction(func)) {
  1026.             // For each dataType in the dataTypeExpression
  1027.             while ((dataType = dataTypes[i++])) {
  1028.                 // Prepend if requested
  1029.                 if (dataType[0] === "+") {
  1030.                     dataType = dataType.slice(1) || "*";
  1031.                     (structure[dataType] = structure[dataType] || []).unshift(func);
  1032.  
  1033.                     // Otherwise append
  1034.                 } else {
  1035.                     (structure[dataType] = structure[dataType] || []).push(func);
  1036.                 }
  1037.             }
  1038.         }
  1039.     };
  1040.     jQuery.attr = function (elem, name, value) {
  1041.  
  1042.         var hooks, notxml, ret,
  1043.             nType = elem.nodeType;
  1044.  
  1045.         // don't get/set attributes on text, comment and attribute nodes
  1046.         if (!elem || nType === 3 || nType === 8 || nType === 2) {
  1047.             return;
  1048.         }
  1049.  
  1050.         // Fallback to prop when attributes are not supported
  1051.         if (typeof elem.getAttribute === core_strundefined) {
  1052.             return jQuery.prop(elem, name, value);
  1053.         }
  1054.  
  1055.         notxml = nType !== 1 || !jQuery.isXMLDoc(elem);
  1056.  
  1057.         // All attributes are lowercase
  1058.         // Grab necessary hook if one is defined
  1059.         if (notxml) {
  1060.             name = name.toLowerCase();
  1061.             hooks = jQuery.attrHooks[name] || (rboolean.test(name) ? boolHook : nodeHook);
  1062.         }
  1063.  
  1064.         if (value !== undefined) {
  1065.  
  1066.             if (value === null) {
  1067.                 jQuery.removeAttr(elem, name);
  1068.  
  1069.             } else if (hooks && notxml && "set" in hooks && (ret = hooks.set(elem, value, name)) !== undefined) {
  1070.                 return ret;
  1071.  
  1072.             } else {
  1073.                 elem.setAttribute(name, value + "");
  1074.                 return value;
  1075.             }
  1076.  
  1077.         } else if (hooks && notxml && "get" in hooks && (ret = hooks.get(elem, name)) !== null) {
  1078.             return ret;
  1079.  
  1080.         } else {
  1081.  
  1082.             // In IE9+, Flash objects don't have .getAttribute (#12945)
  1083.             // Support: IE9+
  1084.             if (typeof elem.getAttribute !== core_strundefined) {
  1085.                 ret = elem.getAttribute(name);
  1086.             }
  1087.  
  1088.             // Non-existent attributes return null, we normalize to undefined
  1089.             return ret == null ?
  1090.                 undefined :
  1091.                 ret;
  1092.         }
  1093.     };
  1094.     jQuery.attrHooks = { "type": {} };
  1095.     jQuery.buildFragment = function (elems, context, scripts, selection) {
  1096.  
  1097.         var j, elem, contains,
  1098.             tmp, tag, tbody, wrap,
  1099.             l = elems.length,
  1100.  
  1101.             // Ensure a safe fragment
  1102.             safe = createSafeFragment(context),
  1103.  
  1104.             nodes = [],
  1105.             i = 0;
  1106.  
  1107.         for (; i < l; i++) {
  1108.             elem = elems[i];
  1109.  
  1110.             if (elem || elem === 0) {
  1111.  
  1112.                 // Add nodes directly
  1113.                 if (jQuery.type(elem) === "object") {
  1114.                     jQuery.merge(nodes, elem.nodeType ? [elem] : elem);
  1115.  
  1116.                     // Convert non-html into a text node
  1117.                 } else if (!rhtml.test(elem)) {
  1118.                     nodes.push(context.createTextNode(elem));
  1119.  
  1120.                     // Convert html into DOM nodes
  1121.                 } else {
  1122.                     tmp = tmp || safe.appendChild(context.createElement("div"));
  1123.  
  1124.                     // Deserialize a standard representation
  1125.                     tag = (rtagName.exec(elem) || ["", ""])[1].toLowerCase();
  1126.                     wrap = wrapMap[tag] || wrapMap._default;
  1127.  
  1128.                     tmp.innerHTML = wrap[1] + elem.replace(rxhtmlTag, "<$1></$2>") + wrap[2];
  1129.  
  1130.                     // Descend through wrappers to the right content
  1131.                     j = wrap[0];
  1132.                     while (j--) {
  1133.                         tmp = tmp.lastChild;
  1134.                     }
  1135.  
  1136.                     // Manually add leading whitespace removed by IE
  1137.                     if (!jQuery.support.leadingWhitespace && rleadingWhitespace.test(elem)) {
  1138.                         nodes.push(context.createTextNode(rleadingWhitespace.exec(elem)[0]));
  1139.                     }
  1140.  
  1141.                     // Remove IE's autoinserted <tbody> from table fragments
  1142.                     if (!jQuery.support.tbody) {
  1143.  
  1144.                         // String was a <table>, *may* have spurious <tbody>
  1145.                         elem = tag === "table" && !rtbody.test(elem) ?
  1146.                             tmp.firstChild :
  1147.  
  1148.                             // String was a bare <thead> or <tfoot>
  1149.                             wrap[1] === "<table>" && !rtbody.test(elem) ?
  1150.                             tmp :
  1151.                                 0;
  1152.  
  1153.                         j = elem && elem.childNodes.length;
  1154.                         while (j--) {
  1155.                             if (jQuery.nodeName((tbody = elem.childNodes[j]), "tbody") && !tbody.childNodes.length) {
  1156.                                 elem.removeChild(tbody);
  1157.                             }
  1158.                         }
  1159.                     }
  1160.  
  1161.                     jQuery.merge(nodes, tmp.childNodes);
  1162.  
  1163.                     // Fix #12392 for WebKit and IE > 9
  1164.                     tmp.textContent = "";
  1165.  
  1166.                     // Fix #12392 for oldIE
  1167.                     while (tmp.firstChild) {
  1168.                         tmp.removeChild(tmp.firstChild);
  1169.                     }
  1170.  
  1171.                     // Remember the top-level container for proper cleanup
  1172.                     tmp = safe.lastChild;
  1173.                 }
  1174.             }
  1175.         }
  1176.  
  1177.         // Fix #11356: Clear elements from fragment
  1178.         if (tmp) {
  1179.             safe.removeChild(tmp);
  1180.         }
  1181.  
  1182.         // Reset defaultChecked for any radios and checkboxes
  1183.         // about to be appended to the DOM in IE 6/7 (#8060)
  1184.         if (!jQuery.support.appendChecked) {
  1185.             jQuery.grep(getAll(nodes, "input"), fixDefaultChecked);
  1186.         }
  1187.  
  1188.         i = 0;
  1189.         while ((elem = nodes[i++])) {
  1190.  
  1191.             // #4087 - If origin and destination elements are the same, and this is
  1192.             // that element, do not do anything
  1193.             if (selection && jQuery.inArray(elem, selection) !== -1) {
  1194.                 continue;
  1195.             }
  1196.  
  1197.             contains = jQuery.contains(elem.ownerDocument, elem);
  1198.  
  1199.             // Append to fragment
  1200.             tmp = getAll(safe.appendChild(elem), "script");
  1201.  
  1202.             // Preserve script evaluation history
  1203.             if (contains) {
  1204.                 setGlobalEval(tmp);
  1205.             }
  1206.  
  1207.             // Capture executables
  1208.             if (scripts) {
  1209.                 j = 0;
  1210.                 while ((elem = tmp[j++])) {
  1211.                     if (rscriptType.test(elem.type || "")) {
  1212.                         scripts.push(elem);
  1213.                     }
  1214.                 }
  1215.             }
  1216.         }
  1217.  
  1218.         tmp = null;
  1219.  
  1220.         return safe;
  1221.     };
  1222.     jQuery.cache = {};
  1223.     jQuery.camelCase = function (string) {
  1224.  
  1225.         return string.replace(rmsPrefix, "ms-").replace(rdashAlpha, fcamelCase);
  1226.     };
  1227.     jQuery.cleanData = function (elems, /* internal */ acceptData) {
  1228.  
  1229.         var elem, type, id, data,
  1230.             i = 0,
  1231.             internalKey = jQuery.expando,
  1232.             cache = jQuery.cache,
  1233.             deleteExpando = jQuery.support.deleteExpando,
  1234.             special = jQuery.event.special;
  1235.  
  1236.         for (; (elem = elems[i]) != null; i++) {
  1237.  
  1238.             if (acceptData || jQuery.acceptData(elem)) {
  1239.  
  1240.                 id = elem[internalKey];
  1241.                 data = id && cache[id];
  1242.  
  1243.                 if (data) {
  1244.                     if (data.events) {
  1245.                         for (type in data.events) {
  1246.                             if (special[type]) {
  1247.                                 jQuery.event.remove(elem, type);
  1248.  
  1249.                                 // This is a shortcut to avoid jQuery.event.remove's overhead
  1250.                             } else {
  1251.                                 jQuery.removeEvent(elem, type, data.handle);
  1252.                             }
  1253.                         }
  1254.                     }
  1255.  
  1256.                     // Remove cache only if it was not already removed by jQuery.event.remove
  1257.                     if (cache[id]) {
  1258.  
  1259.                         delete cache[id];
  1260.  
  1261.                         // IE does not allow us to delete expando properties from nodes,
  1262.                         // nor does it have a removeAttribute function on Document nodes;
  1263.                         // we must handle all of these cases
  1264.                         if (deleteExpando) {
  1265.                             delete elem[internalKey];
  1266.  
  1267.                         } else if (typeof elem.removeAttribute !== core_strundefined) {
  1268.                             elem.removeAttribute(internalKey);
  1269.  
  1270.                         } else {
  1271.                             elem[internalKey] = null;
  1272.                         }
  1273.  
  1274.                         core_deletedIds.push(id);
  1275.                     }
  1276.                 }
  1277.             }
  1278.         }
  1279.     };
  1280.     jQuery.clone = function (elem, dataAndEvents, deepDataAndEvents) {
  1281.  
  1282.         var destElements, node, clone, i, srcElements,
  1283.             inPage = jQuery.contains(elem.ownerDocument, elem);
  1284.  
  1285.         if (jQuery.support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test("<" + elem.nodeName + ">")) {
  1286.             clone = elem.cloneNode(true);
  1287.  
  1288.             // IE<=8 does not properly clone detached, unknown element nodes
  1289.         } else {
  1290.             fragmentDiv.innerHTML = elem.outerHTML;
  1291.             fragmentDiv.removeChild(clone = fragmentDiv.firstChild);
  1292.         }
  1293.  
  1294.         if ((!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) &&
  1295.                 (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem)) {
  1296.  
  1297.             // We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2
  1298.             destElements = getAll(clone);
  1299.             srcElements = getAll(elem);
  1300.  
  1301.             // Fix all IE cloning issues
  1302.             for (i = 0; (node = srcElements[i]) != null; ++i) {
  1303.                 // Ensure that the destination node is not null; Fixes #9587
  1304.                 if (destElements[i]) {
  1305.                     fixCloneNodeIssues(node, destElements[i]);
  1306.                 }
  1307.             }
  1308.         }
  1309.  
  1310.         // Copy the events from the original to the clone
  1311.         if (dataAndEvents) {
  1312.             if (deepDataAndEvents) {
  1313.                 srcElements = srcElements || getAll(elem);
  1314.                 destElements = destElements || getAll(clone);
  1315.  
  1316.                 for (i = 0; (node = srcElements[i]) != null; i++) {
  1317.                     cloneCopyEvent(node, destElements[i]);
  1318.                 }
  1319.             } else {
  1320.                 cloneCopyEvent(elem, clone);
  1321.             }
  1322.         }
  1323.  
  1324.         // Preserve script evaluation history
  1325.         destElements = getAll(clone, "script");
  1326.         if (destElements.length > 0) {
  1327.             setGlobalEval(destElements, !inPage && getAll(elem, "script"));
  1328.         }
  1329.  
  1330.         destElements = srcElements = node = null;
  1331.  
  1332.         // Return the cloned set
  1333.         return clone;
  1334.     };
  1335.     jQuery.contains = function (context, elem) {
  1336.         /// <summary>
  1337.         ///     Check to see if a DOM element is a descendant of another DOM element.
  1338.         /// </summary>
  1339.         /// <param name="context" domElement="true">
  1340.         ///     The DOM element that may contain the other element.
  1341.         /// </param>
  1342.         /// <param name="elem" domElement="true">
  1343.         ///     The DOM element that may be contained by (a descendant of) the other element.
  1344.         /// </param>
  1345.         /// <returns type="Boolean" />
  1346.  
  1347.         // Set document vars if needed
  1348.         if ((context.ownerDocument || context) !== document) {
  1349.             setDocument(context);
  1350.         }
  1351.         return contains(context, elem);
  1352.     };
  1353.     jQuery.css = function (elem, name, extra, styles) {
  1354.  
  1355.         var num, val, hooks,
  1356.             origName = jQuery.camelCase(name);
  1357.  
  1358.         // Make sure that we're working with the right name
  1359.         name = jQuery.cssProps[origName] || (jQuery.cssProps[origName] = vendorPropName(elem.style, origName));
  1360.  
  1361.         // gets hook for the prefixed version
  1362.         // followed by the unprefixed version
  1363.         hooks = jQuery.cssHooks[name] || jQuery.cssHooks[origName];
  1364.  
  1365.         // If a hook was provided get the computed value from there
  1366.         if (hooks && "get" in hooks) {
  1367.             val = hooks.get(elem, true, extra);
  1368.         }
  1369.  
  1370.         // Otherwise, if a way to get the computed value exists, use that
  1371.         if (val === undefined) {
  1372.             val = curCSS(elem, name, styles);
  1373.         }
  1374.  
  1375.         //convert "normal" to computed value
  1376.         if (val === "normal" && name in cssNormalTransform) {
  1377.             val = cssNormalTransform[name];
  1378.         }
  1379.  
  1380.         // Return, converting to number if forced or a qualifier was provided and val looks numeric
  1381.         if (extra === "" || extra) {
  1382.             num = parseFloat(val);
  1383.             return extra === true || jQuery.isNumeric(num) ? num || 0 : val;
  1384.         }
  1385.         return val;
  1386.     };
  1387.     jQuery.cssHooks = {
  1388.         "opacity": {},
  1389.         "height": {},
  1390.         "width": {},
  1391.         "margin": {},
  1392.         "padding": {},
  1393.         "borderWidth": {}
  1394.     };
  1395.     jQuery.cssNumber = {
  1396.         "columnCount": true,
  1397.         "fillOpacity": true,
  1398.         "fontWeight": true,
  1399.         "lineHeight": true,
  1400.         "opacity": true,
  1401.         "orphans": true,
  1402.         "widows": true,
  1403.         "zIndex": true,
  1404.         "zoom": true
  1405.     };
  1406.     jQuery.cssProps = {
  1407.         "float": 'cssFloat',
  1408.         "display": 'display',
  1409.         "visibility": 'visibility'
  1410.     };
  1411.     jQuery.data = function (elem, name, data) {
  1412.         /// <summary>
  1413.         ///     1: Store arbitrary data associated with the specified element. Returns the value that was set.
  1414.         ///          1.1 - jQuery.data(element, key, value)
  1415.         ///      2: Returns value at named data store for the element, as set by jQuery.data(element, name, value), or the full data store for the element.
  1416.         ///          2.1 - jQuery.data(element, key) 
  1417.         ///          2.2 - jQuery.data(element)
  1418.         /// </summary>
  1419.         /// <param name="elem" domElement="true">
  1420.         ///     The DOM element to associate with the data.
  1421.         /// </param>
  1422.         /// <param name="name" type="String">
  1423.         ///     A string naming the piece of data to set.
  1424.         /// </param>
  1425.         /// <param name="data" type="Object">
  1426.         ///     The new data value.
  1427.         /// </param>
  1428.         /// <returns type="Object" />
  1429.  
  1430.         return internalData(elem, name, data);
  1431.     };
  1432.     jQuery.dequeue = function (elem, type) {
  1433.         /// <summary>
  1434.         ///     Execute the next function on the queue for the matched element.
  1435.         /// </summary>
  1436.         /// <param name="elem" domElement="true">
  1437.         ///     A DOM element from which to remove and execute a queued function.
  1438.         /// </param>
  1439.         /// <param name="type" type="String">
  1440.         ///     A string containing the name of the queue. Defaults to fx, the standard effects queue.
  1441.         /// </param>
  1442.         /// <returns type="undefined" />
  1443.  
  1444.         type = type || "fx";
  1445.  
  1446.         var queue = jQuery.queue(elem, type),
  1447.             startLength = queue.length,
  1448.             fn = queue.shift(),
  1449.             hooks = jQuery._queueHooks(elem, type),
  1450.             next = function () {
  1451.                 jQuery.dequeue(elem, type);
  1452.             };
  1453.  
  1454.         // If the fx queue is dequeued, always remove the progress sentinel
  1455.         if (fn === "inprogress") {
  1456.             fn = queue.shift();
  1457.             startLength--;
  1458.         }
  1459.  
  1460.         hooks.cur = fn;
  1461.         if (fn) {
  1462.  
  1463.             // Add a progress sentinel to prevent the fx queue from being
  1464.             // automatically dequeued
  1465.             if (type === "fx") {
  1466.                 queue.unshift("inprogress");
  1467.             }
  1468.  
  1469.             // clear up the last queue stop function
  1470.             delete hooks.stop;
  1471.             fn.call(elem, next, hooks);
  1472.         }
  1473.  
  1474.         if (!startLength && hooks) {
  1475.             hooks.empty.fire();
  1476.         }
  1477.     };
  1478.     jQuery.dir = function (elem, dir, until) {
  1479.  
  1480.         var matched = [],
  1481.             cur = elem[dir];
  1482.  
  1483.         while (cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery(cur).is(until))) {
  1484.             if (cur.nodeType === 1) {
  1485.                 matched.push(cur);
  1486.             }
  1487.             cur = cur[dir];
  1488.         }
  1489.         return matched;
  1490.     };
  1491.     jQuery.each = function (obj, callback, args) {
  1492.         /// <summary>
  1493.         ///     A generic iterator function, which can be used to seamlessly iterate over both objects and arrays. Arrays and array-like objects with a length property (such as a function's arguments object) are iterated by numeric index, from 0 to length-1. Other objects are iterated via their named properties.
  1494.         /// </summary>
  1495.         /// <param name="obj" type="Object">
  1496.         ///     The object or array to iterate over.
  1497.         /// </param>
  1498.         /// <param name="callback" type="Function">
  1499.         ///     The function that will be executed on every object.
  1500.         /// </param>
  1501.         /// <returns type="Object" />
  1502.  
  1503.         var value,
  1504.             i = 0,
  1505.             length = obj.length,
  1506.             isArray = isArraylike(obj);
  1507.  
  1508.         if (args) {
  1509.             if (isArray) {
  1510.                 for (; i < length; i++) {
  1511.                     value = callback.apply(obj[i], args);
  1512.  
  1513.                     if (value === false) {
  1514.                         break;
  1515.                     }
  1516.                 }
  1517.             } else {
  1518.                 for (i in obj) {
  1519.                     value = callback.apply(obj[i], args);
  1520.  
  1521.                     if (value === false) {
  1522.                         break;
  1523.                     }
  1524.                 }
  1525.             }
  1526.  
  1527.             // A special, fast, case for the most common use of each
  1528.         } else {
  1529.             if (isArray) {
  1530.                 for (; i < length; i++) {
  1531.                     value = callback.call(obj[i], i, obj[i]);
  1532.  
  1533.                     if (value === false) {
  1534.                         break;
  1535.                     }
  1536.                 }
  1537.             } else {
  1538.                 for (i in obj) {
  1539.                     value = callback.call(obj[i], i, obj[i]);
  1540.  
  1541.                     if (value === false) {
  1542.                         break;
  1543.                     }
  1544.                 }
  1545.             }
  1546.         }
  1547.  
  1548.         return obj;
  1549.     };
  1550.     jQuery.easing = {};
  1551.     jQuery.error = function (msg) {
  1552.         /// <summary>
  1553.         ///     Takes a string and throws an exception containing it.
  1554.         /// </summary>
  1555.         /// <param name="msg" type="String">
  1556.         ///     The message to send out.
  1557.         /// </param>
  1558.  
  1559.         throw new Error(msg);
  1560.     };
  1561.     jQuery.etag = {};
  1562.     jQuery.event = {
  1563.         "global": {},
  1564.         "props": ['altKey', 'bubbles', 'cancelable', 'ctrlKey', 'currentTarget', 'eventPhase', 'metaKey', 'relatedTarget', 'shiftKey', 'target', 'timeStamp', 'view', 'which'],
  1565.         "fixHooks": {},
  1566.         "keyHooks": {},
  1567.         "mouseHooks": {},
  1568.         "special": {},
  1569.         "triggered": {}
  1570.     };
  1571.     jQuery.expr = {
  1572.         "cacheLength": 50,
  1573.         "match": {},
  1574.         "find": {},
  1575.         "relative": {},
  1576.         "preFilter": {},
  1577.         "filter": {},
  1578.         "pseudos": {},
  1579.         "filters": {},
  1580.         "setFilters": {},
  1581.         "attrHandle": {},
  1582.         ":": {}
  1583.     };
  1584.     jQuery.extend = function () {
  1585.         /// <summary>
  1586.         ///     Merge the contents of two or more objects together into the first object.
  1587.         ///      1 - jQuery.extend(target, object1, objectN) 
  1588.         ///      2 - jQuery.extend(deep, target, object1, objectN)
  1589.         /// </summary>
  1590.         /// <param name="" type="Boolean">
  1591.         ///     If true, the merge becomes recursive (aka. deep copy).
  1592.         /// </param>
  1593.         /// <param name="" type="Object">
  1594.         ///     The object to extend. It will receive the new properties.
  1595.         /// </param>
  1596.         /// <param name="" type="Object">
  1597.         ///     An object containing additional properties to merge in.
  1598.         /// </param>
  1599.         /// <param name="" type="Object">
  1600.         ///     Additional objects containing properties to merge in.
  1601.         /// </param>
  1602.         /// <returns type="Object" />
  1603.  
  1604.         var src, copyIsArray, copy, name, options, clone,
  1605.             target = arguments[0] || {},
  1606.             i = 1,
  1607.             length = arguments.length,
  1608.             deep = false;
  1609.  
  1610.         // Handle a deep copy situation
  1611.         if (typeof target === "boolean") {
  1612.             deep = target;
  1613.             target = arguments[1] || {};
  1614.             // skip the boolean and the target
  1615.             i = 2;
  1616.         }
  1617.  
  1618.         // Handle case when target is a string or something (possible in deep copy)
  1619.         if (typeof target !== "object" && !jQuery.isFunction(target)) {
  1620.             target = {};
  1621.         }
  1622.  
  1623.         // extend jQuery itself if only one argument is passed
  1624.         if (length === i) {
  1625.             target = this;
  1626.             --i;
  1627.         }
  1628.  
  1629.         for (; i < length; i++) {
  1630.             // Only deal with non-null/undefined values
  1631.             if ((options = arguments[i]) != null) {
  1632.                 // Extend the base object
  1633.                 for (name in options) {
  1634.                     src = target[name];
  1635.                     copy = options[name];
  1636.  
  1637.                     // Prevent never-ending loop
  1638.                     if (target === copy) {
  1639.                         continue;
  1640.                     }
  1641.  
  1642.                     // Recurse if we're merging plain objects or arrays
  1643.                     if (deep && copy && (jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)))) {
  1644.                         if (copyIsArray) {
  1645.                             copyIsArray = false;
  1646.                             clone = src && jQuery.isArray(src) ? src : [];
  1647.  
  1648.                         } else {
  1649.                             clone = src && jQuery.isPlainObject(src) ? src : {};
  1650.                         }
  1651.  
  1652.                         // Never move original objects, clone them
  1653.                         target[name] = jQuery.extend(deep, clone, copy);
  1654.  
  1655.                         // Don't bring in undefined values
  1656.                     } else if (copy !== undefined) {
  1657.                         target[name] = copy;
  1658.                     }
  1659.                 }
  1660.             }
  1661.         }
  1662.  
  1663.         // Return the modified object
  1664.         return target;
  1665.     };
  1666.     jQuery.filter = function (expr, elems, not) {
  1667.  
  1668.         if (not) {
  1669.             expr = ":not(" + expr + ")";
  1670.         }
  1671.  
  1672.         return elems.length === 1 ?
  1673.             jQuery.find.matchesSelector(elems[0], expr) ? [elems[0]] : [] :
  1674.             jQuery.find.matches(expr, elems);
  1675.     };
  1676.     jQuery.find = function Sizzle(selector, context, results, seed) {
  1677.  
  1678.         var match, elem, m, nodeType,
  1679.             // QSA vars
  1680.             i, groups, old, nid, newContext, newSelector;
  1681.  
  1682.         if ((context ? context.ownerDocument || context : preferredDoc) !== document) {
  1683.             setDocument(context);
  1684.         }
  1685.  
  1686.         context = context || document;
  1687.         results = results || [];
  1688.  
  1689.         if (!selector || typeof selector !== "string") {
  1690.             return results;
  1691.         }
  1692.  
  1693.         if ((nodeType = context.nodeType) !== 1 && nodeType !== 9) {
  1694.             return [];
  1695.         }
  1696.  
  1697.         if (!documentIsXML && !seed) {
  1698.  
  1699.             // Shortcuts
  1700.             if ((match = rquickExpr.exec(selector))) {
  1701.                 // Speed-up: Sizzle("#ID")
  1702.                 if ((m = match[1])) {
  1703.                     if (nodeType === 9) {
  1704.                         elem = context.getElementById(m);
  1705.                         // Check parentNode to catch when Blackberry 4.6 returns
  1706.                         // nodes that are no longer in the document #6963
  1707.                         if (elem && elem.parentNode) {
  1708.                             // Handle the case where IE, Opera, and Webkit return items
  1709.                             // by name instead of ID
  1710.                             if (elem.id === m) {
  1711.                                 results.push(elem);
  1712.                                 return results;
  1713.                             }
  1714.                         } else {
  1715.                             return results;
  1716.                         }
  1717.                     } else {
  1718.                         // Context is not a document
  1719.                         if (context.ownerDocument && (elem = context.ownerDocument.getElementById(m)) &&
  1720.                             contains(context, elem) && elem.id === m) {
  1721.                             results.push(elem);
  1722.                             return results;
  1723.                         }
  1724.                     }
  1725.  
  1726.                     // Speed-up: Sizzle("TAG")
  1727.                 } else if (match[2]) {
  1728.                     push.apply(results, slice.call(context.getElementsByTagName(selector), 0));
  1729.                     return results;
  1730.  
  1731.                     // Speed-up: Sizzle(".CLASS")
  1732.                 } else if ((m = match[3]) && support.getByClassName && context.getElementsByClassName) {
  1733.                     push.apply(results, slice.call(context.getElementsByClassName(m), 0));
  1734.                     return results;
  1735.                 }
  1736.             }
  1737.  
  1738.             // QSA path
  1739.             if (support.qsa && !rbuggyQSA.test(selector)) {
  1740.                 old = true;
  1741.                 nid = expando;
  1742.                 newContext = context;
  1743.                 newSelector = nodeType === 9 && selector;
  1744.  
  1745.                 // qSA works strangely on Element-rooted queries
  1746.                 // We can work around this by specifying an extra ID on the root
  1747.                 // and working up from there (Thanks to Andrew Dupont for the technique)
  1748.                 // IE 8 doesn't work on object elements
  1749.                 if (nodeType === 1 && context.nodeName.toLowerCase() !== "object") {
  1750.                     groups = tokenize(selector);
  1751.  
  1752.                     if ((old = context.getAttribute("id"))) {
  1753.                         nid = old.replace(rescape, "\\$&");
  1754.                     } else {
  1755.                         context.setAttribute("id", nid);
  1756.                     }
  1757.                     nid = "[id='" + nid + "'] ";
  1758.  
  1759.                     i = groups.length;
  1760.                     while (i--) {
  1761.                         groups[i] = nid + toSelector(groups[i]);
  1762.                     }
  1763.                     newContext = rsibling.test(selector) && context.parentNode || context;
  1764.                     newSelector = groups.join(",");
  1765.                 }
  1766.  
  1767.                 if (newSelector) {
  1768.                     try {
  1769.                         push.apply(results, slice.call(newContext.querySelectorAll(
  1770.                             newSelector
  1771.                         ), 0));
  1772.                         return results;
  1773.                     } catch (qsaError) {
  1774.                     } finally {
  1775.                         if (!old) {
  1776.                             context.removeAttribute("id");
  1777.                         }
  1778.                     }
  1779.                 }
  1780.             }
  1781.         }
  1782.  
  1783.         // All others
  1784.         return select(selector.replace(rtrim, "$1"), context, results, seed);
  1785.     };
  1786.     jQuery.fn = {
  1787.         "jquery": '1.9.1',
  1788.         "selector": '',
  1789.         "length": 0
  1790.     };
  1791.     jQuery.fx = function (elem, options, prop, end, easing, unit) {
  1792.  
  1793.         this.elem = elem;
  1794.         this.prop = prop;
  1795.         this.easing = easing || "swing";
  1796.         this.options = options;
  1797.         this.start = this.now = this.cur();
  1798.         this.end = end;
  1799.         this.unit = unit || (jQuery.cssNumber[prop] ? "" : "px");
  1800.     };
  1801.     jQuery.get = function (url, data, callback, type) {
  1802.         /// <summary>
  1803.         ///     Load data from the server using a HTTP GET request.
  1804.         /// </summary>
  1805.         /// <param name="url" type="String">
  1806.         ///     A string containing the URL to which the request is sent.
  1807.         /// </param>
  1808.         /// <param name="data" type="String">
  1809.         ///     A plain object or string that is sent to the server with the request.
  1810.         /// </param>
  1811.         /// <param name="callback" type="Function">
  1812.         ///     A callback function that is executed if the request succeeds.
  1813.         /// </param>
  1814.         /// <param name="type" type="String">
  1815.         ///     The type of data expected from the server. Default: Intelligent Guess (xml, json, script, or html).
  1816.         /// </param>
  1817.  
  1818.         // shift arguments if data argument was omitted
  1819.         if (jQuery.isFunction(data)) {
  1820.             type = type || callback;
  1821.             callback = data;
  1822.             data = undefined;
  1823.         }
  1824.  
  1825.         return jQuery.ajax({
  1826.             url: url,
  1827.             type: method,
  1828.             dataType: type,
  1829.             data: data,
  1830.             success: callback
  1831.         });
  1832.     };
  1833.     jQuery.getJSON = function (url, data, callback) {
  1834.         /// <summary>
  1835.         ///     Load JSON-encoded data from the server using a GET HTTP request.
  1836.         /// </summary>
  1837.         /// <param name="url" type="String">
  1838.         ///     A string containing the URL to which the request is sent.
  1839.         /// </param>
  1840.         /// <param name="data" type="PlainObject">
  1841.         ///     A plain object or string that is sent to the server with the request.
  1842.         /// </param>
  1843.         /// <param name="callback" type="Function">
  1844.         ///     A callback function that is executed if the request succeeds.
  1845.         /// </param>
  1846.  
  1847.         return jQuery.get(url, data, callback, "json");
  1848.     };
  1849.     jQuery.getScript = function (url, callback) {
  1850.         /// <summary>
  1851.         ///     Load a JavaScript file from the server using a GET HTTP request, then execute it.
  1852.         /// </summary>
  1853.         /// <param name="url" type="String">
  1854.         ///     A string containing the URL to which the request is sent.
  1855.         /// </param>
  1856.         /// <param name="callback" type="Function">
  1857.         ///     A callback function that is executed if the request succeeds.
  1858.         /// </param>
  1859.  
  1860.         return jQuery.get(url, undefined, callback, "script");
  1861.     };
  1862.     jQuery.globalEval = function (data) {
  1863.         /// <summary>
  1864.         ///     Execute some JavaScript code globally.
  1865.         /// </summary>
  1866.         /// <param name="data" type="String">
  1867.         ///     The JavaScript code to execute.
  1868.         /// </param>
  1869.  
  1870.         if (data && jQuery.trim(data)) {
  1871.             // We use execScript on Internet Explorer
  1872.             // We use an anonymous function so that context is window
  1873.             // rather than jQuery in Firefox
  1874.             (window.execScript || function (data) {
  1875.                 window["eval"].call(window, data);
  1876.             })(data);
  1877.         }
  1878.     };
  1879.     jQuery.grep = function (elems, callback, inv) {
  1880.         /// <summary>
  1881.         ///     Finds the elements of an array which satisfy a filter function. The original array is not affected.
  1882.         /// </summary>
  1883.         /// <param name="elems" type="Array">
  1884.         ///     The array to search through.
  1885.         /// </param>
  1886.         /// <param name="callback" type="Function">
  1887.         ///     The function to process each item against.  The first argument to the function is the item, and the second argument is the index.  The function should return a Boolean value.  this will be the global window object.
  1888.         /// </param>
  1889.         /// <param name="inv" type="Boolean">
  1890.         ///     If "invert" is false, or not provided, then the function returns an array consisting of all elements for which "callback" returns true.  If "invert" is true, then the function returns an array consisting of all elements for which "callback" returns false.
  1891.         /// </param>
  1892.         /// <returns type="Array" />
  1893.  
  1894.         var retVal,
  1895.             ret = [],
  1896.             i = 0,
  1897.             length = elems.length;
  1898.         inv = !!inv;
  1899.  
  1900.         // Go through the array, only saving the items
  1901.         // that pass the validator function
  1902.         for (; i < length; i++) {
  1903.             retVal = !!callback(elems[i], i);
  1904.             if (inv !== retVal) {
  1905.                 ret.push(elems[i]);
  1906.             }
  1907.         }
  1908.  
  1909.         return ret;
  1910.     };
  1911.     jQuery.guid = 1;
  1912.     jQuery.hasData = function (elem) {
  1913.         /// <summary>
  1914.         ///     Determine whether an element has any jQuery data associated with it.
  1915.         /// </summary>
  1916.         /// <param name="elem" domElement="true">
  1917.         ///     A DOM element to be checked for data.
  1918.         /// </param>
  1919.         /// <returns type="Boolean" />
  1920.  
  1921.         elem = elem.nodeType ? jQuery.cache[elem[jQuery.expando]] : elem[jQuery.expando];
  1922.         return !!elem && !isEmptyDataObject(elem);
  1923.     };
  1924.     jQuery.holdReady = function (hold) {
  1925.         /// <summary>
  1926.         ///     Holds or releases the execution of jQuery's ready event.
  1927.         /// </summary>
  1928.         /// <param name="hold" type="Boolean">
  1929.         ///     Indicates whether the ready hold is being requested or released
  1930.         /// </param>
  1931.         /// <returns type="undefined" />
  1932.  
  1933.         if (hold) {
  1934.             jQuery.readyWait++;
  1935.         } else {
  1936.             jQuery.ready(true);
  1937.         }
  1938.     };
  1939.     jQuery.inArray = function (elem, arr, i) {
  1940.         /// <summary>
  1941.         ///     Search for a specified value within an array and return its index (or -1 if not found).
  1942.         /// </summary>
  1943.         /// <param name="elem" type="Anything">
  1944.         ///     The value to search for.
  1945.         /// </param>
  1946.         /// <param name="arr" type="Array">
  1947.         ///     An array through which to search.
  1948.         /// </param>
  1949.         /// <param name="i" type="Number">
  1950.         ///     The index of the array at which to begin the search. The default is 0, which will search the whole array.
  1951.         /// </param>
  1952.         /// <returns type="Number" />
  1953.  
  1954.         var len;
  1955.  
  1956.         if (arr) {
  1957.             if (core_indexOf) {
  1958.                 return core_indexOf.call(arr, elem, i);
  1959.             }
  1960.  
  1961.             len = arr.length;
  1962.             i = i ? i < 0 ? Math.max(0, len + i) : i : 0;
  1963.  
  1964.             for (; i < len; i++) {
  1965.                 // Skip accessing in sparse arrays
  1966.                 if (i in arr && arr[i] === elem) {
  1967.                     return i;
  1968.                 }
  1969.             }
  1970.         }
  1971.  
  1972.         return -1;
  1973.     };
  1974.     jQuery.isEmptyObject = function (obj) {
  1975.         /// <summary>
  1976.         ///     Check to see if an object is empty (contains no enumerable properties).
  1977.         /// </summary>
  1978.         /// <param name="obj" type="Object">
  1979.         ///     The object that will be checked to see if it's empty.
  1980.         /// </param>
  1981.         /// <returns type="Boolean" />
  1982.  
  1983.         var name;
  1984.         for (name in obj) {
  1985.             return false;
  1986.         }
  1987.         return true;
  1988.     };
  1989.     jQuery.isFunction = function (obj) {
  1990.         /// <summary>
  1991.         ///     Determine if the argument passed is a Javascript function object.
  1992.         /// </summary>
  1993.         /// <param name="obj" type="PlainObject">
  1994.         ///     Object to test whether or not it is a function.
  1995.         /// </param>
  1996.         /// <returns type="boolean" />
  1997.  
  1998.         return jQuery.type(obj) === "function";
  1999.     };
  2000.     jQuery.isNumeric = function (obj) {
  2001.         /// <summary>
  2002.         ///     Determines whether its argument is a number.
  2003.         /// </summary>
  2004.         /// <param name="obj" type="PlainObject">
  2005.         ///     The value to be tested.
  2006.         /// </param>
  2007.         /// <returns type="Boolean" />
  2008.  
  2009.         return !isNaN(parseFloat(obj)) && isFinite(obj);
  2010.     };
  2011.     jQuery.isPlainObject = function (obj) {
  2012.         /// <summary>
  2013.         ///     Check to see if an object is a plain object (created using "{}" or "new Object").
  2014.         /// </summary>
  2015.         /// <param name="obj" type="PlainObject">
  2016.         ///     The object that will be checked to see if it's a plain object.
  2017.         /// </param>
  2018.         /// <returns type="Boolean" />
  2019.  
  2020.         // Must be an Object.
  2021.         // Because of IE, we also have to check the presence of the constructor property.
  2022.         // Make sure that DOM nodes and window objects don't pass through, as well
  2023.         if (!obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow(obj)) {
  2024.             return false;
  2025.         }
  2026.  
  2027.         try {
  2028.             // Not own constructor property must be Object
  2029.             if (obj.constructor &&
  2030.                 !core_hasOwn.call(obj, "constructor") &&
  2031.                 !core_hasOwn.call(obj.constructor.prototype, "isPrototypeOf")) {
  2032.                 return false;
  2033.             }
  2034.         } catch (e) {
  2035.             // IE8,9 Will throw exceptions on certain host objects #9897
  2036.             return false;
  2037.         }
  2038.  
  2039.         // Own properties are enumerated firstly, so to speed up,
  2040.         // if last one is own, then all properties are own.
  2041.  
  2042.         var key;
  2043.         for (key in obj) { }
  2044.  
  2045.         return key === undefined || core_hasOwn.call(obj, key);
  2046.     };
  2047.     jQuery.isReady = true;
  2048.     jQuery.isWindow = function (obj) {
  2049.         /// <summary>
  2050.         ///     Determine whether the argument is a window.
  2051.         /// </summary>
  2052.         /// <param name="obj" type="PlainObject">
  2053.         ///     Object to test whether or not it is a window.
  2054.         /// </param>
  2055.         /// <returns type="boolean" />
  2056.  
  2057.         return obj != null && obj == obj.window;
  2058.     };
  2059.     jQuery.isXMLDoc = function (elem) {
  2060.         /// <summary>
  2061.         ///     Check to see if a DOM node is within an XML document (or is an XML document).
  2062.         /// </summary>
  2063.         /// <param name="elem" domElement="true">
  2064.         ///     The DOM node that will be checked to see if it's in an XML document.
  2065.         /// </param>
  2066.         /// <returns type="Boolean" />
  2067.  
  2068.         // documentElement is verified for cases where it doesn't yet exist
  2069.         // (such as loading iframes in IE - #4833)
  2070.         var documentElement = elem && (elem.ownerDocument || elem).documentElement;
  2071.         return documentElement ? documentElement.nodeName !== "HTML" : false;
  2072.     };
  2073.     jQuery.lastModified = {};
  2074.     jQuery.makeArray = function (arr, results) {
  2075.         /// <summary>
  2076.         ///     Convert an array-like object into a true JavaScript array.
  2077.         /// </summary>
  2078.         /// <param name="arr" type="PlainObject">
  2079.         ///     Any object to turn into a native Array.
  2080.         /// </param>
  2081.         /// <returns type="Array" />
  2082.  
  2083.         var ret = results || [];
  2084.  
  2085.         if (arr != null) {
  2086.             if (isArraylike(Object(arr))) {
  2087.                 jQuery.merge(ret,
  2088.                     typeof arr === "string" ?
  2089.                     [arr] : arr
  2090.                 );
  2091.             } else {
  2092.                 core_push.call(ret, arr);
  2093.             }
  2094.         }
  2095.  
  2096.         return ret;
  2097.     };
  2098.     jQuery.map = function (elems, callback, arg) {
  2099.         /// <summary>
  2100.         ///     Translate all items in an array or object to new array of items.
  2101.         ///      1 - jQuery.map(array, callback(elementOfArray, indexInArray)) 
  2102.         ///      2 - jQuery.map(arrayOrObject, callback( value, indexOrKey ))
  2103.         /// </summary>
  2104.         /// <param name="elems" type="Array">
  2105.         ///     The Array to translate.
  2106.         /// </param>
  2107.         /// <param name="callback" type="Function">
  2108.         ///     The function to process each item against.  The first argument to the function is the array item, the second argument is the index in array The function can return any value. Within the function, this refers to the global (window) object.
  2109.         /// </param>
  2110.         /// <returns type="Array" />
  2111.  
  2112.         var value,
  2113.             i = 0,
  2114.             length = elems.length,
  2115.             isArray = isArraylike(elems),
  2116.             ret = [];
  2117.  
  2118.         // Go through the array, translating each of the items to their
  2119.         if (isArray) {
  2120.             for (; i < length; i++) {
  2121.                 value = callback(elems[i], i, arg);
  2122.  
  2123.                 if (value != null) {
  2124.                     ret[ret.length] = value;
  2125.                 }
  2126.             }
  2127.  
  2128.             // Go through every key on the object,
  2129.         } else {
  2130.             for (i in elems) {
  2131.                 value = callback(elems[i], i, arg);
  2132.  
  2133.                 if (value != null) {
  2134.                     ret[ret.length] = value;
  2135.                 }
  2136.             }
  2137.         }
  2138.  
  2139.         // Flatten any nested arrays
  2140.         return core_concat.apply([], ret);
  2141.     };
  2142.     jQuery.merge = function (first, second) {
  2143.         /// <summary>
  2144.         ///     Merge the contents of two arrays together into the first array.
  2145.         /// </summary>
  2146.         /// <param name="first" type="Array">
  2147.         ///     The first array to merge, the elements of second added.
  2148.         /// </param>
  2149.         /// <param name="second" type="Array">
  2150.         ///     The second array to merge into the first, unaltered.
  2151.         /// </param>
  2152.         /// <returns type="Array" />
  2153.  
  2154.         var l = second.length,
  2155.             i = first.length,
  2156.             j = 0;
  2157.  
  2158.         if (typeof l === "number") {
  2159.             for (; j < l; j++) {
  2160.                 first[i++] = second[j];
  2161.             }
  2162.         } else {
  2163.             while (second[j] !== undefined) {
  2164.                 first[i++] = second[j++];
  2165.             }
  2166.         }
  2167.  
  2168.         first.length = i;
  2169.  
  2170.         return first;
  2171.     };
  2172.     jQuery.noConflict = function (deep) {
  2173.         /// <summary>
  2174.         ///     Relinquish jQuery's control of the $ variable.
  2175.         /// </summary>
  2176.         /// <param name="deep" type="Boolean">
  2177.         ///     A Boolean indicating whether to remove all jQuery variables from the global scope (including jQuery itself).
  2178.         /// </param>
  2179.         /// <returns type="Object" />
  2180.  
  2181.         if (window.$ === jQuery) {
  2182.             window.$ = _$;
  2183.         }
  2184.  
  2185.         if (deep && window.jQuery === jQuery) {
  2186.             window.jQuery = _jQuery;
  2187.         }
  2188.  
  2189.         return jQuery;
  2190.     };
  2191.     jQuery.noData = {
  2192.         "embed": true,
  2193.         "object": 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000',
  2194.         "applet": true
  2195.     };
  2196.     jQuery.nodeName = function (elem, name) {
  2197.  
  2198.         return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
  2199.     };
  2200.     jQuery.noop = function () {
  2201.         /// <summary>
  2202.         ///     An empty function.
  2203.         /// </summary>
  2204.         /// <returns type="undefined" />
  2205.     };
  2206.     jQuery.now = function () {
  2207.         /// <summary>
  2208.         ///     Return a number representing the current time.
  2209.         /// </summary>
  2210.         /// <returns type="Number" />
  2211.  
  2212.         return (new Date()).getTime();
  2213.     };
  2214.     jQuery.offset = {};
  2215.     jQuery.param = function (a, traditional) {
  2216.         /// <summary>
  2217.         ///     Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request.
  2218.         ///      1 - jQuery.param(obj) 
  2219.         ///      2 - jQuery.param(obj, traditional)
  2220.         /// </summary>
  2221.         /// <param name="a" type="Object">
  2222.         ///     An array or object to serialize.
  2223.         /// </param>
  2224.         /// <param name="traditional" type="Boolean">
  2225.         ///     A Boolean indicating whether to perform a traditional "shallow" serialization.
  2226.         /// </param>
  2227.         /// <returns type="String" />
  2228.  
  2229.         var prefix,
  2230.             s = [],
  2231.             add = function (key, value) {
  2232.                 // If value is a function, invoke it and return its value
  2233.                 value = jQuery.isFunction(value) ? value() : (value == null ? "" : value);
  2234.                 s[s.length] = encodeURIComponent(key) + "=" + encodeURIComponent(value);
  2235.             };
  2236.  
  2237.         // Set traditional to true for jQuery <= 1.3.2 behavior.
  2238.         if (traditional === undefined) {
  2239.             traditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional;
  2240.         }
  2241.  
  2242.         // If an array was passed in, assume that it is an array of form elements.
  2243.         if (jQuery.isArray(a) || (a.jquery && !jQuery.isPlainObject(a))) {
  2244.             // Serialize the form elements
  2245.             jQuery.each(a, function () {
  2246.                 add(this.name, this.value);
  2247.             });
  2248.  
  2249.         } else {
  2250.             // If traditional, encode the "old" way (the way 1.3.2 or older
  2251.             // did it), otherwise encode params recursively.
  2252.             for (prefix in a) {
  2253.                 buildParams(prefix, a[prefix], traditional, add);
  2254.             }
  2255.         }
  2256.  
  2257.         // Return the resulting serialization
  2258.         return s.join("&").replace(r20, "+");
  2259.     };
  2260.     jQuery.parseHTML = function (data, context, keepScripts) {
  2261.         /// <summary>
  2262.         ///     Parses a string into an array of DOM nodes.
  2263.         /// </summary>
  2264.         /// <param name="data" type="String">
  2265.         ///     HTML string to be parsed
  2266.         /// </param>
  2267.         /// <param name="context" domElement="true">
  2268.         ///     DOM element to serve as the context in which the HTML fragment will be created
  2269.         /// </param>
  2270.         /// <param name="keepScripts" type="Boolean">
  2271.         ///     A Boolean indicating whether to include scripts passed in the HTML string
  2272.         /// </param>
  2273.         /// <returns type="Array" />
  2274.  
  2275.         if (!data || typeof data !== "string") {
  2276.             return null;
  2277.         }
  2278.         if (typeof context === "boolean") {
  2279.             keepScripts = context;
  2280.             context = false;
  2281.         }
  2282.         context = context || document;
  2283.  
  2284.         var parsed = rsingleTag.exec(data),
  2285.             scripts = !keepScripts && [];
  2286.  
  2287.         // Single tag
  2288.         if (parsed) {
  2289.             return [context.createElement(parsed[1])];
  2290.         }
  2291.  
  2292.         parsed = jQuery.buildFragment([data], context, scripts);
  2293.         if (scripts) {
  2294.             jQuery(scripts).remove();
  2295.         }
  2296.         return jQuery.merge([], parsed.childNodes);
  2297.     };
  2298.     jQuery.parseJSON = function (data) {
  2299.         /// <summary>
  2300.         ///     Takes a well-formed JSON string and returns the resulting JavaScript object.
  2301.         /// </summary>
  2302.         /// <param name="data" type="String">
  2303.         ///     The JSON string to parse.
  2304.         /// </param>
  2305.         /// <returns type="Object" />
  2306.  
  2307.         // Attempt to parse using the native JSON parser first
  2308.         if (window.JSON && window.JSON.parse) {
  2309.             return window.JSON.parse(data);
  2310.         }
  2311.  
  2312.         if (data === null) {
  2313.             return data;
  2314.         }
  2315.  
  2316.         if (typeof data === "string") {
  2317.  
  2318.             // Make sure leading/trailing whitespace is removed (IE can't handle it)
  2319.             data = jQuery.trim(data);
  2320.  
  2321.             if (data) {
  2322.                 // Make sure the incoming data is actual JSON
  2323.                 // Logic borrowed from http://json.org/json2.js
  2324.                 if (rvalidchars.test(data.replace(rvalidescape, "@")
  2325.                     .replace(rvalidtokens, "]")
  2326.                     .replace(rvalidbraces, ""))) {
  2327.  
  2328.                     return (new Function("return " + data))();
  2329.                 }
  2330.             }
  2331.         }
  2332.  
  2333.         jQuery.error("Invalid JSON: " + data);
  2334.     };
  2335.     jQuery.parseXML = function (data) {
  2336.         /// <summary>
  2337.         ///     Parses a string into an XML document.
  2338.         /// </summary>
  2339.         /// <param name="data" type="String">
  2340.         ///     a well-formed XML string to be parsed
  2341.         /// </param>
  2342.         /// <returns type="XMLDocument" />
  2343.  
  2344.         var xml, tmp;
  2345.         if (!data || typeof data !== "string") {
  2346.             return null;
  2347.         }
  2348.         try {
  2349.             if (window.DOMParser) { // Standard
  2350.                 tmp = new DOMParser();
  2351.                 xml = tmp.parseFromString(data, "text/xml");
  2352.             } else { // IE
  2353.                 xml = new ActiveXObject("Microsoft.XMLDOM");
  2354.                 xml.async = "false";
  2355.                 xml.loadXML(data);
  2356.             }
  2357.         } catch (e) {
  2358.             xml = undefined;
  2359.         }
  2360.         if (!xml || !xml.documentElement || xml.getElementsByTagName("parsererror").length) {
  2361.             jQuery.error("Invalid XML: " + data);
  2362.         }
  2363.         return xml;
  2364.     };
  2365.     jQuery.post = function (url, data, callback, type) {
  2366.         /// <summary>
  2367.         ///     Load data from the server using a HTTP POST request.
  2368.         /// </summary>
  2369.         /// <param name="url" type="String">
  2370.         ///     A string containing the URL to which the request is sent.
  2371.         /// </param>
  2372.         /// <param name="data" type="String">
  2373.         ///     A plain object or string that is sent to the server with the request.
  2374.         /// </param>
  2375.         /// <param name="callback" type="Function">
  2376.         ///     A callback function that is executed if the request succeeds.
  2377.         /// </param>
  2378.         /// <param name="type" type="String">
  2379.         ///     The type of data expected from the server. Default: Intelligent Guess (xml, json, script, text, html).
  2380.         /// </param>
  2381.  
  2382.         // shift arguments if data argument was omitted
  2383.         if (jQuery.isFunction(data)) {
  2384.             type = type || callback;
  2385.             callback = data;
  2386.             data = undefined;
  2387.         }
  2388.  
  2389.         return jQuery.ajax({
  2390.             url: url,
  2391.             type: method,
  2392.             dataType: type,
  2393.             data: data,
  2394.             success: callback
  2395.         });
  2396.     };
  2397.     jQuery.prop = function (elem, name, value) {
  2398.  
  2399.         var ret, hooks, notxml,
  2400.             nType = elem.nodeType;
  2401.  
  2402.         // don't get/set properties on text, comment and attribute nodes
  2403.         if (!elem || nType === 3 || nType === 8 || nType === 2) {
  2404.             return;
  2405.         }
  2406.  
  2407.         notxml = nType !== 1 || !jQuery.isXMLDoc(elem);
  2408.  
  2409.         if (notxml) {
  2410.             // Fix name and attach hooks
  2411.             name = jQuery.propFix[name] || name;
  2412.             hooks = jQuery.propHooks[name];
  2413.         }
  2414.  
  2415.         if (value !== undefined) {
  2416.             if (hooks && "set" in hooks && (ret = hooks.set(elem, value, name)) !== undefined) {
  2417.                 return ret;
  2418.  
  2419.             } else {
  2420.                 return (elem[name] = value);
  2421.             }
  2422.  
  2423.         } else {
  2424.             if (hooks && "get" in hooks && (ret = hooks.get(elem, name)) !== null) {
  2425.                 return ret;
  2426.  
  2427.             } else {
  2428.                 return elem[name];
  2429.             }
  2430.         }
  2431.     };
  2432.     jQuery.propFix = {
  2433.         "tabindex": 'tabIndex',
  2434.         "readonly": 'readOnly',
  2435.         "for": 'htmlFor',
  2436.         "class": 'className',
  2437.         "maxlength": 'maxLength',
  2438.         "cellspacing": 'cellSpacing',
  2439.         "cellpadding": 'cellPadding',
  2440.         "rowspan": 'rowSpan',
  2441.         "colspan": 'colSpan',
  2442.         "usemap": 'useMap',
  2443.         "frameborder": 'frameBorder',
  2444.         "contenteditable": 'contentEditable'
  2445.     };
  2446.     jQuery.propHooks = {
  2447.         "tabIndex": {},
  2448.         "selected": {}
  2449.     };
  2450.     jQuery.proxy = function (fn, context) {
  2451.         /// <summary>
  2452.         ///     Takes a function and returns a new one that will always have a particular context.
  2453.         ///      1 - jQuery.proxy(function, context) 
  2454.         ///      2 - jQuery.proxy(context, name) 
  2455.         ///      3 - jQuery.proxy(function, context, additionalArguments) 
  2456.         ///      4 - jQuery.proxy(context, name, additionalArguments)
  2457.         /// </summary>
  2458.         /// <param name="fn" type="Function">
  2459.         ///     The function whose context will be changed.
  2460.         /// </param>
  2461.         /// <param name="context" type="PlainObject">
  2462.         ///     The object to which the context (this) of the function should be set.
  2463.         /// </param>
  2464.         /// <param name="" type="Anything">
  2465.         ///     Any number of arguments to be passed to the function referenced in the function argument.
  2466.         /// </param>
  2467.         /// <returns type="Function" />
  2468.  
  2469.         var args, proxy, tmp;
  2470.  
  2471.         if (typeof context === "string") {
  2472.             tmp = fn[context];
  2473.             context = fn;
  2474.             fn = tmp;
  2475.         }
  2476.  
  2477.         // Quick check to determine if target is callable, in the spec
  2478.         // this throws a TypeError, but we will just return undefined.
  2479.         if (!jQuery.isFunction(fn)) {
  2480.             return undefined;
  2481.         }
  2482.  
  2483.         // Simulated bind
  2484.         args = core_slice.call(arguments, 2);
  2485.         proxy = function () {
  2486.             return fn.apply(context || this, args.concat(core_slice.call(arguments)));
  2487.         };
  2488.  
  2489.         // Set the guid of unique handler to the same of original handler, so it can be removed
  2490.         proxy.guid = fn.guid = fn.guid || jQuery.guid++;
  2491.  
  2492.         return proxy;
  2493.     };
  2494.     jQuery.queue = function (elem, type, data) {
  2495.         /// <summary>
  2496.         ///     1: Show the queue of functions to be executed on the matched element.
  2497.         ///          1.1 - jQuery.queue(element, queueName)
  2498.         ///      2: Manipulate the queue of functions to be executed on the matched element.
  2499.         ///          2.1 - jQuery.queue(element, queueName, newQueue) 
  2500.         ///          2.2 - jQuery.queue(element, queueName, callback())
  2501.         /// </summary>
  2502.         /// <param name="elem" domElement="true">
  2503.         ///     A DOM element where the array of queued functions is attached.
  2504.         /// </param>
  2505.         /// <param name="type" type="String">
  2506.         ///     A string containing the name of the queue. Defaults to fx, the standard effects queue.
  2507.         /// </param>
  2508.         /// <param name="data" type="Array">
  2509.         ///     An array of functions to replace the current queue contents.
  2510.         /// </param>
  2511.         /// <returns type="jQuery" />
  2512.  
  2513.         var queue;
  2514.  
  2515.         if (elem) {
  2516.             type = (type || "fx") + "queue";
  2517.             queue = jQuery._data(elem, type);
  2518.  
  2519.             // Speed up dequeue by getting out quickly if this is just a lookup
  2520.             if (data) {
  2521.                 if (!queue || jQuery.isArray(data)) {
  2522.                     queue = jQuery._data(elem, type, jQuery.makeArray(data));
  2523.                 } else {
  2524.                     queue.push(data);
  2525.                 }
  2526.             }
  2527.             return queue || [];
  2528.         }
  2529.     };
  2530.     jQuery.ready = function (wait) {
  2531.  
  2532.  
  2533.         // Abort if there are pending holds or we're already ready
  2534.         if (wait === true ? --jQuery.readyWait : jQuery.isReady) {
  2535.             return;
  2536.         }
  2537.  
  2538.         // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
  2539.         if (!document.body) {
  2540.             return setTimeout(jQuery.ready);
  2541.         }
  2542.  
  2543.         // Remember that the DOM is ready
  2544.         jQuery.isReady = true;
  2545.  
  2546.         // If a normal DOM Ready event fired, decrement, and wait if need be
  2547.         if (wait !== true && --jQuery.readyWait > 0) {
  2548.             return;
  2549.         }
  2550.  
  2551.         // If there are functions bound, to execute
  2552.         readyList.resolveWith(document, [jQuery]);
  2553.  
  2554.         // Trigger any bound ready events
  2555.         if (jQuery.fn.trigger) {
  2556.             jQuery(document).trigger("ready").off("ready");
  2557.         }
  2558.     };
  2559.     jQuery.readyWait = 0;
  2560.     jQuery.removeAttr = function (elem, value) {
  2561.  
  2562.         var name, propName,
  2563.             i = 0,
  2564.             attrNames = value && value.match(core_rnotwhite);
  2565.  
  2566.         if (attrNames && elem.nodeType === 1) {
  2567.             while ((name = attrNames[i++])) {
  2568.                 propName = jQuery.propFix[name] || name;
  2569.  
  2570.                 // Boolean attributes get special treatment (#10870)
  2571.                 if (rboolean.test(name)) {
  2572.                     // Set corresponding property to false for boolean attributes
  2573.                     // Also clear defaultChecked/defaultSelected (if appropriate) for IE<8
  2574.                     if (!getSetAttribute && ruseDefault.test(name)) {
  2575.                         elem[jQuery.camelCase("default-" + name)] =
  2576.                             elem[propName] = false;
  2577.                     } else {
  2578.                         elem[propName] = false;
  2579.                     }
  2580.  
  2581.                     // See #9699 for explanation of this approach (setting first, then removal)
  2582.                 } else {
  2583.                     jQuery.attr(elem, name, "");
  2584.                 }
  2585.  
  2586.                 elem.removeAttribute(getSetAttribute ? name : propName);
  2587.             }
  2588.         }
  2589.     };
  2590.     jQuery.removeData = function (elem, name) {
  2591.         /// <summary>
  2592.         ///     Remove a previously-stored piece of data.
  2593.         /// </summary>
  2594.         /// <param name="elem" domElement="true">
  2595.         ///     A DOM element from which to remove data.
  2596.         /// </param>
  2597.         /// <param name="name" type="String">
  2598.         ///     A string naming the piece of data to remove.
  2599.         /// </param>
  2600.         /// <returns type="jQuery" />
  2601.  
  2602.         return internalRemoveData(elem, name);
  2603.     };
  2604.     jQuery.removeEvent = function (elem, type, handle) {
  2605.  
  2606.         if (elem.removeEventListener) {
  2607.             elem.removeEventListener(type, handle, false);
  2608.         }
  2609.     };
  2610.     jQuery.sibling = function (n, elem) {
  2611.  
  2612.         var r = [];
  2613.  
  2614.         for (; n; n = n.nextSibling) {
  2615.             if (n.nodeType === 1 && n !== elem) {
  2616.                 r.push(n);
  2617.             }
  2618.         }
  2619.  
  2620.         return r;
  2621.     };
  2622.     jQuery.speed = function (speed, easing, fn) {
  2623.  
  2624.         var opt = speed && typeof speed === "object" ? jQuery.extend({}, speed) : {
  2625.             complete: fn || !fn && easing ||
  2626.                 jQuery.isFunction(speed) && speed,
  2627.             duration: speed,
  2628.             easing: fn && easing || easing && !jQuery.isFunction(easing) && easing
  2629.         };
  2630.  
  2631.         opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
  2632.             opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[opt.duration] : jQuery.fx.speeds._default;
  2633.  
  2634.         // normalize opt.queue - true/undefined/null -> "fx"
  2635.         if (opt.queue == null || opt.queue === true) {
  2636.             opt.queue = "fx";
  2637.         }
  2638.  
  2639.         // Queueing
  2640.         opt.old = opt.complete;
  2641.  
  2642.         opt.complete = function () {
  2643.             if (jQuery.isFunction(opt.old)) {
  2644.                 opt.old.call(this);
  2645.             }
  2646.  
  2647.             if (opt.queue) {
  2648.                 jQuery.dequeue(this, opt.queue);
  2649.             }
  2650.         };
  2651.  
  2652.         return opt;
  2653.     };
  2654.     jQuery.style = function (elem, name, value, extra) {
  2655.  
  2656.         // Don't set styles on text and comment nodes
  2657.         if (!elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style) {
  2658.             return;
  2659.         }
  2660.  
  2661.         // Make sure that we're working with the right name
  2662.         var ret, type, hooks,
  2663.             origName = jQuery.camelCase(name),
  2664.             style = elem.style;
  2665.  
  2666.         name = jQuery.cssProps[origName] || (jQuery.cssProps[origName] = vendorPropName(style, origName));
  2667.  
  2668.         // gets hook for the prefixed version
  2669.         // followed by the unprefixed version
  2670.         hooks = jQuery.cssHooks[name] || jQuery.cssHooks[origName];
  2671.  
  2672.         // Check if we're setting a value
  2673.         if (value !== undefined) {
  2674.             type = typeof value;
  2675.  
  2676.             // convert relative number strings (+= or -=) to relative numbers. #7345
  2677.             if (type === "string" && (ret = rrelNum.exec(value))) {
  2678.                 value = (ret[1] + 1) * ret[2] + parseFloat(jQuery.css(elem, name));
  2679.                 // Fixes bug #9237
  2680.                 type = "number";
  2681.             }
  2682.  
  2683.             // Make sure that NaN and null values aren't set. See: #7116
  2684.             if (value == null || type === "number" && isNaN(value)) {
  2685.                 return;
  2686.             }
  2687.  
  2688.             // If a number was passed in, add 'px' to the (except for certain CSS properties)
  2689.             if (type === "number" && !jQuery.cssNumber[origName]) {
  2690.                 value += "px";
  2691.             }
  2692.  
  2693.             // Fixes #8908, it can be done more correctly by specifing setters in cssHooks,
  2694.             // but it would mean to define eight (for every problematic property) identical functions
  2695.             if (!jQuery.support.clearCloneStyle && value === "" && name.indexOf("background") === 0) {
  2696.                 style[name] = "inherit";
  2697.             }
  2698.  
  2699.             // If a hook was provided, use that value, otherwise just set the specified value
  2700.             if (!hooks || !("set" in hooks) || (value = hooks.set(elem, value, extra)) !== undefined) {
  2701.  
  2702.                 // Wrapped to prevent IE from throwing errors when 'invalid' values are provided
  2703.                 // Fixes bug #5509
  2704.                 try {
  2705.                     style[name] = value;
  2706.                 } catch (e) { }
  2707.             }
  2708.  
  2709.         } else {
  2710.             // If a hook was provided get the non-computed value from there
  2711.             if (hooks && "get" in hooks && (ret = hooks.get(elem, false, extra)) !== undefined) {
  2712.                 return ret;
  2713.             }
  2714.  
  2715.             // Otherwise just get the value from the style object
  2716.             return style[name];
  2717.         }
  2718.     };
  2719.     jQuery.support = {
  2720.         "getSetAttribute": true,
  2721.         "leadingWhitespace": true,
  2722.         "tbody": true,
  2723.         "htmlSerialize": true,
  2724.         "style": true,
  2725.         "hrefNormalized": true,
  2726.         "opacity": true,
  2727.         "cssFloat": true,
  2728.         "checkOn": true,
  2729.         "optSelected": false,
  2730.         "enctype": true,
  2731.         "html5Clone": true,
  2732.         "boxModel": true,
  2733.         "deleteExpando": true,
  2734.         "noCloneEvent": true,
  2735.         "inlineBlockNeedsLayout": false,
  2736.         "shrinkWrapBlocks": false,
  2737.         "reliableMarginRight": true,
  2738.         "boxSizingReliable": false,
  2739.         "pixelPosition": true,
  2740.         "noCloneChecked": false,
  2741.         "optDisabled": true,
  2742.         "input": true,
  2743.         "radioValue": false,
  2744.         "appendChecked": true,
  2745.         "checkClone": true,
  2746.         "submitBubbles": true,
  2747.         "changeBubbles": true,
  2748.         "focusinBubbles": true,
  2749.         "clearCloneStyle": false,
  2750.         "cors": true,
  2751.         "ajax": true,
  2752.         "reliableHiddenOffsets": true,
  2753.         "boxSizing": true,
  2754.         "doesNotIncludeMarginInBodyOffset": true
  2755.     };
  2756.     jQuery.swap = function (elem, options, callback, args) {
  2757.  
  2758.         var ret, name,
  2759.             old = {};
  2760.  
  2761.         // Remember the old values, and insert the new ones
  2762.         for (name in options) {
  2763.             old[name] = elem.style[name];
  2764.             elem.style[name] = options[name];
  2765.         }
  2766.  
  2767.         ret = callback.apply(elem, args || []);
  2768.  
  2769.         // Revert the old values
  2770.         for (name in options) {
  2771.             elem.style[name] = old[name];
  2772.         }
  2773.  
  2774.         return ret;
  2775.     };
  2776.     jQuery.text = function (elem) {
  2777.  
  2778.         var node,
  2779.             ret = "",
  2780.             i = 0,
  2781.             nodeType = elem.nodeType;
  2782.  
  2783.         if (!nodeType) {
  2784.             // If no nodeType, this is expected to be an array
  2785.             for (; (node = elem[i]) ; i++) {
  2786.                 // Do not traverse comment nodes
  2787.                 ret += getText(node);
  2788.             }
  2789.         } else if (nodeType === 1 || nodeType === 9 || nodeType === 11) {
  2790.             // Use textContent for elements
  2791.             // innerText usage removed for consistency of new lines (see #11153)
  2792.             if (typeof elem.textContent === "string") {
  2793.                 return elem.textContent;
  2794.             } else {
  2795.                 // Traverse its children
  2796.                 for (elem = elem.firstChild; elem; elem = elem.nextSibling) {
  2797.                     ret += getText(elem);
  2798.                 }
  2799.             }
  2800.         } else if (nodeType === 3 || nodeType === 4) {
  2801.             return elem.nodeValue;
  2802.         }
  2803.         // Do not include comment or processing instruction nodes
  2804.  
  2805.         return ret;
  2806.     };
  2807.     jQuery.trim = function (text) {
  2808.         /// <summary>
  2809.         ///     Remove the whitespace from the beginning and end of a string.
  2810.         /// </summary>
  2811.         /// <param name="text" type="String">
  2812.         ///     The string to trim.
  2813.         /// </param>
  2814.         /// <returns type="String" />
  2815.  
  2816.         return text == null ?
  2817.             "" :
  2818.             core_trim.call(text);
  2819.     };
  2820.     jQuery.type = function (obj) {
  2821.         /// <summary>
  2822.         ///     Determine the internal JavaScript [[Class]] of an object.
  2823.         /// </summary>
  2824.         /// <param name="obj" type="PlainObject">
  2825.         ///     Object to get the internal JavaScript [[Class]] of.
  2826.         /// </param>
  2827.         /// <returns type="String" />
  2828.  
  2829.         if (obj == null) {
  2830.             return String(obj);
  2831.         }
  2832.         return typeof obj === "object" || typeof obj === "function" ?
  2833.             class2type[core_toString.call(obj)] || "object" :
  2834.             typeof obj;
  2835.     };
  2836.     jQuery.unique = function (results) {
  2837.         /// <summary>
  2838.         ///     Sorts an array of DOM elements, in place, with the duplicates removed. Note that this only works on arrays of DOM elements, not strings or numbers.
  2839.         /// </summary>
  2840.         /// <param name="results" type="Array">
  2841.         ///     The Array of DOM elements.
  2842.         /// </param>
  2843.         /// <returns type="Array" />
  2844.  
  2845.         var elem,
  2846.             duplicates = [],
  2847.             i = 1,
  2848.             j = 0;
  2849.  
  2850.         // Unless we *know* we can detect duplicates, assume their presence
  2851.         hasDuplicate = !support.detectDuplicates;
  2852.         results.sort(sortOrder);
  2853.  
  2854.         if (hasDuplicate) {
  2855.             for (; (elem = results[i]) ; i++) {
  2856.                 if (elem === results[i - 1]) {
  2857.                     j = duplicates.push(i);
  2858.                 }
  2859.             }
  2860.             while (j--) {
  2861.                 results.splice(duplicates[j], 1);
  2862.             }
  2863.         }
  2864.  
  2865.         return results;
  2866.     };
  2867.     jQuery.valHooks = {
  2868.         "option": {},
  2869.         "select": {},
  2870.         "radio": {},
  2871.         "checkbox": {}
  2872.     };
  2873.     jQuery.when = function (subordinate /* , ..., subordinateN */) {
  2874.         /// <summary>
  2875.         ///     Provides a way to execute callback functions based on one or more objects, usually Deferred objects that represent asynchronous events.
  2876.         /// </summary>
  2877.         /// <param name="subordinate/*" type="Deferred">
  2878.         ///     One or more Deferred objects, or plain JavaScript objects.
  2879.         /// </param>
  2880.         /// <returns type="Promise" />
  2881.  
  2882.         var i = 0,
  2883.             resolveValues = core_slice.call(arguments),
  2884.             length = resolveValues.length,
  2885.  
  2886.             // the count of uncompleted subordinates
  2887.             remaining = length !== 1 || (subordinate && jQuery.isFunction(subordinate.promise)) ? length : 0,
  2888.  
  2889.             // the master Deferred. If resolveValues consist of only a single Deferred, just use that.
  2890.             deferred = remaining === 1 ? subordinate : jQuery.Deferred(),
  2891.  
  2892.             // Update function for both resolve and progress values
  2893.             updateFunc = function (i, contexts, values) {
  2894.                 return function (value) {
  2895.                     contexts[i] = this;
  2896.                     values[i] = arguments.length > 1 ? core_slice.call(arguments) : value;
  2897.                     if (values === progressValues) {
  2898.                         deferred.notifyWith(contexts, values);
  2899.                     } else if (!(--remaining)) {
  2900.                         deferred.resolveWith(contexts, values);
  2901.                     }
  2902.                 };
  2903.             },
  2904.  
  2905.             progressValues, progressContexts, resolveContexts;
  2906.  
  2907.         // add listeners to Deferred subordinates; treat others as resolved
  2908.         if (length > 1) {
  2909.             progressValues = new Array(length);
  2910.             progressContexts = new Array(length);
  2911.             resolveContexts = new Array(length);
  2912.             for (; i < length; i++) {
  2913.                 if (resolveValues[i] && jQuery.isFunction(resolveValues[i].promise)) {
  2914.                     resolveValues[i].promise()
  2915.                         .done(updateFunc(i, resolveContexts, resolveValues))
  2916.                         .fail(deferred.reject)
  2917.                         .progress(updateFunc(i, progressContexts, progressValues));
  2918.                 } else {
  2919.                     --remaining;
  2920.                 }
  2921.             }
  2922.         }
  2923.  
  2924.         // if we're not waiting on anything, resolve the master
  2925.         if (!remaining) {
  2926.             deferred.resolveWith(resolveContexts, resolveValues);
  2927.         }
  2928.  
  2929.         return deferred.promise();
  2930.     };
  2931.     jQuery.Event.prototype.isDefaultPrevented = function returnFalse() {
  2932.         /// <summary>
  2933.         ///     Returns whether event.preventDefault() was ever called on this event object.
  2934.         /// </summary>
  2935.         /// <returns type="Boolean" />
  2936.  
  2937.         return false;
  2938.     };
  2939.     jQuery.Event.prototype.isImmediatePropagationStopped = function returnFalse() {
  2940.         /// <summary>
  2941.         ///     Returns whether event.stopImmediatePropagation() was ever called on this event object.
  2942.         /// </summary>
  2943.         /// <returns type="Boolean" />
  2944.  
  2945.         return false;
  2946.     };
  2947.     jQuery.Event.prototype.isPropagationStopped = function returnFalse() {
  2948.         /// <summary>
  2949.         ///     Returns whether event.stopPropagation() was ever called on this event object.
  2950.         /// </summary>
  2951.         /// <returns type="Boolean" />
  2952.  
  2953.         return false;
  2954.     };
  2955.     jQuery.Event.prototype.preventDefault = function () {
  2956.         /// <summary>
  2957.         ///     If this method is called, the default action of the event will not be triggered.
  2958.         /// </summary>
  2959.         /// <returns type="undefined" />
  2960.  
  2961.         var e = this.originalEvent;
  2962.  
  2963.         this.isDefaultPrevented = returnTrue;
  2964.         if (!e) {
  2965.             return;
  2966.         }
  2967.  
  2968.         // If preventDefault exists, run it on the original event
  2969.         if (e.preventDefault) {
  2970.             e.preventDefault();
  2971.  
  2972.             // Support: IE
  2973.             // Otherwise set the returnValue property of the original event to false
  2974.         } else {
  2975.             e.returnValue = false;
  2976.         }
  2977.     };
  2978.     jQuery.Event.prototype.stopImmediatePropagation = function () {
  2979.         /// <summary>
  2980.         ///     Keeps the rest of the handlers from being executed and prevents the event from bubbling up the DOM tree.
  2981.         /// </summary>
  2982.  
  2983.         this.isImmediatePropagationStopped = returnTrue;
  2984.         this.stopPropagation();
  2985.     };
  2986.     jQuery.Event.prototype.stopPropagation = function () {
  2987.         /// <summary>
  2988.         ///     Prevents the event from bubbling up the DOM tree, preventing any parent handlers from being notified of the event.
  2989.         /// </summary>
  2990.  
  2991.         var e = this.originalEvent;
  2992.  
  2993.         this.isPropagationStopped = returnTrue;
  2994.         if (!e) {
  2995.             return;
  2996.         }
  2997.         // If stopPropagation exists, run it on the original event
  2998.         if (e.stopPropagation) {
  2999.             e.stopPropagation();
  3000.         }
  3001.  
  3002.         // Support: IE
  3003.         // Set the cancelBubble property of the original event to true
  3004.         e.cancelBubble = true;
  3005.     };
  3006.     jQuery.prototype.add = function (selector, context) {
  3007.         /// <summary>
  3008.         ///     Add elements to the set of matched elements.
  3009.         ///      1 - add(selector) 
  3010.         ///      2 - add(elements) 
  3011.         ///      3 - add(html) 
  3012.         ///      4 - add(jQuery object) 
  3013.         ///      5 - add(selector, context)
  3014.         /// </summary>
  3015.         /// <param name="selector" type="String">
  3016.         ///     A string representing a selector expression to find additional elements to add to the set of matched elements.
  3017.         /// </param>
  3018.         /// <param name="context" domElement="true">
  3019.         ///     The point in the document at which the selector should begin matching; similar to the context argument of the $(selector, context) method.
  3020.         /// </param>
  3021.         /// <returns type="jQuery" />
  3022.  
  3023.         var set = typeof selector === "string" ?
  3024.                 jQuery(selector, context) :
  3025.                 jQuery.makeArray(selector && selector.nodeType ? [selector] : selector),
  3026.             all = jQuery.merge(this.get(), set);
  3027.  
  3028.         return this.pushStack(jQuery.unique(all));
  3029.     };
  3030.     jQuery.prototype.addBack = function (selector) {
  3031.         /// <summary>
  3032.         ///     Add the previous set of elements on the stack to the current set, optionally filtered by a selector.
  3033.         /// </summary>
  3034.         /// <param name="selector" type="String">
  3035.         ///     A string containing a selector expression to match the current set of elements against.
  3036.         /// </param>
  3037.         /// <returns type="jQuery" />
  3038.  
  3039.         return this.add(selector == null ?
  3040.             this.prevObject : this.prevObject.filter(selector)
  3041.         );
  3042.     };
  3043.     jQuery.prototype.addClass = function (value) {
  3044.         /// <summary>
  3045.         ///     Adds the specified class(es) to each of the set of matched elements.
  3046.         ///      1 - addClass(className) 
  3047.         ///      2 - addClass(function(index, currentClass))
  3048.         /// </summary>
  3049.         /// <param name="value" type="String">
  3050.         ///     One or more space-separated classes to be added to the class attribute of each matched element.
  3051.         /// </param>
  3052.         /// <returns type="jQuery" />
  3053.  
  3054.         var classes, elem, cur, clazz, j,
  3055.             i = 0,
  3056.             len = this.length,
  3057.             proceed = typeof value === "string" && value;
  3058.  
  3059.         if (jQuery.isFunction(value)) {
  3060.             return this.each(function (j) {
  3061.                 jQuery(this).addClass(value.call(this, j, this.className));
  3062.             });
  3063.         }
  3064.  
  3065.         if (proceed) {
  3066.             // The disjunction here is for better compressibility (see removeClass)
  3067.             classes = (value || "").match(core_rnotwhite) || [];
  3068.  
  3069.             for (; i < len; i++) {
  3070.                 elem = this[i];
  3071.                 cur = elem.nodeType === 1 && (elem.className ?
  3072.                     (" " + elem.className + " ").replace(rclass, " ") :
  3073.                     " "
  3074.                 );
  3075.  
  3076.                 if (cur) {
  3077.                     j = 0;
  3078.                     while ((clazz = classes[j++])) {
  3079.                         if (cur.indexOf(" " + clazz + " ") < 0) {
  3080.                             cur += clazz + " ";
  3081.                         }
  3082.                     }
  3083.                     elem.className = jQuery.trim(cur);
  3084.  
  3085.                 }
  3086.             }
  3087.         }
  3088.  
  3089.         return this;
  3090.     };
  3091.     jQuery.prototype.after = function () {
  3092.         /// <summary>
  3093.         ///     Insert content, specified by the parameter, after each element in the set of matched elements.
  3094.         ///      1 - after(content, content) 
  3095.         ///      2 - after(function(index))
  3096.         /// </summary>
  3097.         /// <param name="" type="jQuery">
  3098.         ///     HTML string, DOM element, or jQuery object to insert after each element in the set of matched elements.
  3099.         /// </param>
  3100.         /// <param name="" type="jQuery">
  3101.         ///     One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert after each element in the set of matched elements.
  3102.         /// </param>
  3103.         /// <returns type="jQuery" />
  3104.  
  3105.         return this.domManip(arguments, false, function (elem) {
  3106.             if (this.parentNode) {
  3107.                 this.parentNode.insertBefore(elem, this.nextSibling);
  3108.             }
  3109.         });
  3110.     };
  3111.     jQuery.prototype.ajaxComplete = function (fn) {
  3112.         /// <summary>
  3113.         ///     Register a handler to be called when Ajax requests complete. This is an AjaxEvent.
  3114.         /// </summary>
  3115.         /// <param name="fn" type="Function">
  3116.         ///     The function to be invoked.
  3117.         /// </param>
  3118.         /// <returns type="jQuery" />
  3119.  
  3120.         return this.on(type, fn);
  3121.     };
  3122.     jQuery.prototype.ajaxError = function (fn) {
  3123.         /// <summary>
  3124.         ///     Register a handler to be called when Ajax requests complete with an error. This is an Ajax Event.
  3125.         /// </summary>
  3126.         /// <param name="fn" type="Function">
  3127.         ///     The function to be invoked.
  3128.         /// </param>
  3129.         /// <returns type="jQuery" />
  3130.  
  3131.         return this.on(type, fn);
  3132.     };
  3133.     jQuery.prototype.ajaxSend = function (fn) {
  3134.         /// <summary>
  3135.         ///     Attach a function to be executed before an Ajax request is sent. This is an Ajax Event.
  3136.         /// </summary>
  3137.         /// <param name="fn" type="Function">
  3138.         ///     The function to be invoked.
  3139.         /// </param>
  3140.         /// <returns type="jQuery" />
  3141.  
  3142.         return this.on(type, fn);
  3143.     };
  3144.     jQuery.prototype.ajaxStart = function (fn) {
  3145.         /// <summary>
  3146.         ///     Register a handler to be called when the first Ajax request begins. This is an Ajax Event.
  3147.         /// </summary>
  3148.         /// <param name="fn" type="Function">
  3149.         ///     The function to be invoked.
  3150.         /// </param>
  3151.         /// <returns type="jQuery" />
  3152.  
  3153.         return this.on(type, fn);
  3154.     };
  3155.     jQuery.prototype.ajaxStop = function (fn) {
  3156.         /// <summary>
  3157.         ///     Register a handler to be called when all Ajax requests have completed. This is an Ajax Event.
  3158.         /// </summary>
  3159.         /// <param name="fn" type="Function">
  3160.         ///     The function to be invoked.
  3161.         /// </param>
  3162.         /// <returns type="jQuery" />
  3163.  
  3164.         return this.on(type, fn);
  3165.     };
  3166.     jQuery.prototype.ajaxSuccess = function (fn) {
  3167.         /// <summary>
  3168.         ///     Attach a function to be executed whenever an Ajax request completes successfully. This is an Ajax Event.
  3169.         /// </summary>
  3170.         /// <param name="fn" type="Function">
  3171.         ///     The function to be invoked.
  3172.         /// </param>
  3173.         /// <returns type="jQuery" />
  3174.  
  3175.         return this.on(type, fn);
  3176.     };
  3177.     jQuery.prototype.andSelf = function (selector) {
  3178.         /// <summary>
  3179.         ///     Add the previous set of elements on the stack to the current set.
  3180.         /// </summary>
  3181.         /// <returns type="jQuery" />
  3182.  
  3183.         return this.add(selector == null ?
  3184.             this.prevObject : this.prevObject.filter(selector)
  3185.         );
  3186.     };
  3187.     jQuery.prototype.animate = function (prop, speed, easing, callback) {
  3188.         /// <summary>
  3189.         ///     Perform a custom animation of a set of CSS properties.
  3190.         ///      1 - animate(properties, duration, easing, complete) 
  3191.         ///      2 - animate(properties, options)
  3192.         /// </summary>
  3193.         /// <param name="prop" type="PlainObject">
  3194.         ///     An object of CSS properties and values that the animation will move toward.
  3195.         /// </param>
  3196.         /// <param name="speed" type="">
  3197.         ///     A string or number determining how long the animation will run.
  3198.         /// </param>
  3199.         /// <param name="easing" type="String">
  3200.         ///     A string indicating which easing function to use for the transition.
  3201.         /// </param>
  3202.         /// <param name="callback" type="Function">
  3203.         ///     A function to call once the animation is complete.
  3204.         /// </param>
  3205.         /// <returns type="jQuery" />
  3206.  
  3207.         var empty = jQuery.isEmptyObject(prop),
  3208.             optall = jQuery.speed(speed, easing, callback),
  3209.             doAnimation = function () {
  3210.                 // Operate on a copy of prop so per-property easing won't be lost
  3211.                 var anim = Animation(this, jQuery.extend({}, prop), optall);
  3212.                 doAnimation.finish = function () {
  3213.                     anim.stop(true);
  3214.                 };
  3215.                 // Empty animations, or finishing resolves immediately
  3216.                 if (empty || jQuery._data(this, "finish")) {
  3217.                     anim.stop(true);
  3218.                 }
  3219.             };
  3220.         doAnimation.finish = doAnimation;
  3221.  
  3222.         return empty || optall.queue === false ?
  3223.             this.each(doAnimation) :
  3224.             this.queue(optall.queue, doAnimation);
  3225.     };
  3226.     jQuery.prototype.append = function () {
  3227.         /// <summary>
  3228.         ///     Insert content, specified by the parameter, to the end of each element in the set of matched elements.
  3229.         ///      1 - append(content, content) 
  3230.         ///      2 - append(function(index, html))
  3231.         /// </summary>
  3232.         /// <param name="" type="jQuery">
  3233.         ///     DOM element, HTML string, or jQuery object to insert at the end of each element in the set of matched elements.
  3234.         /// </param>
  3235.         /// <param name="" type="jQuery">
  3236.         ///     One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the end of each element in the set of matched elements.
  3237.         /// </param>
  3238.         /// <returns type="jQuery" />
  3239.  
  3240.         return this.domManip(arguments, true, function (elem) {
  3241.             if (this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9) {
  3242.                 this.appendChild(elem);
  3243.             }
  3244.         });
  3245.     };
  3246.     jQuery.prototype.appendTo = function (selector) {
  3247.         /// <summary>
  3248.         ///     Insert every element in the set of matched elements to the end of the target.
  3249.         /// </summary>
  3250.         /// <param name="selector" type="jQuery">
  3251.         ///     A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted at the end of the element(s) specified by this parameter.
  3252.         /// </param>
  3253.         /// <returns type="jQuery" />
  3254.  
  3255.         var elems,
  3256.             i = 0,
  3257.             ret = [],
  3258.             insert = jQuery(selector),
  3259.             last = insert.length - 1;
  3260.  
  3261.         for (; i <= last; i++) {
  3262.             elems = i === last ? this : this.clone(true);
  3263.             jQuery(insert[i])[original](elems);
  3264.  
  3265.             // Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get()
  3266.             core_push.apply(ret, elems.get());
  3267.         }
  3268.  
  3269.         return this.pushStack(ret);
  3270.     };
  3271.     jQuery.prototype.attr = function (name, value) {
  3272.         /// <summary>
  3273.         ///     1: Get the value of an attribute for the first element in the set of matched elements.
  3274.         ///          1.1 - attr(attributeName)
  3275.         ///      2: Set one or more attributes for the set of matched elements.
  3276.         ///          2.1 - attr(attributeName, value) 
  3277.         ///          2.2 - attr(attributes) 
  3278.         ///          2.3 - attr(attributeName, function(index, attr))
  3279.         /// </summary>
  3280.         /// <param name="name" type="String">
  3281.         ///     The name of the attribute to set.
  3282.         /// </param>
  3283.         /// <param name="value" type="Number">
  3284.         ///     A value to set for the attribute.
  3285.         /// </param>
  3286.         /// <returns type="jQuery" />
  3287.  
  3288.         return jQuery.access(this, jQuery.attr, name, value, arguments.length > 1);
  3289.     };
  3290.     jQuery.prototype.before = function () {
  3291.         /// <summary>
  3292.         ///     Insert content, specified by the parameter, before each element in the set of matched elements.
  3293.         ///      1 - before(content, content) 
  3294.         ///      2 - before(function)
  3295.         /// </summary>
  3296.         /// <param name="" type="jQuery">
  3297.         ///     HTML string, DOM element, or jQuery object to insert before each element in the set of matched elements.
  3298.         /// </param>
  3299.         /// <param name="" type="jQuery">
  3300.         ///     One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert before each element in the set of matched elements.
  3301.         /// </param>
  3302.         /// <returns type="jQuery" />
  3303.  
  3304.         return this.domManip(arguments, false, function (elem) {
  3305.             if (this.parentNode) {
  3306.                 this.parentNode.insertBefore(elem, this);
  3307.             }
  3308.         });
  3309.     };
  3310.     jQuery.prototype.bind = function (types, data, fn) {
  3311.         /// <summary>
  3312.         ///     Attach a handler to an event for the elements.
  3313.         ///      1 - bind(eventType, eventData, handler(eventObject)) 
  3314.         ///      2 - bind(eventType, eventData, preventBubble) 
  3315.         ///      3 - bind(events)
  3316.         /// </summary>
  3317.         /// <param name="types" type="String">
  3318.         ///     A string containing one or more DOM event types, such as "click" or "submit," or custom event names.
  3319.         /// </param>
  3320.         /// <param name="data" type="Object">
  3321.         ///     An object containing data that will be passed to the event handler.
  3322.         /// </param>
  3323.         /// <param name="fn" type="Function">
  3324.         ///     A function to execute each time the event is triggered.
  3325.         /// </param>
  3326.         /// <returns type="jQuery" />
  3327.  
  3328.         return this.on(types, null, data, fn);
  3329.     };
  3330.     jQuery.prototype.blur = function (data, fn) {
  3331.         /// <summary>
  3332.         ///     Bind an event handler to the "blur" JavaScript event, or trigger that event on an element.
  3333.         ///      1 - blur(handler(eventObject)) 
  3334.         ///      2 - blur(eventData, handler(eventObject)) 
  3335.         ///      3 - blur()
  3336.         /// </summary>
  3337.         /// <param name="data" type="Object">
  3338.         ///     An object containing data that will be passed to the event handler.
  3339.         /// </param>
  3340.         /// <param name="fn" type="Function">
  3341.         ///     A function to execute each time the event is triggered.
  3342.         /// </param>
  3343.         /// <returns type="jQuery" />
  3344.  
  3345.         return arguments.length > 0 ?
  3346.             this.on(name, null, data, fn) :
  3347.             this.trigger(name);
  3348.     };
  3349.     jQuery.prototype.change = function (data, fn) {
  3350.         /// <summary>
  3351.         ///     Bind an event handler to the "change" JavaScript event, or trigger that event on an element.
  3352.         ///      1 - change(handler(eventObject)) 
  3353.         ///      2 - change(eventData, handler(eventObject)) 
  3354.         ///      3 - change()
  3355.         /// </summary>
  3356.         /// <param name="data" type="Object">
  3357.         ///     An object containing data that will be passed to the event handler.
  3358.         /// </param>
  3359.         /// <param name="fn" type="Function">
  3360.         ///     A function to execute each time the event is triggered.
  3361.         /// </param>
  3362.         /// <returns type="jQuery" />
  3363.  
  3364.         return arguments.length > 0 ?
  3365.             this.on(name, null, data, fn) :
  3366.             this.trigger(name);
  3367.     };
  3368.     jQuery.prototype.children = function (until, selector) {
  3369.         /// <summary>
  3370.         ///     Get the children of each element in the set of matched elements, optionally filtered by a selector.
  3371.         /// </summary>
  3372.         /// <param name="until" type="String">
  3373.         ///     A string containing a selector expression to match elements against.
  3374.         /// </param>
  3375.         /// <returns type="jQuery" />
  3376.  
  3377.         var ret = jQuery.map(this, fn, until);
  3378.  
  3379.         if (!runtil.test(name)) {
  3380.             selector = until;
  3381.         }
  3382.  
  3383.         if (selector && typeof selector === "string") {
  3384.             ret = jQuery.filter(selector, ret);
  3385.         }
  3386.  
  3387.         ret = this.length > 1 && !guaranteedUnique[name] ? jQuery.unique(ret) : ret;
  3388.  
  3389.         if (this.length > 1 && rparentsprev.test(name)) {
  3390.             ret = ret.reverse();
  3391.         }
  3392.  
  3393.         return this.pushStack(ret);
  3394.     };
  3395.     jQuery.prototype.clearQueue = function (type) {
  3396.         /// <summary>
  3397.         ///     Remove from the queue all items that have not yet been run.
  3398.         /// </summary>
  3399.         /// <param name="type" type="String">
  3400.         ///     A string containing the name of the queue. Defaults to fx, the standard effects queue.
  3401.         /// </param>
  3402.         /// <returns type="jQuery" />
  3403.  
  3404.         return this.queue(type || "fx", []);
  3405.     };
  3406.     jQuery.prototype.click = function (data, fn) {
  3407.         /// <summary>
  3408.         ///     Bind an event handler to the "click" JavaScript event, or trigger that event on an element.
  3409.         ///      1 - click(handler(eventObject)) 
  3410.         ///      2 - click(eventData, handler(eventObject)) 
  3411.         ///      3 - click()
  3412.         /// </summary>
  3413.         /// <param name="data" type="Object">
  3414.         ///     An object containing data that will be passed to the event handler.
  3415.         /// </param>
  3416.         /// <param name="fn" type="Function">
  3417.         ///     A function to execute each time the event is triggered.
  3418.         /// </param>
  3419.         /// <returns type="jQuery" />
  3420.  
  3421.         return arguments.length > 0 ?
  3422.             this.on(name, null, data, fn) :
  3423.             this.trigger(name);
  3424.     };
  3425.     jQuery.prototype.clone = function (dataAndEvents, deepDataAndEvents) {
  3426.         /// <summary>
  3427.         ///     Create a deep copy of the set of matched elements.
  3428.         ///      1 - clone(withDataAndEvents) 
  3429.         ///      2 - clone(withDataAndEvents, deepWithDataAndEvents)
  3430.         /// </summary>
  3431.         /// <param name="dataAndEvents" type="Boolean">
  3432.         ///     A Boolean indicating whether event handlers and data should be copied along with the elements. The default value is false. *In jQuery 1.5.0 the default value was incorrectly true; it was changed back to false in 1.5.1 and up.
  3433.         /// </param>
  3434.         /// <param name="deepDataAndEvents" type="Boolean">
  3435.         ///     A Boolean indicating whether event handlers and data for all children of the cloned element should be copied. By default its value matches the first argument's value (which defaults to false).
  3436.         /// </param>
  3437.         /// <returns type="jQuery" />
  3438.  
  3439.         dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
  3440.         deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
  3441.  
  3442.         return this.map(function () {
  3443.             return jQuery.clone(this, dataAndEvents, deepDataAndEvents);
  3444.         });
  3445.     };
  3446.     jQuery.prototype.closest = function (selectors, context) {
  3447.         /// <summary>
  3448.         ///     1: For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
  3449.         ///          1.1 - closest(selector) 
  3450.         ///          1.2 - closest(selector, context) 
  3451.         ///          1.3 - closest(jQuery object) 
  3452.         ///          1.4 - closest(element)
  3453.         ///      2: Get an array of all the elements and selectors matched against the current element up through the DOM tree.
  3454.         ///          2.1 - closest(selectors, context)
  3455.         /// </summary>
  3456.         /// <param name="selectors" type="String">
  3457.         ///     A string containing a selector expression to match elements against.
  3458.         /// </param>
  3459.         /// <param name="context" domElement="true">
  3460.         ///     A DOM element within which a matching element may be found. If no context is passed in then the context of the jQuery set will be used instead.
  3461.         /// </param>
  3462.         /// <returns type="jQuery" />
  3463.  
  3464.         var cur,
  3465.             i = 0,
  3466.             l = this.length,
  3467.             ret = [],
  3468.             pos = rneedsContext.test(selectors) || typeof selectors !== "string" ?
  3469.                 jQuery(selectors, context || this.context) :
  3470.                 0;
  3471.  
  3472.         for (; i < l; i++) {
  3473.             cur = this[i];
  3474.  
  3475.             while (cur && cur.ownerDocument && cur !== context && cur.nodeType !== 11) {
  3476.                 if (pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors)) {
  3477.                     ret.push(cur);
  3478.                     break;
  3479.                 }
  3480.                 cur = cur.parentNode;
  3481.             }
  3482.         }
  3483.  
  3484.         return this.pushStack(ret.length > 1 ? jQuery.unique(ret) : ret);
  3485.     };
  3486.     jQuery.prototype.constructor = function (selector, context) {
  3487.  
  3488.         // The jQuery object is actually just the init constructor 'enhanced'
  3489.         return new jQuery.fn.init(selector, context, rootjQuery);
  3490.     };
  3491.     jQuery.prototype.contents = function (until, selector) {
  3492.         /// <summary>
  3493.         ///     Get the children of each element in the set of matched elements, including text and comment nodes.
  3494.         /// </summary>
  3495.         /// <returns type="jQuery" />
  3496.  
  3497.         var ret = jQuery.map(this, fn, until);
  3498.  
  3499.         if (!runtil.test(name)) {
  3500.             selector = until;
  3501.         }
  3502.  
  3503.         if (selector && typeof selector === "string") {
  3504.             ret = jQuery.filter(selector, ret);
  3505.         }
  3506.  
  3507.         ret = this.length > 1 && !guaranteedUnique[name] ? jQuery.unique(ret) : ret;
  3508.  
  3509.         if (this.length > 1 && rparentsprev.test(name)) {
  3510.             ret = ret.reverse();
  3511.         }
  3512.  
  3513.         return this.pushStack(ret);
  3514.     };
  3515.     jQuery.prototype.contextmenu = function (data, fn) {
  3516.  
  3517.         return arguments.length > 0 ?
  3518.             this.on(name, null, data, fn) :
  3519.             this.trigger(name);
  3520.     };
  3521.     jQuery.prototype.css = function (name, value) {
  3522.         /// <summary>
  3523.         ///     1: Get the value of style properties for the first element in the set of matched elements.
  3524.         ///          1.1 - css(propertyName) 
  3525.         ///          1.2 - css(propertyNames)
  3526.         ///      2: Set one or more CSS properties for the set of matched elements.
  3527.         ///          2.1 - css(propertyName, value) 
  3528.         ///          2.2 - css(propertyName, function(index, value)) 
  3529.         ///          2.3 - css(properties)
  3530.         /// </summary>
  3531.         /// <param name="name" type="String">
  3532.         ///     A CSS property name.
  3533.         /// </param>
  3534.         /// <param name="value" type="Number">
  3535.         ///     A value to set for the property.
  3536.         /// </param>
  3537.         /// <returns type="jQuery" />
  3538.  
  3539.         return jQuery.access(this, function (elem, name, value) {
  3540.             var len, styles,
  3541.                 map = {},
  3542.                 i = 0;
  3543.  
  3544.             if (jQuery.isArray(name)) {
  3545.                 styles = getStyles(elem);
  3546.                 len = name.length;
  3547.  
  3548.                 for (; i < len; i++) {
  3549.                     map[name[i]] = jQuery.css(elem, name[i], false, styles);
  3550.                 }
  3551.  
  3552.                 return map;
  3553.             }
  3554.  
  3555.             return value !== undefined ?
  3556.                 jQuery.style(elem, name, value) :
  3557.                 jQuery.css(elem, name);
  3558.         }, name, value, arguments.length > 1);
  3559.     };
  3560.     jQuery.prototype.data = function (key, value) {
  3561.         /// <summary>
  3562.         ///     1: Store arbitrary data associated with the matched elements.
  3563.         ///          1.1 - data(key, value) 
  3564.         ///          1.2 - data(obj)
  3565.         ///      2: Return the value at the named data store for the first element in the jQuery collection, as set by data(name, value) or by an HTML5 data-* attribute.
  3566.         ///          2.1 - data(key) 
  3567.         ///          2.2 - data()
  3568.         /// </summary>
  3569.         /// <param name="key" type="String">
  3570.         ///     A string naming the piece of data to set.
  3571.         /// </param>
  3572.         /// <param name="value" type="Object">
  3573.         ///     The new data value; it can be any Javascript type including Array or Object.
  3574.         /// </param>
  3575.         /// <returns type="jQuery" />
  3576.  
  3577.         var attrs, name,
  3578.             elem = this[0],
  3579.             i = 0,
  3580.             data = null;
  3581.  
  3582.         // Gets all values
  3583.         if (key === undefined) {
  3584.             if (this.length) {
  3585.                 data = jQuery.data(elem);
  3586.  
  3587.                 if (elem.nodeType === 1 && !jQuery._data(elem, "parsedAttrs")) {
  3588.                     attrs = elem.attributes;
  3589.                     for (; i < attrs.length; i++) {
  3590.                         name = attrs[i].name;
  3591.  
  3592.                         if (!name.indexOf("data-")) {
  3593.                             name = jQuery.camelCase(name.slice(5));
  3594.  
  3595.                             dataAttr(elem, name, data[name]);
  3596.                         }
  3597.                     }
  3598.                     jQuery._data(elem, "parsedAttrs", true);
  3599.                 }
  3600.             }
  3601.  
  3602.             return data;
  3603.         }
  3604.  
  3605.         // Sets multiple values
  3606.         if (typeof key === "object") {
  3607.             return this.each(function () {
  3608.                 jQuery.data(this, key);
  3609.             });
  3610.         }
  3611.  
  3612.         return jQuery.access(this, function (value) {
  3613.  
  3614.             if (value === undefined) {
  3615.                 // Try to fetch any internally stored data first
  3616.                 return elem ? dataAttr(elem, key, jQuery.data(elem, key)) : null;
  3617.             }
  3618.  
  3619.             this.each(function () {
  3620.                 jQuery.data(this, key, value);
  3621.             });
  3622.         }, null, value, arguments.length > 1, null, true);
  3623.     };
  3624.     jQuery.prototype.dblclick = function (data, fn) {
  3625.         /// <summary>
  3626.         ///     Bind an event handler to the "dblclick" JavaScript event, or trigger that event on an element.
  3627.         ///      1 - dblclick(handler(eventObject)) 
  3628.         ///      2 - dblclick(eventData, handler(eventObject)) 
  3629.         ///      3 - dblclick()
  3630.         /// </summary>
  3631.         /// <param name="data" type="Object">
  3632.         ///     An object containing data that will be passed to the event handler.
  3633.         /// </param>
  3634.         /// <param name="fn" type="Function">
  3635.         ///     A function to execute each time the event is triggered.
  3636.         /// </param>
  3637.         /// <returns type="jQuery" />
  3638.  
  3639.         return arguments.length > 0 ?
  3640.             this.on(name, null, data, fn) :
  3641.             this.trigger(name);
  3642.     };
  3643.     jQuery.prototype.delay = function (time, type) {
  3644.         /// <summary>
  3645.         ///     Set a timer to delay execution of subsequent items in the queue.
  3646.         /// </summary>
  3647.         /// <param name="time" type="Number">
  3648.         ///     An integer indicating the number of milliseconds to delay execution of the next item in the queue.
  3649.         /// </param>
  3650.         /// <param name="type" type="String">
  3651.         ///     A string containing the name of the queue. Defaults to fx, the standard effects queue.
  3652.         /// </param>
  3653.         /// <returns type="jQuery" />
  3654.  
  3655.         time = jQuery.fx ? jQuery.fx.speeds[time] || time : time;
  3656.         type = type || "fx";
  3657.  
  3658.         return this.queue(type, function (next, hooks) {
  3659.             var timeout = setTimeout(next, time);
  3660.             hooks.stop = function () {
  3661.                 clearTimeout(timeout);
  3662.             };
  3663.         });
  3664.     };
  3665.     jQuery.prototype.delegate = function (selector, types, data, fn) {
  3666.         /// <summary>
  3667.         ///     Attach a handler to one or more events for all elements that match the selector, now or in the future, based on a specific set of root elements.
  3668.         ///      1 - delegate(selector, eventType, handler(eventObject)) 
  3669.         ///      2 - delegate(selector, eventType, eventData, handler(eventObject)) 
  3670.         ///      3 - delegate(selector, events)
  3671.         /// </summary>
  3672.         /// <param name="selector" type="String">
  3673.         ///     A selector to filter the elements that trigger the event.
  3674.         /// </param>
  3675.         /// <param name="types" type="String">
  3676.         ///     A string containing one or more space-separated JavaScript event types, such as "click" or "keydown," or custom event names.
  3677.         /// </param>
  3678.         /// <param name="data" type="Object">
  3679.         ///     An object containing data that will be passed to the event handler.
  3680.         /// </param>
  3681.         /// <param name="fn" type="Function">
  3682.         ///     A function to execute at the time the event is triggered.
  3683.         /// </param>
  3684.         /// <returns type="jQuery" />
  3685.  
  3686.         return this.on(types, selector, data, fn);
  3687.     };
  3688.     jQuery.prototype.dequeue = function (type) {
  3689.         /// <summary>
  3690.         ///     Execute the next function on the queue for the matched elements.
  3691.         /// </summary>
  3692.         /// <param name="type" type="String">
  3693.         ///     A string containing the name of the queue. Defaults to fx, the standard effects queue.
  3694.         /// </param>
  3695.         /// <returns type="jQuery" />
  3696.  
  3697.         return this.each(function () {
  3698.             jQuery.dequeue(this, type);
  3699.         });
  3700.     };
  3701.     jQuery.prototype.detach = function (selector) {
  3702.         /// <summary>
  3703.         ///     Remove the set of matched elements from the DOM.
  3704.         /// </summary>
  3705.         /// <param name="selector" type="String">
  3706.         ///     A selector expression that filters the set of matched elements to be removed.
  3707.         /// </param>
  3708.         /// <returns type="jQuery" />
  3709.  
  3710.         return this.remove(selector, true);
  3711.     };
  3712.     jQuery.prototype.domManip = function (args, table, callback) {
  3713.  
  3714.  
  3715.         // Flatten any nested arrays
  3716.         args = core_concat.apply([], args);
  3717.  
  3718.         var first, node, hasScripts,
  3719.             scripts, doc, fragment,
  3720.             i = 0,
  3721.             l = this.length,
  3722.             set = this,
  3723.             iNoClone = l - 1,
  3724.             value = args[0],
  3725.             isFunction = jQuery.isFunction(value);
  3726.  
  3727.         // We can't cloneNode fragments that contain checked, in WebKit
  3728.         if (isFunction || !(l <= 1 || typeof value !== "string" || jQuery.support.checkClone || !rchecked.test(value))) {
  3729.             return this.each(function (index) {
  3730.                 var self = set.eq(index);
  3731.                 if (isFunction) {
  3732.                     args[0] = value.call(this, index, table ? self.html() : undefined);
  3733.                 }
  3734.                 self.domManip(args, table, callback);
  3735.             });
  3736.         }
  3737.  
  3738.         if (l) {
  3739.             fragment = jQuery.buildFragment(args, this[0].ownerDocument, false, this);
  3740.             first = fragment.firstChild;
  3741.  
  3742.             if (fragment.childNodes.length === 1) {
  3743.                 fragment = first;
  3744.             }
  3745.  
  3746.             if (first) {
  3747.                 table = table && jQuery.nodeName(first, "tr");
  3748.                 scripts = jQuery.map(getAll(fragment, "script"), disableScript);
  3749.                 hasScripts = scripts.length;
  3750.  
  3751.                 // Use the original fragment for the last item instead of the first because it can end up
  3752.                 // being emptied incorrectly in certain situations (#8070).
  3753.                 for (; i < l; i++) {
  3754.                     node = fragment;
  3755.  
  3756.                     if (i !== iNoClone) {
  3757.                         node = jQuery.clone(node, true, true);
  3758.  
  3759.                         // Keep references to cloned scripts for later restoration
  3760.                         if (hasScripts) {
  3761.                             jQuery.merge(scripts, getAll(node, "script"));
  3762.                         }
  3763.                     }
  3764.  
  3765.                     callback.call(
  3766.                         table && jQuery.nodeName(this[i], "table") ?
  3767.                             findOrAppend(this[i], "tbody") :
  3768.                             this[i],
  3769.                         node,
  3770.                         i
  3771.                     );
  3772.                 }
  3773.  
  3774.                 if (hasScripts) {
  3775.                     doc = scripts[scripts.length - 1].ownerDocument;
  3776.  
  3777.                     // Reenable scripts
  3778.                     jQuery.map(scripts, restoreScript);
  3779.  
  3780.                     // Evaluate executable scripts on first document insertion
  3781.                     for (i = 0; i < hasScripts; i++) {
  3782.                         node = scripts[i];
  3783.                         if (rscriptType.test(node.type || "") &&
  3784.                             !jQuery._data(node, "globalEval") && jQuery.contains(doc, node)) {
  3785.  
  3786.                             if (node.src) {
  3787.                                 // Hope ajax is available...
  3788.                                 jQuery.ajax({
  3789.                                     url: node.src,
  3790.                                     type: "GET",
  3791.                                     dataType: "script",
  3792.                                     async: false,
  3793.                                     global: false,
  3794.                                     "throws": true
  3795.                                 });
  3796.                             } else {
  3797.                                 jQuery.globalEval((node.text || node.textContent || node.innerHTML || "").replace(rcleanScript, ""));
  3798.                             }
  3799.                         }
  3800.                     }
  3801.                 }
  3802.  
  3803.                 // Fix #11809: Avoid leaking memory
  3804.                 fragment = first = null;
  3805.             }
  3806.         }
  3807.  
  3808.         return this;
  3809.     };
  3810.     jQuery.prototype.each = function (callback, args) {
  3811.         /// <summary>
  3812.         ///     Iterate over a jQuery object, executing a function for each matched element.
  3813.         /// </summary>
  3814.         /// <param name="callback" type="Function">
  3815.         ///     A function to execute for each matched element.
  3816.         /// </param>
  3817.         /// <returns type="jQuery" />
  3818.  
  3819.         return jQuery.each(this, callback, args);
  3820.     };
  3821.     jQuery.prototype.empty = function () {
  3822.         /// <summary>
  3823.         ///     Remove all child nodes of the set of matched elements from the DOM.
  3824.         /// </summary>
  3825.         /// <returns type="jQuery" />
  3826.  
  3827.         var elem,
  3828.             i = 0;
  3829.  
  3830.         for (; (elem = this[i]) != null; i++) {
  3831.             // Remove element nodes and prevent memory leaks
  3832.             if (elem.nodeType === 1) {
  3833.                 jQuery.cleanData(getAll(elem, false));
  3834.             }
  3835.  
  3836.             // Remove any remaining nodes
  3837.             while (elem.firstChild) {
  3838.                 elem.removeChild(elem.firstChild);
  3839.             }
  3840.  
  3841.             // If this is a select, ensure that it displays empty (#12336)
  3842.             // Support: IE<9
  3843.             if (elem.options && jQuery.nodeName(elem, "select")) {
  3844.                 elem.options.length = 0;
  3845.             }
  3846.         }
  3847.  
  3848.         return this;
  3849.     };
  3850.     jQuery.prototype.end = function () {
  3851.         /// <summary>
  3852.         ///     End the most recent filtering operation in the current chain and return the set of matched elements to its previous state.
  3853.         /// </summary>
  3854.         /// <returns type="jQuery" />
  3855.  
  3856.         return this.prevObject || this.constructor(null);
  3857.     };
  3858.     jQuery.prototype.eq = function (i) {
  3859.         /// <summary>
  3860.         ///     Reduce the set of matched elements to the one at the specified index.
  3861.         ///      1 - eq(index) 
  3862.         ///      2 - eq(-index)
  3863.         /// </summary>
  3864.         /// <param name="i" type="Number">
  3865.         ///     An integer indicating the 0-based position of the element.
  3866.         /// </param>
  3867.         /// <returns type="jQuery" />
  3868.  
  3869.         var len = this.length,
  3870.             j = +i + (i < 0 ? len : 0);
  3871.         return this.pushStack(j >= 0 && j < len ? [this[j]] : []);
  3872.     };
  3873.     jQuery.prototype.error = function (data, fn) {
  3874.         /// <summary>
  3875.         ///     Bind an event handler to the "error" JavaScript event.
  3876.         ///      1 - error(handler(eventObject)) 
  3877.         ///      2 - error(eventData, handler(eventObject))
  3878.         /// </summary>
  3879.         /// <param name="data" type="Object">
  3880.         ///     An object containing data that will be passed to the event handler.
  3881.         /// </param>
  3882.         /// <param name="fn" type="Function">
  3883.         ///     A function to execute each time the event is triggered.
  3884.         /// </param>
  3885.         /// <returns type="jQuery" />
  3886.  
  3887.         return arguments.length > 0 ?
  3888.             this.on(name, null, data, fn) :
  3889.             this.trigger(name);
  3890.     };
  3891.     jQuery.prototype.extend = function () {
  3892.  
  3893.         var src, copyIsArray, copy, name, options, clone,
  3894.             target = arguments[0] || {},
  3895.             i = 1,
  3896.             length = arguments.length,
  3897.             deep = false;
  3898.  
  3899.         // Handle a deep copy situation
  3900.         if (typeof target === "boolean") {
  3901.             deep = target;
  3902.             target = arguments[1] || {};
  3903.             // skip the boolean and the target
  3904.             i = 2;
  3905.         }
  3906.  
  3907.         // Handle case when target is a string or something (possible in deep copy)
  3908.         if (typeof target !== "object" && !jQuery.isFunction(target)) {
  3909.             target = {};
  3910.         }
  3911.  
  3912.         // extend jQuery itself if only one argument is passed
  3913.         if (length === i) {
  3914.             target = this;
  3915.             --i;
  3916.         }
  3917.  
  3918.         for (; i < length; i++) {
  3919.             // Only deal with non-null/undefined values
  3920.             if ((options = arguments[i]) != null) {
  3921.                 // Extend the base object
  3922.                 for (name in options) {
  3923.                     src = target[name];
  3924.                     copy = options[name];
  3925.  
  3926.                     // Prevent never-ending loop
  3927.                     if (target === copy) {
  3928.                         continue;
  3929.                     }
  3930.  
  3931.                     // Recurse if we're merging plain objects or arrays
  3932.                     if (deep && copy && (jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)))) {
  3933.                         if (copyIsArray) {
  3934.                             copyIsArray = false;
  3935.                             clone = src && jQuery.isArray(src) ? src : [];
  3936.  
  3937.                         } else {
  3938.                             clone = src && jQuery.isPlainObject(src) ? src : {};
  3939.                         }
  3940.  
  3941.                         // Never move original objects, clone them
  3942.                         target[name] = jQuery.extend(deep, clone, copy);
  3943.  
  3944.                         // Don't bring in undefined values
  3945.                     } else if (copy !== undefined) {
  3946.                         target[name] = copy;
  3947.                     }
  3948.                 }
  3949.             }
  3950.         }
  3951.  
  3952.         // Return the modified object
  3953.         return target;
  3954.     };
  3955.     jQuery.prototype.fadeIn = function (speed, easing, callback) {
  3956.         /// <summary>
  3957.         ///     Display the matched elements by fading them to opaque.
  3958.         ///      1 - fadeIn(duration, complete) 
  3959.         ///      2 - fadeIn(options) 
  3960.         ///      3 - fadeIn(duration, easing, complete)
  3961.         /// </summary>
  3962.         /// <param name="speed" type="">
  3963.         ///     A string or number determining how long the animation will run.
  3964.         /// </param>
  3965.         /// <param name="easing" type="String">
  3966.         ///     A string indicating which easing function to use for the transition.
  3967.         /// </param>
  3968.         /// <param name="callback" type="Function">
  3969.         ///     A function to call once the animation is complete.
  3970.         /// </param>
  3971.         /// <returns type="jQuery" />
  3972.  
  3973.         return this.animate(props, speed, easing, callback);
  3974.     };
  3975.     jQuery.prototype.fadeOut = function (speed, easing, callback) {
  3976.         /// <summary>
  3977.         ///     Hide the matched elements by fading them to transparent.
  3978.         ///      1 - fadeOut(duration, complete) 
  3979.         ///      2 - fadeOut(options) 
  3980.         ///      3 - fadeOut(duration, easing, complete)
  3981.         /// </summary>
  3982.         /// <param name="speed" type="">
  3983.         ///     A string or number determining how long the animation will run.
  3984.         /// </param>
  3985.         /// <param name="easing" type="String">
  3986.         ///     A string indicating which easing function to use for the transition.
  3987.         /// </param>
  3988.         /// <param name="callback" type="Function">
  3989.         ///     A function to call once the animation is complete.
  3990.         /// </param>
  3991.         /// <returns type="jQuery" />
  3992.  
  3993.         return this.animate(props, speed, easing, callback);
  3994.     };
  3995.     jQuery.prototype.fadeTo = function (speed, to, easing, callback) {
  3996.         /// <summary>
  3997.         ///     Adjust the opacity of the matched elements.
  3998.         ///      1 - fadeTo(duration, opacity, complete) 
  3999.         ///      2 - fadeTo(duration, opacity, easing, complete)
  4000.         /// </summary>
  4001.         /// <param name="speed" type="Number">
  4002.         ///     A string or number determining how long the animation will run.
  4003.         /// </param>
  4004.         /// <param name="to" type="Number">
  4005.         ///     A number between 0 and 1 denoting the target opacity.
  4006.         /// </param>
  4007.         /// <param name="easing" type="String">
  4008.         ///     A string indicating which easing function to use for the transition.
  4009.         /// </param>
  4010.         /// <param name="callback" type="Function">
  4011.         ///     A function to call once the animation is complete.
  4012.         /// </param>
  4013.         /// <returns type="jQuery" />
  4014.  
  4015.  
  4016.         // show any hidden elements after setting opacity to 0
  4017.         return this.filter(isHidden).css("opacity", 0).show()
  4018.  
  4019.             // animate to the value specified
  4020.             .end().animate({ opacity: to }, speed, easing, callback);
  4021.     };
  4022.     jQuery.prototype.fadeToggle = function (speed, easing, callback) {
  4023.         /// <summary>
  4024.         ///     Display or hide the matched elements by animating their opacity.
  4025.         ///      1 - fadeToggle(duration, easing, complete) 
  4026.         ///      2 - fadeToggle(options)
  4027.         /// </summary>
  4028.         /// <param name="speed" type="">
  4029.         ///     A string or number determining how long the animation will run.
  4030.         /// </param>
  4031.         /// <param name="easing" type="String">
  4032.         ///     A string indicating which easing function to use for the transition.
  4033.         /// </param>
  4034.         /// <param name="callback" type="Function">
  4035.         ///     A function to call once the animation is complete.
  4036.         /// </param>
  4037.         /// <returns type="jQuery" />
  4038.  
  4039.         return this.animate(props, speed, easing, callback);
  4040.     };
  4041.     jQuery.prototype.filter = function (selector) {
  4042.         /// <summary>
  4043.         ///     Reduce the set of matched elements to those that match the selector or pass the function's test.
  4044.         ///      1 - filter(selector) 
  4045.         ///      2 - filter(function(index)) 
  4046.         ///      3 - filter(element) 
  4047.         ///      4 - filter(jQuery object)
  4048.         /// </summary>
  4049.         /// <param name="selector" type="String">
  4050.         ///     A string containing a selector expression to match the current set of elements against.
  4051.         /// </param>
  4052.         /// <returns type="jQuery" />
  4053.  
  4054.         return this.pushStack(winnow(this, selector, true));
  4055.     };
  4056.     jQuery.prototype.find = function (selector) {
  4057.         /// <summary>
  4058.         ///     Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.
  4059.         ///      1 - find(selector) 
  4060.         ///      2 - find(jQuery object) 
  4061.         ///      3 - find(element)
  4062.         /// </summary>
  4063.         /// <param name="selector" type="String">
  4064.         ///     A string containing a selector expression to match elements against.
  4065.         /// </param>
  4066.         /// <returns type="jQuery" />
  4067.  
  4068.         var i, ret, self,
  4069.             len = this.length;
  4070.  
  4071.         if (typeof selector !== "string") {
  4072.             self = this;
  4073.             return this.pushStack(jQuery(selector).filter(function () {
  4074.                 for (i = 0; i < len; i++) {
  4075.                     if (jQuery.contains(self[i], this)) {
  4076.                         return true;
  4077.                     }
  4078.                 }
  4079.             }));
  4080.         }
  4081.  
  4082.         ret = [];
  4083.         for (i = 0; i < len; i++) {
  4084.             jQuery.find(selector, this[i], ret);
  4085.         }
  4086.  
  4087.         // Needed because $( selector, context ) becomes $( context ).find( selector )
  4088.         ret = this.pushStack(len > 1 ? jQuery.unique(ret) : ret);
  4089.         ret.selector = (this.selector ? this.selector + " " : "") + selector;
  4090.         return ret;
  4091.     };
  4092.     jQuery.prototype.finish = function (type) {
  4093.         /// <summary>
  4094.         ///     Stop the currently-running animation, remove all queued animations, and complete all animations for the matched elements.
  4095.         /// </summary>
  4096.         /// <param name="type" type="String">
  4097.         ///     The name of the queue in which to stop animations.
  4098.         /// </param>
  4099.         /// <returns type="jQuery" />
  4100.  
  4101.         if (type !== false) {
  4102.             type = type || "fx";
  4103.         }
  4104.         return this.each(function () {
  4105.             var index,
  4106.                 data = jQuery._data(this),
  4107.                 queue = data[type + "queue"],
  4108.                 hooks = data[type + "queueHooks"],
  4109.                 timers = jQuery.timers,
  4110.                 length = queue ? queue.length : 0;
  4111.  
  4112.             // enable finishing flag on private data
  4113.             data.finish = true;
  4114.  
  4115.             // empty the queue first
  4116.             jQuery.queue(this, type, []);
  4117.  
  4118.             if (hooks && hooks.cur && hooks.cur.finish) {
  4119.                 hooks.cur.finish.call(this);
  4120.             }
  4121.  
  4122.             // look for any active animations, and finish them
  4123.             for (index = timers.length; index--;) {
  4124.                 if (timers[index].elem === this && timers[index].queue === type) {
  4125.                     timers[index].anim.stop(true);
  4126.                     timers.splice(index, 1);
  4127.                 }
  4128.             }
  4129.  
  4130.             // look for any animations in the old queue and finish them
  4131.             for (index = 0; index < length; index++) {
  4132.                 if (queue[index] && queue[index].finish) {
  4133.                     queue[index].finish.call(this);
  4134.                 }
  4135.             }
  4136.  
  4137.             // turn off finishing flag
  4138.             delete data.finish;
  4139.         });
  4140.     };
  4141.     jQuery.prototype.first = function () {
  4142.         /// <summary>
  4143.         ///     Reduce the set of matched elements to the first in the set.
  4144.         /// </summary>
  4145.         /// <returns type="jQuery" />
  4146.  
  4147.         return this.eq(0);
  4148.     };
  4149.     jQuery.prototype.focus = function (data, fn) {
  4150.         /// <summary>
  4151.         ///     Bind an event handler to the "focus" JavaScript event, or trigger that event on an element.
  4152.         ///      1 - focus(handler(eventObject)) 
  4153.         ///      2 - focus(eventData, handler(eventObject)) 
  4154.         ///      3 - focus()
  4155.         /// </summary>
  4156.         /// <param name="data" type="Object">
  4157.         ///     An object containing data that will be passed to the event handler.
  4158.         /// </param>
  4159.         /// <param name="fn" type="Function">
  4160.         ///     A function to execute each time the event is triggered.
  4161.         /// </param>
  4162.         /// <returns type="jQuery" />
  4163.  
  4164.         return arguments.length > 0 ?
  4165.             this.on(name, null, data, fn) :
  4166.             this.trigger(name);
  4167.     };
  4168.     jQuery.prototype.focusin = function (data, fn) {
  4169.         /// <summary>
  4170.         ///     Bind an event handler to the "focusin" event.
  4171.         ///      1 - focusin(handler(eventObject)) 
  4172.         ///      2 - focusin(eventData, handler(eventObject))
  4173.         /// </summary>
  4174.         /// <param name="data" type="Object">
  4175.         ///     An object containing data that will be passed to the event handler.
  4176.         /// </param>
  4177.         /// <param name="fn" type="Function">
  4178.         ///     A function to execute each time the event is triggered.
  4179.         /// </param>
  4180.         /// <returns type="jQuery" />
  4181.  
  4182.         return arguments.length > 0 ?
  4183.             this.on(name, null, data, fn) :
  4184.             this.trigger(name);
  4185.     };
  4186.     jQuery.prototype.focusout = function (data, fn) {
  4187.         /// <summary>
  4188.         ///     Bind an event handler to the "focusout" JavaScript event.
  4189.         ///      1 - focusout(handler(eventObject)) 
  4190.         ///      2 - focusout(eventData, handler(eventObject))
  4191.         /// </summary>
  4192.         /// <param name="data" type="Object">
  4193.         ///     An object containing data that will be passed to the event handler.
  4194.         /// </param>
  4195.         /// <param name="fn" type="Function">
  4196.         ///     A function to execute each time the event is triggered.
  4197.         /// </param>
  4198.         /// <returns type="jQuery" />
  4199.  
  4200.         return arguments.length > 0 ?
  4201.             this.on(name, null, data, fn) :
  4202.             this.trigger(name);
  4203.     };
  4204.     jQuery.prototype.get = function (num) {
  4205.         /// <summary>
  4206.         ///     Retrieve the DOM elements matched by the jQuery object.
  4207.         /// </summary>
  4208.         /// <param name="num" type="Number">
  4209.         ///     A zero-based integer indicating which element to retrieve.
  4210.         /// </param>
  4211.         /// <returns type="Array" />
  4212.  
  4213.         return num == null ?
  4214.  
  4215.             // Return a 'clean' array
  4216.             this.toArray() :
  4217.  
  4218.             // Return just the object
  4219.             (num < 0 ? this[this.length + num] : this[num]);
  4220.     };
  4221.     jQuery.prototype.has = function (target) {
  4222.         /// <summary>
  4223.         ///     Reduce the set of matched elements to those that have a descendant that matches the selector or DOM element.
  4224.         ///      1 - has(selector) 
  4225.         ///      2 - has(contained)
  4226.         /// </summary>
  4227.         /// <param name="target" type="String">
  4228.         ///     A string containing a selector expression to match elements against.
  4229.         /// </param>
  4230.         /// <returns type="jQuery" />
  4231.  
  4232.         var i,
  4233.             targets = jQuery(target, this),
  4234.             len = targets.length;
  4235.  
  4236.         return this.filter(function () {
  4237.             for (i = 0; i < len; i++) {
  4238.                 if (jQuery.contains(this, targets[i])) {
  4239.                     return true;
  4240.                 }
  4241.             }
  4242.         });
  4243.     };
  4244.     jQuery.prototype.hasClass = function (selector) {
  4245.         /// <summary>
  4246.         ///     Determine whether any of the matched elements are assigned the given class.
  4247.         /// </summary>
  4248.         /// <param name="selector" type="String">
  4249.         ///     The class name to search for.
  4250.         /// </param>
  4251.         /// <returns type="Boolean" />
  4252.  
  4253.         var className = " " + selector + " ",
  4254.             i = 0,
  4255.             l = this.length;
  4256.         for (; i < l; i++) {
  4257.             if (this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf(className) >= 0) {
  4258.                 return true;
  4259.             }
  4260.         }
  4261.  
  4262.         return false;
  4263.     };
  4264.     jQuery.prototype.height = function (margin, value) {
  4265.         /// <summary>
  4266.         ///     1: Get the current computed height for the first element in the set of matched elements.
  4267.         ///          1.1 - height()
  4268.         ///      2: Set the CSS height of every matched element.
  4269.         ///          2.1 - height(value) 
  4270.         ///          2.2 - height(function(index, height))
  4271.         /// </summary>
  4272.         /// <param name="margin" type="Number">
  4273.         ///     An integer representing the number of pixels, or an integer with an optional unit of measure appended (as a string).
  4274.         /// </param>
  4275.         /// <returns type="jQuery" />
  4276.  
  4277.         var chainable = arguments.length && (defaultExtra || typeof margin !== "boolean"),
  4278.             extra = defaultExtra || (margin === true || value === true ? "margin" : "border");
  4279.  
  4280.         return jQuery.access(this, function (elem, type, value) {
  4281.             var doc;
  4282.  
  4283.             if (jQuery.isWindow(elem)) {
  4284.                 // As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there
  4285.                 // isn't a whole lot we can do. See pull request at this URL for discussion:
  4286.                 // https://github.com/jquery/jquery/pull/764
  4287.                 return elem.document.documentElement["client" + name];
  4288.             }
  4289.  
  4290.             // Get document width or height
  4291.             if (elem.nodeType === 9) {
  4292.                 doc = elem.documentElement;
  4293.  
  4294.                 // Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], whichever is greatest
  4295.                 // unfortunately, this causes bug #3838 in IE6/8 only, but there is currently no good, small way to fix it.
  4296.                 return Math.max(
  4297.                     elem.body["scroll" + name], doc["scroll" + name],
  4298.                     elem.body["offset" + name], doc["offset" + name],
  4299.                     doc["client" + name]
  4300.                 );
  4301.             }
  4302.  
  4303.             return value === undefined ?
  4304.                 // Get width or height on the element, requesting but not forcing parseFloat
  4305.                 jQuery.css(elem, type, extra) :
  4306.  
  4307.                 // Set width or height on the element
  4308.                 jQuery.style(elem, type, value, extra);
  4309.         }, type, chainable ? margin : undefined, chainable, null);
  4310.     };
  4311.     jQuery.prototype.hide = function (speed, easing, callback) {
  4312.         /// <summary>
  4313.         ///     Hide the matched elements.
  4314.         ///      1 - hide() 
  4315.         ///      2 - hide(duration, complete) 
  4316.         ///      3 - hide(options) 
  4317.         ///      4 - hide(duration, easing, complete)
  4318.         /// </summary>
  4319.         /// <param name="speed" type="">
  4320.         ///     A string or number determining how long the animation will run.
  4321.         /// </param>
  4322.         /// <param name="easing" type="String">
  4323.         ///     A string indicating which easing function to use for the transition.
  4324.         /// </param>
  4325.         /// <param name="callback" type="Function">
  4326.         ///     A function to call once the animation is complete.
  4327.         /// </param>
  4328.         /// <returns type="jQuery" />
  4329.  
  4330.         return speed == null || typeof speed === "boolean" ?
  4331.             cssFn.apply(this, arguments) :
  4332.             this.animate(genFx(name, true), speed, easing, callback);
  4333.     };
  4334.     jQuery.prototype.hover = function (fnOver, fnOut) {
  4335.         /// <summary>
  4336.         ///     1: Bind two handlers to the matched elements, to be executed when the mouse pointer enters and leaves the elements.
  4337.         ///          1.1 - hover(handlerIn(eventObject), handlerOut(eventObject))
  4338.         ///      2: Bind a single handler to the matched elements, to be executed when the mouse pointer enters or leaves the elements.
  4339.         ///          2.1 - hover(handlerInOut(eventObject))
  4340.         /// </summary>
  4341.         /// <param name="fnOver" type="Function">
  4342.         ///     A function to execute when the mouse pointer enters the element.
  4343.         /// </param>
  4344.         /// <param name="fnOut" type="Function">
  4345.         ///     A function to execute when the mouse pointer leaves the element.
  4346.         /// </param>
  4347.         /// <returns type="jQuery" />
  4348.  
  4349.         return this.mouseenter(fnOver).mouseleave(fnOut || fnOver);
  4350.     };
  4351.     jQuery.prototype.html = function (value) {
  4352.         /// <summary>
  4353.         ///     1: Get the HTML contents of the first element in the set of matched elements.
  4354.         ///          1.1 - html()
  4355.         ///      2: Set the HTML contents of each element in the set of matched elements.
  4356.         ///          2.1 - html(htmlString) 
  4357.         ///          2.2 - html(function(index, oldhtml))
  4358.         /// </summary>
  4359.         /// <param name="value" type="String">
  4360.         ///     A string of HTML to set as the content of each matched element.
  4361.         /// </param>
  4362.         /// <returns type="jQuery" />
  4363.  
  4364.         return jQuery.access(this, function (value) {
  4365.             var elem = this[0] || {},
  4366.                 i = 0,
  4367.                 l = this.length;
  4368.  
  4369.             if (value === undefined) {
  4370.                 return elem.nodeType === 1 ?
  4371.                     elem.innerHTML.replace(rinlinejQuery, "") :
  4372.                     undefined;
  4373.             }
  4374.  
  4375.             // See if we can take a shortcut and just use innerHTML
  4376.             if (typeof value === "string" && !rnoInnerhtml.test(value) &&
  4377.                 (jQuery.support.htmlSerialize || !rnoshimcache.test(value)) &&
  4378.                 (jQuery.support.leadingWhitespace || !rleadingWhitespace.test(value)) &&
  4379.                 !wrapMap[(rtagName.exec(value) || ["", ""])[1].toLowerCase()]) {
  4380.  
  4381.                 value = value.replace(rxhtmlTag, "<$1></$2>");
  4382.  
  4383.                 try {
  4384.                     for (; i < l; i++) {
  4385.                         // Remove element nodes and prevent memory leaks
  4386.                         elem = this[i] || {};
  4387.                         if (elem.nodeType === 1) {
  4388.                             jQuery.cleanData(getAll(elem, false));
  4389.                             elem.innerHTML = value;
  4390.                         }
  4391.                     }
  4392.  
  4393.                     elem = 0;
  4394.  
  4395.                     // If using innerHTML throws an exception, use the fallback method
  4396.                 } catch (e) { }
  4397.             }
  4398.  
  4399.             if (elem) {
  4400.                 this.empty().append(value);
  4401.             }
  4402.         }, null, value, arguments.length);
  4403.     };
  4404.     jQuery.prototype.index = function (elem) {
  4405.         /// <summary>
  4406.         ///     Search for a given element from among the matched elements.
  4407.         ///      1 - index() 
  4408.         ///      2 - index(selector) 
  4409.         ///      3 - index(element)
  4410.         /// </summary>
  4411.         /// <param name="elem" type="String">
  4412.         ///     A selector representing a jQuery collection in which to look for an element.
  4413.         /// </param>
  4414.         /// <returns type="Number" />
  4415.  
  4416.  
  4417.         // No argument, return index in parent
  4418.         if (!elem) {
  4419.             return (this[0] && this[0].parentNode) ? this.first().prevAll().length : -1;
  4420.         }
  4421.  
  4422.         // index in selector
  4423.         if (typeof elem === "string") {
  4424.             return jQuery.inArray(this[0], jQuery(elem));
  4425.         }
  4426.  
  4427.         // Locate the position of the desired element
  4428.         return jQuery.inArray(
  4429.             // If it receives a jQuery object, the first element is used
  4430.             elem.jquery ? elem[0] : elem, this);
  4431.     };
  4432.     jQuery.prototype.init = function (selector, context, rootjQuery) {
  4433.  
  4434.         var match, elem;
  4435.  
  4436.         // HANDLE: $(""), $(null), $(undefined), $(false)
  4437.         if (!selector) {
  4438.             return this;
  4439.         }
  4440.  
  4441.         // Handle HTML strings
  4442.         if (typeof selector === "string") {
  4443.             if (selector.charAt(0) === "<" && selector.charAt(selector.length - 1) === ">" && selector.length >= 3) {
  4444.                 // Assume that strings that start and end with <> are HTML and skip the regex check
  4445.                 match = [null, selector, null];
  4446.  
  4447.             } else {
  4448.                 match = rquickExpr.exec(selector);
  4449.             }
  4450.  
  4451.             // Match html or make sure no context is specified for #id
  4452.             if (match && (match[1] || !context)) {
  4453.  
  4454.                 // HANDLE: $(html) -> $(array)
  4455.                 if (match[1]) {
  4456.                     context = context instanceof jQuery ? context[0] : context;
  4457.  
  4458.                     // scripts is true for back-compat
  4459.                     jQuery.merge(this, jQuery.parseHTML(
  4460.                         match[1],
  4461.                         context && context.nodeType ? context.ownerDocument || context : document,
  4462.                         true
  4463.                     ));
  4464.  
  4465.                     // HANDLE: $(html, props)
  4466.                     if (rsingleTag.test(match[1]) && jQuery.isPlainObject(context)) {
  4467.                         for (match in context) {
  4468.                             // Properties of context are called as methods if possible
  4469.                             if (jQuery.isFunction(this[match])) {
  4470.                                 this[match](context[match]);
  4471.  
  4472.                                 // ...and otherwise set as attributes
  4473.                             } else {
  4474.                                 this.attr(match, context[match]);
  4475.                             }
  4476.                         }
  4477.                     }
  4478.  
  4479.                     return this;
  4480.  
  4481.                     // HANDLE: $(#id)
  4482.                 } else {
  4483.                     elem = document.getElementById(match[2]);
  4484.  
  4485.                     // Check parentNode to catch when Blackberry 4.6 returns
  4486.                     // nodes that are no longer in the document #6963
  4487.                     if (elem && elem.parentNode) {
  4488.                         // Handle the case where IE and Opera return items
  4489.                         // by name instead of ID
  4490.                         if (elem.id !== match[2]) {
  4491.                             return rootjQuery.find(selector);
  4492.                         }
  4493.  
  4494.                         // Otherwise, we inject the element directly into the jQuery object
  4495.                         this.length = 1;
  4496.                         this[0] = elem;
  4497.                     }
  4498.  
  4499.                     this.context = document;
  4500.                     this.selector = selector;
  4501.                     return this;
  4502.                 }
  4503.  
  4504.                 // HANDLE: $(expr, $(...))
  4505.             } else if (!context || context.jquery) {
  4506.                 return (context || rootjQuery).find(selector);
  4507.  
  4508.                 // HANDLE: $(expr, context)
  4509.                 // (which is just equivalent to: $(context).find(expr)
  4510.             } else {
  4511.                 return this.constructor(context).find(selector);
  4512.             }
  4513.  
  4514.             // HANDLE: $(DOMElement)
  4515.         } else if (selector.nodeType) {
  4516.             this.context = this[0] = selector;
  4517.             this.length = 1;
  4518.             return this;
  4519.  
  4520.             // HANDLE: $(function)
  4521.             // Shortcut for document ready
  4522.         } else if (jQuery.isFunction(selector)) {
  4523.             return rootjQuery.ready(selector);
  4524.         }
  4525.  
  4526.         if (selector.selector !== undefined) {
  4527.             this.selector = selector.selector;
  4528.             this.context = selector.context;
  4529.         }
  4530.  
  4531.         return jQuery.makeArray(selector, this);
  4532.     };
  4533.     jQuery.prototype.innerHeight = function (margin, value) {
  4534.         /// <summary>
  4535.         ///     Get the current computed height for the first element in the set of matched elements, including padding but not border.
  4536.         /// </summary>
  4537.         /// <returns type="Number" />
  4538.  
  4539.         var chainable = arguments.length && (defaultExtra || typeof margin !== "boolean"),
  4540.             extra = defaultExtra || (margin === true || value === true ? "margin" : "border");
  4541.  
  4542.         return jQuery.access(this, function (elem, type, value) {
  4543.             var doc;
  4544.  
  4545.             if (jQuery.isWindow(elem)) {
  4546.                 // As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there
  4547.                 // isn't a whole lot we can do. See pull request at this URL for discussion:
  4548.                 // https://github.com/jquery/jquery/pull/764
  4549.                 return elem.document.documentElement["client" + name];
  4550.             }
  4551.  
  4552.             // Get document width or height
  4553.             if (elem.nodeType === 9) {
  4554.                 doc = elem.documentElement;
  4555.  
  4556.                 // Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], whichever is greatest
  4557.                 // unfortunately, this causes bug #3838 in IE6/8 only, but there is currently no good, small way to fix it.
  4558.                 return Math.max(
  4559.                     elem.body["scroll" + name], doc["scroll" + name],
  4560.                     elem.body["offset" + name], doc["offset" + name],
  4561.                     doc["client" + name]
  4562.                 );
  4563.             }
  4564.  
  4565.             return value === undefined ?
  4566.                 // Get width or height on the element, requesting but not forcing parseFloat
  4567.                 jQuery.css(elem, type, extra) :
  4568.  
  4569.                 // Set width or height on the element
  4570.                 jQuery.style(elem, type, value, extra);
  4571.         }, type, chainable ? margin : undefined, chainable, null);
  4572.     };
  4573.     jQuery.prototype.innerWidth = function (margin, value) {
  4574.         /// <summary>
  4575.         ///     Get the current computed width for the first element in the set of matched elements, including padding but not border.
  4576.         /// </summary>
  4577.         /// <returns type="Number" />
  4578.  
  4579.         var chainable = arguments.length && (defaultExtra || typeof margin !== "boolean"),
  4580.             extra = defaultExtra || (margin === true || value === true ? "margin" : "border");
  4581.  
  4582.         return jQuery.access(this, function (elem, type, value) {
  4583.             var doc;
  4584.  
  4585.             if (jQuery.isWindow(elem)) {
  4586.                 // As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there
  4587.                 // isn't a whole lot we can do. See pull request at this URL for discussion:
  4588.                 // https://github.com/jquery/jquery/pull/764
  4589.                 return elem.document.documentElement["client" + name];
  4590.             }
  4591.  
  4592.             // Get document width or height
  4593.             if (elem.nodeType === 9) {
  4594.                 doc = elem.documentElement;
  4595.  
  4596.                 // Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], whichever is greatest
  4597.                 // unfortunately, this causes bug #3838 in IE6/8 only, but there is currently no good, small way to fix it.
  4598.                 return Math.max(
  4599.                     elem.body["scroll" + name], doc["scroll" + name],
  4600.                     elem.body["offset" + name], doc["offset" + name],
  4601.                     doc["client" + name]
  4602.                 );
  4603.             }
  4604.  
  4605.             return value === undefined ?
  4606.                 // Get width or height on the element, requesting but not forcing parseFloat
  4607.                 jQuery.css(elem, type, extra) :
  4608.  
  4609.                 // Set width or height on the element
  4610.                 jQuery.style(elem, type, value, extra);
  4611.         }, type, chainable ? margin : undefined, chainable, null);
  4612.     };
  4613.     jQuery.prototype.insertAfter = function (selector) {
  4614.         /// <summary>
  4615.         ///     Insert every element in the set of matched elements after the target.
  4616.         /// </summary>
  4617.         /// <param name="selector" type="jQuery">
  4618.         ///     A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted after the element(s) specified by this parameter.
  4619.         /// </param>
  4620.         /// <returns type="jQuery" />
  4621.  
  4622.         var elems,
  4623.             i = 0,
  4624.             ret = [],
  4625.             insert = jQuery(selector),
  4626.             last = insert.length - 1;
  4627.  
  4628.         for (; i <= last; i++) {
  4629.             elems = i === last ? this : this.clone(true);
  4630.             jQuery(insert[i])[original](elems);
  4631.  
  4632.             // Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get()
  4633.             core_push.apply(ret, elems.get());
  4634.         }
  4635.  
  4636.         return this.pushStack(ret);
  4637.     };
  4638.     jQuery.prototype.insertBefore = function (selector) {
  4639.         /// <summary>
  4640.         ///     Insert every element in the set of matched elements before the target.
  4641.         /// </summary>
  4642.         /// <param name="selector" type="jQuery">
  4643.         ///     A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted before the element(s) specified by this parameter.
  4644.         /// </param>
  4645.         /// <returns type="jQuery" />
  4646.  
  4647.         var elems,
  4648.             i = 0,
  4649.             ret = [],
  4650.             insert = jQuery(selector),
  4651.             last = insert.length - 1;
  4652.  
  4653.         for (; i <= last; i++) {
  4654.             elems = i === last ? this : this.clone(true);
  4655.             jQuery(insert[i])[original](elems);
  4656.  
  4657.             // Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get()
  4658.             core_push.apply(ret, elems.get());
  4659.         }
  4660.  
  4661.         return this.pushStack(ret);
  4662.     };
  4663.     jQuery.prototype.is = function (selector) {
  4664.         /// <summary>
  4665.         ///     Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments.
  4666.         ///      1 - is(selector) 
  4667.         ///      2 - is(function(index)) 
  4668.         ///      3 - is(jQuery object) 
  4669.         ///      4 - is(element)
  4670.         /// </summary>
  4671.         /// <param name="selector" type="String">
  4672.         ///     A string containing a selector expression to match elements against.
  4673.         /// </param>
  4674.         /// <returns type="Boolean" />
  4675.  
  4676.         return !!selector && (
  4677.             typeof selector === "string" ?
  4678.                 // If this is a positional/relative selector, check membership in the returned set
  4679.                 // so $("p:first").is("p:last") won't return true for a doc with two "p".
  4680.                 rneedsContext.test(selector) ?
  4681.                     jQuery(selector, this.context).index(this[0]) >= 0 :
  4682.                     jQuery.filter(selector, this).length > 0 :
  4683.                 this.filter(selector).length > 0);
  4684.     };
  4685.     jQuery.prototype.keydown = function (data, fn) {
  4686.         /// <summary>
  4687.         ///     Bind an event handler to the "keydown" JavaScript event, or trigger that event on an element.
  4688.         ///      1 - keydown(handler(eventObject)) 
  4689.         ///      2 - keydown(eventData, handler(eventObject)) 
  4690.         ///      3 - keydown()
  4691.         /// </summary>
  4692.         /// <param name="data" type="PlainObject">
  4693.         ///     An object containing data that will be passed to the event handler.
  4694.         /// </param>
  4695.         /// <param name="fn" type="Function">
  4696.         ///     A function to execute each time the event is triggered.
  4697.         /// </param>
  4698.         /// <returns type="jQuery" />
  4699.  
  4700.         return arguments.length > 0 ?
  4701.             this.on(name, null, data, fn) :
  4702.             this.trigger(name);
  4703.     };
  4704.     jQuery.prototype.keypress = function (data, fn) {
  4705.         /// <summary>
  4706.         ///     Bind an event handler to the "keypress" JavaScript event, or trigger that event on an element.
  4707.         ///      1 - keypress(handler(eventObject)) 
  4708.         ///      2 - keypress(eventData, handler(eventObject)) 
  4709.         ///      3 - keypress()
  4710.         /// </summary>
  4711.         /// <param name="data" type="PlainObject">
  4712.         ///     An object containing data that will be passed to the event handler.
  4713.         /// </param>
  4714.         /// <param name="fn" type="Function">
  4715.         ///     A function to execute each time the event is triggered.
  4716.         /// </param>
  4717.         /// <returns type="jQuery" />
  4718.  
  4719.         return arguments.length > 0 ?
  4720.             this.on(name, null, data, fn) :
  4721.             this.trigger(name);
  4722.     };
  4723.     jQuery.prototype.keyup = function (data, fn) {
  4724.         /// <summary>
  4725.         ///     Bind an event handler to the "keyup" JavaScript event, or trigger that event on an element.
  4726.         ///      1 - keyup(handler(eventObject)) 
  4727.         ///      2 - keyup(eventData, handler(eventObject)) 
  4728.         ///      3 - keyup()
  4729.         /// </summary>
  4730.         /// <param name="data" type="PlainObject">
  4731.         ///     An object containing data that will be passed to the event handler.
  4732.         /// </param>
  4733.         /// <param name="fn" type="Function">
  4734.         ///     A function to execute each time the event is triggered.
  4735.         /// </param>
  4736.         /// <returns type="jQuery" />
  4737.  
  4738.         return arguments.length > 0 ?
  4739.             this.on(name, null, data, fn) :
  4740.             this.trigger(name);
  4741.     };
  4742.     jQuery.prototype.last = function () {
  4743.         /// <summary>
  4744.         ///     Reduce the set of matched elements to the final one in the set.
  4745.         /// </summary>
  4746.         /// <returns type="jQuery" />
  4747.  
  4748.         return this.eq(-1);
  4749.     };
  4750.     jQuery.prototype.length = 0;
  4751.     jQuery.prototype.load = function (url, params, callback) {
  4752.         /// <summary>
  4753.         ///     1: Bind an event handler to the "load" JavaScript event.
  4754.         ///          1.1 - load(handler(eventObject)) 
  4755.         ///          1.2 - load(eventData, handler(eventObject))
  4756.         ///      2: Load data from the server and place the returned HTML into the matched element.
  4757.         ///          2.1 - load(url, data, complete(responseText, textStatus, XMLHttpRequest))
  4758.         /// </summary>
  4759.         /// <param name="url" type="String">
  4760.         ///     A string containing the URL to which the request is sent.
  4761.         /// </param>
  4762.         /// <param name="params" type="String">
  4763.         ///     A plain object or string that is sent to the server with the request.
  4764.         /// </param>
  4765.         /// <param name="callback" type="Function">
  4766.         ///     A callback function that is executed when the request completes.
  4767.         /// </param>
  4768.         /// <returns type="jQuery" />
  4769.  
  4770.         if (typeof url !== "string" && _load) {
  4771.             return _load.apply(this, arguments);
  4772.         }
  4773.  
  4774.         var selector, response, type,
  4775.             self = this,
  4776.             off = url.indexOf(" ");
  4777.  
  4778.         if (off >= 0) {
  4779.             selector = url.slice(off, url.length);
  4780.             url = url.slice(0, off);
  4781.         }
  4782.  
  4783.         // If it's a function
  4784.         if (jQuery.isFunction(params)) {
  4785.  
  4786.             // We assume that it's the callback
  4787.             callback = params;
  4788.             params = undefined;
  4789.  
  4790.             // Otherwise, build a param string
  4791.         } else if (params && typeof params === "object") {
  4792.             type = "POST";
  4793.         }
  4794.  
  4795.         // If we have elements to modify, make the request
  4796.         if (self.length > 0) {
  4797.             jQuery.ajax({
  4798.                 url: url,
  4799.  
  4800.                 // if "type" variable is undefined, then "GET" method will be used
  4801.                 type: type,
  4802.                 dataType: "html",
  4803.                 data: params
  4804.             }).done(function (responseText) {
  4805.  
  4806.                 // Save response for use in complete callback
  4807.                 response = arguments;
  4808.  
  4809.                 self.html(selector ?
  4810.  
  4811.                     // If a selector was specified, locate the right elements in a dummy div
  4812.                     // Exclude scripts to avoid IE 'Permission Denied' errors
  4813.                     jQuery("<div>").append(jQuery.parseHTML(responseText)).find(selector) :
  4814.  
  4815.                     // Otherwise use the full result
  4816.                     responseText);
  4817.  
  4818.             }).complete(callback && function (jqXHR, status) {
  4819.                 self.each(callback, response || [jqXHR.responseText, status, jqXHR]);
  4820.             });
  4821.         }
  4822.  
  4823.         return this;
  4824.     };
  4825.     jQuery.prototype.map = function (callback) {
  4826.         /// <summary>
  4827.         ///     Pass each element in the current matched set through a function, producing a new jQuery object containing the return values.
  4828.         /// </summary>
  4829.         /// <param name="callback" type="Function">
  4830.         ///     A function object that will be invoked for each element in the current set.
  4831.         /// </param>
  4832.         /// <returns type="jQuery" />
  4833.  
  4834.         return this.pushStack(jQuery.map(this, function (elem, i) {
  4835.             return callback.call(elem, i, elem);
  4836.         }));
  4837.     };
  4838.     jQuery.prototype.mousedown = function (data, fn) {
  4839.         /// <summary>
  4840.         ///     Bind an event handler to the "mousedown" JavaScript event, or trigger that event on an element.
  4841.         ///      1 - mousedown(handler(eventObject)) 
  4842.         ///      2 - mousedown(eventData, handler(eventObject)) 
  4843.         ///      3 - mousedown()
  4844.         /// </summary>
  4845.         /// <param name="data" type="PlainObject">
  4846.         ///     An object containing data that will be passed to the event handler.
  4847.         /// </param>
  4848.         /// <param name="fn" type="Function">
  4849.         ///     A function to execute each time the event is triggered.
  4850.         /// </param>
  4851.         /// <returns type="jQuery" />
  4852.  
  4853.         return arguments.length > 0 ?
  4854.             this.on(name, null, data, fn) :
  4855.             this.trigger(name);
  4856.     };
  4857.     jQuery.prototype.mouseenter = function (data, fn) {
  4858.         /// <summary>
  4859.         ///     Bind an event handler to be fired when the mouse enters an element, or trigger that handler on an element.
  4860.         ///      1 - mouseenter(handler(eventObject)) 
  4861.         ///      2 - mouseenter(eventData, handler(eventObject)) 
  4862.         ///      3 - mouseenter()
  4863.         /// </summary>
  4864.         /// <param name="data" type="PlainObject">
  4865.         ///     An object containing data that will be passed to the event handler.
  4866.         /// </param>
  4867.         /// <param name="fn" type="Function">
  4868.         ///     A function to execute each time the event is triggered.
  4869.         /// </param>
  4870.         /// <returns type="jQuery" />
  4871.  
  4872.         return arguments.length > 0 ?
  4873.             this.on(name, null, data, fn) :
  4874.             this.trigger(name);
  4875.     };
  4876.     jQuery.prototype.mouseleave = function (data, fn) {
  4877.         /// <summary>
  4878.         ///     Bind an event handler to be fired when the mouse leaves an element, or trigger that handler on an element.
  4879.         ///      1 - mouseleave(handler(eventObject)) 
  4880.         ///      2 - mouseleave(eventData, handler(eventObject)) 
  4881.         ///      3 - mouseleave()
  4882.         /// </summary>
  4883.         /// <param name="data" type="PlainObject">
  4884.         ///     An object containing data that will be passed to the event handler.
  4885.         /// </param>
  4886.         /// <param name="fn" type="Function">
  4887.         ///     A function to execute each time the event is triggered.
  4888.         /// </param>
  4889.         /// <returns type="jQuery" />
  4890.  
  4891.         return arguments.length > 0 ?
  4892.             this.on(name, null, data, fn) :
  4893.             this.trigger(name);
  4894.     };
  4895.     jQuery.prototype.mousemove = function (data, fn) {
  4896.         /// <summary>
  4897.         ///     Bind an event handler to the "mousemove" JavaScript event, or trigger that event on an element.
  4898.         ///      1 - mousemove(handler(eventObject)) 
  4899.         ///      2 - mousemove(eventData, handler(eventObject)) 
  4900.         ///      3 - mousemove()
  4901.         /// </summary>
  4902.         /// <param name="data" type="PlainObject">
  4903.         ///     An object containing data that will be passed to the event handler.
  4904.         /// </param>
  4905.         /// <param name="fn" type="Function">
  4906.         ///     A function to execute each time the event is triggered.
  4907.         /// </param>
  4908.         /// <returns type="jQuery" />
  4909.  
  4910.         return arguments.length > 0 ?
  4911.             this.on(name, null, data, fn) :
  4912.             this.trigger(name);
  4913.     };
  4914.     jQuery.prototype.mouseout = function (data, fn) {
  4915.         /// <summary>
  4916.         ///     Bind an event handler to the "mouseout" JavaScript event, or trigger that event on an element.
  4917.         ///      1 - mouseout(handler(eventObject)) 
  4918.         ///      2 - mouseout(eventData, handler(eventObject)) 
  4919.         ///      3 - mouseout()
  4920.         /// </summary>
  4921.         /// <param name="data" type="PlainObject">
  4922.         ///     An object containing data that will be passed to the event handler.
  4923.         /// </param>
  4924.         /// <param name="fn" type="Function">
  4925.         ///     A function to execute each time the event is triggered.
  4926.         /// </param>
  4927.         /// <returns type="jQuery" />
  4928.  
  4929.         return arguments.length > 0 ?
  4930.             this.on(name, null, data, fn) :
  4931.             this.trigger(name);
  4932.     };
  4933.     jQuery.prototype.mouseover = function (data, fn) {
  4934.         /// <summary>
  4935.         ///     Bind an event handler to the "mouseover" JavaScript event, or trigger that event on an element.
  4936.         ///      1 - mouseover(handler(eventObject)) 
  4937.         ///      2 - mouseover(eventData, handler(eventObject)) 
  4938.         ///      3 - mouseover()
  4939.         /// </summary>
  4940.         /// <param name="data" type="PlainObject">
  4941.         ///     An object containing data that will be passed to the event handler.
  4942.         /// </param>
  4943.         /// <param name="fn" type="Function">
  4944.         ///     A function to execute each time the event is triggered.
  4945.         /// </param>
  4946.         /// <returns type="jQuery" />
  4947.  
  4948.         return arguments.length > 0 ?
  4949.             this.on(name, null, data, fn) :
  4950.             this.trigger(name);
  4951.     };
  4952.     jQuery.prototype.mouseup = function (data, fn) {
  4953.         /// <summary>
  4954.         ///     Bind an event handler to the "mouseup" JavaScript event, or trigger that event on an element.
  4955.         ///      1 - mouseup(handler(eventObject)) 
  4956.         ///      2 - mouseup(eventData, handler(eventObject)) 
  4957.         ///      3 - mouseup()
  4958.         /// </summary>
  4959.         /// <param name="data" type="PlainObject">
  4960.         ///     An object containing data that will be passed to the event handler.
  4961.         /// </param>
  4962.         /// <param name="fn" type="Function">
  4963.         ///     A function to execute each time the event is triggered.
  4964.         /// </param>
  4965.         /// <returns type="jQuery" />
  4966.  
  4967.         return arguments.length > 0 ?
  4968.             this.on(name, null, data, fn) :
  4969.             this.trigger(name);
  4970.     };
  4971.     jQuery.prototype.next = function (until, selector) {
  4972.         /// <summary>
  4973.         ///     Get the immediately following sibling of each element in the set of matched elements. If a selector is provided, it retrieves the next sibling only if it matches that selector.
  4974.         /// </summary>
  4975.         /// <param name="until" type="String">
  4976.         ///     A string containing a selector expression to match elements against.
  4977.         /// </param>
  4978.         /// <returns type="jQuery" />
  4979.  
  4980.         var ret = jQuery.map(this, fn, until);
  4981.  
  4982.         if (!runtil.test(name)) {
  4983.             selector = until;
  4984.         }
  4985.  
  4986.         if (selector && typeof selector === "string") {
  4987.             ret = jQuery.filter(selector, ret);
  4988.         }
  4989.  
  4990.         ret = this.length > 1 && !guaranteedUnique[name] ? jQuery.unique(ret) : ret;
  4991.  
  4992.         if (this.length > 1 && rparentsprev.test(name)) {
  4993.             ret = ret.reverse();
  4994.         }
  4995.  
  4996.         return this.pushStack(ret);
  4997.     };
  4998.     jQuery.prototype.nextAll = function (until, selector) {
  4999.         /// <summary>
  5000.         ///     Get all following siblings of each element in the set of matched elements, optionally filtered by a selector.
  5001.         /// </summary>
  5002.         /// <param name="until" type="String">
  5003.         ///     A string containing a selector expression to match elements against.
  5004.         /// </param>
  5005.         /// <returns type="jQuery" />
  5006.  
  5007.         var ret = jQuery.map(this, fn, until);
  5008.  
  5009.         if (!runtil.test(name)) {
  5010.             selector = until;
  5011.         }
  5012.  
  5013.         if (selector && typeof selector === "string") {
  5014.             ret = jQuery.filter(selector, ret);
  5015.         }
  5016.  
  5017.         ret = this.length > 1 && !guaranteedUnique[name] ? jQuery.unique(ret) : ret;
  5018.  
  5019.         if (this.length > 1 && rparentsprev.test(name)) {
  5020.             ret = ret.reverse();
  5021.         }
  5022.  
  5023.         return this.pushStack(ret);
  5024.     };
  5025.     jQuery.prototype.nextUntil = function (until, selector) {
  5026.         /// <summary>
  5027.         ///     Get all following siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object passed.
  5028.         ///      1 - nextUntil(selector, filter) 
  5029.         ///      2 - nextUntil(element, filter)
  5030.         /// </summary>
  5031.         /// <param name="until" type="String">
  5032.         ///     A string containing a selector expression to indicate where to stop matching following sibling elements.
  5033.         /// </param>
  5034.         /// <param name="selector" type="String">
  5035.         ///     A string containing a selector expression to match elements against.
  5036.         /// </param>
  5037.         /// <returns type="jQuery" />
  5038.  
  5039.         var ret = jQuery.map(this, fn, until);
  5040.  
  5041.         if (!runtil.test(name)) {
  5042.             selector = until;
  5043.         }
  5044.  
  5045.         if (selector && typeof selector === "string") {
  5046.             ret = jQuery.filter(selector, ret);
  5047.         }
  5048.  
  5049.         ret = this.length > 1 && !guaranteedUnique[name] ? jQuery.unique(ret) : ret;
  5050.  
  5051.         if (this.length > 1 && rparentsprev.test(name)) {
  5052.             ret = ret.reverse();
  5053.         }
  5054.  
  5055.         return this.pushStack(ret);
  5056.     };
  5057.     jQuery.prototype.not = function (selector) {
  5058.         /// <summary>
  5059.         ///     Remove elements from the set of matched elements.
  5060.         ///      1 - not(selector) 
  5061.         ///      2 - not(elements) 
  5062.         ///      3 - not(function(index)) 
  5063.         ///      4 - not(jQuery object)
  5064.         /// </summary>
  5065.         /// <param name="selector" type="String">
  5066.         ///     A string containing a selector expression to match elements against.
  5067.         /// </param>
  5068.         /// <returns type="jQuery" />
  5069.  
  5070.         return this.pushStack(winnow(this, selector, false));
  5071.     };
  5072.     jQuery.prototype.off = function (types, selector, fn) {
  5073.         /// <summary>
  5074.         ///     Remove an event handler.
  5075.         ///      1 - off(events, selector, handler(eventObject)) 
  5076.         ///      2 - off(events, selector)
  5077.         /// </summary>
  5078.         /// <param name="types" type="String">
  5079.         ///     One or more space-separated event types and optional namespaces, or just namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
  5080.         /// </param>
  5081.         /// <param name="selector" type="String">
  5082.         ///     A selector which should match the one originally passed to .on() when attaching event handlers.
  5083.         /// </param>
  5084.         /// <param name="fn" type="Function">
  5085.         ///     A handler function previously attached for the event(s), or the special value false.
  5086.         /// </param>
  5087.         /// <returns type="jQuery" />
  5088.  
  5089.         var handleObj, type;
  5090.         if (types && types.preventDefault && types.handleObj) {
  5091.             // ( event )  dispatched jQuery.Event
  5092.             handleObj = types.handleObj;
  5093.             jQuery(types.delegateTarget).off(
  5094.                 handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType,
  5095.                 handleObj.selector,
  5096.                 handleObj.handler
  5097.             );
  5098.             return this;
  5099.         }
  5100.         if (typeof types === "object") {
  5101.             // ( types-object [, selector] )
  5102.             for (type in types) {
  5103.                 this.off(type, selector, types[type]);
  5104.             }
  5105.             return this;
  5106.         }
  5107.         if (selector === false || typeof selector === "function") {
  5108.             // ( types [, fn] )
  5109.             fn = selector;
  5110.             selector = undefined;
  5111.         }
  5112.         if (fn === false) {
  5113.             fn = returnFalse;
  5114.         }
  5115.         return this.each(function () {
  5116.             jQuery.event.remove(this, types, fn, selector);
  5117.         });
  5118.     };
  5119.     jQuery.prototype.offset = function (options) {
  5120.         /// <summary>
  5121.         ///     1: Get the current coordinates of the first element in the set of matched elements, relative to the document.
  5122.         ///          1.1 - offset()
  5123.         ///      2: Set the current coordinates of every element in the set of matched elements, relative to the document.
  5124.         ///          2.1 - offset(coordinates) 
  5125.         ///          2.2 - offset(function(index, coords))
  5126.         /// </summary>
  5127.         /// <param name="options" type="PlainObject">
  5128.         ///     An object containing the properties top and left, which are integers indicating the new top and left coordinates for the elements.
  5129.         /// </param>
  5130.         /// <returns type="jQuery" />
  5131.  
  5132.         if (arguments.length) {
  5133.             return options === undefined ?
  5134.                 this :
  5135.                 this.each(function (i) {
  5136.                     jQuery.offset.setOffset(this, options, i);
  5137.                 });
  5138.         }
  5139.  
  5140.         var docElem, win,
  5141.             box = { top: 0, left: 0 },
  5142.             elem = this[0],
  5143.             doc = elem && elem.ownerDocument;
  5144.  
  5145.         if (!doc) {
  5146.             return;
  5147.         }
  5148.  
  5149.         docElem = doc.documentElement;
  5150.  
  5151.         // Make sure it's not a disconnected DOM node
  5152.         if (!jQuery.contains(docElem, elem)) {
  5153.             return box;
  5154.         }
  5155.  
  5156.         // If we don't have gBCR, just use 0,0 rather than error
  5157.         // BlackBerry 5, iOS 3 (original iPhone)
  5158.         if (typeof elem.getBoundingClientRect !== core_strundefined) {
  5159.             box = elem.getBoundingClientRect();
  5160.         }
  5161.         win = getWindow(doc);
  5162.         return {
  5163.             top: box.top + (win.pageYOffset || docElem.scrollTop) - (docElem.clientTop || 0),
  5164.             left: box.left + (win.pageXOffset || docElem.scrollLeft) - (docElem.clientLeft || 0)
  5165.         };
  5166.     };
  5167.     jQuery.prototype.offsetParent = function () {
  5168.         /// <summary>
  5169.         ///     Get the closest ancestor element that is positioned.
  5170.         /// </summary>
  5171.         /// <returns type="jQuery" />
  5172.  
  5173.         return this.map(function () {
  5174.             var offsetParent = this.offsetParent || document.documentElement;
  5175.             while (offsetParent && (!jQuery.nodeName(offsetParent, "html") && jQuery.css(offsetParent, "position") === "static")) {
  5176.                 offsetParent = offsetParent.offsetParent;
  5177.             }
  5178.             return offsetParent || document.documentElement;
  5179.         });
  5180.     };
  5181.     jQuery.prototype.on = function (types, selector, data, fn, /*INTERNAL*/ one) {
  5182.         /// <summary>
  5183.         ///     Attach an event handler function for one or more events to the selected elements.
  5184.         ///      1 - on(events, selector, data, handler(eventObject)) 
  5185.         ///      2 - on(events, selector, data)
  5186.         /// </summary>
  5187.         /// <param name="types" type="String">
  5188.         ///     One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".
  5189.         /// </param>
  5190.         /// <param name="selector" type="String">
  5191.         ///     A selector string to filter the descendants of the selected elements that trigger the event. If the selector is null or omitted, the event is always triggered when it reaches the selected element.
  5192.         /// </param>
  5193.         /// <param name="data" type="Anything">
  5194.         ///     Data to be passed to the handler in event.data when an event is triggered.
  5195.         /// </param>
  5196.         /// <param name="fn" type="Function">
  5197.         ///     A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false.
  5198.         /// </param>
  5199.         /// <returns type="jQuery" />
  5200.  
  5201.         var type, origFn;
  5202.  
  5203.         // Types can be a map of types/handlers
  5204.         if (typeof types === "object") {
  5205.             // ( types-Object, selector, data )
  5206.             if (typeof selector !== "string") {
  5207.                 // ( types-Object, data )
  5208.                 data = data || selector;
  5209.                 selector = undefined;
  5210.             }
  5211.             for (type in types) {
  5212.                 this.on(type, selector, data, types[type], one);
  5213.             }
  5214.             return this;
  5215.         }
  5216.  
  5217.         if (data == null && fn == null) {
  5218.             // ( types, fn )
  5219.             fn = selector;
  5220.             data = selector = undefined;
  5221.         } else if (fn == null) {
  5222.             if (typeof selector === "string") {
  5223.                 // ( types, selector, fn )
  5224.                 fn = data;
  5225.                 data = undefined;
  5226.             } else {
  5227.                 // ( types, data, fn )
  5228.                 fn = data;
  5229.                 data = selector;
  5230.                 selector = undefined;
  5231.             }
  5232.         }
  5233.         if (fn === false) {
  5234.             fn = returnFalse;
  5235.         } else if (!fn) {
  5236.             return this;
  5237.         }
  5238.  
  5239.         if (one === 1) {
  5240.             origFn = fn;
  5241.             fn = function (event) {
  5242.                 // Can use an empty set, since event contains the info
  5243.                 jQuery().off(event);
  5244.                 return origFn.apply(this, arguments);
  5245.             };
  5246.             // Use same guid so caller can remove using origFn
  5247.             fn.guid = origFn.guid || (origFn.guid = jQuery.guid++);
  5248.         }
  5249.         return this.each(function () {
  5250.             jQuery.event.add(this, types, fn, data, selector);
  5251.         });
  5252.     };
  5253.     jQuery.prototype.one = function (types, selector, data, fn) {
  5254.         /// <summary>
  5255.         ///     Attach a handler to an event for the elements. The handler is executed at most once per element.
  5256.         ///      1 - one(events, data, handler(eventObject)) 
  5257.         ///      2 - one(events, selector, data, handler(eventObject)) 
  5258.         ///      3 - one(events, selector, data)
  5259.         /// </summary>
  5260.         /// <param name="types" type="String">
  5261.         ///     One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".
  5262.         /// </param>
  5263.         /// <param name="selector" type="String">
  5264.         ///     A selector string to filter the descendants of the selected elements that trigger the event. If the selector is null or omitted, the event is always triggered when it reaches the selected element.
  5265.         /// </param>
  5266.         /// <param name="data" type="Anything">
  5267.         ///     Data to be passed to the handler in event.data when an event is triggered.
  5268.         /// </param>
  5269.         /// <param name="fn" type="Function">
  5270.         ///     A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false.
  5271.         /// </param>
  5272.         /// <returns type="jQuery" />
  5273.  
  5274.         return this.on(types, selector, data, fn, 1);
  5275.     };
  5276.     jQuery.prototype.outerHeight = function (margin, value) {
  5277.         /// <summary>
  5278.         ///     Get the current computed height for the first element in the set of matched elements, including padding, border, and optionally margin. Returns an integer (without "px") representation of the value or null if called on an empty set of elements.
  5279.         /// </summary>
  5280.         /// <param name="margin" type="Boolean">
  5281.         ///     A Boolean indicating whether to include the element's margin in the calculation.
  5282.         /// </param>
  5283.         /// <returns type="Number" />
  5284.  
  5285.         var chainable = arguments.length && (defaultExtra || typeof margin !== "boolean"),
  5286.             extra = defaultExtra || (margin === true || value === true ? "margin" : "border");
  5287.  
  5288.         return jQuery.access(this, function (elem, type, value) {
  5289.             var doc;
  5290.  
  5291.             if (jQuery.isWindow(elem)) {
  5292.                 // As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there
  5293.                 // isn't a whole lot we can do. See pull request at this URL for discussion:
  5294.                 // https://github.com/jquery/jquery/pull/764
  5295.                 return elem.document.documentElement["client" + name];
  5296.             }
  5297.  
  5298.             // Get document width or height
  5299.             if (elem.nodeType === 9) {
  5300.                 doc = elem.documentElement;
  5301.  
  5302.                 // Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], whichever is greatest
  5303.                 // unfortunately, this causes bug #3838 in IE6/8 only, but there is currently no good, small way to fix it.
  5304.                 return Math.max(
  5305.                     elem.body["scroll" + name], doc["scroll" + name],
  5306.                     elem.body["offset" + name], doc["offset" + name],
  5307.                     doc["client" + name]
  5308.                 );
  5309.             }
  5310.  
  5311.             return value === undefined ?
  5312.                 // Get width or height on the element, requesting but not forcing parseFloat
  5313.                 jQuery.css(elem, type, extra) :
  5314.  
  5315.                 // Set width or height on the element
  5316.                 jQuery.style(elem, type, value, extra);
  5317.         }, type, chainable ? margin : undefined, chainable, null);
  5318.     };
  5319.     jQuery.prototype.outerWidth = function (margin, value) {
  5320.         /// <summary>
  5321.         ///     Get the current computed width for the first element in the set of matched elements, including padding and border.
  5322.         /// </summary>
  5323.         /// <param name="margin" type="Boolean">
  5324.         ///     A Boolean indicating whether to include the element's margin in the calculation.
  5325.         /// </param>
  5326.         /// <returns type="Number" />
  5327.  
  5328.         var chainable = arguments.length && (defaultExtra || typeof margin !== "boolean"),
  5329.             extra = defaultExtra || (margin === true || value === true ? "margin" : "border");
  5330.  
  5331.         return jQuery.access(this, function (elem, type, value) {
  5332.             var doc;
  5333.  
  5334.             if (jQuery.isWindow(elem)) {
  5335.                 // As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there
  5336.                 // isn't a whole lot we can do. See pull request at this URL for discussion:
  5337.                 // https://github.com/jquery/jquery/pull/764
  5338.                 return elem.document.documentElement["client" + name];
  5339.             }
  5340.  
  5341.             // Get document width or height
  5342.             if (elem.nodeType === 9) {
  5343.                 doc = elem.documentElement;
  5344.  
  5345.                 // Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], whichever is greatest
  5346.                 // unfortunately, this causes bug #3838 in IE6/8 only, but there is currently no good, small way to fix it.
  5347.                 return Math.max(
  5348.                     elem.body["scroll" + name], doc["scroll" + name],
  5349.                     elem.body["offset" + name], doc["offset" + name],
  5350.                     doc["client" + name]
  5351.                 );
  5352.             }
  5353.  
  5354.             return value === undefined ?
  5355.                 // Get width or height on the element, requesting but not forcing parseFloat
  5356.                 jQuery.css(elem, type, extra) :
  5357.  
  5358.                 // Set width or height on the element
  5359.                 jQuery.style(elem, type, value, extra);
  5360.         }, type, chainable ? margin : undefined, chainable, null);
  5361.     };
  5362.     jQuery.prototype.parent = function (until, selector) {
  5363.         /// <summary>
  5364.         ///     Get the parent of each element in the current set of matched elements, optionally filtered by a selector.
  5365.         /// </summary>
  5366.         /// <param name="until" type="String">
  5367.         ///     A string containing a selector expression to match elements against.
  5368.         /// </param>
  5369.         /// <returns type="jQuery" />
  5370.  
  5371.         var ret = jQuery.map(this, fn, until);
  5372.  
  5373.         if (!runtil.test(name)) {
  5374.             selector = until;
  5375.         }
  5376.  
  5377.         if (selector && typeof selector === "string") {
  5378.             ret = jQuery.filter(selector, ret);
  5379.         }
  5380.  
  5381.         ret = this.length > 1 && !guaranteedUnique[name] ? jQuery.unique(ret) : ret;
  5382.  
  5383.         if (this.length > 1 && rparentsprev.test(name)) {
  5384.             ret = ret.reverse();
  5385.         }
  5386.  
  5387.         return this.pushStack(ret);
  5388.     };
  5389.     jQuery.prototype.parents = function (until, selector) {
  5390.         /// <summary>
  5391.         ///     Get the ancestors of each element in the current set of matched elements, optionally filtered by a selector.
  5392.         /// </summary>
  5393.         /// <param name="until" type="String">
  5394.         ///     A string containing a selector expression to match elements against.
  5395.         /// </param>
  5396.         /// <returns type="jQuery" />
  5397.  
  5398.         var ret = jQuery.map(this, fn, until);
  5399.  
  5400.         if (!runtil.test(name)) {
  5401.             selector = until;
  5402.         }
  5403.  
  5404.         if (selector && typeof selector === "string") {
  5405.             ret = jQuery.filter(selector, ret);
  5406.         }
  5407.  
  5408.         ret = this.length > 1 && !guaranteedUnique[name] ? jQuery.unique(ret) : ret;
  5409.  
  5410.         if (this.length > 1 && rparentsprev.test(name)) {
  5411.             ret = ret.reverse();
  5412.         }
  5413.  
  5414.         return this.pushStack(ret);
  5415.     };
  5416.     jQuery.prototype.parentsUntil = function (until, selector) {
  5417.         /// <summary>
  5418.         ///     Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector, DOM node, or jQuery object.
  5419.         ///      1 - parentsUntil(selector, filter) 
  5420.         ///      2 - parentsUntil(element, filter)
  5421.         /// </summary>
  5422.         /// <param name="until" type="String">
  5423.         ///     A string containing a selector expression to indicate where to stop matching ancestor elements.
  5424.         /// </param>
  5425.         /// <param name="selector" type="String">
  5426.         ///     A string containing a selector expression to match elements against.
  5427.         /// </param>
  5428.         /// <returns type="jQuery" />
  5429.  
  5430.         var ret = jQuery.map(this, fn, until);
  5431.  
  5432.         if (!runtil.test(name)) {
  5433.             selector = until;
  5434.         }
  5435.  
  5436.         if (selector && typeof selector === "string") {
  5437.             ret = jQuery.filter(selector, ret);
  5438.         }
  5439.  
  5440.         ret = this.length > 1 && !guaranteedUnique[name] ? jQuery.unique(ret) : ret;
  5441.  
  5442.         if (this.length > 1 && rparentsprev.test(name)) {
  5443.             ret = ret.reverse();
  5444.         }
  5445.  
  5446.         return this.pushStack(ret);
  5447.     };
  5448.     jQuery.prototype.position = function () {
  5449.         /// <summary>
  5450.         ///     Get the current coordinates of the first element in the set of matched elements, relative to the offset parent.
  5451.         /// </summary>
  5452.         /// <returns type="Object" />
  5453.  
  5454.         if (!this[0]) {
  5455.             return;
  5456.         }
  5457.  
  5458.         var offsetParent, offset,
  5459.             parentOffset = { top: 0, left: 0 },
  5460.             elem = this[0];
  5461.  
  5462.         // fixed elements are offset from window (parentOffset = {top:0, left: 0}, because it is it's only offset parent
  5463.         if (jQuery.css(elem, "position") === "fixed") {
  5464.             // we assume that getBoundingClientRect is available when computed position is fixed
  5465.             offset = elem.getBoundingClientRect();
  5466.         } else {
  5467.             // Get *real* offsetParent
  5468.             offsetParent = this.offsetParent();
  5469.  
  5470.             // Get correct offsets
  5471.             offset = this.offset();
  5472.             if (!jQuery.nodeName(offsetParent[0], "html")) {
  5473.                 parentOffset = offsetParent.offset();
  5474.             }
  5475.  
  5476.             // Add offsetParent borders
  5477.             parentOffset.top += jQuery.css(offsetParent[0], "borderTopWidth", true);
  5478.             parentOffset.left += jQuery.css(offsetParent[0], "borderLeftWidth", true);
  5479.         }
  5480.  
  5481.         // Subtract parent offsets and element margins
  5482.         // note: when an element has margin: auto the offsetLeft and marginLeft
  5483.         // are the same in Safari causing offset.left to incorrectly be 0
  5484.         return {
  5485.             top: offset.top - parentOffset.top - jQuery.css(elem, "marginTop", true),
  5486.             left: offset.left - parentOffset.left - jQuery.css(elem, "marginLeft", true)
  5487.         };
  5488.     };
  5489.     jQuery.prototype.prepend = function () {
  5490.         /// <summary>
  5491.         ///     Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.
  5492.         ///      1 - prepend(content, content) 
  5493.         ///      2 - prepend(function(index, html))
  5494.         /// </summary>
  5495.         /// <param name="" type="jQuery">
  5496.         ///     DOM element, array of elements, HTML string, or jQuery object to insert at the beginning of each element in the set of matched elements.
  5497.         /// </param>
  5498.         /// <param name="" type="jQuery">
  5499.         ///     One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the beginning of each element in the set of matched elements.
  5500.         /// </param>
  5501.         /// <returns type="jQuery" />
  5502.  
  5503.         return this.domManip(arguments, true, function (elem) {
  5504.             if (this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9) {
  5505.                 this.insertBefore(elem, this.firstChild);
  5506.             }
  5507.         });
  5508.     };
  5509.     jQuery.prototype.prependTo = function (selector) {
  5510.         /// <summary>
  5511.         ///     Insert every element in the set of matched elements to the beginning of the target.
  5512.         /// </summary>
  5513.         /// <param name="selector" type="jQuery">
  5514.         ///     A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted at the beginning of the element(s) specified by this parameter.
  5515.         /// </param>
  5516.         /// <returns type="jQuery" />
  5517.  
  5518.         var elems,
  5519.             i = 0,
  5520.             ret = [],
  5521.             insert = jQuery(selector),
  5522.             last = insert.length - 1;
  5523.  
  5524.         for (; i <= last; i++) {
  5525.             elems = i === last ? this : this.clone(true);
  5526.             jQuery(insert[i])[original](elems);
  5527.  
  5528.             // Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get()
  5529.             core_push.apply(ret, elems.get());
  5530.         }
  5531.  
  5532.         return this.pushStack(ret);
  5533.     };
  5534.     jQuery.prototype.prev = function (until, selector) {
  5535.         /// <summary>
  5536.         ///     Get the immediately preceding sibling of each element in the set of matched elements, optionally filtered by a selector.
  5537.         /// </summary>
  5538.         /// <param name="until" type="String">
  5539.         ///     A string containing a selector expression to match elements against.
  5540.         /// </param>
  5541.         /// <returns type="jQuery" />
  5542.  
  5543.         var ret = jQuery.map(this, fn, until);
  5544.  
  5545.         if (!runtil.test(name)) {
  5546.             selector = until;
  5547.         }
  5548.  
  5549.         if (selector && typeof selector === "string") {
  5550.             ret = jQuery.filter(selector, ret);
  5551.         }
  5552.  
  5553.         ret = this.length > 1 && !guaranteedUnique[name] ? jQuery.unique(ret) : ret;
  5554.  
  5555.         if (this.length > 1 && rparentsprev.test(name)) {
  5556.             ret = ret.reverse();
  5557.         }
  5558.  
  5559.         return this.pushStack(ret);
  5560.     };
  5561.     jQuery.prototype.prevAll = function (until, selector) {
  5562.         /// <summary>
  5563.         ///     Get all preceding siblings of each element in the set of matched elements, optionally filtered by a selector.
  5564.         /// </summary>
  5565.         /// <param name="until" type="String">
  5566.         ///     A string containing a selector expression to match elements against.
  5567.         /// </param>
  5568.         /// <returns type="jQuery" />
  5569.  
  5570.         var ret = jQuery.map(this, fn, until);
  5571.  
  5572.         if (!runtil.test(name)) {
  5573.             selector = until;
  5574.         }
  5575.  
  5576.         if (selector && typeof selector === "string") {
  5577.             ret = jQuery.filter(selector, ret);
  5578.         }
  5579.  
  5580.         ret = this.length > 1 && !guaranteedUnique[name] ? jQuery.unique(ret) : ret;
  5581.  
  5582.         if (this.length > 1 && rparentsprev.test(name)) {
  5583.             ret = ret.reverse();
  5584.         }
  5585.  
  5586.         return this.pushStack(ret);
  5587.     };
  5588.     jQuery.prototype.prevUntil = function (until, selector) {
  5589.         /// <summary>
  5590.         ///     Get all preceding siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object.
  5591.         ///      1 - prevUntil(selector, filter) 
  5592.         ///      2 - prevUntil(element, filter)
  5593.         /// </summary>
  5594.         /// <param name="until" type="String">
  5595.         ///     A string containing a selector expression to indicate where to stop matching preceding sibling elements.
  5596.         /// </param>
  5597.         /// <param name="selector" type="String">
  5598.         ///     A string containing a selector expression to match elements against.
  5599.         /// </param>
  5600.         /// <returns type="jQuery" />
  5601.  
  5602.         var ret = jQuery.map(this, fn, until);
  5603.  
  5604.         if (!runtil.test(name)) {
  5605.             selector = until;
  5606.         }
  5607.  
  5608.         if (selector && typeof selector === "string") {
  5609.             ret = jQuery.filter(selector, ret);
  5610.         }
  5611.  
  5612.         ret = this.length > 1 && !guaranteedUnique[name] ? jQuery.unique(ret) : ret;
  5613.  
  5614.         if (this.length > 1 && rparentsprev.test(name)) {
  5615.             ret = ret.reverse();
  5616.         }
  5617.  
  5618.         return this.pushStack(ret);
  5619.     };
  5620.     jQuery.prototype.promise = function (type, obj) {
  5621.         /// <summary>
  5622.         ///     Return a Promise object to observe when all actions of a certain type bound to the collection, queued or not, have finished.
  5623.         /// </summary>
  5624.         /// <param name="type" type="String">
  5625.         ///     The type of queue that needs to be observed.
  5626.         /// </param>
  5627.         /// <param name="obj" type="PlainObject">
  5628.         ///     Object onto which the promise methods have to be attached
  5629.         /// </param>
  5630.         /// <returns type="Promise" />
  5631.  
  5632.         var tmp,
  5633.             count = 1,
  5634.             defer = jQuery.Deferred(),
  5635.             elements = this,
  5636.             i = this.length,
  5637.             resolve = function () {
  5638.                 if (!(--count)) {
  5639.                     defer.resolveWith(elements, [elements]);
  5640.                 }
  5641.             };
  5642.  
  5643.         if (typeof type !== "string") {
  5644.             obj = type;
  5645.             type = undefined;
  5646.         }
  5647.         type = type || "fx";
  5648.  
  5649.         while (i--) {
  5650.             tmp = jQuery._data(elements[i], type + "queueHooks");
  5651.             if (tmp && tmp.empty) {
  5652.                 count++;
  5653.                 tmp.empty.add(resolve);
  5654.             }
  5655.         }
  5656.         resolve();
  5657.         return defer.promise(obj);
  5658.     };
  5659.     jQuery.prototype.prop = function (name, value) {
  5660.         /// <summary>
  5661.         ///     1: Get the value of a property for the first element in the set of matched elements.
  5662.         ///          1.1 - prop(propertyName)
  5663.         ///      2: Set one or more properties for the set of matched elements.
  5664.         ///          2.1 - prop(propertyName, value) 
  5665.         ///          2.2 - prop(properties) 
  5666.         ///          2.3 - prop(propertyName, function(index, oldPropertyValue))
  5667.         /// </summary>
  5668.         /// <param name="name" type="String">
  5669.         ///     The name of the property to set.
  5670.         /// </param>
  5671.         /// <param name="value" type="Boolean">
  5672.         ///     A value to set for the property.
  5673.         /// </param>
  5674.         /// <returns type="jQuery" />
  5675.  
  5676.         return jQuery.access(this, jQuery.prop, name, value, arguments.length > 1);
  5677.     };
  5678.     jQuery.prototype.pushStack = function (elems) {
  5679.         /// <summary>
  5680.         ///     Add a collection of DOM elements onto the jQuery stack.
  5681.         ///      1 - pushStack(elements) 
  5682.         ///      2 - pushStack(elements, name, arguments)
  5683.         /// </summary>
  5684.         /// <param name="elems" type="Array">
  5685.         ///     An array of elements to push onto the stack and make into a new jQuery object.
  5686.         /// </param>
  5687.         /// <param name="" type="String">
  5688.         ///     The name of a jQuery method that generated the array of elements.
  5689.         /// </param>
  5690.         /// <param name="" type="Array">
  5691.         ///     The arguments that were passed in to the jQuery method (for serialization).
  5692.         /// </param>
  5693.         /// <returns type="jQuery" />
  5694.  
  5695.  
  5696.         // Build a new jQuery matched element set
  5697.         var ret = jQuery.merge(this.constructor(), elems);
  5698.  
  5699.         // Add the old object onto the stack (as a reference)
  5700.         ret.prevObject = this;
  5701.         ret.context = this.context;
  5702.  
  5703.         // Return the newly-formed element set
  5704.         return ret;
  5705.     };
  5706.     jQuery.prototype.queue = function (type, data) {
  5707.         /// <summary>
  5708.         ///     1: Show the queue of functions to be executed on the matched elements.
  5709.         ///          1.1 - queue(queueName)
  5710.         ///      2: Manipulate the queue of functions to be executed, once for each matched element.
  5711.         ///          2.1 - queue(queueName, newQueue) 
  5712.         ///          2.2 - queue(queueName, callback( next ))
  5713.         /// </summary>
  5714.         /// <param name="type" type="String">
  5715.         ///     A string containing the name of the queue. Defaults to fx, the standard effects queue.
  5716.         /// </param>
  5717.         /// <param name="data" type="Array">
  5718.         ///     An array of functions to replace the current queue contents.
  5719.         /// </param>
  5720.         /// <returns type="jQuery" />
  5721.  
  5722.         var setter = 2;
  5723.  
  5724.         if (typeof type !== "string") {
  5725.             data = type;
  5726.             type = "fx";
  5727.             setter--;
  5728.         }
  5729.  
  5730.         if (arguments.length < setter) {
  5731.             return jQuery.queue(this[0], type);
  5732.         }
  5733.  
  5734.         return data === undefined ?
  5735.             this :
  5736.             this.each(function () {
  5737.                 var queue = jQuery.queue(this, type, data);
  5738.  
  5739.                 // ensure a hooks for this queue
  5740.                 jQuery._queueHooks(this, type);
  5741.  
  5742.                 if (type === "fx" && queue[0] !== "inprogress") {
  5743.                     jQuery.dequeue(this, type);
  5744.                 }
  5745.             });
  5746.     };
  5747.     jQuery.prototype.ready = function (fn) {
  5748.         /// <summary>
  5749.         ///     Specify a function to execute when the DOM is fully loaded.
  5750.         /// </summary>
  5751.         /// <param name="fn" type="Function">
  5752.         ///     A function to execute after the DOM is ready.
  5753.         /// </param>
  5754.         /// <returns type="jQuery" />
  5755.  
  5756.         // Add the callback
  5757.         jQuery.ready.promise().done(fn);
  5758.  
  5759.         return this;
  5760.     };
  5761.     jQuery.prototype.remove = function (selector, keepData) {
  5762.         /// <summary>
  5763.         ///     Remove the set of matched elements from the DOM.
  5764.         /// </summary>
  5765.         /// <param name="selector" type="String">
  5766.         ///     A selector expression that filters the set of matched elements to be removed.
  5767.         /// </param>
  5768.         /// <returns type="jQuery" />
  5769.  
  5770.         var elem,
  5771.             i = 0;
  5772.  
  5773.         for (; (elem = this[i]) != null; i++) {
  5774.             if (!selector || jQuery.filter(selector, [elem]).length > 0) {
  5775.                 if (!keepData && elem.nodeType === 1) {
  5776.                     jQuery.cleanData(getAll(elem));
  5777.                 }
  5778.  
  5779.                 if (elem.parentNode) {
  5780.                     if (keepData && jQuery.contains(elem.ownerDocument, elem)) {
  5781.                         setGlobalEval(getAll(elem, "script"));
  5782.                     }
  5783.                     elem.parentNode.removeChild(elem);
  5784.                 }
  5785.             }
  5786.         }
  5787.  
  5788.         return this;
  5789.     };
  5790.     jQuery.prototype.removeAttr = function (name) {
  5791.         /// <summary>
  5792.         ///     Remove an attribute from each element in the set of matched elements.
  5793.         /// </summary>
  5794.         /// <param name="name" type="String">
  5795.         ///     An attribute to remove; as of version 1.7, it can be a space-separated list of attributes.
  5796.         /// </param>
  5797.         /// <returns type="jQuery" />
  5798.  
  5799.         return this.each(function () {
  5800.             jQuery.removeAttr(this, name);
  5801.         });
  5802.     };
  5803.     jQuery.prototype.removeClass = function (value) {
  5804.         /// <summary>
  5805.         ///     Remove a single class, multiple classes, or all classes from each element in the set of matched elements.
  5806.         ///      1 - removeClass(className) 
  5807.         ///      2 - removeClass(function(index, class))
  5808.         /// </summary>
  5809.         /// <param name="value" type="String">
  5810.         ///     One or more space-separated classes to be removed from the class attribute of each matched element.
  5811.         /// </param>
  5812.         /// <returns type="jQuery" />
  5813.  
  5814.         var classes, elem, cur, clazz, j,
  5815.             i = 0,
  5816.             len = this.length,
  5817.             proceed = arguments.length === 0 || typeof value === "string" && value;
  5818.  
  5819.         if (jQuery.isFunction(value)) {
  5820.             return this.each(function (j) {
  5821.                 jQuery(this).removeClass(value.call(this, j, this.className));
  5822.             });
  5823.         }
  5824.         if (proceed) {
  5825.             classes = (value || "").match(core_rnotwhite) || [];
  5826.  
  5827.             for (; i < len; i++) {
  5828.                 elem = this[i];
  5829.                 // This expression is here for better compressibility (see addClass)
  5830.                 cur = elem.nodeType === 1 && (elem.className ?
  5831.                     (" " + elem.className + " ").replace(rclass, " ") :
  5832.                     ""
  5833.                 );
  5834.  
  5835.                 if (cur) {
  5836.                     j = 0;
  5837.                     while ((clazz = classes[j++])) {
  5838.                         // Remove *all* instances
  5839.                         while (cur.indexOf(" " + clazz + " ") >= 0) {
  5840.                             cur = cur.replace(" " + clazz + " ", " ");
  5841.                         }
  5842.                     }
  5843.                     elem.className = value ? jQuery.trim(cur) : "";
  5844.                 }
  5845.             }
  5846.         }
  5847.  
  5848.         return this;
  5849.     };
  5850.     jQuery.prototype.removeData = function (key) {
  5851.         /// <summary>
  5852.         ///     Remove a previously-stored piece of data.
  5853.         ///      1 - removeData(name) 
  5854.         ///      2 - removeData(list)
  5855.         /// </summary>
  5856.         /// <param name="key" type="String">
  5857.         ///     A string naming the piece of data to delete.
  5858.         /// </param>
  5859.         /// <returns type="jQuery" />
  5860.  
  5861.         return this.each(function () {
  5862.             jQuery.removeData(this, key);
  5863.         });
  5864.     };
  5865.     jQuery.prototype.removeProp = function (name) {
  5866.         /// <summary>
  5867.         ///     Remove a property for the set of matched elements.
  5868.         /// </summary>
  5869.         /// <param name="name" type="String">
  5870.         ///     The name of the property to remove.
  5871.         /// </param>
  5872.         /// <returns type="jQuery" />
  5873.  
  5874.         name = jQuery.propFix[name] || name;
  5875.         return this.each(function () {
  5876.             // try/catch handles cases where IE balks (such as removing a property on window)
  5877.             try {
  5878.                 this[name] = undefined;
  5879.                 delete this[name];
  5880.             } catch (e) { }
  5881.         });
  5882.     };
  5883.     jQuery.prototype.replaceAll = function (selector) {
  5884.         /// <summary>
  5885.         ///     Replace each target element with the set of matched elements.
  5886.         /// </summary>
  5887.         /// <param name="selector" type="String">
  5888.         ///     A selector expression indicating which element(s) to replace.
  5889.         /// </param>
  5890.         /// <returns type="jQuery" />
  5891.  
  5892.         var elems,
  5893.             i = 0,
  5894.             ret = [],
  5895.             insert = jQuery(selector),
  5896.             last = insert.length - 1;
  5897.  
  5898.         for (; i <= last; i++) {
  5899.             elems = i === last ? this : this.clone(true);
  5900.             jQuery(insert[i])[original](elems);
  5901.  
  5902.             // Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get()
  5903.             core_push.apply(ret, elems.get());
  5904.         }
  5905.  
  5906.         return this.pushStack(ret);
  5907.     };
  5908.     jQuery.prototype.replaceWith = function (value) {
  5909.         /// <summary>
  5910.         ///     Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.
  5911.         ///      1 - replaceWith(newContent) 
  5912.         ///      2 - replaceWith(function)
  5913.         /// </summary>
  5914.         /// <param name="value" type="jQuery">
  5915.         ///     The content to insert. May be an HTML string, DOM element, or jQuery object.
  5916.         /// </param>
  5917.         /// <returns type="jQuery" />
  5918.  
  5919.         var isFunc = jQuery.isFunction(value);
  5920.  
  5921.         // Make sure that the elements are removed from the DOM before they are inserted
  5922.         // this can help fix replacing a parent with child elements
  5923.         if (!isFunc && typeof value !== "string") {
  5924.             value = jQuery(value).not(this).detach();
  5925.         }
  5926.  
  5927.         return this.domManip([value], true, function (elem) {
  5928.             var next = this.nextSibling,
  5929.                 parent = this.parentNode;
  5930.  
  5931.             if (parent) {
  5932.                 jQuery(this).remove();
  5933.                 parent.insertBefore(elem, next);
  5934.             }
  5935.         });
  5936.     };
  5937.     jQuery.prototype.resize = function (data, fn) {
  5938.         /// <summary>
  5939.         ///     Bind an event handler to the "resize" JavaScript event, or trigger that event on an element.
  5940.         ///      1 - resize(handler(eventObject)) 
  5941.         ///      2 - resize(eventData, handler(eventObject)) 
  5942.         ///      3 - resize()
  5943.         /// </summary>
  5944.         /// <param name="data" type="PlainObject">
  5945.         ///     An object containing data that will be passed to the event handler.
  5946.         /// </param>
  5947.         /// <param name="fn" type="Function">
  5948.         ///     A function to execute each time the event is triggered.
  5949.         /// </param>
  5950.         /// <returns type="jQuery" />
  5951.  
  5952.         return arguments.length > 0 ?
  5953.             this.on(name, null, data, fn) :
  5954.             this.trigger(name);
  5955.     };
  5956.     jQuery.prototype.scroll = function (data, fn) {
  5957.         /// <summary>
  5958.         ///     Bind an event handler to the "scroll" JavaScript event, or trigger that event on an element.
  5959.         ///      1 - scroll(handler(eventObject)) 
  5960.         ///      2 - scroll(eventData, handler(eventObject)) 
  5961.         ///      3 - scroll()
  5962.         /// </summary>
  5963.         /// <param name="data" type="PlainObject">
  5964.         ///     An object containing data that will be passed to the event handler.
  5965.         /// </param>
  5966.         /// <param name="fn" type="Function">
  5967.         ///     A function to execute each time the event is triggered.
  5968.         /// </param>
  5969.         /// <returns type="jQuery" />
  5970.  
  5971.         return arguments.length > 0 ?
  5972.             this.on(name, null, data, fn) :
  5973.             this.trigger(name);
  5974.     };
  5975.     jQuery.prototype.scrollLeft = function (val) {
  5976.         /// <summary>
  5977.         ///     1: Get the current horizontal position of the scroll bar for the first element in the set of matched elements.
  5978.         ///          1.1 - scrollLeft()
  5979.         ///      2: Set the current horizontal position of the scroll bar for each of the set of matched elements.
  5980.         ///          2.1 - scrollLeft(value)
  5981.         /// </summary>
  5982.         /// <param name="val" type="Number">
  5983.         ///     An integer indicating the new position to set the scroll bar to.
  5984.         /// </param>
  5985.         /// <returns type="jQuery" />
  5986.  
  5987.         return jQuery.access(this, function (elem, method, val) {
  5988.             var win = getWindow(elem);
  5989.  
  5990.             if (val === undefined) {
  5991.                 return win ? (prop in win) ? win[prop] :
  5992.                     win.document.documentElement[method] :
  5993.                     elem[method];
  5994.             }
  5995.  
  5996.             if (win) {
  5997.                 win.scrollTo(
  5998.                     !top ? val : jQuery(win).scrollLeft(),
  5999.                     top ? val : jQuery(win).scrollTop()
  6000.                 );
  6001.  
  6002.             } else {
  6003.                 elem[method] = val;
  6004.             }
  6005.         }, method, val, arguments.length, null);
  6006.     };
  6007.     jQuery.prototype.scrollTop = function (val) {
  6008.         /// <summary>
  6009.         ///     1: Get the current vertical position of the scroll bar for the first element in the set of matched elements or set the vertical position of the scroll bar for every matched element.
  6010.         ///          1.1 - scrollTop()
  6011.         ///      2: Set the current vertical position of the scroll bar for each of the set of matched elements.
  6012.         ///          2.1 - scrollTop(value)
  6013.         /// </summary>
  6014.         /// <param name="val" type="Number">
  6015.         ///     An integer indicating the new position to set the scroll bar to.
  6016.         /// </param>
  6017.         /// <returns type="jQuery" />
  6018.  
  6019.         return jQuery.access(this, function (elem, method, val) {
  6020.             var win = getWindow(elem);
  6021.  
  6022.             if (val === undefined) {
  6023.                 return win ? (prop in win) ? win[prop] :
  6024.                     win.document.documentElement[method] :
  6025.                     elem[method];
  6026.             }
  6027.  
  6028.             if (win) {
  6029.                 win.scrollTo(
  6030.                     !top ? val : jQuery(win).scrollLeft(),
  6031.                     top ? val : jQuery(win).scrollTop()
  6032.                 );
  6033.  
  6034.             } else {
  6035.                 elem[method] = val;
  6036.             }
  6037.         }, method, val, arguments.length, null);
  6038.     };
  6039.     jQuery.prototype.select = function (data, fn) {
  6040.         /// <summary>
  6041.         ///     Bind an event handler to the "select" JavaScript event, or trigger that event on an element.
  6042.         ///      1 - select(handler(eventObject)) 
  6043.         ///      2 - select(eventData, handler(eventObject)) 
  6044.         ///      3 - select()
  6045.         /// </summary>
  6046.         /// <param name="data" type="PlainObject">
  6047.         ///     An object containing data that will be passed to the event handler.
  6048.         /// </param>
  6049.         /// <param name="fn" type="Function">
  6050.         ///     A function to execute each time the event is triggered.
  6051.         /// </param>
  6052.         /// <returns type="jQuery" />
  6053.  
  6054.         return arguments.length > 0 ?
  6055.             this.on(name, null, data, fn) :
  6056.             this.trigger(name);
  6057.     };
  6058.     jQuery.prototype.serialize = function () {
  6059.         /// <summary>
  6060.         ///     Encode a set of form elements as a string for submission.
  6061.         /// </summary>
  6062.         /// <returns type="String" />
  6063.  
  6064.         return jQuery.param(this.serializeArray());
  6065.     };
  6066.     jQuery.prototype.serializeArray = function () {
  6067.         /// <summary>
  6068.         ///     Encode a set of form elements as an array of names and values.
  6069.         /// </summary>
  6070.         /// <returns type="Array" />
  6071.  
  6072.         return this.map(function () {
  6073.             // Can add propHook for "elements" to filter or add form elements
  6074.             var elements = jQuery.prop(this, "elements");
  6075.             return elements ? jQuery.makeArray(elements) : this;
  6076.         })
  6077.         .filter(function () {
  6078.             var type = this.type;
  6079.             // Use .is(":disabled") so that fieldset[disabled] works
  6080.             return this.name && !jQuery(this).is(":disabled") &&
  6081.                 rsubmittable.test(this.nodeName) && !rsubmitterTypes.test(type) &&
  6082.                 (this.checked || !manipulation_rcheckableType.test(type));
  6083.         })
  6084.         .map(function (i, elem) {
  6085.             var val = jQuery(this).val();
  6086.  
  6087.             return val == null ?
  6088.                 null :
  6089.                 jQuery.isArray(val) ?
  6090.                     jQuery.map(val, function (val) {
  6091.                         return { name: elem.name, value: val.replace(rCRLF, "\r\n") };
  6092.                     }) :
  6093.                     { name: elem.name, value: val.replace(rCRLF, "\r\n") };
  6094.         }).get();
  6095.     };
  6096.     jQuery.prototype.show = function (speed, easing, callback) {
  6097.         /// <summary>
  6098.         ///     Display the matched elements.
  6099.         ///      1 - show() 
  6100.         ///      2 - show(duration, complete) 
  6101.         ///      3 - show(options) 
  6102.         ///      4 - show(duration, easing, complete)
  6103.         /// </summary>
  6104.         /// <param name="speed" type="">
  6105.         ///     A string or number determining how long the animation will run.
  6106.         /// </param>
  6107.         /// <param name="easing" type="String">
  6108.         ///     A string indicating which easing function to use for the transition.
  6109.         /// </param>
  6110.         /// <param name="callback" type="Function">
  6111.         ///     A function to call once the animation is complete.
  6112.         /// </param>
  6113.         /// <returns type="jQuery" />
  6114.  
  6115.         return speed == null || typeof speed === "boolean" ?
  6116.             cssFn.apply(this, arguments) :
  6117.             this.animate(genFx(name, true), speed, easing, callback);
  6118.     };
  6119.     jQuery.prototype.siblings = function (until, selector) {
  6120.         /// <summary>
  6121.         ///     Get the siblings of each element in the set of matched elements, optionally filtered by a selector.
  6122.         /// </summary>
  6123.         /// <param name="until" type="String">
  6124.         ///     A string containing a selector expression to match elements against.
  6125.         /// </param>
  6126.         /// <returns type="jQuery" />
  6127.  
  6128.         var ret = jQuery.map(this, fn, until);
  6129.  
  6130.         if (!runtil.test(name)) {
  6131.             selector = until;
  6132.         }
  6133.  
  6134.         if (selector && typeof selector === "string") {
  6135.             ret = jQuery.filter(selector, ret);
  6136.         }
  6137.  
  6138.         ret = this.length > 1 && !guaranteedUnique[name] ? jQuery.unique(ret) : ret;
  6139.  
  6140.         if (this.length > 1 && rparentsprev.test(name)) {
  6141.             ret = ret.reverse();
  6142.         }
  6143.  
  6144.         return this.pushStack(ret);
  6145.     };
  6146.     jQuery.prototype.size = function () {
  6147.         /// <summary>
  6148.         ///     Return the number of elements in the jQuery object.
  6149.         /// </summary>
  6150.         /// <returns type="Number" />
  6151.  
  6152.         return this.length;
  6153.     };
  6154.     jQuery.prototype.slice = function () {
  6155.         /// <summary>
  6156.         ///     Reduce the set of matched elements to a subset specified by a range of indices.
  6157.         /// </summary>
  6158.         /// <param name="" type="Number">
  6159.         ///     An integer indicating the 0-based position at which the elements begin to be selected. If negative, it indicates an offset from the end of the set.
  6160.         /// </param>
  6161.         /// <param name="" type="Number">
  6162.         ///     An integer indicating the 0-based position at which the elements stop being selected. If negative, it indicates an offset from the end of the set. If omitted, the range continues until the end of the set.
  6163.         /// </param>
  6164.         /// <returns type="jQuery" />
  6165.  
  6166.         return this.pushStack(core_slice.apply(this, arguments));
  6167.     };
  6168.     jQuery.prototype.slideDown = function (speed, easing, callback) {
  6169.         /// <summary>
  6170.         ///     Display the matched elements with a sliding motion.
  6171.         ///      1 - slideDown(duration, complete) 
  6172.         ///      2 - slideDown(options) 
  6173.         ///      3 - slideDown(duration, easing, complete)
  6174.         /// </summary>
  6175.         /// <param name="speed" type="">
  6176.         ///     A string or number determining how long the animation will run.
  6177.         /// </param>
  6178.         /// <param name="easing" type="String">
  6179.         ///     A string indicating which easing function to use for the transition.
  6180.         /// </param>
  6181.         /// <param name="callback" type="Function">
  6182.         ///     A function to call once the animation is complete.
  6183.         /// </param>
  6184.         /// <returns type="jQuery" />
  6185.  
  6186.         return this.animate(props, speed, easing, callback);
  6187.     };
  6188.     jQuery.prototype.slideToggle = function (speed, easing, callback) {
  6189.         /// <summary>
  6190.         ///     Display or hide the matched elements with a sliding motion.
  6191.         ///      1 - slideToggle(duration, complete) 
  6192.         ///      2 - slideToggle(options) 
  6193.         ///      3 - slideToggle(duration, easing, complete)
  6194.         /// </summary>
  6195.         /// <param name="speed" type="">
  6196.         ///     A string or number determining how long the animation will run.
  6197.         /// </param>
  6198.         /// <param name="easing" type="String">
  6199.         ///     A string indicating which easing function to use for the transition.
  6200.         /// </param>
  6201.         /// <param name="callback" type="Function">
  6202.         ///     A function to call once the animation is complete.
  6203.         /// </param>
  6204.         /// <returns type="jQuery" />
  6205.  
  6206.         return this.animate(props, speed, easing, callback);
  6207.     };
  6208.     jQuery.prototype.slideUp = function (speed, easing, callback) {
  6209.         /// <summary>
  6210.         ///     Hide the matched elements with a sliding motion.
  6211.         ///      1 - slideUp(duration, complete) 
  6212.         ///      2 - slideUp(options) 
  6213.         ///      3 - slideUp(duration, easing, complete)
  6214.         /// </summary>
  6215.         /// <param name="speed" type="">
  6216.         ///     A string or number determining how long the animation will run.
  6217.         /// </param>
  6218.         /// <param name="easing" type="String">
  6219.         ///     A string indicating which easing function to use for the transition.
  6220.         /// </param>
  6221.         /// <param name="callback" type="Function">
  6222.         ///     A function to call once the animation is complete.
  6223.         /// </param>
  6224.         /// <returns type="jQuery" />
  6225.  
  6226.         return this.animate(props, speed, easing, callback);
  6227.     };
  6228.     jQuery.prototype.stop = function (type, clearQueue, gotoEnd) {
  6229.         /// <summary>
  6230.         ///     Stop the currently-running animation on the matched elements.
  6231.         ///      1 - stop(clearQueue, jumpToEnd) 
  6232.         ///      2 - stop(queue, clearQueue, jumpToEnd)
  6233.         /// </summary>
  6234.         /// <param name="type" type="String">
  6235.         ///     The name of the queue in which to stop animations.
  6236.         /// </param>
  6237.         /// <param name="clearQueue" type="Boolean">
  6238.         ///     A Boolean indicating whether to remove queued animation as well. Defaults to false.
  6239.         /// </param>
  6240.         /// <param name="gotoEnd" type="Boolean">
  6241.         ///     A Boolean indicating whether to complete the current animation immediately. Defaults to false.
  6242.         /// </param>
  6243.         /// <returns type="jQuery" />
  6244.  
  6245.         var stopQueue = function (hooks) {
  6246.             var stop = hooks.stop;
  6247.             delete hooks.stop;
  6248.             stop(gotoEnd);
  6249.         };
  6250.  
  6251.         if (typeof type !== "string") {
  6252.             gotoEnd = clearQueue;
  6253.             clearQueue = type;
  6254.             type = undefined;
  6255.         }
  6256.         if (clearQueue && type !== false) {
  6257.             this.queue(type || "fx", []);
  6258.         }
  6259.  
  6260.         return this.each(function () {
  6261.             var dequeue = true,
  6262.                 index = type != null && type + "queueHooks",
  6263.                 timers = jQuery.timers,
  6264.                 data = jQuery._data(this);
  6265.  
  6266.             if (index) {
  6267.                 if (data[index] && data[index].stop) {
  6268.                     stopQueue(data[index]);
  6269.                 }
  6270.             } else {
  6271.                 for (index in data) {
  6272.                     if (data[index] && data[index].stop && rrun.test(index)) {
  6273.                         stopQueue(data[index]);
  6274.                     }
  6275.                 }
  6276.             }
  6277.  
  6278.             for (index = timers.length; index--;) {
  6279.                 if (timers[index].elem === this && (type == null || timers[index].queue === type)) {
  6280.                     timers[index].anim.stop(gotoEnd);
  6281.                     dequeue = false;
  6282.                     timers.splice(index, 1);
  6283.                 }
  6284.             }
  6285.  
  6286.             // start the next in the queue if the last step wasn't forced
  6287.             // timers currently will call their complete callbacks, which will dequeue
  6288.             // but only if they were gotoEnd
  6289.             if (dequeue || !gotoEnd) {
  6290.                 jQuery.dequeue(this, type);
  6291.             }
  6292.         });
  6293.     };
  6294.     jQuery.prototype.submit = function (data, fn) {
  6295.         /// <summary>
  6296.         ///     Bind an event handler to the "submit" JavaScript event, or trigger that event on an element.
  6297.         ///      1 - submit(handler(eventObject)) 
  6298.         ///      2 - submit(eventData, handler(eventObject)) 
  6299.         ///      3 - submit()
  6300.         /// </summary>
  6301.         /// <param name="data" type="PlainObject">
  6302.         ///     An object containing data that will be passed to the event handler.
  6303.         /// </param>
  6304.         /// <param name="fn" type="Function">
  6305.         ///     A function to execute each time the event is triggered.
  6306.         /// </param>
  6307.         /// <returns type="jQuery" />
  6308.  
  6309.         return arguments.length > 0 ?
  6310.             this.on(name, null, data, fn) :
  6311.             this.trigger(name);
  6312.     };
  6313.     jQuery.prototype.text = function (value) {
  6314.         /// <summary>
  6315.         ///     1: Get the combined text contents of each element in the set of matched elements, including their descendants.
  6316.         ///          1.1 - text()
  6317.         ///      2: Set the content of each element in the set of matched elements to the specified text.
  6318.         ///          2.1 - text(textString) 
  6319.         ///          2.2 - text(function(index, text))
  6320.         /// </summary>
  6321.         /// <param name="value" type="String">
  6322.         ///     A string of text to set as the content of each matched element.
  6323.         /// </param>
  6324.         /// <returns type="jQuery" />
  6325.  
  6326.         return jQuery.access(this, function (value) {
  6327.             return value === undefined ?
  6328.                 jQuery.text(this) :
  6329.                 this.empty().append((this[0] && this[0].ownerDocument || document).createTextNode(value));
  6330.         }, null, value, arguments.length);
  6331.     };
  6332.     jQuery.prototype.toArray = function () {
  6333.         /// <summary>
  6334.         ///     Retrieve all the DOM elements contained in the jQuery set, as an array.
  6335.         /// </summary>
  6336.         /// <returns type="Array" />
  6337.  
  6338.         return core_slice.call(this);
  6339.     };
  6340.     jQuery.prototype.toggle = function (speed, easing, callback) {
  6341.         /// <summary>
  6342.         ///     1: Bind two or more handlers to the matched elements, to be executed on alternate clicks.
  6343.         ///          1.1 - toggle(handler(eventObject), handler(eventObject), handler(eventObject))
  6344.         ///      2: Display or hide the matched elements.
  6345.         ///          2.1 - toggle(duration, complete) 
  6346.         ///          2.2 - toggle(options) 
  6347.         ///          2.3 - toggle(duration, easing, complete) 
  6348.         ///          2.4 - toggle(showOrHide)
  6349.         /// </summary>
  6350.         /// <param name="speed" type="Function">
  6351.         ///     A function to execute every even time the element is clicked.
  6352.         /// </param>
  6353.         /// <param name="easing" type="Function">
  6354.         ///     A function to execute every odd time the element is clicked.
  6355.         /// </param>
  6356.         /// <param name="callback" type="Function">
  6357.         ///     Additional handlers to cycle through after clicks.
  6358.         /// </param>
  6359.         /// <returns type="jQuery" />
  6360.  
  6361.         return speed == null || typeof speed === "boolean" ?
  6362.             cssFn.apply(this, arguments) :
  6363.             this.animate(genFx(name, true), speed, easing, callback);
  6364.     };
  6365.     jQuery.prototype.toggleClass = function (value, stateVal) {
  6366.         /// <summary>
  6367.         ///     Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the switch argument.
  6368.         ///      1 - toggleClass(className) 
  6369.         ///      2 - toggleClass(className, switch) 
  6370.         ///      3 - toggleClass(switch) 
  6371.         ///      4 - toggleClass(function(index, class, switch), switch)
  6372.         /// </summary>
  6373.         /// <param name="value" type="String">
  6374.         ///     One or more class names (separated by spaces) to be toggled for each element in the matched set.
  6375.         /// </param>
  6376.         /// <param name="stateVal" type="Boolean">
  6377.         ///     A Boolean (not just truthy/falsy) value to determine whether the class should be added or removed.
  6378.         /// </param>
  6379.         /// <returns type="jQuery" />
  6380.  
  6381.         var type = typeof value,
  6382.             isBool = typeof stateVal === "boolean";
  6383.  
  6384.         if (jQuery.isFunction(value)) {
  6385.             return this.each(function (i) {
  6386.                 jQuery(this).toggleClass(value.call(this, i, this.className, stateVal), stateVal);
  6387.             });
  6388.         }
  6389.  
  6390.         return this.each(function () {
  6391.             if (type === "string") {
  6392.                 // toggle individual class names
  6393.                 var className,
  6394.                     i = 0,
  6395.                     self = jQuery(this),
  6396.                     state = stateVal,
  6397.                     classNames = value.match(core_rnotwhite) || [];
  6398.  
  6399.                 while ((className = classNames[i++])) {
  6400.                     // check each className given, space separated list
  6401.                     state = isBool ? state : !self.hasClass(className);
  6402.                     self[state ? "addClass" : "removeClass"](className);
  6403.                 }
  6404.  
  6405.                 // Toggle whole class name
  6406.             } else if (type === core_strundefined || type === "boolean") {
  6407.                 if (this.className) {
  6408.                     // store className if set
  6409.                     jQuery._data(this, "__className__", this.className);
  6410.                 }
  6411.  
  6412.                 // If the element has a class name or if we're passed "false",
  6413.                 // then remove the whole classname (if there was one, the above saved it).
  6414.                 // Otherwise bring back whatever was previously saved (if anything),
  6415.                 // falling back to the empty string if nothing was stored.
  6416.                 this.className = this.className || value === false ? "" : jQuery._data(this, "__className__") || "";
  6417.             }
  6418.         });
  6419.     };
  6420.     jQuery.prototype.trigger = function (type, data) {
  6421.         /// <summary>
  6422.         ///     Execute all handlers and behaviors attached to the matched elements for the given event type.
  6423.         ///      1 - trigger(eventType, extraParameters) 
  6424.         ///      2 - trigger(event)
  6425.         /// </summary>
  6426.         /// <param name="type" type="String">
  6427.         ///     A string containing a JavaScript event type, such as click or submit.
  6428.         /// </param>
  6429.         /// <param name="data" type="PlainObject">
  6430.         ///     Additional parameters to pass along to the event handler.
  6431.         /// </param>
  6432.         /// <returns type="jQuery" />
  6433.  
  6434.         return this.each(function () {
  6435.             jQuery.event.trigger(type, data, this);
  6436.         });
  6437.     };
  6438.     jQuery.prototype.triggerHandler = function (type, data) {
  6439.         /// <summary>
  6440.         ///     Execute all handlers attached to an element for an event.
  6441.         /// </summary>
  6442.         /// <param name="type" type="String">
  6443.         ///     A string containing a JavaScript event type, such as click or submit.
  6444.         /// </param>
  6445.         /// <param name="data" type="Array">
  6446.         ///     An array of additional parameters to pass along to the event handler.
  6447.         /// </param>
  6448.         /// <returns type="Object" />
  6449.  
  6450.         var elem = this[0];
  6451.         if (elem) {
  6452.             return jQuery.event.trigger(type, data, elem, true);
  6453.         }
  6454.     };
  6455.     jQuery.prototype.unbind = function (types, fn) {
  6456.         /// <summary>
  6457.         ///     Remove a previously-attached event handler from the elements.
  6458.         ///      1 - unbind(eventType, handler(eventObject)) 
  6459.         ///      2 - unbind(eventType, false) 
  6460.         ///      3 - unbind(event)
  6461.         /// </summary>
  6462.         /// <param name="types" type="String">
  6463.         ///     A string containing a JavaScript event type, such as click or submit.
  6464.         /// </param>
  6465.         /// <param name="fn" type="Function">
  6466.         ///     The function that is to be no longer executed.
  6467.         /// </param>
  6468.         /// <returns type="jQuery" />
  6469.  
  6470.         return this.off(types, null, fn);
  6471.     };
  6472.     jQuery.prototype.undelegate = function (selector, types, fn) {
  6473.         /// <summary>
  6474.         ///     Remove a handler from the event for all elements which match the current selector, based upon a specific set of root elements.
  6475.         ///      1 - undelegate() 
  6476.         ///      2 - undelegate(selector, eventType) 
  6477.         ///      3 - undelegate(selector, eventType, handler(eventObject)) 
  6478.         ///      4 - undelegate(selector, events) 
  6479.         ///      5 - undelegate(namespace)
  6480.         /// </summary>
  6481.         /// <param name="selector" type="String">
  6482.         ///     A selector which will be used to filter the event results.
  6483.         /// </param>
  6484.         /// <param name="types" type="String">
  6485.         ///     A string containing a JavaScript event type, such as "click" or "keydown"
  6486.         /// </param>
  6487.         /// <param name="fn" type="Function">
  6488.         ///     A function to execute at the time the event is triggered.
  6489.         /// </param>
  6490.         /// <returns type="jQuery" />
  6491.  
  6492.         // ( namespace ) or ( selector, types [, fn] )
  6493.         return arguments.length === 1 ? this.off(selector, "**") : this.off(types, selector || "**", fn);
  6494.     };
  6495.     jQuery.prototype.unload = function (data, fn) {
  6496.         /// <summary>
  6497.         ///     Bind an event handler to the "unload" JavaScript event.
  6498.         ///      1 - unload(handler(eventObject)) 
  6499.         ///      2 - unload(eventData, handler(eventObject))
  6500.         /// </summary>
  6501.         /// <param name="data" type="Object">
  6502.         ///     A plain object of data that will be passed to the event handler.
  6503.         /// </param>
  6504.         /// <param name="fn" type="Function">
  6505.         ///     A function to execute each time the event is triggered.
  6506.         /// </param>
  6507.         /// <returns type="jQuery" />
  6508.  
  6509.         return arguments.length > 0 ?
  6510.             this.on(name, null, data, fn) :
  6511.             this.trigger(name);
  6512.     };
  6513.     jQuery.prototype.unwrap = function () {
  6514.         /// <summary>
  6515.         ///     Remove the parents of the set of matched elements from the DOM, leaving the matched elements in their place.
  6516.         /// </summary>
  6517.         /// <returns type="jQuery" />
  6518.  
  6519.         return this.parent().each(function () {
  6520.             if (!jQuery.nodeName(this, "body")) {
  6521.                 jQuery(this).replaceWith(this.childNodes);
  6522.             }
  6523.         }).end();
  6524.     };
  6525.     jQuery.prototype.val = function (value) {
  6526.         /// <summary>
  6527.         ///     1: Get the current value of the first element in the set of matched elements.
  6528.         ///          1.1 - val()
  6529.         ///      2: Set the value of each element in the set of matched elements.
  6530.         ///          2.1 - val(value) 
  6531.         ///          2.2 - val(function(index, value))
  6532.         /// </summary>
  6533.         /// <param name="value" type="Array">
  6534.         ///     A string of text or an array of strings corresponding to the value of each matched element to set as selected/checked.
  6535.         /// </param>
  6536.         /// <returns type="jQuery" />
  6537.  
  6538.         var ret, hooks, isFunction,
  6539.             elem = this[0];
  6540.  
  6541.         if (!arguments.length) {
  6542.             if (elem) {
  6543.                 hooks = jQuery.valHooks[elem.type] || jQuery.valHooks[elem.nodeName.toLowerCase()];
  6544.  
  6545.                 if (hooks && "get" in hooks && (ret = hooks.get(elem, "value")) !== undefined) {
  6546.                     return ret;
  6547.                 }
  6548.  
  6549.                 ret = elem.value;
  6550.  
  6551.                 return typeof ret === "string" ?
  6552.                     // handle most common string cases
  6553.                     ret.replace(rreturn, "") :
  6554.                     // handle cases where value is null/undef or number
  6555.                     ret == null ? "" : ret;
  6556.             }
  6557.  
  6558.             return;
  6559.         }
  6560.  
  6561.         isFunction = jQuery.isFunction(value);
  6562.  
  6563.         return this.each(function (i) {
  6564.             var val,
  6565.                 self = jQuery(this);
  6566.  
  6567.             if (this.nodeType !== 1) {
  6568.                 return;
  6569.             }
  6570.  
  6571.             if (isFunction) {
  6572.                 val = value.call(this, i, self.val());
  6573.             } else {
  6574.                 val = value;
  6575.             }
  6576.  
  6577.             // Treat null/undefined as ""; convert numbers to string
  6578.             if (val == null) {
  6579.                 val = "";
  6580.             } else if (typeof val === "number") {
  6581.                 val += "";
  6582.             } else if (jQuery.isArray(val)) {
  6583.                 val = jQuery.map(val, function (value) {
  6584.                     return value == null ? "" : value + "";
  6585.                 });
  6586.             }
  6587.  
  6588.             hooks = jQuery.valHooks[this.type] || jQuery.valHooks[this.nodeName.toLowerCase()];
  6589.  
  6590.             // If set returns undefined, fall back to normal setting
  6591.             if (!hooks || !("set" in hooks) || hooks.set(this, val, "value") === undefined) {
  6592.                 this.value = val;
  6593.             }
  6594.         });
  6595.     };
  6596.     jQuery.prototype.width = function (margin, value) {
  6597.         /// <summary>
  6598.         ///     1: Get the current computed width for the first element in the set of matched elements.
  6599.         ///          1.1 - width()
  6600.         ///      2: Set the CSS width of each element in the set of matched elements.
  6601.         ///          2.1 - width(value) 
  6602.         ///          2.2 - width(function(index, width))
  6603.         /// </summary>
  6604.         /// <param name="margin" type="Number">
  6605.         ///     An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
  6606.         /// </param>
  6607.         /// <returns type="jQuery" />
  6608.  
  6609.         var chainable = arguments.length && (defaultExtra || typeof margin !== "boolean"),
  6610.             extra = defaultExtra || (margin === true || value === true ? "margin" : "border");
  6611.  
  6612.         return jQuery.access(this, function (elem, type, value) {
  6613.             var doc;
  6614.  
  6615.             if (jQuery.isWindow(elem)) {
  6616.                 // As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there
  6617.                 // isn't a whole lot we can do. See pull request at this URL for discussion:
  6618.                 // https://github.com/jquery/jquery/pull/764
  6619.                 return elem.document.documentElement["client" + name];
  6620.             }
  6621.  
  6622.             // Get document width or height
  6623.             if (elem.nodeType === 9) {
  6624.                 doc = elem.documentElement;
  6625.  
  6626.                 // Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], whichever is greatest
  6627.                 // unfortunately, this causes bug #3838 in IE6/8 only, but there is currently no good, small way to fix it.
  6628.                 return Math.max(
  6629.                     elem.body["scroll" + name], doc["scroll" + name],
  6630.                     elem.body["offset" + name], doc["offset" + name],
  6631.                     doc["client" + name]
  6632.                 );
  6633.             }
  6634.  
  6635.             return value === undefined ?
  6636.                 // Get width or height on the element, requesting but not forcing parseFloat
  6637.                 jQuery.css(elem, type, extra) :
  6638.  
  6639.                 // Set width or height on the element
  6640.                 jQuery.style(elem, type, value, extra);
  6641.         }, type, chainable ? margin : undefined, chainable, null);
  6642.     };
  6643.     jQuery.prototype.wrap = function (html) {
  6644.         /// <summary>
  6645.         ///     Wrap an HTML structure around each element in the set of matched elements.
  6646.         ///      1 - wrap(wrappingElement) 
  6647.         ///      2 - wrap(function(index))
  6648.         /// </summary>
  6649.         /// <param name="html" type="jQuery">
  6650.         ///     An HTML snippet, selector expression, jQuery object, or DOM element specifying the structure to wrap around the matched elements.
  6651.         /// </param>
  6652.         /// <returns type="jQuery" />
  6653.  
  6654.         var isFunction = jQuery.isFunction(html);
  6655.  
  6656.         return this.each(function (i) {
  6657.             jQuery(this).wrapAll(isFunction ? html.call(this, i) : html);
  6658.         });
  6659.     };
  6660.     jQuery.prototype.wrapAll = function (html) {
  6661.         /// <summary>
  6662.         ///     Wrap an HTML structure around all elements in the set of matched elements.
  6663.         /// </summary>
  6664.         /// <param name="html" type="jQuery">
  6665.         ///     An HTML snippet, selector expression, jQuery object, or DOM element specifying the structure to wrap around the matched elements.
  6666.         /// </param>
  6667.         /// <returns type="jQuery" />
  6668.  
  6669.         if (jQuery.isFunction(html)) {
  6670.             return this.each(function (i) {
  6671.                 jQuery(this).wrapAll(html.call(this, i));
  6672.             });
  6673.         }
  6674.  
  6675.         if (this[0]) {
  6676.             // The elements to wrap the target around
  6677.             var wrap = jQuery(html, this[0].ownerDocument).eq(0).clone(true);
  6678.  
  6679.             if (this[0].parentNode) {
  6680.                 wrap.insertBefore(this[0]);
  6681.             }
  6682.  
  6683.             wrap.map(function () {
  6684.                 var elem = this;
  6685.  
  6686.                 while (elem.firstChild && elem.firstChild.nodeType === 1) {
  6687.                     elem = elem.firstChild;
  6688.                 }
  6689.  
  6690.                 return elem;
  6691.             }).append(this);
  6692.         }
  6693.  
  6694.         return this;
  6695.     };
  6696.     jQuery.prototype.wrapInner = function (html) {
  6697.         /// <summary>
  6698.         ///     Wrap an HTML structure around the content of each element in the set of matched elements.
  6699.         ///      1 - wrapInner(wrappingElement) 
  6700.         ///      2 - wrapInner(function(index))
  6701.         /// </summary>
  6702.         /// <param name="html" type="String">
  6703.         ///     An HTML snippet, selector expression, jQuery object, or DOM element specifying the structure to wrap around the content of the matched elements.
  6704.         /// </param>
  6705.         /// <returns type="jQuery" />
  6706.  
  6707.         if (jQuery.isFunction(html)) {
  6708.             return this.each(function (i) {
  6709.                 jQuery(this).wrapInner(html.call(this, i));
  6710.             });
  6711.         }
  6712.  
  6713.         return this.each(function () {
  6714.             var self = jQuery(this),
  6715.                 contents = self.contents();
  6716.  
  6717.             if (contents.length) {
  6718.                 contents.wrapAll(html);
  6719.  
  6720.             } else {
  6721.                 self.append(html);
  6722.             }
  6723.         });
  6724.     };
  6725.     jQuery.fn = jQuery.prototype;
  6726.     jQuery.fn.init.prototype = jQuery.fn;
  6727.     window.jQuery = window.$ = jQuery;
  6728. })(window);