!function () { "use strict"; function e(e) { function t(t, i) { var s, h, k = t == window, m = i && void 0 !== i.message ? i.message : void 0; if (!(i = e.extend({}, e.blockUI.defaults, i || {})).ignoreIfBlocked || !e(t).data("blockUI.isBlocked")) { if (i.overlayCSS = e.extend({}, e.blockUI.defaults.overlayCSS, i.overlayCSS || {}), s = e.extend({}, e.blockUI.defaults.css, i.css || {}), i.onOverlayClick && (i.overlayCSS.cursor = "pointer"), h = e.extend({}, e.blockUI.defaults.themedCSS, i.themedCSS || {}), m = void 0 === m ? i.message : m, k && p && o(window, { fadeOut: 0 }), m && "string" != typeof m && (m.parentNode || m.jquery)) { var v = m.jquery ? m[0] : m, y = {}; e(t).data("blockUI.history", y), y.el = v, y.parent = v.parentNode, y.display = v.style.display, y.position = v.style.position, y.parent && y.parent.removeChild(v) } e(t).data("blockUI.onUnblock", i.onUnblock); var g, I, w, U, x = i.baseZ; g = e(r || i.forceIframe ? '' : ''), I = e(i.theme ? '' : ''), i.theme && k ? (U = '") : i.theme ? (U = '") : U = k ? '' : '', w = e(U), m && (i.theme ? (w.css(h), w.addClass("ui-widget-content")) : w.css(s)), i.theme || I.css(i.overlayCSS), I.css("position", k ? "fixed" : "absolute"), (r || i.forceIframe) && g.css("opacity", 0); var C = [g, I, w], S = e(k ? "body" : t); e.each(C, function () { this.appendTo(S) }), i.theme && i.draggable && e.fn.draggable && w.draggable({ handle: ".ui-dialog-titlebar", cancel: "li" }); var O = f && (!e.support.boxModel || e("object,embed", k ? null : t).length > 0); if (u || O) { if (k && i.allowBodyStretch && e.support.boxModel && e("html,body").css("height", "100%"), (u || !e.support.boxModel) && !k) var E = d(t, "borderTopWidth"), T = d(t, "borderLeftWidth"), M = E ? "(0 - " + E + ")" : 0, B = T ? "(0 - " + T + ")" : 0; e.each(C, function (e, t) { var o = t[0].style; if (o.position = "absolute", e < 2) k ? o.setExpression("height", "Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:" + i.quirksmodeOffsetHack + ') + "px"') : o.setExpression("height", 'this.parentNode.offsetHeight + "px"'), k ? o.setExpression("width", 'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"') : o.setExpression("width", 'this.parentNode.offsetWidth + "px"'), B && o.setExpression("left", B), M && o.setExpression("top", M); else if (i.centerY) k && o.setExpression("top", '(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'), o.marginTop = 0; else if (!i.centerY && k) { var n = "((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + " + (i.css && i.css.top ? parseInt(i.css.top, 10) : 0) + ') + "px"'; o.setExpression("top", n) } }) } if (m && (i.theme ? w.find(".ui-widget-content").append(m) : w.append(m), (m.jquery || m.nodeType) && e(m).show()), (r || i.forceIframe) && i.showOverlay && g.show(), i.fadeIn) { var j = i.onBlock ? i.onBlock : c, H = i.showOverlay && !m ? j : c, z = m ? j : c; i.showOverlay && I._fadeIn(i.fadeIn, H), m && w._fadeIn(i.fadeIn, z) } else i.showOverlay && I.show(), m && w.show(), i.onBlock && i.onBlock(); if (n(1, t, i), k ? (p = w[0], b = e(i.focusableElements, p), i.focusInput && setTimeout(l, 20)) : a(w[0], i.centerX, i.centerY), i.timeout) { var W = setTimeout(function () { k ? e.unblockUI(i) : e(t).unblock(i) }, i.timeout); e(t).data("blockUI.timeout", W) } } } function o(t, o) { var s, l = t == window, a = e(t), d = a.data("blockUI.history"), c = a.data("blockUI.timeout"); c && (clearTimeout(c), a.removeData("blockUI.timeout")), o = e.extend({}, e.blockUI.defaults, o || {}), n(0, t, o), null === o.onUnblock && (o.onUnblock = a.data("blockUI.onUnblock"), a.removeData("blockUI.onUnblock")); var r; r = l ? e("body").children().filter(".blockUI").add("body > .blockUI") : a.find(">.blockUI"), o.cursorReset && (r.length > 1 && (r[1].style.cursor = o.cursorReset), r.length > 2 && (r[2].style.cursor = o.cursorReset)), l && (p = b = null), o.fadeOut ? (s = r.length, r.stop().fadeOut(o.fadeOut, function () { 0 == --s && i(r, d, o, t) })) : i(r, d, o, t) } function i(t, o, i, n) { var s = e(n); if (!s.data("blockUI.isBlocked")) { t.each(function (e, t) { this.parentNode && this.parentNode.removeChild(this) }), o && o.el && (o.el.style.display = o.display, o.el.style.position = o.position, o.parent && o.parent.appendChild(o.el), s.removeData("blockUI.history")), s.data("blockUI.static") && s.css("position", "static"), "function" == typeof i.onUnblock && i.onUnblock(n, i); var l = e(document.body), a = l.width(), d = l[0].style.width; l.width(a - 1).width(a), l[0].style.width = d } } function n(t, o, i) { var n = o == window, l = e(o); if ((t || (!n || p) && (n || l.data("blockUI.isBlocked"))) && (l.data("blockUI.isBlocked", t), n && i.bindEvents && (!t || i.showOverlay))) { var a = "mousedown mouseup keydown keypress keyup touchstart touchend touchmove"; t ? e(document).bind(a, i, s) : e(document).unbind(a, s) } } function s(t) { if ("keydown" === t.type && t.keyCode && 9 == t.keyCode && p && t.data.constrainTabKey) { var o = b, i = !t.shiftKey && t.target === o[o.length - 1], n = t.shiftKey && t.target === o[0]; if (i || n) return setTimeout(function () { l(n) }, 10), !1 } var s = t.data, a = e(t.target); return a.hasClass("blockOverlay") && s.onOverlayClick && s.onOverlayClick(t), a.parents("div." + s.blockMsgClass).length > 0 || 0 === a.parents().children().filter("div.blockUI").length } function l(e) { if (b) { var t = b[!0 === e ? b.length - 1 : 0]; t && t.focus() } } function a(e, t, o) { var i = e.parentNode, n = e.style, s = (i.offsetWidth - e.offsetWidth) / 2 - d(i, "borderLeftWidth"), l = (i.offsetHeight - e.offsetHeight) / 2 - d(i, "borderTopWidth"); t && (n.left = s > 0 ? s + "px" : "0"), o && (n.top = l > 0 ? l + "px" : "0") } function d(t, o) { return parseInt(e.css(t, o), 10) || 0 } e.fn._fadeIn = e.fn.fadeIn; var c = e.noop || function () { }, r = /MSIE/.test(navigator.userAgent), u = /MSIE 6.0/.test(navigator.userAgent) && !/MSIE 8.0/.test(navigator.userAgent), f = (document.documentMode, e.isFunction(document.createElement("div").style.setExpression)); e.blockUI = function (e) { t(window, e) }, e.unblockUI = function (e) { o(window, e) }, e.growlUI = function (t, o, i, n) { var s = e('
'); t && s.append("

" + t + "

"), o && s.append("

" + o + "

"), void 0 === i && (i = 3e3); var l = function (t) { t = t || {}, e.blockUI({ message: s, fadeIn: void 0 !== t.fadeIn ? t.fadeIn : 700, fadeOut: void 0 !== t.fadeOut ? t.fadeOut : 1e3, timeout: void 0 !== t.timeout ? t.timeout : i, centerY: !1, showOverlay: !1, onUnblock: n, css: e.blockUI.defaults.growlCSS }) }; l(); s.css("opacity"); s.mouseover(function () { l({ fadeIn: 0, timeout: 3e4 }); var t = e(".blockMsg"); t.stop(), t.fadeTo(300, 1) }).mouseout(function () { e(".blockMsg").fadeOut(1e3) }) }, e.fn.block = function (o) { if (this[0] === window) return e.blockUI(o), this; var i = e.extend({}, e.blockUI.defaults, o || {}); return this.each(function () { var t = e(this); i.ignoreIfBlocked && t.data("blockUI.isBlocked") || t.unblock({ fadeOut: 0 }) }), this.each(function () { "static" == e.css(this, "position") && (this.style.position = "relative", e(this).data("blockUI.static", !0)), this.style.zoom = 1, t(this, o) }) }, e.fn.unblock = function (t) { return this[0] === window ? (e.unblockUI(t), this) : this.each(function () { o(this, t) }) }, e.blockUI.version = 2.66, e.blockUI.defaults = { message: "

Please wait...

", title: null, draggable: !0, theme: !1, css: { padding: "0px !important", top: 0, left: 0, right: 0, bottom: 0, width: "100%", textAlign: "center", color: "#000", backgroundColor: "transparent !important" }, themedCSS: { width: "55px", height: "55px", top: "48%", left: "48%", padding: "6px", "border-radius": "50%" }, overlayCSS: { backgroundColor: "#000", opacity: .6 }, cursorReset: "default", growlCSS: { width: "350px", top: "10px", left: "", right: "10px", border: "none", padding: "5px", opacity: .6, cursor: "default", color: "#fff", backgroundColor: "#000", "-webkit-border-radius": "10px", "-moz-border-radius": "10px", "border-radius": "10px" }, iframeSrc: /^https/i.test(window.location.href || "") ? "javascript:false" : "about:blank", forceIframe: !1, baseZ: 1e3, centerX: !0, centerY: !0, allowBodyStretch: !0, bindEvents: !0, constrainTabKey: !0, fadeIn: 200, fadeOut: 400, timeout: 0, showOverlay: !0, focusInput: !0, focusableElements: ":input:enabled:visible", onBlock: null, onUnblock: null, onOverlayClick: null, quirksmodeOffsetHack: 4, blockMsgClass: "blockMsg", ignoreIfBlocked: !1 }; var p = null, b = [] } "function" == typeof define && define.amd && define.amd.jQuery ? define(["jquery"], e) : e(jQuery) }();