PageSourceSearch

https://www.e-tramits.ad/tramits/_ui/responsive/common/js/jquery-3.3.1.js

js e-tramits.ad collected 2026-10-02 19:13:52 UTC 391,199 bytes, 10,656 lines download raw bytes

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

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