PageSourceSearch

http://fsm.ai/Content/bootstrap/bootstrap.min.js

js fsm.ai collected 2026-10-05 14:29:51 UTC 33,720 bytes, 733 lines download raw bytes

vendor: 33,720 bytes, lines 1-733
1/*!
2 * Bootstrap v3.0.3 (http://getbootstrap.com)
3 * Copyright 2013 Twitter, Inc.
4 * Licensed under http://www.apache.org/licenses/LICENSE-2.0
5 */
6
7if ("undefined" == typeof jQuery) throw new Error("Bootstrap requires jQuery"); + function(a) {
8	"use strict";
9
10	function b() {
11		var a = document.createElement("bootstrap"),
12			b = {
13				WebkitTransition: "webkitTransitionEnd",
14				MozTransition: "transitionend",
15				OTransition: "oTransitionEnd otransitionend",
16				transition: "transitionend"
17			};
18		for (var c in b)
19			if (void 0 !== a.style[c]) return {
20				end: b[c]
21			}
22	}
23	a.fn.emulateTransitionEnd = function(b) {
24		var c = !1,
25			d = this;
26		a(this).one(a.support.transition.end, function() {
27			c = !0
28		});
29		var e = function() {
30			c || a(d).trigger(a.support.transition.end)
31		};
32		return setTimeout(e, b), this
33	}, a(function() {
34		a.support.transition = b()
35	})
36}(jQuery), + function(a) {
37	"use strict";
38	var b = '[data-dismiss="alert"]',
39		c = function(c) {
40			a(c).on("click", b, this.close)
41		};
42	c.prototype.close = function(b) {
43		function c() {
44			f.trigger("closed.bs.alert").remove()
45		}
46		var d = a(this),
47			e = d.attr("data-target");
48		e || (e = d.attr("href"), e = e && e.replace(/.*(?=#[^\s]*$)/, ""));
49		var f = a(e);
50		b && b.preventDefault(), f.length || (f = d.hasClass("alert") ? d : d.parent()), f.trigger(b = a.Event("close.bs.alert")), b.isDefaultPrevented() || (f.removeClass("in"), a.support.transition && f.hasClass("fade") ? f.one(a.support.transition.end, c).emulateTransitionEnd(150) : c())
51	};
52	var d = a.fn.alert;
53	a.fn.alert = function(b) {
54		return this.each(function() {
55			var d = a(this),
56				e = d.data("bs.alert");
57			e || d.data("bs.alert", e = new c(this)), "string" == typeof b && e[b].call(d)
58		})
59	}, a.fn.alert.Constructor = c, a.fn.alert.noConflict = function() {
60		return a.fn.alert = d, this
61	}, a(document).on("click.bs.alert.data-api", b, c.prototype.close)
62}(jQuery), + function(a) {
63	"use strict";
64	var b = function(c, d) {
65		this.$element = a(c), this.options = a.extend({}, b.DEFAULTS, d)
66	};
67	b.DEFAULTS = {
68		loadingText: "loading..."
69	}, b.prototype.setState = function(a) {
70		var b = "disabled",
71			c = this.$element,
72			d = c.is("input") ? "val" : "html",
73			e = c.data();
74		a += "Text", e.resetText || c.data("resetText", c[d]()), c[d](e[a] || this.options[a]), setTimeout(function() {
75			"loadingText" == a ? c.addClass(b).attr(b, b) : c.removeClass(b).removeAttr(b)
76		}, 0)
77	}, b.prototype.toggle = function() {
78		var a = this.$element.closest('[data-toggle="buttons"]'),
79			b = !0;
80		if (a.length) {
81			var c = this.$element.find("input");
82			"radio" === c.prop("type") && (c.prop("checked") && this.$element.hasClass("active") ? b = !1 : a.find(".active").removeClass("active")), b && c.prop("checked", !this.$element.hasClass("active")).trigger("change")
83		}
84		b && this.$element.toggleClass("active")
85	};
86	var c = a.fn.button;
87	a.fn.button = function(c) {
88		return this.each(function() {
89			var d = a(this),
90				e = d.data("bs.button"),
91				f = "object" == typeof c && c;
92			e || d.data("bs.button", e = new b(this, f)), "toggle" == c ? e.toggle() : c && e.setState(c)
93		})
94	}, a.fn.button.Constructor = b, a.fn.button.noConflict = function() {
95		return a.fn.button = c, this
96	}, a(document).on("click.bs.button.data-api", "[data-toggle^=button]", function(b) {
97		var c = a(b.target);
98		c.hasClass("btn") || (c = c.closest(".btn")), c.button("toggle"), b.preventDefault()
99	})
100}(jQuery), + function(a) {
101	"use strict";
102	var b = function(b, c) {
103		this.$element = a(b), this.$indicators = this.$element.find(".carousel-indicators"), this.options = c, this.paused = this.sliding = this.interval = this.$active = this.$items = null, "hover" == this.options.pause && this.$element.on("mouseenter", a.proxy(this.pause, this)).on("mouseleave", a.proxy(this.cycle, this))
104	};
105	b.DEFAULTS = {
106		interval: 5e3,
107		pause: "hover",
108		wrap: !0
109	}, b.prototype.cycle = function(b) {
110		return b || (this.paused = !1), this.interval && clearInterval(this.interval), this.options.interval && !this.paused && (this.interval = setInterval(a.proxy(this.next, this), this.options.interval)), this
111	}, b.prototype.getActiveIndex = function() {
112		return this.$active = this.$element.find(".item.active"), this.$items = this.$active.parent().children(), this.$items.index(this.$active)
113	}, b.prototype.to = function(b) {
114		var c = this,
115			d = this.getActiveIndex();
116		return b > this.$items.length - 1 || 0 > b ? void 0 : this.sliding ? this.$element.one("slid.bs.carousel", function() {
117			c.to(b)
118		}) : d == b ? this.pause().cycle() : this.slide(b > d ? "next" : "prev", a(this.$items[b]))
119	}, b.prototype.pause = function(b) {
120		return b || (this.paused = !0), this.$element.find(".next, .prev").length && a.support.transition.end && (this.$element.trigger(a.support.transition.end), this.cycle(!0)), this.interval = clearInterval(this.interval), this
121	}, b.prototype.next = function() {
122		return this.sliding ? void 0 : this.slide("next")
123	}, b.prototype.prev = function() {
124		return this.sliding ? void 0 : this.slide("prev")
125	}, b.prototype.slide = function(b, c) {
126		var d = this.$element.find(".item.active"),
127			e = c || d[b](),
128			f = this.interval,
129			g = "next" == b ? "left" : "right",
130			h = "next" == b ? "first" : "last",
131			i = this;
132		if (!e.length) {
133			if (!this.options.wrap) return;
134			e = this.$element.find(".item")[h]()
135		}
136		this.sliding = !0, f && this.pause();
137		var j = a.Event("slide.bs.carousel", {
138			relatedTarget: e[0],
139			direction: g
140		});
141		if (!e.hasClass("active")) {
142			if (this.$indicators.length && (this.$indicators.find(".active").removeClass("active"), this.$element.one("slid.bs.carousel", function() {
143				var b = a(i.$indicators.children()[i.getActiveIndex()]);
144				b && b.addClass("active")
145			})), a.support.transition && this.$element.hasClass("slide")) {
146				if (this.$element.trigger(j), j.isDefaultPrevented()) return;
147				e.addClass(b), e[0].offsetWidth, d.addClass(g), e.addClass(g), d.one(a.support.transition.end, function() {
148					e.removeClass([b, g].join(" ")).addClass("active"), d.removeClass(["active", g].join(" ")), i.sliding = !1, setTimeout(function() {
149						i.$element.trigger("slid.bs.carousel")
150					}, 0)
151				}).emulateTransitionEnd(6000)
152			} else {
153				if (this.$element.trigger(j), j.isDefaultPrevented()) return;
154				d.removeClass("active"), e.addClass("active"), this.sliding = !1, this.$element.trigger("slid.bs.carousel")
155			}
156			return f && this.cycle(), this
157		}
158	};
159	var c = a.fn.carousel;
160	a.fn.carousel = function(c) {
161		return this.each(function() {
162			var d = a(this),
163				e = d.data("bs.carousel"),
164				f = a.extend({}, b.DEFAULTS, d.data(), "object" == typeof c && c),
165				g = "string" == typeof c ? c : f.slide;
166			e || d.data("bs.carousel", e = new b(this, f)), "number" == typeof c ? e.to(c) : g ? e[g]() : f.interval && e.pause().cycle()
167		})
168	}, a.fn.carousel.Constructor = b, a.fn.carousel.noConflict = function() {
169		return a.fn.carousel = c, this
170	}, a(document).on("click.bs.carousel.data-api", "[data-slide], [data-slide-to]", function(b) {
171		var c, d = a(this),
172			e = a(d.attr("data-target") || (c = d.attr("href")) && c.replace(/.*(?=#[^\s]+$)/, "")),
173			f = a.extend({}, e.data(), d.data()),
174			g = d.attr("data-slide-to");
175		g && (f.interval = !1), e.carousel(f), (g = d.attr("data-slide-to")) && e.data("bs.carousel").to(g), b.preventDefault()
176	}), a(window).on("load", function() {
177		a('[data-ride="carousel"]').each(function() {
178			var b = a(this);
179			b.carousel(b.data())
180		})
181	})
182}(jQuery), + function(a) {
183	"use strict";
184	var b = function(c, d) {
185		this.$element = a(c), this.options = a.extend({}, b.DEFAULTS, d), this.transitioning = null, this.options.parent && (this.$parent = a(this.options.parent)), this.options.toggle && this.toggle()
186	};
187	b.DEFAULTS = {
188		toggle: !0
189	}, b.prototype.dimension = function() {
190		var a = this.$element.hasClass("width");
191		return a ? "width" : "height"
192	}, b.prototype.show = function() {
193		if (!this.transitioning && !this.$element.hasClass("in")) {
194			var b = a.Event("show.bs.collapse");
195			if (this.$element.trigger(b), !b.isDefaultPrevented()) {
196				var c = this.$parent && this.$parent.find("> .panel > .in");
197				if (c && c.length) {
198					var d = c.data("bs.collapse");
199					if (d && d.transitioning) return;
200					c.collapse("hide"), d || c.data("bs.collapse", null)
201				}
202				var e = this.dimension();
203				this.$element.removeClass("collapse").addClass("collapsing")[e](0), this.transitioning = 1;
204				var f = function() {
205					this.$element.removeClass("collapsing").addClass("in")[e]("auto"), this.transitioning = 0, this.$element.trigger("shown.bs.collapse")
206				};
207				if (!a.support.transition) return f.call(this);
208				var g = a.camelCase(["scroll", e].join("-"));
209				this.$element.one(a.support.transition.end, a.proxy(f, this)).emulateTransitionEnd(350)[e](this.$element[0][g])
210			}
211		}
212	}, b.prototype.hide = function() {
213		if (!this.transitioning && this.$element.hasClass("in")) {
214			var b = a.Event("hide.bs.collapse");
215			if (this.$element.trigger(b), !b.isDefaultPrevented()) {
216				var c = this.dimension();
217				this.$element[c](this.$element[c]())[0].offsetHeight, this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"), this.transitioning = 1;
218				var d = function() {
219					this.transitioning = 0, this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")
220				};
221				return a.support.transition ? (this.$element[c](0).one(a.support.transition.end, a.proxy(d, this)).emulateTransitionEnd(350), void 0) : d.call(this)
222			}
223		}
224	}, b.prototype.toggle = function() {
225		this[this.$element.hasClass("in") ? "hide" : "show"]()
226	};
227	var c = a.fn.collapse;
228	a.fn.collapse = function(c) {
229		return this.each(function() {
230			var d = a(this),
231				e = d.data("bs.collapse"),
232				f = a.extend({}, b.DEFAULTS, d.data(), "object" == typeof c && c);
233			e || d.data("bs.collapse", e = new b(this, f)), "string" == typeof c && e[c]()
234		})
235	}, a.fn.collapse.Constructor = b, a.fn.collapse.noConflict = function() {
236		return a.fn.collapse = c, this
237	}, a(document).on("click.bs.collapse.data-api", "[data-toggle=collapse]", function(b) {
238		var c, d = a(this),
239			e = d.attr("data-target") || b.preventDefault() || (c = d.attr("href")) && c.replace(/.*(?=#[^\s]+$)/, ""),
240			f = a(e),
241			g = f.data("bs.collapse"),
242			h = g ? "toggle" : d.data(),
243			i = d.attr("data-parent"),
244			j = i && a(i);
245		g && g.transitioning || (j && j.find('[data-toggle=collapse][data-parent="' + i + '"]').not(d).addClass("collapsed"), d[f.hasClass("in") ? "addClass" : "removeClass"]("collapsed")), f.collapse(h)
246	})
247}(jQuery), + function(a) {
248	"use strict";
249
250	function b() {
251		a(d).remove(), a(e).each(function(b) {
252			var d = c(a(this));
253			d.hasClass("open") && (d.trigger(b = a.Event("hide.bs.dropdown")), b.isDefaultPrevented() || d.removeClass("open").trigger("hidden.bs.dropdown"))
254		})
255	}
256
257	function c(b) {
258		var c = b.attr("data-target");
259		c || (c = b.attr("href"), c = c && /#/.test(c) && c.replace(/.*(?=#[^\s]*$)/, ""));
260		var d = c && a(c);
261		return d && d.length ? d : b.parent()
262	}
263	var d = ".dropdown-backdrop",
264		e = "[data-toggle=dropdown]",
265		f = function(b) {
266			a(b).on("click.bs.dropdown", this.toggle)
267		};
268	f.prototype.toggle = function(d) {
269		var e = a(this);
270		if (!e.is(".disabled, :disabled")) {
271			var f = c(e),
272				g = f.hasClass("open");
273			if (b(), !g) {
274				if ("ontouchstart" in document.documentElement && !f.closest(".navbar-nav").length && a('<div class="dropdown-backdrop"/>').insertAfter(a(this)).on("click", b), f.trigger(d = a.Event("show.bs.dropdown")), d.isDefaultPrevented()) return;
275				f.toggleClass("open").trigger("shown.bs.dropdown"), e.focus()
276			}
277			return !1
278		}
279	}, f.prototype.keydown = function(b) {
280		if (/(38|40|27)/.test(b.keyCode)) {
281			var d = a(this);
282			if (b.preventDefault(), b.stopPropagation(), !d.is(".disabled, :disabled")) {
283				var f = c(d),
284					g = f.hasClass("open");
285				if (!g || g && 27 == b.keyCode) return 27 == b.which && f.find(e).focus(), d.click();
286				var h = a("[role=menu] li:not(.divider):visible a", f);
287				if (h.length) {
288					var i = h.index(h.filter(":focus"));
289					38 == b.keyCode && i > 0 && i--, 40 == b.keyCode && i < h.length - 1 && i++, ~i || (i = 0), h.eq(i).focus()
290				}
291			}
292		}
293	};
294	var g = a.fn.dropdown;
295	a.fn.dropdown = function(b) {
296		return this.each(function() {
297			var c = a(this),
298				d = c.data("bs.dropdown");
299			d || c.data("bs.dropdown", d = new f(this)), "string" == typeof b && d[b].call(c)
300		})
301	}, a.fn.dropdown.Constructor = f, a.fn.dropdown.noConflict = function() {
302		return a.fn.dropdown = g, this
303	}, a(document).on("click.bs.dropdown.data-api", b).on("click.bs.dropdown.data-api", ".dropdown form", function(a) {
304		a.stopPropagation()
305	}).on("click.bs.dropdown.data-api", e, f.prototype.toggle).on("keydown.bs.dropdown.data-api", e + ", [role=menu]", f.prototype.keydown)
306}(jQuery), + function(a) {
307	"use strict";
308	var b = function(b, c) {
309		this.options = c, this.$element = a(b), this.$backdrop = this.isShown = null, this.options.remote && this.$element.load(this.options.remote)
310	};
311	b.DEFAULTS = {
312		backdrop: !0,
313		keyboard: !0,
314		show: !0
315	}, b.prototype.toggle = function(a) {
316		return this[this.isShown ? "hide" : "show"](a)
317	}, b.prototype.show = function(b) {
318		var c = this,
319			d = a.Event("show.bs.modal", {
320				relatedTarget: b
321			});
322		this.$element.trigger(d), this.isShown || d.isDefaultPrevented() || (this.isShown = !0, this.escape(), this.$element.on("click.dismiss.modal", '[data-dismiss="modal"]', a.proxy(this.hide, this)), this.backdrop(function() {
323			var d = a.support.transition && c.$element.hasClass("fade");
324			c.$element.parent().length || c.$element.appendTo(document.body), c.$element.show(), d && c.$element[0].offsetWidth, c.$element.addClass("in").attr("aria-hidden", !1), c.enforceFocus();
325			var e = a.Event("shown.bs.modal", {
326				relatedTarget: b
327			});
328			d ? c.$element.find(".modal-dialog").one(a.support.transition.end, function() {
329				c.$element.focus().trigger(e)
330			}).emulateTransitionEnd(300) : c.$element.focus().trigger(e)
331		}))
332	}, b.prototype.hide = function(b) {
333		b && b.preventDefault(), b = a.Event("hide.bs.modal"), this.$element.trigger(b), this.isShown && !b.isDefaultPrevented() && (this.isShown = !1, this.escape(), a(document).off("focusin.bs.modal"), this.$element.removeClass("in").attr("aria-hidden", !0).off("click.dismiss.modal"), a.support.transition && this.$element.hasClass("fade") ? this.$element.one(a.support.transition.end, a.proxy(this.hideModal, this)).emulateTransitionEnd(300) : this.hideModal())
334	}, b.prototype.enforceFocus = function() {
335		a(document).off("focusin.bs.modal").on("focusin.bs.modal", a.proxy(function(a) {
336			this.$element[0] === a.target || this.$element.has(a.target).length || this.$element.focus()
337		}, this))
338	}, b.prototype.escape = function() {
339		this.isShown && this.options.keyboard ? this.$element.on("keyup.dismiss.bs.modal", a.proxy(function(a) {
340			27 == a.which && this.hide()
341		}, this)) : this.isShown || this.$element.off("keyup.dismiss.bs.modal")
342	}, b.prototype.hideModal = function() {
343		var a = this;
344		this.$element.hide(), this.backdrop(function() {
345			a.removeBackdrop(), a.$element.trigger("hidden.bs.modal")
346		})
347	}, b.prototype.removeBackdrop = function() {
348		this.$backdrop && this.$backdrop.remove(), this.$backdrop = null
349	}, b.prototype.backdrop = function(b) {
350		var c = this.$element.hasClass("fade") ? "fade" : "";
351		if (this.isShown && this.options.backdrop) {
352			var d = a.support.transition && c;
353			if (this.$backdrop = a('<div class="modal-backdrop ' + c + '" />').appendTo(document.body), this.$element.on("click.dismiss.modal", a.proxy(function(a) {
354				a.target === a.currentTarget && ("static" == this.options.backdrop ? this.$element[0].focus.call(this.$element[0]) : this.hide.call(this))
355			}, this)), d && this.$backdrop[0].offsetWidth, this.$backdrop.addClass("in"), !b) return;
356			d ? this.$backdrop.one(a.support.transition.end, b).emulateTransitionEnd(150) : b()
357		} else !this.isShown && this.$backdrop ? (this.$backdrop.removeClass("in"), a.support.transition && this.$element.hasClass("fade") ? this.$backdrop.one(a.support.transition.end, b).emulateTransitionEnd(150) : b()) : b && b()
358	};
359	var c = a.fn.modal;
360	a.fn.modal = function(c, d) {
361		return this.each(function() {
362			var e = a(this),
363				f = e.data("bs.modal"),
364				g = a.extend({}, b.DEFAULTS, e.data(), "object" == typeof c && c);
365			f || e.data("bs.modal", f = new b(this, g)), "string" == typeof c ? f[c](d) : g.show && f.show(d)
366		})
367	}, a.fn.modal.Constructor = b, a.fn.modal.noConflict = function() {
368		return a.fn.modal = c, this
369	}, a(document).on("click.bs.modal.data-api", '[data-toggle="modal"]', function(b) {
370		var c = a(this),
371			d = c.attr("href"),
372			e = a(c.attr("data-target") || d && d.replace(/.*(?=#[^\s]+$)/, "")),
373			f = e.data("modal") ? "toggle" : a.extend({
374				remote: !/#/.test(d) && d
375			}, e.data(), c.data());
376		b.preventDefault(), e.modal(f, this).one("hide", function() {
377			c.is(":visible") && c.focus()
378		})
379	}), a(document).on("show.bs.modal", ".modal", function() {
380		a(document.body).addClass("modal-open")
381	}).on("hidden.bs.modal", ".modal", function() {
382		a(document.body).removeClass("modal-open")
383	})
384}(jQuery), + function(a) {
385	"use strict";
386	var b = function(a, b) {
387		this.type = this.options = this.enabled = this.timeout = this.hoverState = this.$element = null, this.init("tooltip", a, b)
388	};
389	b.DEFAULTS = {
390		animation: !0,
391		placement: "top",
392		selector: !1,
393		template: '<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
394		trigger: "hover focus",
395		title: "",
396		delay: 0,
397		html: !1,
398		container: !1
399	}, b.prototype.init = function(b, c, d) {
400		this.enabled = !0, this.type = b, this.$element = a(c), this.options = this.getOptions(d);
401		for (var e = this.options.trigger.split(" "), f = e.length; f--;) {
402			var g = e[f];
403			if ("click" == g) this.$element.on("click." + this.type, this.options.selector, a.proxy(this.toggle, this));
404			else if ("manual" != g) {
405				var h = "hover" == g ? "mouseenter" : "focus",
406					i = "hover" == g ? "mouseleave" : "blur";
407				this.$element.on(h + "." + this.type, this.options.selector, a.proxy(this.enter, this)), this.$element.on(i + "." + this.type, this.options.selector, a.proxy(this.leave, this))
408			}
409		}
410		this.options.selector ? this._options = a.extend({}, this.options, {
411			trigger: "manual",
412			selector: ""
413		}) : this.fixTitle()
414	}, b.prototype.getDefaults = function() {
415		return b.DEFAULTS
416	}, b.prototype.getOptions = function(b) {
417		return b = a.extend({}, this.getDefaults(), this.$element.data(), b), b.delay && "number" == typeof b.delay && (b.delay = {
418			show: b.delay,
419			hide: b.delay
420		}), b
421	}, b.prototype.getDelegateOptions = function() {
422		var b = {},
423			c = this.getDefaults();
424		return this._options && a.each(this._options, function(a, d) {
425			c[a] != d && (b[a] = d)
426		}), b
427	}, b.prototype.enter = function(b) {
428		var c = b instanceof this.constructor ? b : a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs." + this.type);
429		return clearTimeout(c.timeout), c.hoverState = "in", c.options.delay && c.options.delay.show ? (c.timeout = setTimeout(function() {
430			"in" == c.hoverState && c.show()
431		}, c.options.delay.show), void 0) : c.show()
432	}, b.prototype.leave = function(b) {
433		var c = b instanceof this.constructor ? b : a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs." + this.type);
434		return clearTimeout(c.timeout), c.hoverState = "out", c.options.delay && c.options.delay.hide ? (c.timeout = setTimeout(function() {
435			"out" == c.hoverState && c.hide()
436		}, c.options.delay.hide), void 0) : c.hide()
437	}, b.prototype.show = function() {
438		var b = a.Event("show.bs." + this.type);
439		if (this.hasContent() && this.enabled) {
440			if (this.$element.trigger(b), b.isDefaultPrevented()) return;
441			var c = this.tip();
442			this.setContent(), this.options.animation && c.addClass("fade");
443			var d = "function" == typeof this.options.placement ? this.options.placement.call(this, c[0], this.$element[0]) : this.options.placement,
444				e = /\s?auto?\s?/i,
445				f = e.test(d);
446			f && (d = d.replace(e, "") || "top"), c.detach().css({
447				top: 0,
448				left: 0,
449				display: "block"
450			}).addClass(d), this.options.container ? c.appendTo(this.options.container) : c.insertAfter(this.$element);
451			var g = this.getPosition(),
452				h = c[0].offsetWidth,
453				i = c[0].offsetHeight;
454			if (f) {
455				var j = this.$element.parent(),
456					k = d,
457					l = document.documentElement.scrollTop || document.body.scrollTop,
458					m = "body" == this.options.container ? window.innerWidth : j.outerWidth(),
459					n = "body" == this.options.container ? window.innerHeight : j.outerHeight(),
460					o = "body" == this.options.container ? 0 : j.offset().left;
461				d = "bottom" == d && g.top + g.height + i - l > n ? "top" : "top" == d && g.top - l - i < 0 ? "bottom" : "right" == d && g.right + h > m ? "left" : "left" == d && g.left - h < o ? "right" : d, c.removeClass(k).addClass(d)
462			}
463			var p = this.getCalculatedOffset(d, g, h, i);
464			this.applyPlacement(p, d), this.$element.trigger("shown.bs." + this.type)
465		}
466	}, b.prototype.applyPlacement = function(a, b) {
467		var c, d = this.tip(),
468			e = d[0].offsetWidth,
469			f = d[0].offsetHeight,
470			g = parseInt(d.css("margin-top"), 10),
471			h = parseInt(d.css("margin-left"), 10);
472		isNaN(g) && (g = 0), isNaN(h) && (h = 0), a.top = a.top + g, a.left = a.left + h, d.offset(a).addClass("in");
473		var i = d[0].offsetWidth,
474			j = d[0].offsetHeight;
475		if ("top" == b && j != f && (c = !0, a.top = a.top + f - j), /bottom|top/.test(b)) {
476			var k = 0;
477			a.left < 0 && (k = -2 * a.left, a.left = 0, d.offset(a), i = d[0].offsetWidth, j = d[0].offsetHeight), this.replaceArrow(k - e + i, i, "left")
478		} else this.replaceArrow(j - f, j, "top");
479		c && d.offset(a)
480	}, b.prototype.replaceArrow = function(a, b, c) {
481		this.arrow().css(c, a ? 50 * (1 - a / b) + "%" : "")
482	}, b.prototype.setContent = function() {
483		var a = this.tip(),
484			b = this.getTitle();
485		a.find(".tooltip-inner")[this.options.html ? "html" : "text"](b), a.removeClass("fade in top bottom left right")
486	}, b.prototype.hide = function() {
487		function b() {
488			"in" != c.hoverState && d.detach()
489		}
490		var c = this,
491			d = this.tip(),
492			e = a.Event("hide.bs." + this.type);
493		return this.$element.trigger(e), e.isDefaultPrevented() ? void 0 : (d.removeClass("in"), a.support.transition && this.$tip.hasClass("fade") ? d.one(a.support.transition.end, b).emulateTransitionEnd(150) : b(), this.$element.trigger("hidden.bs." + this.type), this)
494	}, b.prototype.fixTitle = function() {
495		var a = this.$element;
496		(a.attr("title") || "string" != typeof a.attr("data-original-title")) && a.attr("data-original-title", a.attr("title") || "").attr("title", "")
497	}, b.prototype.hasContent = function() {
498		return this.getTitle()
499	}, b.prototype.getPosition = function() {
500		var b = this.$element[0];
501		return a.extend({}, "function" == typeof b.getBoundingClientRect ? b.getBoundingClientRect() : {
502			width: b.offsetWidth,
503			height: b.offsetHeight
504		}, this.$element.offset())
505	}, b.prototype.getCalculatedOffset = function(a, b, c, d) {
506		return "bottom" == a ? {
507			top: b.top + b.height,
508			left: b.left + b.width / 2 - c / 2
509		} : "top" == a ? {
510			top: b.top - d,
511			left: b.left + b.width / 2 - c / 2
512		} : "left" == a ? {
513			top: b.top + b.height / 2 - d / 2,
514			left: b.left - c
515		} : {
516			top: b.top + b.height / 2 - d / 2,
517			left: b.left + b.width
518		}
519	}, b.prototype.getTitle = function() {
520		var a, b = this.$element,
521			c = this.options;
522		return a = b.attr("data-original-title") || ("function" == typeof c.title ? c.title.call(b[0]) : c.title)
523	}, b.prototype.tip = function() {
524		return this.$tip = this.$tip || a(this.options.template)
525	}, b.prototype.arrow = function() {
526		return this.$arrow = this.$arrow || this.tip().find(".tooltip-arrow")
527	}, b.prototype.validate = function() {
528		this.$element[0].parentNode || (this.hide(), this.$element = null, this.options = null)
529	}, b.prototype.enable = function() {
530		this.enabled = !0
531	}, b.prototype.disable = function() {
532		this.enabled = !1
533	}, b.prototype.toggleEnabled = function() {
534		this.enabled = !this.enabled
535	}, b.prototype.toggle = function(b) {
536		var c = b ? a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs." + this.type) : this;
537		c.tip().hasClass("in") ? c.leave(c) : c.enter(c)
538	}, b.prototype.destroy = function() {
539		this.hide().$element.off("." + this.type).removeData("bs." + this.type)
540	};
541	var c = a.fn.tooltip;
542	a.fn.tooltip = function(c) {
543		return this.each(function() {
544			var d = a(this),
545				e = d.data("bs.tooltip"),
546				f = "object" == typeof c && c;
547			e || d.data("bs.tooltip", e = new b(this, f)), "string" == typeof c && e[c]()
548		})
549	}, a.fn.tooltip.Constructor = b, a.fn.tooltip.noConflict = function() {
550		return a.fn.tooltip = c, this
551	}
552}(jQuery), + function(a) {
553	"use strict";
554	var b = function(a, b) {
555		this.init("popover", a, b)
556	};
557	if (!a.fn.tooltip) throw new Error("Popover requires tooltip.js");
558	b.DEFAULTS = a.extend({}, a.fn.tooltip.Constructor.DEFAULTS, {
559		placement: "right",
560		trigger: "click",
561		content: "",
562		template: '<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'
563	}), b.prototype = a.extend({}, a.fn.tooltip.Constructor.prototype), b.prototype.constructor = b, b.prototype.getDefaults = function() {
564		return b.DEFAULTS
565	}, b.prototype.setContent = function() {
566		var a = this.tip(),
567			b = this.getTitle(),
568			c = this.getContent();
569		a.find(".popover-title")[this.options.html ? "html" : "text"](b), a.find(".popover-content")[this.options.html ? "html" : "text"](c), a.removeClass("fade top bottom left right in"), a.find(".popover-title").html() || a.find(".popover-title").hide()
570	}, b.prototype.hasContent = function() {
571		return this.getTitle() || this.getContent()
572	}, b.prototype.getContent = function() {
573		var a = this.$element,
574			b = this.options;
575		return a.attr("data-content") || ("function" == typeof b.content ? b.content.call(a[0]) : b.content)
576	}, b.prototype.arrow = function() {
577		return this.$arrow = this.$arrow || this.tip().find(".arrow")
578	}, b.prototype.tip = function() {
579		return this.$tip || (this.$tip = a(this.options.template)), this.$tip
580	};
581	var c = a.fn.popover;
582	a.fn.popover = function(c) {
583		return this.each(function() {
584			var d = a(this),
585				e = d.data("bs.popover"),
586				f = "object" == typeof c && c;
587			e || d.data("bs.popover", e = new b(this, f)), "string" == typeof c && e[c]()
588		})
589	}, a.fn.popover.Constructor = b, a.fn.popover.noConflict = function() {
590		return a.fn.popover = c, this
591	}
592}(jQuery), + function(a) {
593	"use strict";
594
595	function b(c, d) {
596		var e, f = a.proxy(this.process, this);
597		this.$element = a(c).is("body") ? a(window) : a(c), this.$body = a("body"), this.$scrollElement = this.$element.on("scroll.bs.scroll-spy.data-api", f), this.options = a.extend({}, b.DEFAULTS, d), this.selector = (this.options.target || (e = a(c).attr("href")) && e.replace(/.*(?=#[^\s]+$)/, "") || "") + " .nav li > a", this.offsets = a([]), this.targets = a([]), this.activeTarget = null, this.refresh(), this.process()
598	}
599	b.DEFAULTS = {
600		offset: 10
601	}, b.prototype.refresh = function() {
602		var b = this.$element[0] == window ? "offset" : "position";
603		this.offsets = a([]), this.targets = a([]);
604		var c = this;
605		this.$body.find(this.selector).map(function() {
606			var d = a(this),
607				e = d.data("target") || d.attr("href"),
608				f = /^#\w/.test(e) && a(e);
609			return f && f.length && [
610				[f[b]().top + (!a.isWindow(c.$scrollElement.get(0)) && c.$scrollElement.scrollTop()), e]
611			] || null
612		}).sort(function(a, b) {
613			return a[0] - b[0]
614		}).each(function() {
615			c.offsets.push(this[0]), c.targets.push(this[1])
616		})
617	}, b.prototype.process = function() {
618		var a, b = this.$scrollElement.scrollTop() + this.options.offset,
619			c = this.$scrollElement[0].scrollHeight || this.$body[0].scrollHeight,
620			d = c - this.$scrollElement.height(),
621			e = this.offsets,
622			f = this.targets,
623			g = this.activeTarget;
624		if (b >= d) return g != (a = f.last()[0]) && this.activate(a);
625		for (a = e.length; a--;) g != f[a] && b >= e[a] && (!e[a + 1] || b <= e[a + 1]) && this.activate(f[a])
626	}, b.prototype.activate = function(b) {
627		this.activeTarget = b, a(this.selector).parents(".active").removeClass("active");
628		var c = this.selector + '[data-target="' + b + '"],' + this.selector + '[href="' + b + '"]',
629			d = a(c).parents("li").addClass("active");
630		d.parent(".dropdown-menu").length && (d = d.closest("li.dropdown").addClass("active")), d.trigger("activate.bs.scrollspy")
631	};
632	var c = a.fn.scrollspy;
633	a.fn.scrollspy = function(c) {
634		return this.each(function() {
635			var d = a(this),
636				e = d.data("bs.scrollspy"),
637				f = "object" == typeof c && c;
638			e || d.data("bs.scrollspy", e = new b(this, f)), "string" == typeof c && e[c]()
639		})
640	}, a.fn.scrollspy.Constructor = b, a.fn.scrollspy.noConflict = function() {
641		return a.fn.scrollspy = c, this
642	}, a(window).on("load", function() {
643		a('[data-spy="scroll"]').each(function() {
644			var b = a(this);
645			b.scrollspy(b.data())
646		})
647	})
648}(jQuery), + function(a) {
649	"use strict";
650	var b = function(b) {
651		this.element = a(b)
652	};
653	b.prototype.show = function() {
654		var b = this.element,
655			c = b.closest("ul:not(.dropdown-menu)"),
656			d = b.data("target");
657		if (d || (d = b.attr("href"), d = d && d.replace(/.*(?=#[^\s]*$)/, "")), !b.parent("li").hasClass("active")) {
658			var e = c.find(".active:last a")[0],
659				f = a.Event("show.bs.tab", {
660					relatedTarget: e
661				});
662			if (b.trigger(f), !f.isDefaultPrevented()) {
663				var g = a(d);
664				this.activate(b.parent("li"), c), this.activate(g, g.parent(), function() {
665					b.trigger({
666						type: "shown.bs.tab",
667						relatedTarget: e
668					})
669				})
670			}
671		}
672	}, b.prototype.activate = function(b, c, d) {
673		function e() {
674			f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"), b.addClass("active"), g ? (b[0].offsetWidth, b.addClass("in")) : b.removeClass("fade"), b.parent(".dropdown-menu") && b.closest("li.dropdown").addClass("active"), d && d()
675		}
676		var f = c.find("> .active"),
677			g = d && a.support.transition && f.hasClass("fade");
678		g ? f.one(a.support.transition.end, e).emulateTransitionEnd(150) : e(), f.removeClass("in")
679	};
680	var c = a.fn.tab;
681	a.fn.tab = function(c) {
682		return this.each(function() {
683			var d = a(this),
684				e = d.data("bs.tab");
685			e || d.data("bs.tab", e = new b(this)), "string" == typeof c && e[c]()
686		})
687	}, a.fn.tab.Constructor = b, a.fn.tab.noConflict = function() {
688		return a.fn.tab = c, this
689	}, a(document).on("click.bs.tab.data-api", '[data-toggle="tab"], [data-toggle="pill"]', function(b) {
690		b.preventDefault(), a(this).tab("show")
691	})
692}(jQuery), + function(a) {
693	"use strict";
694	var b = function(c, d) {
695		this.options = a.extend({}, b.DEFAULTS, d), this.$window = a(window).on("scroll.bs.affix.data-api", a.proxy(this.checkPosition, this)).on("click.bs.affix.data-api", a.proxy(this.checkPositionWithEventLoop, this)), this.$element = a(c), this.affixed = this.unpin = null, this.checkPosition()
696	};
697	b.RESET = "affix affix-top affix-bottom", b.DEFAULTS = {
698		offset: 0
699	}, b.prototype.checkPositionWithEventLoop = function() {
700		setTimeout(a.proxy(this.checkPosition, this), 1)
701	}, b.prototype.checkPosition = function() {
702		if (this.$element.is(":visible")) {
703			var c = a(document).height(),
704				d = this.$window.scrollTop(),
705				e = this.$element.offset(),
706				f = this.options.offset,
707				g = f.top,
708				h = f.bottom;
709			"object" != typeof f && (h = g = f), "function" == typeof g && (g = f.top()), "function" == typeof h && (h = f.bottom());
710			var i = null != this.unpin && d + this.unpin <= e.top ? !1 : null != h && e.top + this.$element.height() >= c - h ? "bottom" : null != g && g >= d ? "top" : !1;
711			this.affixed !== i && (this.unpin && this.$element.css("top", ""), this.affixed = i, this.unpin = "bottom" == i ? e.top - d : null, this.$element.removeClass(b.RESET).addClass("affix" + (i ? "-" + i : "")), "bottom" == i && this.$element.offset({
712				top: document.body.offsetHeight - h - this.$element.height()
713			}))
714		}
715	};
716	var c = a.fn.affix;
717	a.fn.affix = function(c) {
718		return this.each(function() {
719			var d = a(this),
720				e = d.data("bs.affix"),
721				f = "object" == typeof c && c;
722			e || d.data("bs.affix", e = new b(this, f)), "string" == typeof c && e[c]()
723		})
724	}, a.fn.affix.Constructor = b, a.fn.affix.noConflict = function() {
725		return a.fn.affix = c, this
726	}, a(window).on("load", function() {
727		a('[data-spy="affix"]').each(function() {
728			var b = a(this),
729				c = b.data();
730			c.offset = c.offset || {}, c.offsetBottom && (c.offset.bottom = c.offsetBottom), c.offsetTop && (c.offset.top = c.offsetTop), b.affix(c)
731		})
732	})
733}(jQuery);

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.