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