!function (a, b) { "function" == typeof define && define.amd ? define(["jquery"], b) : b(a.jQuery) }(this, function (a) { "function" != typeof Object.create && (Object.create = function (a) { function b() { } return b.prototype = a, new b }); var b = { init: function (b) { return this.options = a.extend({}, a.noty.defaults, b), this.options.layout = this.options.custom ? a.noty.layouts.inline : a.noty.layouts[this.options.layout], a.noty.themes[this.options.theme] ? this.options.theme = a.noty.themes[this.options.theme] : b.themeClassName = this.options.theme, delete b.layout, delete b.theme, this.options = a.extend({}, this.options, this.options.layout.options), this.options.id = "noty_" + (new Date).getTime() * Math.floor(1e6 * Math.random()), this.options = a.extend({}, this.options, b), this._build(), this }, _build: function () { var b = a('
').attr("id", this.options.id); if (b.append(this.options.template).find(".noty_text").html(this.options.text), this.$bar = null !== this.options.layout.parent.object ? a(this.options.layout.parent.object).css(this.options.layout.parent.css).append(b) : b, this.options.themeClassName && this.$bar.addClass(this.options.themeClassName).addClass("noty_container_type_" + this.options.type), this.options.buttons) { this.options.closeWith = [], this.options.timeout = !1; var c = a("
").addClass("noty_buttons"); null !== this.options.layout.parent.object ? this.$bar.find(".noty_bar").append(c) : this.$bar.append(c); var d = this; a.each(this.options.buttons, function (b, c) { var e = a("