",
options: {
disabled: !1,
create: null
},
_createWidget: function(t, r) {
r = e(r || this.defaultElement || this)[0],
this.element = e(r),
this.uuid = n++,
this.eventNamespace = "." + this.widgetName + this.uuid,
this.options = e.widget.extend({},
this.options, this._getCreateOptions(), t),
this.bindings = e(),
this.hoverable = e(),
this.focusable = e(),
r !== this && (e.data(r, this.widgetName, this), e.data(r, this.widgetFullName, this), this._on(!0, this.element, {
remove: function(e) {
e.target === r && this.destroy()
}
}), this.document = e(r.style ? r.ownerDocument: r.document || r), this.window = e(this.document[0].defaultView || this.document[0].parentWindow)),
this._create(),
this._trigger("create", null, this._getCreateEventData()),
this._init()
},
_getCreateOptions: e.noop,
_getCreateEventData: e.noop,
_create: e.noop,
_init: e.noop,
destroy: function() {
this._destroy(),
this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),
this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName + "-disabled " + "ui-state-disabled"),
this.bindings.unbind(this.eventNamespace),
this.hoverable.removeClass("ui-state-hover"),
this.focusable.removeClass("ui-state-focus")
},
_destroy: e.noop,
widget: function() {
return this.element
},
option: function(n, r) {
var i = n,
s, o, u;
if (arguments.length === 0) return e.widget.extend({},
this.options);
if (typeof n == "string") {
i = {},
s = n.split("."),
n = s.shift();
if (s.length) {
o = i[n] = e.widget.extend({},
this.options[n]);
for (u = 0; u < s.length - 1; u++) o[s[u]] = o[s[u]] || {},
o = o[s[u]];
n = s.pop();
if (r === t) return o[n] === t ? null: o[n];
o[n] = r
} else {
if (r === t) return this.options[n] === t ? null: this.options[n];
i[n] = r
}
}
return this._setOptions(i),
this
},
_setOptions: function(e) {
var t;
for (t in e) this._setOption(t, e[t]);
return this
},
_setOption: function(e, t) {
return this.options[e] = t,
e === "disabled" && (this.widget().toggleClass(this.widgetFullName + "-disabled ui-state-disabled", !!t).attr("aria-disabled", t), this.hoverable.removeClass("ui-state-hover"), this.focusable.removeClass("ui-state-focus")),
this
},
enable: function() {
return this._setOption("disabled", !1)
},
disable: function() {
return this._setOption("disabled", !0)
},
_on: function(t, n, r) {
var i, s = this;
typeof t != "boolean" && (r = n, n = t, t = !1),
r ? (n = i = e(n), this.bindings = this.bindings.add(n)) : (r = n, n = this.element, i = this.widget()),
e.each(r,
function(r, o) {
function u() {
if (!t && (s.options.disabled === !0 || e(this).hasClass("ui-state-disabled"))) return;
return (typeof o == "string" ? s[o] : o).apply(s, arguments)
}
typeof o != "string" && (u.guid = o.guid = o.guid || u.guid || e.guid++);
var a = r.match(/^(\w+)\s*(.*)$/),
f = a[1] + s.eventNamespace,
l = a[2];
l ? i.delegate(l, f, u) : n.bind(f, u)
})
},
_off: function(e, t) {
t = (t || "").split(" ").join(this.eventNamespace + " ") + this.eventNamespace,
e.unbind(t).undelegate(t)
},
_delay: function(e, t) {
function n() {
return (typeof e == "string" ? r[e] : e).apply(r, arguments)
}
var r = this;
return setTimeout(n, t || 0)
},
_hoverable: function(t) {
this.hoverable = this.hoverable.add(t),
this._on(t, {
mouseenter: function(t) {
e(t.currentTarget).addClass("ui-state-hover")
},
mouseleave: function(t) {
e(t.currentTarget).removeClass("ui-state-hover")
}
})
},
_focusable: function(t) {
this.focusable = this.focusable.add(t),
this._on(t, {
focusin: function(t) {
e(t.currentTarget).addClass("ui-state-focus")
},
focusout: function(t) {
e(t.currentTarget).removeClass("ui-state-focus")
}
})
},
_trigger: function(t, n, r) {
var i, s, o = this.options[t];
r = r || {},
n = e.Event(n),
n.type = (t === this.widgetEventPrefix ? t: this.widgetEventPrefix + t).toLowerCase(),
n.target = this.element[0],
s = n.originalEvent;
if (s) for (i in s) i in n || (n[i] = s[i]);
return this.element.trigger(n, r),
!(e.isFunction(o) && o.apply(this.element[0], [n].concat(r)) === !1 || n.isDefaultPrevented())
}
},
e.each({
show: "fadeIn",
hide: "fadeOut"
},
function(t, n) {
e.Widget.prototype["_" + t] = function(r, i, s) {
typeof i == "string" && (i = {
effect: i
});
var o, u = i ? i === !0 || typeof i == "number" ? n: i.effect || n: t;
i = i || {},
typeof i == "number" && (i = {
duration: i
}),
o = !e.isEmptyObject(i),
i.complete = s,
i.delay && r.delay(i.delay),
o && e.effects && (e.effects.effect[u] || e.uiBackCompat !== !1 && e.effects[u]) ? r[t](i) : u !== t && r[u] ? r[u](i.duration, i.easing, s) : r.queue(function(n) {
e(this)[t](),
s && s.call(r[0]),
n()
})
}
}),
e.uiBackCompat !== !1 && (e.Widget.prototype._getCreateOptions = function() {
return e.metadata && e.metadata.get(this.element[0])[this.widgetName]
})
})(jQuery);
/*
* ! jQuery UI - v1.9.2 - 2012-11-23 Includes: jquery.ui.position.js
*/
(function(e, t) {
function h(e, t, n) {
return [parseInt(e[0], 10) * (l.test(e[0]) ? t / 100 : 1), parseInt(e[1], 10) * (l.test(e[1]) ? n / 100 : 1)]
}
function p(t, n) {
return parseInt(e.css(t, n), 10) || 0
}
e.ui = e.ui || {};
var n, r = Math.max,
i = Math.abs,
s = Math.round,
o = /left|center|right/,
u = /top|center|bottom/,
a = /[\+\-]\d+%?/,
f = /^\w+/,
l = /%$/,
c = e.fn.position;
e.position = {
scrollbarWidth: function() {
if (n !== t) return n;
var r, i, s = e("
"),
o = s.children()[0];
return e("body").append(s),
r = o.offsetWidth,
s.css("overflow", "scroll"),
i = o.offsetWidth,
r === i && (i = s[0].clientWidth),
s.remove(),
n = r - i
},
getScrollInfo: function(t) {
var n = t.isWindow ? "": t.element.css("overflow-x"),
r = t.isWindow ? "": t.element.css("overflow-y"),
i = n === "scroll" || n === "auto" && t.width < t.element[0].scrollWidth,
s = r === "scroll" || r === "auto" && t.height < t.element[0].scrollHeight;
return {
width: i ? e.position.scrollbarWidth() : 0,
height: s ? e.position.scrollbarWidth() : 0
}
},
getWithinInfo: function(t) {
var n = e(t || window),
r = e.isWindow(n[0]);
return {
element: n,
isWindow: r,
offset: n.offset() || {
left: 0,
top: 0
},
scrollLeft: n.scrollLeft(),
scrollTop: n.scrollTop(),
width: r ? n.width() : n.outerWidth(),
height: r ? n.height() : n.outerHeight()
}
}
},
e.fn.position = function(t) {
if (!t || !t.of) return c.apply(this, arguments);
t = e.extend({},
t);
var n, l, d, v, m, g = e(t.of),
y = e.position.getWithinInfo(t.within),
b = e.position.getScrollInfo(y),
w = g[0],
E = (t.collision || "flip").split(" "),
S = {};
return w.nodeType === 9 ? (l = g.width(), d = g.height(), v = {
top: 0,
left: 0
}) : e.isWindow(w) ? (l = g.width(), d = g.height(), v = {
top: g.scrollTop(),
left: g.scrollLeft()
}) : w.preventDefault ? (t.at = "left top", l = d = 0, v = {
top: w.pageY,
left: w.pageX
}) : (l = g.outerWidth(), d = g.outerHeight(), v = g.offset()),
m = e.extend({},
v),
e.each(["my", "at"],
function() {
var e = (t[this] || "").split(" "),
n,
r;
e.length === 1 && (e = o.test(e[0]) ? e.concat(["center"]) : u.test(e[0]) ? ["center"].concat(e) : ["center", "center"]),
e[0] = o.test(e[0]) ? e[0] : "center",
e[1] = u.test(e[1]) ? e[1] : "center",
n = a.exec(e[0]),
r = a.exec(e[1]),
S[this] = [n ? n[0] : 0, r ? r[0] : 0],
t[this] = [f.exec(e[0])[0], f.exec(e[1])[0]]
}),
E.length === 1 && (E[1] = E[0]),
t.at[0] === "right" ? m.left += l: t.at[0] === "center" && (m.left += l / 2),
t.at[1] === "bottom" ? m.top += d: t.at[1] === "center" && (m.top += d / 2),
n = h(S.at, l, d),
m.left += n[0],
m.top += n[1],
this.each(function() {
var o, u, a = e(this),
f = a.outerWidth(),
c = a.outerHeight(),
w = p(this, "marginLeft"),
x = p(this, "marginTop"),
T = f + w + p(this, "marginRight") + b.width,
N = c + x + p(this, "marginBottom") + b.height,
C = e.extend({},
m),
k = h(S.my, a.outerWidth(), a.outerHeight());
t.my[0] === "right" ? C.left -= f: t.my[0] === "center" && (C.left -= f / 2),
t.my[1] === "bottom" ? C.top -= c: t.my[1] === "center" && (C.top -= c / 2),
C.left += k[0],
C.top += k[1],
e.support.offsetFractions || (C.left = s(C.left), C.top = s(C.top)),
o = {
marginLeft: w,
marginTop: x
},
e.each(["left", "top"],
function(r, i) {
e.ui.position[E[r]] && e.ui.position[E[r]][i](C, {
targetWidth: l,
targetHeight: d,
elemWidth: f,
elemHeight: c,
collisionPosition: o,
collisionWidth: T,
collisionHeight: N,
offset: [n[0] + k[0], n[1] + k[1]],
my: t.my,
at: t.at,
within: y,
elem: a
})
}),
e.fn.bgiframe && a.bgiframe(),
t.using && (u = function(e) {
var n = v.left - C.left,
s = n + l - f,
o = v.top - C.top,
u = o + d - c,
h = {
target: {
element: g,
left: v.left,
top: v.top,
width: l,
height: d
},
element: {
element: a,
left: C.left,
top: C.top,
width: f,
height: c
},
horizontal: s < 0 ? "left": n > 0 ? "right": "center",
vertical: u < 0 ? "top": o > 0 ? "bottom": "middle"
};
l < f && i(n + s) < l && (h.horizontal = "center"),
d < c && i(o + u) < d && (h.vertical = "middle"),
r(i(n), i(s)) > r(i(o), i(u)) ? h.important = "horizontal": h.important = "vertical",
t.using.call(this, e, h)
}),
a.offset(e.extend(C, {
using: u
}))
})
},
e.ui.position = {
fit: {
left: function(e, t) {
var n = t.within,
i = n.isWindow ? n.scrollLeft: n.offset.left,
s = n.width,
o = e.left - t.collisionPosition.marginLeft,
u = i - o,
a = o + t.collisionWidth - s - i,
f;
t.collisionWidth > s ? u > 0 && a <= 0 ? (f = e.left + u + t.collisionWidth - s - i, e.left += u - f) : a > 0 && u <= 0 ? e.left = i: u > a ? e.left = i + s - t.collisionWidth: e.left = i: u > 0 ? e.left += u: a > 0 ? e.left -= a: e.left = r(e.left - o, e.left)
},
top: function(e, t) {
var n = t.within,
i = n.isWindow ? n.scrollTop: n.offset.top,
s = t.within.height,
o = e.top - t.collisionPosition.marginTop,
u = i - o,
a = o + t.collisionHeight - s - i,
f;
t.collisionHeight > s ? u > 0 && a <= 0 ? (f = e.top + u + t.collisionHeight - s - i, e.top += u - f) : a > 0 && u <= 0 ? e.top = i: u > a ? e.top = i + s - t.collisionHeight: e.top = i: u > 0 ? e.top += u: a > 0 ? e.top -= a: e.top = r(e.top - o, e.top)
}
},
flip: {
left: function(e, t) {
var n = t.within,
r = n.offset.left + n.scrollLeft,
s = n.width,
o = n.isWindow ? n.scrollLeft: n.offset.left,
u = e.left - t.collisionPosition.marginLeft,
a = u - o,
f = u + t.collisionWidth - s - o,
l = t.my[0] === "left" ? -t.elemWidth: t.my[0] === "right" ? t.elemWidth: 0,
c = t.at[0] === "left" ? t.targetWidth: t.at[0] === "right" ? -t.targetWidth: 0,
h = -2 * t.offset[0],
p,
d;
if (a < 0) {
p = e.left + l + c + h + t.collisionWidth - s - r;
if (p < 0 || p < i(a)) e.left += l + c + h
} else if (f > 0) {
d = e.left - t.collisionPosition.marginLeft + l + c + h - o;
if (d > 0 || i(d) < f) e.left += l + c + h
}
},
top: function(e, t) {
var n = t.within,
r = n.offset.top + n.scrollTop,
s = n.height,
o = n.isWindow ? n.scrollTop: n.offset.top,
u = e.top - t.collisionPosition.marginTop,
a = u - o,
f = u + t.collisionHeight - s - o,
l = t.my[1] === "top",
c = l ? -t.elemHeight: t.my[1] === "bottom" ? t.elemHeight: 0,
h = t.at[1] === "top" ? t.targetHeight: t.at[1] === "bottom" ? -t.targetHeight: 0,
p = -2 * t.offset[1],
d,
v;
a < 0 ? (v = e.top + c + h + p + t.collisionHeight - s - r, e.top + c + h + p > a && (v < 0 || v < i(a)) && (e.top += c + h + p)) : f > 0 && (d = e.top - t.collisionPosition.marginTop + c + h + p - o, e.top + c + h + p > f && (d > 0 || i(d) < f) && (e.top += c + h + p))
}
},
flipfit: {
left: function() {
e.ui.position.flip.left.apply(this, arguments),
e.ui.position.fit.left.apply(this, arguments)
},
top: function() {
e.ui.position.flip.top.apply(this, arguments),
e.ui.position.fit.top.apply(this, arguments)
}
}
},
function() {
var t, n, r, i, s, o = document.getElementsByTagName("body")[0],
u = document.createElement("div");
t = document.createElement(o ? "div": "body"),
r = {
visibility: "hidden",
width: 0,
height: 0,
border: 0,
margin: 0,
background: "none"
},
o && e.extend(r, {
position: "absolute",
left: "-1000px",
top: "-1000px"
});
for (s in r) t.style[s] = r[s];
t.appendChild(u),
n = o || document.documentElement,
n.insertBefore(t, n.firstChild),
u.style.cssText = "position: absolute; left: 10.7432222px;",
i = e(u).offset().left,
e.support.offsetFractions = i > 10 && i < 11,
t.innerHTML = "",
n.removeChild(t)
} (),
e.uiBackCompat !== !1 &&
function(e) {
var n = e.fn.position;
e.fn.position = function(r) {
if (!r || !r.offset) return n.call(this, r);
var i = r.offset.split(" "),
s = r.at.split(" ");
return i.length === 1 && (i[1] = i[0]),
/^\d/.test(i[0]) && (i[0] = "+" + i[0]),
/^\d/.test(i[1]) && (i[1] = "+" + i[1]),
s.length === 1 && (/left|center|right/.test(s[0]) ? s[1] = "center": (s[1] = s[0], s[0] = "center")),
n.call(this, e.extend(r, {
at: s[0] + i[0] + " " + s[1] + i[1],
offset: t
}))
}
} (jQuery)
})(jQuery);
/*
* ! jQuery UI - v1.9.2 - 2012-11-23 Includes: jquery.ui.mouse.js
*/
(function(e, t) {
var n = !1;
e(document).mouseup(function(e) {
n = !1
}),
e.widget("ui.mouse", {
version: "1.9.2",
options: {
cancel: "input,textarea,button,select,option",
distance: 1,
delay: 0
},
_mouseInit: function() {
var t = this;
this.element.bind("mousedown." + this.widgetName,
function(e) {
return t._mouseDown(e)
}).bind("click." + this.widgetName,
function(n) {
if (!0 === e.data(n.target, t.widgetName + ".preventClickEvent")) return e.removeData(n.target, t.widgetName + ".preventClickEvent"),
n.stopImmediatePropagation(),
!1
}),
this.started = !1
},
_mouseDestroy: function() {
this.element.unbind("." + this.widgetName),
this._mouseMoveDelegate && e(document).unbind("mousemove." + this.widgetName, this._mouseMoveDelegate).unbind("mouseup." + this.widgetName, this._mouseUpDelegate)
},
_mouseDown: function(t) {
if (n) return;
this._mouseStarted && this._mouseUp(t),
this._mouseDownEvent = t;
var r = this,
i = t.which === 1,
s = typeof this.options.cancel == "string" && t.target.nodeName ? e(t.target).closest(this.options.cancel).length: !1;
if (!i || s || !this._mouseCapture(t)) return ! 0;
this.mouseDelayMet = !this.options.delay,
this.mouseDelayMet || (this._mouseDelayTimer = setTimeout(function() {
r.mouseDelayMet = !0
},
this.options.delay));
if (this._mouseDistanceMet(t) && this._mouseDelayMet(t)) {
this._mouseStarted = this._mouseStart(t) !== !1;
if (!this._mouseStarted) return t.preventDefault(),
!0
}
return ! 0 === e.data(t.target, this.widgetName + ".preventClickEvent") && e.removeData(t.target, this.widgetName + ".preventClickEvent"),
this._mouseMoveDelegate = function(e) {
return r._mouseMove(e)
},
this._mouseUpDelegate = function(e) {
return r._mouseUp(e)
},
e(document).bind("mousemove." + this.widgetName, this._mouseMoveDelegate).bind("mouseup." + this.widgetName, this._mouseUpDelegate),
t.preventDefault(),
n = !0,
!0
},
_mouseMove: function(t) {
return ! e.ui.ie || document.documentMode >= 9 || !!t.button ? this._mouseStarted ? (this._mouseDrag(t), t.preventDefault()) : (this._mouseDistanceMet(t) && this._mouseDelayMet(t) && (this._mouseStarted = this._mouseStart(this._mouseDownEvent, t) !== !1, this._mouseStarted ? this._mouseDrag(t) : this._mouseUp(t)), !this._mouseStarted) : this._mouseUp(t)
},
_mouseUp: function(t) {
return e(document).unbind("mousemove." + this.widgetName, this._mouseMoveDelegate).unbind("mouseup." + this.widgetName, this._mouseUpDelegate),
this._mouseStarted && (this._mouseStarted = !1, t.target === this._mouseDownEvent.target && e.data(t.target, this.widgetName + ".preventClickEvent", !0), this._mouseStop(t)),
!1
},
_mouseDistanceMet: function(e) {
return Math.max(Math.abs(this._mouseDownEvent.pageX - e.pageX), Math.abs(this._mouseDownEvent.pageY - e.pageY)) >= this.options.distance
},
_mouseDelayMet: function(e) {
return this.mouseDelayMet
},
_mouseStart: function(e) {},
_mouseDrag: function(e) {},
_mouseStop: function(e) {},
_mouseCapture: function(e) {
return ! 0
}
})
})(jQuery);
/*
* ! jQuery UI - v1.9.2 - 2012-11-23 Includes: jquery.ui.button.js
*/
(function(e, t) {
var n, r, i, s, o = "ui-button ui-widget ui-state-default ui-corner-all",
u = "ui-state-hover ui-state-active ",
a = "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",
f = function() {
var t = e(this).find(":ui-button");
setTimeout(function() {
t.button("refresh")
},
1)
},
l = function(t) {
var n = t.name,
r = t.form,
i = e([]);
return n && (r ? i = e(r).find("[name='" + n + "']") : i = e("[name='" + n + "']", t.ownerDocument).filter(function() {
return ! this.form
})),
i
};
e.widget("ui.button", {
version: "1.9.2",
defaultElement: "