(function (c, a) {
    function b(a) { return !c(a).parents().andSelf().filter(function () { return c.curCSS(this, "visibility") === "hidden" || c.expr.filters.hidden(this) }).length } c.ui = c.ui || {}; c.ui.version || (c.extend(c.ui, { version: "1.8.5", keyCode: { ALT: 18, BACKSPACE: 8, CAPS_LOCK: 20, COMMA: 188, COMMAND: 91, COMMAND_LEFT: 91, COMMAND_RIGHT: 93, CONTROL: 17, DELETE: 46, DOWN: 40, END: 35, ENTER: 13, ESCAPE: 27, HOME: 36, INSERT: 45, LEFT: 37, MENU: 93, NUMPAD_ADD: 107, NUMPAD_DECIMAL: 110, NUMPAD_DIVIDE: 111, NUMPAD_ENTER: 108, NUMPAD_MULTIPLY: 106, NUMPAD_SUBTRACT: 109,
        PAGE_DOWN: 34, PAGE_UP: 33, PERIOD: 190, RIGHT: 39, SHIFT: 16, SPACE: 32, TAB: 9, UP: 38, WINDOWS: 91
    }
    }), c.fn.extend({ _focus: c.fn.focus, focus: function (a, b) { return typeof a === "number" ? this.each(function () { var e = this; setTimeout(function () { c(e).focus(); b && b.call(e) }, a) }) : this._focus.apply(this, arguments) }, scrollParent: function () {
        var a; a = c.browser.msie && /(static|relative)/.test(this.css("position")) || /absolute/.test(this.css("position")) ? this.parents().filter(function () {
            return /(relative|absolute|fixed)/.test(c.curCSS(this,
"position", 1)) && /(auto|scroll)/.test(c.curCSS(this, "overflow", 1) + c.curCSS(this, "overflow-y", 1) + c.curCSS(this, "overflow-x", 1))
        }).eq(0) : this.parents().filter(function () { return /(auto|scroll)/.test(c.curCSS(this, "overflow", 1) + c.curCSS(this, "overflow-y", 1) + c.curCSS(this, "overflow-x", 1)) }).eq(0); return /fixed/.test(this.css("position")) || !a.length ? c(document) : a
    }, zIndex: function (d) {
        if (d !== a) return this.css("zIndex", d); if (this.length) {
            d = c(this[0]); for (var b; d.length && d[0] !== document; ) {
                b = d.css("position");
                if (b === "absolute" || b === "relative" || b === "fixed") if (b = parseInt(d.css("zIndex")), !isNaN(b) && b != 0) return b; d = d.parent()
            } 
        } return 0
    }, disableSelection: function () { return this.bind("mousedown.ui-disableSelection selectstart.ui-disableSelection", function (c) { c.preventDefault() }) }, enableSelection: function () { return this.unbind(".ui-disableSelection") } 
    }), c.each(["Width", "Height"], function (d, b) {
        function e(e, a, d, b) {
            c.each(g, function () {
                a -= parseFloat(c.curCSS(e, "padding" + this, !0)) || 0; d && (a -= parseFloat(c.curCSS(e, "border" +
this + "Width", !0)) || 0); b && (a -= parseFloat(c.curCSS(e, "margin" + this, !0)) || 0)
            }); return a
        } var g = b === "Width" ? ["Left", "Right"] : ["Top", "Bottom"], h = b.toLowerCase(), i = { innerWidth: c.fn.innerWidth, innerHeight: c.fn.innerHeight, outerWidth: c.fn.outerWidth, outerHeight: c.fn.outerHeight }; c.fn["inner" + b] = function (d) { if (d === a) return i["inner" + b].call(this); return this.each(function () { c.style(this, h, e(this, d) + "px") }) }; c.fn["outer" + b] = function (a, d) {
            if (typeof a !== "number") return i["outer" + b].call(this, a); return this.each(function () {
                c.style(this,
h, e(this, a, !0, d) + "px")
            })
        } 
    }), c.extend(c.expr[":"], { data: function (a, b, e) { return !!c.data(a, e[3]) }, focusable: function (a) { var f = a.nodeName.toLowerCase(), e = c.attr(a, "tabindex"); if ("area" === f) { f = a.parentNode; e = f.name; if (!a.href || !e || f.nodeName.toLowerCase() !== "map") return !1; a = c("img[usemap=#" + e + "]")[0]; return !!a && b(a) } return (/input|select|textarea|button|object/.test(f) ? !a.disabled : "a" == f ? a.href || !isNaN(e) : !isNaN(e)) && b(a) }, tabbable: function (a) { var b = c.attr(a, "tabindex"); return (isNaN(b) || b >= 0) && c(a).is(":focusable") } }),
c(function () { var a = document.createElement("div"), b = document.body; c.extend(a.style, { minHeight: "100px", height: "auto", padding: 0, borderWidth: 0 }); c.support.minHeight = b.appendChild(a).offsetHeight === 100; b.removeChild(a).style.display = "none" }), c.extend(c.ui, { plugin: { add: function (a, b, e) { a = c.ui[a].prototype; for (var g in e) a.plugins[g] = a.plugins[g] || [], a.plugins[g].push([b, e[g]]) }, call: function (c, a, e) {
    if ((a = c.plugins[a]) && c.element[0].parentNode) for (var b = 0; b < a.length; b++) c.options[a[b][0]] && a[b][1].apply(c.element,
e)
} 
}, contains: function (c, a) { return document.compareDocumentPosition ? c.compareDocumentPosition(a) & 16 : c !== a && c.contains(a) }, hasScroll: function (a, b) { if (c(a).css("overflow") === "hidden") return !1; var e = b && b === "left" ? "scrollLeft" : "scrollTop", g = !1; if (a[e] > 0) return !0; a[e] = 1; g = a[e] > 0; a[e] = 0; return g }, isOverAxis: function (c, a, e) { return c > a && c < a + e }, isOver: function (a, b, e, g, h, i) { return c.ui.isOverAxis(a, e, h) && c.ui.isOverAxis(b, g, i) } 
}))
})(jQuery);
(function (c, a) {
    if (c.cleanData) { var b = c.cleanData; c.cleanData = function (a) { for (var e = 0, d; (d = a[e]) != null; e++) c(d).triggerHandler("remove"); b(a) } } else { var d = c.fn.remove; c.fn.remove = function (a, e) { return this.each(function () { e || (!a || c.filter(a, [this]).length) && c("*", this).add([this]).each(function () { c(this).triggerHandler("remove") }); return d.call(c(this), a, e) }) } } c.widget = function (a, e, b) {
        var d = a.split(".")[0], i; a = a.split(".")[1]; i = d + "-" + a; if (!b) b = e, e = c.Widget; c.expr[":"][i] = function (e) {
            return !!c.data(e,
a)
        }; c[d] = c[d] || {}; c[d][a] = function (c, e) { arguments.length && this._createWidget(c, e) }; e = new e; e.options = c.extend(!0, {}, e.options); c[d][a].prototype = c.extend(!0, e, { namespace: d, widgetName: a, widgetEventPrefix: c[d][a].prototype.widgetEventPrefix || a, widgetBaseClass: i }, b); c.widget.bridge(a, c[d][a])
    }; c.widget.bridge = function (b, e) {
        c.fn[b] = function (d) {
            var h = typeof d === "string", i = Array.prototype.slice.call(arguments, 1), j = this; d = !h && i.length ? c.extend.apply(null, [!0, d].concat(i)) : d; if (h && d.substring(0, 1) === "_") return j;
            h ? this.each(function () { var e = c.data(this, b); if (!e) throw "cannot call methods on " + b + " prior to initialization; attempted to call method '" + d + "'"; if (!c.isFunction(e[d])) throw "no such method '" + d + "' for " + b + " widget instance"; var h = e[d].apply(e, i); if (h !== e && h !== a) return j = h, !1 }) : this.each(function () { var a = c.data(this, b); a ? a.option(d || {})._init() : c.data(this, b, new e(d, this)) }); return j
        } 
    }; c.Widget = function (c, e) { arguments.length && this._createWidget(c, e) }; c.Widget.prototype = { widgetName: "widget", widgetEventPrefix: "",
        options: { disabled: !1 }, _createWidget: function (a, e) { c.data(e, this.widgetName, this); this.element = c(e); this.options = c.extend(!0, {}, this.options, c.metadata && c.metadata.get(e)[this.widgetName], a); var b = this; this.element.bind("remove." + this.widgetName, function () { b.destroy() }); this._create(); this._init() }, _create: function () { }, _init: function () { }, destroy: function () {
            this.element.unbind("." + this.widgetName).removeData(this.widgetName); this.widget().unbind("." + this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass +
"-disabled ui-state-disabled")
        }, widget: function () { return this.element }, option: function (b, e) { var d = b, h = this; if (arguments.length === 0) return c.extend({}, h.options); if (typeof b === "string") { if (e === a) return this.options[b]; d = {}; d[b] = e } c.each(d, function (c, e) { h._setOption(c, e) }); return h }, _setOption: function (c, e) { this.options[c] = e; c === "disabled" && this.widget()[e ? "addClass" : "removeClass"](this.widgetBaseClass + "-disabled ui-state-disabled").attr("aria-disabled", e); return this }, enable: function () {
            return this._setOption("disabled",
!1)
        }, disable: function () { return this._setOption("disabled", !0) }, _trigger: function (a, e, b) { var d = this.options[a]; e = c.Event(e); e.type = (a === this.widgetEventPrefix ? a : this.widgetEventPrefix + a).toLowerCase(); b = b || {}; if (e.originalEvent) { a = c.event.props.length; for (var i; a; ) i = c.event.props[--a], e[i] = e.originalEvent[i] } this.element.trigger(e, b); return !(c.isFunction(d) && d.call(this.element[0], e, b) === !1 || e.isDefaultPrevented()) } 
    }
})(jQuery);
(function (c) {
    c.widget("ui.mouse", { options: { cancel: ":input,option", distance: 1, delay: 0 }, _mouseInit: function () { var c = this; this.element.bind("mousedown." + this.widgetName, function (b) { return c._mouseDown(b) }).bind("click." + this.widgetName, function (b) { if (c._preventClickEvent) return c._preventClickEvent = !1, b.stopImmediatePropagation(), !1 }); this.started = !1 }, _mouseDestroy: function () { this.element.unbind("." + this.widgetName) }, _mouseDown: function (a) {
        a.originalEvent = a.originalEvent || {}; if (!a.originalEvent.mouseHandled) {
            this._mouseStarted &&
this._mouseUp(a); this._mouseDownEvent = a; var b = this, d = a.which == 1, f = typeof this.options.cancel == "string" ? c(a.target).parents().add(a.target).filter(this.options.cancel).length : !1; if (!d || f || !this._mouseCapture(a)) return !0; this.mouseDelayMet = !this.options.delay; if (!this.mouseDelayMet) this._mouseDelayTimer = setTimeout(function () { b.mouseDelayMet = !0 }, this.options.delay); if (this._mouseDistanceMet(a) && this._mouseDelayMet(a) && (this._mouseStarted = this._mouseStart(a) !== !1, !this._mouseStarted)) return a.preventDefault(),
!0; this._mouseMoveDelegate = function (c) { return b._mouseMove(c) }; this._mouseUpDelegate = function (c) { return b._mouseUp(c) }; c(document).bind("mousemove." + this.widgetName, this._mouseMoveDelegate).bind("mouseup." + this.widgetName, this._mouseUpDelegate); c.browser.safari || a.preventDefault(); return a.originalEvent.mouseHandled = !0
        } 
    }, _mouseMove: function (a) {
        if (c.browser.msie && !a.button) return this._mouseUp(a); if (this._mouseStarted) return this._mouseDrag(a), a.preventDefault(); if (this._mouseDistanceMet(a) && this._mouseDelayMet(a)) (this._mouseStarted =
this._mouseStart(this._mouseDownEvent, a) !== !1) ? this._mouseDrag(a) : this._mouseUp(a); return !this._mouseStarted
    }, _mouseUp: function (a) { c(document).unbind("mousemove." + this.widgetName, this._mouseMoveDelegate).unbind("mouseup." + this.widgetName, this._mouseUpDelegate); if (this._mouseStarted) this._mouseStarted = !1, this._preventClickEvent = a.target == this._mouseDownEvent.target, this._mouseStop(a); return !1 }, _mouseDistanceMet: function (c) {
        return Math.max(Math.abs(this._mouseDownEvent.pageX - c.pageX), Math.abs(this._mouseDownEvent.pageY -
c.pageY)) >= this.options.distance
    }, _mouseDelayMet: function () { return this.mouseDelayMet }, _mouseStart: function () { }, _mouseDrag: function () { }, _mouseStop: function () { }, _mouseCapture: function () { return !0 } 
    })
})(jQuery);
(function (c) {
    c.widget("ui.draggable", c.ui.mouse, { widgetEventPrefix: "drag", options: { addClasses: !0, appendTo: "parent", axis: !1, connectToSortable: !1, containment: !1, cursor: "auto", cursorAt: !1, grid: !1, handle: !1, helper: "original", iframeFix: !1, opacity: !1, refreshPositions: !1, revert: !1, revertDuration: 500, scope: "default", scroll: !0, scrollSensitivity: 20, scrollSpeed: 20, snap: !1, snapMode: "both", snapTolerance: 20, stack: !1, zIndex: !1 }, _create: function () {
        if (this.options.helper == "original" && !/^(?:r|a|f)/.test(this.element.css("position"))) this.element[0].style.position =
"relative"; this.options.addClasses && this.element.addClass("ui-draggable"); this.options.disabled && this.element.addClass("ui-draggable-disabled"); this._mouseInit()
    }, destroy: function () { if (this.element.data("draggable")) return this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"), this._mouseDestroy(), this }, _mouseCapture: function (a) {
        var b = this.options; if (this.helper || b.disabled || c(a.target).is(".ui-resizable-handle")) return !1;
        this.handle = this._getHandle(a); if (!this.handle) return !1; return !0
    }, _mouseStart: function (a) {
        var b = this.options; this.helper = this._createHelper(a); this._cacheHelperProportions(); if (c.ui.ddmanager) c.ui.ddmanager.current = this; this._cacheMargins(); this.cssPosition = this.helper.css("position"); this.scrollParent = this.helper.scrollParent(); this.offset = this.positionAbs = this.element.offset(); this.offset = { top: this.offset.top - this.margins.top, left: this.offset.left - this.margins.left }; c.extend(this.offset, { click: { left: a.pageX -
this.offset.left, top: a.pageY - this.offset.top
        }, parent: this._getParentOffset(), relative: this._getRelativeOffset()
        }); this.originalPosition = this.position = this._generatePosition(a); this.originalPageX = a.pageX; this.originalPageY = a.pageY; b.cursorAt && this._adjustOffsetFromHelper(b.cursorAt); b.containment && this._setContainment(); if (this._trigger("start", a) === !1) return this._clear(), !1; this._cacheHelperProportions(); c.ui.ddmanager && !b.dropBehaviour && c.ui.ddmanager.prepareOffsets(this, a); this.helper.addClass("ui-draggable-dragging");
        this._mouseDrag(a, !0); return !0
    }, _mouseDrag: function (a, b) { this.position = this._generatePosition(a); this.positionAbs = this._convertPositionTo("absolute"); if (!b) { var d = this._uiHash(); if (this._trigger("drag", a, d) === !1) return this._mouseUp({}), !1; this.position = d.position } if (!this.options.axis || this.options.axis != "y") this.helper[0].style.left = this.position.left + "px"; if (!this.options.axis || this.options.axis != "x") this.helper[0].style.top = this.position.top + "px"; c.ui.ddmanager && c.ui.ddmanager.drag(this, a); return !1 },
        _mouseStop: function (a) {
            var b = !1; c.ui.ddmanager && !this.options.dropBehaviour && (b = c.ui.ddmanager.drop(this, a)); if (this.dropped) b = this.dropped, this.dropped = !1; if (!this.element[0] || !this.element[0].parentNode) return !1; if (this.options.revert == "invalid" && !b || this.options.revert == "valid" && b || this.options.revert === !0 || c.isFunction(this.options.revert) && this.options.revert.call(this.element, b)) {
                var d = this; c(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10), function () {
                    d._trigger("stop",
a) !== !1 && d._clear()
                })
            } else this._trigger("stop", a) !== !1 && this._clear(); return !1
        }, cancel: function () { this.helper.is(".ui-draggable-dragging") ? this._mouseUp({}) : this._clear(); return this }, _getHandle: function (a) { var b = !this.options.handle || !c(this.options.handle, this.element).length ? !0 : !1; c(this.options.handle, this.element).find("*").andSelf().each(function () { this == a.target && (b = !0) }); return b }, _createHelper: function (a) {
            var b = this.options; a = c.isFunction(b.helper) ? c(b.helper.apply(this.element[0], [a])) :
b.helper == "clone" ? this.element.clone() : this.element; a.parents("body").length || a.appendTo(b.appendTo == "parent" ? this.element[0].parentNode : b.appendTo); a[0] != this.element[0] && !/(fixed|absolute)/.test(a.css("position")) && a.css("position", "absolute"); return a
        }, _adjustOffsetFromHelper: function (a) {
            typeof a == "string" && (a = a.split(" ")); c.isArray(a) && (a = { left: +a[0], top: +a[1] || 0 }); if ("left" in a) this.offset.click.left = a.left + this.margins.left; if ("right" in a) this.offset.click.left = this.helperProportions.width -
a.right + this.margins.left; if ("top" in a) this.offset.click.top = a.top + this.margins.top; if ("bottom" in a) this.offset.click.top = this.helperProportions.height - a.bottom + this.margins.top
        }, _getParentOffset: function () {
            this.offsetParent = this.helper.offsetParent(); var a = this.offsetParent.offset(); this.cssPosition == "absolute" && this.scrollParent[0] != document && c.ui.contains(this.scrollParent[0], this.offsetParent[0]) && (a.left += this.scrollParent.scrollLeft(), a.top += this.scrollParent.scrollTop()); if (this.offsetParent[0] ==
document.body || this.offsetParent[0].tagName && this.offsetParent[0].tagName.toLowerCase() == "html" && c.browser.msie) a = { top: 0, left: 0 }; return { top: a.top + (parseInt(this.offsetParent.css("borderTopWidth"), 10) || 0), left: a.left + (parseInt(this.offsetParent.css("borderLeftWidth"), 10) || 0)}
        }, _getRelativeOffset: function () {
            if (this.cssPosition == "relative") {
                var c = this.element.position(); return { top: c.top - (parseInt(this.helper.css("top"), 10) || 0) + this.scrollParent.scrollTop(), left: c.left - (parseInt(this.helper.css("left"),
10) || 0) + this.scrollParent.scrollLeft()
                }
            } else return { top: 0, left: 0}
        }, _cacheMargins: function () { this.margins = { left: parseInt(this.element.css("marginLeft"), 10) || 0, top: parseInt(this.element.css("marginTop"), 10) || 0} }, _cacheHelperProportions: function () { this.helperProportions = { width: this.helper.outerWidth(), height: this.helper.outerHeight()} }, _setContainment: function () {
            var a = this.options; if (a.containment == "parent") a.containment = this.helper[0].parentNode; if (a.containment == "document" || a.containment == "window") this.containment =
[0 - this.offset.relative.left - this.offset.parent.left, 0 - this.offset.relative.top - this.offset.parent.top, c(a.containment == "document" ? document : window).width() - this.helperProportions.width - this.margins.left, (c(a.containment == "document" ? document : window).height() || document.body.parentNode.scrollHeight) - this.helperProportions.height - this.margins.top]; if (!/^(document|window|parent)$/.test(a.containment) && a.containment.constructor != Array) {
                var b = c(a.containment)[0]; if (b) {
                    a = c(a.containment).offset(); var d = c(b).css("overflow") !=
"hidden"; this.containment = [a.left + (parseInt(c(b).css("borderLeftWidth"), 10) || 0) + (parseInt(c(b).css("paddingLeft"), 10) || 0) - this.margins.left, a.top + (parseInt(c(b).css("borderTopWidth"), 10) || 0) + (parseInt(c(b).css("paddingTop"), 10) || 0) - this.margins.top, a.left + (d ? Math.max(b.scrollWidth, b.offsetWidth) : b.offsetWidth) - (parseInt(c(b).css("borderLeftWidth"), 10) || 0) - (parseInt(c(b).css("paddingRight"), 10) || 0) - this.helperProportions.width - this.margins.left, a.top + (d ? Math.max(b.scrollHeight, b.offsetHeight) : b.offsetHeight) -
(parseInt(c(b).css("borderTopWidth"), 10) || 0) - (parseInt(c(b).css("paddingBottom"), 10) || 0) - this.helperProportions.height - this.margins.top]
                } 
            } else if (a.containment.constructor == Array) this.containment = a.containment
        }, _convertPositionTo: function (a, b) {
            if (!b) b = this.position; var d = a == "absolute" ? 1 : -1, f = this.cssPosition == "absolute" && !(this.scrollParent[0] != document && c.ui.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, e = /(html|body)/i.test(f[0].tagName); return { top: b.top +
this.offset.relative.top * d + this.offset.parent.top * d - (c.browser.safari && c.browser.version < 526 && this.cssPosition == "fixed" ? 0 : (this.cssPosition == "fixed" ? -this.scrollParent.scrollTop() : e ? 0 : f.scrollTop()) * d), left: b.left + this.offset.relative.left * d + this.offset.parent.left * d - (c.browser.safari && c.browser.version < 526 && this.cssPosition == "fixed" ? 0 : (this.cssPosition == "fixed" ? -this.scrollParent.scrollLeft() : e ? 0 : f.scrollLeft()) * d)
            }
        }, _generatePosition: function (a) {
            var b = this.options, d = this.cssPosition == "absolute" &&
!(this.scrollParent[0] != document && c.ui.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, f = /(html|body)/i.test(d[0].tagName), e = a.pageX, g = a.pageY; this.originalPosition && (this.containment && (a.pageX - this.offset.click.left < this.containment[0] && (e = this.containment[0] + this.offset.click.left), a.pageY - this.offset.click.top < this.containment[1] && (g = this.containment[1] + this.offset.click.top), a.pageX - this.offset.click.left > this.containment[2] && (e = this.containment[2] + this.offset.click.left),
a.pageY - this.offset.click.top > this.containment[3] && (g = this.containment[3] + this.offset.click.top)), b.grid && (g = this.originalPageY + Math.round((g - this.originalPageY) / b.grid[1]) * b.grid[1], g = this.containment ? !(g - this.offset.click.top < this.containment[1] || g - this.offset.click.top > this.containment[3]) ? g : !(g - this.offset.click.top < this.containment[1]) ? g - b.grid[1] : g + b.grid[1] : g, e = this.originalPageX + Math.round((e - this.originalPageX) / b.grid[0]) * b.grid[0], e = this.containment ? !(e - this.offset.click.left < this.containment[0] ||
e - this.offset.click.left > this.containment[2]) ? e : !(e - this.offset.click.left < this.containment[0]) ? e - b.grid[0] : e + b.grid[0] : e)); return { top: g - this.offset.click.top - this.offset.relative.top - this.offset.parent.top + (c.browser.safari && c.browser.version < 526 && this.cssPosition == "fixed" ? 0 : this.cssPosition == "fixed" ? -this.scrollParent.scrollTop() : f ? 0 : d.scrollTop()), left: e - this.offset.click.left - this.offset.relative.left - this.offset.parent.left + (c.browser.safari && c.browser.version < 526 && this.cssPosition == "fixed" ?
0 : this.cssPosition == "fixed" ? -this.scrollParent.scrollLeft() : f ? 0 : d.scrollLeft())
}
        }, _clear: function () { this.helper.removeClass("ui-draggable-dragging"); this.helper[0] != this.element[0] && !this.cancelHelperRemoval && this.helper.remove(); this.helper = null; this.cancelHelperRemoval = !1 }, _trigger: function (a, b, d) { d = d || this._uiHash(); c.ui.plugin.call(this, a, [b, d]); if (a == "drag") this.positionAbs = this._convertPositionTo("absolute"); return c.Widget.prototype._trigger.call(this, a, b, d) }, plugins: {}, _uiHash: function () {
            return { helper: this.helper,
                position: this.position, originalPosition: this.originalPosition, offset: this.positionAbs
            }
        } 
    }); c.extend(c.ui.draggable, { version: "1.8.5" }); c.ui.plugin.add("draggable", "connectToSortable", { start: function (a, b) { var d = c(this).data("draggable"), f = d.options, e = c.extend({}, b, { item: d.element }); d.sortables = []; c(f.connectToSortable).each(function () { var b = c.data(this, "sortable"); b && !b.options.disabled && (d.sortables.push({ instance: b, shouldRevert: b.options.revert }), b._refreshItems(), b._trigger("activate", a, e)) }) }, stop: function (a,
b) {
        var d = c(this).data("draggable"), f = c.extend({}, b, { item: d.element }); c.each(d.sortables, function () {
            if (this.instance.isOver) { this.instance.isOver = 0; d.cancelHelperRemoval = !0; this.instance.cancelHelperRemoval = !1; if (this.shouldRevert) this.instance.options.revert = !0; this.instance._mouseStop(a); this.instance.options.helper = this.instance.options._helper; d.options.helper == "original" && this.instance.currentItem.css({ top: "auto", left: "auto" }) } else this.instance.cancelHelperRemoval = !1, this.instance._trigger("deactivate",
a, f)
        })
    }, drag: function (a, b) {
        var d = c(this).data("draggable"), f = this; c.each(d.sortables, function () {
            this.instance.positionAbs = d.positionAbs; this.instance.helperProportions = d.helperProportions; this.instance.offset.click = d.offset.click; if (this.instance._intersectsWith(this.instance.containerCache)) {
                if (!this.instance.isOver) this.instance.isOver = 1, this.instance.currentItem = c(f).clone().appendTo(this.instance.element).data("sortable-item", !0), this.instance.options._helper = this.instance.options.helper, this.instance.options.helper =
function () { return b.helper[0] }, a.target = this.instance.currentItem[0], this.instance._mouseCapture(a, !0), this.instance._mouseStart(a, !0, !0), this.instance.offset.click.top = d.offset.click.top, this.instance.offset.click.left = d.offset.click.left, this.instance.offset.parent.left -= d.offset.parent.left - this.instance.offset.parent.left, this.instance.offset.parent.top -= d.offset.parent.top - this.instance.offset.parent.top, d._trigger("toSortable", a), d.dropped = this.instance.element, d.currentItem = d.element, this.instance.fromOutside =
d; this.instance.currentItem && this.instance._mouseDrag(a)
            } else if (this.instance.isOver) this.instance.isOver = 0, this.instance.cancelHelperRemoval = !0, this.instance.options.revert = !1, this.instance._trigger("out", a, this.instance._uiHash(this.instance)), this.instance._mouseStop(a, !0), this.instance.options.helper = this.instance.options._helper, this.instance.currentItem.remove(), this.instance.placeholder && this.instance.placeholder.remove(), d._trigger("fromSortable", a), d.dropped = !1
        })
    } 
    }); c.ui.plugin.add("draggable",
"cursor", { start: function () { var a = c("body"), b = c(this).data("draggable").options; if (a.css("cursor")) b._cursor = a.css("cursor"); a.css("cursor", b.cursor) }, stop: function () { var a = c(this).data("draggable").options; a._cursor && c("body").css("cursor", a._cursor) } }); c.ui.plugin.add("draggable", "iframeFix", { start: function () {
    var a = c(this).data("draggable").options; c(a.iframeFix === !0 ? "iframe" : a.iframeFix).each(function () {
        c('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({ width: this.offsetWidth +
"px", height: this.offsetHeight + "px", position: "absolute", opacity: "0.001", zIndex: 1E3
        }).css(c(this).offset()).appendTo("body")
    })
}, stop: function () { c("div.ui-draggable-iframeFix").each(function () { this.parentNode.removeChild(this) }) } 
}); c.ui.plugin.add("draggable", "opacity", { start: function (a, b) { var d = c(b.helper), f = c(this).data("draggable").options; if (d.css("opacity")) f._opacity = d.css("opacity"); d.css("opacity", f.opacity) }, stop: function (a, b) {
    var d = c(this).data("draggable").options; d._opacity && c(b.helper).css("opacity",
d._opacity)
} 
}); c.ui.plugin.add("draggable", "scroll", { start: function () { var a = c(this).data("draggable"); if (a.scrollParent[0] != document && a.scrollParent[0].tagName != "HTML") a.overflowOffset = a.scrollParent.offset() }, drag: function (a) {
    var b = c(this).data("draggable"), d = b.options, f = !1; if (b.scrollParent[0] != document && b.scrollParent[0].tagName != "HTML") {
        if (!d.axis || d.axis != "x") if (b.overflowOffset.top + b.scrollParent[0].offsetHeight - a.pageY < d.scrollSensitivity) b.scrollParent[0].scrollTop = f = b.scrollParent[0].scrollTop +
d.scrollSpeed; else if (a.pageY - b.overflowOffset.top < d.scrollSensitivity) b.scrollParent[0].scrollTop = f = b.scrollParent[0].scrollTop - d.scrollSpeed; if (!d.axis || d.axis != "y") if (b.overflowOffset.left + b.scrollParent[0].offsetWidth - a.pageX < d.scrollSensitivity) b.scrollParent[0].scrollLeft = f = b.scrollParent[0].scrollLeft + d.scrollSpeed; else if (a.pageX - b.overflowOffset.left < d.scrollSensitivity) b.scrollParent[0].scrollLeft = f = b.scrollParent[0].scrollLeft - d.scrollSpeed
    } else {
        if (!d.axis || d.axis != "x") a.pageY - c(document).scrollTop() <
d.scrollSensitivity ? f = c(document).scrollTop(c(document).scrollTop() - d.scrollSpeed) : c(window).height() - (a.pageY - c(document).scrollTop()) < d.scrollSensitivity && (f = c(document).scrollTop(c(document).scrollTop() + d.scrollSpeed)); if (!d.axis || d.axis != "y") a.pageX - c(document).scrollLeft() < d.scrollSensitivity ? f = c(document).scrollLeft(c(document).scrollLeft() - d.scrollSpeed) : c(window).width() - (a.pageX - c(document).scrollLeft()) < d.scrollSensitivity && (f = c(document).scrollLeft(c(document).scrollLeft() + d.scrollSpeed))
    } f !==
!1 && c.ui.ddmanager && !d.dropBehaviour && c.ui.ddmanager.prepareOffsets(b, a)
} 
}); c.ui.plugin.add("draggable", "snap", { start: function () { var a = c(this).data("draggable"), b = a.options; a.snapElements = []; c(b.snap.constructor != String ? b.snap.items || ":data(draggable)" : b.snap).each(function () { var b = c(this), f = b.offset(); this != a.element[0] && a.snapElements.push({ item: this, width: b.outerWidth(), height: b.outerHeight(), top: f.top, left: f.left }) }) }, drag: function (a, b) {
    for (var d = c(this).data("draggable"), f = d.options, e = f.snapTolerance,
g = b.offset.left, h = g + d.helperProportions.width, i = b.offset.top, j = i + d.helperProportions.height, k = d.snapElements.length - 1; k >= 0; k--) {
        var l = d.snapElements[k].left, m = l + d.snapElements[k].width, o = d.snapElements[k].top, n = o + d.snapElements[k].height; if (l - e < g && g < m + e && o - e < i && i < n + e || l - e < g && g < m + e && o - e < j && j < n + e || l - e < h && h < m + e && o - e < i && i < n + e || l - e < h && h < m + e && o - e < j && j < n + e) {
            if (f.snapMode != "inner") {
                var s = Math.abs(o - j) <= e, p = Math.abs(n - i) <= e, v = Math.abs(l - h) <= e, q = Math.abs(m - g) <= e; if (s) b.position.top = d._convertPositionTo("relative",
{ top: o - d.helperProportions.height, left: 0 }).top - d.margins.top; if (p) b.position.top = d._convertPositionTo("relative", { top: n, left: 0 }).top - d.margins.top; if (v) b.position.left = d._convertPositionTo("relative", { top: 0, left: l - d.helperProportions.width }).left - d.margins.left; if (q) b.position.left = d._convertPositionTo("relative", { top: 0, left: m }).left - d.margins.left
            } var u = s || p || v || q; if (f.snapMode != "outer") {
                s = Math.abs(o - i) <= e; p = Math.abs(n - j) <= e; v = Math.abs(l - g) <= e; q = Math.abs(m - h) <= e; if (s) b.position.top = d._convertPositionTo("relative",
{ top: o, left: 0 }).top - d.margins.top; if (p) b.position.top = d._convertPositionTo("relative", { top: n - d.helperProportions.height, left: 0 }).top - d.margins.top; if (v) b.position.left = d._convertPositionTo("relative", { top: 0, left: l }).left - d.margins.left; if (q) b.position.left = d._convertPositionTo("relative", { top: 0, left: m - d.helperProportions.width }).left - d.margins.left
            } !d.snapElements[k].snapping && (s || p || v || q || u) && d.options.snap.snap && d.options.snap.snap.call(d.element, a, c.extend(d._uiHash(), { snapItem: d.snapElements[k].item }));
            d.snapElements[k].snapping = s || p || v || q || u
        } else d.snapElements[k].snapping && d.options.snap.release && d.options.snap.release.call(d.element, a, c.extend(d._uiHash(), { snapItem: d.snapElements[k].item })), d.snapElements[k].snapping = !1
    } 
} 
}); c.ui.plugin.add("draggable", "stack", { start: function () {
    var a = c(this).data("draggable").options; a = c.makeArray(c(a.stack)).sort(function (a, b) { return (parseInt(c(a).css("zIndex"), 10) || 0) - (parseInt(c(b).css("zIndex"), 10) || 0) }); if (a.length) {
        var b = parseInt(a[0].style.zIndex) || 0; c(a).each(function (c) {
            this.style.zIndex =
b + c
        }); this[0].style.zIndex = b + a.length
    } 
} 
}); c.ui.plugin.add("draggable", "zIndex", { start: function (a, b) { var d = c(b.helper), f = c(this).data("draggable").options; if (d.css("zIndex")) f._zIndex = d.css("zIndex"); d.css("zIndex", f.zIndex) }, stop: function (a, b) { var d = c(this).data("draggable").options; d._zIndex && c(b.helper).css("zIndex", d._zIndex) } })
})(jQuery);
(function (c) {
    c.widget("ui.droppable", { widgetEventPrefix: "drop", options: { accept: "*", activeClass: !1, addClasses: !0, greedy: !1, hoverClass: !1, scope: "default", tolerance: "intersect" }, _create: function () {
        var a = this.options, b = a.accept; this.isover = 0; this.isout = 1; this.accept = c.isFunction(b) ? b : function (c) { return c.is(b) }; this.proportions = { width: this.element[0].offsetWidth, height: this.element[0].offsetHeight }; c.ui.ddmanager.droppables[a.scope] = c.ui.ddmanager.droppables[a.scope] || []; c.ui.ddmanager.droppables[a.scope].push(this);
        a.addClasses && this.element.addClass("ui-droppable")
    }, destroy: function () { for (var a = c.ui.ddmanager.droppables[this.options.scope], b = 0; b < a.length; b++) a[b] == this && a.splice(b, 1); this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable"); return this }, _setOption: function (a, b) { if (a == "accept") this.accept = c.isFunction(b) ? b : function (c) { return c.is(b) }; c.Widget.prototype._setOption.apply(this, arguments) }, _activate: function (a) {
        var b = c.ui.ddmanager.current; this.options.activeClass &&
this.element.addClass(this.options.activeClass); b && this._trigger("activate", a, this.ui(b))
    }, _deactivate: function (a) { var b = c.ui.ddmanager.current; this.options.activeClass && this.element.removeClass(this.options.activeClass); b && this._trigger("deactivate", a, this.ui(b)) }, _over: function (a) {
        var b = c.ui.ddmanager.current; if (b && (b.currentItem || b.element)[0] != this.element[0]) if (this.accept.call(this.element[0], b.currentItem || b.element)) this.options.hoverClass && this.element.addClass(this.options.hoverClass), this._trigger("over",
a, this.ui(b))
    }, _out: function (a) { var b = c.ui.ddmanager.current; if (b && (b.currentItem || b.element)[0] != this.element[0]) if (this.accept.call(this.element[0], b.currentItem || b.element)) this.options.hoverClass && this.element.removeClass(this.options.hoverClass), this._trigger("out", a, this.ui(b)) }, _drop: function (a, b) {
        var d = b || c.ui.ddmanager.current; if (!d || (d.currentItem || d.element)[0] == this.element[0]) return !1; var f = !1; this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function () {
            var e = c.data(this,
"droppable"); if (e.options.greedy && !e.options.disabled && e.options.scope == d.options.scope && e.accept.call(e.element[0], d.currentItem || d.element) && c.ui.intersect(d, c.extend(e, { offset: e.element.offset() }), e.options.tolerance)) return f = !0, !1
        }); if (f) return !1; if (this.accept.call(this.element[0], d.currentItem || d.element)) return this.options.activeClass && this.element.removeClass(this.options.activeClass), this.options.hoverClass && this.element.removeClass(this.options.hoverClass), this._trigger("drop", a, this.ui(d)),
this.element; return !1
    }, ui: function (c) { return { draggable: c.currentItem || c.element, helper: c.helper, position: c.position, offset: c.positionAbs} } 
    }); c.extend(c.ui.droppable, { version: "1.8.5" }); c.ui.intersect = function (a, b, d) {
        if (!b.offset) return !1; var f = (a.positionAbs || a.position.absolute).left, e = f + a.helperProportions.width, g = (a.positionAbs || a.position.absolute).top, h = g + a.helperProportions.height, i = b.offset.left, j = i + b.proportions.width, k = b.offset.top, l = k + b.proportions.height; switch (d) {
            case "fit": return i <= f &&
e <= j && k <= g && h <= l; case "intersect": return i < f + a.helperProportions.width / 2 && e - a.helperProportions.width / 2 < j && k < g + a.helperProportions.height / 2 && h - a.helperProportions.height / 2 < l; case "pointer": return c.ui.isOver((a.positionAbs || a.position.absolute).top + (a.clickOffset || a.offset.click).top, (a.positionAbs || a.position.absolute).left + (a.clickOffset || a.offset.click).left, k, i, b.proportions.height, b.proportions.width); case "touch": return (g >= k && g <= l || h >= k && h <= l || g < k && h > l) && (f >= i && f <= j || e >= i && e <= j || f < i && e > j); default: return !1
        } 
    };
    c.ui.ddmanager = { current: null, droppables: { "default": [] }, prepareOffsets: function (a, b) {
        var d = c.ui.ddmanager.droppables[a.options.scope] || [], f = b ? b.type : null, e = (a.currentItem || a.element).find(":data(droppable)").andSelf(), g = 0; a: for (; g < d.length; g++) if (!(d[g].options.disabled || a && !d[g].accept.call(d[g].element[0], a.currentItem || a.element))) {
            for (var h = 0; h < e.length; h++) if (e[h] == d[g].element[0]) { d[g].proportions.height = 0; continue a } d[g].visible = d[g].element.css("display") != "none"; if (d[g].visible) d[g].offset =
d[g].element.offset(), d[g].proportions = { width: d[g].element[0].offsetWidth, height: d[g].element[0].offsetHeight }, f == "mousedown" && d[g]._activate.call(d[g], b)
        } 
    }, drop: function (a, b) {
        var d = !1; c.each(c.ui.ddmanager.droppables[a.options.scope] || [], function () {
            if (this.options && (!this.options.disabled && this.visible && c.ui.intersect(a, this, this.options.tolerance) && (d = d || this._drop.call(this, b)), !this.options.disabled && this.visible && this.accept.call(this.element[0], a.currentItem || a.element))) this.isout = 1, this.isover =
0, this._deactivate.call(this, b)
        }); return d
    }, drag: function (a, b) {
        a.options.refreshPositions && c.ui.ddmanager.prepareOffsets(a, b); c.each(c.ui.ddmanager.droppables[a.options.scope] || [], function () {
            if (!this.options.disabled && !this.greedyChild && this.visible) {
                var d = c.ui.intersect(a, this, this.options.tolerance); if (d = !d && this.isover == 1 ? "isout" : d && this.isover == 0 ? "isover" : null) {
                    var f; if (this.options.greedy) {
                        var e = this.element.parents(":data(droppable):eq(0)"); if (e.length) f = c.data(e[0], "droppable"), f.greedyChild =
d == "isover" ? 1 : 0
                    } if (f && d == "isover") f.isover = 0, f.isout = 1, f._out.call(f, b); this[d] = 1; this[d == "isout" ? "isover" : "isout"] = 0; this[d == "isover" ? "_over" : "_out"].call(this, b); if (f && d == "isout") f.isout = 0, f.isover = 1, f._over.call(f, b)
                } 
            } 
        })
    } 
    }
})(jQuery);
(function (c) {
    c.widget("ui.resizable", c.ui.mouse, { widgetEventPrefix: "resize", options: { alsoResize: !1, animate: !1, animateDuration: "slow", animateEasing: "swing", aspectRatio: !1, autoHide: !1, containment: !1, ghost: !1, grid: !1, handles: "e,s,se", helper: !1, maxHeight: null, maxWidth: null, minHeight: 10, minWidth: 10, zIndex: 1E3 }, _create: function () {
        var a = this, b = this.options; this.element.addClass("ui-resizable"); c.extend(this, { _aspectRatio: !!b.aspectRatio, aspectRatio: b.aspectRatio, originalElement: this.element, _proportionallyResizeElements: [],
            _helper: b.helper || b.ghost || b.animate ? b.helper || "ui-resizable-helper" : null
        }); if (this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)) /relative/.test(this.element.css("position")) && c.browser.opera && this.element.css({ position: "relative", top: "auto", left: "auto" }), this.element.wrap(c('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({ position: this.element.css("position"), width: this.element.outerWidth(), height: this.element.outerHeight(), top: this.element.css("top"), left: this.element.css("left") })),
this.element = this.element.parent().data("resizable", this.element.data("resizable")), this.elementIsWrapper = !0, this.element.css({ marginLeft: this.originalElement.css("marginLeft"), marginTop: this.originalElement.css("marginTop"), marginRight: this.originalElement.css("marginRight"), marginBottom: this.originalElement.css("marginBottom") }), this.originalElement.css({ marginLeft: 0, marginTop: 0, marginRight: 0, marginBottom: 0 }), this.originalResizeStyle = this.originalElement.css("resize"), this.originalElement.css("resize",
"none"), this._proportionallyResizeElements.push(this.originalElement.css({ position: "static", zoom: 1, display: "block" })), this.originalElement.css({ margin: this.originalElement.css("margin") }), this._proportionallyResize(); this.handles = b.handles || (!c(".ui-resizable-handle", this.element).length ? "e,s,se" : { n: ".ui-resizable-n", e: ".ui-resizable-e", s: ".ui-resizable-s", w: ".ui-resizable-w", se: ".ui-resizable-se", sw: ".ui-resizable-sw", ne: ".ui-resizable-ne", nw: ".ui-resizable-nw" }); if (this.handles.constructor == String) {
            if (this.handles ==
"all") this.handles = "n,e,s,w,se,sw,ne,nw"; var e = this.handles.split(","); this.handles = {}; for (var g = 0; g < e.length; g++) { var h = c.trim(e[g]), i = c('<div class="ui-resizable-handle ui-resizable-' + h + '"></div>'); /sw|se|ne|nw/.test(h) && i.css({ zIndex: ++b.zIndex }); "se" == h && i.addClass("ui-icon ui-icon-gripsmall-diagonal-se"); this.handles[h] = ".ui-resizable-" + h; this.element.append(i) } 
        } this._renderAxis = function (e) {
            e = e || this.element; for (var a in this.handles) {
                this.handles[a].constructor == String && (this.handles[a] = c(this.handles[a],
this.element).show()); if (this.elementIsWrapper && this.originalElement[0].nodeName.match(/textarea|input|select|button/i)) { var b = c(this.handles[a], this.element), d = 0; d = /sw|ne|nw|se|n|s/.test(a) ? b.outerHeight() : b.outerWidth(); b = ["padding", /ne|nw|n/.test(a) ? "Top" : /se|sw|s/.test(a) ? "Bottom" : /^e$/.test(a) ? "Right" : "Left"].join(""); e.css(b, d); this._proportionallyResize() } c(this.handles[a])
            } 
        }; this._renderAxis(this.element); this._handles = c(".ui-resizable-handle", this.element).disableSelection(); this._handles.mouseover(function () {
            if (!a.resizing) {
                if (this.className) var c =
this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i); a.axis = c && c[1] ? c[1] : "se"
            } 
        }); b.autoHide && (this._handles.hide(), c(this.element).addClass("ui-resizable-autohide").hover(function () { c(this).removeClass("ui-resizable-autohide"); a._handles.show() }, function () { a.resizing || (c(this).addClass("ui-resizable-autohide"), a._handles.hide()) })); this._mouseInit()
    }, destroy: function () {
        this._mouseDestroy(); var a = function (e) { c(e).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove() };
        if (this.elementIsWrapper) { a(this.element); var b = this.element; b.after(this.originalElement.css({ position: b.css("position"), width: b.outerWidth(), height: b.outerHeight(), top: b.css("top"), left: b.css("left") })).remove() } this.originalElement.css("resize", this.originalResizeStyle); a(this.originalElement); return this
    }, _mouseCapture: function (a) { var b = !1, e; for (e in this.handles) c(this.handles[e])[0] == a.target && (b = !0); return !this.options.disabled && b }, _mouseStart: function (b) {
        var f = this.options, e = this.element.position(),
g = this.element; this.resizing = !0; this.documentScroll = { top: c(document).scrollTop(), left: c(document).scrollLeft() }; (g.is(".ui-draggable") || /absolute/.test(g.css("position"))) && g.css({ position: "absolute", top: e.top, left: e.left }); c.browser.opera && /relative/.test(g.css("position")) && g.css({ position: "relative", top: "auto", left: "auto" }); this._renderProxy(); e = a(this.helper.css("left")); var h = a(this.helper.css("top")); f.containment && (e += c(f.containment).scrollLeft() || 0, h += c(f.containment).scrollTop() || 0); this.offset =
this.helper.offset(); this.position = { left: e, top: h }; this.size = this._helper ? { width: g.outerWidth(), height: g.outerHeight()} : { width: g.width(), height: g.height() }; this.originalSize = this._helper ? { width: g.outerWidth(), height: g.outerHeight()} : { width: g.width(), height: g.height() }; this.originalPosition = { left: e, top: h }; this.sizeDiff = { width: g.outerWidth() - g.width(), height: g.outerHeight() - g.height() }; this.originalMousePosition = { left: b.pageX, top: b.pageY }; this.aspectRatio = typeof f.aspectRatio == "number" ? f.aspectRatio :
this.originalSize.width / this.originalSize.height || 1; f = c(".ui-resizable-" + this.axis).css("cursor"); c("body").css("cursor", f == "auto" ? this.axis + "-resize" : f); g.addClass("ui-resizable-resizing"); this._propagate("start", b); return !0
    }, _mouseDrag: function (c) {
        var a = this.helper, e = this.originalMousePosition, b = this._change[this.axis]; if (!b) return !1; e = b.apply(this, [c, c.pageX - e.left || 0, c.pageY - e.top || 0]); if (this._aspectRatio || c.shiftKey) e = this._updateRatio(e, c); e = this._respectSize(e, c); this._propagate("resize",
c); a.css({ top: this.position.top + "px", left: this.position.left + "px", width: this.size.width + "px", height: this.size.height + "px" }); !this._helper && this._proportionallyResizeElements.length && this._proportionallyResize(); this._updateCache(e); this._trigger("resize", c, this.ui()); return !1
    }, _mouseStop: function (a) {
        this.resizing = !1; var b = this.options; if (this._helper) {
            var e = this._proportionallyResizeElements, g = e.length && /textarea/i.test(e[0].nodeName); e = g && c.ui.hasScroll(e[0], "left") ? 0 : this.sizeDiff.height; g = { width: this.size.width -
(g ? 0 : this.sizeDiff.width), height: this.size.height - e
            }; e = parseInt(this.element.css("left"), 10) + (this.position.left - this.originalPosition.left) || null; var h = parseInt(this.element.css("top"), 10) + (this.position.top - this.originalPosition.top) || null; b.animate || this.element.css(c.extend(g, { top: h, left: e })); this.helper.height(this.size.height); this.helper.width(this.size.width); this._helper && !b.animate && this._proportionallyResize()
        } c("body").css("cursor", "auto"); this.element.removeClass("ui-resizable-resizing");
        this._propagate("stop", a); this._helper && this.helper.remove(); return !1
    }, _updateCache: function (c) { this.offset = this.helper.offset(); if (b(c.left)) this.position.left = c.left; if (b(c.top)) this.position.top = c.top; if (b(c.height)) this.size.height = c.height; if (b(c.width)) this.size.width = c.width }, _updateRatio: function (c) {
        var a = this.position, e = this.size, b = this.axis; if (c.height) c.width = e.height * this.aspectRatio; else if (c.width) c.height = e.width / this.aspectRatio; if (b == "sw") c.left = a.left + (e.width - c.width), c.top = null;
        if (b == "nw") c.top = a.top + (e.height - c.height), c.left = a.left + (e.width - c.width); return c
    }, _respectSize: function (c) {
        var a = this.options, e = this.axis, g = b(c.width) && a.maxWidth && a.maxWidth < c.width, h = b(c.height) && a.maxHeight && a.maxHeight < c.height, i = b(c.width) && a.minWidth && a.minWidth > c.width, j = b(c.height) && a.minHeight && a.minHeight > c.height; if (i) c.width = a.minWidth; if (j) c.height = a.minHeight; if (g) c.width = a.maxWidth; if (h) c.height = a.maxHeight; var k = this.originalPosition.left + this.originalSize.width, l = this.position.top +
this.size.height, m = /sw|nw|w/.test(e); e = /nw|ne|n/.test(e); if (i && m) c.left = k - a.minWidth; if (g && m) c.left = k - a.maxWidth; if (j && e) c.top = l - a.minHeight; if (h && e) c.top = l - a.maxHeight; if ((a = !c.width && !c.height) && !c.left && c.top) c.top = null; else if (a && !c.top && c.left) c.left = null; return c
    }, _proportionallyResize: function () {
        if (this._proportionallyResizeElements.length) for (var a = this.helper || this.element, b = 0; b < this._proportionallyResizeElements.length; b++) {
            var e = this._proportionallyResizeElements[b]; if (!this.borderDif) {
                var g =
[e.css("borderTopWidth"), e.css("borderRightWidth"), e.css("borderBottomWidth"), e.css("borderLeftWidth")], h = [e.css("paddingTop"), e.css("paddingRight"), e.css("paddingBottom"), e.css("paddingLeft")]; this.borderDif = c.map(g, function (c, e) { var a = parseInt(c, 10) || 0, b = parseInt(h[e], 10) || 0; return a + b })
            } if (!c.browser.msie || !c(a).is(":hidden") && !c(a).parents(":hidden").length) e.css({ height: a.height() - this.borderDif[0] - this.borderDif[2] || 0, width: a.width() - this.borderDif[1] - this.borderDif[3] || 0 })
        } 
    }, _renderProxy: function () {
        var a =
this.options; this.elementOffset = this.element.offset(); if (this._helper) { this.helper = this.helper || c('<div style="overflow:hidden;"></div>'); var b = c.browser.msie && c.browser.version < 7, e = b ? 1 : 0; b = b ? 2 : -1; this.helper.addClass(this._helper).css({ width: this.element.outerWidth() + b, height: this.element.outerHeight() + b, position: "absolute", left: this.elementOffset.left - e + "px", top: this.elementOffset.top - e + "px", zIndex: ++a.zIndex }); this.helper.appendTo("body").disableSelection() } else this.helper = this.element
    }, _change: { e: function (c,
a) { return { width: this.originalSize.width + a} }, w: function (c, a) { return { left: this.originalPosition.left + a, width: this.originalSize.width - a} }, n: function (c, a, e) { return { top: this.originalPosition.top + e, height: this.originalSize.height - e} }, s: function (c, a, e) { return { height: this.originalSize.height + e} }, se: function (a, b, e) { return c.extend(this._change.s.apply(this, arguments), this._change.e.apply(this, [a, b, e])) }, sw: function (a, b, e) {
    return c.extend(this._change.s.apply(this, arguments), this._change.w.apply(this, [a, b,
e]))
}, ne: function (a, b, e) { return c.extend(this._change.n.apply(this, arguments), this._change.e.apply(this, [a, b, e])) }, nw: function (a, b, e) { return c.extend(this._change.n.apply(this, arguments), this._change.w.apply(this, [a, b, e])) } 
    }, _propagate: function (a, b) { c.ui.plugin.call(this, a, [b, this.ui()]); a != "resize" && this._trigger(a, b, this.ui()) }, plugins: {}, ui: function () {
        return { originalElement: this.originalElement, element: this.element, helper: this.helper, position: this.position, size: this.size, originalSize: this.originalSize,
            originalPosition: this.originalPosition
        }
    } 
    }); c.extend(c.ui.resizable, { version: "1.8.5" }); c.ui.plugin.add("resizable", "alsoResize", { start: function () {
        var a = c(this).data("resizable").options, b = function (e) { c(e).each(function () { var e = c(this); e.data("resizable-alsoresize", { width: parseInt(e.width(), 10), height: parseInt(e.height(), 10), left: parseInt(e.css("left"), 10), top: parseInt(e.css("top"), 10), position: e.css("position") }) }) }; typeof a.alsoResize == "object" && !a.alsoResize.parentNode ? a.alsoResize.length ? (a.alsoResize =
a.alsoResize[0], b(a.alsoResize)) : c.each(a.alsoResize, function (c) { b(c) }) : b(a.alsoResize)
    }, resize: function (a, b) {
        var e = c(this).data("resizable"), g = e.options, h = e.originalSize, i = e.originalPosition, j = { height: e.size.height - h.height || 0, width: e.size.width - h.width || 0, top: e.position.top - i.top || 0, left: e.position.left - i.left || 0 }, k = function (a, g) {
            c(a).each(function () {
                var a = c(this), d = c(this).data("resizable-alsoresize"), h = {}, l = g && g.length ? g : a.parents(b.originalElement[0]).length ? ["width", "height"] : ["width", "height",
"top", "left"]; c.each(l, function (c, e) { var a = (d[e] || 0) + (j[e] || 0); a && a >= 0 && (h[e] = a || null) }); if (c.browser.opera && /relative/.test(a.css("position"))) e._revertToRelativePosition = !0, a.css({ position: "absolute", top: "auto", left: "auto" }); a.css(h)
            })
        }; typeof g.alsoResize == "object" && !g.alsoResize.nodeType ? c.each(g.alsoResize, function (c, e) { k(c, e) }) : k(g.alsoResize)
    }, stop: function () {
        var a = c(this).data("resizable"), b = a.options, e = function (e) { c(e).each(function () { var e = c(this); e.css({ position: e.data("resizable-alsoresize").position }) }) };
        if (a._revertToRelativePosition) a._revertToRelativePosition = !1, typeof b.alsoResize == "object" && !b.alsoResize.nodeType ? c.each(b.alsoResize, function (c) { e(c) }) : e(b.alsoResize); c(this).removeData("resizable-alsoresize")
    } 
    }); c.ui.plugin.add("resizable", "animate", { stop: function (a) {
        var b = c(this).data("resizable"), e = b.options, g = b._proportionallyResizeElements, h = g.length && /textarea/i.test(g[0].nodeName), i = h && c.ui.hasScroll(g[0], "left") ? 0 : b.sizeDiff.height; h = { width: b.size.width - (h ? 0 : b.sizeDiff.width), height: b.size.height -
i
        }; i = parseInt(b.element.css("left"), 10) + (b.position.left - b.originalPosition.left) || null; var j = parseInt(b.element.css("top"), 10) + (b.position.top - b.originalPosition.top) || null; b.element.animate(c.extend(h, j && i ? { top: j, left: i} : {}), { duration: e.animateDuration, easing: e.animateEasing, step: function () {
            var e = { width: parseInt(b.element.css("width"), 10), height: parseInt(b.element.css("height"), 10), top: parseInt(b.element.css("top"), 10), left: parseInt(b.element.css("left"), 10) }; g && g.length && c(g[0]).css({ width: e.width,
                height: e.height
            }); b._updateCache(e); b._propagate("resize", a)
        } 
        })
    } 
    }); c.ui.plugin.add("resizable", "containment", { start: function () {
        var b = c(this).data("resizable"), f = b.element, e = b.options.containment; if (f = e instanceof c ? e.get(0) : /parent/.test(e) ? f.parent().get(0) : e) if (b.containerElement = c(f), /document/.test(e) || e == document) b.containerOffset = { left: 0, top: 0 }, b.containerPosition = { left: 0, top: 0 }, b.parentData = { element: c(document), left: 0, top: 0, width: c(document).width(), height: c(document).height() || document.body.parentNode.scrollHeight };
        else { var g = c(f), h = []; c(["Top", "Right", "Left", "Bottom"]).each(function (c, e) { h[c] = a(g.css("padding" + e)) }); b.containerOffset = g.offset(); b.containerPosition = g.position(); b.containerSize = { height: g.innerHeight() - h[3], width: g.innerWidth() - h[1] }; e = b.containerOffset; var i = b.containerSize.height, j = b.containerSize.width; j = c.ui.hasScroll(f, "left") ? f.scrollWidth : j; i = c.ui.hasScroll(f) ? f.scrollHeight : i; b.parentData = { element: f, left: e.left, top: e.top, width: j, height: i} } 
    }, resize: function (a) {
        var b = c(this).data("resizable"),
e = b.options, g = b.containerOffset, h = b.position; a = b._aspectRatio || a.shiftKey; var i = { top: 0, left: 0 }, j = b.containerElement; j[0] != document && /static/.test(j.css("position")) && (i = g); if (h.left < (b._helper ? g.left : 0)) { b.size.width += b._helper ? b.position.left - g.left : b.position.left - i.left; if (a) b.size.height = b.size.width / e.aspectRatio; b.position.left = e.helper ? g.left : 0 } if (h.top < (b._helper ? g.top : 0)) {
            b.size.height += b._helper ? b.position.top - g.top : b.position.top; if (a) b.size.width = b.size.height * e.aspectRatio; b.position.top =
b._helper ? g.top : 0
        } b.offset.left = b.parentData.left + b.position.left; b.offset.top = b.parentData.top + b.position.top; e = Math.abs((b._helper ? b.offset.left - i.left : b.offset.left - i.left) + b.sizeDiff.width); g = Math.abs((b._helper ? b.offset.top - i.top : b.offset.top - g.top) + b.sizeDiff.height); h = b.containerElement.get(0) == b.element.parent().get(0); i = /relative|absolute/.test(b.containerElement.css("position")); h && i && (e -= b.parentData.left); if (e + b.size.width >= b.parentData.width && (b.size.width = b.parentData.width - e, a)) b.size.height =
b.size.width / b.aspectRatio; if (g + b.size.height >= b.parentData.height && (b.size.height = b.parentData.height - g, a)) b.size.width = b.size.height * b.aspectRatio
    }, stop: function () {
        var a = c(this).data("resizable"), b = a.options, e = a.containerOffset, g = a.containerPosition, h = a.containerElement, i = c(a.helper), j = i.offset(), k = i.outerWidth() - a.sizeDiff.width; i = i.outerHeight() - a.sizeDiff.height; a._helper && !b.animate && /relative/.test(h.css("position")) && c(this).css({ left: j.left - g.left - e.left, width: k, height: i }); a._helper && !b.animate &&
/static/.test(h.css("position")) && c(this).css({ left: j.left - g.left - e.left, width: k, height: i })
    } 
    }); c.ui.plugin.add("resizable", "ghost", { start: function () { var a = c(this).data("resizable"), b = a.options, e = a.size; a.ghost = a.originalElement.clone(); a.ghost.css({ opacity: 0.25, display: "block", position: "relative", height: e.height, width: e.width, margin: 0, left: 0, top: 0 }).addClass("ui-resizable-ghost").addClass(typeof b.ghost == "string" ? b.ghost : ""); a.ghost.appendTo(a.helper) }, resize: function () {
        var a = c(this).data("resizable");
        a.ghost && a.ghost.css({ position: "relative", height: a.size.height, width: a.size.width })
    }, stop: function () { var a = c(this).data("resizable"); a.ghost && a.helper && a.helper.get(0).removeChild(a.ghost.get(0)) } 
    }); c.ui.plugin.add("resizable", "grid", { resize: function () {
        var a = c(this).data("resizable"), b = a.options, e = a.size, g = a.originalSize, h = a.originalPosition, i = a.axis; b.grid = typeof b.grid == "number" ? [b.grid, b.grid] : b.grid; var j = Math.round((e.width - g.width) / (b.grid[0] || 1)) * (b.grid[0] || 1); b = Math.round((e.height - g.height) /
(b.grid[1] || 1)) * (b.grid[1] || 1); /^(se|s|e)$/.test(i) ? (a.size.width = g.width + j, a.size.height = g.height + b) : /^(ne)$/.test(i) ? (a.size.width = g.width + j, a.size.height = g.height + b, a.position.top = h.top - b) : (/^(sw)$/.test(i) ? (a.size.width = g.width + j, a.size.height = g.height + b) : (a.size.width = g.width + j, a.size.height = g.height + b, a.position.top = h.top - b), a.position.left = h.left - j)
    } 
    }); var a = function (c) { return parseInt(c, 10) || 0 }, b = function (c) { return !isNaN(parseInt(c, 10)) } 
})(jQuery);
(function (c) {
    c.widget("ui.selectable", c.ui.mouse, { options: { appendTo: "body", autoRefresh: !0, distance: 0, filter: "*", tolerance: "touch" }, _create: function () {
        var a = this; this.element.addClass("ui-selectable"); this.dragged = !1; var b; this.refresh = function () {
            b = c(a.options.filter, a.element[0]); b.each(function () {
                var a = c(this), b = a.offset(); c.data(this, "selectable-item", { element: this, $element: a, left: b.left, top: b.top, right: b.left + a.outerWidth(), bottom: b.top + a.outerHeight(), startselected: !1, selected: a.hasClass("ui-selected"),
                    selecting: a.hasClass("ui-selecting"), unselecting: a.hasClass("ui-unselecting")
                })
            })
        }; this.refresh(); this.selectees = b.addClass("ui-selectee"); this._mouseInit(); this.helper = c("<div class='ui-selectable-helper'></div>")
    }, destroy: function () { this.selectees.removeClass("ui-selectee").removeData("selectable-item"); this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable"); this._mouseDestroy(); return this }, _mouseStart: function (a) {
        var b = this; this.opos = [a.pageX,
a.pageY]; if (!this.options.disabled) {
            var d = this.options; this.selectees = c(d.filter, this.element[0]); this._trigger("start", a); c(d.appendTo).append(this.helper); this.helper.css({ left: a.clientX, top: a.clientY, width: 0, height: 0 }); d.autoRefresh && this.refresh(); this.selectees.filter(".ui-selected").each(function () {
                var d = c.data(this, "selectable-item"); d.startselected = !0; if (!a.metaKey) d.$element.removeClass("ui-selected"), d.selected = !1, d.$element.addClass("ui-unselecting"), d.unselecting = !0, b._trigger("unselecting",
a, { unselecting: d.element })
            }); c(a.target).parents().andSelf().each(function () { var d = c.data(this, "selectable-item"); if (d) { var e = !a.metaKey || !d.$element.hasClass("ui-selected"); d.$element.removeClass(e ? "ui-unselecting" : "ui-selected").addClass(e ? "ui-selecting" : "ui-unselecting"); d.unselecting = !e; d.selecting = e; (d.selected = e) ? b._trigger("selecting", a, { selecting: d.element }) : b._trigger("unselecting", a, { unselecting: d.element }); return !1 } })
        } 
    }, _mouseDrag: function (a) {
        var b = this; this.dragged = !0; if (!this.options.disabled) {
            var d =
this.options, f = this.opos[0], e = this.opos[1], g = a.pageX, h = a.pageY; if (f > g) { var i = g; g = f; f = i } e > h && (i = h, h = e, e = i); this.helper.css({ left: f, top: e, width: g - f, height: h - e }); this.selectees.each(function () {
    var i = c.data(this, "selectable-item"); if (i && i.element != b.element[0]) {
        var k = !1; d.tolerance == "touch" ? k = !(i.left > g || i.right < f || i.top > h || i.bottom < e) : d.tolerance == "fit" && (k = i.left > f && i.right < g && i.top > e && i.bottom < h); if (k) {
            if (i.selected) i.$element.removeClass("ui-selected"), i.selected = !1; if (i.unselecting) i.$element.removeClass("ui-unselecting"),
i.unselecting = !1; if (!i.selecting) i.$element.addClass("ui-selecting"), i.selecting = !0, b._trigger("selecting", a, { selecting: i.element })
        } else {
            if (i.selecting) if (a.metaKey && i.startselected) i.$element.removeClass("ui-selecting"), i.selecting = !1, i.$element.addClass("ui-selected"), i.selected = !0; else { i.$element.removeClass("ui-selecting"); i.selecting = !1; if (i.startselected) i.$element.addClass("ui-unselecting"), i.unselecting = !0; b._trigger("unselecting", a, { unselecting: i.element }) } if (i.selected && !a.metaKey && !i.startselected) i.$element.removeClass("ui-selected"),
i.selected = !1, i.$element.addClass("ui-unselecting"), i.unselecting = !0, b._trigger("unselecting", a, { unselecting: i.element })
        } 
    } 
}); return !1
        } 
    }, _mouseStop: function (a) {
        var b = this; this.dragged = !1; c(".ui-unselecting", this.element[0]).each(function () { var d = c.data(this, "selectable-item"); d.$element.removeClass("ui-unselecting"); d.unselecting = !1; d.startselected = !1; b._trigger("unselected", a, { unselected: d.element }) }); c(".ui-selecting", this.element[0]).each(function () {
            var d = c.data(this, "selectable-item"); d.$element.removeClass("ui-selecting").addClass("ui-selected");
            d.selecting = !1; d.selected = !0; d.startselected = !0; b._trigger("selected", a, { selected: d.element })
        }); this._trigger("stop", a); this.helper.remove(); return !1
    } 
    }); c.extend(c.ui.selectable, { version: "1.8.5" })
})(jQuery);
(function (c) {
    c.widget("ui.sortable", c.ui.mouse, { widgetEventPrefix: "sort", options: { appendTo: "parent", axis: !1, connectWith: !1, containment: !1, cursor: "auto", cursorAt: !1, dropOnEmpty: !0, forcePlaceholderSize: !1, forceHelperSize: !1, grid: !1, handle: !1, helper: "original", items: "> *", opacity: !1, placeholder: !1, revert: !1, scroll: !0, scrollSensitivity: 20, scrollSpeed: 20, scope: "default", tolerance: "intersect", zIndex: 1E3 }, _create: function () {
        this.containerCache = {}; this.element.addClass("ui-sortable"); this.refresh(); this.floating =
this.items.length ? /left|right/.test(this.items[0].item.css("float")) : !1; this.offset = this.element.offset(); this._mouseInit()
    }, destroy: function () { this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable"); this._mouseDestroy(); for (var c = this.items.length - 1; c >= 0; c--) this.items[c].item.removeData("sortable-item"); return this }, _setOption: function (a, b) {
        a === "disabled" ? (this.options[a] = b, this.widget()[b ? "addClass" : "removeClass"]("ui-sortable-disabled")) : c.Widget.prototype._setOption.apply(this,
arguments)
    }, _mouseCapture: function (a, b) {
        if (this.reverting) return !1; if (this.options.disabled || this.options.type == "static") return !1; this._refreshItems(a); var d = null, f = this; c(a.target).parents().each(function () { if (c.data(this, "sortable-item") == f) return d = c(this), !1 }); c.data(a.target, "sortable-item") == f && (d = c(a.target)); if (!d) return !1; if (this.options.handle && !b) { var e = !1; c(this.options.handle, d).find("*").andSelf().each(function () { this == a.target && (e = !0) }); if (!e) return !1 } this.currentItem = d; this._removeCurrentsFromItems();
        return !0
    }, _mouseStart: function (a, b, d) {
        b = this.options; this.currentContainer = this; this.refreshPositions(); this.helper = this._createHelper(a); this._cacheHelperProportions(); this._cacheMargins(); this.scrollParent = this.helper.scrollParent(); this.offset = this.currentItem.offset(); this.offset = { top: this.offset.top - this.margins.top, left: this.offset.left - this.margins.left }; this.helper.css("position", "absolute"); this.cssPosition = this.helper.css("position"); c.extend(this.offset, { click: { left: a.pageX - this.offset.left,
            top: a.pageY - this.offset.top
        }, parent: this._getParentOffset(), relative: this._getRelativeOffset()
        }); this.originalPosition = this._generatePosition(a); this.originalPageX = a.pageX; this.originalPageY = a.pageY; b.cursorAt && this._adjustOffsetFromHelper(b.cursorAt); this.domPosition = { prev: this.currentItem.prev()[0], parent: this.currentItem.parent()[0] }; this.helper[0] != this.currentItem[0] && this.currentItem.hide(); this._createPlaceholder(); b.containment && this._setContainment(); if (b.cursor) {
            if (c("body").css("cursor")) this._storedCursor =
c("body").css("cursor"); c("body").css("cursor", b.cursor)
        } if (b.opacity) { if (this.helper.css("opacity")) this._storedOpacity = this.helper.css("opacity"); this.helper.css("opacity", b.opacity) } if (b.zIndex) { if (this.helper.css("zIndex")) this._storedZIndex = this.helper.css("zIndex"); this.helper.css("zIndex", b.zIndex) } if (this.scrollParent[0] != document && this.scrollParent[0].tagName != "HTML") this.overflowOffset = this.scrollParent.offset(); this._trigger("start", a, this._uiHash()); this._preserveHelperProportions || this._cacheHelperProportions();
        if (!d) for (d = this.containers.length - 1; d >= 0; d--) this.containers[d]._trigger("activate", a, this._uiHash(this)); if (c.ui.ddmanager) c.ui.ddmanager.current = this; c.ui.ddmanager && !b.dropBehaviour && c.ui.ddmanager.prepareOffsets(this, a); this.dragging = !0; this.helper.addClass("ui-sortable-helper"); this._mouseDrag(a); return !0
    }, _mouseDrag: function (a) {
        this.position = this._generatePosition(a); this.positionAbs = this._convertPositionTo("absolute"); if (!this.lastPositionAbs) this.lastPositionAbs = this.positionAbs; if (this.options.scroll) {
            var b =
this.options, d = !1; if (this.scrollParent[0] != document && this.scrollParent[0].tagName != "HTML") {
                if (this.overflowOffset.top + this.scrollParent[0].offsetHeight - a.pageY < b.scrollSensitivity) this.scrollParent[0].scrollTop = d = this.scrollParent[0].scrollTop + b.scrollSpeed; else if (a.pageY - this.overflowOffset.top < b.scrollSensitivity) this.scrollParent[0].scrollTop = d = this.scrollParent[0].scrollTop - b.scrollSpeed; if (this.overflowOffset.left + this.scrollParent[0].offsetWidth - a.pageX < b.scrollSensitivity) this.scrollParent[0].scrollLeft =
d = this.scrollParent[0].scrollLeft + b.scrollSpeed; else if (a.pageX - this.overflowOffset.left < b.scrollSensitivity) this.scrollParent[0].scrollLeft = d = this.scrollParent[0].scrollLeft - b.scrollSpeed
            } else a.pageY - c(document).scrollTop() < b.scrollSensitivity ? d = c(document).scrollTop(c(document).scrollTop() - b.scrollSpeed) : c(window).height() - (a.pageY - c(document).scrollTop()) < b.scrollSensitivity && (d = c(document).scrollTop(c(document).scrollTop() + b.scrollSpeed)), a.pageX - c(document).scrollLeft() < b.scrollSensitivity ?
d = c(document).scrollLeft(c(document).scrollLeft() - b.scrollSpeed) : c(window).width() - (a.pageX - c(document).scrollLeft()) < b.scrollSensitivity && (d = c(document).scrollLeft(c(document).scrollLeft() + b.scrollSpeed)); d !== !1 && c.ui.ddmanager && !b.dropBehaviour && c.ui.ddmanager.prepareOffsets(this, a)
        } this.positionAbs = this._convertPositionTo("absolute"); if (!this.options.axis || this.options.axis != "y") this.helper[0].style.left = this.position.left + "px"; if (!this.options.axis || this.options.axis != "x") this.helper[0].style.top =
this.position.top + "px"; for (b = this.items.length - 1; b >= 0; b--) { d = this.items[b]; var f = d.item[0], e = this._intersectsWithPointer(d); if (e && f != this.currentItem[0] && this.placeholder[e == 1 ? "next" : "prev"]()[0] != f && !c.ui.contains(this.placeholder[0], f) && (this.options.type == "semi-dynamic" ? !c.ui.contains(this.element[0], f) : 1)) { this.direction = e == 1 ? "down" : "up"; if (this.options.tolerance == "pointer" || this._intersectsWithSides(d)) this._rearrange(a, d); else break; this._trigger("change", a, this._uiHash()); break } } this._contactContainers(a);
        c.ui.ddmanager && c.ui.ddmanager.drag(this, a); this._trigger("sort", a, this._uiHash()); this.lastPositionAbs = this.positionAbs; return !1
    }, _mouseStop: function (a, b) {
        if (a) {
            c.ui.ddmanager && !this.options.dropBehaviour && c.ui.ddmanager.drop(this, a); if (this.options.revert) {
                var d = this, f = d.placeholder.offset(); d.reverting = !0; c(this.helper).animate({ left: f.left - this.offset.parent.left - d.margins.left + (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollLeft), top: f.top - this.offset.parent.top - d.margins.top +
(this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollTop)
                }, parseInt(this.options.revert, 10) || 500, function () { d._clear(a) })
            } else this._clear(a, b); return !1
        } 
    }, cancel: function () {
        if (this.dragging) {
            this._mouseUp(); this.options.helper == "original" ? this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper") : this.currentItem.show(); for (var a = this.containers.length - 1; a >= 0; a--) if (this.containers[a]._trigger("deactivate", null, this._uiHash(this)), this.containers[a].containerCache.over) this.containers[a]._trigger("out",
null, this._uiHash(this)), this.containers[a].containerCache.over = 0
        } this.placeholder[0].parentNode && this.placeholder[0].parentNode.removeChild(this.placeholder[0]); this.options.helper != "original" && this.helper && this.helper[0].parentNode && this.helper.remove(); c.extend(this, { helper: null, dragging: !1, reverting: !1, _noFinalSort: null }); this.domPosition.prev ? c(this.domPosition.prev).after(this.currentItem) : c(this.domPosition.parent).prepend(this.currentItem); return this
    }, serialize: function (a) {
        var b = this._getItemsAsjQuery(a &&
a.connected), d = []; a = a || {}; c(b).each(function () { var b = (c(a.item || this).attr(a.attribute || "id") || "").match(a.expression || /(.+)[-=_](.+)/); b && d.push((a.key || b[1] + "[]") + "=" + (a.key && a.expression ? b[1] : b[2])) }); !d.length && a.key && d.push(a.key + "="); return d.join("&")
    }, toArray: function (a) { var b = this._getItemsAsjQuery(a && a.connected), d = []; a = a || {}; b.each(function () { d.push(c(a.item || this).attr(a.attribute || "id") || "") }); return d }, _intersectsWith: function (c) {
        var b = this.positionAbs.left, d = b + this.helperProportions.width,
f = this.positionAbs.top, e = f + this.helperProportions.height, g = c.left, h = g + c.width, i = c.top, j = i + c.height, k = this.offset.click.top, l = this.offset.click.left; return this.options.tolerance == "pointer" || this.options.forcePointerForContainers || this.options.tolerance != "pointer" && this.helperProportions[this.floating ? "width" : "height"] > c[this.floating ? "width" : "height"] ? f + k > i && f + k < j && b + l > g && b + l < h : g < b + this.helperProportions.width / 2 && d - this.helperProportions.width / 2 < h && i < f + this.helperProportions.height / 2 && e - this.helperProportions.height /
2 < j
    }, _intersectsWithPointer: function (a) { var b = c.ui.isOverAxis(this.positionAbs.top + this.offset.click.top, a.top, a.height); a = c.ui.isOverAxis(this.positionAbs.left + this.offset.click.left, a.left, a.width); b = b && a; a = this._getDragVerticalDirection(); var d = this._getDragHorizontalDirection(); if (!b) return !1; return this.floating ? d && d == "right" || a == "down" ? 2 : 1 : a && (a == "down" ? 2 : 1) }, _intersectsWithSides: function (a) {
        var b = c.ui.isOverAxis(this.positionAbs.top + this.offset.click.top, a.top + a.height / 2, a.height); a = c.ui.isOverAxis(this.positionAbs.left +
this.offset.click.left, a.left + a.width / 2, a.width); var d = this._getDragVerticalDirection(), f = this._getDragHorizontalDirection(); return this.floating && f ? f == "right" && a || f == "left" && !a : d && (d == "down" && b || d == "up" && !b)
    }, _getDragVerticalDirection: function () { var c = this.positionAbs.top - this.lastPositionAbs.top; return c != 0 && (c > 0 ? "down" : "up") }, _getDragHorizontalDirection: function () { var c = this.positionAbs.left - this.lastPositionAbs.left; return c != 0 && (c > 0 ? "right" : "left") }, refresh: function (c) {
        this._refreshItems(c);
        this.refreshPositions(); return this
    }, _connectWith: function () { var c = this.options; return c.connectWith.constructor == String ? [c.connectWith] : c.connectWith }, _getItemsAsjQuery: function (a) {
        var b = [], d = [], f = this._connectWith(); if (f && a) for (a = f.length - 1; a >= 0; a--) for (var e = c(f[a]), g = e.length - 1; g >= 0; g--) {
            var h = c.data(e[g], "sortable"); h && h != this && !h.options.disabled && d.push([c.isFunction(h.options.items) ? h.options.items.call(h.element) : c(h.options.items, h.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),
h])
        } d.push([c.isFunction(this.options.items) ? this.options.items.call(this.element, null, { options: this.options, item: this.currentItem }) : c(this.options.items, this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"), this]); for (a = d.length - 1; a >= 0; a--) d[a][0].each(function () { b.push(this) }); return c(b)
    }, _removeCurrentsFromItems: function () {
        for (var c = this.currentItem.find(":data(sortable-item)"), b = 0; b < this.items.length; b++) for (var d = 0; d < c.length; d++) c[d] == this.items[b].item[0] && this.items.splice(b,
1)
    }, _refreshItems: function (a) {
        this.items = []; this.containers = [this]; var b = this.items, d = [[c.isFunction(this.options.items) ? this.options.items.call(this.element[0], a, { item: this.currentItem }) : c(this.options.items, this.element), this]], f = this._connectWith(); if (f) for (var e = f.length - 1; e >= 0; e--) for (var g = c(f[e]), h = g.length - 1; h >= 0; h--) {
            var i = c.data(g[h], "sortable"); i && i != this && !i.options.disabled && (d.push([c.isFunction(i.options.items) ? i.options.items.call(i.element[0], a, { item: this.currentItem }) : c(i.options.items,
i.element), i]), this.containers.push(i))
        } for (e = d.length - 1; e >= 0; e--) { a = d[e][1]; f = d[e][0]; h = 0; for (g = f.length; h < g; h++) i = c(f[h]), i.data("sortable-item", a), b.push({ item: i, instance: a, width: 0, height: 0, left: 0, top: 0 }) } 
    }, refreshPositions: function (a) {
        if (this.offsetParent && this.helper) this.offset.parent = this._getParentOffset(); for (var b = this.items.length - 1; b >= 0; b--) {
            var d = this.items[b], f = this.options.toleranceElement ? c(this.options.toleranceElement, d.item) : d.item; if (!a) d.width = f.outerWidth(), d.height = f.outerHeight();
            f = f.offset(); d.left = f.left; d.top = f.top
        } if (this.options.custom && this.options.custom.refreshContainers) this.options.custom.refreshContainers.call(this); else for (b = this.containers.length - 1; b >= 0; b--) f = this.containers[b].element.offset(), this.containers[b].containerCache.left = f.left, this.containers[b].containerCache.top = f.top, this.containers[b].containerCache.width = this.containers[b].element.outerWidth(), this.containers[b].containerCache.height = this.containers[b].element.outerHeight(); return this
    }, _createPlaceholder: function (a) {
        var b =
a || this, d = b.options; if (!d.placeholder || d.placeholder.constructor == String) {
            var f = d.placeholder; d.placeholder = { element: function () { var a = c(document.createElement(b.currentItem[0].nodeName)).addClass(f || b.currentItem[0].className + " ui-sortable-placeholder").removeClass("ui-sortable-helper")[0]; if (!f) a.style.visibility = "hidden"; return a }, update: function (c, a) {
                if (!f || d.forcePlaceholderSize) a.height() || a.height(b.currentItem.innerHeight() - parseInt(b.currentItem.css("paddingTop") || 0, 10) - parseInt(b.currentItem.css("paddingBottom") ||
0, 10)), a.width() || a.width(b.currentItem.innerWidth() - parseInt(b.currentItem.css("paddingLeft") || 0, 10) - parseInt(b.currentItem.css("paddingRight") || 0, 10))
            } 
            }
        } b.placeholder = c(d.placeholder.element.call(b.element, b.currentItem)); b.currentItem.after(b.placeholder); d.placeholder.update(b, b.placeholder)
    }, _contactContainers: function (a) {
        for (var b = null, d = null, f = this.containers.length - 1; f >= 0; f--) if (!c.ui.contains(this.currentItem[0], this.containers[f].element[0])) if (this._intersectsWith(this.containers[f].containerCache)) {
            if (!b ||
!c.ui.contains(this.containers[f].element[0], b.element[0])) b = this.containers[f], d = f
        } else if (this.containers[f].containerCache.over) this.containers[f]._trigger("out", a, this._uiHash(this)), this.containers[f].containerCache.over = 0; if (b) if (this.containers.length === 1) this.containers[d]._trigger("over", a, this._uiHash(this)), this.containers[d].containerCache.over = 1; else if (this.currentContainer != this.containers[d]) {
            b = 1E4; f = null; for (var e = this.positionAbs[this.containers[d].floating ? "left" : "top"], g = this.items.length -
1; g >= 0; g--) if (c.ui.contains(this.containers[d].element[0], this.items[g].item[0])) { var h = this.items[g][this.containers[d].floating ? "left" : "top"]; Math.abs(h - e) < b && (b = Math.abs(h - e), f = this.items[g]) } if (f || this.options.dropOnEmpty) this.currentContainer = this.containers[d], f ? this._rearrange(a, f, null, !0) : this._rearrange(a, null, this.containers[d].element, !0), this._trigger("change", a, this._uiHash()), this.containers[d]._trigger("change", a, this._uiHash(this)), this.options.placeholder.update(this.currentContainer,
this.placeholder), this.containers[d]._trigger("over", a, this._uiHash(this)), this.containers[d].containerCache.over = 1
        } 
    }, _createHelper: function (a) {
        var b = this.options; a = c.isFunction(b.helper) ? c(b.helper.apply(this.element[0], [a, this.currentItem])) : b.helper == "clone" ? this.currentItem.clone() : this.currentItem; a.parents("body").length || c(b.appendTo != "parent" ? b.appendTo : this.currentItem[0].parentNode)[0].appendChild(a[0]); if (a[0] == this.currentItem[0]) this._storedCSS = { width: this.currentItem[0].style.width,
            height: this.currentItem[0].style.height, position: this.currentItem.css("position"), top: this.currentItem.css("top"), left: this.currentItem.css("left")
        }; (a[0].style.width == "" || b.forceHelperSize) && a.width(this.currentItem.width()); (a[0].style.height == "" || b.forceHelperSize) && a.height(this.currentItem.height()); return a
    }, _adjustOffsetFromHelper: function (a) {
        typeof a == "string" && (a = a.split(" ")); c.isArray(a) && (a = { left: +a[0], top: +a[1] || 0 }); if ("left" in a) this.offset.click.left = a.left + this.margins.left; if ("right" in
a) this.offset.click.left = this.helperProportions.width - a.right + this.margins.left; if ("top" in a) this.offset.click.top = a.top + this.margins.top; if ("bottom" in a) this.offset.click.top = this.helperProportions.height - a.bottom + this.margins.top
    }, _getParentOffset: function () {
        this.offsetParent = this.helper.offsetParent(); var a = this.offsetParent.offset(); this.cssPosition == "absolute" && this.scrollParent[0] != document && c.ui.contains(this.scrollParent[0], this.offsetParent[0]) && (a.left += this.scrollParent.scrollLeft(), a.top +=
this.scrollParent.scrollTop()); if (this.offsetParent[0] == document.body || this.offsetParent[0].tagName && this.offsetParent[0].tagName.toLowerCase() == "html" && c.browser.msie) a = { top: 0, left: 0 }; return { top: a.top + (parseInt(this.offsetParent.css("borderTopWidth"), 10) || 0), left: a.left + (parseInt(this.offsetParent.css("borderLeftWidth"), 10) || 0)}
    }, _getRelativeOffset: function () {
        if (this.cssPosition == "relative") {
            var c = this.currentItem.position(); return { top: c.top - (parseInt(this.helper.css("top"), 10) || 0) + this.scrollParent.scrollTop(),
                left: c.left - (parseInt(this.helper.css("left"), 10) || 0) + this.scrollParent.scrollLeft()
            }
        } else return { top: 0, left: 0}
    }, _cacheMargins: function () { this.margins = { left: parseInt(this.currentItem.css("marginLeft"), 10) || 0, top: parseInt(this.currentItem.css("marginTop"), 10) || 0} }, _cacheHelperProportions: function () { this.helperProportions = { width: this.helper.outerWidth(), height: this.helper.outerHeight()} }, _setContainment: function () {
        var a = this.options; if (a.containment == "parent") a.containment = this.helper[0].parentNode;
        if (a.containment == "document" || a.containment == "window") this.containment = [0 - this.offset.relative.left - this.offset.parent.left, 0 - this.offset.relative.top - this.offset.parent.top, c(a.containment == "document" ? document : window).width() - this.helperProportions.width - this.margins.left, (c(a.containment == "document" ? document : window).height() || document.body.parentNode.scrollHeight) - this.helperProportions.height - this.margins.top]; if (!/^(document|window|parent)$/.test(a.containment)) {
            var b = c(a.containment)[0]; a = c(a.containment).offset();
            var d = c(b).css("overflow") != "hidden"; this.containment = [a.left + (parseInt(c(b).css("borderLeftWidth"), 10) || 0) + (parseInt(c(b).css("paddingLeft"), 10) || 0) - this.margins.left, a.top + (parseInt(c(b).css("borderTopWidth"), 10) || 0) + (parseInt(c(b).css("paddingTop"), 10) || 0) - this.margins.top, a.left + (d ? Math.max(b.scrollWidth, b.offsetWidth) : b.offsetWidth) - (parseInt(c(b).css("borderLeftWidth"), 10) || 0) - (parseInt(c(b).css("paddingRight"), 10) || 0) - this.helperProportions.width - this.margins.left, a.top + (d ? Math.max(b.scrollHeight,
b.offsetHeight) : b.offsetHeight) - (parseInt(c(b).css("borderTopWidth"), 10) || 0) - (parseInt(c(b).css("paddingBottom"), 10) || 0) - this.helperProportions.height - this.margins.top]
        } 
    }, _convertPositionTo: function (a, b) {
        if (!b) b = this.position; var d = a == "absolute" ? 1 : -1, f = this.cssPosition == "absolute" && !(this.scrollParent[0] != document && c.ui.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, e = /(html|body)/i.test(f[0].tagName); return { top: b.top + this.offset.relative.top * d + this.offset.parent.top *
d - (c.browser.safari && this.cssPosition == "fixed" ? 0 : (this.cssPosition == "fixed" ? -this.scrollParent.scrollTop() : e ? 0 : f.scrollTop()) * d), left: b.left + this.offset.relative.left * d + this.offset.parent.left * d - (c.browser.safari && this.cssPosition == "fixed" ? 0 : (this.cssPosition == "fixed" ? -this.scrollParent.scrollLeft() : e ? 0 : f.scrollLeft()) * d)
        }
    }, _generatePosition: function (a) {
        var b = this.options, d = this.cssPosition == "absolute" && !(this.scrollParent[0] != document && c.ui.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent :
this.scrollParent, f = /(html|body)/i.test(d[0].tagName); if (this.cssPosition == "relative" && !(this.scrollParent[0] != document && this.scrollParent[0] != this.offsetParent[0])) this.offset.relative = this._getRelativeOffset(); var e = a.pageX, g = a.pageY; this.originalPosition && (this.containment && (a.pageX - this.offset.click.left < this.containment[0] && (e = this.containment[0] + this.offset.click.left), a.pageY - this.offset.click.top < this.containment[1] && (g = this.containment[1] + this.offset.click.top), a.pageX - this.offset.click.left >
this.containment[2] && (e = this.containment[2] + this.offset.click.left), a.pageY - this.offset.click.top > this.containment[3] && (g = this.containment[3] + this.offset.click.top)), b.grid && (g = this.originalPageY + Math.round((g - this.originalPageY) / b.grid[1]) * b.grid[1], g = this.containment ? !(g - this.offset.click.top < this.containment[1] || g - this.offset.click.top > this.containment[3]) ? g : !(g - this.offset.click.top < this.containment[1]) ? g - b.grid[1] : g + b.grid[1] : g, e = this.originalPageX + Math.round((e - this.originalPageX) / b.grid[0]) *
b.grid[0], e = this.containment ? !(e - this.offset.click.left < this.containment[0] || e - this.offset.click.left > this.containment[2]) ? e : !(e - this.offset.click.left < this.containment[0]) ? e - b.grid[0] : e + b.grid[0] : e)); return { top: g - this.offset.click.top - this.offset.relative.top - this.offset.parent.top + (c.browser.safari && this.cssPosition == "fixed" ? 0 : this.cssPosition == "fixed" ? -this.scrollParent.scrollTop() : f ? 0 : d.scrollTop()), left: e - this.offset.click.left - this.offset.relative.left - this.offset.parent.left + (c.browser.safari &&
this.cssPosition == "fixed" ? 0 : this.cssPosition == "fixed" ? -this.scrollParent.scrollLeft() : f ? 0 : d.scrollLeft())
}
    }, _rearrange: function (c, b, d, f) { d ? d[0].appendChild(this.placeholder[0]) : b.item[0].parentNode.insertBefore(this.placeholder[0], this.direction == "down" ? b.item[0] : b.item[0].nextSibling); this.counter = this.counter ? ++this.counter : 1; var e = this, g = this.counter; window.setTimeout(function () { g == e.counter && e.refreshPositions(!f) }, 0) }, _clear: function (a, b) {
        this.reverting = !1; var d = []; !this._noFinalSort && this.currentItem[0].parentNode &&
this.placeholder.before(this.currentItem); this._noFinalSort = null; if (this.helper[0] == this.currentItem[0]) { for (var f in this._storedCSS) if (this._storedCSS[f] == "auto" || this._storedCSS[f] == "static") this._storedCSS[f] = ""; this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper") } else this.currentItem.show(); this.fromOutside && !b && d.push(function (c) { this._trigger("receive", c, this._uiHash(this.fromOutside)) }); (this.fromOutside || this.domPosition.prev != this.currentItem.prev().not(".ui-sortable-helper")[0] ||
this.domPosition.parent != this.currentItem.parent()[0]) && !b && d.push(function (c) { this._trigger("update", c, this._uiHash()) }); if (!c.ui.contains(this.element[0], this.currentItem[0])) {
            b || d.push(function (c) { this._trigger("remove", c, this._uiHash()) }); for (f = this.containers.length - 1; f >= 0; f--) c.ui.contains(this.containers[f].element[0], this.currentItem[0]) && !b && (d.push(function (c) { return function (a) { c._trigger("receive", a, this._uiHash(this)) } } .call(this, this.containers[f])), d.push(function (c) {
                return function (a) {
                    c._trigger("update",
a, this._uiHash(this))
                } 
            } .call(this, this.containers[f])))
        } for (f = this.containers.length - 1; f >= 0; f--) if (b || d.push(function (c) { return function (a) { c._trigger("deactivate", a, this._uiHash(this)) } } .call(this, this.containers[f])), this.containers[f].containerCache.over) d.push(function (c) { return function (a) { c._trigger("out", a, this._uiHash(this)) } } .call(this, this.containers[f])), this.containers[f].containerCache.over = 0; this._storedCursor && c("body").css("cursor", this._storedCursor); this._storedOpacity && this.helper.css("opacity",
this._storedOpacity); this._storedZIndex && this.helper.css("zIndex", this._storedZIndex == "auto" ? "" : this._storedZIndex); this.dragging = !1; if (this.cancelHelperRemoval) { if (!b) { this._trigger("beforeStop", a, this._uiHash()); for (f = 0; f < d.length; f++) d[f].call(this, a); this._trigger("stop", a, this._uiHash()) } return !1 } b || this._trigger("beforeStop", a, this._uiHash()); this.placeholder[0].parentNode.removeChild(this.placeholder[0]); this.helper[0] != this.currentItem[0] && this.helper.remove(); this.helper = null; if (!b) {
            for (f =
0; f < d.length; f++) d[f].call(this, a); this._trigger("stop", a, this._uiHash())
        } this.fromOutside = !1; return !0
    }, _trigger: function () { c.Widget.prototype._trigger.apply(this, arguments) === !1 && this.cancel() }, _uiHash: function (a) { var b = a || this; return { helper: b.helper, placeholder: b.placeholder || c([]), position: b.position, originalPosition: b.originalPosition, offset: b.positionAbs, item: b.currentItem, sender: a ? a.element : null} } 
    }); c.extend(c.ui.sortable, { version: "1.8.5" })
})(jQuery);
jQuery.effects || function (c, a) {
    function b(a) {
        var e; if (a && a.constructor == Array && a.length == 3) return a; if (e = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(a)) return [parseInt(e[1], 10), parseInt(e[2], 10), parseInt(e[3], 10)]; if (e = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(a)) return [parseFloat(e[1]) * 2.55, parseFloat(e[2]) * 2.55, parseFloat(e[3]) * 2.55]; if (e = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(a)) return [parseInt(e[1],
16), parseInt(e[2], 16), parseInt(e[3], 16)]; if (e = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(a)) return [parseInt(e[1] + e[1], 16), parseInt(e[2] + e[2], 16), parseInt(e[3] + e[3], 16)]; if (/rgba\(0, 0, 0, 0\)/.exec(a)) return h.transparent; return h[c.trim(a).toLowerCase()]
    } function d() {
        var c = document.defaultView ? document.defaultView.getComputedStyle(this, null) : this.currentStyle, a = {}, e, b; if (c && c.length && c[0] && c[c[0]]) for (var g = c.length; g--; ) e = c[g], typeof c[e] == "string" && (b = e.replace(/\-(\w)/g, function (c, a) { return a.toUpperCase() }),
a[b] = c[e]); else for (e in c) typeof c[e] === "string" && (a[e] = c[e]); return a
    } function f(a) { var e, b; for (e in a) b = a[e], (b == null || c.isFunction(b) || e in j || /scrollbar/.test(e) || !/color/i.test(e) && isNaN(parseFloat(b))) && delete a[e]; return a } function e(c, a) { var e = { _: 0 }, b; for (b in a) c[b] != a[b] && (e[b] = a[b]); return e } function g(a, e, b, g) {
        if (typeof a == "object") g = e, b = null, e = a, a = e.effect; c.isFunction(e) && (g = e, b = null, e = {}); if (typeof e == "number" || c.fx.speeds[e]) g = b, b = e, e = {}; c.isFunction(b) && (g = b, b = null); e = e || {}; b = b ||
e.duration; b = c.fx.off ? 0 : typeof b == "number" ? b : c.fx.speeds[b] || c.fx.speeds._default; g = g || e.complete; return [a, e, b, g]
    } c.effects = {}; c.each(["backgroundColor", "borderBottomColor", "borderLeftColor", "borderRightColor", "borderTopColor", "color", "outlineColor"], function (a, e) {
        c.fx.step[e] = function (a) {
            if (!a.colorInit) { var g; g = a.elem; var d = e, h; do { h = c.curCSS(g, d); if (h != "" && h != "transparent" || c.nodeName(g, "body")) break; d = "backgroundColor" } while (g = g.parentNode); g = b(h); a.start = g; a.end = b(a.end); a.colorInit = !0 } a.elem.style[e] =
"rgb(" + Math.max(Math.min(parseInt(a.pos * (a.end[0] - a.start[0]) + a.start[0], 10), 255), 0) + "," + Math.max(Math.min(parseInt(a.pos * (a.end[1] - a.start[1]) + a.start[1], 10), 255), 0) + "," + Math.max(Math.min(parseInt(a.pos * (a.end[2] - a.start[2]) + a.start[2], 10), 255), 0) + ")"
        } 
    }); var h = { aqua: [0, 255, 255], azure: [240, 255, 255], beige: [245, 245, 220], black: [0, 0, 0], blue: [0, 0, 255], brown: [165, 42, 42], cyan: [0, 255, 255], darkblue: [0, 0, 139], darkcyan: [0, 139, 139], darkgrey: [169, 169, 169], darkgreen: [0, 100, 0], darkkhaki: [189, 183, 107], darkmagenta: [139,
0, 139], darkolivegreen: [85, 107, 47], darkorange: [255, 140, 0], darkorchid: [153, 50, 204], darkred: [139, 0, 0], darksalmon: [233, 150, 122], darkviolet: [148, 0, 211], fuchsia: [255, 0, 255], gold: [255, 215, 0], green: [0, 128, 0], indigo: [75, 0, 130], khaki: [240, 230, 140], lightblue: [173, 216, 230], lightcyan: [224, 255, 255], lightgreen: [144, 238, 144], lightgrey: [211, 211, 211], lightpink: [255, 182, 193], lightyellow: [255, 255, 224], lime: [0, 255, 0], magenta: [255, 0, 255], maroon: [128, 0, 0], navy: [0, 0, 128], olive: [128, 128, 0], orange: [255, 165, 0], pink: [255, 192,
203], purple: [128, 0, 128], violet: [128, 0, 128], red: [255, 0, 0], silver: [192, 192, 192], white: [255, 255, 255], yellow: [255, 255, 0], transparent: [255, 255, 255]
    }, i = ["add", "remove", "toggle"], j = { border: 1, borderBottom: 1, borderColor: 1, borderLeft: 1, borderRight: 1, borderTop: 1, borderWidth: 1, margin: 1, padding: 1 }; c.effects.animateClass = function (a, b, g, h) {
        c.isFunction(g) && (h = g, g = null); return this.each(function () {
            var j = c(this), s = j.attr("style") || " ", p = f(d.call(this)), v, q = j.attr("className"); c.each(i, function (c, e) { if (a[e]) j[e + "Class"](a[e]) });
            v = f(d.call(this)); j.attr("className", q); j.animate(e(p, v), b, g, function () { c.each(i, function (c, e) { if (a[e]) j[e + "Class"](a[e]) }); typeof j.attr("style") == "object" ? (j.attr("style").cssText = "", j.attr("style").cssText = s) : j.attr("style", s); h && h.apply(this, arguments) })
        })
    }; c.fn.extend({ _addClass: c.fn.addClass, addClass: function (a, e, b, g) { return e ? c.effects.animateClass.apply(this, [{ add: a }, e, b, g]) : this._addClass(a) }, _removeClass: c.fn.removeClass, removeClass: function (a, e, b, g) {
        return e ? c.effects.animateClass.apply(this,
[{ remove: a }, e, b, g]) : this._removeClass(a)
    }, _toggleClass: c.fn.toggleClass, toggleClass: function (e, b, g, d, h) { return typeof b == "boolean" || b === a ? g ? c.effects.animateClass.apply(this, [b ? { add: e} : { remove: e }, g, d, h]) : this._toggleClass(e, b) : c.effects.animateClass.apply(this, [{ toggle: e }, b, g, d]) }, switchClass: function (a, e, b, g, d) { return c.effects.animateClass.apply(this, [{ add: e, remove: a }, b, g, d]) } 
    }); c.extend(c.effects, { version: "1.8.5", save: function (c, a) {
        for (var e = 0; e < a.length; e++) a[e] !== null && c.data("ec.storage." + a[e],
c[0].style[a[e]])
    }, restore: function (c, a) { for (var e = 0; e < a.length; e++) a[e] !== null && c.css(a[e], c.data("ec.storage." + a[e])) }, setMode: function (c, a) { a == "toggle" && (a = c.is(":hidden") ? "show" : "hide"); return a }, getBaseline: function (c, a) { var e, b; switch (c[0]) { case "top": e = 0; break; case "middle": e = 0.5; break; case "bottom": e = 1; break; default: e = c[0] / a.height } switch (c[1]) { case "left": b = 0; break; case "center": b = 0.5; break; case "right": b = 1; break; default: b = c[1] / a.width } return { x: b, y: e} }, createWrapper: function (a) {
        if (a.parent().is(".ui-effects-wrapper")) return a.parent();
        var e = { width: a.outerWidth(!0), height: a.outerHeight(!0), "float": a.css("float") }, b = c("<div></div>").addClass("ui-effects-wrapper").css({ fontSize: "100%", background: "transparent", border: "none", margin: 0, padding: 0 }); a.wrap(b); b = a.parent(); a.css("position") == "static" ? (b.css({ position: "relative" }), a.css({ position: "relative" })) : (c.extend(e, { position: a.css("position"), zIndex: a.css("z-index") }), c.each(["top", "left", "bottom", "right"], function (c, b) { e[b] = a.css(b); isNaN(parseInt(e[b], 10)) && (e[b] = "auto") }), a.css({ position: "relative",
            top: 0, left: 0
        })); return b.css(e).show()
    }, removeWrapper: function (c) { if (c.parent().is(".ui-effects-wrapper")) return c.parent().replaceWith(c); return c }, setTransition: function (a, e, b, g) { g = g || {}; c.each(e, function (c, e) { unit = a.cssUnit(e); unit[0] > 0 && (g[e] = unit[0] * b + unit[1]) }); return g } 
    }); c.fn.extend({ effect: function (a) { var e = g.apply(this, arguments); e = { options: e[1], duration: e[2], callback: e[3] }; var b = c.effects[a]; return b && !c.fx.off ? b.call(this, e) : this }, _show: c.fn.show, show: function (a) {
        if (!a || typeof a == "number" ||
c.fx.speeds[a] || !c.effects[a]) return this._show.apply(this, arguments); else { var e = g.apply(this, arguments); e[1].mode = "show"; return this.effect.apply(this, e) } 
    }, _hide: c.fn.hide, hide: function (a) { if (!a || typeof a == "number" || c.fx.speeds[a] || !c.effects[a]) return this._hide.apply(this, arguments); else { var e = g.apply(this, arguments); e[1].mode = "hide"; return this.effect.apply(this, e) } }, __toggle: c.fn.toggle, toggle: function (a) {
        if (!a || typeof a == "number" || c.fx.speeds[a] || !c.effects[a] || typeof a == "boolean" || c.isFunction(a)) return this.__toggle.apply(this,
arguments); else { var e = g.apply(this, arguments); e[1].mode = "toggle"; return this.effect.apply(this, e) } 
    }, cssUnit: function (a) { var e = this.css(a), b = []; c.each(["em", "px", "%", "pt"], function (c, a) { e.indexOf(a) > 0 && (b = [parseFloat(e), a]) }); return b } 
    }); c.easing.jswing = c.easing.swing; c.extend(c.easing, { def: "easeOutQuad", swing: function (a, e, b, g, d) { return c.easing[c.easing.def](a, e, b, g, d) }, easeInQuad: function (c, a, e, b, g) { return b * (a /= g) * a + e }, easeOutQuad: function (c, a, e, b, g) { return -b * (a /= g) * (a - 2) + e }, easeInOutQuad: function (c,
a, e, b, g) { if ((a /= g / 2) < 1) return b / 2 * a * a + e; return -b / 2 * (--a * (a - 2) - 1) + e }, easeInCubic: function (c, a, e, b, g) { return b * (a /= g) * a * a + e }, easeOutCubic: function (c, a, e, b, g) { return b * ((a = a / g - 1) * a * a + 1) + e }, easeInOutCubic: function (c, a, e, b, g) { if ((a /= g / 2) < 1) return b / 2 * a * a * a + e; return b / 2 * ((a -= 2) * a * a + 2) + e }, easeInQuart: function (c, a, e, b, g) { return b * (a /= g) * a * a * a + e }, easeOutQuart: function (c, a, e, b, g) { return -b * ((a = a / g - 1) * a * a * a - 1) + e }, easeInOutQuart: function (c, a, e, b, g) {
    if ((a /= g / 2) < 1) return b / 2 * a * a * a * a + e; return -b / 2 * ((a -= 2) * a * a * a - 2) +
e
}, easeInQuint: function (a, c, e, b, g) { return b * (c /= g) * c * c * c * c + e }, easeOutQuint: function (a, c, e, b, g) { return b * ((c = c / g - 1) * c * c * c * c + 1) + e }, easeInOutQuint: function (c, a, e, b, g) { if ((a /= g / 2) < 1) return b / 2 * a * a * a * a * a + e; return b / 2 * ((a -= 2) * a * a * a * a + 2) + e }, easeInSine: function (a, c, e, b, g) { return -b * Math.cos(c / g * (Math.PI / 2)) + b + e }, easeOutSine: function (a, c, e, b, g) { return b * Math.sin(c / g * (Math.PI / 2)) + e }, easeInOutSine: function (a, c, e, b, g) { return -b / 2 * (Math.cos(Math.PI * c / g) - 1) + e }, easeInExpo: function (a, c, e, b, g) {
    return c == 0 ? e : b * Math.pow(2,
10 * (c / g - 1)) + e
}, easeOutExpo: function (a, c, e, b, g) { return c == g ? e + b : b * (-Math.pow(2, -10 * c / g) + 1) + e }, easeInOutExpo: function (c, a, e, b, g) { if (a == 0) return e; if (a == g) return e + b; if ((a /= g / 2) < 1) return b / 2 * Math.pow(2, 10 * (a - 1)) + e; return b / 2 * (-Math.pow(2, -10 * --a) + 2) + e }, easeInCirc: function (a, c, e, b, g) { return -b * (Math.sqrt(1 - (c /= g) * c) - 1) + e }, easeOutCirc: function (a, c, e, b, g) { return b * Math.sqrt(1 - (c = c / g - 1) * c) + e }, easeInOutCirc: function (c, a, e, b, g) {
    if ((a /= g / 2) < 1) return -b / 2 * (Math.sqrt(1 - a * a) - 1) + e; return b / 2 * (Math.sqrt(1 - (a -= 2) *
a) + 1) + e
}, easeInElastic: function (a, c, e, b, g) { a = 1.70158; var d = 0, h = b; if (c == 0) return e; if ((c /= g) == 1) return e + b; d || (d = g * 0.3); h < Math.abs(b) ? (h = b, a = d / 4) : a = d / (2 * Math.PI) * Math.asin(b / h); return -(h * Math.pow(2, 10 * (c -= 1)) * Math.sin((c * g - a) * 2 * Math.PI / d)) + e }, easeOutElastic: function (a, c, e, b, g) { a = 1.70158; var d = 0, h = b; if (c == 0) return e; if ((c /= g) == 1) return e + b; d || (d = g * 0.3); h < Math.abs(b) ? (h = b, a = d / 4) : a = d / (2 * Math.PI) * Math.asin(b / h); return h * Math.pow(2, -10 * c) * Math.sin((c * g - a) * 2 * Math.PI / d) + b + e }, easeInOutElastic: function (a, c,
e, b, g) { a = 1.70158; var d = 0, h = b; if (c == 0) return e; if ((c /= g / 2) == 2) return e + b; d || (d = g * 0.3 * 1.5); h < Math.abs(b) ? (h = b, a = d / 4) : a = d / (2 * Math.PI) * Math.asin(b / h); if (c < 1) return -0.5 * h * Math.pow(2, 10 * (c -= 1)) * Math.sin((c * g - a) * 2 * Math.PI / d) + e; return h * Math.pow(2, -10 * (c -= 1)) * Math.sin((c * g - a) * 2 * Math.PI / d) * 0.5 + b + e }, easeInBack: function (c, e, b, g, d, h) { h == a && (h = 1.70158); return g * (e /= d) * e * ((h + 1) * e - h) + b }, easeOutBack: function (c, e, b, g, d, h) { h == a && (h = 1.70158); return g * ((e = e / d - 1) * e * ((h + 1) * e + h) + 1) + b }, easeInOutBack: function (c, e, b, g, d, h) {
    h ==
a && (h = 1.70158); if ((e /= d / 2) < 1) return g / 2 * e * e * (((h *= 1.525) + 1) * e - h) + b; return g / 2 * ((e -= 2) * e * (((h *= 1.525) + 1) * e + h) + 2) + b
}, easeInBounce: function (a, e, b, g, d) { return g - c.easing.easeOutBounce(a, d - e, 0, g, d) + b }, easeOutBounce: function (a, c, e, b, g) { return (c /= g) < 1 / 2.75 ? b * 7.5625 * c * c + e : c < 2 / 2.75 ? b * (7.5625 * (c -= 1.5 / 2.75) * c + 0.75) + e : c < 2.5 / 2.75 ? b * (7.5625 * (c -= 2.25 / 2.75) * c + 0.9375) + e : b * (7.5625 * (c -= 2.625 / 2.75) * c + 0.984375) + e }, easeInOutBounce: function (a, e, b, g, d) {
    if (e < d / 2) return c.easing.easeInBounce(a, e * 2, 0, g, d) * 0.5 + b; return c.easing.easeOutBounce(a,
e * 2 - d, 0, g, d) * 0.5 + g * 0.5 + b
} 
    })
} (jQuery);
(function (c) {
    c.effects.blind = function (a) {
        return this.queue(function () {
            var b = c(this), d = ["position", "top", "left"], f = c.effects.setMode(b, a.options.mode || "hide"), e = a.options.direction || "vertical"; c.effects.save(b, d); b.show(); var g = c.effects.createWrapper(b).css({ overflow: "hidden" }), h = e == "vertical" ? "height" : "width"; e = e == "vertical" ? g.height() : g.width(); f == "show" && g.css(h, 0); var i = {}; i[h] = f == "show" ? e : 0; g.animate(i, a.duration, a.options.easing, function () {
                f == "hide" && b.hide(); c.effects.restore(b, d); c.effects.removeWrapper(b);
                a.callback && a.callback.apply(b[0], arguments); b.dequeue()
            })
        })
    } 
})(jQuery);
(function (c) {
    c.effects.bounce = function (a) {
        return this.queue(function () {
            var b = c(this), d = ["position", "top", "left"], f = c.effects.setMode(b, a.options.mode || "effect"), e = a.options.direction || "up", g = a.options.distance || 20, h = a.options.times || 5, i = a.duration || 250; /show|hide/.test(f) && d.push("opacity"); c.effects.save(b, d); b.show(); c.effects.createWrapper(b); var j = e == "up" || e == "down" ? "top" : "left"; e = e == "up" || e == "left" ? "pos" : "neg"; g = a.options.distance || (j == "top" ? b.outerHeight({ margin: !0 }) / 3 : b.outerWidth({ margin: !0 }) /
3); f == "show" && b.css("opacity", 0).css(j, e == "pos" ? -g : g); f == "hide" && (g /= h * 2); f != "hide" && h--; if (f == "show") { var k = { opacity: 1 }; k[j] = (e == "pos" ? "+=" : "-=") + g; b.animate(k, i / 2, a.options.easing); g /= 2; h-- } for (k = 0; k < h; k++) { var l = {}, m = {}; l[j] = (e == "pos" ? "-=" : "+=") + g; m[j] = (e == "pos" ? "+=" : "-=") + g; b.animate(l, i / 2, a.options.easing).animate(m, i / 2, a.options.easing); g = f == "hide" ? g * 2 : g / 2 } f == "hide" ? (k = { opacity: 0 }, k[j] = (e == "pos" ? "-=" : "+=") + g, b.animate(k, i / 2, a.options.easing, function () {
    b.hide(); c.effects.restore(b, d); c.effects.removeWrapper(b);
    a.callback && a.callback.apply(this, arguments)
})) : (l = {}, m = {}, l[j] = (e == "pos" ? "-=" : "+=") + g, m[j] = (e == "pos" ? "+=" : "-=") + g, b.animate(l, i / 2, a.options.easing).animate(m, i / 2, a.options.easing, function () { c.effects.restore(b, d); c.effects.removeWrapper(b); a.callback && a.callback.apply(this, arguments) })); b.queue("fx", function () { b.dequeue() }); b.dequeue()
        })
    } 
})(jQuery);
(function (c) {
    c.effects.clip = function (a) {
        return this.queue(function () {
            var b = c(this), d = ["position", "top", "left", "height", "width"], f = c.effects.setMode(b, a.options.mode || "hide"), e = a.options.direction || "vertical"; c.effects.save(b, d); b.show(); var g = c.effects.createWrapper(b).css({ overflow: "hidden" }); g = b[0].tagName == "IMG" ? g : b; var h = { size: e == "vertical" ? "height" : "width", position: e == "vertical" ? "top" : "left" }; e = e == "vertical" ? g.height() : g.width(); f == "show" && (g.css(h.size, 0), g.css(h.position, e / 2)); var i = {}; i[h.size] =
f == "show" ? e : 0; i[h.position] = f == "show" ? 0 : e / 2; g.animate(i, { queue: !1, duration: a.duration, easing: a.options.easing, complete: function () { f == "hide" && b.hide(); c.effects.restore(b, d); c.effects.removeWrapper(b); a.callback && a.callback.apply(b[0], arguments); b.dequeue() } })
        })
    } 
})(jQuery);
(function (c) {
    c.effects.drop = function (a) {
        return this.queue(function () {
            var b = c(this), d = ["position", "top", "left", "opacity"], f = c.effects.setMode(b, a.options.mode || "hide"), e = a.options.direction || "left"; c.effects.save(b, d); b.show(); c.effects.createWrapper(b); var g = e == "up" || e == "down" ? "top" : "left"; e = e == "up" || e == "left" ? "pos" : "neg"; var h = a.options.distance || (g == "top" ? b.outerHeight({ margin: !0 }) / 2 : b.outerWidth({ margin: !0 }) / 2); f == "show" && b.css("opacity", 0).css(g, e == "pos" ? -h : h); var i = { opacity: f == "show" ? 1 : 0 }; i[g] =
(f == "show" ? e == "pos" ? "+=" : "-=" : e == "pos" ? "-=" : "+=") + h; b.animate(i, { queue: !1, duration: a.duration, easing: a.options.easing, complete: function () { f == "hide" && b.hide(); c.effects.restore(b, d); c.effects.removeWrapper(b); a.callback && a.callback.apply(this, arguments); b.dequeue() } })
        })
    } 
})(jQuery);
(function (c) {
    c.effects.explode = function (a) {
        return this.queue(function () {
            var b = a.options.pieces ? Math.round(Math.sqrt(a.options.pieces)) : 3, d = a.options.pieces ? Math.round(Math.sqrt(a.options.pieces)) : 3; a.options.mode = a.options.mode == "toggle" ? c(this).is(":visible") ? "hide" : "show" : a.options.mode; var f = c(this).show().css("visibility", "hidden"), e = f.offset(); e.top -= parseInt(f.css("marginTop"), 10) || 0; e.left -= parseInt(f.css("marginLeft"), 10) || 0; for (var g = f.outerWidth(!0), h = f.outerHeight(!0), i = 0; i < b; i++) for (var j =
0; j < d; j++) f.clone().appendTo("body").wrap("<div></div>").css({ position: "absolute", visibility: "visible", left: -j * (g / d), top: -i * (h / b) }).parent().addClass("ui-effects-explode").css({ position: "absolute", overflow: "hidden", width: g / d, height: h / b, left: e.left + j * (g / d) + (a.options.mode == "show" ? (j - Math.floor(d / 2)) * (g / d) : 0), top: e.top + i * (h / b) + (a.options.mode == "show" ? (i - Math.floor(b / 2)) * (h / b) : 0), opacity: a.options.mode == "show" ? 0 : 1 }).animate({ left: e.left + j * (g / d) + (a.options.mode == "show" ? 0 : (j - Math.floor(d / 2)) * (g / d)), top: e.top +
i * (h / b) + (a.options.mode == "show" ? 0 : (i - Math.floor(b / 2)) * (h / b)), opacity: a.options.mode == "show" ? 1 : 0
}, a.duration || 500); setTimeout(function () { a.options.mode == "show" ? f.css({ visibility: "visible" }) : f.css({ visibility: "visible" }).hide(); a.callback && a.callback.apply(f[0]); f.dequeue(); c("div.ui-effects-explode").remove() }, a.duration || 500)
        })
    } 
})(jQuery);
(function (c) { c.effects.fade = function (a) { return this.queue(function () { var b = c(this), d = c.effects.setMode(b, a.options.mode || "hide"); b.animate({ opacity: d }, { queue: !1, duration: a.duration, easing: a.options.easing, complete: function () { a.callback && a.callback.apply(this, arguments); b.dequeue() } }) }) } })(jQuery);
(function (c) {
    c.effects.fold = function (a) {
        return this.queue(function () {
            var b = c(this), d = ["position", "top", "left"], f = c.effects.setMode(b, a.options.mode || "hide"), e = a.options.size || 15, g = !!a.options.horizFirst, h = a.duration ? a.duration / 2 : c.fx.speeds._default / 2; c.effects.save(b, d); b.show(); var i = c.effects.createWrapper(b).css({ overflow: "hidden" }), j = f == "show" != g, k = j ? ["width", "height"] : ["height", "width"]; j = j ? [i.width(), i.height()] : [i.height(), i.width()]; var l = /([0-9]+)%/.exec(e); l && (e = parseInt(l[1], 10) / 100 * j[f ==
"hide" ? 0 : 1]); f == "show" && i.css(g ? { height: 0, width: e} : { height: e, width: 0 }); g = {}; l = {}; g[k[0]] = f == "show" ? j[0] : e; l[k[1]] = f == "show" ? j[1] : 0; i.animate(g, h, a.options.easing).animate(l, h, a.options.easing, function () { f == "hide" && b.hide(); c.effects.restore(b, d); c.effects.removeWrapper(b); a.callback && a.callback.apply(b[0], arguments); b.dequeue() })
        })
    } 
})(jQuery);
(function (c) {
    c.effects.highlight = function (a) {
        return this.queue(function () {
            var b = c(this), d = ["backgroundImage", "backgroundColor", "opacity"], f = c.effects.setMode(b, a.options.mode || "show"), e = { backgroundColor: b.css("backgroundColor") }; if (f == "hide") e.opacity = 0; c.effects.save(b, d); b.show().css({ backgroundImage: "none", backgroundColor: a.options.color || "#ffff99" }).animate(e, { queue: !1, duration: a.duration, easing: a.options.easing, complete: function () {
                f == "hide" && b.hide(); c.effects.restore(b, d); f == "show" && !c.support.opacity &&
this.style.removeAttribute("filter"); a.callback && a.callback.apply(this, arguments); b.dequeue()
            } 
            })
        })
    } 
})(jQuery);
(function (c) {
    c.effects.pulsate = function (a) {
        return this.queue(function () {
            var b = c(this), d = c.effects.setMode(b, a.options.mode || "show"); times = (a.options.times || 5) * 2 - 1; duration = a.duration ? a.duration / 2 : c.fx.speeds._default / 2; isVisible = b.is(":visible"); animateTo = 0; isVisible || (b.css("opacity", 0).show(), animateTo = 1); (d == "hide" && isVisible || d == "show" && !isVisible) && times--; for (d = 0; d < times; d++) b.animate({ opacity: animateTo }, duration, a.options.easing), animateTo = (animateTo + 1) % 2; b.animate({ opacity: animateTo }, duration,
a.options.easing, function () { animateTo == 0 && b.hide(); a.callback && a.callback.apply(this, arguments) }); b.queue("fx", function () { b.dequeue() }).dequeue()
        })
    } 
})(jQuery);
(function (c) {
    c.effects.puff = function (a) { return this.queue(function () { var b = c(this), d = c.effects.setMode(b, a.options.mode || "hide"), f = parseInt(a.options.percent, 10) || 150, e = f / 100, g = { height: b.height(), width: b.width() }; c.extend(a.options, { fade: !0, mode: d, percent: d == "hide" ? f : 100, from: d == "hide" ? g : { height: g.height * e, width: g.width * e} }); b.effect("scale", a.options, a.duration, a.callback); b.dequeue() }) }; c.effects.scale = function (a) {
        return this.queue(function () {
            var b = c(this), d = c.extend(!0, {}, a.options), f = c.effects.setMode(b,
a.options.mode || "effect"), e = parseInt(a.options.percent, 10) || (parseInt(a.options.percent, 10) == 0 ? 0 : f == "hide" ? 0 : 100), g = a.options.direction || "both", h = a.options.origin; if (f != "effect") d.origin = h || ["middle", "center"], d.restore = !0; h = { height: b.height(), width: b.width() }; b.from = a.options.from || (f == "show" ? { height: 0, width: 0} : h); e = { y: g != "horizontal" ? e / 100 : 1, x: g != "vertical" ? e / 100 : 1 }; b.to = { height: h.height * e.y, width: h.width * e.x }; if (a.options.fade) {
                if (f == "show") b.from.opacity = 0, b.to.opacity = 1; if (f == "hide") b.from.opacity =
1, b.to.opacity = 0
            } d.from = b.from; d.to = b.to; d.mode = f; b.effect("size", d, a.duration, a.callback); b.dequeue()
        })
    }; c.effects.size = function (a) {
        return this.queue(function () {
            var b = c(this), d = ["position", "top", "left", "width", "height", "overflow", "opacity"], f = ["position", "top", "left", "overflow", "opacity"], e = ["width", "height", "overflow"], g = ["fontSize"], h = ["borderTopWidth", "borderBottomWidth", "paddingTop", "paddingBottom"], i = ["borderLeftWidth", "borderRightWidth", "paddingLeft", "paddingRight"], j = c.effects.setMode(b, a.options.mode ||
"effect"), k = a.options.restore || !1, l = a.options.scale || "both", m = a.options.origin, o = { height: b.height(), width: b.width() }; b.from = a.options.from || o; b.to = a.options.to || o; if (m) m = c.effects.getBaseline(m, o), b.from.top = (o.height - b.from.height) * m.y, b.from.left = (o.width - b.from.width) * m.x, b.to.top = (o.height - b.to.height) * m.y, b.to.left = (o.width - b.to.width) * m.x; var n = { from: { y: b.from.height / o.height, x: b.from.width / o.width }, to: { y: b.to.height / o.height, x: b.to.width / o.width} }; if (l == "box" || l == "both") {
                if (n.from.y != n.to.y) d =
d.concat(h), b.from = c.effects.setTransition(b, h, n.from.y, b.from), b.to = c.effects.setTransition(b, h, n.to.y, b.to); if (n.from.x != n.to.x) d = d.concat(i), b.from = c.effects.setTransition(b, i, n.from.x, b.from), b.to = c.effects.setTransition(b, i, n.to.x, b.to)
            } if ((l == "content" || l == "both") && n.from.y != n.to.y) d = d.concat(g), b.from = c.effects.setTransition(b, g, n.from.y, b.from), b.to = c.effects.setTransition(b, g, n.to.y, b.to); c.effects.save(b, k ? d : f); b.show(); c.effects.createWrapper(b); b.css("overflow", "hidden").css(b.from); if (l ==
"content" || l == "both") h = h.concat(["marginTop", "marginBottom"]).concat(g), i = i.concat(["marginLeft", "marginRight"]), e = d.concat(h).concat(i), b.find("*[width]").each(function () {
    child = c(this); k && c.effects.save(child, e); var b = { height: child.height(), width: child.width() }; child.from = { height: b.height * n.from.y, width: b.width * n.from.x }; child.to = { height: b.height * n.to.y, width: b.width * n.to.x }; if (n.from.y != n.to.y) child.from = c.effects.setTransition(child, h, n.from.y, child.from), child.to = c.effects.setTransition(child,
h, n.to.y, child.to); if (n.from.x != n.to.x) child.from = c.effects.setTransition(child, i, n.from.x, child.from), child.to = c.effects.setTransition(child, i, n.to.x, child.to); child.css(child.from); child.animate(child.to, a.duration, a.options.easing, function () { k && c.effects.restore(child, e) })
}); b.animate(b.to, { queue: !1, duration: a.duration, easing: a.options.easing, complete: function () {
    b.to.opacity === 0 && b.css("opacity", b.from.opacity); j == "hide" && b.hide(); c.effects.restore(b, k ? d : f); c.effects.removeWrapper(b); a.callback &&
a.callback.apply(this, arguments); b.dequeue()
} 
})
        })
    } 
})(jQuery);
(function (c) {
    c.effects.shake = function (a) {
        return this.queue(function () {
            var b = c(this), d = ["position", "top", "left"]; c.effects.setMode(b, a.options.mode || "effect"); var f = a.options.direction || "left", e = a.options.distance || 20, g = a.options.times || 3, h = a.duration || a.options.duration || 140; c.effects.save(b, d); b.show(); c.effects.createWrapper(b); var i = f == "up" || f == "down" ? "top" : "left", j = f == "up" || f == "left" ? "pos" : "neg"; f = {}; var k = {}, l = {}; f[i] = (j == "pos" ? "-=" : "+=") + e; k[i] = (j == "pos" ? "+=" : "-=") + e * 2; l[i] = (j == "pos" ? "-=" : "+=") +
e * 2; b.animate(f, h, a.options.easing); for (e = 1; e < g; e++) b.animate(k, h, a.options.easing).animate(l, h, a.options.easing); b.animate(k, h, a.options.easing).animate(f, h / 2, a.options.easing, function () { c.effects.restore(b, d); c.effects.removeWrapper(b); a.callback && a.callback.apply(this, arguments) }); b.queue("fx", function () { b.dequeue() }); b.dequeue()
        })
    } 
})(jQuery);
(function (c) {
    c.effects.slide = function (a) {
        return this.queue(function () {
            var b = c(this), d = ["position", "top", "left"], f = c.effects.setMode(b, a.options.mode || "show"), e = a.options.direction || "left"; c.effects.save(b, d); b.show(); c.effects.createWrapper(b).css({ overflow: "hidden" }); var g = e == "up" || e == "down" ? "top" : "left"; e = e == "up" || e == "left" ? "pos" : "neg"; var h = a.options.distance || (g == "top" ? b.outerHeight({ margin: !0 }) : b.outerWidth({ margin: !0 })); f == "show" && b.css(g, e == "pos" ? -h : h); var i = {}; i[g] = (f == "show" ? e == "pos" ? "+=" :
"-=" : e == "pos" ? "-=" : "+=") + h; b.animate(i, { queue: !1, duration: a.duration, easing: a.options.easing, complete: function () { f == "hide" && b.hide(); c.effects.restore(b, d); c.effects.removeWrapper(b); a.callback && a.callback.apply(this, arguments); b.dequeue() } })
        })
    } 
})(jQuery);
(function (c) {
    c.effects.transfer = function (a) {
        return this.queue(function () {
            var b = c(this), d = c(a.options.to), f = d.offset(); d = { top: f.top, left: f.left, height: d.innerHeight(), width: d.innerWidth() }; f = b.offset(); var e = c('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(a.options.className).css({ top: f.top, left: f.left, height: b.innerHeight(), width: b.innerWidth(), position: "absolute" }).animate(d, a.duration, a.options.easing, function () {
                e.remove(); a.callback && a.callback.apply(b[0], arguments);
                b.dequeue()
            })
        })
    } 
})(jQuery);
(function (c) {
    c.widget("ui.accordion", { options: { active: 0, animated: "slide", autoHeight: !0, clearStyle: !1, collapsible: !1, event: "click", fillSpace: !1, header: "> li > :first-child,> :not(li):even", icons: { header: "ui-icon-triangle-1-e", headerSelected: "ui-icon-triangle-1-s" }, navigation: !1, navigationFilter: function () { return this.href.toLowerCase() === location.href.toLowerCase() } }, _create: function () {
        var a = this, b = a.options; a.running = 0; a.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix"); a.headers =
a.element.find(b.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion", function () { b.disabled || c(this).addClass("ui-state-hover") }).bind("mouseleave.accordion", function () { b.disabled || c(this).removeClass("ui-state-hover") }).bind("focus.accordion", function () { b.disabled || c(this).addClass("ui-state-focus") }).bind("blur.accordion", function () { b.disabled || c(this).removeClass("ui-state-focus") }); a.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
        if (b.navigation) { var d = a.element.find("a").filter(b.navigationFilter).eq(0); if (d.length) { var f = d.closest(".ui-accordion-header"); a.active = f.length ? f : d.closest(".ui-accordion-content").prev() } } a.active = a._findActive(a.active || b.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all ui-corner-top"); a.active.next().addClass("ui-accordion-content-active"); a._createIcons(); a.resize(); a.element.attr("role", "tablist"); a.headers.attr("role", "tab").bind("keydown.accordion", function (c) { return a._keydown(c) }).next().attr("role",
"tabpanel"); a.headers.not(a.active || "").attr({ "aria-expanded": "false", tabIndex: -1 }).next().hide(); a.active.length ? a.active.attr({ "aria-expanded": "true", tabIndex: 0 }) : a.headers.eq(0).attr("tabIndex", 0); c.browser.safari || a.headers.find("a").attr("tabIndex", -1); b.event && a.headers.bind(b.event.split(" ").join(".accordion ") + ".accordion", function (c) { a._clickHandler.call(a, c, this); c.preventDefault() })
    }, _createIcons: function () {
        var a = this.options; a.icons && (c("<span></span>").addClass("ui-icon " + a.icons.header).prependTo(this.headers),
this.active.children(".ui-icon").toggleClass(a.icons.header).toggleClass(a.icons.headerSelected), this.element.addClass("ui-accordion-icons"))
    }, _destroyIcons: function () { this.headers.children(".ui-icon").remove(); this.element.removeClass("ui-accordion-icons") }, destroy: function () {
        var a = this.options; this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"); this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabIndex");
        this.headers.find("a").removeAttr("tabIndex"); this._destroyIcons(); var b = this.headers.next().css("display", "").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled"); (a.autoHeight || a.fillHeight) && b.css("height", ""); return c.Widget.prototype.destroy.call(this)
    }, _setOption: function (a, b) {
        c.Widget.prototype._setOption.apply(this, arguments); a == "active" && this.activate(b); a == "icons" && (this._destroyIcons(),
b && this._createIcons()); if (a == "disabled") this.headers.add(this.headers.next())[b ? "addClass" : "removeClass"]("ui-accordion-disabled ui-state-disabled")
    }, _keydown: function (a) {
        if (!this.options.disabled && !a.altKey && !a.ctrlKey) {
            var b = c.ui.keyCode, d = this.headers.length, f = this.headers.index(a.target), e = !1; switch (a.keyCode) { case b.RIGHT: case b.DOWN: e = this.headers[(f + 1) % d]; break; case b.LEFT: case b.UP: e = this.headers[(f - 1 + d) % d]; break; case b.SPACE: case b.ENTER: this._clickHandler({ target: a.target }, a.target), a.preventDefault() } if (e) return c(a.target).attr("tabIndex",
-1), c(e).attr("tabIndex", 0), e.focus(), !1; return !0
        } 
    }, resize: function () {
        var a = this.options, b; if (a.fillSpace) { if (c.browser.msie) { var d = this.element.parent().css("overflow"); this.element.parent().css("overflow", "hidden") } b = this.element.parent().height(); c.browser.msie && this.element.parent().css("overflow", d); this.headers.each(function () { b -= c(this).outerHeight(!0) }); this.headers.next().each(function () { c(this).height(Math.max(0, b - c(this).innerHeight() + c(this).height())) }).css("overflow", "auto") } else a.autoHeight &&
(b = 0, this.headers.next().each(function () { b = Math.max(b, c(this).height("").height()) }).height(b)); return this
    }, activate: function (c) { this.options.active = c; c = this._findActive(c)[0]; this._clickHandler({ target: c }, c); return this }, _findActive: function (a) { return a ? typeof a === "number" ? this.headers.filter(":eq(" + a + ")") : this.headers.not(this.headers.not(a)) : a === !1 ? c([]) : this.headers.filter(":eq(0)") }, _clickHandler: function (a, b) {
        var d = this.options; if (!d.disabled) if (a.target) {
            var f = c(a.currentTarget || b), e = f[0] ===
this.active[0]; d.active = d.collapsible && e ? !1 : this.headers.index(f); if (!(this.running || !d.collapsible && e)) this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header), e || (f.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected), f.next().addClass("ui-accordion-content-active")),
i = f.next(), g = this.active.next(), h = { options: d, newHeader: e && d.collapsible ? c([]) : f, oldHeader: this.active, newContent: e && d.collapsible ? c([]) : i, oldContent: g }, d = this.headers.index(this.active[0]) > this.headers.index(f[0]), this.active = e ? c([]) : f, this._toggle(i, g, h, e, d)
        } else if (d.collapsible) {
            this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header); this.active.next().addClass("ui-accordion-content-active");
            var g = this.active.next(), h = { options: d, newHeader: c([]), oldHeader: d.active, newContent: c([]), oldContent: g }, i = this.active = c([]); this._toggle(i, g, h)
        } 
    }, _toggle: function (a, b, d, f, e) {
        var g = this, h = g.options; g.toShow = a; g.toHide = b; g.data = d; var i = function () { if (g) return g._completed.apply(g, arguments) }; g._trigger("changestart", null, g.data); g.running = b.size() === 0 ? a.size() : b.size(); if (h.animated) {
            d = {}; d = h.collapsible && f ? { toShow: c([]), toHide: b, complete: i, down: e, autoHeight: h.autoHeight || h.fillSpace} : { toShow: a, toHide: b,
                complete: i, down: e, autoHeight: h.autoHeight || h.fillSpace
            }; if (!h.proxied) h.proxied = h.animated; if (!h.proxiedDuration) h.proxiedDuration = h.duration; h.animated = c.isFunction(h.proxied) ? h.proxied(d) : h.proxied; h.duration = c.isFunction(h.proxiedDuration) ? h.proxiedDuration(d) : h.proxiedDuration; f = c.ui.accordion.animations; var j = h.duration, k = h.animated; k && !f[k] && !c.easing[k] && (k = "slide"); f[k] || (f[k] = function (c) { this.slide(c, { easing: k, duration: j || 700 }) }); f[k](d)
        } else h.collapsible && f ? a.toggle() : (b.hide(), a.show()),
i(!0); b.prev().attr({ "aria-expanded": "false", tabIndex: -1 }).blur(); a.prev().attr({ "aria-expanded": "true", tabIndex: 0 }).focus()
    }, _completed: function (c) { this.running = c ? 0 : --this.running; this.running || (this.options.clearStyle && this.toShow.add(this.toHide).css({ height: "", overflow: "" }), this.toHide.removeClass("ui-accordion-content-active"), this._trigger("change", null, this.data)) } 
    }); c.extend(c.ui.accordion, { version: "1.8.5", animations: { slide: function (a, b) {
        a = c.extend({ easing: "swing", duration: 300 }, a, b); if (a.toHide.size()) if (a.toShow.size()) {
            var d =
a.toShow.css("overflow"), f = 0, e = {}, g = {}, h, i = a.toShow; h = i[0].style.width; i.width(parseInt(i.parent().width(), 10) - parseInt(i.css("paddingLeft"), 10) - parseInt(i.css("paddingRight"), 10) - (parseInt(i.css("borderLeftWidth"), 10) || 0) - (parseInt(i.css("borderRightWidth"), 10) || 0)); c.each(["height", "paddingTop", "paddingBottom"], function (b, d) { g[d] = "hide"; var h = ("" + c.css(a.toShow[0], d)).match(/^([\d+-.]+)(.*)$/); e[d] = { value: h[1], unit: h[2] || "px"} }); a.toShow.css({ height: 0, overflow: "hidden" }).show(); a.toHide.filter(":hidden").each(a.complete).end().filter(":visible").animate(g,
{ step: function (c, b) { b.prop == "height" && (f = b.end - b.start === 0 ? 0 : (b.now - b.start) / (b.end - b.start)); a.toShow[0].style[b.prop] = f * e[b.prop].value + e[b.prop].unit }, duration: a.duration, easing: a.easing, complete: function () { a.autoHeight || a.toShow.css("height", ""); a.toShow.css({ width: h, overflow: d }); a.complete() } })
        } else a.toHide.animate({ height: "hide", paddingTop: "hide", paddingBottom: "hide" }, a); else a.toShow.animate({ height: "show", paddingTop: "show", paddingBottom: "show" }, a)
    }, bounceslide: function (c) {
        this.slide(c, { easing: c.down ?
"easeOutBounce" : "swing", duration: c.down ? 1E3 : 200
        })
    } 
    }
    })
})(jQuery);
(function (c) {
    c.widget("ui.autocomplete", { options: { appendTo: "body", delay: 300, minLength: 1, position: { my: "left top", at: "left bottom", collision: "none" }, source: null }, _create: function () {
        var a = this, b = this.element[0].ownerDocument; this.element.addClass("ui-autocomplete-input").attr("autocomplete", "off").attr({ role: "textbox", "aria-autocomplete": "list", "aria-haspopup": "true" }).bind("keydown.autocomplete", function (b) {
            if (!a.options.disabled) {
                var f = c.ui.keyCode; switch (b.keyCode) {
                    case f.PAGE_UP: a._move("previousPage",
b); break; case f.PAGE_DOWN: a._move("nextPage", b); break; case f.UP: a._move("previous", b); b.preventDefault(); break; case f.DOWN: a._move("next", b); b.preventDefault(); break; case f.ENTER: case f.NUMPAD_ENTER: a.menu.element.is(":visible") && b.preventDefault(); case f.TAB: if (!a.menu.active) break; a.menu.select(b); break; case f.ESCAPE: a.element.val(a.term); a.close(b); break; default: clearTimeout(a.searching), a.searching = setTimeout(function () { if (a.term != a.element.val()) a.selectedItem = null, a.search(null, b) }, a.options.delay)
                } 
            } 
        }).bind("focus.autocomplete",
function () { if (!a.options.disabled) a.selectedItem = null, a.previous = a.element.val() }).bind("blur.autocomplete", function (c) { if (!a.options.disabled) clearTimeout(a.searching), a.closing = setTimeout(function () { a.close(c); a._change(c) }, 150) }); this._initSource(); this.response = function () { return a._response.apply(a, arguments) }; this.menu = c("<ul></ul>").addClass("ui-autocomplete").appendTo(c(this.options.appendTo || "body", b)[0]).mousedown(function (b) {
    var f = a.menu.element[0]; b.target === f && setTimeout(function () {
        c(document).one("mousedown",
function (e) { e.target !== a.element[0] && e.target !== f && !c.ui.contains(f, e.target) && a.close() })
    }, 1); setTimeout(function () { clearTimeout(a.closing) }, 13)
}).menu({ focus: function (c, b) { var e = b.item.data("item.autocomplete"); !1 !== a._trigger("focus", null, { item: e }) && /^key/.test(c.originalEvent.type) && a.element.val(e.value) }, selected: function (c, f) {
    var e = f.item.data("item.autocomplete"), g = a.previous; if (a.element[0] !== b.activeElement) a.element.focus(), a.previous = g; if (!1 !== a._trigger("select", c, { item: e })) a.term = e.value,
a.element.val(e.value); a.close(c); a.selectedItem = e
}, blur: function () { a.menu.element.is(":visible") && a.element.val() !== a.term && a.element.val(a.term) } 
}).zIndex(this.element.zIndex() + 1).css({ top: 0, left: 0 }).hide().data("menu"); c.fn.bgiframe && this.menu.element.bgiframe()
    }, destroy: function () { this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup"); this.menu.element.remove(); c.Widget.prototype.destroy.call(this) },
        _setOption: function (a, b) { c.Widget.prototype._setOption.apply(this, arguments); a === "source" && this._initSource(); a === "appendTo" && this.menu.element.appendTo(c(b || "body", this.element[0].ownerDocument)[0]) }, _initSource: function () {
            var a = this, b, d; c.isArray(this.options.source) ? (b = this.options.source, this.source = function (a, e) { e(c.ui.autocomplete.filter(b, a.term)) }) : typeof this.options.source === "string" ? (d = this.options.source, this.source = function (b, e) {
                a.xhr && a.xhr.abort(); a.xhr = c.getJSON(d, b, function (c, b, d) {
                    d ===
a.xhr && e(c); a.xhr = null
                })
            }) : this.source = this.options.source
        }, search: function (c, b) { c = c != null ? c : this.element.val(); this.term = this.element.val(); if (c.length < this.options.minLength) return this.close(b); clearTimeout(this.closing); if (this._trigger("search") !== !1) return this._search(c) }, _search: function (c) { this.element.addClass("ui-autocomplete-loading"); this.source({ term: c }, this.response) }, _response: function (c) { c.length ? (c = this._normalize(c), this._suggest(c), this._trigger("open")) : this.close(); this.element.removeClass("ui-autocomplete-loading") },
        close: function (c) { clearTimeout(this.closing); this.menu.element.is(":visible") && (this._trigger("close", c), this.menu.element.hide(), this.menu.deactivate()) }, _change: function (c) { this.previous !== this.element.val() && this._trigger("change", c, { item: this.selectedItem }) }, _normalize: function (a) { if (a.length && a[0].label && a[0].value) return a; return c.map(a, function (a) { if (typeof a === "string") return { label: a, value: a }; return c.extend({ label: a.label || a.value, value: a.value || a.label }, a) }) }, _suggest: function (a) {
            var b =
this.menu.element.empty().zIndex(this.element.zIndex() + 1), d; this._renderMenu(b, a); this.menu.deactivate(); this.menu.refresh(); this.menu.element.show().position(c.extend({ of: this.element }, this.options.position)); a = b.width("").outerWidth(); d = this.element.outerWidth(); b.outerWidth(Math.max(a, d))
        }, _renderMenu: function (a, b) { var d = this; c.each(b, function (c, e) { d._renderItem(a, e) }) }, _renderItem: function (a, b) { return c("<li></li>").data("item.autocomplete", b).append(c("<a></a>").text(b.label)).appendTo(a) }, _move: function (c,
b) { if (this.menu.element.is(":visible")) if (this.menu.first() && /^previous/.test(c) || this.menu.last() && /^next/.test(c)) this.element.val(this.term), this.menu.deactivate(); else this.menu[c](b); else this.search(null, b) }, widget: function () { return this.menu.element } 
    }); c.extend(c.ui.autocomplete, { escapeRegex: function (c) { return c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&") }, filter: function (a, b) { var d = RegExp(c.ui.autocomplete.escapeRegex(b), "i"); return c.grep(a, function (c) { return d.test(c.label || c.value || c) }) } })
})(jQuery);
(function (c) {
    c.widget("ui.menu", { _create: function () { var a = this; this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({ role: "listbox", "aria-activedescendant": "ui-active-menuitem" }).click(function (b) { c(b.target).closest(".ui-menu-item a").length && (b.preventDefault(), a.select(b)) }); this.refresh() }, refresh: function () {
        var a = this; this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role", "menuitem").children("a").addClass("ui-corner-all").attr("tabindex",
-1).mouseenter(function (b) { a.activate(b, c(this).parent()) }).mouseleave(function () { a.deactivate() })
    }, activate: function (c, b) { this.deactivate(); if (this.hasScroll()) { var d = b.offset().top - this.element.offset().top, f = this.element.attr("scrollTop"), e = this.element.height(); d < 0 ? this.element.attr("scrollTop", f + d) : d >= e && this.element.attr("scrollTop", f + d - e + b.height()) } this.active = b.eq(0).children("a").addClass("ui-state-hover").attr("id", "ui-active-menuitem").end(); this._trigger("focus", c, { item: b }) }, deactivate: function () {
        if (this.active) this.active.children("a").removeClass("ui-state-hover").removeAttr("id"),
this._trigger("blur"), this.active = null
    }, next: function (c) { this.move("next", ".ui-menu-item:first", c) }, previous: function (c) { this.move("prev", ".ui-menu-item:last", c) }, first: function () { return this.active && !this.active.prevAll(".ui-menu-item").length }, last: function () { return this.active && !this.active.nextAll(".ui-menu-item").length }, move: function (c, b, d) { this.active ? (c = this.active[c + "All"](".ui-menu-item").eq(0), c.length ? this.activate(d, c) : this.activate(d, this.element.children(b))) : this.activate(d, this.element.children(b)) },
        nextPage: function (a) { if (this.hasScroll()) if (!this.active || this.last()) this.activate(a, this.element.children(":first")); else { var b = this.active.offset().top, d = this.element.height(), f = this.element.children("li").filter(function () { var a = c(this).offset().top - b - d + c(this).height(); return a < 10 && a > -10 }); f.length || (f = this.element.children(":last")); this.activate(a, f) } else this.activate(a, this.element.children(!this.active || this.last() ? ":first" : ":last")) }, previousPage: function (a) {
            if (this.hasScroll()) if (!this.active ||
this.first()) this.activate(a, this.element.children(":last")); else { var b = this.active.offset().top, d = this.element.height(); result = this.element.children("li").filter(function () { var a = c(this).offset().top - b + d - c(this).height(); return a < 10 && a > -10 }); result.length || (result = this.element.children(":first")); this.activate(a, result) } else this.activate(a, this.element.children(!this.active || this.first() ? ":last" : ":first"))
        }, hasScroll: function () { return this.element.height() < this.element.attr("scrollHeight") }, select: function (c) {
            this._trigger("selected",
c, { item: this.active })
        } 
    })
})(jQuery);
(function (c) {
    var a, b = function (a) { c(":ui-button", a.target.form).each(function () { var a = c(this).data("button"); setTimeout(function () { a.refresh() }, 1) }) }, d = function (a) { var e = a.name, b = a.form, d = c([]); e && (d = b ? c(b).find("[name='" + e + "']") : c("[name='" + e + "']", a.ownerDocument).filter(function () { return !this.form })); return d }; c.widget("ui.button", { options: { disabled: null, text: !0, label: null, icons: { primary: null, secondary: null} }, _create: function () {
        this.element.closest("form").unbind("reset.button").bind("reset.button", b);
        if (typeof this.options.disabled !== "boolean") this.options.disabled = this.element.attr("disabled"); this._determineButtonType(); this.hasTitle = !!this.buttonElement.attr("title"); var f = this, e = this.options, g = this.type === "checkbox" || this.type === "radio", h = "ui-state-hover" + (!g ? " ui-state-active" : ""); if (e.label === null) e.label = this.buttonElement.html(); if (this.element.is(":disabled")) e.disabled = !0; this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role", "button").bind("mouseenter.button",
function () { e.disabled || (c(this).addClass("ui-state-hover"), this === a && c(this).addClass("ui-state-active")) }).bind("mouseleave.button", function () { e.disabled || c(this).removeClass(h) }).bind("focus.button", function () { c(this).addClass("ui-state-focus") }).bind("blur.button", function () { c(this).removeClass("ui-state-focus") }); g && this.element.bind("change.button", function () { f.refresh() }); this.type === "checkbox" ? this.buttonElement.bind("click.button", function () {
    if (e.disabled) return !1; c(this).toggleClass("ui-state-active");
    f.buttonElement.attr("aria-pressed", f.element[0].checked)
}) : this.type === "radio" ? this.buttonElement.bind("click.button", function () { if (e.disabled) return !1; c(this).addClass("ui-state-active"); f.buttonElement.attr("aria-pressed", !0); var a = f.element[0]; d(a).not(a).map(function () { return c(this).button("widget")[0] }).removeClass("ui-state-active").attr("aria-pressed", !1) }) : (this.buttonElement.bind("mousedown.button", function () {
    if (e.disabled) return !1; c(this).addClass("ui-state-active"); a = this; c(document).one("mouseup",
function () { a = null })
}).bind("mouseup.button", function () { if (e.disabled) return !1; c(this).removeClass("ui-state-active") }).bind("keydown.button", function (a) { if (e.disabled) return !1; (a.keyCode == c.ui.keyCode.SPACE || a.keyCode == c.ui.keyCode.ENTER) && c(this).addClass("ui-state-active") }).bind("keyup.button", function () { c(this).removeClass("ui-state-active") }), this.buttonElement.is("a") && this.buttonElement.keyup(function (a) { a.keyCode === c.ui.keyCode.SPACE && c(this).click() })); this._setOption("disabled", e.disabled)
    },
        _determineButtonType: function () {
            this.type = this.element.is(":checkbox") ? "checkbox" : this.element.is(":radio") ? "radio" : this.element.is("input") ? "input" : "button"; if (this.type === "checkbox" || this.type === "radio") { this.buttonElement = this.element.parents().last().find("label[for=" + this.element.attr("id") + "]"); this.element.addClass("ui-helper-hidden-accessible"); var c = this.element.is(":checked"); c && this.buttonElement.addClass("ui-state-active"); this.buttonElement.attr("aria-pressed", c) } else this.buttonElement =
this.element
        }, widget: function () { return this.buttonElement }, destroy: function () {
            this.element.removeClass("ui-helper-hidden-accessible"); this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active  ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()); this.hasTitle ||
this.buttonElement.removeAttr("title"); c.Widget.prototype.destroy.call(this)
        }, _setOption: function (a, e) { c.Widget.prototype._setOption.apply(this, arguments); a === "disabled" && (e ? this.element.attr("disabled", !0) : this.element.removeAttr("disabled")); this._resetButton() }, refresh: function () {
            var a = this.element.is(":disabled"); a !== this.options.disabled && this._setOption("disabled", a); this.type === "radio" ? d(this.element[0]).each(function () {
                c(this).is(":checked") ? c(this).button("widget").addClass("ui-state-active").attr("aria-pressed",
!0) : c(this).button("widget").removeClass("ui-state-active").attr("aria-pressed", !1)
            }) : this.type === "checkbox" && (this.element.is(":checked") ? this.buttonElement.addClass("ui-state-active").attr("aria-pressed", !0) : this.buttonElement.removeClass("ui-state-active").attr("aria-pressed", !1))
        }, _resetButton: function () {
            if (this.type === "input") this.options.label && this.element.val(this.options.label); else {
                var a = this.buttonElement.removeClass("ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only"),
e = c("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(a.empty()).text(), b = this.options.icons, d = b.primary && b.secondary; b.primary || b.secondary ? (a.addClass("ui-button-text-icon" + (d ? "s" : b.primary ? "-primary" : "-secondary")), b.primary && a.prepend("<span class='ui-button-icon-primary ui-icon " + b.primary + "'></span>"), b.secondary && a.append("<span class='ui-button-icon-secondary ui-icon " + b.secondary + "'></span>"), this.options.text || (a.addClass(d ? "ui-button-icons-only" : "ui-button-icon-only").removeClass("ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary"),
this.hasTitle || a.attr("title", e))) : a.addClass("ui-button-text-only")
            } 
        } 
    }); c.widget("ui.buttonset", { _create: function () { this.element.addClass("ui-buttonset"); this._init() }, _init: function () { this.refresh() }, _setOption: function (a, e) { a === "disabled" && this.buttons.button("option", a, e); c.Widget.prototype._setOption.apply(this, arguments) }, refresh: function () { this.buttons = this.element.find(":button, :submit, :reset, :checkbox, :radio, a, :data(button)").filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function () { return c(this).button("widget")[0] }).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":visible").filter(":first").addClass("ui-corner-left").end().filter(":last").addClass("ui-corner-right").end().end().end() },
        destroy: function () { this.element.removeClass("ui-buttonset"); this.buttons.map(function () { return c(this).button("widget")[0] }).removeClass("ui-corner-left ui-corner-right").end().button("destroy"); c.Widget.prototype.destroy.call(this) } 
    })
})(jQuery);
(function(c, a) {
    function b() {
        this.debug = !1; this._curInst = null; this._keyEvent = !1; this._disabledInputs = []; this._inDialog = this._datepickerShowing = !1; this._mainDivId = "ui-datepicker-div"; this._inlineClass = "ui-datepicker-inline"; this._appendClass = "ui-datepicker-append"; this._triggerClass = "ui-datepicker-trigger"; this._dialogClass = "ui-datepicker-dialog"; this._disableClass = "ui-datepicker-disabled"; this._unselectableClass = "ui-datepicker-unselectable"; this._currentClass = "ui-datepicker-current-day"; this._dayOverClass =
"ui-datepicker-days-cell-over"; this.regional = []; this.regional[""] = { closeText: "Done", prevText: "Prev", nextText: "Next", currentText: "Today", monthNames: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], monthNamesShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], dayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], dayNamesShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], dayNamesMin: ["Su",
"Mo", "Tu", "We", "Th", "Fr", "Sa"], weekHeader: "Wk", dateFormat: "mm/dd/yy", firstDay: 0, isRTL: !1, showMonthAfterYear: !1, yearSuffix: ""
}; this._defaults = { showOn: "focus", showAnim: "fadeIn", showOptions: {}, defaultDate: null, appendText: "", buttonText: "...", buttonImage: "", buttonImageOnly: !1, hideIfNoPrevNext: !1, navigationAsDateFormat: !1, gotoCurrent: !1, changeMonth: !1, changeYear: !1, yearRange: "c-10:c+10", showOtherMonths: !1, selectOtherMonths: !1, showWeek: !1, calculateWeek: this.iso8601Week, shortYearCutoff: "+10", minDate: null,
    maxDate: null, duration: "fast", beforeShowDay: null, beforeShow: null, onSelect: null, onChangeMonthYear: null, onClose: null, numberOfMonths: 1, showCurrentAtPos: 0, stepMonths: 1, stepBigMonths: 12, altField: "", altFormat: "", constrainInput: !0, showButtonPanel: !1, autoSize: !1
}; c.extend(this._defaults, this.regional[""]); this.dpDiv = c('<div id="' + this._mainDivId + '" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"></div>')
    } function d(e, b) {
        c.extend(e, b); for (var d in b) if (b[d] ==
null || b[d] == a) e[d] = b[d]; return e
    } c.extend(c.ui, { datepicker: { version: "1.8.5"} }); var f = (new Date).getTime(); c.extend(b.prototype, { markerClassName: "hasDatepicker", log: function() { this.debug && console.log.apply("", arguments) }, _widgetDatepicker: function() { return this.dpDiv }, setDefaults: function(c) { d(this._defaults, c || {}); return this }, _attachDatepicker: function(a, b) {
        var d = null, f; for (f in this._defaults) { var j = a.getAttribute("date:" + f); if (j) { d = d || {}; try { d[f] = eval(j) } catch (k) { d[f] = j } } } f = a.nodeName.toLowerCase();
        j = f == "div" || f == "span"; if (!a.id) this.uuid += 1, a.id = "dp" + this.uuid; var l = this._newInst(c(a), j); l.settings = c.extend({}, b || {}, d || {}); f == "input" ? this._connectDatepicker(a, l) : j && this._inlineDatepicker(a, l)
    }, _newInst: function(a, b) { return { id: a[0].id.replace(/([^A-Za-z0-9_])/g, "\\\\$1"), input: a, selectedDay: 0, selectedMonth: 0, selectedYear: 0, drawMonth: 0, drawYear: 0, inline: b, dpDiv: !b ? this.dpDiv : c('<div class="' + this._inlineClass + ' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')} },
        _connectDatepicker: function(a, b) { var d = c(a); b.append = c([]); b.trigger = c([]); d.hasClass(this.markerClassName) || (this._attachments(d, b), d.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker", function(c, a, e) { b.settings[a] = e }).bind("getData.datepicker", function(c, a) { return this._get(b, a) }), this._autoSize(b), c.data(a, "datepicker", b)) }, _attachments: function(a, b) {
            var d = this._get(b, "appendText"), f = this._get(b, "isRTL"); b.append && b.append.remove();
            if (d) b.append = c('<span class="' + this._appendClass + '">' + d + "</span>"), a[f ? "before" : "after"](b.append); a.unbind("focus", this._showDatepicker); b.trigger && b.trigger.remove(); d = this._get(b, "showOn"); (d == "focus" || d == "both") && a.focus(this._showDatepicker); if (d == "button" || d == "both") {
                d = this._get(b, "buttonText"); var j = this._get(b, "buttonImage"); b.trigger = c(this._get(b, "buttonImageOnly") ? c("<img/>").addClass(this._triggerClass).attr({ src: j, alt: d, title: d }) : c('<button type="button"></button>').addClass(this._triggerClass).html(j ==
"" ? d : c("<img/>").attr({ src: j, alt: d, title: d }))); a[f ? "before" : "after"](b.trigger); b.trigger.click(function() { c.datepicker._datepickerShowing && c.datepicker._lastInput == a[0] ? c.datepicker._hideDatepicker() : c.datepicker._showDatepicker(a[0]); return !1 })
            }
        }, _autoSize: function(c) {
            if (this._get(c, "autoSize") && !c.inline) {
                var a = new Date(2009, 11, 20), b = this._get(c, "dateFormat"); if (b.match(/[DM]/)) {
                    var d = function(c) { for (var a = 0, b = 0, e = 0; e < c.length; e++) if (c[e].length > a) a = c[e].length, b = e; return b }; a.setMonth(d(this._get(c,
b.match(/MM/) ? "monthNames" : "monthNamesShort"))); a.setDate(d(this._get(c, b.match(/DD/) ? "dayNames" : "dayNamesShort")) + 20 - a.getDay())
                } c.input.attr("size", this._formatDate(c, a).length)
            }
        }, _inlineDatepicker: function(a, b) {
            var d = c(a); d.hasClass(this.markerClassName) || (d.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker", function(c, a, e) { b.settings[a] = e }).bind("getData.datepicker", function(c, a) { return this._get(b, a) }), c.data(a, "datepicker", b), this._setDate(b, this._getDefaultDate(b), !0),
this._updateDatepicker(b), this._updateAlternate(b))
        }, _dialogDatepicker: function(a, b, h, f, j) {
            a = this._dialogInst; if (!a) this.uuid += 1, this._dialogInput = c('<input type="text" id="dp' + this.uuid + '" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>'), this._dialogInput.keydown(this._doKeyDown), c("body").append(this._dialogInput), a = this._dialogInst = this._newInst(this._dialogInput, !1), a.settings = {}, c.data(this._dialogInput[0], "datepicker", a); d(a.settings, f || {}); b = b && b.constructor == Date ? this._formatDate(a,
b) : b; this._dialogInput.val(b); this._pos = j ? j.length ? j : [j.pageX, j.pageY] : null; if (!this._pos) this._pos = [document.documentElement.clientWidth / 2 - 100 + (document.documentElement.scrollLeft || document.body.scrollLeft), document.documentElement.clientHeight / 2 - 150 + (document.documentElement.scrollTop || document.body.scrollTop)]; this._dialogInput.css("left", this._pos[0] + 20 + "px").css("top", this._pos[1] + "px"); a.settings.onSelect = h; this._inDialog = !0; this.dpDiv.addClass(this._dialogClass); this._showDatepicker(this._dialogInput[0]);
            c.blockUI && c.blockUI(this.dpDiv); c.data(this._dialogInput[0], "datepicker", a); return this
        }, _destroyDatepicker: function(a) { var b = c(a), d = c.data(a, "datepicker"); if (b.hasClass(this.markerClassName)) { var f = a.nodeName.toLowerCase(); c.removeData(a, "datepicker"); f == "input" ? (d.append.remove(), d.trigger.remove(), b.removeClass(this.markerClassName).unbind("focus", this._showDatepicker).unbind("keydown", this._doKeyDown).unbind("keypress", this._doKeyPress).unbind("keyup", this._doKeyUp)) : (f == "div" || f == "span") && b.removeClass(this.markerClassName).empty() } },
        _enableDatepicker: function(a) { var b = c(a), d = c.data(a, "datepicker"); if (b.hasClass(this.markerClassName)) { var f = a.nodeName.toLowerCase(); f == "input" ? (a.disabled = !1, d.trigger.filter("button").each(function() { this.disabled = !1 }).end().filter("img").css({ opacity: "1.0", cursor: "" })) : (f == "div" || f == "span") && b.children("." + this._inlineClass).children().removeClass("ui-state-disabled"); this._disabledInputs = c.map(this._disabledInputs, function(c) { return c == a ? null : c }) } }, _disableDatepicker: function(a) {
            var b = c(a), d =
c.data(a, "datepicker"); if (b.hasClass(this.markerClassName)) { var f = a.nodeName.toLowerCase(); f == "input" ? (a.disabled = !0, d.trigger.filter("button").each(function() { this.disabled = !0 }).end().filter("img").css({ opacity: "0.5", cursor: "default" })) : (f == "div" || f == "span") && b.children("." + this._inlineClass).children().addClass("ui-state-disabled"); this._disabledInputs = c.map(this._disabledInputs, function(c) { return c == a ? null : c }); this._disabledInputs[this._disabledInputs.length] = a }
        }, _isDisabledDatepicker: function(c) {
            if (!c) return !1;
            for (var a = 0; a < this._disabledInputs.length; a++) if (this._disabledInputs[a] == c) return !0; return !1
        }, _getInst: function(a) { try { return c.data(a, "datepicker") } catch (b) { throw "Missing instance data for this datepicker"; } }, _optionDatepicker: function(a, b, h) {
            var f = this._getInst(a); if (arguments.length == 2 && typeof b == "string") return b == "defaults" ? c.extend({}, c.datepicker._defaults) : f ? b == "all" ? c.extend({}, f.settings) : this._get(f, b) : null; var j = b || {}; typeof b == "string" && (j = {}, j[b] = h); if (f) {
                this._curInst == f && this._hideDatepicker();
                var k = this._getDateDatepicker(a, !0); d(f.settings, j); this._attachments(c(a), f); this._autoSize(f); this._setDateDatepicker(a, k); this._updateDatepicker(f)
            }
        }, _changeDatepicker: function(c, a, b) { this._optionDatepicker(c, a, b) }, _refreshDatepicker: function(c) { (c = this._getInst(c)) && this._updateDatepicker(c) }, _setDateDatepicker: function(c, a) { var b = this._getInst(c); b && (this._setDate(b, a), this._updateDatepicker(b), this._updateAlternate(b)) }, _getDateDatepicker: function(c, a) {
            var b = this._getInst(c); b && !b.inline && this._setDateFromField(b,
a); return b ? this._getDate(b) : null
        }, _doKeyDown: function(a) {
            var b = c.datepicker._getInst(a.target), d = !0, f = b.dpDiv.is(".ui-datepicker-rtl"); b._keyEvent = !0; if (c.datepicker._datepickerShowing) switch (a.keyCode) {
                case 9: c.datepicker._hideDatepicker(); d = !1; break; case 13: return d = c("td." + c.datepicker._dayOverClass, b.dpDiv).add(c("td." + c.datepicker._currentClass, b.dpDiv)), d[0] ? c.datepicker._selectDay(a.target, b.selectedMonth, b.selectedYear, d[0]) : c.datepicker._hideDatepicker(), !1; case 27: c.datepicker._hideDatepicker();
                    break; case 33: c.datepicker._adjustDate(a.target, a.ctrlKey ? -c.datepicker._get(b, "stepBigMonths") : -c.datepicker._get(b, "stepMonths"), "M"); break; case 34: c.datepicker._adjustDate(a.target, a.ctrlKey ? +c.datepicker._get(b, "stepBigMonths") : +c.datepicker._get(b, "stepMonths"), "M"); break; case 35: (a.ctrlKey || a.metaKey) && c.datepicker._clearDate(a.target); d = a.ctrlKey || a.metaKey; break; case 36: (a.ctrlKey || a.metaKey) && c.datepicker._gotoToday(a.target); d = a.ctrlKey || a.metaKey; break; case 37: if (a.ctrlKey || a.metaKey) c.datepicker._adjustDate(a.target,
f ? 1 : -1, "D"); d = a.ctrlKey || a.metaKey; a.originalEvent.altKey && c.datepicker._adjustDate(a.target, a.ctrlKey ? -c.datepicker._get(b, "stepBigMonths") : -c.datepicker._get(b, "stepMonths"), "M"); break; case 38: (a.ctrlKey || a.metaKey) && c.datepicker._adjustDate(a.target, -7, "D"); d = a.ctrlKey || a.metaKey; break; case 39: if (a.ctrlKey || a.metaKey) c.datepicker._adjustDate(a.target, f ? -1 : 1, "D"); d = a.ctrlKey || a.metaKey; a.originalEvent.altKey && c.datepicker._adjustDate(a.target, a.ctrlKey ? +c.datepicker._get(b, "stepBigMonths") : +c.datepicker._get(b,
"stepMonths"), "M"); break; case 40: (a.ctrlKey || a.metaKey) && c.datepicker._adjustDate(a.target, 7, "D"); d = a.ctrlKey || a.metaKey; break; default: d = !1
            } else a.keyCode == 36 && a.ctrlKey ? c.datepicker._showDatepicker(this) : d = !1; d && (a.preventDefault(), a.stopPropagation())
        }, _doKeyPress: function(b) {
            var d = c.datepicker._getInst(b.target); if (c.datepicker._get(d, "constrainInput")) {
                d = c.datepicker._possibleChars(c.datepicker._get(d, "dateFormat")); var h = String.fromCharCode(b.charCode == a ? b.keyCode : b.charCode); return b.ctrlKey ||
h < " " || !d || d.indexOf(h) > -1
            }
        }, _doKeyUp: function(a) { a = c.datepicker._getInst(a.target); if (a.input.val() != a.lastVal) try { if (c.datepicker.parseDate(c.datepicker._get(a, "dateFormat"), a.input ? a.input.val() : null, c.datepicker._getFormatConfig(a))) c.datepicker._setDateFromField(a), c.datepicker._updateAlternate(a), c.datepicker._updateDatepicker(a) } catch (b) { c.datepicker.log(b) } return !0 }, _showDatepicker: function(a) {
            a = a.target || a; a.nodeName.toLowerCase() != "input" && (a = c("input", a.parentNode)[0]); if (!(c.datepicker._isDisabledDatepicker(a) ||
c.datepicker._lastInput == a)) {
                var b = c.datepicker._getInst(a); c.datepicker._curInst && c.datepicker._curInst != b && c.datepicker._curInst.dpDiv.stop(!0, !0); var h = c.datepicker._get(b, "beforeShow"); d(b.settings, h ? h.apply(a, [a, b]) : {}); b.lastVal = null; c.datepicker._lastInput = a; c.datepicker._setDateFromField(b); if (c.datepicker._inDialog) a.value = ""; if (!c.datepicker._pos) c.datepicker._pos = c.datepicker._findPos(a), c.datepicker._pos[1] += a.offsetHeight; var f = !1; c(a).parents().each(function() {
                    f |= c(this).css("position") ==
"fixed"; return !f
                }); f && c.browser.opera && (c.datepicker._pos[0] -= document.documentElement.scrollLeft, c.datepicker._pos[1] -= document.documentElement.scrollTop); h = { left: c.datepicker._pos[0], top: c.datepicker._pos[1] }; c.datepicker._pos = null; b.dpDiv.css({ position: "absolute", display: "block", top: "-1000px" }); c.datepicker._updateDatepicker(b); h = c.datepicker._checkOffset(b, h, f); b.dpDiv.css({ position: c.datepicker._inDialog && c.blockUI ? "static" : f ? "fixed" : "absolute", display: "none", left: h.left + "px", top: h.top + "px" });
                if (!b.inline) {
                    h = c.datepicker._get(b, "showAnim"); var j = c.datepicker._get(b, "duration"), k = function() { c.datepicker._datepickerShowing = !0; var a = c.datepicker._getBorders(b.dpDiv); b.dpDiv.find("iframe.ui-datepicker-cover").css({ left: -a[0], top: -a[1], width: b.dpDiv.outerWidth(), height: b.dpDiv.outerHeight() }) }; b.dpDiv.css("z-index", c(a).css("z-index") + 1); if (c.effects && c.effects[h]) b.dpDiv.show(h, c.datepicker._get(b, "showOptions"), j, k); else b.dpDiv[h || "show"](h ? j : null, k); (!h || !j) && k(); b.input.is(":visible") && !b.input.is(":disabled") &&
b.input.focus(); c.datepicker._curInst = b
                }
            }
        }, _updateDatepicker: function(a) {
            var b = this, d = c.datepicker._getBorders(a.dpDiv); a.dpDiv.empty().append(this._generateHTML(a)).find("iframe.ui-datepicker-cover").css({ left: -d[0], top: -d[1], width: a.dpDiv.outerWidth(), height: a.dpDiv.outerHeight() }).end().find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout", function() {
                c(this).removeClass("ui-state-hover"); this.className.indexOf("ui-datepicker-prev") != -1 && c(this).removeClass("ui-datepicker-prev-hover");
                this.className.indexOf("ui-datepicker-next") != -1 && c(this).removeClass("ui-datepicker-next-hover")
            }).bind("mouseover", function() { if (!b._isDisabledDatepicker(a.inline ? a.dpDiv.parent()[0] : a.input[0])) c(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"), c(this).addClass("ui-state-hover"), this.className.indexOf("ui-datepicker-prev") != -1 && c(this).addClass("ui-datepicker-prev-hover"), this.className.indexOf("ui-datepicker-next") != -1 && c(this).addClass("ui-datepicker-next-hover") }).end().find("." +
this._dayOverClass + " a").trigger("mouseover").end(); d = this._getNumberOfMonths(a); var f = d[1]; f > 1 ? a.dpDiv.addClass("ui-datepicker-multi-" + f).css("width", 17 * f + "em") : a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""); a.dpDiv[(d[0] != 1 || d[1] != 1 ? "add" : "remove") + "Class"]("ui-datepicker-multi"); a.dpDiv[(this._get(a, "isRTL") ? "add" : "remove") + "Class"]("ui-datepicker-rtl"); a == c.datepicker._curInst && c.datepicker._datepickerShowing && a.input && a.input.is(":visible") &&
!a.input.is(":disabled") && a.input.focus()
        }, _getBorders: function(a) { var c = function(a) { return { thin: 1, medium: 2, thick: 3}[a] || a }; return [parseFloat(c(a.css("border-left-width"))), parseFloat(c(a.css("border-top-width")))] }, _checkOffset: function(a, b, d) {
            var f = a.dpDiv.outerWidth(), j = a.dpDiv.outerHeight(), k = a.input ? a.input.outerWidth() : 0, l = a.input ? a.input.outerHeight() : 0, m = document.documentElement.clientWidth + c(document).scrollLeft(), o = document.documentElement.clientHeight + c(document).scrollTop(); b.left -= this._get(a,
"isRTL") ? f - k : 0; b.left -= d && b.left == a.input.offset().left ? c(document).scrollLeft() : 0; b.top -= d && b.top == a.input.offset().top + l ? c(document).scrollTop() : 0; b.left -= Math.min(b.left, b.left + f > m && m > f ? Math.abs(b.left + f - m) : 0); b.top -= Math.min(b.top, b.top + j > o && o > j ? Math.abs(j + l) : 0); return b
        }, _findPos: function(a) { for (var b = this._get(this._getInst(a), "isRTL"); a && (a.type == "hidden" || a.nodeType != 1); ) a = a[b ? "previousSibling" : "nextSibling"]; a = c(a).offset(); return [a.left, a.top] }, _hideDatepicker: function(a) {
            var b = this._curInst;
            if (b && !(a && b != c.data(a, "datepicker")) && this._datepickerShowing) {
                a = this._get(b, "showAnim"); var d = this._get(b, "duration"), f = function() { c.datepicker._tidyDialog(b); this._curInst = null }; if (c.effects && c.effects[a]) b.dpDiv.hide(a, c.datepicker._get(b, "showOptions"), d, f); else b.dpDiv[a == "slideDown" ? "slideUp" : a == "fadeIn" ? "fadeOut" : "hide"](a ? d : null, f); a || f(); (a = this._get(b, "onClose")) && a.apply(b.input ? b.input[0] : null, [b.input ? b.input.val() : "", b]); this._datepickerShowing = !1; this._lastInput = null; this._inDialog &&
(this._dialogInput.css({ position: "absolute", left: "0", top: "-100px" }), c.blockUI && (c.unblockUI(), c("body").append(this.dpDiv))); this._inDialog = !1
            }
        }, _tidyDialog: function(a) { a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar") }, _checkExternalClick: function(a) {
            c.datepicker._curInst && (a = c(a.target), a[0].id != c.datepicker._mainDivId && a.parents("#" + c.datepicker._mainDivId).length == 0 && !a.hasClass(c.datepicker.markerClassName) && !a.hasClass(c.datepicker._triggerClass) && c.datepicker._datepickerShowing &&
(!c.datepicker._inDialog || !c.blockUI) && c.datepicker._hideDatepicker())
        }, _adjustDate: function(a, b, d) { a = c(a); var f = this._getInst(a[0]); this._isDisabledDatepicker(a[0]) || (this._adjustInstDate(f, b + (d == "M" ? this._get(f, "showCurrentAtPos") : 0), d), this._updateDatepicker(f)) }, _gotoToday: function(a) {
            a = c(a); var b = this._getInst(a[0]); if (this._get(b, "gotoCurrent") && b.currentDay) b.selectedDay = b.currentDay, b.drawMonth = b.selectedMonth = b.currentMonth, b.drawYear = b.selectedYear = b.currentYear; else {
                var d = new Date; b.selectedDay =
d.getDate(); b.drawMonth = b.selectedMonth = d.getMonth(); b.drawYear = b.selectedYear = d.getFullYear()
            } this._notifyChange(b); this._adjustDate(a)
        }, _selectMonthYear: function(a, b, d) { a = c(a); var f = this._getInst(a[0]); f._selectingMonthYear = !1; f["selected" + (d == "M" ? "Month" : "Year")] = f["draw" + (d == "M" ? "Month" : "Year")] = parseInt(b.options[b.selectedIndex].value, 10); this._notifyChange(f); this._adjustDate(a) }, _clickMonthYear: function(a) {
            var b = this._getInst(c(a)[0]); b.input && b._selectingMonthYear && setTimeout(function() { b.input.focus() },
0); b._selectingMonthYear = !b._selectingMonthYear
        }, _selectDay: function(a, b, d, f) { var j = c(a); if (!c(f).hasClass(this._unselectableClass) && !this._isDisabledDatepicker(j[0])) j = this._getInst(j[0]), j.selectedDay = j.currentDay = c("a", f).html(), j.selectedMonth = j.currentMonth = b, j.selectedYear = j.currentYear = d, this._selectDate(a, this._formatDate(j, j.currentDay, j.currentMonth, j.currentYear)) }, _clearDate: function(a) { a = c(a); this._getInst(a[0]); this._selectDate(a, "") }, _selectDate: function(a, b) {
            var d = this._getInst(c(a)[0]);
            b = b != null ? b : this._formatDate(d); d.input && d.input.val(b); this._updateAlternate(d); var f = this._get(d, "onSelect"); f ? f.apply(d.input ? d.input[0] : null, [b, d]) : d.input && d.input.trigger("change"); d.inline ? this._updateDatepicker(d) : (this._hideDatepicker(), this._lastInput = d.input[0], typeof d.input[0] != "object" && d.input.focus(), this._lastInput = null)
        }, _updateAlternate: function(a) {
            var b = this._get(a, "altField"); if (b) {
                var d = this._get(a, "altFormat") || this._get(a, "dateFormat"), f = this._getDate(a), j = this.formatDate(d,
f, this._getFormatConfig(a)); c(b).each(function() { c(this).val(j) })
            }
        }, noWeekends: function(a) { a = a.getDay(); return [a > 0 && a < 6, ""] }, iso8601Week: function(a) { a = new Date(a.getTime()); a.setDate(a.getDate() + 4 - (a.getDay() || 7)); var c = a.getTime(); a.setMonth(0); a.setDate(1); return Math.floor(Math.round((c - a) / 864E5) / 7) + 1 }, parseDate: function(a, c, b) {
            if (a == null || c == null) throw "Invalid arguments"; c = typeof c == "object" ? c.toString() : c + ""; if (c == "") return null; for (var d = (b ? b.shortYearCutoff : null) || this._defaults.shortYearCutoff,
f = (b ? b.dayNamesShort : null) || this._defaults.dayNamesShort, k = (b ? b.dayNames : null) || this._defaults.dayNames, l = (b ? b.monthNamesShort : null) || this._defaults.monthNamesShort, m = (b ? b.monthNames : null) || this._defaults.monthNames, o = b = -1, n = -1, s = -1, p = !1, v = function(b) { (b = B + 1 < a.length && a.charAt(B + 1) == b) && B++; return b }, q = function(a) { v(a); a = c.substring(y).match(RegExp("^\\d{1," + (a == "@" ? 14 : a == "!" ? 20 : a == "y" ? 4 : a == "o" ? 3 : 2) + "}")); if (!a) throw "Missing number at position " + y; y += a[0].length; return parseInt(a[0], 10) }, u = function(a,
b, e) { a = v(a) ? e : b; for (b = 0; b < a.length; b++) if (c.substr(y, a[b].length).toLowerCase() == a[b].toLowerCase()) return y += a[b].length, b + 1; throw "Unknown name at position " + y; }, r = function() { if (c.charAt(y) != a.charAt(B)) throw "Unexpected literal at position " + y; y++ }, y = 0, B = 0; B < a.length; B++) if (p) a.charAt(B) == "'" && !v("'") ? p = !1 : r(); else switch (a.charAt(B)) {
                case "d": n = q("d"); break; case "D": u("D", f, k); break; case "o": s = q("o"); break; case "m": o = q("m"); break; case "M": o = u("M", l, m); break; case "y": b = q("y"); break; case "@": var z =
new Date(q("@")); b = z.getFullYear(); o = z.getMonth() + 1; n = z.getDate(); break; case "!": z = new Date((q("!") - this._ticksTo1970) / 1E4); b = z.getFullYear(); o = z.getMonth() + 1; n = z.getDate(); break; case "'": v("'") ? r() : p = !0; break; default: r()
            } b == -1 ? b = (new Date).getFullYear() : b < 100 && (b += (new Date).getFullYear() - (new Date).getFullYear() % 100 + (b <= d ? 0 : -100)); if (s > -1) { o = 1; n = s; do { d = this._getDaysInMonth(b, o - 1); if (n <= d) break; o++; n -= d } while (1) } z = this._daylightSavingAdjust(new Date(b, o - 1, n)); if (z.getFullYear() != b || z.getMonth() +
1 != o || z.getDate() != n) throw "Invalid date"; return z
        }, ATOM: "yy-mm-dd", COOKIE: "D, dd M yy", ISO_8601: "yy-mm-dd", RFC_822: "D, d M y", RFC_850: "DD, dd-M-y", RFC_1036: "D, d M y", RFC_1123: "D, d M yy", RFC_2822: "D, d M yy", RSS: "D, d M y", TICKS: "!", TIMESTAMP: "@", W3C: "yy-mm-dd", _ticksTo1970: (718685 + Math.floor(492.5) - Math.floor(19.7) + Math.floor(4.925)) * 864E9, formatDate: function(a, b, c) {
            if (!b) return ""; var d = (c ? c.dayNamesShort : null) || this._defaults.dayNamesShort, f = (c ? c.dayNames : null) || this._defaults.dayNames, k = (c ? c.monthNamesShort :
null) || this._defaults.monthNamesShort; c = (c ? c.monthNames : null) || this._defaults.monthNames; var l = function(b) { (b = p + 1 < a.length && a.charAt(p + 1) == b) && p++; return b }, m = function(a, b, c) { b = "" + b; if (l(a)) for (; b.length < c; ) b = "0" + b; return b }, o = function(a, b, c, e) { return l(a) ? e[b] : c[b] }, n = "", s = !1; if (b) for (var p = 0; p < a.length; p++) if (s) a.charAt(p) == "'" && !l("'") ? s = !1 : n += a.charAt(p); else switch (a.charAt(p)) {
                case "d": n += m("d", b.getDate(), 2); break; case "D": n += o("D", b.getDay(), d, f); break; case "o": n += m("o", (b.getTime() - (new Date(b.getFullYear(),
0, 0)).getTime()) / 864E5, 3); break; case "m": n += m("m", b.getMonth() + 1, 2); break; case "M": n += o("M", b.getMonth(), k, c); break; case "y": n += l("y") ? b.getFullYear() : (b.getYear() % 100 < 10 ? "0" : "") + b.getYear() % 100; break; case "@": n += b.getTime(); break; case "!": n += b.getTime() * 1E4 + this._ticksTo1970; break; case "'": l("'") ? n += "'" : s = !0; break; default: n += a.charAt(p)
            } return n
        }, _possibleChars: function(a) {
            for (var b = "", c = !1, d = function(b) { (b = f + 1 < a.length && a.charAt(f + 1) == b) && f++; return b }, f = 0; f < a.length; f++) if (c) a.charAt(f) == "'" &&
!d("'") ? c = !1 : b += a.charAt(f); else switch (a.charAt(f)) { case "d": case "m": case "y": case "@": b += "0123456789"; break; case "D": case "M": return null; case "'": d("'") ? b += "'" : c = !0; break; default: b += a.charAt(f) } return b
        }, _get: function(b, c) { return b.settings[c] !== a ? b.settings[c] : this._defaults[c] }, _setDateFromField: function(a, b) {
            if (a.input.val() != a.lastVal) {
                var c = this._get(a, "dateFormat"), d = a.lastVal = a.input ? a.input.val() : null, f, k; f = k = this._getDefaultDate(a); var l = this._getFormatConfig(a); try {
                    f = this.parseDate(c,
d, l) || k
                } catch (m) { this.log(m), d = b ? "" : d } a.selectedDay = f.getDate(); a.drawMonth = a.selectedMonth = f.getMonth(); a.drawYear = a.selectedYear = f.getFullYear(); a.currentDay = d ? f.getDate() : 0; a.currentMonth = d ? f.getMonth() : 0; a.currentYear = d ? f.getFullYear() : 0; this._adjustInstDate(a)
            }
        }, _getDefaultDate: function(a) { return this._restrictMinMax(a, this._determineDate(a, this._get(a, "defaultDate"), new Date)) }, _determineDate: function(a, b, d) {
            var f = function(a) { var b = new Date; b.setDate(b.getDate() + a); return b }; if (b = (b = b == null ?
d : typeof b == "string" ? function(b) {
    try { return c.datepicker.parseDate(c.datepicker._get(a, "dateFormat"), b, c.datepicker._getFormatConfig(a)) } catch (d) { } var g = (b.toLowerCase().match(/^c/) ? c.datepicker._getDate(a) : null) || new Date, f = g.getFullYear(), h = g.getMonth(); g = g.getDate(); for (var i = /([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g, s = i.exec(b); s; ) {
        switch (s[2] || "d") {
            case "d": case "D": g += parseInt(s[1], 10); break; case "w": case "W": g += parseInt(s[1], 10) * 7; break; case "m": case "M": h += parseInt(s[1], 10); g = Math.min(g, c.datepicker._getDaysInMonth(f,
h)); break; case "y": case "Y": f += parseInt(s[1], 10), g = Math.min(g, c.datepicker._getDaysInMonth(f, h))
        } s = i.exec(b)
    } return new Date(f, h, g)
} (b) : typeof b == "number" ? isNaN(b) ? d : f(b) : b) && b.toString() == "Invalid Date" ? d : b) b.setHours(0), b.setMinutes(0), b.setSeconds(0), b.setMilliseconds(0); return this._daylightSavingAdjust(b)
        }, _daylightSavingAdjust: function(a) { if (!a) return null; a.setHours(a.getHours() > 12 ? a.getHours() + 2 : 0); return a }, _setDate: function(a, b, c) {
            var d = !b, f = a.selectedMonth, k = a.selectedYear; b = this._restrictMinMax(a,
this._determineDate(a, b, new Date)); a.selectedDay = a.currentDay = b.getDate(); a.drawMonth = a.selectedMonth = a.currentMonth = b.getMonth(); a.drawYear = a.selectedYear = a.currentYear = b.getFullYear(); (f != a.selectedMonth || k != a.selectedYear) && !c && this._notifyChange(a); this._adjustInstDate(a); a.input && a.input.val(d ? "" : this._formatDate(a))
        }, _getDate: function(a) { return !a.currentYear || a.input && a.input.val() == "" ? null : this._daylightSavingAdjust(new Date(a.currentYear, a.currentMonth, a.currentDay)) }, _generateHTML: function(a) {
            var b =
new Date; b = this._daylightSavingAdjust(new Date(b.getFullYear(), b.getMonth(), b.getDate())); var d = this._get(a, "isRTL"), i = this._get(a, "showButtonPanel"), j = this._get(a, "hideIfNoPrevNext"), k = this._get(a, "navigationAsDateFormat"), l = this._getNumberOfMonths(a), m = this._get(a, "showCurrentAtPos"), o = this._get(a, "stepMonths"), n = l[0] != 1 || l[1] != 1, s = this._daylightSavingAdjust(!a.currentDay ? new Date(9999, 9, 9) : new Date(a.currentYear, a.currentMonth, a.currentDay)), p = this._getMinMaxDate(a, "min"), v = this._getMinMaxDate(a,
"max"); m = a.drawMonth - m; var q = a.drawYear; m < 0 && (m += 12, q--); if (v) { var u = this._daylightSavingAdjust(new Date(v.getFullYear(), v.getMonth() - l[0] * l[1] + 1, v.getDate())); for (u = p && u < p ? p : u; this._daylightSavingAdjust(new Date(q, m, 1)) > u; ) m--, m < 0 && (m = 11, q--) } a.drawMonth = m; a.drawYear = q; u = this._get(a, "prevText"); u = !k ? u : this.formatDate(u, this._daylightSavingAdjust(new Date(q, m - o, 1)), this._getFormatConfig(a)); u = this._canAdjustMonth(a, -1, q, m) ? '<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_' + f + ".datepicker._adjustDate('#" +
a.id + "', -" + o + ", 'M');\" title=\"" + u + '"><span class="ui-icon ui-icon-circle-triangle-' + (d ? "e" : "w") + '">' + u + "</span></a>" : j ? "" : '<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="' + u + '"><span class="ui-icon ui-icon-circle-triangle-' + (d ? "e" : "w") + '">' + u + "</span></a>"; var r = this._get(a, "nextText"); r = !k ? r : this.formatDate(r, this._daylightSavingAdjust(new Date(q, m + o, 1)), this._getFormatConfig(a)); j = this._canAdjustMonth(a, 1, q, m) ? '<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_' +
f + ".datepicker._adjustDate('#" + a.id + "', +" + o + ", 'M');\" title=\"" + r + '"><span class="ui-icon ui-icon-circle-triangle-' + (d ? "w" : "e") + '">' + r + "</span></a>" : j ? "" : '<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="' + r + '"><span class="ui-icon ui-icon-circle-triangle-' + (d ? "w" : "e") + '">' + r + "</span></a>"; o = this._get(a, "currentText"); r = this._get(a, "gotoCurrent") && a.currentDay ? s : b; o = !k ? o : this.formatDate(o, r, this._getFormatConfig(a)); k = !a.inline ? '<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_' +
f + '.datepicker._hideDatepicker();">' + this._get(a, "closeText") + "</button>" : ""; i = i ? '<div class="ui-datepicker-buttonpane ui-widget-content">' + (d ? k : "") + (this._isInRange(a, r) ? '<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_' + f + ".datepicker._gotoToday('#" + a.id + "');\">" + o + "</button>" : "") + (d ? "" : k) + "</div>" : ""; k = parseInt(this._get(a, "firstDay"), 10); k = isNaN(k) ? 0 : k; o = this._get(a, "showWeek"); r = this._get(a, "dayNames"); this._get(a, "dayNamesShort");
            var y = this._get(a, "dayNamesMin"), B = this._get(a, "monthNames"), z = this._get(a, "monthNamesShort"), L = this._get(a, "beforeShowDay"), H = this._get(a, "showOtherMonths"), Q = this._get(a, "selectOtherMonths"); this._get(a, "calculateWeek"); for (var M = this._getDefaultDate(a), I = "", E = 0; E < l[0]; E++) {
                for (var N = "", F = 0; F < l[1]; F++) {
                    var J = this._daylightSavingAdjust(new Date(q, m, a.selectedDay)), x = " ui-corner-all", A = ""; if (n) {
                        A += '<div class="ui-datepicker-group'; if (l[1] > 1) switch (F) {
                            case 0: A += " ui-datepicker-group-first"; x = " ui-corner-" +
(d ? "right" : "left"); break; case l[1] - 1: A += " ui-datepicker-group-last"; x = " ui-corner-" + (d ? "left" : "right"); break; default: A += " ui-datepicker-group-middle", x = ""
                        } A += '">'
                    } A += '<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix' + x + '">' + (/all|left/.test(x) && E == 0 ? d ? j : u : "") + (/all|right/.test(x) && E == 0 ? d ? u : j : "") + this._generateMonthYearHeader(a, m, q, p, v, E > 0 || F > 0, B, z) + '</div><table class="ui-datepicker-calendar"><thead><tr>'; var C = o ? '<th class="ui-datepicker-week-col">' + this._get(a, "weekHeader") +
"</th>" : ""; for (x = 0; x < 7; x++) { var w = (x + k) % 7; C += "<th" + ((x + k + 6) % 7 >= 5 ? ' class="ui-datepicker-week-end"' : "") + '><span title="' + r[w] + '">' + y[w] + "</span></th>" } A += C + "</tr></thead><tbody>"; C = this._getDaysInMonth(q, m); if (q == a.selectedYear && m == a.selectedMonth) a.selectedDay = Math.min(a.selectedDay, C); x = (this._getFirstDayOfMonth(q, m) - k + 7) % 7; C = n ? 6 : Math.ceil((x + C) / 7); w = this._daylightSavingAdjust(new Date(q, m, 1 - x)); for (var O = 0; O < C; O++) {
                        A += "<tr>"; var P = !o ? "" : '<td class="ui-datepicker-week-col">' + this._get(a, "calculateWeek")(w) +
"</td>"; for (x = 0; x < 7; x++) {
                            var G = L ? L.apply(a.input ? a.input[0] : null, [w]) : [!0, ""], D = w.getMonth() != m, K = D && !Q || !G[0] || p && w < p || v && w > v; P += '<td class="' + ((x + k + 6) % 7 >= 5 ? " ui-datepicker-week-end" : "") + (D ? " ui-datepicker-other-month" : "") + (w.getTime() == J.getTime() && m == a.selectedMonth && a._keyEvent || M.getTime() == w.getTime() && M.getTime() == J.getTime() ? " " + this._dayOverClass : "") + (K ? " " + this._unselectableClass + " ui-state-disabled" : "") + (D && !H ? "" : " " + G[1] + (w.getTime() == s.getTime() ? " " + this._currentClass : "") + (w.getTime() ==
b.getTime() ? " ui-datepicker-today" : "")) + '"' + ((!D || H) && G[2] ? ' title="' + G[2] + '"' : "") + (K ? "" : ' onclick="DP_jQuery_' + f + ".datepicker._selectDay('#" + a.id + "'," + w.getMonth() + "," + w.getFullYear() + ', this);return false;"') + ">" + (D && !H ? "&#xa0;" : K ? '<span class="ui-state-default">' + w.getDate() + "</span>" : '<a class="ui-state-default' + (w.getTime() == b.getTime() ? " ui-state-highlight" : "") + (w.getTime() == J.getTime() ? " ui-state-active" : "") + (D ? " ui-priority-secondary" : "") + '" href="#">' + w.getDate() + "</a>") + "</td>"; w.setDate(w.getDate() +
1); w = this._daylightSavingAdjust(w)
                        } A += P + "</tr>"
                    } m++; m > 11 && (m = 0, q++); A += "</tbody></table>" + (n ? "</div>" + (l[0] > 0 && F == l[1] - 1 ? '<div class="ui-datepicker-row-break"></div>' : "") : ""); N += A
                } I += N
            } I += i + (c.browser.msie && parseInt(c.browser.version, 10) < 7 && !a.inline ? '<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>' : ""); a._keyEvent = !1; return I
        }, _generateMonthYearHeader: function(a, b, c, d, j, k, l, m) {
            var o = this._get(a, "changeMonth"), n = this._get(a, "changeYear"), s = this._get(a, "showMonthAfterYear"),
p = '<div class="ui-datepicker-title">', v = ""; if (k || !o) v += '<span class="ui-datepicker-month">' + l[b] + "</span>"; else {
                l = d && d.getFullYear() == c; var q = j && j.getFullYear() == c; v += '<select class="ui-datepicker-month" onchange="DP_jQuery_' + f + ".datepicker._selectMonthYear('#" + a.id + "', this, 'M');\" onclick=\"DP_jQuery_" + f + ".datepicker._clickMonthYear('#" + a.id + "');\">"; for (var u = 0; u < 12; u++) if ((!l || u >= d.getMonth()) && (!q || u <= j.getMonth())) v += '<option value="' + u + '"' + (u == b ? ' selected="selected"' : "") + ">" + m[u] + "</option>";
                v += "</select>"
            } s || (p += v + (k || !o || !n ? "&#xa0;" : "")); if (k || !n) p += '<span class="ui-datepicker-year">' + c + "</span>"; else {
                m = this._get(a, "yearRange").split(":"); var r = (new Date).getFullYear(); l = function(a) { a = a.match(/c[+-].*/) ? c + parseInt(a.substring(1), 10) : a.match(/[+-].*/) ? r + parseInt(a, 10) : parseInt(a, 10); return isNaN(a) ? r : a }; b = l(m[0]); m = Math.max(b, l(m[1] || "")); b = d ? Math.max(b, d.getFullYear()) : b; m = j ? Math.min(m, j.getFullYear()) : m; for (p += '<select class="ui-datepicker-year" onchange="DP_jQuery_' + f + ".datepicker._selectMonthYear('#" +
a.id + "', this, 'Y');\" onclick=\"DP_jQuery_" + f + ".datepicker._clickMonthYear('#" + a.id + "');\">"; b <= m; b++) p += '<option value="' + b + '"' + (b == c ? ' selected="selected"' : "") + ">" + b + "</option>"; p += "</select>"
            } p += this._get(a, "yearSuffix"); s && (p += (k || !o || !n ? "&#xa0;" : "") + v); p += "</div>"; return p
        }, _adjustInstDate: function(a, b, c) {
            var d = a.drawYear + (c == "Y" ? b : 0), f = a.drawMonth + (c == "M" ? b : 0); b = Math.min(a.selectedDay, this._getDaysInMonth(d, f)) + (c == "D" ? b : 0); d = this._restrictMinMax(a, this._daylightSavingAdjust(new Date(d, f, b)));
            a.selectedDay = d.getDate(); a.drawMonth = a.selectedMonth = d.getMonth(); a.drawYear = a.selectedYear = d.getFullYear(); (c == "M" || c == "Y") && this._notifyChange(a)
        }, _restrictMinMax: function(a, b) { var c = this._getMinMaxDate(a, "min"), d = this._getMinMaxDate(a, "max"); b = c && b < c ? c : b; return d && b > d ? d : b }, _notifyChange: function(a) { var b = this._get(a, "onChangeMonthYear"); b && b.apply(a.input ? a.input[0] : null, [a.selectedYear, a.selectedMonth + 1, a]) }, _getNumberOfMonths: function(a) {
            a = this._get(a, "numberOfMonths"); return a == null ? [1, 1] :
typeof a == "number" ? [1, a] : a
        }, _getMinMaxDate: function(a, b) { return this._determineDate(a, this._get(a, b + "Date"), null) }, _getDaysInMonth: function(a, b) { return 32 - (new Date(a, b, 32)).getDate() }, _getFirstDayOfMonth: function(a, b) { return (new Date(a, b, 1)).getDay() }, _canAdjustMonth: function(a, b, c, d) { var f = this._getNumberOfMonths(a); c = this._daylightSavingAdjust(new Date(c, d + (b < 0 ? b : f[0] * f[1]), 1)); b < 0 && c.setDate(this._getDaysInMonth(c.getFullYear(), c.getMonth())); return this._isInRange(a, c) }, _isInRange: function(a,
b) { var c = this._getMinMaxDate(a, "min"), d = this._getMinMaxDate(a, "max"); return (!c || b.getTime() >= c.getTime()) && (!d || b.getTime() <= d.getTime()) }, _getFormatConfig: function(a) { var b = this._get(a, "shortYearCutoff"); b = typeof b != "string" ? b : (new Date).getFullYear() % 100 + parseInt(b, 10); return { shortYearCutoff: b, dayNamesShort: this._get(a, "dayNamesShort"), dayNames: this._get(a, "dayNames"), monthNamesShort: this._get(a, "monthNamesShort"), monthNames: this._get(a, "monthNames")} }, _formatDate: function(a, b, c, d) {
    if (!b) a.currentDay =
a.selectedDay, a.currentMonth = a.selectedMonth, a.currentYear = a.selectedYear; b = b ? typeof b == "object" ? b : this._daylightSavingAdjust(new Date(d, c, b)) : this._daylightSavingAdjust(new Date(a.currentYear, a.currentMonth, a.currentDay)); return this.formatDate(this._get(a, "dateFormat"), b, this._getFormatConfig(a))
}
    }); c.fn.datepicker = function(a) {
        if (!c.datepicker.initialized) c(document).mousedown(c.datepicker._checkExternalClick).find("body").append(c.datepicker.dpDiv), c.datepicker.initialized = !0; var b = Array.prototype.slice.call(arguments,
1); if (typeof a == "string" && (a == "isDisabled" || a == "getDate" || a == "widget")) return c.datepicker["_" + a + "Datepicker"].apply(c.datepicker, [this[0]].concat(b)); if (a == "option" && arguments.length == 2 && typeof arguments[1] == "string") return c.datepicker["_" + a + "Datepicker"].apply(c.datepicker, [this[0]].concat(b)); return this.each(function() { typeof a == "string" ? c.datepicker["_" + a + "Datepicker"].apply(c.datepicker, [this].concat(b)) : c.datepicker._attachDatepicker(this, a) })
    }; c.datepicker = new b; c.datepicker.initialized =
!1; c.datepicker.uuid = (new Date).getTime(); c.datepicker.version = "1.8.5"; window["DP_jQuery_" + f] = c
})(jQuery);
(function (c, a) {
    c.widget("ui.dialog", { options: { autoOpen: !0, buttons: {}, closeOnEscape: !0, closeText: "close", dialogClass: "", draggable: !0, hide: null, height: "auto", maxHeight: !1, maxWidth: !1, minHeight: 150, minWidth: 150, modal: !1, position: { my: "center", at: "center", of: window, collision: "fit", using: function (a) { var d = c(this).css(a).offset().top; d < 0 && c(this).css("top", a.top - d) } }, resizable: !0, show: null, stack: !0, title: "", width: 300, zIndex: 1E3 }, _create: function () {
        this.originalTitle = this.element.attr("title"); if (typeof this.originalTitle !==
"string") this.originalTitle = ""; this.options.title = this.options.title || this.originalTitle; var a = this, d = a.options, f = d.title || "&#160;", e = c.ui.dialog.getTitleId(a.element), g = (a.uiDialog = c("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all " + d.dialogClass).css({ zIndex: d.zIndex }).attr("tabIndex", -1).css("outline", 0).keydown(function (e) { d.closeOnEscape && e.keyCode && e.keyCode === c.ui.keyCode.ESCAPE && (a.close(e), e.preventDefault()) }).attr({ role: "dialog",
    "aria-labelledby": e
}).mousedown(function (c) { a.moveToTop(!1, c) }); a.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(g); var h = (a.uiDialogTitlebar = c("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(g), i = c('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role", "button").hover(function () { i.addClass("ui-state-hover") }, function () { i.removeClass("ui-state-hover") }).focus(function () { i.addClass("ui-state-focus") }).blur(function () { i.removeClass("ui-state-focus") }).click(function (c) {
    a.close(c);
    return !1
}).appendTo(h); (a.uiDialogTitlebarCloseText = c("<span></span>")).addClass("ui-icon ui-icon-closethick").text(d.closeText).appendTo(i); c("<span></span>").addClass("ui-dialog-title").attr("id", e).html(f).prependTo(h); if (c.isFunction(d.beforeclose) && !c.isFunction(d.beforeClose)) d.beforeClose = d.beforeclose; h.find("*").add(h).disableSelection(); d.draggable && c.fn.draggable && a._makeDraggable(); d.resizable && c.fn.resizable && a._makeResizable(); a._createButtons(d.buttons); a._isOpen = !1; c.fn.bgiframe &&
g.bgiframe()
    }, _init: function () { this.options.autoOpen && this.open() }, destroy: function () { this.overlay && this.overlay.destroy(); this.uiDialog.hide(); this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"); this.uiDialog.remove(); this.originalTitle && this.element.attr("title", this.originalTitle); return this }, widget: function () { return this.uiDialog }, close: function (a) {
        var d = this, f; if (!1 !== d._trigger("beforeClose", a)) {
            d.overlay && d.overlay.destroy();
            d.uiDialog.unbind("keypress.ui-dialog"); d._isOpen = !1; d.options.hide ? d.uiDialog.hide(d.options.hide, function () { d._trigger("close", a) }) : (d.uiDialog.hide(), d._trigger("close", a)); c.ui.dialog.overlay.resize(); if (d.options.modal) f = 0, c(".ui-dialog").each(function () { this !== d.uiDialog[0] && (f = Math.max(f, c(this).css("z-index"))) }), c.ui.dialog.maxZ = f; return d
        } 
    }, isOpen: function () { return this._isOpen }, moveToTop: function (a, d) {
        var f = this.options; if (f.modal && !a || !f.stack && !f.modal) return this._trigger("focus", d);
        if (f.zIndex > c.ui.dialog.maxZ) c.ui.dialog.maxZ = f.zIndex; if (this.overlay) c.ui.dialog.maxZ += 1, this.overlay.$el.css("z-index", c.ui.dialog.overlay.maxZ = c.ui.dialog.maxZ); f = { scrollTop: this.element.attr("scrollTop"), scrollLeft: this.element.attr("scrollLeft") }; c.ui.dialog.maxZ += 1; this.uiDialog.css("z-index", c.ui.dialog.maxZ); this.element.attr(f); this._trigger("focus", d); return this
    }, open: function () {
        if (!this._isOpen) {
            var a = this.options, d = this.uiDialog; this.overlay = a.modal ? new c.ui.dialog.overlay(this) : null;
            d.next().length && d.appendTo("body"); this._size(); this._position(a.position); d.show(a.show); this.moveToTop(!0); a.modal && d.bind("keypress.ui-dialog", function (a) { if (a.keyCode === c.ui.keyCode.TAB) { var b = c(":tabbable", this), d = b.filter(":first"); b = b.filter(":last"); if (a.target === b[0] && !a.shiftKey) return d.focus(1), !1; else if (a.target === d[0] && a.shiftKey) return b.focus(1), !1 } }); c(this.element.find(":tabbable").get().concat(d.find(".ui-dialog-buttonpane :tabbable").get().concat(d.get()))).eq(0).focus(); this._isOpen =
!0; this._trigger("open"); return this
        } 
    }, _createButtons: function (a) {
        var d = this, f = !1, e = c("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"), g = c("<div></div>").addClass("ui-dialog-buttonset").appendTo(e); d.uiDialog.find(".ui-dialog-buttonpane").remove(); typeof a === "object" && a !== null && c.each(a, function () { return !(f = !0) }); f && (c.each(a, function (a, b) {
            b = c.isFunction(b) ? { click: b, text: a} : b; var e = c("<button></button>", b).unbind("click").click(function () {
                b.click.apply(d.element[0],
arguments)
            }).appendTo(g); c.fn.button && e.button()
        }), e.appendTo(d.uiDialog))
    }, _makeDraggable: function () {
        function a(b) { return { position: b.position, offset: b.offset} } var d = this, f = d.options, e = c(document), g; d.uiDialog.draggable({ cancel: ".ui-dialog-content, .ui-dialog-titlebar-close", handle: ".ui-dialog-titlebar", containment: "document", start: function (e, i) { g = f.height === "auto" ? "auto" : c(this).height(); c(this).height(c(this).height()).addClass("ui-dialog-dragging"); d._trigger("dragStart", e, a(i)) }, drag: function (c,
e) { d._trigger("drag", c, a(e)) }, stop: function (h, i) { f.position = [i.position.left - e.scrollLeft(), i.position.top - e.scrollTop()]; c(this).removeClass("ui-dialog-dragging").height(g); d._trigger("dragStop", h, a(i)); c.ui.dialog.overlay.resize() } 
        })
    }, _makeResizable: function (b) {
        function d(a) { return { originalPosition: a.originalPosition, originalSize: a.originalSize, position: a.position, size: a.size} } b = b === a ? this.options.resizable : b; var f = this, e = f.options, g = f.uiDialog.css("position"); b = typeof b === "string" ? b : "n,e,s,w,se,sw,ne,nw";
        f.uiDialog.resizable({ cancel: ".ui-dialog-content", containment: "document", alsoResize: f.element, maxWidth: e.maxWidth, maxHeight: e.maxHeight, minWidth: e.minWidth, minHeight: f._minHeight(), handles: b, start: function (a, b) { c(this).addClass("ui-dialog-resizing"); f._trigger("resizeStart", a, d(b)) }, resize: function (a, b) { f._trigger("resize", a, d(b)) }, stop: function (a, b) { c(this).removeClass("ui-dialog-resizing"); e.height = c(this).height(); e.width = c(this).width(); f._trigger("resizeStop", a, d(b)); c.ui.dialog.overlay.resize() } }).css("position",
g).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")
    }, _minHeight: function () { var a = this.options; return a.height === "auto" ? a.minHeight : Math.min(a.minHeight, a.height) }, _position: function (a) {
        var d = [], f = [0, 0], e; if (a) {
            if (typeof a === "string" || typeof a === "object" && "0" in a) d = a.split ? a.split(" ") : [a[0], a[1]], d.length === 1 && (d[1] = d[0]), c.each(["left", "top"], function (a, b) { +d[a] === d[a] && (f[a] = d[a], d[a] = b) }), a = { my: d.join(" "), at: d.join(" "), offset: f.join(" ") }; a = c.extend({}, c.ui.dialog.prototype.options.position,
a)
        } else a = c.ui.dialog.prototype.options.position; (e = this.uiDialog.is(":visible")) || this.uiDialog.show(); this.uiDialog.css({ top: 0, left: 0 }).position(a); e || this.uiDialog.hide()
    }, _setOption: function (a, d) {
        var f = this.uiDialog, e = f.is(":data(resizable)"), g = !1; switch (a) {
            case "beforeclose": a = "beforeClose"; break; case "buttons": this._createButtons(d); g = !0; break; case "closeText": this.uiDialogTitlebarCloseText.text("" + d); break; case "dialogClass": f.removeClass(this.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all " +
d); break; case "disabled": d ? f.addClass("ui-dialog-disabled") : f.removeClass("ui-dialog-disabled"); break; case "draggable": d ? this._makeDraggable() : f.draggable("destroy"); break; case "height": g = !0; break; case "maxHeight": e && f.resizable("option", "maxHeight", d); g = !0; break; case "maxWidth": e && f.resizable("option", "maxWidth", d); g = !0; break; case "minHeight": e && f.resizable("option", "minHeight", d); g = !0; break; case "minWidth": e && f.resizable("option", "minWidth", d); g = !0; break; case "position": this._position(d); break;
            case "resizable": e && !d && f.resizable("destroy"); e && typeof d === "string" && f.resizable("option", "handles", d); !e && d !== !1 && this._makeResizable(d); break; case "title": c(".ui-dialog-title", this.uiDialogTitlebar).html("" + (d || "&#160;")); break; case "width": g = !0
        } c.Widget.prototype._setOption.apply(this, arguments); g && this._size()
    }, _size: function () {
        var a = this.options, d; this.element.css({ width: "auto", minHeight: 0, height: 0 }); if (a.minWidth > a.width) a.width = a.minWidth; d = this.uiDialog.css({ height: "auto", width: a.width }).height();
        this.element.css(a.height === "auto" ? { minHeight: Math.max(a.minHeight - d, 0), height: c.support.minHeight ? "auto" : Math.max(a.minHeight - d, 0)} : { minHeight: 0, height: Math.max(a.height - d, 0) }).show(); this.uiDialog.is(":data(resizable)") && this.uiDialog.resizable("option", "minHeight", this._minHeight())
    } 
    }); c.extend(c.ui.dialog, { version: "1.8.5", uuid: 0, maxZ: 0, getTitleId: function (a) { a = a.attr("id"); if (!a) this.uuid += 1, a = this.uuid; return "ui-dialog-title-" + a }, overlay: function (a) { this.$el = c.ui.dialog.overlay.create(a) } });
    c.extend(c.ui.dialog.overlay, { instances: [], oldInstances: [], maxZ: 0, events: c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","), function (a) { return a + ".dialog-overlay" }).join(" "), create: function (a) {
        this.instances.length === 0 && (setTimeout(function () { c.ui.dialog.overlay.instances.length && c(document).bind(c.ui.dialog.overlay.events, function (a) { if (c(a.target).zIndex() < c.ui.dialog.overlay.maxZ) return !1 }) }, 1), c(document).bind("keydown.dialog-overlay", function (d) {
            a.options.closeOnEscape && d.keyCode &&
d.keyCode === c.ui.keyCode.ESCAPE && (a.close(d), d.preventDefault())
        }), c(window).bind("resize.dialog-overlay", c.ui.dialog.overlay.resize)); var d = (this.oldInstances.pop() || c("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({ width: this.width(), height: this.height() }); c.fn.bgiframe && d.bgiframe(); this.instances.push(d); return d
    }, destroy: function (a) {
        this.oldInstances.push(this.instances.splice(c.inArray(a, this.instances), 1)[0]); this.instances.length === 0 && c([document, window]).unbind(".dialog-overlay");
        a.remove(); var d = 0; c.each(this.instances, function () { d = Math.max(d, this.css("z-index")) }); this.maxZ = d
    }, height: function () { var a, d; return c.browser.msie && c.browser.version < 7 ? (a = Math.max(document.documentElement.scrollHeight, document.body.scrollHeight), d = Math.max(document.documentElement.offsetHeight, document.body.offsetHeight), a < d ? c(window).height() + "px" : a + "px") : c(document).height() + "px" }, width: function () {
        var a, d; return c.browser.msie && c.browser.version < 7 ? (a = Math.max(document.documentElement.scrollWidth,
document.body.scrollWidth), d = Math.max(document.documentElement.offsetWidth, document.body.offsetWidth), a < d ? c(window).width() + "px" : a + "px") : c(document).width() + "px"
    }, resize: function () { var a = c([]); c.each(c.ui.dialog.overlay.instances, function () { a = a.add(this) }); a.css({ width: 0, height: 0 }).css({ width: c.ui.dialog.overlay.width(), height: c.ui.dialog.overlay.height() }) } 
    }); c.extend(c.ui.dialog.overlay.prototype, { destroy: function () { c.ui.dialog.overlay.destroy(this.$el) } })
})(jQuery);
(function (c) {
    c.ui = c.ui || {}; var a = /left|center|right/, b = /top|center|bottom/, d = c.fn.position, f = c.fn.offset; c.fn.position = function (e) {
        if (!e || !e.of) return d.apply(this, arguments); e = c.extend({}, e); var f = c(e.of), h = f[0], i = (e.collision || "flip").split(" "), j = e.offset ? e.offset.split(" ") : [0, 0], k, l, m; h.nodeType === 9 ? (k = f.width(), l = f.height(), m = { top: 0, left: 0 }) : h.scrollTo && h.document ? (k = f.width(), l = f.height(), m = { top: f.scrollTop(), left: f.scrollLeft() }) : h.preventDefault ? (e.at = "left top", k = l = 0, m = { top: e.of.pageY, left: e.of.pageX }) :
(k = f.outerWidth(), l = f.outerHeight(), m = f.offset()); c.each(["my", "at"], function () { var c = (e[this] || "").split(" "); c.length === 1 && (c = a.test(c[0]) ? c.concat(["center"]) : b.test(c[0]) ? ["center"].concat(c) : ["center", "center"]); c[0] = a.test(c[0]) ? c[0] : "center"; c[1] = b.test(c[1]) ? c[1] : "center"; e[this] = c }); i.length === 1 && (i[1] = i[0]); j[0] = parseInt(j[0], 10) || 0; j.length === 1 && (j[1] = j[0]); j[1] = parseInt(j[1], 10) || 0; e.at[0] === "right" ? m.left += k : e.at[0] === "center" && (m.left += k / 2); e.at[1] === "bottom" ? m.top += l : e.at[1] === "center" &&
(m.top += l / 2); m.left += j[0]; m.top += j[1]; return this.each(function () {
    var a = c(this), b = a.outerWidth(), d = a.outerHeight(), f = parseInt(c.curCSS(this, "marginLeft", !0)) || 0, g = parseInt(c.curCSS(this, "marginTop", !0)) || 0, h = b + f + parseInt(c.curCSS(this, "marginRight", !0)) || 0, u = d + g + parseInt(c.curCSS(this, "marginBottom", !0)) || 0, r = c.extend({}, m), y; e.my[0] === "right" ? r.left -= b : e.my[0] === "center" && (r.left -= b / 2); e.my[1] === "bottom" ? r.top -= d : e.my[1] === "center" && (r.top -= d / 2); r.left = parseInt(r.left); r.top = parseInt(r.top); y = { left: r.left -
f, top: r.top - g
    }; c.each(["left", "top"], function (a, f) { if (c.ui.position[i[a]]) c.ui.position[i[a]][f](r, { targetWidth: k, targetHeight: l, elemWidth: b, elemHeight: d, collisionPosition: y, collisionWidth: h, collisionHeight: u, offset: j, my: e.my, at: e.at }) }); c.fn.bgiframe && a.bgiframe(); a.offset(c.extend(r, { using: e.using }))
})
    }; c.ui.position = { fit: { left: function (a, b) { var d = c(window); d = b.collisionPosition.left + b.collisionWidth - d.width() - d.scrollLeft(); a.left = d > 0 ? a.left - d : Math.max(a.left - b.collisionPosition.left, a.left) },
        top: function (a, b) { var d = c(window); d = b.collisionPosition.top + b.collisionHeight - d.height() - d.scrollTop(); a.top = d > 0 ? a.top - d : Math.max(a.top - b.collisionPosition.top, a.top) } 
    }, flip: { left: function (a, b) { if (b.at[0] !== "center") { var d = c(window); d = b.collisionPosition.left + b.collisionWidth - d.width() - d.scrollLeft(); var f = b.my[0] === "left" ? -b.elemWidth : b.my[0] === "right" ? b.elemWidth : 0, j = b.at[0] === "left" ? b.targetWidth : -b.targetWidth, k = -2 * b.offset[0]; a.left += b.collisionPosition.left < 0 ? f + j + k : d > 0 ? f + j + k : 0 } }, top: function (a,
b) { if (b.at[1] !== "center") { var d = c(window); d = b.collisionPosition.top + b.collisionHeight - d.height() - d.scrollTop(); var f = b.my[1] === "top" ? -b.elemHeight : b.my[1] === "bottom" ? b.elemHeight : 0, j = b.at[1] === "top" ? b.targetHeight : -b.targetHeight, k = -2 * b.offset[1]; a.top += b.collisionPosition.top < 0 ? f + j + k : d > 0 ? f + j + k : 0 } } 
    }
    }; if (!c.offset.setOffset) c.offset.setOffset = function (a, b) {
        if (/static/.test(c.curCSS(a, "position"))) a.style.position = "relative"; var d = c(a), f = d.offset(), j = parseInt(c.curCSS(a, "top", !0), 10) || 0, k = parseInt(c.curCSS(a,
"left", !0), 10) || 0; f = { top: b.top - f.top + j, left: b.left - f.left + k }; "using" in b ? b.using.call(a, f) : d.css(f)
    }, c.fn.offset = function (a) { var b = this[0]; if (!b || !b.ownerDocument) return null; if (a) return this.each(function () { c.offset.setOffset(this, a) }); return f.call(this) } 
})(jQuery);
(function (c, a) {
    c.widget("ui.progressbar", { options: { value: 0 }, min: 0, max: 100, _create: function () { this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({ role: "progressbar", "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": this._value() }); this.valueDiv = c("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element); this._refreshValue() }, destroy: function () {
        this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");
        this.valueDiv.remove(); c.Widget.prototype.destroy.apply(this, arguments)
    }, value: function (b) { if (b === a) return this._value(); this._setOption("value", b); return this }, _setOption: function (a, d) { if (a === "value") this.options.value = d, this._refreshValue(), this._trigger("change"); c.Widget.prototype._setOption.apply(this, arguments) }, _value: function () { var a = this.options.value; typeof a !== "number" && (a = 0); return Math.min(this.max, Math.max(this.min, a)) }, _refreshValue: function () {
        var a = this.value(); this.valueDiv.toggleClass("ui-corner-right",
a === this.max).width(a + "%"); this.element.attr("aria-valuenow", a)
    } 
    }); c.extend(c.ui.progressbar, { version: "1.8.5" })
})(jQuery);
(function (c) {
    c.widget("ui.slider", c.ui.mouse, { widgetEventPrefix: "slide", options: { animate: !1, distance: 0, max: 100, min: 0, orientation: "horizontal", range: !1, step: 1, value: 0, values: null }, _create: function () {
        var a = this, b = this.options; this._mouseSliding = this._keySliding = !1; this._animateOff = !0; this._handleIndex = null; this._detectOrientation(); this._mouseInit(); this.element.addClass("ui-slider ui-slider-" + this.orientation + " ui-widget ui-widget-content ui-corner-all"); b.disabled && this.element.addClass("ui-slider-disabled ui-disabled");
        this.range = c([]); if (b.range) { if (b.range === !0) { this.range = c("<div></div>"); if (!b.values) b.values = [this._valueMin(), this._valueMin()]; if (b.values.length && b.values.length !== 2) b.values = [b.values[0], b.values[0]] } else this.range = c("<div></div>"); this.range.appendTo(this.element).addClass("ui-slider-range"); (b.range === "min" || b.range === "max") && this.range.addClass("ui-slider-range-" + b.range); this.range.addClass("ui-widget-header") } c(".ui-slider-handle", this.element).length === 0 && c("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");
        if (b.values && b.values.length) for (; c(".ui-slider-handle", this.element).length < b.values.length; ) c("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle"); this.handles = c(".ui-slider-handle", this.element).addClass("ui-state-default ui-corner-all"); this.handle = this.handles.eq(0); this.handles.add(this.range).filter("a").click(function (a) { a.preventDefault() }).hover(function () { b.disabled || c(this).addClass("ui-state-hover") }, function () { c(this).removeClass("ui-state-hover") }).focus(function () {
            b.disabled ?
c(this).blur() : (c(".ui-slider .ui-state-focus").removeClass("ui-state-focus"), c(this).addClass("ui-state-focus"))
        }).blur(function () { c(this).removeClass("ui-state-focus") }); this.handles.each(function (a) { c(this).data("index.ui-slider-handle", a) }); this.handles.keydown(function (b) {
            var f = !0, e = c(this).data("index.ui-slider-handle"), g, h, i; if (!a.options.disabled) {
                switch (b.keyCode) {
                    case c.ui.keyCode.HOME: case c.ui.keyCode.END: case c.ui.keyCode.PAGE_UP: case c.ui.keyCode.PAGE_DOWN: case c.ui.keyCode.UP: case c.ui.keyCode.RIGHT: case c.ui.keyCode.DOWN: case c.ui.keyCode.LEFT: if (f =
!1, !a._keySliding && (a._keySliding = !0, c(this).addClass("ui-state-active"), g = a._start(b, e), g === !1)) return
                } i = a.options.step; g = a.options.values && a.options.values.length ? h = a.values(e) : h = a.value(); switch (b.keyCode) {
                    case c.ui.keyCode.HOME: h = a._valueMin(); break; case c.ui.keyCode.END: h = a._valueMax(); break; case c.ui.keyCode.PAGE_UP: h = a._trimAlignValue(g + (a._valueMax() - a._valueMin()) / 5); break; case c.ui.keyCode.PAGE_DOWN: h = a._trimAlignValue(g - (a._valueMax() - a._valueMin()) / 5); break; case c.ui.keyCode.UP: case c.ui.keyCode.RIGHT: if (g ===
a._valueMax()) return; h = a._trimAlignValue(g + i); break; case c.ui.keyCode.DOWN: case c.ui.keyCode.LEFT: if (g === a._valueMin()) return; h = a._trimAlignValue(g - i)
                } a._slide(b, e, h); return f
            } 
        }).keyup(function (b) { var f = c(this).data("index.ui-slider-handle"); if (a._keySliding) a._keySliding = !1, a._stop(b, f), a._change(b, f), c(this).removeClass("ui-state-active") }); this._refreshValue(); this._animateOff = !1
    }, destroy: function () {
        this.handles.remove(); this.range.remove(); this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");
        this._mouseDestroy(); return this
    }, _mouseCapture: function (a) {
        var b = this.options, d, f, e, g, h; if (b.disabled) return !1; this.elementSize = { width: this.element.outerWidth(), height: this.element.outerHeight() }; this.elementOffset = this.element.offset(); d = this._normValueFromMouse({ x: a.pageX, y: a.pageY }); f = this._valueMax() - this._valueMin() + 1; g = this; this.handles.each(function (a) { var b = Math.abs(d - g.values(a)); f > b && (f = b, e = c(this), h = a) }); b.range === !0 && this.values(1) === b.min && (h += 1, e = c(this.handles[h])); if (this._start(a,
h) === !1) return !1; this._mouseSliding = !0; g._handleIndex = h; e.addClass("ui-state-active").focus(); b = e.offset(); this._clickOffset = !c(a.target).parents().andSelf().is(".ui-slider-handle") ? { left: 0, top: 0} : { left: a.pageX - b.left - e.width() / 2, top: a.pageY - b.top - e.height() / 2 - (parseInt(e.css("borderTopWidth"), 10) || 0) - (parseInt(e.css("borderBottomWidth"), 10) || 0) + (parseInt(e.css("marginTop"), 10) || 0) }; this._slide(a, h, d); return this._animateOff = !0
    }, _mouseStart: function () { return !0 }, _mouseDrag: function (a) {
        var b = this._normValueFromMouse({ x: a.pageX,
            y: a.pageY
        }); this._slide(a, this._handleIndex, b); return !1
    }, _mouseStop: function (a) { this.handles.removeClass("ui-state-active"); this._mouseSliding = !1; this._stop(a, this._handleIndex); this._change(a, this._handleIndex); this._clickOffset = this._handleIndex = null; return this._animateOff = !1 }, _detectOrientation: function () { this.orientation = this.options.orientation === "vertical" ? "vertical" : "horizontal" }, _normValueFromMouse: function (a) {
        var b; this.orientation === "horizontal" ? (b = this.elementSize.width, a = a.x - this.elementOffset.left -
(this._clickOffset ? this._clickOffset.left : 0)) : (b = this.elementSize.height, a = a.y - this.elementOffset.top - (this._clickOffset ? this._clickOffset.top : 0)); b = a / b; b > 1 && (b = 1); b < 0 && (b = 0); this.orientation === "vertical" && (b = 1 - b); a = this._valueMax() - this._valueMin(); return this._trimAlignValue(this._valueMin() + b * a)
    }, _start: function (a, b) { var c = { handle: this.handles[b], value: this.value() }; if (this.options.values && this.options.values.length) c.value = this.values(b), c.values = this.values(); return this._trigger("start", a, c) },
        _slide: function (a, b, c) { var f; if (this.options.values && this.options.values.length) { f = this.values(b ? 0 : 1); if (this.options.values.length === 2 && this.options.range === !0 && (b === 0 && c > f || b === 1 && c < f)) c = f; c !== this.values(b) && (f = this.values(), f[b] = c, a = this._trigger("slide", a, { handle: this.handles[b], value: c, values: f }), this.values(b ? 0 : 1), a !== !1 && this.values(b, c, !0)) } else c !== this.value() && (a = this._trigger("slide", a, { handle: this.handles[b], value: c }), a !== !1 && this.value(c)) }, _stop: function (a, b) {
            var c = { handle: this.handles[b],
                value: this.value()
            }; if (this.options.values && this.options.values.length) c.value = this.values(b), c.values = this.values(); this._trigger("stop", a, c)
        }, _change: function (a, b) { if (!this._keySliding && !this._mouseSliding) { var c = { handle: this.handles[b], value: this.value() }; if (this.options.values && this.options.values.length) c.value = this.values(b), c.values = this.values(); this._trigger("change", a, c) } }, value: function (a) {
            if (arguments.length) this.options.value = this._trimAlignValue(a), this._refreshValue(), this._change(null,
0); return this._value()
        }, values: function (a, b) { var d, f, e; arguments.length > 1 && (this.options.values[a] = this._trimAlignValue(b), this._refreshValue(), this._change(null, a)); if (arguments.length) if (c.isArray(arguments[0])) { d = this.options.values; f = arguments[0]; for (e = 0; e < d.length; e += 1) d[e] = this._trimAlignValue(f[e]), this._change(null, e); this._refreshValue() } else return this.options.values && this.options.values.length ? this._values(a) : this.value(); else return this._values() }, _setOption: function (a, b) {
            var d, f = 0;
            if (c.isArray(this.options.values)) f = this.options.values.length; c.Widget.prototype._setOption.apply(this, arguments); switch (a) {
                case "disabled": b ? (this.handles.filter(".ui-state-focus").blur(), this.handles.removeClass("ui-state-hover"), this.handles.attr("disabled", "disabled"), this.element.addClass("ui-disabled")) : (this.handles.removeAttr("disabled"), this.element.removeClass("ui-disabled")); break; case "orientation": this._detectOrientation(); this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-" +
this.orientation); this._refreshValue(); break; case "value": this._animateOff = !0; this._refreshValue(); this._change(null, 0); this._animateOff = !1; break; case "values": this._animateOff = !0; this._refreshValue(); for (d = 0; d < f; d += 1) this._change(null, d); this._animateOff = !1
            } 
        }, _value: function () { var a = this.options.value; return a = this._trimAlignValue(a) }, _values: function (a) {
            var b, c; if (arguments.length) b = this.options.values[a], b = this._trimAlignValue(b); else {
                b = this.options.values.slice(); for (c = 0; c < b.length; c += 1) b[c] =
this._trimAlignValue(b[c])
            } return b
        }, _trimAlignValue: function (a) { if (a < this._valueMin()) return this._valueMin(); if (a > this._valueMax()) return this._valueMax(); var b = this.options.step > 0 ? this.options.step : 1, c = a % b; a -= c; Math.abs(c) * 2 >= b && (a += c > 0 ? b : -b); return parseFloat(a.toFixed(5)) }, _valueMin: function () { return this.options.min }, _valueMax: function () { return this.options.max }, _refreshValue: function () {
            var a = this.options.range, b = this.options, d = this, f = !this._animateOff ? b.animate : !1, e, g = {}, h, i, j, k; if (this.options.values &&
this.options.values.length) this.handles.each(function (a) {
    e = (d.values(a) - d._valueMin()) / (d._valueMax() - d._valueMin()) * 100; g[d.orientation === "horizontal" ? "left" : "bottom"] = e + "%"; c(this).stop(1, 1)[f ? "animate" : "css"](g, b.animate); if (d.options.range === !0) if (d.orientation === "horizontal") { if (a === 0) d.range.stop(1, 1)[f ? "animate" : "css"]({ left: e + "%" }, b.animate); if (a === 1) d.range[f ? "animate" : "css"]({ width: e - h + "%" }, { queue: !1, duration: b.animate }) } else {
        if (a === 0) d.range.stop(1, 1)[f ? "animate" : "css"]({ bottom: e + "%" },
b.animate); if (a === 1) d.range[f ? "animate" : "css"]({ height: e - h + "%" }, { queue: !1, duration: b.animate })
    } h = e
}); else {
                i = this.value(); j = this._valueMin(); k = this._valueMax(); e = k !== j ? (i - j) / (k - j) * 100 : 0; g[d.orientation === "horizontal" ? "left" : "bottom"] = e + "%"; this.handle.stop(1, 1)[f ? "animate" : "css"](g, b.animate); if (a === "min" && this.orientation === "horizontal") this.range.stop(1, 1)[f ? "animate" : "css"]({ width: e + "%" }, b.animate); if (a === "max" && this.orientation === "horizontal") this.range[f ? "animate" : "css"]({ width: 100 - e + "%" }, { queue: !1,
                    duration: b.animate
                }); if (a === "min" && this.orientation === "vertical") this.range.stop(1, 1)[f ? "animate" : "css"]({ height: e + "%" }, b.animate); if (a === "max" && this.orientation === "vertical") this.range[f ? "animate" : "css"]({ height: 100 - e + "%" }, { queue: !1, duration: b.animate })
            } 
        } 
    }); c.extend(c.ui.slider, { version: "1.8.5" })
})(jQuery);
(function (c, a) {
    var b = 0, d = 0; c.widget("ui.tabs", { options: { add: null, ajaxOptions: null, cache: !1, cookie: null, collapsible: !1, disable: null, disabled: [], enable: null, event: "click", fx: null, idPrefix: "ui-tabs-", load: null, panelTemplate: "<div></div>", remove: null, select: null, show: null, spinner: "<em>Loading&#8230;</em>", tabTemplate: "<li><a href='#{href}'><span>#{label}</span></a></li>" }, _create: function () { this._tabify(!0) }, _setOption: function (a, b) {
        a == "selected" ? this.options.collapsible && b == this.options.selected || this.select(b) :
(this.options[a] = b, this._tabify())
    }, _tabId: function (a) { return a.title && a.title.replace(/\s/g, "_").replace(/[^\w\u00c0-\uFFFF-]/g, "") || this.options.idPrefix + ++b }, _sanitizeSelector: function (a) { return a.replace(/:/g, "\\:") }, _cookie: function () { var a = this.cookie || (this.cookie = this.options.cookie.name || "ui-tabs-" + ++d); return c.cookie.apply(null, [a].concat(c.makeArray(arguments))) }, _ui: function (a, b) { return { tab: a, panel: b, index: this.anchors.index(a)} }, _cleanup: function () {
        this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function () {
            var a =
c(this); a.html(a.data("label.tabs")).removeData("label.tabs")
        })
    }, _tabify: function (b) {
        function d(a, b) { a.css("display", ""); !c.support.opacity && b.opacity && a[0].style.removeAttribute("filter") } var g = this, h = this.options, i = /^#.+/; this.list = this.element.find("ol,ul").eq(0); this.lis = c(" > li:has(a[href])", this.list); this.anchors = this.lis.map(function () { return c("a", this)[0] }); this.panels = c([]); this.anchors.each(function (a, b) {
            var d = c(b).attr("href"), e = d.split("#")[0], f; if (e && (e === location.toString().split("#")[0] ||
(f = c("base")[0]) && e === f.href)) d = b.hash, b.href = d; i.test(d) ? g.panels = g.panels.add(g._sanitizeSelector(d)) : d && d !== "#" ? (c.data(b, "href.tabs", d), c.data(b, "load.tabs", d.replace(/#.*$/, "")), d = g._tabId(b), b.href = "#" + d, e = c("#" + d), e.length || (e = c(h.panelTemplate).attr("id", d).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(g.panels[a - 1] || g.list), e.data("destroy.tabs", !0)), g.panels = g.panels.add(e)) : h.disabled.push(a)
        }); if (b) {
            this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");
            this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"); this.lis.addClass("ui-state-default ui-corner-top"); this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom"); if (h.selected === a) {
                location.hash && this.anchors.each(function (a, b) { if (b.hash == location.hash) return h.selected = a, !1 }); if (typeof h.selected !== "number" && h.cookie) h.selected = parseInt(g._cookie(), 10); if (typeof h.selected !== "number" && this.lis.filter(".ui-tabs-selected").length) h.selected =
this.lis.index(this.lis.filter(".ui-tabs-selected")); h.selected = h.selected || (this.lis.length ? 0 : -1)
            } else if (h.selected === null) h.selected = -1; h.selected = h.selected >= 0 && this.anchors[h.selected] || h.selected < 0 ? h.selected : 0; h.disabled = c.unique(h.disabled.concat(c.map(this.lis.filter(".ui-state-disabled"), function (a) { return g.lis.index(a) }))).sort(); c.inArray(h.selected, h.disabled) != -1 && h.disabled.splice(c.inArray(h.selected, h.disabled), 1); this.panels.addClass("ui-tabs-hide"); this.lis.removeClass("ui-tabs-selected ui-state-active");
            h.selected >= 0 && this.anchors.length && (this.panels.eq(h.selected).removeClass("ui-tabs-hide"), this.lis.eq(h.selected).addClass("ui-tabs-selected ui-state-active"), g.element.queue("tabs", function () { g._trigger("show", null, g._ui(g.anchors[h.selected], g.panels[h.selected])) }), this.load(h.selected)); c(window).bind("unload", function () { g.lis.add(g.anchors).unbind(".tabs"); g.lis = g.anchors = g.panels = null })
        } else h.selected = this.lis.index(this.lis.filter(".ui-tabs-selected")); this.element[h.collapsible ? "addClass" :
"removeClass"]("ui-tabs-collapsible"); h.cookie && this._cookie(h.selected, h.cookie); b = 0; for (var j; j = this.lis[b]; b++) c(j)[c.inArray(b, h.disabled) != -1 && !c(j).hasClass("ui-tabs-selected") ? "addClass" : "removeClass"]("ui-state-disabled"); h.cache === !1 && this.anchors.removeData("cache.tabs"); this.lis.add(this.anchors).unbind(".tabs"); if (h.event !== "mouseover") {
            var k = function (a, b) { b.is(":not(.ui-state-disabled)") && b.addClass("ui-state-" + a) }; this.lis.bind("mouseover.tabs", function () { k("hover", c(this)) }); this.lis.bind("mouseout.tabs",
function () { c(this).removeClass("ui-state-hover") }); this.anchors.bind("focus.tabs", function () { k("focus", c(this).closest("li")) }); this.anchors.bind("blur.tabs", function () { c(this).closest("li").removeClass("ui-state-focus") })
        } var l, m; if (h.fx) c.isArray(h.fx) ? (l = h.fx[0], m = h.fx[1]) : l = m = h.fx; var o = m ? function (a, b) { c(a).closest("li").addClass("ui-tabs-selected ui-state-active"); b.hide().removeClass("ui-tabs-hide").animate(m, m.duration || "normal", function () { d(b, m); g._trigger("show", null, g._ui(a, b[0])) }) } : function (a,
b) { c(a).closest("li").addClass("ui-tabs-selected ui-state-active"); b.removeClass("ui-tabs-hide"); g._trigger("show", null, g._ui(a, b[0])) }, n = l ? function (a, b) { b.animate(l, l.duration || "normal", function () { g.lis.removeClass("ui-tabs-selected ui-state-active"); b.addClass("ui-tabs-hide"); d(b, l); g.element.dequeue("tabs") }) } : function (a, b) { g.lis.removeClass("ui-tabs-selected ui-state-active"); b.addClass("ui-tabs-hide"); g.element.dequeue("tabs") }; this.anchors.bind(h.event + ".tabs", function () {
    var a = this, b = c(a).closest("li"),
d = g.panels.filter(":not(.ui-tabs-hide)"), e = c(g._sanitizeSelector(a.hash)); if (b.hasClass("ui-tabs-selected") && !h.collapsible || b.hasClass("ui-state-disabled") || b.hasClass("ui-state-processing") || g.panels.filter(":animated").length || g._trigger("select", null, g._ui(this, e[0])) === !1) return this.blur(), !1; h.selected = g.anchors.index(this); g.abort(); if (h.collapsible) if (b.hasClass("ui-tabs-selected")) return h.selected = -1, h.cookie && g._cookie(h.selected, h.cookie), g.element.queue("tabs", function () { n(a, d) }).dequeue("tabs"),
this.blur(), !1; else if (!d.length) return h.cookie && g._cookie(h.selected, h.cookie), g.element.queue("tabs", function () { o(a, e) }), g.load(g.anchors.index(this)), this.blur(), !1; h.cookie && g._cookie(h.selected, h.cookie); if (e.length) d.length && g.element.queue("tabs", function () { n(a, d) }), g.element.queue("tabs", function () { o(a, e) }), g.load(g.anchors.index(this)); else throw "jQuery UI Tabs: Mismatching fragment identifier."; c.browser.msie && this.blur()
}); this.anchors.bind("click.tabs", function () { return !1 })
    }, _getIndex: function (a) {
        typeof a ==
"string" && (a = this.anchors.index(this.anchors.filter("[href$=" + a + "]"))); return a
    }, destroy: function () {
        var a = this.options; this.abort(); this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs"); this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"); this.anchors.each(function () {
            var a = c.data(this, "href.tabs"); if (a) this.href = a; var b = c(this).unbind(".tabs"); c.each(["href", "load", "cache"],
function (a, c) { b.removeData(c + ".tabs") })
        }); this.lis.unbind(".tabs").add(this.panels).each(function () { c.data(this, "destroy.tabs") ? c(this).remove() : c(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide") }); a.cookie && this._cookie(null, a.cookie); return this
    }, add: function (b, d, g) {
        if (g === a) g = this.anchors.length; var h = this, i = this.options; d = c(i.tabTemplate.replace(/#\{href\}/g,
b).replace(/#\{label\}/g, d)); b = !b.indexOf("#") ? b.replace("#", "") : this._tabId(c("a", d)[0]); d.addClass("ui-state-default ui-corner-top").data("destroy.tabs", !0); var j = c("#" + b); j.length || (j = c(i.panelTemplate).attr("id", b).data("destroy.tabs", !0)); j.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide"); g >= this.lis.length ? (d.appendTo(this.list), j.appendTo(this.list[0].parentNode)) : (d.insertBefore(this.lis[g]), j.insertBefore(this.panels[g])); i.disabled = c.map(i.disabled, function (a) {
    return a >=
g ? ++a : a
}); this._tabify(); if (this.anchors.length == 1) i.selected = 0, d.addClass("ui-tabs-selected ui-state-active"), j.removeClass("ui-tabs-hide"), this.element.queue("tabs", function () { h._trigger("show", null, h._ui(h.anchors[0], h.panels[0])) }), this.load(0); this._trigger("add", null, this._ui(this.anchors[g], this.panels[g])); return this
    }, remove: function (a) {
        a = this._getIndex(a); var b = this.options, d = this.lis.eq(a).remove(), h = this.panels.eq(a).remove(); d.hasClass("ui-tabs-selected") && this.anchors.length > 1 && this.select(a +
(a + 1 < this.anchors.length ? 1 : -1)); b.disabled = c.map(c.grep(b.disabled, function (b) { return b != a }), function (b) { return b >= a ? --b : b }); this._tabify(); this._trigger("remove", null, this._ui(d.find("a")[0], h[0])); return this
    }, enable: function (a) { a = this._getIndex(a); var b = this.options; if (c.inArray(a, b.disabled) != -1) return this.lis.eq(a).removeClass("ui-state-disabled"), b.disabled = c.grep(b.disabled, function (b) { return b != a }), this._trigger("enable", null, this._ui(this.anchors[a], this.panels[a])), this }, disable: function (a) {
        a =
this._getIndex(a); var b = this.options; a != b.selected && (this.lis.eq(a).addClass("ui-state-disabled"), b.disabled.push(a), b.disabled.sort(), this._trigger("disable", null, this._ui(this.anchors[a], this.panels[a]))); return this
    }, select: function (a) { a = this._getIndex(a); if (a == -1) if (this.options.collapsible && this.options.selected != -1) a = this.options.selected; else return this; this.anchors.eq(a).trigger(this.options.event + ".tabs"); return this }, load: function (a) {
        a = this._getIndex(a); var b = this, d = this.options, h = this.anchors.eq(a)[0],
i = c.data(h, "load.tabs"); this.abort(); if (!i || this.element.queue("tabs").length !== 0 && c.data(h, "cache.tabs")) this.element.dequeue("tabs"); else {
            this.lis.eq(a).addClass("ui-state-processing"); if (d.spinner) { var j = c("span", h); j.data("label.tabs", j.html()).html(d.spinner) } this.xhr = c.ajax(c.extend({}, d.ajaxOptions, { url: i, success: function (i, j) {
                c(b._sanitizeSelector(h.hash)).html(i); b._cleanup(); d.cache && c.data(h, "cache.tabs", !0); b._trigger("load", null, b._ui(b.anchors[a], b.panels[a])); try {
                    d.ajaxOptions.success(i,
j)
                } catch (m) { } 
            }, error: function (c, i) { b._cleanup(); b._trigger("load", null, b._ui(b.anchors[a], b.panels[a])); try { d.ajaxOptions.error(c, i, a, h) } catch (j) { } } 
            })); b.element.dequeue("tabs"); return this
        } 
    }, abort: function () { this.element.queue([]); this.panels.stop(!1, !0); this.element.queue("tabs", this.element.queue("tabs").splice(-2, 2)); this.xhr && (this.xhr.abort(), delete this.xhr); this._cleanup(); return this }, url: function (a, b) { this.anchors.eq(a).removeData("cache.tabs").data("load.tabs", b); return this }, length: function () { return this.anchors.length } 
    });
    c.extend(c.ui.tabs, { version: "1.8.5" }); c.extend(c.ui.tabs.prototype, { rotation: null, rotate: function (a, b) {
        var c = this, d = this.options, i = c._rotate || (c._rotate = function (b) { clearTimeout(c.rotation); c.rotation = setTimeout(function () { var a = d.selected; c.select(++a < c.anchors.length ? a : 0) }, a); b && b.stopPropagation() }), j = c._unrotate || (c._unrotate = !b ? function (a) { a.clientX && c.rotate(null) } : function () { t = d.selected; i() }); a ? (this.element.bind("tabsshow", i), this.anchors.bind(d.event + ".tabs", j), i()) : (clearTimeout(c.rotation),
this.element.unbind("tabsshow", i), this.anchors.unbind(d.event + ".tabs", j), delete this._rotate, delete this._unrotate); return this
    } 
    })
})(jQuery); ScriptLoaded = "jquery-ui-1.8.5.custom.min.js"; 
