民权县12345_前端

bootstrap.min.js 43KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946
  1. /*!
  2. * Bootstrap v3.3.6 (http://getbootstrap.com)
  3. * Copyright 2011-2015 Twitter, Inc.
  4. * Licensed under the MIT license
  5. */
  6. if("undefined" == typeof jQuery) throw new Error("Bootstrap's JavaScript requires jQuery"); + function(a) {
  7. "use strict";
  8. var b = a.fn.jquery.split(" ")[0].split(".");
  9. if(b[0] < 2 && b[1] < 9 || 1 == b[0] && 9 == b[1] && b[2] < 1 || b[0] > 2) throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3")
  10. }(jQuery), + function(a) {
  11. "use strict";
  12. function b() {
  13. var a = document.createElement("bootstrap"),
  14. b = {
  15. WebkitTransition: "webkitTransitionEnd",
  16. MozTransition: "transitionend",
  17. OTransition: "oTransitionEnd otransitionend",
  18. transition: "transitionend"
  19. };
  20. for(var c in b)
  21. if(void 0 !== a.style[c]) return {
  22. end: b[c]
  23. };
  24. return !1
  25. }
  26. a.fn.emulateTransitionEnd = function(b) {
  27. var c = !1,
  28. d = this;
  29. a(this).one("bsTransitionEnd", function() {
  30. c = !0
  31. });
  32. var e = function() {
  33. c || a(d).trigger(a.support.transition.end)
  34. };
  35. return setTimeout(e, b), this
  36. }, a(function() {
  37. a.support.transition = b(), a.support.transition && (a.event.special.bsTransitionEnd = {
  38. bindType: a.support.transition.end,
  39. delegateType: a.support.transition.end,
  40. handle: function(b) {
  41. return a(b.target).is(this) ? b.handleObj.handler.apply(this, arguments) : void 0
  42. }
  43. })
  44. })
  45. }(jQuery), + function(a) {
  46. "use strict";
  47. function b(b) {
  48. return this.each(function() {
  49. var c = a(this),
  50. e = c.data("bs.alert");
  51. e || c.data("bs.alert", e = new d(this)), "string" == typeof b && e[b].call(c)
  52. })
  53. }
  54. var c = '[data-dismiss="alert"]',
  55. d = function(b) {
  56. a(b).on("click", c, this.close)
  57. };
  58. d.VERSION = "3.3.6", d.TRANSITION_DURATION = 150, d.prototype.close = function(b) {
  59. function c() {
  60. g.detach().trigger("closed.bs.alert").remove()
  61. }
  62. var e = a(this),
  63. f = e.attr("data-target");
  64. f || (f = e.attr("href"), f = f && f.replace(/.*(?=#[^\s]*$)/, ""));
  65. var g = a(f);
  66. b && b.preventDefault(), g.length || (g = e.closest(".alert")), g.trigger(b = a.Event("close.bs.alert")), b.isDefaultPrevented() || (g.removeClass("in"), a.support.transition && g.hasClass("fade") ? g.one("bsTransitionEnd", c).emulateTransitionEnd(d.TRANSITION_DURATION) : c())
  67. };
  68. var e = a.fn.alert;
  69. a.fn.alert = b, a.fn.alert.Constructor = d, a.fn.alert.noConflict = function() {
  70. return a.fn.alert = e, this
  71. }, a(document).on("click.bs.alert.data-api", c, d.prototype.close)
  72. }(jQuery), + function(a) {
  73. "use strict";
  74. function b(b) {
  75. return this.each(function() {
  76. var d = a(this),
  77. e = d.data("bs.button"),
  78. f = "object" == typeof b && b;
  79. e || d.data("bs.button", e = new c(this, f)), "toggle" == b ? e.toggle() : b && e.setState(b)
  80. })
  81. }
  82. var c = function(b, d) {
  83. this.$element = a(b), this.options = a.extend({}, c.DEFAULTS, d), this.isLoading = !1
  84. };
  85. c.VERSION = "3.3.6", c.DEFAULTS = {
  86. loadingText: "loading..."
  87. }, c.prototype.setState = function(b) {
  88. var c = "disabled",
  89. d = this.$element,
  90. e = d.is("input") ? "val" : "html",
  91. f = d.data();
  92. b += "Text", null == f.resetText && d.data("resetText", d[e]()), setTimeout(a.proxy(function() {
  93. d[e](null == f[b] ? this.options[b] : f[b]), "loadingText" == b ? (this.isLoading = !0, d.addClass(c).attr(c, c)) : this.isLoading && (this.isLoading = !1, d.removeClass(c).removeAttr(c))
  94. }, this), 0)
  95. }, c.prototype.toggle = function() {
  96. var a = !0,
  97. b = this.$element.closest('[data-toggle="buttons"]');
  98. if(b.length) {
  99. var c = this.$element.find("input");
  100. "radio" == c.prop("type") ? (c.prop("checked") && (a = !1), b.find(".active").removeClass("active"), this.$element.addClass("active")) : "checkbox" == c.prop("type") && (c.prop("checked") !== this.$element.hasClass("active") && (a = !1), this.$element.toggleClass("active")), c.prop("checked", this.$element.hasClass("active")), a && c.trigger("change")
  101. } else this.$element.attr("aria-pressed", !this.$element.hasClass("active")), this.$element.toggleClass("active")
  102. };
  103. var d = a.fn.button;
  104. a.fn.button = b, a.fn.button.Constructor = c, a.fn.button.noConflict = function() {
  105. return a.fn.button = d, this
  106. }, a(document).on("click.bs.button.data-api", '[data-toggle^="button"]', function(c) {
  107. var d = a(c.target);
  108. d.hasClass("btn") || (d = d.closest(".btn")), b.call(d, "toggle"), a(c.target).is('input[type="radio"]') || a(c.target).is('input[type="checkbox"]') || c.preventDefault()
  109. }).on("focus.bs.button.data-api blur.bs.button.data-api", '[data-toggle^="button"]', function(b) {
  110. a(b.target).closest(".btn").toggleClass("focus", /^focus(in)?$/.test(b.type))
  111. })
  112. }(jQuery), + function(a) {
  113. "use strict";
  114. function b(b) {
  115. return this.each(function() {
  116. var d = a(this),
  117. e = d.data("bs.carousel"),
  118. f = a.extend({}, c.DEFAULTS, d.data(), "object" == typeof b && b),
  119. g = "string" == typeof b ? b : f.slide;
  120. e || d.data("bs.carousel", e = new c(this, f)), "number" == typeof b ? e.to(b) : g ? e[g]() : f.interval && e.pause().cycle()
  121. })
  122. }
  123. var c = function(b, c) {
  124. this.$element = a(b), this.$indicators = this.$element.find(".carousel-indicators"), this.options = c, this.paused = null, this.sliding = null, this.interval = null, this.$active = null, this.$items = null, this.options.keyboard && this.$element.on("keydown.bs.carousel", a.proxy(this.keydown, this)), "hover" == this.options.pause && !("ontouchstart" in document.documentElement) && this.$element.on("mouseenter.bs.carousel", a.proxy(this.pause, this)).on("mouseleave.bs.carousel", a.proxy(this.cycle, this))
  125. };
  126. c.VERSION = "3.3.6", c.TRANSITION_DURATION = 600, c.DEFAULTS = {
  127. interval: 5e3,
  128. pause: "hover",
  129. wrap: !0,
  130. keyboard: !0
  131. }, c.prototype.keydown = function(a) {
  132. if(!/input|textarea/i.test(a.target.tagName)) {
  133. switch(a.which) {
  134. case 37:
  135. this.prev();
  136. break;
  137. case 39:
  138. this.next();
  139. break;
  140. default:
  141. return
  142. }
  143. a.preventDefault()
  144. }
  145. }, c.prototype.cycle = function(b) {
  146. 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
  147. }, c.prototype.getItemIndex = function(a) {
  148. return this.$items = a.parent().children(".item"), this.$items.index(a || this.$active)
  149. }, c.prototype.getItemForDirection = function(a, b) {
  150. var c = this.getItemIndex(b),
  151. d = "prev" == a && 0 === c || "next" == a && c == this.$items.length - 1;
  152. if(d && !this.options.wrap) return b;
  153. var e = "prev" == a ? -1 : 1,
  154. f = (c + e) % this.$items.length;
  155. return this.$items.eq(f)
  156. }, c.prototype.to = function(a) {
  157. var b = this,
  158. c = this.getItemIndex(this.$active = this.$element.find(".item.active"));
  159. return a > this.$items.length - 1 || 0 > a ? void 0 : this.sliding ? this.$element.one("slid.bs.carousel", function() {
  160. b.to(a)
  161. }) : c == a ? this.pause().cycle() : this.slide(a > c ? "next" : "prev", this.$items.eq(a))
  162. }, c.prototype.pause = function(b) {
  163. return b || (this.paused = !0), this.$element.find(".next, .prev").length && a.support.transition && (this.$element.trigger(a.support.transition.end), this.cycle(!0)), this.interval = clearInterval(this.interval), this
  164. }, c.prototype.next = function() {
  165. return this.sliding ? void 0 : this.slide("next")
  166. }, c.prototype.prev = function() {
  167. return this.sliding ? void 0 : this.slide("prev")
  168. }, c.prototype.slide = function(b, d) {
  169. var e = this.$element.find(".item.active"),
  170. f = d || this.getItemForDirection(b, e),
  171. g = this.interval,
  172. h = "next" == b ? "left" : "right",
  173. i = this;
  174. if(f.hasClass("active")) return this.sliding = !1;
  175. var j = f[0],
  176. k = a.Event("slide.bs.carousel", {
  177. relatedTarget: j,
  178. direction: h
  179. });
  180. if(this.$element.trigger(k), !k.isDefaultPrevented()) {
  181. if(this.sliding = !0, g && this.pause(), this.$indicators.length) {
  182. this.$indicators.find(".active").removeClass("active");
  183. var l = a(this.$indicators.children()[this.getItemIndex(f)]);
  184. l && l.addClass("active")
  185. }
  186. var m = a.Event("slid.bs.carousel", {
  187. relatedTarget: j,
  188. direction: h
  189. });
  190. return a.support.transition && this.$element.hasClass("slide") ? (f.addClass(b), f[0].offsetWidth, e.addClass(h), f.addClass(h), e.one("bsTransitionEnd", function() {
  191. f.removeClass([b, h].join(" ")).addClass("active"), e.removeClass(["active", h].join(" ")), i.sliding = !1, setTimeout(function() {
  192. i.$element.trigger(m)
  193. }, 0)
  194. }).emulateTransitionEnd(c.TRANSITION_DURATION)) : (e.removeClass("active"), f.addClass("active"), this.sliding = !1, this.$element.trigger(m)), g && this.cycle(), this
  195. }
  196. };
  197. var d = a.fn.carousel;
  198. a.fn.carousel = b, a.fn.carousel.Constructor = c, a.fn.carousel.noConflict = function() {
  199. return a.fn.carousel = d, this
  200. };
  201. var e = function(c) {
  202. var d, e = a(this),
  203. f = a(e.attr("data-target") || (d = e.attr("href")) && d.replace(/.*(?=#[^\s]+$)/, ""));
  204. if(f.hasClass("carousel")) {
  205. var g = a.extend({}, f.data(), e.data()),
  206. h = e.attr("data-slide-to");
  207. h && (g.interval = !1), b.call(f, g), h && f.data("bs.carousel").to(h), c.preventDefault()
  208. }
  209. };
  210. a(document).on("click.bs.carousel.data-api", "[data-slide]", e).on("click.bs.carousel.data-api", "[data-slide-to]", e), a(window).on("load", function() {
  211. a('[data-ride="carousel"]').each(function() {
  212. var c = a(this);
  213. b.call(c, c.data())
  214. })
  215. })
  216. }(jQuery), + function(a) {
  217. "use strict";
  218. function b(b) {
  219. var c, d = b.attr("data-target") || (c = b.attr("href")) && c.replace(/.*(?=#[^\s]+$)/, "");
  220. return a(d)
  221. }
  222. function c(b) {
  223. return this.each(function() {
  224. var c = a(this),
  225. e = c.data("bs.collapse"),
  226. f = a.extend({}, d.DEFAULTS, c.data(), "object" == typeof b && b);
  227. !e && f.toggle && /show|hide/.test(b) && (f.toggle = !1), e || c.data("bs.collapse", e = new d(this, f)), "string" == typeof b && e[b]()
  228. })
  229. }
  230. var d = function(b, c) {
  231. this.$element = a(b), this.options = a.extend({}, d.DEFAULTS, c), this.$trigger = a('[data-toggle="collapse"][href="#' + b.id + '"],[data-toggle="collapse"][data-target="#' + b.id + '"]'), this.transitioning = null, this.options.parent ? this.$parent = this.getParent() : this.addAriaAndCollapsedClass(this.$element, this.$trigger), this.options.toggle && this.toggle()
  232. };
  233. d.VERSION = "3.3.6", d.TRANSITION_DURATION = 350, d.DEFAULTS = {
  234. toggle: !0
  235. }, d.prototype.dimension = function() {
  236. var a = this.$element.hasClass("width");
  237. return a ? "width" : "height"
  238. }, d.prototype.show = function() {
  239. if(!this.transitioning && !this.$element.hasClass("in")) {
  240. var b, e = this.$parent && this.$parent.children(".panel").children(".in, .collapsing");
  241. if(!(e && e.length && (b = e.data("bs.collapse"), b && b.transitioning))) {
  242. var f = a.Event("show.bs.collapse");
  243. if(this.$element.trigger(f), !f.isDefaultPrevented()) {
  244. e && e.length && (c.call(e, "hide"), b || e.data("bs.collapse", null));
  245. var g = this.dimension();
  246. this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded", !0), this.$trigger.removeClass("collapsed").attr("aria-expanded", !0), this.transitioning = 1;
  247. var h = function() {
  248. this.$element.removeClass("collapsing").addClass("collapse in")[g](""), this.transitioning = 0, this.$element.trigger("shown.bs.collapse")
  249. };
  250. if(!a.support.transition) return h.call(this);
  251. var i = a.camelCase(["scroll", g].join("-"));
  252. this.$element.one("bsTransitionEnd", a.proxy(h, this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])
  253. }
  254. }
  255. }
  256. }, d.prototype.hide = function() {
  257. if(!this.transitioning && this.$element.hasClass("in")) {
  258. var b = a.Event("hide.bs.collapse");
  259. if(this.$element.trigger(b), !b.isDefaultPrevented()) {
  260. var c = this.dimension();
  261. this.$element[c](this.$element[c]())[0].offsetHeight, this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded", !1), this.$trigger.addClass("collapsed").attr("aria-expanded", !1), this.transitioning = 1;
  262. var e = function() {
  263. this.transitioning = 0, this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")
  264. };
  265. return a.support.transition ? void this.$element[c](0).one("bsTransitionEnd", a.proxy(e, this)).emulateTransitionEnd(d.TRANSITION_DURATION) : e.call(this)
  266. }
  267. }
  268. }, d.prototype.toggle = function() {
  269. this[this.$element.hasClass("in") ? "hide" : "show"]()
  270. }, d.prototype.getParent = function() {
  271. return a(this.options.parent).find('[data-toggle="collapse"][data-parent="' + this.options.parent + '"]').each(a.proxy(function(c, d) {
  272. var e = a(d);
  273. this.addAriaAndCollapsedClass(b(e), e)
  274. }, this)).end()
  275. }, d.prototype.addAriaAndCollapsedClass = function(a, b) {
  276. var c = a.hasClass("in");
  277. a.attr("aria-expanded", c), b.toggleClass("collapsed", !c).attr("aria-expanded", c)
  278. };
  279. var e = a.fn.collapse;
  280. a.fn.collapse = c, a.fn.collapse.Constructor = d, a.fn.collapse.noConflict = function() {
  281. return a.fn.collapse = e, this
  282. }, a(document).on("click.bs.collapse.data-api", '[data-toggle="collapse"]', function(d) {
  283. var e = a(this);
  284. e.attr("data-target") || d.preventDefault();
  285. var f = b(e),
  286. g = f.data("bs.collapse"),
  287. h = g ? "toggle" : e.data();
  288. c.call(f, h)
  289. })
  290. }(jQuery), + function(a) {
  291. "use strict";
  292. function b(b) {
  293. var c = b.attr("data-target");
  294. c || (c = b.attr("href"), c = c && /#[A-Za-z]/.test(c) && c.replace(/.*(?=#[^\s]*$)/, ""));
  295. var d = c && a(c);
  296. return d && d.length ? d : b.parent()
  297. }
  298. function c(c) {
  299. c && 3 === c.which || (a(e).remove(), a(f).each(function() {
  300. var d = a(this),
  301. e = b(d),
  302. f = {
  303. relatedTarget: this
  304. };
  305. e.hasClass("open") && (c && "click" == c.type && /input|textarea/i.test(c.target.tagName) && a.contains(e[0], c.target) || (e.trigger(c = a.Event("hide.bs.dropdown", f)), c.isDefaultPrevented() || (d.attr("aria-expanded", "false"), e.removeClass("open").trigger(a.Event("hidden.bs.dropdown", f)))))
  306. }))
  307. }
  308. function d(b) {
  309. return this.each(function() {
  310. var c = a(this),
  311. d = c.data("bs.dropdown");
  312. d || c.data("bs.dropdown", d = new g(this)), "string" == typeof b && d[b].call(c)
  313. })
  314. }
  315. var e = ".dropdown-backdrop",
  316. f = '[data-toggle="dropdown"]',
  317. g = function(b) {
  318. a(b).on("click.bs.dropdown", this.toggle)
  319. };
  320. g.VERSION = "3.3.6", g.prototype.toggle = function(d) {
  321. var e = a(this);
  322. if(!e.is(".disabled, :disabled")) {
  323. var f = b(e),
  324. g = f.hasClass("open");
  325. if(c(), !g) {
  326. "ontouchstart" in document.documentElement && !f.closest(".navbar-nav").length && a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click", c);
  327. var h = {
  328. relatedTarget: this
  329. };
  330. if(f.trigger(d = a.Event("show.bs.dropdown", h)), d.isDefaultPrevented()) return;
  331. e.trigger("focus").attr("aria-expanded", "true"), f.toggleClass("open").trigger(a.Event("shown.bs.dropdown", h))
  332. }
  333. return !1
  334. }
  335. }, g.prototype.keydown = function(c) {
  336. if(/(38|40|27|32)/.test(c.which) && !/input|textarea/i.test(c.target.tagName)) {
  337. var d = a(this);
  338. if(c.preventDefault(), c.stopPropagation(), !d.is(".disabled, :disabled")) {
  339. var e = b(d),
  340. g = e.hasClass("open");
  341. if(!g && 27 != c.which || g && 27 == c.which) return 27 == c.which && e.find(f).trigger("focus"), d.trigger("click");
  342. var h = " li:not(.disabled):visible a",
  343. i = e.find(".dropdown-menu" + h);
  344. if(i.length) {
  345. var j = i.index(c.target);
  346. 38 == c.which && j > 0 && j--, 40 == c.which && j < i.length - 1 && j++, ~j || (j = 0), i.eq(j).trigger("focus")
  347. }
  348. }
  349. }
  350. };
  351. var h = a.fn.dropdown;
  352. a.fn.dropdown = d, a.fn.dropdown.Constructor = g, a.fn.dropdown.noConflict = function() {
  353. return a.fn.dropdown = h, this
  354. }, a(document).on("click.bs.dropdown.data-api", c).on("click.bs.dropdown.data-api", ".dropdown form", function(a) {
  355. a.stopPropagation()
  356. }).on("click.bs.dropdown.data-api", f, g.prototype.toggle).on("keydown.bs.dropdown.data-api", f, g.prototype.keydown).on("keydown.bs.dropdown.data-api", ".dropdown-menu", g.prototype.keydown)
  357. }(jQuery), + function(a) {
  358. "use strict";
  359. function b(b, d) {
  360. return this.each(function() {
  361. var e = a(this),
  362. f = e.data("bs.modal"),
  363. g = a.extend({}, c.DEFAULTS, e.data(), "object" == typeof b && b);
  364. f || e.data("bs.modal", f = new c(this, g)), "string" == typeof b ? f[b](d) : g.show && f.show(d)
  365. })
  366. }
  367. var c = function(b, c) {
  368. this.options = c, this.$body = a(document.body), this.$element = a(b), this.$dialog = this.$element.find(".modal-dialog"), this.$backdrop = null, this.isShown = null, this.originalBodyPad = null, this.scrollbarWidth = 0, this.ignoreBackdropClick = !1, this.options.remote && this.$element.find(".modal-content").load(this.options.remote, a.proxy(function() {
  369. this.$element.trigger("loaded.bs.modal")
  370. }, this))
  371. };
  372. c.VERSION = "3.3.6", c.TRANSITION_DURATION = 300, c.BACKDROP_TRANSITION_DURATION = 150, c.DEFAULTS = {
  373. backdrop: !0,
  374. keyboard: !0,
  375. show: !0
  376. }, c.prototype.toggle = function(a) {
  377. return this.isShown ? this.hide() : this.show(a)
  378. }, c.prototype.show = function(b) {
  379. var d = this,
  380. e = a.Event("show.bs.modal", {
  381. relatedTarget: b
  382. });
  383. this.$element.trigger(e), this.isShown || e.isDefaultPrevented() || (this.isShown = !0, this.checkScrollbar(), this.setScrollbar(), this.$body.addClass("modal-open"), this.escape(), this.resize(), this.$element.on("click.dismiss.bs.modal", '[data-dismiss="modal"]', a.proxy(this.hide, this)), this.$dialog.on("mousedown.dismiss.bs.modal", function() {
  384. d.$element.one("mouseup.dismiss.bs.modal", function(b) {
  385. a(b.target).is(d.$element) && (d.ignoreBackdropClick = !0)
  386. })
  387. }), this.backdrop(function() {
  388. var e = a.support.transition && d.$element.hasClass("fade");
  389. d.$element.parent().length || d.$element.appendTo(d.$body), d.$element.show().scrollTop(0), d.adjustDialog(), e && d.$element[0].offsetWidth, d.$element.addClass("in"), d.enforceFocus();
  390. var f = a.Event("shown.bs.modal", {
  391. relatedTarget: b
  392. });
  393. e ? d.$dialog.one("bsTransitionEnd", function() {
  394. d.$element.trigger("focus").trigger(f)
  395. }).emulateTransitionEnd(c.TRANSITION_DURATION) : d.$element.trigger("focus").trigger(f)
  396. }))
  397. }, c.prototype.hide = function(b) {
  398. b && b.preventDefault(), b = a.Event("hide.bs.modal"), this.$element.trigger(b), this.isShown && !b.isDefaultPrevented() && (this.isShown = !1, this.escape(), this.resize(), a(document).off("focusin.bs.modal"), this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"), this.$dialog.off("mousedown.dismiss.bs.modal"), a.support.transition && this.$element.hasClass("fade") ? this.$element.one("bsTransitionEnd", a.proxy(this.hideModal, this)).emulateTransitionEnd(c.TRANSITION_DURATION) : this.hideModal())
  399. }, c.prototype.enforceFocus = function() {
  400. a(document).off("focusin.bs.modal").on("focusin.bs.modal", a.proxy(function(a) {
  401. this.$element[0] === a.target || this.$element.has(a.target).length || this.$element.trigger("focus")
  402. }, this))
  403. }, c.prototype.escape = function() {
  404. this.isShown && this.options.keyboard ? this.$element.on("keydown.dismiss.bs.modal", a.proxy(function(a) {
  405. 27 == a.which && this.hide()
  406. }, this)) : this.isShown || this.$element.off("keydown.dismiss.bs.modal")
  407. }, c.prototype.resize = function() {
  408. this.isShown ? a(window).on("resize.bs.modal", a.proxy(this.handleUpdate, this)) : a(window).off("resize.bs.modal")
  409. }, c.prototype.hideModal = function() {
  410. var a = this;
  411. this.$element.hide(), this.backdrop(function() {
  412. a.$body.removeClass("modal-open"), a.resetAdjustments(), a.resetScrollbar(), a.$element.trigger("hidden.bs.modal")
  413. })
  414. }, c.prototype.removeBackdrop = function() {
  415. this.$backdrop && this.$backdrop.remove(), this.$backdrop = null
  416. }, c.prototype.backdrop = function(b) {
  417. var d = this,
  418. e = this.$element.hasClass("fade") ? "fade" : "";
  419. if(this.isShown && this.options.backdrop) {
  420. var f = a.support.transition && e;
  421. if(this.$backdrop = a(document.createElement("div")).addClass("modal-backdrop " + e).appendTo(this.$body), this.$element.on("click.dismiss.bs.modal", a.proxy(function(a) {
  422. return this.ignoreBackdropClick ? void(this.ignoreBackdropClick = !1) : void(a.target === a.currentTarget && ("static" == this.options.backdrop ? this.$element[0].focus() : this.hide()))
  423. }, this)), f && this.$backdrop[0].offsetWidth, this.$backdrop.addClass("in"), !b) return;
  424. f ? this.$backdrop.one("bsTransitionEnd", b).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION) : b()
  425. } else if(!this.isShown && this.$backdrop) {
  426. this.$backdrop.removeClass("in");
  427. var g = function() {
  428. d.removeBackdrop(), b && b()
  429. };
  430. a.support.transition && this.$element.hasClass("fade") ? this.$backdrop.one("bsTransitionEnd", g).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION) : g()
  431. } else b && b()
  432. }, c.prototype.handleUpdate = function() {
  433. this.adjustDialog()
  434. }, c.prototype.adjustDialog = function() {
  435. var a = this.$element[0].scrollHeight > document.documentElement.clientHeight;
  436. this.$element.css({
  437. paddingLeft: !this.bodyIsOverflowing && a ? this.scrollbarWidth : "",
  438. paddingRight: this.bodyIsOverflowing && !a ? this.scrollbarWidth : ""
  439. })
  440. }, c.prototype.resetAdjustments = function() {
  441. this.$element.css({
  442. paddingLeft: "",
  443. paddingRight: ""
  444. })
  445. }, c.prototype.checkScrollbar = function() {
  446. var a = window.innerWidth;
  447. if(!a) {
  448. var b = document.documentElement.getBoundingClientRect();
  449. a = b.right - Math.abs(b.left)
  450. }
  451. this.bodyIsOverflowing = document.body.clientWidth < a, this.scrollbarWidth = this.measureScrollbar()
  452. }, c.prototype.setScrollbar = function() {
  453. var a = parseInt(this.$body.css("padding-right") || 0, 10);
  454. this.originalBodyPad = document.body.style.paddingRight || "", this.bodyIsOverflowing && this.$body.css("padding-right", a + this.scrollbarWidth)
  455. }, c.prototype.resetScrollbar = function() {
  456. this.$body.css("padding-right", this.originalBodyPad)
  457. }, c.prototype.measureScrollbar = function() {
  458. var a = document.createElement("div");
  459. a.className = "modal-scrollbar-measure", this.$body.append(a);
  460. var b = a.offsetWidth - a.clientWidth;
  461. return this.$body[0].removeChild(a), b
  462. };
  463. var d = a.fn.modal;
  464. a.fn.modal = b, a.fn.modal.Constructor = c, a.fn.modal.noConflict = function() {
  465. return a.fn.modal = d, this
  466. }, a(document).on("click.bs.modal.data-api", '[data-toggle="modal"]', function(c) {
  467. var d = a(this),
  468. e = d.attr("href"),
  469. f = a(d.attr("data-target") || e && e.replace(/.*(?=#[^\s]+$)/, "")),
  470. g = f.data("bs.modal") ? "toggle" : a.extend({
  471. remote: !/#/.test(e) && e
  472. }, f.data(), d.data());
  473. d.is("a") && c.preventDefault(), f.one("show.bs.modal", function(a) {
  474. a.isDefaultPrevented() || f.one("hidden.bs.modal", function() {
  475. d.is(":visible") && d.trigger("focus")
  476. })
  477. }), b.call(f, g, this)
  478. })
  479. }(jQuery), + function(a) {
  480. "use strict";
  481. function b(b) {
  482. return this.each(function() {
  483. var d = a(this),
  484. e = d.data("bs.tooltip"),
  485. f = "object" == typeof b && b;
  486. (e || !/destroy|hide/.test(b)) && (e || d.data("bs.tooltip", e = new c(this, f)), "string" == typeof b && e[b]())
  487. })
  488. }
  489. var c = function(a, b) {
  490. this.type = null, this.options = null, this.enabled = null, this.timeout = null, this.hoverState = null, this.$element = null, this.inState = null, this.init("tooltip", a, b)
  491. };
  492. c.VERSION = "3.3.6", c.TRANSITION_DURATION = 150, c.DEFAULTS = {
  493. animation: !0,
  494. placement: "top",
  495. selector: !1,
  496. template: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
  497. trigger: "hover focus",
  498. title: "",
  499. delay: 0,
  500. html: !1,
  501. container: !1,
  502. viewport: {
  503. selector: "body",
  504. padding: 0
  505. }
  506. }, c.prototype.init = function(b, c, d) {
  507. if(this.enabled = !0, this.type = b, this.$element = a(c), this.options = this.getOptions(d), this.$viewport = this.options.viewport && a(a.isFunction(this.options.viewport) ? this.options.viewport.call(this, this.$element) : this.options.viewport.selector || this.options.viewport), this.inState = {
  508. click: !1,
  509. hover: !1,
  510. focus: !1
  511. }, this.$element[0] instanceof document.constructor && !this.options.selector) throw new Error("`selector` option must be specified when initializing " + this.type + " on the window.document object!");
  512. for(var e = this.options.trigger.split(" "), f = e.length; f--;) {
  513. var g = e[f];
  514. if("click" == g) this.$element.on("click." + this.type, this.options.selector, a.proxy(this.toggle, this));
  515. else if("manual" != g) {
  516. var h = "hover" == g ? "mouseenter" : "focusin",
  517. i = "hover" == g ? "mouseleave" : "focusout";
  518. 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))
  519. }
  520. }
  521. this.options.selector ? this._options = a.extend({}, this.options, {
  522. trigger: "manual",
  523. selector: ""
  524. }) : this.fixTitle()
  525. }, c.prototype.getDefaults = function() {
  526. return c.DEFAULTS
  527. }, c.prototype.getOptions = function(b) {
  528. return b = a.extend({}, this.getDefaults(), this.$element.data(), b), b.delay && "number" == typeof b.delay && (b.delay = {
  529. show: b.delay,
  530. hide: b.delay
  531. }), b
  532. }, c.prototype.getDelegateOptions = function() {
  533. var b = {},
  534. c = this.getDefaults();
  535. return this._options && a.each(this._options, function(a, d) {
  536. c[a] != d && (b[a] = d)
  537. }), b
  538. }, c.prototype.enter = function(b) {
  539. var c = b instanceof this.constructor ? b : a(b.currentTarget).data("bs." + this.type);
  540. return c || (c = new this.constructor(b.currentTarget, this.getDelegateOptions()), a(b.currentTarget).data("bs." + this.type, c)), b instanceof a.Event && (c.inState["focusin" == b.type ? "focus" : "hover"] = !0), c.tip().hasClass("in") || "in" == c.hoverState ? void(c.hoverState = "in") : (clearTimeout(c.timeout), c.hoverState = "in", c.options.delay && c.options.delay.show ? void(c.timeout = setTimeout(function() {
  541. "in" == c.hoverState && c.show()
  542. }, c.options.delay.show)) : c.show())
  543. }, c.prototype.isInStateTrue = function() {
  544. for(var a in this.inState)
  545. if(this.inState[a]) return !0;
  546. return !1
  547. }, c.prototype.leave = function(b) {
  548. var c = b instanceof this.constructor ? b : a(b.currentTarget).data("bs." + this.type);
  549. return c || (c = new this.constructor(b.currentTarget, this.getDelegateOptions()), a(b.currentTarget).data("bs." + this.type, c)), b instanceof a.Event && (c.inState["focusout" == b.type ? "focus" : "hover"] = !1), c.isInStateTrue() ? void 0 : (clearTimeout(c.timeout), c.hoverState = "out", c.options.delay && c.options.delay.hide ? void(c.timeout = setTimeout(function() {
  550. "out" == c.hoverState && c.hide()
  551. }, c.options.delay.hide)) : c.hide())
  552. }, c.prototype.show = function() {
  553. var b = a.Event("show.bs." + this.type);
  554. if(this.hasContent() && this.enabled) {
  555. this.$element.trigger(b);
  556. var d = a.contains(this.$element[0].ownerDocument.documentElement, this.$element[0]);
  557. if(b.isDefaultPrevented() || !d) return;
  558. var e = this,
  559. f = this.tip(),
  560. g = this.getUID(this.type);
  561. this.setContent(), f.attr("id", g), this.$element.attr("aria-describedby", g), this.options.animation && f.addClass("fade");
  562. var h = "function" == typeof this.options.placement ? this.options.placement.call(this, f[0], this.$element[0]) : this.options.placement,
  563. i = /\s?auto?\s?/i,
  564. j = i.test(h);
  565. j && (h = h.replace(i, "") || "top"), f.detach().css({
  566. top: 0,
  567. left: 0,
  568. display: "block"
  569. }).addClass(h).data("bs." + this.type, this), this.options.container ? f.appendTo(this.options.container) : f.insertAfter(this.$element), this.$element.trigger("inserted.bs." + this.type);
  570. var k = this.getPosition(),
  571. l = f[0].offsetWidth,
  572. m = f[0].offsetHeight;
  573. if(j) {
  574. var n = h,
  575. o = this.getPosition(this.$viewport);
  576. h = "bottom" == h && k.bottom + m > o.bottom ? "top" : "top" == h && k.top - m < o.top ? "bottom" : "right" == h && k.right + l > o.width ? "left" : "left" == h && k.left - l < o.left ? "right" : h, f.removeClass(n).addClass(h)
  577. }
  578. var p = this.getCalculatedOffset(h, k, l, m);
  579. this.applyPlacement(p, h);
  580. var q = function() {
  581. var a = e.hoverState;
  582. e.$element.trigger("shown.bs." + e.type), e.hoverState = null, "out" == a && e.leave(e)
  583. };
  584. a.support.transition && this.$tip.hasClass("fade") ? f.one("bsTransitionEnd", q).emulateTransitionEnd(c.TRANSITION_DURATION) : q()
  585. }
  586. }, c.prototype.applyPlacement = function(b, c) {
  587. var d = this.tip(),
  588. e = d[0].offsetWidth,
  589. f = d[0].offsetHeight,
  590. g = parseInt(d.css("margin-top"), 10),
  591. h = parseInt(d.css("margin-left"), 10);
  592. isNaN(g) && (g = 0), isNaN(h) && (h = 0), b.top += g, b.left += h, a.offset.setOffset(d[0], a.extend({
  593. using: function(a) {
  594. d.css({
  595. top: Math.round(a.top),
  596. left: Math.round(a.left)
  597. })
  598. }
  599. }, b), 0), d.addClass("in");
  600. var i = d[0].offsetWidth,
  601. j = d[0].offsetHeight;
  602. "top" == c && j != f && (b.top = b.top + f - j);
  603. var k = this.getViewportAdjustedDelta(c, b, i, j);
  604. k.left ? b.left += k.left : b.top += k.top;
  605. var l = /top|bottom/.test(c),
  606. m = l ? 2 * k.left - e + i : 2 * k.top - f + j,
  607. n = l ? "offsetWidth" : "offsetHeight";
  608. d.offset(b), this.replaceArrow(m, d[0][n], l)
  609. }, c.prototype.replaceArrow = function(a, b, c) {
  610. this.arrow().css(c ? "left" : "top", 50 * (1 - a / b) + "%").css(c ? "top" : "left", "")
  611. }, c.prototype.setContent = function() {
  612. var a = this.tip(),
  613. b = this.getTitle();
  614. a.find(".tooltip-inner")[this.options.html ? "html" : "text"](b), a.removeClass("fade in top bottom left right")
  615. }, c.prototype.hide = function(b) {
  616. function d() {
  617. "in" != e.hoverState && f.detach(), e.$element.removeAttr("aria-describedby").trigger("hidden.bs." + e.type), b && b()
  618. }
  619. var e = this,
  620. f = a(this.$tip),
  621. g = a.Event("hide.bs." + this.type);
  622. return this.$element.trigger(g), g.isDefaultPrevented() ? void 0 : (f.removeClass("in"), a.support.transition && f.hasClass("fade") ? f.one("bsTransitionEnd", d).emulateTransitionEnd(c.TRANSITION_DURATION) : d(), this.hoverState = null, this)
  623. }, c.prototype.fixTitle = function() {
  624. var a = this.$element;
  625. (a.attr("title") || "string" != typeof a.attr("data-original-title")) && a.attr("data-original-title", a.attr("title") || "").attr("title", "")
  626. }, c.prototype.hasContent = function() {
  627. return this.getTitle()
  628. }, c.prototype.getPosition = function(b) {
  629. b = b || this.$element;
  630. var c = b[0],
  631. d = "BODY" == c.tagName,
  632. e = c.getBoundingClientRect();
  633. null == e.width && (e = a.extend({}, e, {
  634. width: e.right - e.left,
  635. height: e.bottom - e.top
  636. }));
  637. var f = d ? {
  638. top: 0,
  639. left: 0
  640. } : b.offset(),
  641. g = {
  642. scroll: d ? document.documentElement.scrollTop || document.body.scrollTop : b.scrollTop()
  643. },
  644. h = d ? {
  645. width: a(window).width(),
  646. height: a(window).height()
  647. } : null;
  648. return a.extend({}, e, g, h, f)
  649. }, c.prototype.getCalculatedOffset = function(a, b, c, d) {
  650. return "bottom" == a ? {
  651. top: b.top + b.height,
  652. left: b.left + b.width / 2 - c / 2
  653. } : "top" == a ? {
  654. top: b.top - d,
  655. left: b.left + b.width / 2 - c / 2
  656. } : "left" == a ? {
  657. top: b.top + b.height / 2 - d / 2,
  658. left: b.left - c
  659. } : {
  660. top: b.top + b.height / 2 - d / 2,
  661. left: b.left + b.width
  662. }
  663. }, c.prototype.getViewportAdjustedDelta = function(a, b, c, d) {
  664. var e = {
  665. top: 0,
  666. left: 0
  667. };
  668. if(!this.$viewport) return e;
  669. var f = this.options.viewport && this.options.viewport.padding || 0,
  670. g = this.getPosition(this.$viewport);
  671. if(/right|left/.test(a)) {
  672. var h = b.top - f - g.scroll,
  673. i = b.top + f - g.scroll + d;
  674. h < g.top ? e.top = g.top - h : i > g.top + g.height && (e.top = g.top + g.height - i)
  675. } else {
  676. var j = b.left - f,
  677. k = b.left + f + c;
  678. j < g.left ? e.left = g.left - j : k > g.right && (e.left = g.left + g.width - k)
  679. }
  680. return e
  681. }, c.prototype.getTitle = function() {
  682. var a, b = this.$element,
  683. c = this.options;
  684. return a = b.attr("data-original-title") || ("function" == typeof c.title ? c.title.call(b[0]) : c.title)
  685. }, c.prototype.getUID = function(a) {
  686. do a += ~~(1e6 * Math.random()); while (document.getElementById(a));
  687. return a
  688. }, c.prototype.tip = function() {
  689. if(!this.$tip && (this.$tip = a(this.options.template), 1 != this.$tip.length)) throw new Error(this.type + " `template` option must consist of exactly 1 top-level element!");
  690. return this.$tip
  691. }, c.prototype.arrow = function() {
  692. return this.$arrow = this.$arrow || this.tip().find(".tooltip-arrow")
  693. }, c.prototype.enable = function() {
  694. this.enabled = !0
  695. }, c.prototype.disable = function() {
  696. this.enabled = !1
  697. }, c.prototype.toggleEnabled = function() {
  698. this.enabled = !this.enabled
  699. }, c.prototype.toggle = function(b) {
  700. var c = this;
  701. b && (c = a(b.currentTarget).data("bs." + this.type), c || (c = new this.constructor(b.currentTarget, this.getDelegateOptions()), a(b.currentTarget).data("bs." + this.type, c))), b ? (c.inState.click = !c.inState.click, c.isInStateTrue() ? c.enter(c) : c.leave(c)) : c.tip().hasClass("in") ? c.leave(c) : c.enter(c)
  702. }, c.prototype.destroy = function() {
  703. var a = this;
  704. clearTimeout(this.timeout), this.hide(function() {
  705. a.$element.off("." + a.type).removeData("bs." + a.type), a.$tip && a.$tip.detach(), a.$tip = null, a.$arrow = null, a.$viewport = null
  706. })
  707. };
  708. var d = a.fn.tooltip;
  709. a.fn.tooltip = b, a.fn.tooltip.Constructor = c, a.fn.tooltip.noConflict = function() {
  710. return a.fn.tooltip = d, this
  711. }
  712. }(jQuery), + function(a) {
  713. "use strict";
  714. function b(b) {
  715. return this.each(function() {
  716. var d = a(this),
  717. e = d.data("bs.popover"),
  718. f = "object" == typeof b && b;
  719. (e || !/destroy|hide/.test(b)) && (e || d.data("bs.popover", e = new c(this, f)), "string" == typeof b && e[b]())
  720. })
  721. }
  722. var c = function(a, b) {
  723. this.init("popover", a, b)
  724. };
  725. if(!a.fn.tooltip) throw new Error("Popover requires tooltip.js");
  726. c.VERSION = "3.3.6", c.DEFAULTS = a.extend({}, a.fn.tooltip.Constructor.DEFAULTS, {
  727. placement: "right",
  728. trigger: "click",
  729. content: "",
  730. template: '<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'
  731. }), c.prototype = a.extend({}, a.fn.tooltip.Constructor.prototype), c.prototype.constructor = c, c.prototype.getDefaults = function() {
  732. return c.DEFAULTS
  733. }, c.prototype.setContent = function() {
  734. var a = this.tip(),
  735. b = this.getTitle(),
  736. c = this.getContent();
  737. a.find(".popover-title")[this.options.html ? "html" : "text"](b), a.find(".popover-content").children().detach().end()[this.options.html ? "string" == typeof c ? "html" : "append" : "text"](c), a.removeClass("fade top bottom left right in"), a.find(".popover-title").html() || a.find(".popover-title").hide()
  738. }, c.prototype.hasContent = function() {
  739. return this.getTitle() || this.getContent()
  740. }, c.prototype.getContent = function() {
  741. var a = this.$element,
  742. b = this.options;
  743. return a.attr("data-content") || ("function" == typeof b.content ? b.content.call(a[0]) : b.content)
  744. }, c.prototype.arrow = function() {
  745. return this.$arrow = this.$arrow || this.tip().find(".arrow")
  746. };
  747. var d = a.fn.popover;
  748. a.fn.popover = b, a.fn.popover.Constructor = c, a.fn.popover.noConflict = function() {
  749. return a.fn.popover = d, this
  750. }
  751. }(jQuery), + function(a) {
  752. "use strict";
  753. function b(c, d) {
  754. this.$body = a(document.body), this.$scrollElement = a(a(c).is(document.body) ? window : c), this.options = a.extend({}, b.DEFAULTS, d), this.selector = (this.options.target || "") + " .nav li > a", this.offsets = [], this.targets = [], this.activeTarget = null, this.scrollHeight = 0, this.$scrollElement.on("scroll.bs.scrollspy", a.proxy(this.process, this)), this.refresh(), this.process()
  755. }
  756. function c(c) {
  757. return this.each(function() {
  758. var d = a(this),
  759. e = d.data("bs.scrollspy"),
  760. f = "object" == typeof c && c;
  761. e || d.data("bs.scrollspy", e = new b(this, f)), "string" == typeof c && e[c]()
  762. })
  763. }
  764. b.VERSION = "3.3.6", b.DEFAULTS = {
  765. offset: 10
  766. }, b.prototype.getScrollHeight = function() {
  767. return this.$scrollElement[0].scrollHeight || Math.max(this.$body[0].scrollHeight, document.documentElement.scrollHeight)
  768. }, b.prototype.refresh = function() {
  769. var b = this,
  770. c = "offset",
  771. d = 0;
  772. this.offsets = [], this.targets = [], this.scrollHeight = this.getScrollHeight(), a.isWindow(this.$scrollElement[0]) || (c = "position", d = this.$scrollElement.scrollTop()), this.$body.find(this.selector).map(function() {
  773. var b = a(this),
  774. e = b.data("target") || b.attr("href"),
  775. f = /^#./.test(e) && a(e);
  776. return f && f.length && f.is(":visible") && [
  777. [f[c]().top + d, e]
  778. ] || null
  779. }).sort(function(a, b) {
  780. return a[0] - b[0]
  781. }).each(function() {
  782. b.offsets.push(this[0]), b.targets.push(this[1])
  783. })
  784. }, b.prototype.process = function() {
  785. var a, b = this.$scrollElement.scrollTop() + this.options.offset,
  786. c = this.getScrollHeight(),
  787. d = this.options.offset + c - this.$scrollElement.height(),
  788. e = this.offsets,
  789. f = this.targets,
  790. g = this.activeTarget;
  791. if(this.scrollHeight != c && this.refresh(), b >= d) return g != (a = f[f.length - 1]) && this.activate(a);
  792. if(g && b < e[0]) return this.activeTarget = null, this.clear();
  793. for(a = e.length; a--;) g != f[a] && b >= e[a] && (void 0 === e[a + 1] || b < e[a + 1]) && this.activate(f[a])
  794. }, b.prototype.activate = function(b) {
  795. this.activeTarget = b, this.clear();
  796. var c = this.selector + '[data-target="' + b + '"],' + this.selector + '[href="' + b + '"]',
  797. d = a(c).parents("li").addClass("active");
  798. d.parent(".dropdown-menu").length && (d = d.closest("li.dropdown").addClass("active")), d.trigger("activate.bs.scrollspy")
  799. }, b.prototype.clear = function() {
  800. a(this.selector).parentsUntil(this.options.target, ".active").removeClass("active")
  801. };
  802. var d = a.fn.scrollspy;
  803. a.fn.scrollspy = c, a.fn.scrollspy.Constructor = b, a.fn.scrollspy.noConflict = function() {
  804. return a.fn.scrollspy = d, this
  805. }, a(window).on("load.bs.scrollspy.data-api", function() {
  806. a('[data-spy="scroll"]').each(function() {
  807. var b = a(this);
  808. c.call(b, b.data())
  809. })
  810. })
  811. }(jQuery), + function(a) {
  812. "use strict";
  813. function b(b) {
  814. return this.each(function() {
  815. var d = a(this),
  816. e = d.data("bs.tab");
  817. e || d.data("bs.tab", e = new c(this)), "string" == typeof b && e[b]()
  818. })
  819. }
  820. var c = function(b) {
  821. this.element = a(b)
  822. };
  823. c.VERSION = "3.3.6", c.TRANSITION_DURATION = 150, c.prototype.show = function() {
  824. var b = this.element,
  825. c = b.closest("ul:not(.dropdown-menu)"),
  826. d = b.data("target");
  827. if(d || (d = b.attr("href"), d = d && d.replace(/.*(?=#[^\s]*$)/, "")), !b.parent("li").hasClass("active")) {
  828. var e = c.find(".active:last a"),
  829. f = a.Event("hide.bs.tab", {
  830. relatedTarget: b[0]
  831. }),
  832. g = a.Event("show.bs.tab", {
  833. relatedTarget: e[0]
  834. });
  835. if(e.trigger(f), b.trigger(g), !g.isDefaultPrevented() && !f.isDefaultPrevented()) {
  836. var h = a(d);
  837. this.activate(b.closest("li"), c), this.activate(h, h.parent(), function() {
  838. e.trigger({
  839. type: "hidden.bs.tab",
  840. relatedTarget: b[0]
  841. }), b.trigger({
  842. type: "shown.bs.tab",
  843. relatedTarget: e[0]
  844. })
  845. })
  846. }
  847. }
  848. }, c.prototype.activate = function(b, d, e) {
  849. function f() {
  850. g.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded", !1), b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded", !0), h ? (b[0].offsetWidth, b.addClass("in")) : b.removeClass("fade"), b.parent(".dropdown-menu").length && b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded", !0), e && e()
  851. }
  852. var g = d.find("> .active"),
  853. h = e && a.support.transition && (g.length && g.hasClass("fade") || !!d.find("> .fade").length);
  854. g.length && h ? g.one("bsTransitionEnd", f).emulateTransitionEnd(c.TRANSITION_DURATION) : f(), g.removeClass("in")
  855. };
  856. var d = a.fn.tab;
  857. a.fn.tab = b, a.fn.tab.Constructor = c, a.fn.tab.noConflict = function() {
  858. return a.fn.tab = d, this
  859. };
  860. var e = function(c) {
  861. c.preventDefault(), b.call(a(this), "show")
  862. };
  863. a(document).on("click.bs.tab.data-api", '[data-toggle="tab"]', e).on("click.bs.tab.data-api", '[data-toggle="pill"]', e)
  864. }(jQuery), + function(a) {
  865. "use strict";
  866. function b(b) {
  867. return this.each(function() {
  868. var d = a(this),
  869. e = d.data("bs.affix"),
  870. f = "object" == typeof b && b;
  871. e || d.data("bs.affix", e = new c(this, f)), "string" == typeof b && e[b]()
  872. })
  873. }
  874. var c = function(b, d) {
  875. this.options = a.extend({}, c.DEFAULTS, d), this.$target = a(this.options.target).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(b), this.affixed = null, this.unpin = null, this.pinnedOffset = null, this.checkPosition()
  876. };
  877. c.VERSION = "3.3.6", c.RESET = "affix affix-top affix-bottom", c.DEFAULTS = {
  878. offset: 0,
  879. target: window
  880. }, c.prototype.getState = function(a, b, c, d) {
  881. var e = this.$target.scrollTop(),
  882. f = this.$element.offset(),
  883. g = this.$target.height();
  884. if(null != c && "top" == this.affixed) return c > e ? "top" : !1;
  885. if("bottom" == this.affixed) return null != c ? e + this.unpin <= f.top ? !1 : "bottom" : a - d >= e + g ? !1 : "bottom";
  886. var h = null == this.affixed,
  887. i = h ? e : f.top,
  888. j = h ? g : b;
  889. return null != c && c >= e ? "top" : null != d && i + j >= a - d ? "bottom" : !1
  890. }, c.prototype.getPinnedOffset = function() {
  891. if(this.pinnedOffset) return this.pinnedOffset;
  892. this.$element.removeClass(c.RESET).addClass("affix");
  893. var a = this.$target.scrollTop(),
  894. b = this.$element.offset();
  895. return this.pinnedOffset = b.top - a
  896. }, c.prototype.checkPositionWithEventLoop = function() {
  897. setTimeout(a.proxy(this.checkPosition, this), 1)
  898. }, c.prototype.checkPosition = function() {
  899. if(this.$element.is(":visible")) {
  900. var b = this.$element.height(),
  901. d = this.options.offset,
  902. e = d.top,
  903. f = d.bottom,
  904. g = Math.max(a(document).height(), a(document.body).height());
  905. "object" != typeof d && (f = e = d), "function" == typeof e && (e = d.top(this.$element)), "function" == typeof f && (f = d.bottom(this.$element));
  906. var h = this.getState(g, b, e, f);
  907. if(this.affixed != h) {
  908. null != this.unpin && this.$element.css("top", "");
  909. var i = "affix" + (h ? "-" + h : ""),
  910. j = a.Event(i + ".bs.affix");
  911. if(this.$element.trigger(j), j.isDefaultPrevented()) return;
  912. this.affixed = h, this.unpin = "bottom" == h ? this.getPinnedOffset() : null, this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix", "affixed") + ".bs.affix")
  913. }
  914. "bottom" == h && this.$element.offset({
  915. top: g - b - f
  916. })
  917. }
  918. };
  919. var d = a.fn.affix;
  920. a.fn.affix = b, a.fn.affix.Constructor = c, a.fn.affix.noConflict = function() {
  921. return a.fn.affix = d, this
  922. }, a(window).on("load", function() {
  923. a('[data-spy="affix"]').each(function() {
  924. var c = a(this),
  925. d = c.data();
  926. d.offset = d.offset || {}, null != d.offsetBottom && (d.offset.bottom = d.offsetBottom), null != d.offsetTop && (d.offset.top = d.offsetTop), b.call(c, d)
  927. })
  928. })
  929. }(jQuery);