!function(s){"use strict";var e='[data-dismiss="alert"]',r=function(t){s(t).on("click",e,this.close)};r.prototype.close=function(t){var e,a=s(this),r=a.attr("data-target");function n(){e.trigger("closed").remove()}r||(r=(r=a.attr("href"))&&r.replace(/.*(?=#[^\s]*$)/,"")),e=s(r),t&&t.preventDefault(),e.length||(e=a.hasClass("alert")?a:a.parent()),e.trigger(t=s.Event("close")),t.isDefaultPrevented()||(e.removeClass("in"),s.support.transition&&e.hasClass("fade")?e.on(s.support.transition.end,n):n())},s.fn.alert=function(a){return this.each(function(){var t=s(this),e=t.data("alert");e||t.data("alert",e=new r(this)),"string"==typeof a&&e[a].call(t)})},s.fn.alert.Constructor=r,s(document).on("click.alert.data-api",e,r.prototype.close)}(window.jQuery);