]>
git.ipfire.org Git - people/shoehn/ipfire.org.git/blob - static/js/bootstrap.min.js
3136e60878cdc80421a5913bca3b6649da6fbea5
2 * Bootstrap v3.3.2 (http://getbootstrap.com)
3 * Copyright 2011-2015 Twitter, Inc.
4 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
8 * Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=75513cb9d6251687fcc0)
9 * Config saved to config.json and https://gist.github.com/75513cb9d6251687fcc0
11 if("undefined"==typeof jQuery
)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t
){"use strict";var e
=t
.fn
.jquery
.split(" ")[0].split(".");if(e
[0]<2&&e
[1]<9||1==e
[0]&&9==e
[1]&&e
[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery
),+function(t
){"use strict";function e(e
){return this.each(function(){var i
=t(this),s
=i
.data("bs.alert");s
||i
.data("bs.alert",s
=new o(this)),"string"==typeof e
&&s
[e
].call(i
)})}var i
='[data-dismiss="alert"]',o=function(e
){t(e
).on("click",i
,this.close
)};o
.VERSION
="3.3.2",o
.TRANSITION_DURATION
=150,o
.prototype.close=function(e
){function i(){a
.detach().trigger("closed.bs.alert").remove()}var s
=t(this),n
=s
.attr("data-target");n
||(n
=s
.attr("href"),n
=n
&&n
.replace(/.*(?=#[^\s]*$)/,""));var a
=t(n
);e
&&e
.preventDefault(),a
.length
||(a
=s
.closest(".alert")),a
.trigger(e
=t
.Event("close.bs.alert")),e
.isDefaultPrevented()||(a
.removeClass("in"),t
.support
.transition
&&a
.hasClass("fade")?a
.one("bsTransitionEnd",i
).emulateTransitionEnd(o
.TRANSITION_DURATION
):i())};var s
=t
.fn
.alert
;t
.fn
.alert
=e
,t
.fn
.alert
.Constructor
=o
,t
.fn
.alert
.noConflict=function(){return t
.fn
.alert
=s
,this},t(document
).on("click.bs.alert.data-api",i
,o
.prototype.close
)}(jQuery
),+function(t
){"use strict";function e(e
){return this.each(function(){var o
=t(this),s
=o
.data("bs.button"),n
="object"==typeof e
&&e
;s
||o
.data("bs.button",s
=new i(this,n
)),"toggle"==e
?s
.toggle():e
&&s
.setState(e
)})}var i=function(e
,o
){this.$element
=t(e
),this.options
=t
.extend({},i
.DEFAULTS
,o
),this.isLoading
=!1};i
.VERSION
="3.3.2",i
.DEFAULTS
={loadingText
:"loading..."},i
.prototype.setState=function(e
){var i
="disabled",o
=this.$element
,s
=o
.is("input")?"val":"html",n
=o
.data();e
+="Text",null==n
.resetText
&&o
.data("resetText",o
[s
]()),setTimeout(t
.proxy(function(){o
[s
](null==n
[e
]?this.options
[e
]:n
[e
]),"loadingText"==e
?(this.isLoading
=!0,o
.addClass(i
).attr(i
,i
)):this.isLoading
&&(this.isLoading
=!1,o
.removeClass(i
).removeAttr(i
))},this),0)},i
.prototype.toggle=function(){var t
=!0,e
=this.$element
.closest('[data-toggle="buttons"]');if(e
.length
){var i
=this.$element
.find("input");"radio"==i
.prop("type")&&(i
.prop("checked")&&this.$element
.hasClass("active")?t
=!1:e
.find(".active").removeClass("active")),t
&&i
.prop("checked",!this.$element
.hasClass("active")).trigger("change")}else this.$element
.attr("aria-pressed",!this.$element
.hasClass("active"));t
&&this.$element
.toggleClass("active")};var o
=t
.fn
.button
;t
.fn
.button
=e
,t
.fn
.button
.Constructor
=i
,t
.fn
.button
.noConflict=function(){return t
.fn
.button
=o
,this},t(document
).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i
){var o
=t(i
.target
);o
.hasClass("btn")||(o
=o
.closest(".btn")),e
.call(o
,"toggle"),i
.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e
){t(e
.target
).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e
.type
))})}(jQuery
),+function(t
){"use strict";function e(e
){return this.each(function(){var o
=t(this),s
=o
.data("bs.carousel"),n
=t
.extend({},i
.DEFAULTS
,o
.data(),"object"==typeof e
&&e
),a
="string"==typeof e
?e
:n
.slide
;s
||o
.data("bs.carousel",s
=new i(this,n
)),"number"==typeof e
?s
.to(e
):a
?s
[a
]():n
.interval
&&s
.pause().cycle()})}var i=function(e
,i
){this.$element
=t(e
),this.$indicators
=this.$element
.find(".carousel-indicators"),this.options
=i
,this.paused
=this.sliding
=this.interval
=this.$active
=this.$items
=null,this.options
.keyboard
&&this.$element
.on("keydown.bs.carousel",t
.proxy(this.keydown
,this)),"hover"==this.options
.pause
&&!("ontouchstart"in document
.documentElement
)&&this.$element
.on("mouseenter.bs.carousel",t
.proxy(this.pause
,this)).on("mouseleave.bs.carousel",t
.proxy(this.cycle
,this))};i
.VERSION
="3.3.2",i
.TRANSITION_DURATION
=600,i
.DEFAULTS
={interval
:5e3
,pause
:"hover",wrap
:!0,keyboard
:!0},i
.prototype.keydown=function(t
){if(!/input|textarea/i.test(t
.target
.tagName
)){switch(t
.which
){case 37:this.prev();break;case 39:this.next();break;default:return}t
.preventDefault()}},i
.prototype.cycle=function(e
){return e
||(this.paused
=!1),this.interval
&&clearInterval(this.interval
),this.options
.interval
&&!this.paused
&&(this.interval
=setInterval(t
.proxy(this.next
,this),this.options
.interval
)),this},i
.prototype.getItemIndex=function(t
){return this.$items
=t
.parent().children(".item"),this.$items
.index(t
||this.$active
)},i
.prototype.getItemForDirection=function(t
,e
){var i
=this.getItemIndex(e
),o
="prev"==t
&&0===i
||"next"==t
&&i
==this.$items
.length
-1;if(o
&&!this.options
.wrap
)return e
;var s
="prev"==t
?-1:1,n
=(i
+s
)%this.$items
.length
;return this.$items
.eq(n
)},i
.prototype.to=function(t
){var e
=this,i
=this.getItemIndex(this.$active
=this.$element
.find(".item.active"));return t
>this.$items
.length
-1||0>t
?void 0:this.sliding
?this.$element
.one("slid.bs.carousel",function(){e
.to(t
)}):i
==t
?this.pause().cycle():this.slide(t
>i
?"next":"prev",this.$items
.eq(t
))},i
.prototype.pause=function(e
){return e
||(this.paused
=!0),this.$element
.find(".next, .prev").length
&&t
.support
.transition
&&(this.$element
.trigger(t
.support
.transition
.end
),this.cycle(!0)),this.interval
=clearInterval(this.interval
),this},i
.prototype.next=function(){return this.sliding
?void 0:this.slide("next")},i
.prototype.prev=function(){return this.sliding
?void 0:this.slide("prev")},i
.prototype.slide=function(e
,o
){var s
=this.$element
.find(".item.active"),n
=o
||this.getItemForDirection(e
,s
),a
=this.interval
,r
="next"==e
?"left":"right",l
=this;if(n
.hasClass("active"))return this.sliding
=!1;var h
=n
[0],d
=t
.Event("slide.bs.carousel",{relatedTarget
:h
,direction
:r
});if(this.$element
.trigger(d
),!d
.isDefaultPrevented()){if(this.sliding
=!0,a
&&this.pause(),this.$indicators
.length
){this.$indicators
.find(".active").removeClass("active");var p
=t(this.$indicators
.children()[this.getItemIndex(n
)]);p
&&p
.addClass("active")}var c
=t
.Event("slid.bs.carousel",{relatedTarget
:h
,direction
:r
});return t
.support
.transition
&&this.$element
.hasClass("slide")?(n
.addClass(e
),n
[0].offsetWidth
,s
.addClass(r
),n
.addClass(r
),s
.one("bsTransitionEnd",function(){n
.removeClass([e
,r
].join(" ")).addClass("active"),s
.removeClass(["active",r
].join(" ")),l
.sliding
=!1,setTimeout(function(){l
.$element
.trigger(c
)},0)}).emulateTransitionEnd(i
.TRANSITION_DURATION
)):(s
.removeClass("active"),n
.addClass("active"),this.sliding
=!1,this.$element
.trigger(c
)),a
&&this.cycle(),this}};var o
=t
.fn
.carousel
;t
.fn
.carousel
=e
,t
.fn
.carousel
.Constructor
=i
,t
.fn
.carousel
.noConflict=function(){return t
.fn
.carousel
=o
,this};var s=function(i
){var o
,s
=t(this),n
=t(s
.attr("data-target")||(o
=s
.attr("href"))&&o
.replace(/.*(?=#[^\s]+$)/,""));if(n
.hasClass("carousel")){var a
=t
.extend({},n
.data(),s
.data()),r
=s
.attr("data-slide-to");r
&&(a
.interval
=!1),e
.call(n
,a
),r
&&n
.data("bs.carousel").to(r
),i
.preventDefault()}};t(document
).on("click.bs.carousel.data-api","[data-slide]",s
).on("click.bs.carousel.data-api","[data-slide-to]",s
),t(window
).on("load",function(){t('[data-ride="carousel"]').each(function(){var i
=t(this);e
.call(i
,i
.data())})})}(jQuery
),+function(t
){"use strict";function e(e
){e
&&3===e
.which
||(t(s
).remove(),t(n
).each(function(){var o
=t(this),s
=i(o
),n
={relatedTarget
:this};s
.hasClass("open")&&(s
.trigger(e
=t
.Event("hide.bs.dropdown",n
)),e
.isDefaultPrevented()||(o
.attr("aria-expanded","false"),s
.removeClass("open").trigger("hidden.bs.dropdown",n
)))}))}function i(e
){var i
=e
.attr("data-target");i
||(i
=e
.attr("href"),i
=i
&&/#[A-Za-z]/.test(i
)&&i
.replace(/.*(?=#[^\s]*$)/,""));var o
=i
&&t(i
);return o
&&o
.length
?o
:e
.parent()}function o(e
){return this.each(function(){var i
=t(this),o
=i
.data("bs.dropdown");o
||i
.data("bs.dropdown",o
=new a(this)),"string"==typeof e
&&o
[e
].call(i
)})}var s
=".dropdown-backdrop",n
='[data-toggle="dropdown"]',a=function(e
){t(e
).on("click.bs.dropdown",this.toggle
)};a
.VERSION
="3.3.2",a
.prototype.toggle=function(o
){var s
=t(this);if(!s
.is(".disabled, :disabled")){var n
=i(s
),a
=n
.hasClass("open");if(e(),!a
){"ontouchstart"in document
.documentElement
&&!n
.closest(".navbar-nav").length
&&t('<div class="dropdown-backdrop"/>').insertAfter(t(this)).on("click",e
);var r
={relatedTarget
:this};if(n
.trigger(o
=t
.Event("show.bs.dropdown",r
)),o
.isDefaultPrevented())return;s
.trigger("focus").attr("aria-expanded","true"),n
.toggleClass("open").trigger("shown.bs.dropdown",r
)}return!1}},a
.prototype.keydown=function(e
){if(/(38|40|27|32)/.test(e.which)&&!/input|textarea
/i.test(e.target.tagName)){var o=t(this);if(e.preventDefault(),e.stopPropagation(),!o.is(".disabled, :disabled")){var s=i(o),a=s.hasClass("open");if(!a&&27!=e.which||a&&27==e.which)return 27==e.which&&s.find(n).trigger("focus"),o.trigger("click");var r=" li:not(.divider):visible a",l=s.find('[role="menu"]'+r+', [role="listbox"]'+r);if(l.length){var h=l.index(e.target);38==e.which&&h>0&&h--,40==e.which&&h<l.length-1&&h++,~h||(h=0),l.eq(h).trigger("focus")}}}};var r=t.fn.dropdown;t.fn.dropdown=o,t.fn.dropdown.Constructor=a,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=r,this},t(document).on("click.bs.dropdown.data-api",e).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",n,a.prototype.toggle).on("keydown.bs.dropdown.data-api",n,a.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="menu"]',a.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="listbox"]',a.prototype.keydown)}(jQuery),+function(t){"use strict";function e(e,o){return this.each(function(){var s=t(this),n=s.data("bs.modal"),a=t.extend({},i.DEFAULTS,s.data(),"object"==typeof e&&e);n||s.data("bs.modal",n=new i(this,a)),"string"==typeof e?n[e](o):a.show&&n.show(o)})}var i=function(e,i){this.options=i,this.$body=t(document.body),this.$element=t(e),this.$backdrop=this.isShown=null,this.scrollbarWidth=0,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};i.VERSION="3.3.2",i.TRANSITION_DURATION=300,i.BACKDROP_TRANSITION_DURATION=150,i.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},i.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},i.prototype.show=function(e){var o=this,s=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(s),this.isShown||s.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.backdrop(function(){var s=t.support.transition&&o.$element.hasClass("fade");o.$element.parent().length||o.$element.appendTo(o.$body),o.$element.show().scrollTop(0),o.options.backdrop&&o.adjustBackdrop(),o.adjustDialog(),s&&o.$element[0].offsetWidth,o.$element.addClass("in").attr("aria-hidden",!1),o.enforceFocus();var n=t.Event("shown.bs.modal",{relatedTarget:e});s?o.$element.find(".modal-dialog").one("bsTransitionEnd",function(){o.$element.trigger("focus").trigger(n)}).emulateTransitionEnd(i.TRANSITION_DURATION):o.$element.trigger("focus").trigger(n)}))},i.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(i.TRANSITION_DURATION):this.hideModal())},i.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},i.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},i.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},i.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},i.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},i.prototype.backdrop=function(e){var o=this,s=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var n=t.support.transition&&s;if(this.$backdrop=t('<div class="modal-backdrop '+s+'" />').prependTo(this.$element).on("click.dismiss.bs.modal",t.proxy(function(t){t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),n&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;n?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var a=function(){o.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):a()}else e&&e()},i.prototype.handleUpdate=function(){this.options.backdrop&&this.adjustBackdrop(),this.adjustDialog()},i.prototype.adjustBackdrop=function(){this.$backdrop.css("height",0).css("height",this.$element[0].scrollHeight)},i.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},i.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},i.prototype.checkScrollbar=function(){this.bodyIsOverflowing=document.body.scrollHeight>document.documentElement.clientHeight,this.scrollbarWidth=this.measureScrollbar()},i.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},i.prototype.resetScrollbar=function(){this.$body.css("padding-right","")},i.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var o=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=i,t.fn.modal.noConflict=function(){return t.fn.modal=o,this},t(document).on("click.bs.modal.data-api",'[data
-toggle
="modal"]',function(i){var o=t(this),s=o.attr("href"),n=t(o.attr("data-target")||s&&s.replace(/.*(?=#[^\s]+$)/,"")),a=n.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(s)&&s},n.data(),o.data());o.is("a")&&i.preventDefault(),n.one("show.bs.modal",function(t){t.isDefaultPrevented()||n.one("hidden.bs.modal",function(){o.is(":visible")&&o.trigger("focus")})}),e.call(n,a,this)})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.tooltip"),n="object"==typeof e&&e;(s||"destroy"!=e)&&(s||o.data("bs.tooltip",s=new i(this,n)),"string"==typeof e&&s[e]())})}var i=function(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",t,e)};i.VERSION="3.3.2",i.TRANSITION_DURATION=150,i.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div
class="tooltip" role
="tooltip"><div
class="tooltip-arrow"></div
><div
class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},i.prototype.init=function(e,i,o){this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(o),this.$viewport=this.options.viewport&&t(this.options.viewport.selector||this.options.viewport);for(var s=this.options.trigger.split(" "),n=s.length;n--;){var a=s[n];if("click"==a)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=a){var r="hover"==a?"mouseenter":"focusin",l="hover"==a?"mouseleave":"focusout";this.$element.on(r+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},i.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,o){i[t]!=o&&(e[t]=o)}),e},i.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i&&i.$tip&&i.$tip.is(":visible")?void(i.hoverState="in"):(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show())},i.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide()},i.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var o=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!o)return;var s=this,n=this.tip(),a=this.getUID(this.type);this.setContent(),n.attr("id",a),this.$element.attr("aria-describedby",a),this.options.animation&&n.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,n[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,h=l.test(r);h&&(r=r.replace(l,"")||"top"),n.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?n.appendTo(this.options.container):n.insertAfter(this.$element);var d=this.getPosition(),p=n[0].offsetWidth,c=n[0].offsetHeight;if(h){var f=r,u=this.options.container?t(this.options.container):this.$element.parent(),g=this.getPosition(u);r="bottom"==r&&d.bottom+c>g.bottom?"top":"top"==r&&d.top-c<g.top?"bottom":"right"==r&&d.right+p>g.width?"left":"left"==r&&d.left-p<g.left?"right":r,n.removeClass(f).addClass(r)}var v=this.getCalculatedOffset(r,d,p,c);this.applyPlacement(v,r);var m=function(){var t=s.hoverState;s.$element.trigger("shown.bs."+s.type),s.hoverState=null,"out"==t&&s.leave(s)};t.support.transition&&this.$tip.hasClass("fade")?n.one("bsTransitionEnd",m).emulateTransitionEnd(i.TRANSITION_DURATION):m()}},i.prototype.applyPlacement=function(e,i){var o=this.tip(),s=o[0].offsetWidth,n=o[0].offsetHeight,a=parseInt(o.css("margin-top"),10),r=parseInt(o.css("margin-left"),10);isNaN(a)&&(a=0),isNaN(r)&&(r=0),e.top=e.top+a,e.left=e.left+r,t.offset.setOffset(o[0],t.extend({using:function(t){o.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),o.addClass("in");var l=o[0].offsetWidth,h=o[0].offsetHeight;"top"==i&&h!=n&&(e.top=e.top+n-h);var d=this.getViewportAdjustedDelta(i,e,l,h);d.left?e.left+=d.left:e.top+=d.top;var p=/top|bottom/.test(i),c=p?2*d.left-s+l:2*d.top-n+h,f=p?"offsetWidth":"offsetHeight";o.offset(e),this.replaceArrow(c,o[0][f],p)},i.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},i.prototype.hide=function(e){function o(){"in"!=s.hoverState&&n.detach(),s.$element.removeAttr("aria-describedby").trigger("hidden.bs."+s.type),e&&e()}var s=this,n=this.tip(),a=t.Event("hide.bs."+this.type);return this.$element.trigger(a),a.isDefaultPrevented()?void 0:(n.removeClass("in"),t.support.transition&&this.$tip.hasClass("fade")?n.one("bsTransitionEnd",o).emulateTransitionEnd(i.TRANSITION_DURATION):o(),this.hoverState=null,this)},i.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},i.prototype.hasContent=function(){return this.getTitle()},i.prototype.getPosition=function(e){e=e||this.$element;var i=e[0],o="BODY"==i.tagName,s=i.getBoundingClientRect();null==s.width&&(s=t.extend({},s,{width:s.right-s.left,height:s.bottom-s.top}));var n=o?{top:0,left:0}:e.offset(),a={scroll:o?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},r=o?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},s,a,r,n)},i.prototype.getCalculatedOffset=function(t,e,i,o){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-o,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-o/2,left:e.left-i}:{top:e.top+e.height/2-o/2,left:e.left+e.width}},i.prototype.getViewportAdjustedDelta=function(t,e,i,o){var s={top:0,left:0};if(!this.$viewport)return s;var n=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(t)){var r=e.top-n-a.scroll,l=e.top+n-a.scroll+o;r<a.top?s.top=a.top-r:l>a.top+a.height&&(s.top=a.top+a.height-l)}else{var h=e.left-n,d=e.left+n+i;h<a.left?s.left=a.left-h:d>a.width&&(s.left=a.left+a.width-d)}return s},i.prototype.getTitle=function(){var t,e=this.$element,i=this.options;return t=e.attr("data-original-title")||("function"==typeof i.title?i.title.call(e[0]):i.title)},i.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},i.prototype.tip=function(){return this.$tip=this.$tip||t(this.options.template)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},i.prototype.enable=function(){this.enabled=!0},i.prototype.disable=function(){this.enabled=!1},i.prototype.toggleEnabled=function(){this.enabled=!this.enabled},i.prototype.toggle=function(e){var i=this;e&&(i=t(e.currentTarget).data("bs."+this.type),i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),i.tip().hasClass("in")?i.leave(i):i.enter(i)},i.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type)})};var o=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=i,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=o,this}}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.popover"),n="object"==typeof e&&e;(s||"destroy"!=e)&&(s||o.data("bs.popover",s=new i(this,n)),"string"==typeof e&&s[e]())})}var i=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");i.VERSION="3.3.2",i.DEFAULTS=t.extend({},t.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>'}),i.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),i.prototype.constructor=i,i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},i.prototype.hasContent=function(){return this.getTitle()||this.getContent()},i.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},i.prototype.tip=function(){return this.$tip||(this.$tip=t(this.options.template)),this.$tip};var o=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=i,t.fn.popover.noConflict=function(){return t.fn.popover=o,this}}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.tab");s||o.data("bs.tab",s=new i(this)),"string"==typeof e&&s[e]()})}var i=function(e){this.element=t(e)};i.VERSION="3.3.2",i.TRANSITION_DURATION=150,i.prototype.show=function(){var e=this.element,i=e.closest("ul:not(.dropdown-menu)"),o=e.data("target");if(o||(o=e.attr("href"),o=o&&o.replace(/.*(?=#[^\s
]*$)/,"")),!e.parent("li").hasClass("active")){var s=i.find(".active:last a"),n=t.Event("hide.bs.tab",{relatedTarget:e[0]}),a=t.Event("show.bs.tab",{relatedTarget:s[0]});if(s.trigger(n),e.trigger(a),!a.isDefaultPrevented()&&!n.isDefaultPrevented()){var r=t(o);this.activate(e.closest("li"),i),this.activate(r,r.parent(),function(){s.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:s[0]})})}}},i.prototype.activate=function(e,o,s){function n(){a.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),r?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu")&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),s&&s()}var a=o.find("> .active"),r=s&&t.support.transition&&(a.length&&a.hasClass("fade")||!!o.find("> .fade").length);a.length&&r?a.one("bsTransitionEnd",n).emulateTransitionEnd(i.TRANSITION_DURATION):n(),a.removeClass("in")};var o=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=i,t.fn.tab.noConflict=function(){return t.fn.tab=o,this};var s=function(i){i.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',s).on("click.bs.tab.data-api",'[data-toggle="pill"]',s)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.affix"),n="object"==typeof e&&e;s||o.data("bs.affix",s=new i(this,n)),"string"==typeof e&&s[e]()})}var i=function(e,o){this.options=t.extend({},i.DEFAULTS,o),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};i.VERSION="3.3.2",i.RESET="affix affix-top affix-bottom",i.DEFAULTS={offset:0,target:window},i.prototype.getState=function(t,e,i,o){var s=this.$target.scrollTop(),n=this.$element.offset(),a=this.$target.height();if(null!=i&&"top"==this.affixed)return i>s?"top":!1;if("bottom"==this.affixed)return null!=i?s+this.unpin<=n.top?!1:"bottom":t-o>=s+a?!1:"bottom";var r=null==this.affixed,l=r?s:n.top,h=r?a:e;return null!=i&&i>=s?"top":null!=o&&l+h>=t-o?"bottom":!1},i.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(i.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},i.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},i.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),o=this.options.offset,s=o.top,n=o.bottom,a=t("body").height();"object"!=typeof o&&(n=s=o),"function"==typeof s&&(s=o.top(this.$element)),"function"==typeof n&&(n=o.bottom(this.$element));var r=this.getState(a,e,s,n);if(this.affixed!=r){null!=this.unpin&&this.$element.css("top","");var l="affix"+(r?"-"+r:""),h=t.Event(l+".bs.affix");if(this.$element.trigger(h),h.isDefaultPrevented())return;this.affixed=r,this.unpin="bottom"==r?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==r&&this.$element.offset({top:a-e-n})}};var o=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=i,t.fn.affix.noConflict=function(){return t.fn.affix=o,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var i=t(this),o=i.data();o.offset=o.offset||{},null!=o.offsetBottom&&(o.offset.bottom=o.offsetBottom),null!=o.offsetTop&&(o.offset.top=o.offsetTop),e.call(i,o)})})}(jQuery),+function(t){"use strict";function e(e){var i,o=e.attr("data-target")||(i=e.attr("href"))&&i.replace(/.*(?=#[^\s
]+$)/,"");return t(o
)}function i(e
){return this.each(function(){var i
=t(this),s
=i
.data("bs.collapse"),n
=t
.extend({},o
.DEFAULTS
,i
.data(),"object"==typeof e
&&e
);!s
&&n
.toggle
&&"show"==e
&&(n
.toggle
=!1),s
||i
.data("bs.collapse",s
=new o(this,n
)),"string"==typeof e
&&s
[e
]()})}var o=function(e
,i
){this.$element
=t(e
),this.options
=t
.extend({},o
.DEFAULTS
,i
),this.$trigger
=t(this.options
.trigger
).filter('[href="#'+e
.id
+'"], [data-target="#'+e
.id
+'"]'),this.transitioning
=null,this.options
.parent
?this.$parent
=this.getParent():this.addAriaAndCollapsedClass(this.$element
,this.$trigger
),this.options
.toggle
&&this.toggle()};o
.VERSION
="3.3.2",o
.TRANSITION_DURATION
=350,o
.DEFAULTS
={toggle
:!0,trigger
:'[data-toggle="collapse"]'},o
.prototype.dimension=function(){var t
=this.$element
.hasClass("width");return t
?"width":"height"},o
.prototype.show=function(){if(!this.transitioning
&&!this.$element
.hasClass("in")){var e
,s
=this.$parent
&&this.$parent
.children(".panel").children(".in, .collapsing");if(!(s
&&s
.length
&&(e
=s
.data("bs.collapse"),e
&&e
.transitioning
))){var n
=t
.Event("show.bs.collapse");if(this.$element
.trigger(n
),!n
.isDefaultPrevented()){s
&&s
.length
&&(i
.call(s
,"hide"),e
||s
.data("bs.collapse",null));var a
=this.dimension();this.$element
.removeClass("collapse").addClass("collapsing")[a
](0).attr("aria-expanded",!0),this.$trigger
.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning
=1;var r=function(){this.$element
.removeClass("collapsing").addClass("collapse in")[a
](""),this.transitioning
=0,this.$element
.trigger("shown.bs.collapse")};if(!t
.support
.transition
)return r
.call(this);var l
=t
.camelCase(["scroll",a
].join("-"));this.$element
.one("bsTransitionEnd",t
.proxy(r
,this)).emulateTransitionEnd(o
.TRANSITION_DURATION
)[a
](this.$element
[0][l
])}}}},o
.prototype.hide=function(){if(!this.transitioning
&&this.$element
.hasClass("in")){var e
=t
.Event("hide.bs.collapse");if(this.$element
.trigger(e
),!e
.isDefaultPrevented()){var i
=this.dimension();this.$element
[i
](this.$element
[i
]())[0].offsetHeight
,this.$element
.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger
.addClass("collapsed").attr("aria-expanded",!1),this.transitioning
=1;var s=function(){this.transitioning
=0,this.$element
.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t
.support
.transition
?void this.$element
[i
](0).one("bsTransitionEnd",t
.proxy(s
,this)).emulateTransitionEnd(o
.TRANSITION_DURATION
):s
.call(this)}}},o
.prototype.toggle=function(){this[this.$element
.hasClass("in")?"hide":"show"]()},o
.prototype.getParent=function(){return t(this.options
.parent
).find('[data-toggle="collapse"][data-parent="'+this.options
.parent
+'"]').each(t
.proxy(function(i
,o
){var s
=t(o
);this.addAriaAndCollapsedClass(e(s
),s
)},this)).end()},o
.prototype.addAriaAndCollapsedClass=function(t
,e
){var i
=t
.hasClass("in");t
.attr("aria-expanded",i
),e
.toggleClass("collapsed",!i
).attr("aria-expanded",i
)};var s
=t
.fn
.collapse
;t
.fn
.collapse
=i
,t
.fn
.collapse
.Constructor
=o
,t
.fn
.collapse
.noConflict=function(){return t
.fn
.collapse
=s
,this},t(document
).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(o
){var s
=t(this);s
.attr("data-target")||o
.preventDefault();
12 var n
=e(s
),a
=n
.data("bs.collapse"),r
=a
?"toggle":t
.extend({},s
.data(),{trigger
:this});i
.call(n
,r
)})}(jQuery
),+function(t
){"use strict";function e(i
,o
){var s
=t
.proxy(this.process
,this);this.$body
=t("body"),this.$scrollElement
=t(t(i
).is("body")?window
:i
),this.options
=t
.extend({},e
.DEFAULTS
,o
),this.selector
=(this.options
.target
||"")+" .nav li > a",this.offsets
=[],this.targets
=[],this.activeTarget
=null,this.scrollHeight
=0,this.$scrollElement
.on("scroll.bs.scrollspy",s
),this.refresh(),this.process()}function i(i
){return this.each(function(){var o
=t(this),s
=o
.data("bs.scrollspy"),n
="object"==typeof i
&&i
;s
||o
.data("bs.scrollspy",s
=new e(this,n
)),"string"==typeof i
&&s
[i
]()})}e
.VERSION
="3.3.2",e
.DEFAULTS
={offset
:10},e
.prototype.getScrollHeight=function(){return this.$scrollElement
[0].scrollHeight
||Math
.max(this.$body
[0].scrollHeight
,document
.documentElement
.scrollHeight
)},e
.prototype.refresh=function(){var e
="offset",i
=0;t
.isWindow(this.$scrollElement
[0])||(e
="position",i
=this.$scrollElement
.scrollTop()),this.offsets
=[],this.targets
=[],this.scrollHeight
=this.getScrollHeight();var o
=this;this.$body
.find(this.selector
).map(function(){var o
=t(this),s
=o
.data("target")||o
.attr("href"),n
=/^#./.test(s
)&&t(s
);return n
&&n
.length
&&n
.is(":visible")&&[[n
[e
]().top
+i
,s
]]||null}).sort(function(t
,e
){return t
[0]-e
[0]}).each(function(){o
.offsets
.push(this[0]),o
.targets
.push(this[1])})},e
.prototype.process=function(){var t
,e
=this.$scrollElement
.scrollTop()+this.options
.offset
,i
=this.getScrollHeight(),o
=this.options
.offset
+i
-this.$scrollElement
.height(),s
=this.offsets
,n
=this.targets
,a
=this.activeTarget
;if(this.scrollHeight
!=i
&&this.refresh(),e
>=o
)return a
!=(t
=n
[n
.length
-1])&&this.activate(t
);if(a
&&e
<s
[0])return this.activeTarget
=null,this.clear();for(t
=s
.length
;t
--;)a
!=n
[t
]&&e
>=s
[t
]&&(!s
[t
+1]||e
<=s
[t
+1])&&this.activate(n
[t
])},e
.prototype.activate=function(e
){this.activeTarget
=e
,this.clear();var i
=this.selector
+'[data-target="'+e
+'"],'+this.selector
+'[href="'+e
+'"]',o
=t(i
).parents("li").addClass("active");o
.parent(".dropdown-menu").length
&&(o
=o
.closest("li.dropdown").addClass("active")),o
.trigger("activate.bs.scrollspy")},e
.prototype.clear=function(){t(this.selector
).parentsUntil(this.options
.target
,".active").removeClass("active")};var o
=t
.fn
.scrollspy
;t
.fn
.scrollspy
=i
,t
.fn
.scrollspy
.Constructor
=e
,t
.fn
.scrollspy
.noConflict=function(){return t
.fn
.scrollspy
=o
,this},t(window
).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e
=t(this);i
.call(e
,e
.data())})})}(jQuery
),+function(t
){"use strict";function e(){var t
=document
.createElement("bootstrap"),e
={WebkitTransition
:"webkitTransitionEnd",MozTransition
:"transitionend",OTransition
:"oTransitionEnd otransitionend",transition
:"transitionend"};for(var i
in e
)if(void 0!==t
.style
[i
])return{end
:e
[i
]};return!1}t
.fn
.emulateTransitionEnd=function(e
){var i
=!1,o
=this;t(this).one("bsTransitionEnd",function(){i
=!0});var s=function(){i
||t(o
).trigger(t
.support
.transition
.end
)};return setTimeout(s
,e
),this},t(function(){t
.support
.transition
=e(),t
.support
.transition
&&(t
.event
.special
.bsTransitionEnd
={bindType
:t
.support
.transition
.end
,delegateType
:t
.support
.transition
.end
,handle:function(e
){return t(e
.target
).is(this)?e
.handleObj
.handler
.apply(this,arguments
):void 0}})})}(jQuery
);