PageSourceSearch

https://e-belediye.kas.bel.tr/Scripts/bootstrap.js

js kas.bel.tr collected 2026-10-02 20:03:18 UTC 69,976 bytes, 2,381 lines download raw bytes

vendor: 5,434 bytes, lines 1-190
1/*!
2 * Bootstrap v3.3.7 (http://getbootstrap.com)
3 * Copyright 2011-2016 Twitter, Inc.
4 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5 */
6
7/*!
8 * Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=5f7c7055d891c5ead0f9dd87acd61c18)
9 * Config saved to config.json and https://gist.github.com/5f7c7055d891c5ead0f9dd87acd61c18
10 */
11if (typeof jQuery === 'undefined') {
12  throw new Error('Bootstrap\'s JavaScript requires jQuery')
13}
14+function ($) {
15  'use strict';
16  var version = $.fn.jquery.split(' ')[0].split('.')
17  if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] > 3)) {
18    throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4')
19  }
20}(jQuery);
21
22/* ========================================================================
23 * Bootstrap: alert.js v3.3.7
24 * http://getbootstrap.com/javascript/#alerts
25 * ========================================================================
26 * Copyright 2011-2016 Twitter, Inc.
27 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
28 * ======================================================================== */
29
30
31+function ($) {
32  'use strict';
33
34  // ALERT CLASS DEFINITION
35  // ======================
36
37  var dismiss = '[data-dismiss="alert"]'
38  var Alert   = function (el) {
39    $(el).on('click', dismiss, this.close)
40  }
41
42  Alert.VERSION = '3.3.7'
43
44  Alert.TRANSITION_DURATION = 150
45
46  Alert.prototype.close = function (e) {
47    var $this    = $(this)
48    var selector = $this.attr('data-target')
49
50    if (!selector) {
51      selector = $this.attr('href')
52      selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
53    }
54
55    var $parent = $(selector === '#' ? [] : selector)
56
57    if (e) e.preventDefault()
58
59    if (!$parent.length) {
60      $parent = $this.closest('.alert')
61    }
62
63    $parent.trigger(e = $.Event('close.bs.alert'))
64
65    if (e.isDefaultPrevented()) return
66
67    $parent.removeClass('in')
68
69    function removeElement() {
70      // detach from parent, fire event then clean up data
71      $parent.detach().trigger('closed.bs.alert').remove()
72    }
73
74    $.support.transition && $parent.hasClass('fade') ?
75      $parent
76        .one('bsTransitionEnd', removeElement)
77        .emulateTransitionEnd(Alert.TRANSITION_DURATION) :
78      removeElement()
79  }
80
81
82  // ALERT PLUGIN DEFINITION
83  // =======================
84
85  function Plugin(option) {
86    return this.each(function () {
87      var $this = $(this)
88      var data  = $this.data('bs.alert')
89
90      if (!data) $this.data('bs.alert', (data = new Alert(this)))
91      if (typeof option == 'string') data[option].call($this)
92    })
93  }
94
95  var old = $.fn.alert
96
97  $.fn.alert             = Plugin
98  $.fn.alert.Constructor = Alert
99
100
101  // ALERT NO CONFLICT
102  // =================
103
104  $.fn.alert.noConflict = function () {
105    $.fn.alert = old
106    return this
107  }
108
109
110  // ALERT DATA-API
111  // ==============
112
113  $(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close)
114
115}(jQuery);
116
117/* ========================================================================
118 * Bootstrap: button.js v3.3.7
119 * http://getbootstrap.com/javascript/#buttons
120 * ========================================================================
121 * Copyright 2011-2016 Twitter, Inc.
122 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
123 * ======================================================================== */
124
125
126+function ($) {
127  'use strict';
128
129  // BUTTON PUBLIC CLASS DEFINITION
130  // ==============================
131
132  var Button = function (element, options) {
133    this.$element  = $(element)
134    this.options   = $.extend({}, Button.DEFAULTS, options)
135    this.isLoading = false
136  }
137
138  Button.VERSION  = '3.3.7'
139
140  Button.DEFAULTS = {
141    loadingText: 'loading...'
142  }
143
144  Button.prototype.setState = function (state) {
145    var d    = 'disabled'
146    var $el  = this.$element
147    var val  = $el.is('input') ? 'val' : 'html'
148    var data = $el.data()
149
150    state += 'Text'
151
152    if (data.resetText == null) $el.data('resetText', $el[val]())
153
154    // push to event loop to allow forms to submit
155    setTimeout($.proxy(function () {
156      $el[val](data[state] == null ? this.options[state] : data[state])
157
158      if (state == 'loadingText') {
159        this.isLoading = true
160        $el.addClass(d).attr(d, d).prop(d, true)
161      } else if (this.isLoading) {
162        this.isLoading = false
163        $el.removeClass(d).removeAttr(d).prop(d, false)
164      }
165    }, this), 0)
166  }
167
168  Button.prototype.toggle = function () {
169    var changed = true
170    var $parent = this.$element.closest('[data-toggle="buttons"]')
171
172    if ($parent.length) {
173      var $input = this.$element.find('input')
174      if ($input.prop('type') == 'radio') {
175        if ($input.prop('checked')) changed = false
176        $parent.find('.active').removeClass('active')
177        this.$element.addClass('active')
178      } else if ($input.prop('type') == 'checkbox') {
179        if (($input.prop('checked')) !== this.$element.hasClass('active')) changed = false
180        this.$element.toggleClass('active')
181      }
182      $input.prop('checked', this.$element.hasClass('active'))
183      if (changed) $input.trigger('change')
184    } else {
185      this.$element.attr('aria-pressed', !this.$element.hasClass('active'))
186      this.$element.toggleClass('active')
187    }
188  }
189
190
vendor: 6,031 bytes, lines 191-386
191  // BUTTON PLUGIN DEFINITION
192  // ========================
193
194  function Plugin(option) {
195    return this.each(function () {
196      var $this   = $(this)
197      var data    = $this.data('bs.button')
198      var options = typeof option == 'object' && option
199
200      if (!data) $this.data('bs.button', (data = new Button(this, options)))
201
202      if (option == 'toggle') data.toggle()
203      else if (option) data.setState(option)
204    })
205  }
206
207  var old = $.fn.button
208
209  $.fn.button             = Plugin
210  $.fn.button.Constructor = Button
211
212
213  // BUTTON NO CONFLICT
214  // ==================
215
216  $.fn.button.noConflict = function () {
217    $.fn.button = old
218    return this
219  }
220
221
222  // BUTTON DATA-API
223  // ===============
224
225  $(document)
226    .on('click.bs.button.data-api', '[data-toggle^="button"]', function (e) {
227      var $btn = $(e.target).closest('.btn')
228      Plugin.call($btn, 'toggle')
229      if (!($(e.target).is('input[type="radio"], input[type="checkbox"]'))) {
230        // Prevent double click on radios, and the double selections (so cancellation) on checkboxes
231        e.preventDefault()
232        // The target component still receive the focus
233        if ($btn.is('input,button')) $btn.trigger('focus')
234        else $btn.find('input:visible,button:visible').first().trigger('focus')
235      }
236    })
237    .on('focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^="button"]', function (e) {
238      $(e.target).closest('.btn').toggleClass('focus', /^focus(in)?$/.test(e.type))
239    })
240
241}(jQuery);
242
243/* ========================================================================
244 * Bootstrap: carousel.js v3.3.7
245 * http://getbootstrap.com/javascript/#carousel
246 * ========================================================================
247 * Copyright 2011-2016 Twitter, Inc.
248 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
249 * ======================================================================== */
250
251
252+function ($) {
253  'use strict';
254
255  // CAROUSEL CLASS DEFINITION
256  // =========================
257
258  var Carousel = function (element, options) {
259    this.$element    = $(element)
260    this.$indicators = this.$element.find('.carousel-indicators')
261    this.options     = options
262    this.paused      = null
263    this.sliding     = null
264    this.interval    = null
265    this.$active     = null
266    this.$items      = null
267
268    this.options.keyboard && this.$element.on('keydown.bs.carousel', $.proxy(this.keydown, this))
269
270    this.options.pause == 'hover' && !('ontouchstart' in document.documentElement) && this.$element
271      .on('mouseenter.bs.carousel', $.proxy(this.pause, this))
272      .on('mouseleave.bs.carousel', $.proxy(this.cycle, this))
273  }
274
275  Carousel.VERSION  = '3.3.7'
276
277  Carousel.TRANSITION_DURATION = 600
278
279  Carousel.DEFAULTS = {
280    interval: 5000,
281    pause: 'hover',
282    wrap: true,
283    keyboard: true
284  }
285
286  Carousel.prototype.keydown = function (e) {
287    if (/input|textarea/i.test(e.target.tagName)) return
288    switch (e.which) {
289      case 37: this.prev(); break
290      case 39: this.next(); break
291      default: return
292    }
293
294    e.preventDefault()
295  }
296
297  Carousel.prototype.cycle = function (e) {
298    e || (this.paused = false)
299
300    this.interval && clearInterval(this.interval)
301
302    this.options.interval
303      && !this.paused
304      && (this.interval = setInterval($.proxy(this.next, this), this.options.interval))
305
306    return this
307  }
308
309  Carousel.prototype.getItemIndex = function (item) {
310    this.$items = item.parent().children('.item')
311    return this.$items.index(item || this.$active)
312  }
313
314  Carousel.prototype.getItemForDirection = function (direction, active) {
315    var activeIndex = this.getItemIndex(active)
316    var willWrap = (direction == 'prev' && activeIndex === 0)
317                || (direction == 'next' && activeIndex == (this.$items.length - 1))
318    if (willWrap && !this.options.wrap) return active
319    var delta = direction == 'prev' ? -1 : 1
320    var itemIndex = (activeIndex + delta) % this.$items.length
321    return this.$items.eq(itemIndex)
322  }
323
324  Carousel.prototype.to = function (pos) {
325    var that        = this
326    var activeIndex = this.getItemIndex(this.$active = this.$element.find('.item.active'))
327
328    if (pos > (this.$items.length - 1) || pos < 0) return
329
330    if (this.sliding)       return this.$element.one('slid.bs.carousel', function () { that.to(pos) }) // yes, "slid"
331    if (activeIndex == pos) return this.pause().cycle()
332
333    return this.slide(pos > activeIndex ? 'next' : 'prev', this.$items.eq(pos))
334  }
335
336  Carousel.prototype.pause = function (e) {
337    e || (this.paused = true)
338
339    if (this.$element.find('.next, .prev').length && $.support.transition) {
340      this.$element.trigger($.support.transition.end)
341      this.cycle(true)
342    }
343
344    this.interval = clearInterval(this.interval)
345
346    return this
347  }
348
349  Carousel.prototype.next = function () {
350    if (this.sliding) return
351    return this.slide('next')
352  }
353
354  Carousel.prototype.prev = function () {
355    if (this.sliding) return
356    return this.slide('prev')
357  }
358
359  Carousel.prototype.slide = function (type, next) {
360    var $active   = this.$element.find('.item.active')
361    var $next     = next || this.getItemForDirection(type, $active)
362    var isCycling = this.interval
363    var direction = type == 'next' ? 'left' : 'right'
364    var that      = this
365
366    if ($next.hasClass('active')) return (this.sliding = false)
367
368    var relatedTarget = $next[0]
369    var slideEvent = $.Event('slide.bs.carousel', {
370      relatedTarget: relatedTarget,
371      direction: direction
372    })
373    this.$element.trigger(slideEvent)
374    if (slideEvent.isDefaultPrevented()) return
375
376    this.sliding = true
377
378    isCycling && this.pause()
379
380    if (this.$indicators.length) {
381      this.$indicators.find('.active').removeClass('active')
382      var $nextIndicator = $(this.$indicators.children()[this.getItemIndex($next)])
383      $nextIndicator && $nextIndicator.addClass('active')
384    }
385
386    var slidEvent = $.Event('slid.bs.carousel', { relatedTarget: relatedTarget, direction: direction }) // yes, "slid"
vendor: 3,316 bytes, lines 387-500
387    if ($.support.transition && this.$element.hasClass('slide')) {
388      $next.addClass(type)
389      $next[0].offsetWidth // force reflow
390      $active.addClass(direction)
391      $next.addClass(direction)
392      $active
393        .one('bsTransitionEnd', function () {
394          $next.removeClass([type, direction].join(' ')).addClass('active')
395          $active.removeClass(['active', direction].join(' '))
396          that.sliding = false
397          setTimeout(function () {
398            that.$element.trigger(slidEvent)
399          }, 0)
400        })
401        .emulateTransitionEnd(Carousel.TRANSITION_DURATION)
402    } else {
403      $active.removeClass('active')
404      $next.addClass('active')
405      this.sliding = false
406      this.$element.trigger(slidEvent)
407    }
408
409    isCycling && this.cycle()
410
411    return this
412  }
413
414
415  // CAROUSEL PLUGIN DEFINITION
416  // ==========================
417
418  function Plugin(option) {
419    return this.each(function () {
420      var $this   = $(this)
421      var data    = $this.data('bs.carousel')
422      var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option)
423      var action  = typeof option == 'string' ? option : options.slide
424
425      if (!data) $this.data('bs.carousel', (data = new Carousel(this, options)))
426      if (typeof option == 'number') data.to(option)
427      else if (action) data[action]()
428      else if (options.interval) data.pause().cycle()
429    })
430  }
431
432  var old = $.fn.carousel
433
434  $.fn.carousel             = Plugin
435  $.fn.carousel.Constructor = Carousel
436
437
438  // CAROUSEL NO CONFLICT
439  // ====================
440
441  $.fn.carousel.noConflict = function () {
442    $.fn.carousel = old
443    return this
444  }
445
446
447  // CAROUSEL DATA-API
448  // =================
449
450  var clickHandler = function (e) {
451    var href
452    var $this   = $(this)
453    var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) // strip for ie7
454    if (!$target.hasClass('carousel')) return
455    var options = $.extend({}, $target.data(), $this.data())
456    var slideIndex = $this.attr('data-slide-to')
457    if (slideIndex) options.interval = false
458
459    Plugin.call($target, options)
460
461    if (slideIndex) {
462      $target.data('bs.carousel').to(slideIndex)
463    }
464
465    e.preventDefault()
466  }
467
468  $(document)
469    .on('click.bs.carousel.data-api', '[data-slide]', clickHandler)
470    .on('click.bs.carousel.data-api', '[data-slide-to]', clickHandler)
471
472  $(window).on('load', function () {
473    $('[data-ride="carousel"]').each(function () {
474      var $carousel = $(this)
475      Plugin.call($carousel, $carousel.data())
476    })
477  })
478
479}(jQuery);
480
481/* ========================================================================
482 * Bootstrap: dropdown.js v3.3.7
483 * http://getbootstrap.com/javascript/#dropdowns
484 * ========================================================================
485 * Copyright 2011-2016 Twitter, Inc.
486 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
487 * ======================================================================== */
488
489
490+function ($) {
491  'use strict';
492
493  // DROPDOWN CLASS DEFINITION
494  // =========================
495
496  var backdrop = '.dropdown-backdrop'
497  var toggle   = '[data-toggle="dropdown"]'
498  var Dropdown = function (element) {
499      $(element).on('click.bs.dropdown', this.toggle)
500      
vendor: 17,845 bytes, lines 500-1106
500
501  }
502
503  Dropdown.VERSION = '3.3.7'
504
505  function getParent($this) {
506    var selector = $this.attr('data-target')
507
508    if (!selector) {
509      selector = $this.attr('href')
510      selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
511    }
512
513    var $parent = selector && $(selector)
514
515    return $parent && $parent.length ? $parent : $this.parent()
516  }
517
518  function clearMenus(e) {
519    if (e && e.which === 3) return
520    $(backdrop).remove()
521    $(toggle).each(function () {
522      var $this         = $(this)
523      var $parent       = getParent($this)
524      var relatedTarget = { relatedTarget: this }
525
526      if (!$parent.hasClass('open')) return
527
528      if (e && e.type == 'click' && /input|textarea/i.test(e.target.tagName) && $.contains($parent[0], e.target)) return
529
530      $parent.trigger(e = $.Event('hide.bs.dropdown', relatedTarget))
531
532      if (e.isDefaultPrevented()) return
533
534      $this.attr('aria-expanded', 'false')
535      $parent.removeClass('open').trigger($.Event('hidden.bs.dropdown', relatedTarget))
536    })
537  }
538
539  Dropdown.prototype.toggle = function (e) {
540    var $this = $(this)
541
542    if ($this.is('.disabled, :disabled')) return
543
544    var $parent  = getParent($this)
545    var isActive = $parent.hasClass('open')
546
547    clearMenus()
548
549    if (!isActive) {
550      if ('ontouchstart' in document.documentElement && !$parent.closest('.navbar-nav').length) {
551        // if mobile we use a backdrop because click events don't delegate
552        $(document.createElement('div'))
553          .addClass('dropdown-backdrop')
554          .insertAfter($(this))
555          .on('click', clearMenus)
556      }
557
558      var relatedTarget = { relatedTarget: this }
559      $parent.trigger(e = $.Event('show.bs.dropdown', relatedTarget))
560
561      if (e.isDefaultPrevented()) return
562
563      $this
564        .trigger('focus')
565        .attr('aria-expanded', 'true')
566
567      $parent
568        .toggleClass('open')
569        .trigger($.Event('shown.bs.dropdown', relatedTarget))
570    }
571
572    return false
573  }
574
575  Dropdown.prototype.keydown = function (e) {
576    if (!/(38|40|27|32)/.test(e.which) || /input|textarea/i.test(e.target.tagName)) return
577
578    var $this = $(this)
579
580    e.preventDefault()
581    e.stopPropagation()
582
583    if ($this.is('.disabled, :disabled')) return
584
585    var $parent  = getParent($this)
586    var isActive = $parent.hasClass('open')
587
588    if (!isActive && e.which != 27 || isActive && e.which == 27) {
589      if (e.which == 27) $parent.find(toggle).trigger('focus')
590      return $this.trigger('click')
591    }
592
593    var desc = ' li:not(.disabled):visible a'
594    var $items = $parent.find('.dropdown-menu' + desc)
595
596    if (!$items.length) return
597
598    var index = $items.index(e.target)
599
600    if (e.which == 38 && index > 0)                 index--         // up
601    if (e.which == 40 && index < $items.length - 1) index++         // down
602    if (!~index)                                    index = 0
603
604    $items.eq(index).trigger('focus')
605  }
606
607
608  // DROPDOWN PLUGIN DEFINITION
609  // ==========================
610
611  function Plugin(option) {
612    return this.each(function () {
613      var $this = $(this)
614      var data  = $this.data('bs.dropdown')
615
616      if (!data) $this.data('bs.dropdown', (data = new Dropdown(this)))
617      if (typeof option == 'string') data[option].call($this)
618    })
619  }
620
621  var old = $.fn.dropdown
622
623  $.fn.dropdown             = Plugin
624  $.fn.dropdown.Constructor = Dropdown
625
626
627  // DROPDOWN NO CONFLICT
628  // ====================
629
630  $.fn.dropdown.noConflict = function () {
631    $.fn.dropdown = old
632    return this
633  }
634
635
636  // APPLY TO STANDARD DROPDOWN ELEMENTS
637  // ===================================
638
639  $(document)
640    .on('click.bs.dropdown.data-api', clearMenus)
641    .on('click.bs.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })
642    .on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle)
643    .on('keydown.bs.dropdown.data-api', toggle, Dropdown.prototype.keydown)
644    .on('keydown.bs.dropdown.data-api', '.dropdown-menu', Dropdown.prototype.keydown)
645
646}(jQuery);
647
648/* ========================================================================
649 * Bootstrap: modal.js v3.3.7
650 * http://getbootstrap.com/javascript/#modals
651 * ========================================================================
652 * Copyright 2011-2016 Twitter, Inc.
653 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
654 * ======================================================================== */
655
656
657+function ($) {
658  'use strict';
659
660  // MODAL CLASS DEFINITION
661  // ======================
662
663  var Modal = function (element, options) {
664    this.options             = options
665    this.$body               = $(document.body)
666    this.$element            = $(element)
667    this.$dialog             = this.$element.find('.modal-dialog')
668    this.$backdrop           = null
669    this.isShown             = null
670    this.originalBodyPad     = null
671    this.scrollbarWidth      = 0
672    this.ignoreBackdropClick = false
673
674    if (this.options.remote) {
675      this.$element
676        .find('.modal-content')
677        .load(this.options.remote, $.proxy(function () {
678          this.$element.trigger('loaded.bs.modal')
679        }, this))
680    }
681  }
682
683  Modal.VERSION  = '3.3.7'
684
685  Modal.TRANSITION_DURATION = 300
686  Modal.BACKDROP_TRANSITION_DURATION = 150
687
688  Modal.DEFAULTS = {
689    backdrop: true,
690    keyboard: true,
691    show: true
692  }
693
694  Modal.prototype.toggle = function (_relatedTarget) {
695    return this.isShown ? this.hide() : this.show(_relatedTarget)
696  }
697
698  Modal.prototype.show = function (_relatedTarget) {
699    var that = this
700    var e    = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })
701
702    this.$element.trigger(e)
703
704    if (this.isShown || e.isDefaultPrevented()) return
705
706    this.isShown = true
707
708    this.checkScrollbar()
709    this.setScrollbar()
710    this.$body.addClass('modal-open')
711
712    this.escape()
713    this.resize()
714
715    this.$element.on('click.dismiss.bs.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this))
716
717    this.$dialog.on('mousedown.dismiss.bs.modal', function () {
718      that.$element.one('mouseup.dismiss.bs.modal', function (e) {
719        if ($(e.target).is(that.$element)) that.ignoreBackdropClick = true
720      })
721    })
722
723    this.backdrop(function () {
724      var transition = $.support.transition && that.$element.hasClass('fade')
725
726      if (!that.$element.parent().length) {
727        that.$element.appendTo(that.$body) // don't move modals dom position
728      }
729
730      that.$element
731        .show()
732        .scrollTop(0)
733
734      that.adjustDialog()
735
736      if (transition) {
737        that.$element[0].offsetWidth // force reflow
738      }
739
740      that.$element.addClass('in')
741
742      that.enforceFocus()
743
744      var e = $.Event('shown.bs.modal', { relatedTarget: _relatedTarget })
745
746      transition ?
747        that.$dialog // wait for modal to slide in
748          .one('bsTransitionEnd', function () {
749            that.$element.trigger('focus').trigger(e)
750          })
751          .emulateTransitionEnd(Modal.TRANSITION_DURATION) :
752        that.$element.trigger('focus').trigger(e)
753    })
754  }
755
756  Modal.prototype.hide = function (e) {
757    if (e) e.preventDefault()
758
759    e = $.Event('hide.bs.modal')
760
761    this.$element.trigger(e)
762
763    if (!this.isShown || e.isDefaultPrevented()) return
764
765    this.isShown = false
766
767    this.escape()
768    this.resize()
769
770    $(document).off('focusin.bs.modal')
771
772    this.$element
773      .removeClass('in')
774      .off('click.dismiss.bs.modal')
775      .off('mouseup.dismiss.bs.modal')
776
777    this.$dialog.off('mousedown.dismiss.bs.modal')
778
779    $.support.transition && this.$element.hasClass('fade') ?
780      this.$element
781        .one('bsTransitionEnd', $.proxy(this.hideModal, this))
782        .emulateTransitionEnd(Modal.TRANSITION_DURATION) :
783      this.hideModal()
784  }
785
786  Modal.prototype.enforceFocus = function () {
787    $(document)
788      .off('focusin.bs.modal') // guard against infinite focus loop
789      .on('focusin.bs.modal', $.proxy(function (e) {
790        if (document !== e.target &&
791            this.$element[0] !== e.target &&
792            !this.$element.has(e.target).length) {
793          this.$element.trigger('focus')
794        }
795      }, this))
796  }
797
798  Modal.prototype.escape = function () {
799    if (this.isShown && this.options.keyboard) {
800      this.$element.on('keydown.dismiss.bs.modal', $.proxy(function (e) {
801        e.which == 27 && this.hide()
802      }, this))
803    } else if (!this.isShown) {
804      this.$element.off('keydown.dismiss.bs.modal')
805    }
806  }
807
808  Modal.prototype.resize = function () {
809    if (this.isShown) {
810      $(window).on('resize.bs.modal', $.proxy(this.handleUpdate, this))
811    } else {
812      $(window).off('resize.bs.modal')
813    }
814  }
815
816  Modal.prototype.hideModal = function () {
817    var that = this
818    this.$element.hide()
819    this.backdrop(function () {
820      that.$body.removeClass('modal-open')
821      that.resetAdjustments()
822      that.resetScrollbar()
823      that.$element.trigger('hidden.bs.modal')
824    })
825  }
826
827  Modal.prototype.removeBackdrop = function () {
828    this.$backdrop && this.$backdrop.remove()
829    this.$backdrop = null
830  }
831
832  Modal.prototype.backdrop = function (callback) {
833    var that = this
834    var animate = this.$element.hasClass('fade') ? 'fade' : ''
835
836    if (this.isShown && this.options.backdrop) {
837      var doAnimate = $.support.transition && animate
838
839      this.$backdrop = $(document.createElement('div'))
840        .addClass('modal-backdrop ' + animate)
841        .appendTo(this.$body)
842
843      this.$element.on('click.dismiss.bs.modal', $.proxy(function (e) {
844        if (this.ignoreBackdropClick) {
845          this.ignoreBackdropClick = false
846          return
847        }
848        if (e.target !== e.currentTarget) return
849        this.options.backdrop == 'static'
850          ? this.$element[0].focus()
851          : this.hide()
852      }, this))
853
854      if (doAnimate) this.$backdrop[0].offsetWidth // force reflow
855
856      this.$backdrop.addClass('in')
857
858      if (!callback) return
859
860      doAnimate ?
861        this.$backdrop
862          .one('bsTransitionEnd', callback)
863          .emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) :
864        callback()
865
866    } else if (!this.isShown && this.$backdrop) {
867      this.$backdrop.removeClass('in')
868
869      var callbackRemove = function () {
870        that.removeBackdrop()
871        callback && callback()
872      }
873      $.support.transition && this.$element.hasClass('fade') ?
874        this.$backdrop
875          .one('bsTransitionEnd', callbackRemove)
876          .emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) :
877        callbackRemove()
878
879    } else if (callback) {
880      callback()
881    }
882  }
883
884  // these following methods are used to handle overflowing modals
885
886  Modal.prototype.handleUpdate = function () {
887    this.adjustDialog()
888  }
889
890  Modal.prototype.adjustDialog = function () {
891    var modalIsOverflowing = this.$element[0].scrollHeight > document.documentElement.clientHeight
892
893    this.$element.css({
894      paddingLeft:  !this.bodyIsOverflowing && modalIsOverflowing ? this.scrollbarWidth : '',
895      paddingRight: this.bodyIsOverflowing && !modalIsOverflowing ? this.scrollbarWidth : ''
896    })
897  }
898
899  Modal.prototype.resetAdjustments = function () {
900    this.$element.css({
901      paddingLeft: '',
902      paddingRight: ''
903    })
904  }
905
906  Modal.prototype.checkScrollbar = function () {
907    var fullWindowWidth = window.innerWidth
908    if (!fullWindowWidth) { // workaround for missing window.innerWidth in IE8
909      var documentElementRect = document.documentElement.getBoundingClientRect()
910      fullWindowWidth = documentElementRect.right - Math.abs(documentElementRect.left)
911    }
912    this.bodyIsOverflowing = document.body.clientWidth < fullWindowWidth
913    this.scrollbarWidth = this.measureScrollbar()
914  }
915
916  Modal.prototype.setScrollbar = function () {
917    var bodyPad = parseInt((this.$body.css('padding-right') || 0), 10)
918    this.originalBodyPad = document.body.style.paddingRight || ''
919    if (this.bodyIsOverflowing) this.$body.css('padding-right', bodyPad + this.scrollbarWidth)
920  }
921
922  Modal.prototype.resetScrollbar = function () {
923    this.$body.css('padding-right', this.originalBodyPad)
924  }
925
926  Modal.prototype.measureScrollbar = function () { // thx walsh
927    var scrollDiv = document.createElement('div')
928    scrollDiv.className = 'modal-scrollbar-measure'
929    this.$body.append(scrollDiv)
930    var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth
931    this.$body[0].removeChild(scrollDiv)
932    return scrollbarWidth
933  }
934
935
936  // MODAL PLUGIN DEFINITION
937  // =======================
938
939  function Plugin(option, _relatedTarget) {
940    return this.each(function () {
941      var $this   = $(this)
942      var data    = $this.data('bs.modal')
943      var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option)
944
945      if (!data) $this.data('bs.modal', (data = new Modal(this, options)))
946      if (typeof option == 'string') data[option](_relatedTarget)
947      else if (options.show) data.show(_relatedTarget)
948    })
949  }
950
951  var old = $.fn.modal
952
953  $.fn.modal             = Plugin
954  $.fn.modal.Constructor = Modal
955
956
957  // MODAL NO CONFLICT
958  // =================
959
960  $.fn.modal.noConflict = function () {
961    $.fn.modal = old
962    return this
963  }
964
965
966  // MODAL DATA-API
967  // ==============
968
969  $(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function (e) {
970    var $this   = $(this)
971    var href    = $this.attr('href')
972    var $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) // strip for ie7
973    var option  = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data())
974
975    if ($this.is('a')) e.preventDefault()
976
977    $target.one('show.bs.modal', function (showEvent) {
978      if (showEvent.isDefaultPrevented()) return // only register focus restorer if modal will actually get shown
979      $target.one('hidden.bs.modal', function () {
980        $this.is(':visible') && $this.trigger('focus')
981      })
982    })
983    Plugin.call($target, option, this)
984  })
985
986}(jQuery);
987
988/* ========================================================================
989 * Bootstrap: tooltip.js v3.3.7
990 * http://getbootstrap.com/javascript/#tooltip
991 * Inspired by the original jQuery.tipsy by Jason Frame
992 * ========================================================================
993 * Copyright 2011-2016 Twitter, Inc.
994 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
995 * ======================================================================== */
996
997
998+function ($) {
999  'use strict';
1000
1001  // TOOLTIP PUBLIC CLASS DEFINITION
1002  // ===============================
1003
1004  var Tooltip = function (element, options) {
1005    this.type       = null
1006    this.options    = null
1007    this.enabled    = null
1008    this.timeout    = null
1009    this.hoverState = null
1010    this.$element   = null
1011    this.inState    = null
1012
1013    this.init('tooltip', element, options)
1014  }
1015
1016  Tooltip.VERSION  = '3.3.7'
1017
1018  Tooltip.TRANSITION_DURATION = 150
1019
1020  Tooltip.DEFAULTS = {
1021    animation: true,
1022    placement: 'top',
1023    selector: false,
1024    template: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
1025    trigger: 'hover focus',
1026    title: '',
1027    delay: 0,
1028    html: false,
1029    container: false,
1030    viewport: {
1031      selector: 'body',
1032      padding: 0
1033    }
1034  }
1035
1036  Tooltip.prototype.init = function (type, element, options) {
1037    this.enabled   = true
1038    this.type      = type
1039    this.$element  = $(element)
1040    this.options   = this.getOptions(options)
1041    this.$viewport = this.options.viewport && $($.isFunction(this.options.viewport) ? this.options.viewport.call(this, this.$element) : (this.options.viewport.selector || this.options.viewport))
1042    this.inState   = { click: false, hover: false, focus: false }
1043
1044    if (this.$element[0] instanceof document.constructor && !this.options.selector) {
1045      throw new Error('`selector` option must be specified when initializing ' + this.type + ' on the window.document object!')
1046    }
1047
1048    var triggers = this.options.trigger.split(' ')
1049
1050    for (var i = triggers.length; i--;) {
1051      var trigger = triggers[i]
1052
1053      if (trigger == 'click') {
1054        this.$element.on('click.' + this.type, this.options.selector, $.proxy(this.toggle, this))
1055      } else if (trigger != 'manual') {
1056        var eventIn  = trigger == 'hover' ? 'mouseenter' : 'focusin'
1057        var eventOut = trigger == 'hover' ? 'mouseleave' : 'focusout'
1058
1059        this.$element.on(eventIn  + '.' + this.type, this.options.selector, $.proxy(this.enter, this))
1060        this.$element.on(eventOut + '.' + this.type, this.options.selector, $.proxy(this.leave, this))
1061      }
1062    }
1063
1064    this.options.selector ?
1065      (this._options = $.extend({}, this.options, { trigger: 'manual', selector: '' })) :
1066      this.fixTitle()
1067  }
1068
1069  Tooltip.prototype.getDefaults = function () {
1070    return Tooltip.DEFAULTS
1071  }
1072
1073  Tooltip.prototype.getOptions = function (options) {
1074    options = $.extend({}, this.getDefaults(), this.$element.data(), options)
1075
1076    if (options.delay && typeof options.delay == 'number') {
1077      options.delay = {
1078        show: options.delay,
1079        hide: options.delay
1080      }
1081    }
1082
1083    return options
1084  }
1085
1086  Tooltip.prototype.getDelegateOptions = function () {
1087    var options  = {}
1088    var defaults = this.getDefaults()
1089
1090    this._options && $.each(this._options, function (key, value) {
1091      if (defaults[key] != value) options[key] = value
1092    })
1093
1094    return options
1095  }
1096
1097  Tooltip.prototype.enter = function (obj) {
1098    var self = obj instanceof this.constructor ?
1099      obj : $(obj.currentTarget).data('bs.' + this.type)
1100
1101    if (!self) {
1102      self = new this.constructor(obj.currentTarget, this.getDelegateOptions())
1103      $(obj.currentTarget).data('bs.' + this.type, self)
1104    }
1105
1106    if (obj instanceof $.Event) {
vendor: 16,074 bytes, lines 1107-1617
1107      self.inState[obj.type == 'focusin' ? 'focus' : 'hover'] = true
1108    }
1109
1110    if (self.tip().hasClass('in') || self.hoverState == 'in') {
1111      self.hoverState = 'in'
1112      return
1113    }
1114
1115    clearTimeout(self.timeout)
1116
1117    self.hoverState = 'in'
1118
1119    if (!self.options.delay || !self.options.delay.show) return self.show()
1120
1121    self.timeout = setTimeout(function () {
1122      if (self.hoverState == 'in') self.show()
1123    }, self.options.delay.show)
1124  }
1125
1126  Tooltip.prototype.isInStateTrue = function () {
1127    for (var key in this.inState) {
1128      if (this.inState[key]) return true
1129    }
1130
1131    return false
1132  }
1133
1134  Tooltip.prototype.leave = function (obj) {
1135    var self = obj instanceof this.constructor ?
1136      obj : $(obj.currentTarget).data('bs.' + this.type)
1137
1138    if (!self) {
1139      self = new this.constructor(obj.currentTarget, this.getDelegateOptions())
1140      $(obj.currentTarget).data('bs.' + this.type, self)
1141    }
1142
1143    if (obj instanceof $.Event) {
1144      self.inState[obj.type == 'focusout' ? 'focus' : 'hover'] = false
1145    }
1146
1147    if (self.isInStateTrue()) return
1148
1149    clearTimeout(self.timeout)
1150
1151    self.hoverState = 'out'
1152
1153    if (!self.options.delay || !self.options.delay.hide) return self.hide()
1154
1155    self.timeout = setTimeout(function () {
1156      if (self.hoverState == 'out') self.hide()
1157    }, self.options.delay.hide)
1158  }
1159
1160  Tooltip.prototype.show = function () {
1161    var e = $.Event('show.bs.' + this.type)
1162
1163    if (this.hasContent() && this.enabled) {
1164      this.$element.trigger(e)
1165
1166      var inDom = $.contains(this.$element[0].ownerDocument.documentElement, this.$element[0])
1167      if (e.isDefaultPrevented() || !inDom) return
1168      var that = this
1169
1170      var $tip = this.tip()
1171
1172      var tipId = this.getUID(this.type)
1173
1174      this.setContent()
1175      $tip.attr('id', tipId)
1176      this.$element.attr('aria-describedby', tipId)
1177
1178      if (this.options.animation) $tip.addClass('fade')
1179
1180      var placement = typeof this.options.placement == 'function' ?
1181        this.options.placement.call(this, $tip[0], this.$element[0]) :
1182        this.options.placement
1183
1184      var autoToken = /\s?auto?\s?/i
1185      var autoPlace = autoToken.test(placement)
1186      if (autoPlace) placement = placement.replace(autoToken, '') || 'top'
1187
1188      $tip
1189        .detach()
1190        .css({ top: 0, left: 0, display: 'block' })
1191        .addClass(placement)
1192        .data('bs.' + this.type, this)
1193
1194      this.options.container ? $tip.appendTo(this.options.container) : $tip.insertAfter(this.$element)
1195      this.$element.trigger('inserted.bs.' + this.type)
1196
1197      var pos          = this.getPosition()
1198      var actualWidth  = $tip[0].offsetWidth
1199      var actualHeight = $tip[0].offsetHeight
1200
1201      if (autoPlace) {
1202        var orgPlacement = placement
1203        var viewportDim = this.getPosition(this.$viewport)
1204
1205        placement = placement == 'bottom' && pos.bottom + actualHeight > viewportDim.bottom ? 'top'    :
1206                    placement == 'top'    && pos.top    - actualHeight < viewportDim.top    ? 'bottom' :
1207                    placement == 'right'  && pos.right  + actualWidth  > viewportDim.width  ? 'left'   :
1208                    placement == 'left'   && pos.left   - actualWidth  < viewportDim.left   ? 'right'  :
1209                    placement
1210
1211        $tip
1212          .removeClass(orgPlacement)
1213          .addClass(placement)
1214      }
1215
1216      var calculatedOffset = this.getCalculatedOffset(placement, pos, actualWidth, actualHeight)
1217
1218      this.applyPlacement(calculatedOffset, placement)
1219
1220      var complete = function () {
1221        var prevHoverState = that.hoverState
1222        that.$element.trigger('shown.bs.' + that.type)
1223        that.hoverState = null
1224
1225        if (prevHoverState == 'out') that.leave(that)
1226      }
1227
1228      $.support.transition && this.$tip.hasClass('fade') ?
1229        $tip
1230          .one('bsTransitionEnd', complete)
1231          .emulateTransitionEnd(Tooltip.TRANSITION_DURATION) :
1232        complete()
1233    }
1234  }
1235
1236  Tooltip.prototype.applyPlacement = function (offset, placement) {
1237    var $tip   = this.tip()
1238    var width  = $tip[0].offsetWidth
1239    var height = $tip[0].offsetHeight
1240
1241    // manually read margins because getBoundingClientRect includes difference
1242    var marginTop = parseInt($tip.css('margin-top'), 10)
1243    var marginLeft = parseInt($tip.css('margin-left'), 10)
1244
1245    // we must check for NaN for ie 8/9
1246    if (isNaN(marginTop))  marginTop  = 0
1247    if (isNaN(marginLeft)) marginLeft = 0
1248
1249    offset.top  += marginTop
1250    offset.left += marginLeft
1251
1252    // $.fn.offset doesn't round pixel values
1253    // so we use setOffset directly with our own function B-0
1254    $.offset.setOffset($tip[0], $.extend({
1255      using: function (props) {
1256        $tip.css({
1257          top: Math.round(props.top),
1258          left: Math.round(props.left)
1259        })
1260      }
1261    }, offset), 0)
1262
1263    $tip.addClass('in')
1264
1265    // check to see if placing tip in new offset caused the tip to resize itself
1266    var actualWidth  = $tip[0].offsetWidth
1267    var actualHeight = $tip[0].offsetHeight
1268
1269    if (placement == 'top' && actualHeight != height) {
1270      offset.top = offset.top + height - actualHeight
1271    }
1272
1273    var delta = this.getViewportAdjustedDelta(placement, offset, actualWidth, actualHeight)
1274
1275    if (delta.left) offset.left += delta.left
1276    else offset.top += delta.top
1277
1278    var isVertical          = /top|bottom/.test(placement)
1279    var arrowDelta          = isVertical ? delta.left * 2 - width + actualWidth : delta.top * 2 - height + actualHeight
1280    var arrowOffsetPosition = isVertical ? 'offsetWidth' : 'offsetHeight'
1281
1282    $tip.offset(offset)
1283    this.replaceArrow(arrowDelta, $tip[0][arrowOffsetPosition], isVertical)
1284  }
1285
1286  Tooltip.prototype.replaceArrow = function (delta, dimension, isVertical) {
1287    this.arrow()
1288      .css(isVertical ? 'left' : 'top', 50 * (1 - delta / dimension) + '%')
1289      .css(isVertical ? 'top' : 'left', '')
1290  }
1291
1292  Tooltip.prototype.setContent = function () {
1293    var $tip  = this.tip()
1294    var title = this.getTitle()
1295
1296    $tip.find('.tooltip-inner')[this.options.html ? 'html' : 'text'](title)
1297    $tip.removeClass('fade in top bottom left right')
1298  }
1299
1300  Tooltip.prototype.hide = function (callback) {
1301    var that = this
1302    var $tip = $(this.$tip)
1303    var e    = $.Event('hide.bs.' + this.type)
1304
1305    function complete() {
1306      if (that.hoverState != 'in') $tip.detach()
1307      if (that.$element) { // TODO: Check whether guarding this code with this `if` is really necessary.
1308        that.$element
1309          .removeAttr('aria-describedby')
1310          .trigger('hidden.bs.' + that.type)
1311      }
1312      callback && callback()
1313    }
1314
1315    this.$element.trigger(e)
1316
1317    if (e.isDefaultPrevented()) return
1318
1319    $tip.removeClass('in')
1320
1321    $.support.transition && $tip.hasClass('fade') ?
1322      $tip
1323        .one('bsTransitionEnd', complete)
1324        .emulateTransitionEnd(Tooltip.TRANSITION_DURATION) :
1325      complete()
1326
1327    this.hoverState = null
1328
1329    return this
1330  }
1331
1332  Tooltip.prototype.fixTitle = function () {
1333    var $e = this.$element
1334    if ($e.attr('title') || typeof $e.attr('data-original-title') != 'string') {
1335      $e.attr('data-original-title', $e.attr('title') || '').attr('title', '')
1336    }
1337  }
1338
1339  Tooltip.prototype.hasContent = function () {
1340    return this.getTitle()
1341  }
1342
1343  Tooltip.prototype.getPosition = function ($element) {
1344    $element   = $element || this.$element
1345
1346    var el     = $element[0]
1347    var isBody = el.tagName == 'BODY'
1348
1349    var elRect    = el.getBoundingClientRect()
1350    if (elRect.width == null) {
1351      // width and height are missing in IE8, so compute them manually; see https://github.com/twbs/bootstrap/issues/14093
1352      elRect = $.extend({}, elRect, { width: elRect.right - elRect.left, height: elRect.bottom - elRect.top })
1353    }
1354    var isSvg = window.SVGElement && el instanceof window.SVGElement
1355    // Avoid using $.offset() on SVGs since it gives incorrect results in jQuery 3.
1356    // See https://github.com/twbs/bootstrap/issues/20280
1357    var elOffset  = isBody ? { top: 0, left: 0 } : (isSvg ? null : $element.offset())
1358    var scroll    = { scroll: isBody ? document.documentElement.scrollTop || document.body.scrollTop : $element.scrollTop() }
1359    var outerDims = isBody ? { width: $(window).width(), height: $(window).height() } : null
1360
1361    return $.extend({}, elRect, scroll, outerDims, elOffset)
1362  }
1363
1364  Tooltip.prototype.getCalculatedOffset = function (placement, pos, actualWidth, actualHeight) {
1365    return placement == 'bottom' ? { top: pos.top + pos.height,   left: pos.left + pos.width / 2 - actualWidth / 2 } :
1366           placement == 'top'    ? { top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2 } :
1367           placement == 'left'   ? { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth } :
1368        /* placement == 'right' */ { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width }
1369
1370  }
1371
1372  Tooltip.prototype.getViewportAdjustedDelta = function (placement, pos, actualWidth, actualHeight) {
1373    var delta = { top: 0, left: 0 }
1374    if (!this.$viewport) return delta
1375
1376    var viewportPadding = this.options.viewport && this.options.viewport.padding || 0
1377    var viewportDimensions = this.getPosition(this.$viewport)
1378
1379    if (/right|left/.test(placement)) {
1380      var topEdgeOffset    = pos.top - viewportPadding - viewportDimensions.scroll
1381      var bottomEdgeOffset = pos.top + viewportPadding - viewportDimensions.scroll + actualHeight
1382      if (topEdgeOffset < viewportDimensions.top) { // top overflow
1383        delta.top = viewportDimensions.top - topEdgeOffset
1384      } else if (bottomEdgeOffset > viewportDimensions.top + viewportDimensions.height) { // bottom overflow
1385        delta.top = viewportDimensions.top + viewportDimensions.height - bottomEdgeOffset
1386      }
1387    } else {
1388      var leftEdgeOffset  = pos.left - viewportPadding
1389      var rightEdgeOffset = pos.left + viewportPadding + actualWidth
1390      if (leftEdgeOffset < viewportDimensions.left) { // left overflow
1391        delta.left = viewportDimensions.left - leftEdgeOffset
1392      } else if (rightEdgeOffset > viewportDimensions.right) { // right overflow
1393        delta.left = viewportDimensions.left + viewportDimensions.width - rightEdgeOffset
1394      }
1395    }
1396
1397    return delta
1398  }
1399
1400  Tooltip.prototype.getTitle = function () {
1401    var title
1402    var $e = this.$element
1403    var o  = this.options
1404
1405    title = $e.attr('data-original-title')
1406      || (typeof o.title == 'function' ? o.title.call($e[0]) :  o.title)
1407
1408    return title
1409  }
1410
1411  Tooltip.prototype.getUID = function (prefix) {
1412    do prefix += ~~(Math.random() * 1000000)
1413    while (document.getElementById(prefix))
1414    return prefix
1415  }
1416
1417  Tooltip.prototype.tip = function () {
1418    if (!this.$tip) {
1419      this.$tip = $(this.options.template)
1420      if (this.$tip.length != 1) {
1421        throw new Error(this.type + ' `template` option must consist of exactly 1 top-level element!')
1422      }
1423    }
1424    return this.$tip
1425  }
1426
1427  Tooltip.prototype.arrow = function () {
1428    return (this.$arrow = this.$arrow || this.tip().find('.tooltip-arrow'))
1429  }
1430
1431  Tooltip.prototype.enable = function () {
1432    this.enabled = true
1433  }
1434
1435  Tooltip.prototype.disable = function () {
1436    this.enabled = false
1437  }
1438
1439  Tooltip.prototype.toggleEnabled = function () {
1440    this.enabled = !this.enabled
1441  }
1442
1443  Tooltip.prototype.toggle = function (e) {
1444    var self = this
1445    if (e) {
1446      self = $(e.currentTarget).data('bs.' + this.type)
1447      if (!self) {
1448        self = new this.constructor(e.currentTarget, this.getDelegateOptions())
1449        $(e.currentTarget).data('bs.' + this.type, self)
1450      }
1451    }
1452
1453    if (e) {
1454      self.inState.click = !self.inState.click
1455      if (self.isInStateTrue()) self.enter(self)
1456      else self.leave(self)
1457    } else {
1458      self.tip().hasClass('in') ? self.leave(self) : self.enter(self)
1459    }
1460  }
1461
1462  Tooltip.prototype.destroy = function () {
1463    var that = this
1464    clearTimeout(this.timeout)
1465    this.hide(function () {
1466      that.$element.off('.' + that.type).removeData('bs.' + that.type)
1467      if (that.$tip) {
1468        that.$tip.detach()
1469      }
1470      that.$tip = null
1471      that.$arrow = null
1472      that.$viewport = null
1473      that.$element = null
1474    })
1475  }
1476
1477
1478  // TOOLTIP PLUGIN DEFINITION
1479  // =========================
1480
1481  function Plugin(option) {
1482    return this.each(function () {
1483      var $this   = $(this)
1484      var data    = $this.data('bs.tooltip')
1485      var options = typeof option == 'object' && option
1486
1487      if (!data && /destroy|hide/.test(option)) return
1488      if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, options)))
1489      if (typeof option == 'string') data[option]()
1490    })
1491  }
1492
1493  var old = $.fn.tooltip
1494
1495  $.fn.tooltip             = Plugin
1496  $.fn.tooltip.Constructor = Tooltip
1497
1498
1499  // TOOLTIP NO CONFLICT
1500  // ===================
1501
1502  $.fn.tooltip.noConflict = function () {
1503    $.fn.tooltip = old
1504    return this
1505  }
1506
1507}(jQuery);
1508
1509/* ========================================================================
1510 * Bootstrap: popover.js v3.3.7
1511 * http://getbootstrap.com/javascript/#popovers
1512 * ========================================================================
1513 * Copyright 2011-2016 Twitter, Inc.
1514 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
1515 * ======================================================================== */
1516
1517
1518+function ($) {
1519  'use strict';
1520
1521  // POPOVER PUBLIC CLASS DEFINITION
1522  // ===============================
1523
1524  var Popover = function (element, options) {
1525    this.init('popover', element, options)
1526  }
1527
1528  if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js')
1529
1530  Popover.VERSION  = '3.3.7'
1531
1532  Popover.DEFAULTS = $.extend({}, $.fn.tooltip.Constructor.DEFAULTS, {
1533    placement: 'right',
1534    trigger: 'click',
1535    content: '',
1536    template: '<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'
1537  })
1538
1539
1540  // NOTE: POPOVER EXTENDS tooltip.js
1541  // ================================
1542
1543  Popover.prototype = $.extend({}, $.fn.tooltip.Constructor.prototype)
1544
1545  Popover.prototype.constructor = Popover
1546
1547  Popover.prototype.getDefaults = function () {
1548    return Popover.DEFAULTS
1549  }
1550
1551  Popover.prototype.setContent = function () {
1552    var $tip    = this.tip()
1553    var title   = this.getTitle()
1554    var content = this.getContent()
1555
1556    $tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title)
1557    $tip.find('.popover-content').children().detach().end()[ // we use append for html objects to maintain js events
1558      this.options.html ? (typeof content == 'string' ? 'html' : 'append') : 'text'
1559    ](content)
1560
1561    $tip.removeClass('fade top bottom left right in')
1562
1563    // IE8 doesn't accept hiding via the `:empty` pseudo selector, we have to do
1564    // this manually by checking the contents.
1565    if (!$tip.find('.popover-title').html()) $tip.find('.popover-title').hide()
1566  }
1567
1568  Popover.prototype.hasContent = function () {
1569    return this.getTitle() || this.getContent()
1570  }
1571
1572  Popover.prototype.getContent = function () {
1573    var $e = this.$element
1574    var o  = this.options
1575
1576    return $e.attr('data-content')
1577      || (typeof o.content == 'function' ?
1578            o.content.call($e[0]) :
1579            o.content)
1580  }
1581
1582  Popover.prototype.arrow = function () {
1583    return (this.$arrow = this.$arrow || this.tip().find('.arrow'))
1584  }
1585
1586
1587  // POPOVER PLUGIN DEFINITION
1588  // =========================
1589
1590  function Plugin(option) {
1591    return this.each(function () {
1592      var $this   = $(this)
1593      var data    = $this.data('bs.popover')
1594      var options = typeof option == 'object' && option
1595
1596      if (!data && /destroy|hide/.test(option)) return
1597      if (!data) $this.data('bs.popover', (data = new Popover(this, options)))
1598      if (typeof option == 'string') data[option]()
1599    })
1600  }
1601
1602  var old = $.fn.popover
1603
1604  $.fn.popover             = Plugin
1605  $.fn.popover.Constructor = Popover
1606
1607
1608  // POPOVER NO CONFLICT
1609  // ===================
1610
1611  $.fn.popover.noConflict = function () {
1612    $.fn.popover = old
1613    return this
1614  }
1615
1616}(jQuery);
1617
vendor: 21,276 bytes, lines 1618-2381
1618/* ========================================================================
1619 * Bootstrap: tab.js v3.3.7
1620 * http://getbootstrap.com/javascript/#tabs
1621 * ========================================================================
1622 * Copyright 2011-2016 Twitter, Inc.
1623 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
1624 * ======================================================================== */
1625
1626
1627+function ($) {
1628  'use strict';
1629
1630  // TAB CLASS DEFINITION
1631  // ====================
1632
1633  var Tab = function (element) {
1634    // jscs:disable requireDollarBeforejQueryAssignment
1635    this.element = $(element)
1636    // jscs:enable requireDollarBeforejQueryAssignment
1637  }
1638
1639  Tab.VERSION = '3.3.7'
1640
1641  Tab.TRANSITION_DURATION = 150
1642
1643  Tab.prototype.show = function () {
1644    var $this    = this.element
1645    var $ul      = $this.closest('ul:not(.dropdown-menu)')
1646    var selector = $this.data('target')
1647
1648    if (!selector) {
1649      selector = $this.attr('href')
1650      selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
1651    }
1652
1653    if ($this.parent('li').hasClass('active')) return
1654
1655    var $previous = $ul.find('.active:last a')
1656    var hideEvent = $.Event('hide.bs.tab', {
1657      relatedTarget: $this[0]
1658    })
1659    var showEvent = $.Event('show.bs.tab', {
1660      relatedTarget: $previous[0]
1661    })
1662
1663    $previous.trigger(hideEvent)
1664    $this.trigger(showEvent)
1665
1666    if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) return
1667
1668    var $target = $(selector)
1669
1670    this.activate($this.closest('li'), $ul)
1671    this.activate($target, $target.parent(), function () {
1672      $previous.trigger({
1673        type: 'hidden.bs.tab',
1674        relatedTarget: $this[0]
1675      })
1676      $this.trigger({
1677        type: 'shown.bs.tab',
1678        relatedTarget: $previous[0]
1679      })
1680    })
1681  }
1682
1683  Tab.prototype.activate = function (element, container, callback) {
1684    var $active    = container.find('> .active')
1685    var transition = callback
1686      && $.support.transition
1687      && ($active.length && $active.hasClass('fade') || !!container.find('> .fade').length)
1688
1689    function next() {
1690      $active
1691        .removeClass('active')
1692        .find('> .dropdown-menu > .active')
1693          .removeClass('active')
1694        .end()
1695        .find('[data-toggle="tab"]')
1696          .attr('aria-expanded', false)
1697
1698      element
1699        .addClass('active')
1700        .find('[data-toggle="tab"]')
1701          .attr('aria-expanded', true)
1702
1703      if (transition) {
1704        element[0].offsetWidth // reflow for transition
1705        element.addClass('in')
1706      } else {
1707        element.removeClass('fade')
1708      }
1709
1710      if (element.parent('.dropdown-menu').length) {
1711        element
1712          .closest('li.dropdown')
1713            .addClass('active')
1714          .end()
1715          .find('[data-toggle="tab"]')
1716            .attr('aria-expanded', true)
1717      }
1718
1719      callback && callback()
1720    }
1721
1722    $active.length && transition ?
1723      $active
1724        .one('bsTransitionEnd', next)
1725        .emulateTransitionEnd(Tab.TRANSITION_DURATION) :
1726      next()
1727
1728    $active.removeClass('in')
1729  }
1730
1731
1732  // TAB PLUGIN DEFINITION
1733  // =====================
1734
1735  function Plugin(option) {
1736    return this.each(function () {
1737      var $this = $(this)
1738      var data  = $this.data('bs.tab')
1739
1740      if (!data) $this.data('bs.tab', (data = new Tab(this)))
1741      if (typeof option == 'string') data[option]()
1742    })
1743  }
1744
1745  var old = $.fn.tab
1746
1747  $.fn.tab             = Plugin
1748  $.fn.tab.Constructor = Tab
1749
1750
1751  // TAB NO CONFLICT
1752  // ===============
1753
1754  $.fn.tab.noConflict = function () {
1755    $.fn.tab = old
1756    return this
1757  }
1758
1759
1760  // TAB DATA-API
1761  // ============
1762
1763  var clickHandler = function (e) {
1764    e.preventDefault()
1765    Plugin.call($(this), 'show')
1766  }
1767
1768  $(document)
1769    .on('click.bs.tab.data-api', '[data-toggle="tab"]', clickHandler)
1770    .on('click.bs.tab.data-api', '[data-toggle="pill"]', clickHandler)
1771
1772}(jQuery);
1773
1774/* ========================================================================
1775 * Bootstrap: affix.js v3.3.7
1776 * http://getbootstrap.com/javascript/#affix
1777 * ========================================================================
1778 * Copyright 2011-2016 Twitter, Inc.
1779 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
1780 * ======================================================================== */
1781
1782
1783+function ($) {
1784  'use strict';
1785
1786  // AFFIX CLASS DEFINITION
1787  // ======================
1788
1789  var Affix = function (element, options) {
1790    this.options = $.extend({}, Affix.DEFAULTS, options)
1791
1792    this.$target = $(this.options.target)
1793      .on('scroll.bs.affix.data-api', $.proxy(this.checkPosition, this))
1794      .on('click.bs.affix.data-api',  $.proxy(this.checkPositionWithEventLoop, this))
1795
1796    this.$element     = $(element)
1797    this.affixed      = null
1798    this.unpin        = null
1799    this.pinnedOffset = null
1800
1801    this.checkPosition()
1802  }
1803
1804  Affix.VERSION  = '3.3.7'
1805
1806  Affix.RESET    = 'affix affix-top affix-bottom'
1807
1808  Affix.DEFAULTS = {
1809    offset: 0,
1810    target: window
1811  }
1812
1813  Affix.prototype.getState = function (scrollHeight, height, offsetTop, offsetBottom) {
1814    var scrollTop    = this.$target.scrollTop()
1815    var position     = this.$element.offset()
1816    var targetHeight = this.$target.height()
1817
1818    if (offsetTop != null && this.affixed == 'top') return scrollTop < offsetTop ? 'top' : false
1819
1820    if (this.affixed == 'bottom') {
1821      if (offsetTop != null) return (scrollTop + this.unpin <= position.top) ? false : 'bottom'
1822      return (scrollTop + targetHeight <= scrollHeight - offsetBottom) ? false : 'bottom'
1823    }
1824
1825    var initializing   = this.affixed == null
1826    var colliderTop    = initializing ? scrollTop : position.top
1827    var colliderHeight = initializing ? targetHeight : height
1828
1829    if (offsetTop != null && scrollTop <= offsetTop) return 'top'
1830    if (offsetBottom != null && (colliderTop + colliderHeight >= scrollHeight - offsetBottom)) return 'bottom'
1831
1832    return false
1833  }
1834
1835  Affix.prototype.getPinnedOffset = function () {
1836    if (this.pinnedOffset) return this.pinnedOffset
1837    this.$element.removeClass(Affix.RESET).addClass('affix')
1838    var scrollTop = this.$target.scrollTop()
1839    var position  = this.$element.offset()
1840    return (this.pinnedOffset = position.top - scrollTop)
1841  }
1842
1843  Affix.prototype.checkPositionWithEventLoop = function () {
1844    setTimeout($.proxy(this.checkPosition, this), 1)
1845  }
1846
1847  Affix.prototype.checkPosition = function () {
1848    if (!this.$element.is(':visible')) return
1849
1850    var height       = this.$element.height()
1851    var offset       = this.options.offset
1852    var offsetTop    = offset.top
1853    var offsetBottom = offset.bottom
1854    var scrollHeight = Math.max($(document).height(), $(document.body).height())
1855
1856    if (typeof offset != 'object')         offsetBottom = offsetTop = offset
1857    if (typeof offsetTop == 'function')    offsetTop    = offset.top(this.$element)
1858    if (typeof offsetBottom == 'function') offsetBottom = offset.bottom(this.$element)
1859
1860    var affix = this.getState(scrollHeight, height, offsetTop, offsetBottom)
1861
1862    if (this.affixed != affix) {
1863      if (this.unpin != null) this.$element.css('top', '')
1864
1865      var affixType = 'affix' + (affix ? '-' + affix : '')
1866      var e         = $.Event(affixType + '.bs.affix')
1867
1868      this.$element.trigger(e)
1869
1870      if (e.isDefaultPrevented()) return
1871
1872      this.affixed = affix
1873      this.unpin = affix == 'bottom' ? this.getPinnedOffset() : null
1874
1875      this.$element
1876        .removeClass(Affix.RESET)
1877        .addClass(affixType)
1878        .trigger(affixType.replace('affix', 'affixed') + '.bs.affix')
1879    }
1880
1881    if (affix == 'bottom') {
1882      this.$element.offset({
1883        top: scrollHeight - height - offsetBottom
1884      })
1885    }
1886  }
1887
1888
1889  // AFFIX PLUGIN DEFINITION
1890  // =======================
1891
1892  function Plugin(option) {
1893    return this.each(function () {
1894      var $this   = $(this)
1895      var data    = $this.data('bs.affix')
1896      var options = typeof option == 'object' && option
1897
1898      if (!data) $this.data('bs.affix', (data = new Affix(this, options)))
1899      if (typeof option == 'string') data[option]()
1900    })
1901  }
1902
1903  var old = $.fn.affix
1904
1905  $.fn.affix             = Plugin
1906  $.fn.affix.Constructor = Affix
1907
1908
1909  // AFFIX NO CONFLICT
1910  // =================
1911
1912  $.fn.affix.noConflict = function () {
1913    $.fn.affix = old
1914    return this
1915  }
1916
1917
1918  // AFFIX DATA-API
1919  // ==============
1920
1921  $(window).on('load', function () {
1922    $('[data-spy="affix"]').each(function () {
1923      var $spy = $(this)
1924      var data = $spy.data()
1925
1926      data.offset = data.offset || {}
1927
1928      if (data.offsetBottom != null) data.offset.bottom = data.offsetBottom
1929      if (data.offsetTop    != null) data.offset.top    = data.offsetTop
1930
1931      Plugin.call($spy, data)
1932    })
1933  })
1934
1935}(jQuery);
1936
1937/* ========================================================================
1938 * Bootstrap: collapse.js v3.3.7
1939 * http://getbootstrap.com/javascript/#collapse
1940 * ========================================================================
1941 * Copyright 2011-2016 Twitter, Inc.
1942 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
1943 * ======================================================================== */
1944
1945/* jshint latedef: false */
1946
1947+function ($) {
1948  'use strict';
1949
1950  // COLLAPSE PUBLIC CLASS DEFINITION
1951  // ================================
1952
1953  var Collapse = function (element, options) {
1954    this.$element      = $(element)
1955    this.options       = $.extend({}, Collapse.DEFAULTS, options)
1956    this.$trigger      = $('[data-toggle="collapse"][href="#' + element.id + '"],' +
1957                           '[data-toggle="collapse"][data-target="#' + element.id + '"]')
1958    this.transitioning = null
1959
1960    if (this.options.parent) {
1961      this.$parent = this.getParent()
1962    } else {
1963      this.addAriaAndCollapsedClass(this.$element, this.$trigger)
1964    }
1965
1966    if (this.options.toggle) this.toggle()
1967  }
1968
1969  Collapse.VERSION  = '3.3.7'
1970
1971  Collapse.TRANSITION_DURATION = 350
1972
1973  Collapse.DEFAULTS = {
1974    toggle: true
1975  }
1976
1977  Collapse.prototype.dimension = function () {
1978    var hasWidth = this.$element.hasClass('width')
1979    return hasWidth ? 'width' : 'height'
1980  }
1981
1982  Collapse.prototype.show = function () {
1983    if (this.transitioning || this.$element.hasClass('in')) return
1984
1985    var activesData
1986    var actives = this.$parent && this.$parent.children('.panel').children('.in, .collapsing')
1987
1988    if (actives && actives.length) {
1989      activesData = actives.data('bs.collapse')
1990      if (activesData && activesData.transitioning) return
1991    }
1992
1993    var startEvent = $.Event('show.bs.collapse')
1994    this.$element.trigger(startEvent)
1995    if (startEvent.isDefaultPrevented()) return
1996
1997    if (actives && actives.length) {
1998      Plugin.call(actives, 'hide')
1999      activesData || actives.data('bs.collapse', null)
2000    }
2001
2002    var dimension = this.dimension()
2003
2004    this.$element
2005      .removeClass('collapse')
2006      .addClass('collapsing')[dimension](0)
2007      .attr('aria-expanded', true)
2008
2009    this.$trigger
2010      .removeClass('collapsed')
2011      .attr('aria-expanded', true)
2012
2013    this.transitioning = 1
2014
2015    var complete = function () {
2016      this.$element
2017        .removeClass('collapsing')
2018        .addClass('collapse in')[dimension]('')
2019      this.transitioning = 0
2020      this.$element
2021        .trigger('shown.bs.collapse')
2022    }
2023
2024    if (!$.support.transition) return complete.call(this)
2025
2026    var scrollSize = $.camelCase(['scroll', dimension].join('-'))
2027
2028    this.$element
2029      .one('bsTransitionEnd', $.proxy(complete, this))
2030      .emulateTransitionEnd(Collapse.TRANSITION_DURATION)[dimension](this.$element[0][scrollSize])
2031  }
2032
2033  Collapse.prototype.hide = function () {
2034    if (this.transitioning || !this.$element.hasClass('in')) return
2035
2036    var startEvent = $.Event('hide.bs.collapse')
2037    this.$element.trigger(startEvent)
2038    if (startEvent.isDefaultPrevented()) return
2039
2040    var dimension = this.dimension()
2041
2042    this.$element[dimension](this.$element[dimension]())[0].offsetHeight
2043
2044    this.$element
2045      .addClass('collapsing')
2046      .removeClass('collapse in')
2047      .attr('aria-expanded', false)
2048
2049    this.$trigger
2050      .addClass('collapsed')
2051      .attr('aria-expanded', false)
2052
2053    this.transitioning = 1
2054
2055    var complete = function () {
2056      this.transitioning = 0
2057      this.$element
2058        .removeClass('collapsing')
2059        .addClass('collapse')
2060        .trigger('hidden.bs.collapse')
2061    }
2062
2063    if (!$.support.transition) return complete.call(this)
2064
2065    this.$element
2066      [dimension](0)
2067      .one('bsTransitionEnd', $.proxy(complete, this))
2068      .emulateTransitionEnd(Collapse.TRANSITION_DURATION)
2069  }
2070
2071  Collapse.prototype.toggle = function () {
2072    this[this.$element.hasClass('in') ? 'hide' : 'show']()
2073  }
2074
2075  Collapse.prototype.getParent = function () {
2076    return $(this.options.parent)
2077      .find('[data-toggle="collapse"][data-parent="' + this.options.parent + '"]')
2078      .each($.proxy(function (i, element) {
2079        var $element = $(element)
2080        this.addAriaAndCollapsedClass(getTargetFromTrigger($element), $element)
2081      }, this))
2082      .end()
2083  }
2084
2085  Collapse.prototype.addAriaAndCollapsedClass = function ($element, $trigger) {
2086    var isOpen = $element.hasClass('in')
2087
2088    $element.attr('aria-expanded', isOpen)
2089    $trigger
2090      .toggleClass('collapsed', !isOpen)
2091      .attr('aria-expanded', isOpen)
2092  }
2093
2094  function getTargetFromTrigger($trigger) {
2095    var href
2096    var target = $trigger.attr('data-target')
2097      || (href = $trigger.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') // strip for ie7
2098
2099    return $(target)
2100  }
2101
2102
2103  // COLLAPSE PLUGIN DEFINITION
2104  // ==========================
2105
2106  function Plugin(option) {
2107    return this.each(function () {
2108      var $this   = $(this)
2109      var data    = $this.data('bs.collapse')
2110      var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option)
2111
2112      if (!data && options.toggle && /show|hide/.test(option)) options.toggle = false
2113      if (!data) $this.data('bs.collapse', (data = new Collapse(this, options)))
2114      if (typeof option == 'string') data[option]()
2115    })
2116  }
2117
2118  var old = $.fn.collapse
2119
2120  $.fn.collapse             = Plugin
2121  $.fn.collapse.Constructor = Collapse
2122
2123
2124  // COLLAPSE NO CONFLICT
2125  // ====================
2126
2127  $.fn.collapse.noConflict = function () {
2128    $.fn.collapse = old
2129    return this
2130  }
2131
2132
2133  // COLLAPSE DATA-API
2134  // =================
2135
2136  $(document).on('click.bs.collapse.data-api', '[data-toggle="collapse"]', function (e) {
2137    var $this   = $(this)
2138
2139    if (!$this.attr('data-target')) e.preventDefault()
2140
2141    var $target = getTargetFromTrigger($this)
2142    var data    = $target.data('bs.collapse')
2143    var option  = data ? 'toggle' : $this.data()
2144
2145    Plugin.call($target, option)
2146  })
2147
2148}(jQuery);
2149
2150/* ========================================================================
2151 * Bootstrap: scrollspy.js v3.3.7
2152 * http://getbootstrap.com/javascript/#scrollspy
2153 * ========================================================================
2154 * Copyright 2011-2016 Twitter, Inc.
2155 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
2156 * ======================================================================== */
2157
2158
2159+function ($) {
2160  'use strict';
2161
2162  // SCROLLSPY CLASS DEFINITION
2163  // ==========================
2164
2165  function ScrollSpy(element, options) {
2166    this.$body          = $(document.body)
2167    this.$scrollElement = $(element).is(document.body) ? $(window) : $(element)
2168    this.options        = $.extend({}, ScrollSpy.DEFAULTS, options)
2169    this.selector       = (this.options.target || '') + ' .nav li > a'
2170    this.offsets        = []
2171    this.targets        = []
2172    this.activeTarget   = null
2173    this.scrollHeight   = 0
2174
2175    this.$scrollElement.on('scroll.bs.scrollspy', $.proxy(this.process, this))
2176    this.refresh()
2177    this.process()
2178  }
2179
2180  ScrollSpy.VERSION  = '3.3.7'
2181
2182  ScrollSpy.DEFAULTS = {
2183    offset: 10
2184  }
2185
2186  ScrollSpy.prototype.getScrollHeight = function () {
2187    return this.$scrollElement[0].scrollHeight || Math.max(this.$body[0].scrollHeight, document.documentElement.scrollHeight)
2188  }
2189
2190  ScrollSpy.prototype.refresh = function () {
2191    var that          = this
2192    var offsetMethod  = 'offset'
2193    var offsetBase    = 0
2194
2195    this.offsets      = []
2196    this.targets      = []
2197    this.scrollHeight = this.getScrollHeight()
2198
2199    if (!$.isWindow(this.$scrollElement[0])) {
2200      offsetMethod = 'position'
2201      offsetBase   = this.$scrollElement.scrollTop()
2202    }
2203
2204    this.$body
2205      .find(this.selector)
2206      .map(function () {
2207        var $el   = $(this)
2208        var href  = $el.data('target') || $el.attr('href')
2209        var $href = /^#./.test(href) && $(href)
2210
2211        return ($href
2212          && $href.length
2213          && $href.is(':visible')
2214          && [[$href[offsetMethod]().top + offsetBase, href]]) || null
2215      })
2216      .sort(function (a, b) { return a[0] - b[0] })
2217      .each(function () {
2218        that.offsets.push(this[0])
2219        that.targets.push(this[1])
2220      })
2221  }
2222
2223  ScrollSpy.prototype.process = function () {
2224    var scrollTop    = this.$scrollElement.scrollTop() + this.options.offset
2225    var scrollHeight = this.getScrollHeight()
2226    var maxScroll    = this.options.offset + scrollHeight - this.$scrollElement.height()
2227    var offsets      = this.offsets
2228    var targets      = this.targets
2229    var activeTarget = this.activeTarget
2230    var i
2231
2232    if (this.scrollHeight != scrollHeight) {
2233      this.refresh()
2234    }
2235
2236    if (scrollTop >= maxScroll) {
2237      return activeTarget != (i = targets[targets.length - 1]) && this.activate(i)
2238    }
2239
2240    if (activeTarget && scrollTop < offsets[0]) {
2241      this.activeTarget = null
2242      return this.clear()
2243    }
2244
2245    for (i = offsets.length; i--;) {
2246      activeTarget != targets[i]
2247        && scrollTop >= offsets[i]
2248        && (offsets[i + 1] === undefined || scrollTop < offsets[i + 1])
2249        && this.activate(targets[i])
2250    }
2251  }
2252
2253  ScrollSpy.prototype.activate = function (target) {
2254    this.activeTarget = target
2255
2256    this.clear()
2257
2258    var selector = this.selector +
2259      '[data-target="' + target + '"],' +
2260      this.selector + '[href="' + target + '"]'
2261
2262    var active = $(selector)
2263      .parents('li')
2264      .addClass('active')
2265
2266    if (active.parent('.dropdown-menu').length) {
2267      active = active
2268        .closest('li.dropdown')
2269        .addClass('active')
2270    }
2271
2272    active.trigger('activate.bs.scrollspy')
2273  }
2274
2275  ScrollSpy.prototype.clear = function () {
2276    $(this.selector)
2277      .parentsUntil(this.options.target, '.active')
2278      .removeClass('active')
2279  }
2280
2281
2282  // SCROLLSPY PLUGIN DEFINITION
2283  // ===========================
2284
2285  function Plugin(option) {
2286    return this.each(function () {
2287      var $this   = $(this)
2288      var data    = $this.data('bs.scrollspy')
2289      var options = typeof option == 'object' && option
2290
2291      if (!data) $this.data('bs.scrollspy', (data = new ScrollSpy(this, options)))
2292      if (typeof option == 'string') data[option]()
2293    })
2294  }
2295
2296  var old = $.fn.scrollspy
2297
2298  $.fn.scrollspy             = Plugin
2299  $.fn.scrollspy.Constructor = ScrollSpy
2300
2301
2302  // SCROLLSPY NO CONFLICT
2303  // =====================
2304
2305  $.fn.scrollspy.noConflict = function () {
2306    $.fn.scrollspy = old
2307    return this
2308  }
2309
2310
2311  // SCROLLSPY DATA-API
2312  // ==================
2313
2314  $(window).on('load.bs.scrollspy.data-api', function () {
2315    $('[data-spy="scroll"]').each(function () {
2316      var $spy = $(this)
2317      Plugin.call($spy, $spy.data())
2318    })
2319  })
2320
2321}(jQuery);
2322
2323/* ========================================================================
2324 * Bootstrap: transition.js v3.3.7
2325 * http://getbootstrap.com/javascript/#transitions
2326 * ========================================================================
2327 * Copyright 2011-2016 Twitter, Inc.
2328 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
2329 * ======================================================================== */
2330
2331
2332+function ($) {
2333  'use strict';
2334
2335  // CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)
2336  // ============================================================
2337
2338  function transitionEnd() {
2339    var el = document.createElement('bootstrap')
2340
2341    var transEndEventNames = {
2342      WebkitTransition : 'webkitTransitionEnd',
2343      MozTransition    : 'transitionend',
2344      OTransition      : 'oTransitionEnd otransitionend',
2345      transition       : 'transitionend'
2346    }
2347
2348    for (var name in transEndEventNames) {
2349      if (el.style[name] !== undefined) {
2350        return { end: transEndEventNames[name] }
2351      }
2352    }
2353
2354    return false // explicit for ie8 (  ._.)
2355  }
2356
2357  // http://blog.alexmaccaw.com/css-transitions
2358  $.fn.emulateTransitionEnd = function (duration) {
2359    var called = false
2360    var $el = this
2361    $(this).one('bsTransitionEnd', function () { called = true })
2362    var callback = function () { if (!called) $($el).trigger($.support.transition.end) }
2363    setTimeout(callback, duration)
2364    return this
2365  }
2366
2367  $(function () {
2368    $.support.transition = transitionEnd()
2369
2370    if (!$.support.transition) return
2371
2372    $.event.special.bsTransitionEnd = {
2373      bindType: $.support.transition.end,
2374      delegateType: $.support.transition.end,
2375      handle: function (e) {
2376        if ($(e.target).is(this)) return e.handleObj.handler.apply(this, arguments)
2377      }
2378    }
2379  })
2380
2381}(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.