!function(n){"use strict";var t=function(n,t){this.init("tooltip",n,t)},i;t.prototype={constructor:t,init:function(t,i,r){var u,f;if(this.type=t,this.$element=n(i),this.options=this.getOptions(r),this.enabled=!0,this.options.trigger=="click")this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else if(this.options.trigger!="manual"){u=this.options.trigger=="hover"?"mouseenter":"focus";f=this.options.trigger=="hover"?"mouseleave":"blur";this.$element.on(u+"."+this.type,this.options.selector,n.proxy(this.enter,this));this.$element.on(f+"."+this.type,this.options.selector,n.proxy(this.leave,this))}this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(t){return t=n.extend({},n.fn[this.type].defaults,t,this.$element.data()),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t},enter:function(t){var i=n(t.currentTarget)[this.type](this._options).data(this.type);if(!i.options.delay||!i.options.delay.show)return i.show();clearTimeout(this.timeout);i.hoverState="in";this.timeout=setTimeout(function(){i.hoverState=="in"&&i.show()},i.options.delay.show)},leave:function(t){var i=n(t.currentTarget)[this.type](this._options).data(this.type);if(this.timeout&&clearTimeout(this.timeout),!i.options.delay||!i.options.delay.hide)return i.hide();i.hoverState="out";this.timeout=setTimeout(function(){i.hoverState=="out"&&i.hide()},i.options.delay.hide)},show:function(){var t,e,n,u,f,i,r;if(this.hasContent()&&this.enabled){t=this.tip();this.setContent();this.options.animation&&t.addClass("fade");i=typeof this.options.placement=="function"?this.options.placement.call(this,t[0],this.$element[0]):this.options.placement;e=/in/.test(i);t.detach().css({top:0,left:0,display:"block"}).insertAfter(this.$element);n=this.getPosition(e);u=t[0].offsetWidth;f=t[0].offsetHeight;switch(e?i.split(" ")[1]:i){case"bottom":r={top:n.top+n.height,left:n.left+n.width/2-u/2};break;case"top":r={top:n.top-f,left:n.left+n.width/2-u/2};break;case"left":r={top:n.top+n.height/2-f/2,left:n.left-u};break;case"right":r={top:n.top+n.height/2-f/2,left:n.left+n.width}}t.offset(r).addClass(i).addClass("in")}},setContent:function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t);n.removeClass("fade in top bottom left right")},hide:function(){function i(){var i=setTimeout(function(){t.off(n.support.transition.end).detach()},500);t.one(n.support.transition.end,function(){clearTimeout(i);t.detach()})}var r=this,t=this.tip();return t.removeClass("in"),n.support.transition&&this.$tip.hasClass("fade")?i():t.detach(),this},fixTitle:function(){var n=this.$element;(n.attr("title")||typeof n.attr("data-original-title")!="string")&&n.attr("data-original-title",n.attr("title")||"").attr("title","")},hasContent:function(){return this.getTitle()},getPosition:function(t){return n.extend({},t?{top:0,left:0}:this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight})},getTitle:function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||(typeof n.title=="function"?n.title.call(t[0]):n.title)},tip:function(){return this.$tip=this.$tip||n(this.options.template)},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(t){var i=n(t.currentTarget)[this.type](this._options).data(this.type);i[i.tip().hasClass("in")?"hide":"show"]()},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}};i=n.fn.tooltip;n.fn.tooltip=function(i){return this.each(function(){var u=n(this),r=u.data("tooltip"),f=typeof i=="object"&&i;r||u.data("tooltip",r=new t(this,f));typeof i=="string"&&r[i]()})};n.fn.tooltip.Constructor=t;n.fn.tooltip.defaults={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover",title:"",delay:0,html:!1};n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(window.jQuery);!function(n){"use strict";var t=function(n,t){this.init("popover",n,t)};t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype,{constructor:t,setContent:function(){var t=this.tip(),i=this.getTitle(),r=this.getContent();t.find(".popover-title")[n.type(i)=="object"?"append":"html"](i);t.find(".popover-content > *")[n.type(r)=="object"?"append":"html"](r);t.removeClass("fade top bottom left right in")},hasContent:function(){return this.getTitle()||this.getContent()},getContent:function(){var t,i=this.$element,n=this.options;return t=i.attr("data-content")||(typeof n.content=="function"?n.content.call(i[0]):n.content),t.toString().replace(/(^\s*|\s*$)/,"")},tip:function(){return this.$tip||(this.$tip=n(this.options.template)),this.$tip},show:function(){var i,f,t,e,o,r,u;if(this.hasContent()&&this.enabled){i=this.tip();this.setContent();this.options.animation&&i.addClass("fade");r=typeof this.options.placement=="function"?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement;f=/in/.test(r);i.remove().css({top:0,left:0,display:"block"}).appendTo(f?this.$element:document.body);t=this.getPosition(f);e=i[0].offsetWidth;o=i[0].offsetHeight;switch(f?r.split(" ")[1]:r){case"bottom":u={top:t.top+t.height,left:t.left+t.width/2-e/2};break;case"top":u={top:t.top-o,left:t.left+t.width/2-e/2};break;case"left":u={top:t.top+t.height/2-o/2,left:t.left-e};break;case"right":u={top:t.top+t.height/2-o/2,left:t.left+t.width}}i.css(u).addClass(r).addClass("in").on("mouseenter",n.proxy(this.over,this)).on("mouseleave",n.proxy(this.out,this))}},over:function(){var t=n(this.$element)[this.type](this._options).data(this.type);t.hoverState="in"},out:function(){var t=n(this.$element)[this.type](this._options).data(this.type);t.options.delay&&t.options.delay.hide?(t.hoverState="out",setTimeout(function(){t.hoverState=="out"&&t.hide()},t.options.delay.hide)):t.hide()}});n.fn.popover=function(i){return this.each(function(){var u=n(this),r=u.data("popover"),f=typeof i=="object"&&i;r||u.data("popover",r=new t(this,f));typeof i=="string"&&r[i]()})};n.fn.popover.Constructor=t;n.fn.popover.defaults=n.extend({},n.fn.tooltip.defaults,{placement:"right",content:"",template:'<div class="popover"><div class="arrow"><\/div><div class="popover-inner"><h3 class="popover-title"><\/h3><div class="popover-content"><p><\/p><\/div><\/div><\/div>'})}(window.jQuery);!function(n){"use strict";n(function(){n.support.transition=function(){var n=function(){var i=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var t in n)if(i.style[t]!==undefined)return n[t]}();return n&&{end:n}}()})}(window.jQuery)