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