PageSourceSearch

https://longyang.gov.cn/tpl/js/jquery-migrate.min.js

js longyang.gov.cn collected 2026-10-02 19:51:05 UTC 14,419 bytes, 519 lines download raw bytes

1(function(a) {
2	if (typeof define === "function" && define.amd) {
3		define(["jquery"], function(b) {
4			return a(b, window)
5		})
6	} else {
7		if (typeof module === "object" && module.exports) {
8			module.exports = a(require("jquery"), window)
9		} else {
10			a(jQuery, window)
11		}
12	}
13})(function(v, H) {
14	v.migrateVersion = "x.x.x";
15
16	function J(W, U) {
17		var S, R = /^(\d+)\.(\d+)\.(\d+)/,
18			T = R.exec(W) || [],
19			V = R.exec(U) || [];
20		for (S = 1; S <= 3; S++) {
21			if (+T[S] > +V[S]) {
22				return 1
23			}
24			if (+T[S] < +V[S]) {
25				return -1
26			}
27		}
28		return 0
29	}
30
31	function c(R) {
32		return J(v.fn.jquery, R) >= 0
33	}(function() {
34		if (!H.console || !H.console.log) {
35			return
36		}
37		if (!v || !c("x.x.x")) {
38			H.console.log("JQMIGRATE: jQuery x.x.x+ REQUIRED")
39		}
40		if (v.migrateWarnings) {
41			H.console.log("JQMIGRATE: Migrate plugin loaded multiple times")
42		}
43	})();
44	var s = {};
45	v.migrateDeduplicateWarnings = true;
46	v.migrateWarnings = [];
47	if (v.migrateTrace === undefined) {
48		v.migrateTrace = true
49	}
50	v.migrateReset = function() {
51		s = {};
52		v.migrateWarnings.length = 0
53	};
54
55	function I(R) {}
56
57	function t(S, U, R, T) {
58		Object.defineProperty(S, U, {
59			configurable: true,
60			enumerable: true,
61			get: function() {
62				I(T);
63				return R
64			},
65			set: function(V) {
66				I(T);
67				R = V
68			}
69		})
70	}
71
72	function w(S, U, R, T) {
73		S[U] = function() {
74			I(T);
75			return R.apply(this, arguments)
76		}
77	}
78	if (H.document.compatMode === "BackCompat") {
79		I("jQuery is not compatible with Quirks Mode")
80	}
81	var N, d = {},
82		u = v.fn.init,
83		m = v.find,
84		n = /\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,
85		B = /\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,
86		K = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
87	v.fn.init = function(S) {
88		var R = Array.prototype.slice.call(arguments);
89		if (typeof S === "string" && S === "#") {
90			I("jQuery( '#' ) is not a valid selector");
91			R[0] = []
92		}
93		return u.apply(this, R)
94	};
95	v.fn.init.prototype = v.fn;
96	v.find = function(R) {
97		var U = Array.prototype.slice.call(arguments);
98		if (typeof R === "string" && n.test(R)) {
99			try {
100				H.document.querySelector(R)
101			} catch (T) {
102				R = R.replace(B, function(W, V, Y, X) {
103					return "[" + V + Y + '"' + X + '"]'
104				});
105				try {
106					H.document.querySelector(R);
107					I("Attribute selector with '#' must be quoted: " + U[0]);
108					U[0] = R
109				} catch (S) {
110					I("Attribute selector with '#' was not fixed: " + U[0])
111				}
112			}
113		}
114		return m.apply(this, U)
115	};
116	for (N in m) {
117		if (Object.prototype.hasOwnProperty.call(m, N)) {
118			v.find[N] = m[N]
119		}
120	}
121	w(v.fn, "size", function() {
122		return this.length
123	}, "jQuery.fn.size() is deprecated and removed; use the .length property");
124	w(v, "parseJSON", function() {
125		return JSON.parse.apply(null, arguments)
126	}, "jQuery.parseJSON is deprecated; use JSON.parse");
127	w(v, "holdReady", v.holdReady, "jQuery.holdReady is deprecated");
128	w(v, "unique", v.uniqueSort, "jQuery.unique is deprecated; use jQuery.uniqueSort");
129	t(v.expr, "filters", v.expr.pseudos, "jQuery.expr.filters is deprecated; use jQuery.expr.pseudos");
130	t(v.expr, ":", v.expr.pseudos, "jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos");
131	if (c("x.x.x")) {
132		w(v, "trim", function(R) {
133			return R == null ? "" : (R + "").replace(K, "")
134		}, "jQuery.trim is deprecated; use String.prototype.trim")
135	}
136	if (c("x.x.x")) {
137		w(v, "nodeName", function(S, R) {
138			return S.nodeName && S.nodeName.toLowerCase() === R.toLowerCase()
139		}, "jQuery.nodeName is deprecated");
140		w(v, "isArray", Array.isArray, "jQuery.isArray is deprecated; use Array.isArray")
141	}
142	if (c("x.x.x")) {
143		w(v, "isNumeric", function(S) {
144			var R = typeof S;
145			return (R === "number" || R === "string") && !isNaN(S - parseFloat(S))
146		}, "jQuery.isNumeric() is deprecated");
147		v.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "), function(S, R) {
148			d["[object " + R + "]"] = R.toLowerCase()
149		});
150		w(v, "type", function(R) {
151			if (R == null) {
152				return R + ""
153			}
154			return typeof R === "object" || typeof R === "function" ? d[Object.prototype.toString.call(
155				R)] || "object" : typeof R
156		}, "jQuery.type is deprecated");
157		w(v, "isFunction", function(R) {
158			return typeof R === "function"
159		}, "jQuery.isFunction() is deprecated");
160		w(v, "isWindow", function(R) {
161			return R != null && R === R.window
162		}, "jQuery.isWindow() is deprecated")
163	}
164	if (v.ajax) {
165		var g = v.ajax,
166			b = /(=)\?(?=&|$)|\?\?/;
167		v.ajax = function() {
168			var R = g.apply(this, arguments);
169			if (R.promise) {
170				w(R, "success", R.done, "jQXHR.success is deprecated and removed");
171				w(R, "error", R.fail, "jQXHR.error is deprecated and removed");
172				w(R, "complete", R.always, "jQXHR.complete is deprecated and removed")
173			}
174			return R
175		};
176		if (!c("x.x.x")) {
177			v.ajaxPrefilter("+json", function(R) {
178				if (R.jsonp !== false && (b.test(R.url) || typeof R.data === "string" && (R.contentType ||
179						"").indexOf("application/x-www-form-urlencoded") === 0 && b.test(R.data))) {
180					I("JSON-to-JSONP auto-promotion is deprecated")
181				}
182			})
183		}
184	}
185	var Q = v.fn.removeAttr,
186		D = v.fn.toggleClass,
187		i = /\S+/g;
188	v.fn.removeAttr = function(S) {
189		var R = this;
190		v.each(S.match(i), function(U, T) {
191			if (v.expr.match.bool.test(T)) {
192				I("jQuery.fn.removeAttr no longer sets boolean properties: " + T);
193				R.prop(T, false)
194			}
195		});
196		return Q.apply(this, arguments)
197	};
198	v.fn.toggleClass = function(R) {
199		if (R !== undefined && typeof R !== "boolean") {
200			return D.apply(this, arguments)
201		}
202		I("jQuery.fn.toggleClass( boolean ) is deprecated");
203		return this.each(function() {
204			var S = this.getAttribute && this.getAttribute("class") || "";
205			if (S) {
206				v.data(this, "__className__", S)
207			}
208			if (this.setAttribute) {
209				this.setAttribute("class", S || R === false ? "" : v.data(this, "__className__") || "")
210			}
211		})
212	};
213
214	function l(R) {
215		return R.replace(/-([a-z])/g, function(S, T) {
216			return T.toUpperCase()
217		})
218	}
219	var a, r = false,
220		p = /^[a-z]/,
221		G =
222		/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;
223	if (v.swap) {
224		v.each(["height", "width", "reliableMarginRight"], function(S, R) {
225			var T = v.cssHooks[R] && v.cssHooks[R].get;
226			if (T) {
227				v.cssHooks[R].get = function() {
228					var U;
229					r = true;
230					U = T.apply(this, arguments);
231					r = false;
232					return U
233				}
234			}
235		})
236	}
237	v.swap = function(W, V, X, U) {
238		var T, S, R = {};
239		if (!r) {
240			I("jQuery.swap() is undocumented and deprecated")
241		}
242		for (S in V) {
243			R[S] = W.style[S];
244			W.style[S] = V[S]
245		}
246		T = X.apply(W, U || []);
247		for (S in V) {
248			W.style[S] = R[S]
249		}
250		return T
251	};
252	if (c("x.x.x") && typeof Proxy !== "undefined") {
253		v.cssProps = new Proxy(v.cssProps || {}, {
254			set: function() {
255				I("JQMIGRATE: jQuery.cssProps is deprecated");
256				return Reflect.set.apply(this, arguments)
257			}
258		})
259	}
260	if (!v.cssNumber) {
261		v.cssNumber = {}
262	}
263
264	function x(R) {
265		return p.test(R) && G.test(R[0].toUpperCase() + R.slice(1))
266	}
267	a = v.fn.css;
268	v.fn.css = function(S, U) {
269		var T, R = this;
270		if (S && typeof S === "object" && !Array.isArray(S)) {
271			v.each(S, function(W, V) {
272				v.fn.css.call(R, W, V)
273			});
274			return this
275		}
276		if (typeof U === "number") {
277			T = l(S);
278			if (!x(T) && !v.cssNumber[T]) {
279				I('Number-typed values are deprecated for jQuery.fn.css( "' + S + '", value )')
280			}
281		}
282		return a.apply(this, arguments)
283	};
284	var y = v.data;
285	v.data = function(V, R, W) {
286		var U, T, S;
287		if (R && typeof R === "object" && arguments.length === 2) {
288			U = v.hasData(V) && y.call(this, V);
289			T = {};
290			for (S in R) {
291				if (S !== l(S)) {
292					I("jQuery.data() always sets/gets camelCased names: " + S);
293					U[S] = R[S]
294				} else {
295					T[S] = R[S]
296				}
297			}
298			y.call(this, V, T);
299			return R
300		}
301		if (R && typeof R === "string" && R !== l(R)) {
302			U = v.hasData(V) && y.call(this, V);
303			if (U && R in U) {
304				I("jQuery.data() always sets/gets camelCased names: " + R);
305				if (arguments.length > 2) {
306					U[R] = W
307				}
308				return U[R]
309			}
310		}
311		return y.apply(this, arguments)
312	};
313	if (v.fx) {
314		var L, z, j = v.Tween.prototype.run,
315			P = function(R) {
316				return R
317			};
318		v.Tween.prototype.run = function() {
319			if (v.easing[this.easing].length > 1) {
320				I("'jQuery.easing." + this.easing.toString() + "' should use only one argument");
321				v.easing[this.easing] = P
322			}
323			j.apply(this, arguments)
324		};
325		L = v.fx.interval || 13;
326		z = "jQuery.fx.interval is deprecated";
327		if (H.requestAnimationFrame) {
328			Object.defineProperty(v.fx, "interval", {
329				configurable: true,
330				enumerable: true,
331				get: function() {
332					if (!H.document.hidden) {
333						I(z)
334					}
335					return L
336				},
337				set: function(R) {
338					I(z);
339					L = R
340				}
341			})
342		}
343	}
344	var q = v.fn.load,
345		C = v.event.add,
346		e = v.event.fix;
347	v.event.props = [];
348	v.event.fixHooks = {};
349	t(v.event.props, "concat", v.event.props.concat, "jQuery.event.props.concat() is deprecated and removed");
350	v.event.fix = function(R) {
351		var U, T = R.type,
352			V = this.fixHooks[T],
353			S = v.event.props;
354		if (S.length) {
355			I("jQuery.event.props are deprecated and removed: " + S.join());
356			while (S.length) {
357				v.event.addProp(S.pop())
358			}
359		}
360		if (V && !V._migrated_) {
361			V._migrated_ = true;
362			I("jQuery.event.fixHooks are deprecated and removed: " + T);
363			if ((S = V.props) && S.length) {
364				while (S.length) {
365					v.event.addProp(S.pop())
366				}
367			}
368		}
369		U = e.call(this, R);
370		return V && V.filter ? V.filter(U, R) : U
371	};
372	v.event.add = function(S, R) {
373		if (S === H && R === "load" && H.document.readyState === "complete") {
374			I("jQuery(window).on('load'...) called after load event occurred")
375		}
376		return C.apply(this, arguments)
377	};
378	v.each(["load", "unload", "error"], function(S, R) {
379		v.fn[R] = function() {
380			var T = Array.prototype.slice.call(arguments, 0);
381			if (R === "load" && typeof T[0] === "string") {
382				return q.apply(this, T)
383			}
384			I("jQuery.fn." + R + "() is deprecated");
385			T.splice(0, 0, R);
386			if (arguments.length) {
387				return this.on.apply(this, T)
388			}
389			this.triggerHandler.apply(this, T);
390			return this
391		}
392	});
393	v.each(("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu")
394		.split(" "),
395		function(S, R) {
396			v.fn[R] = function(U, T) {
397				I("jQuery.fn." + R + "() event shorthand is deprecated");
398				return arguments.length > 0 ? this.on(R, null, U, T) : this.trigger(R)
399			}
400		});
401	v(function() {
402		v(H.document).triggerHandler("ready")
403	});
404	v.event.special.ready = {
405		setup: function() {
406			if (this === H.document) {
407				I("'ready' event is deprecated")
408			}
409		}
410	};
411	v.fn.extend({
412		bind: function(R, T, S) {
413			I("jQuery.fn.bind() is deprecated");
414			return this.on(R, null, T, S)
415		},
416		unbind: function(R, S) {
417			I("jQuery.fn.unbind() is deprecated");
418			return this.off(R, null, S)
419		},
420		delegate: function(R, S, U, T) {
421			I("jQuery.fn.delegate() is deprecated");
422			return this.on(S, R, U, T)
423		},
424		undelegate: function(R, S, T) {
425			I("jQuery.fn.undelegate() is deprecated");
426			return arguments.length === 1 ? this.off(R, "**") : this.off(S, R || "**", T)
427		},
428		hover: function(R, S) {
429			I("jQuery.fn.hover() is deprecated");
430			return this.on("mouseenter", R).on("mouseleave", S || R)
431		}
432	});
433	var h = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,
434		o = v.htmlPrefilter,
435		M = function(R) {
436			var S = H.document.implementation.createHTMLDocument("");
437			S.body.innerHTML = R;
438			return S.body && S.body.innerHTML
439		},
440		O = function(R) {
441			var S = R.replace(h, "<$1></$2>");
442			if (S !== R && M(R) !== M(S)) {
443				I("HTML tags must be properly nested and closed: " + R)
444			}
445		};
446	v.UNSAFE_restoreLegacyHtmlPrefilter = function() {
447		v.htmlPrefilter = function(R) {
448			O(R);
449			return R.replace(h, "<$1></$2>")
450		}
451	};
452	v.htmlPrefilter = function(R) {
453		O(R);
454		return o(R)
455	};
456	var k = v.fn.offset;
457	v.fn.offset = function() {
458		var R = this[0];
459		if (R && (!R.nodeType || !R.getBoundingClientRect)) {
460			I("jQuery.fn.offset() requires a valid DOM element");
461			return arguments.length ? this : undefined
462		}
463		return k.apply(this, arguments)
464	};
465	if (v.ajax) {
466		var A = v.param;
467		v.param = function(S, R) {
468			var T = v.ajaxSettings && v.ajaxSettings.traditional;
469			if (R === undefined && T) {
470				I("jQuery.param() no longer uses jQuery.ajaxSettings.traditional");
471				R = T
472			}
473			return A.call(this, S, R)
474		}
475	}
476	var F = v.fn.andSelf || v.fn.addBack;
477	v.fn.andSelf = function() {
478		I("jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()");
479		return F.apply(this, arguments)
480	};
481	if (v.Deferred) {
482		var E = v.Deferred,
483			f = [
484				["resolve", "done", v.Callbacks("once memory"), v.Callbacks("once memory"), "resolved"],
485				["reject", "fail", v.Callbacks("once memory"), v.Callbacks("once memory"), "rejected"],
486				["notify", "progress", v.Callbacks("memory"), v.Callbacks("memory")]
487			];
488		v.Deferred = function(S) {
489			var R = E(),
490				T = R.promise();
491			R.pipe = T.pipe = function() {
492				var U = arguments;
493				I("deferred.pipe() is deprecated");
494				return v.Deferred(function(V) {
495					v.each(f, function(X, W) {
496						var Y = typeof U[X] === "function" && U[X];
497						R[W[1]](function() {
498							var Z = Y && Y.apply(this, arguments);
499							if (Z && typeof Z.promise === "function") {
500								Z.promise().done(V.resolve).fail(V.reject).progress(
501									V.notify)
502							} else {
503								V[W[0] + "With"](this === T ? V.promise() : this,
504									Y ? [Z] : arguments)
505							}
506						})
507					});
508					U = null
509				}).promise()
510			};
511			if (S) {
512				S.call(R, R)
513			}
514			return R
515		};
516		v.Deferred.exceptionHook = E.exceptionHook
517	}
518	return v
519});

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.