jquery-3.0.0.min.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. void 0 === jQuery.migrateMute && (jQuery.migrateMute = !0), function(e) {
  2. "function" == typeof define && define.amd ? define([ "jquery" ], window, e) : "object" == typeof module && module.exports ? module.exports = e(require("jquery"), window) : e(jQuery, window);
  3. }(function(e, t) {
  4. "use strict";
  5. function r(r) {
  6. var n = t.console;
  7. o[r] || (o[r] = !0, e.migrateWarnings.push(r), n && n.warn && !e.migrateMute && (n.warn("JQMIGRATE: " + r),
  8. e.migrateTrace && n.trace && n.trace()));
  9. }
  10. function n(e, t, n, a) {
  11. Object.defineProperty(e, t, {
  12. configurable: !0,
  13. enumerable: !0,
  14. get: function() {
  15. return r(a), n;
  16. },
  17. set: function(e) {
  18. r(a), n = e;
  19. }
  20. });
  21. }
  22. function a(e, t, n, a) {
  23. e[t] = function() {
  24. return r(a), n.apply(this, arguments);
  25. };
  26. }
  27. e.migrateVersion = "3.0.1", function() {
  28. var r = /^[12]\./;
  29. t.console && t.console.log && (e && !r.test(e.fn.jquery) || t.console.log("JQMIGRATE: jQuery 3.0.0+ REQUIRED"),
  30. e.migrateWarnings && t.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),
  31. t.console.log("JQMIGRATE: Migrate is installed" + (e.migrateMute ? "" : " with logging active") + ", version " + e.migrateVersion));
  32. }();
  33. var o = {};
  34. e.migrateWarnings = [], void 0 === e.migrateTrace && (e.migrateTrace = !0), e.migrateReset = function() {
  35. o = {}, e.migrateWarnings.length = 0;
  36. }, "BackCompat" === t.document.compatMode && r("jQuery is not compatible with Quirks Mode");
  37. var i = e.fn.init, s = e.isNumeric, u = e.find, c = /\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/, l = /\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g;
  38. e.fn.init = function(e) {
  39. var t = Array.prototype.slice.call(arguments);
  40. return "string" == typeof e && "#" === e && (r("jQuery( '#' ) is not a valid selector"),
  41. t[0] = []), i.apply(this, t);
  42. }, e.fn.init.prototype = e.fn, e.find = function(e) {
  43. var n = Array.prototype.slice.call(arguments);
  44. if ("string" == typeof e && c.test(e)) try {
  45. t.document.querySelector(e);
  46. } catch (a) {
  47. e = e.replace(l, function(e, t, r, n) {
  48. return "[" + t + r + '"' + n + '"]';
  49. });
  50. try {
  51. t.document.querySelector(e), r("Attribute selector with '#' must be quoted: " + n[0]),
  52. n[0] = e;
  53. } catch (e) {
  54. r("Attribute selector with '#' was not fixed: " + n[0]);
  55. }
  56. }
  57. return u.apply(this, n);
  58. };
  59. var d;
  60. for (d in u) Object.prototype.hasOwnProperty.call(u, d) && (e.find[d] = u[d]);
  61. e.fn.size = function() {
  62. return r("jQuery.fn.size() is deprecated and removed; use the .length property"),
  63. this.length;
  64. }, e.parseJSON = function() {
  65. return r("jQuery.parseJSON is deprecated; use JSON.parse"), JSON.parse.apply(null, arguments);
  66. }, e.isNumeric = function(t) {
  67. var n = s(t), a = function(t) {
  68. var r = t && t.toString();
  69. return !e.isArray(t) && r - parseFloat(r) + 1 >= 0;
  70. }(t);
  71. return n !== a && r("jQuery.isNumeric() should not be called on constructed objects"),
  72. a;
  73. }, a(e, "holdReady", e.holdReady, "jQuery.holdReady is deprecated"), a(e, "unique", e.uniqueSort, "jQuery.unique is deprecated; use jQuery.uniqueSort"),
  74. n(e.expr, "filters", e.expr.pseudos, "jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),
  75. n(e.expr, ":", e.expr.pseudos, "jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos");
  76. var p = e.ajax;
  77. e.ajax = function() {
  78. var e = p.apply(this, arguments);
  79. return e.promise && (a(e, "success", e.done, "jQXHR.success is deprecated and removed"),
  80. a(e, "error", e.fail, "jQXHR.error is deprecated and removed"), a(e, "complete", e.always, "jQXHR.complete is deprecated and removed")),
  81. e;
  82. };
  83. var f = e.fn.removeAttr, y = e.fn.toggleClass, m = /\S+/g;
  84. e.fn.removeAttr = function(t) {
  85. var n = this;
  86. return e.each(t.match(m), function(t, a) {
  87. e.expr.match.bool.test(a) && (r("jQuery.fn.removeAttr no longer sets boolean properties: " + a),
  88. n.prop(a, !1));
  89. }), f.apply(this, arguments);
  90. }, e.fn.toggleClass = function(t) {
  91. return void 0 !== t && "boolean" != typeof t ? y.apply(this, arguments) : (r("jQuery.fn.toggleClass( boolean ) is deprecated"),
  92. this.each(function() {
  93. var r = this.getAttribute && this.getAttribute("class") || "";
  94. r && e.data(this, "__className__", r), this.setAttribute && this.setAttribute("class", r || !1 === t ? "" : e.data(this, "__className__") || "");
  95. }));
  96. };
  97. var h = !1;
  98. e.swap && e.each([ "height", "width", "reliableMarginRight" ], function(t, r) {
  99. var n = e.cssHooks[r] && e.cssHooks[r].get;
  100. n && (e.cssHooks[r].get = function() {
  101. var e;
  102. return h = !0, e = n.apply(this, arguments), h = !1, e;
  103. });
  104. }), e.swap = function(e, t, n, a) {
  105. var o, i, s = {};
  106. h || r("jQuery.swap() is undocumented and deprecated");
  107. for (i in t) s[i] = e.style[i], e.style[i] = t[i];
  108. o = n.apply(e, a || []);
  109. for (i in t) e.style[i] = s[i];
  110. return o;
  111. };
  112. var g = e.data;
  113. e.data = function(t, n, a) {
  114. var o;
  115. if (n && "object" == typeof n && 2 === arguments.length) {
  116. o = e.hasData(t) && g.call(this, t);
  117. var i = {};
  118. for (var s in n) s !== e.camelCase(s) ? (r("jQuery.data() always sets/gets camelCased names: " + s),
  119. o[s] = n[s]) : i[s] = n[s];
  120. return g.call(this, t, i), n;
  121. }
  122. return n && "string" == typeof n && n !== e.camelCase(n) && (o = e.hasData(t) && g.call(this, t)) && n in o ? (r("jQuery.data() always sets/gets camelCased names: " + n),
  123. arguments.length > 2 && (o[n] = a), o[n]) : g.apply(this, arguments);
  124. };
  125. var v = e.Tween.prototype.run, j = function(e) {
  126. return e;
  127. };
  128. e.Tween.prototype.run = function() {
  129. e.easing[this.easing].length > 1 && (r("'jQuery.easing." + this.easing.toString() + "' should use only one argument"),
  130. e.easing[this.easing] = j), v.apply(this, arguments);
  131. }, e.fx.interval = e.fx.interval || 13, t.requestAnimationFrame && n(e.fx, "interval", e.fx.interval, "jQuery.fx.interval is deprecated");
  132. var Q = e.fn.load, b = e.event.add, w = e.event.fix;
  133. e.event.props = [], e.event.fixHooks = {}, n(e.event.props, "concat", e.event.props.concat, "jQuery.event.props.concat() is deprecated and removed"),
  134. e.event.fix = function(t) {
  135. var n, a = t.type, o = this.fixHooks[a], i = e.event.props;
  136. if (i.length) for (r("jQuery.event.props are deprecated and removed: " + i.join()); i.length; ) e.event.addProp(i.pop());
  137. if (o && !o._migrated_ && (o._migrated_ = !0, r("jQuery.event.fixHooks are deprecated and removed: " + a),
  138. (i = o.props) && i.length)) for (;i.length; ) e.event.addProp(i.pop());
  139. return n = w.call(this, t), o && o.filter ? o.filter(n, t) : n;
  140. }, e.event.add = function(e, n) {
  141. return e === t && "load" === n && "complete" === t.document.readyState && r("jQuery(window).on('load'...) called after load event occurred"),
  142. b.apply(this, arguments);
  143. }, e.each([ "load", "unload", "error" ], function(t, n) {
  144. e.fn[n] = function() {
  145. var e = Array.prototype.slice.call(arguments, 0);
  146. return "load" === n && "string" == typeof e[0] ? Q.apply(this, e) : (r("jQuery.fn." + n + "() is deprecated"),
  147. e.splice(0, 0, n), arguments.length ? this.on.apply(this, e) : (this.triggerHandler.apply(this, e),
  148. this));
  149. };
  150. }), e.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "), function(t, n) {
  151. e.fn[n] = function(e, t) {
  152. return r("jQuery.fn." + n + "() event shorthand is deprecated"), arguments.length > 0 ? this.on(n, null, e, t) : this.trigger(n);
  153. };
  154. }), e(function() {
  155. e(t.document).triggerHandler("ready");
  156. }), e.event.special.ready = {
  157. setup: function() {
  158. this === t.document && r("'ready' event is deprecated");
  159. }
  160. }, e.fn.extend({
  161. bind: function(e, t, n) {
  162. return r("jQuery.fn.bind() is deprecated"), this.on(e, null, t, n);
  163. },
  164. unbind: function(e, t) {
  165. return r("jQuery.fn.unbind() is deprecated"), this.off(e, null, t);
  166. },
  167. delegate: function(e, t, n, a) {
  168. return r("jQuery.fn.delegate() is deprecated"), this.on(t, e, n, a);
  169. },
  170. undelegate: function(e, t, n) {
  171. return r("jQuery.fn.undelegate() is deprecated"), 1 === arguments.length ? this.off(e, "**") : this.off(t, e || "**", n);
  172. },
  173. hover: function(e, t) {
  174. return r("jQuery.fn.hover() is deprecated"), this.on("mouseenter", e).on("mouseleave", t || e);
  175. }
  176. });
  177. var x = e.fn.offset;
  178. e.fn.offset = function() {
  179. var n, a = this[0], o = {
  180. top: 0,
  181. left: 0
  182. };
  183. return a && a.nodeType ? (n = (a.ownerDocument || t.document).documentElement, e.contains(n, a) ? x.apply(this, arguments) : (r("jQuery.fn.offset() requires an element connected to a document"),
  184. o)) : (r("jQuery.fn.offset() requires a valid DOM element"), o);
  185. };
  186. var k = e.param;
  187. e.param = function(t, n) {
  188. var a = e.ajaxSettings && e.ajaxSettings.traditional;
  189. return void 0 === n && a && (r("jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),
  190. n = a), k.call(this, t, n);
  191. };
  192. var A = e.fn.andSelf || e.fn.addBack;
  193. e.fn.andSelf = function() {
  194. return r("jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),
  195. A.apply(this, arguments);
  196. };
  197. var S = e.Deferred, q = [ [ "resolve", "done", e.Callbacks("once memory"), e.Callbacks("once memory"), "resolved" ], [ "reject", "fail", e.Callbacks("once memory"), e.Callbacks("once memory"), "rejected" ], [ "notify", "progress", e.Callbacks("memory"), e.Callbacks("memory") ] ];
  198. return e.Deferred = function(t) {
  199. var n = S(), a = n.promise();
  200. return n.pipe = a.pipe = function() {
  201. var t = arguments;
  202. return r("deferred.pipe() is deprecated"), e.Deferred(function(r) {
  203. e.each(q, function(o, i) {
  204. var s = e.isFunction(t[o]) && t[o];
  205. n[i[1]](function() {
  206. var t = s && s.apply(this, arguments);
  207. t && e.isFunction(t.promise) ? t.promise().done(r.resolve).fail(r.reject).progress(r.notify) : r[i[0] + "With"](this === a ? r.promise() : this, s ? [ t ] : arguments);
  208. });
  209. }), t = null;
  210. }).promise();
  211. }, t && t.call(n, n), n;
  212. }, e.Deferred.exceptionHook = S.exceptionHook, e;
  213. });