" !== c[1] || xt.test(o) ? 0 : s : s.firstChild, i = o && o.childNodes.length;
while (i--) b.nodeName(l = o.childNodes[i], "tbody") && !l.childNodes.length && o.removeChild(l)
}
b.merge(d, s.childNodes), s.textContent = "";
while (s.firstChild) s.removeChild(s.firstChild);
s = f.lastChild
} else d.push(t.createTextNode(o));
s && f.removeChild(s), b.support.appendChecked || b.grep(Ot(d, "input"), Bt), h = 0;
while (o = d[h++])
if ((!r || -1 === b.inArray(o, r)) && (a = b.contains(o.ownerDocument, o), s = Ot(f.appendChild(o), "script"), a && Mt(s), n)) {
i = 0;
while (o = s[i++]) kt.test(o.type || "") && n.push(o)
} return s = null, f
},
cleanData: function(e, t) {
var n, r, o, a, s = 0,
u = b.expando,
l = b.cache,
p = b.support.deleteExpando,
f = b.event.special;
for (; null != (n = e[s]); s++)
if ((t || b.acceptData(n)) && (o = n[u], a = o && l[o])) {
if (a.events)
for (r in a.events) f[r] ? b.event.remove(n, r) : b.removeEvent(n, r, a.handle);
l[o] && (delete l[o], p ? delete n[u] : typeof n.removeAttribute !== i ? n.removeAttribute(u) : n[u] = null, c.push(o))
}
}
});
var Pt, Rt, Wt, $t = /alpha\([^)]*\)/i,
It = /opacity\s*=\s*([^)]*)/,
zt = /^(top|right|bottom|left)$/,
Xt = /^(none|table(?!-c[ea]).+)/,
Ut = /^margin/,
Vt = RegExp("^(" + x + ")(.*)$", "i"),
Yt = RegExp("^(" + x + ")(?!px)[a-z%]+$", "i"),
Jt = RegExp("^([+-])=(" + x + ")", "i"),
Gt = {
BODY: "block"
},
Qt = {
position: "absolute",
visibility: "hidden",
display: "block"
},
Kt = {
letterSpacing: 0,
fontWeight: 400
},
Zt = ["Top", "Right", "Bottom", "Left"],
en = ["Webkit", "O", "Moz", "ms"];
function tn(e, t) {
if (t in e) return t;
var n = t.charAt(0).toUpperCase() + t.slice(1),
r = t,
i = en.length;
while (i--)
if (t = en[i] + n, t in e) return t;
return r
}
function nn(e, t) {
return e = t || e, "none" === b.css(e, "display") || !b.contains(e.ownerDocument, e)
}
function rn(e, t) {
var n, r, i, o = [],
a = 0,
s = e.length;
for (; s > a; a++) r = e[a], r.style && (o[a] = b._data(r, "olddisplay"), n = r.style.display, t ? (o[a] || "none" !== n || (r.style.display = ""), "" === r.style.display && nn(r) && (o[a] = b._data(r, "olddisplay", un(r.nodeName)))) : o[a] || (i = nn(r), (n && "none" !== n || !i) && b._data(r, "olddisplay", i ? n : b.css(r, "display"))));
for (a = 0; s > a; a++) r = e[a], r.style && (t && "none" !== r.style.display && "" !== r.style.display || (r.style.display = t ? o[a] || "" : "none"));
return e
}
b.fn.extend({
css: function(e, n) {
return b.access(this, function(e, n, r) {
var i, o, a = {},
s = 0;
if (b.isArray(n)) {
for (o = Rt(e), i = n.length; i > s; s++) a[n[s]] = b.css(e, n[s], !1, o);
return a
}
return r !== t ? b.style(e, n, r) : b.css(e, n)
}, e, n, arguments.length > 1)
},
show: function() {
return rn(this, !0)
},
hide: function() {
return rn(this)
},
toggle: function(e) {
var t = "boolean" == typeof e;
return this.each(function() {
(t ? e : nn(this)) ? b(this).show(): b(this).hide()
})
}
}), b.extend({
cssHooks: {
opacity: {
get: function(e, t) {
if (t) {
var n = Wt(e, "opacity");
return "" === n ? "1" : n
}
}
}
},
cssNumber: {
columnCount: !0,
fillOpacity: !0,
fontWeight: !0,
lineHeight: !0,
opacity: !0,
orphans: !0,
widows: !0,
zIndex: !0,
zoom: !0
},
cssProps: {
"float": b.support.cssFloat ? "cssFloat" : "styleFloat"
},
style: function(e, n, r, i) {
if (e && 3 !== e.nodeType && 8 !== e.nodeType && e.style) {
var o, a, s, u = b.camelCase(n),
l = e.style;
if (n = b.cssProps[u] || (b.cssProps[u] = tn(l, u)), s = b.cssHooks[n] || b.cssHooks[u], r === t) return s && "get" in s && (o = s.get(e, !1, i)) !== t ? o : l[n];
if (a = typeof r, "string" === a && (o = Jt.exec(r)) && (r = (o[1] + 1) * o[2] + parseFloat(b.css(e, n)), a = "number"), !(null == r || "number" === a && isNaN(r) || ("number" !== a || b.cssNumber[u] || (r += "px"), b.support.clearCloneStyle || "" !== r || 0 !== n.indexOf("background") || (l[n] = "inherit"), s && "set" in s && (r = s.set(e, r, i)) === t))) try {
l[n] = r
} catch (c) {}
}
},
css: function(e, n, r, i) {
var o, a, s, u = b.camelCase(n);
return n = b.cssProps[u] || (b.cssProps[u] = tn(e.style, u)), s = b.cssHooks[n] || b.cssHooks[u], s && "get" in s && (a = s.get(e, !0, r)), a === t && (a = Wt(e, n, i)), "normal" === a && n in Kt && (a = Kt[n]), "" === r || r ? (o = parseFloat(a), r === !0 || b.isNumeric(o) ? o || 0 : a) : a
},
swap: function(e, t, n, r) {
var i, o, a = {};
for (o in t) a[o] = e.style[o], e.style[o] = t[o];
i = n.apply(e, r || []);
for (o in t) e.style[o] = a[o];
return i
}
}), e.getComputedStyle ? (Rt = function(t) {
return e.getComputedStyle(t, null)
}, Wt = function(e, n, r) {
var i, o, a, s = r || Rt(e),
u = s ? s.getPropertyValue(n) || s[n] : t,
l = e.style;
return s && ("" !== u || b.contains(e.ownerDocument, e) || (u = b.style(e, n)), Yt.test(u) && Ut.test(n) && (i = l.width, o = l.minWidth, a = l.maxWidth, l.minWidth = l.maxWidth = l.width = u, u = s.width, l.width = i, l.minWidth = o, l.maxWidth = a)), u
}) : o.documentElement.currentStyle && (Rt = function(e) {
return e.currentStyle
}, Wt = function(e, n, r) {
var i, o, a, s = r || Rt(e),
u = s ? s[n] : t,
l = e.style;
return null == u && l && l[n] && (u = l[n]), Yt.test(u) && !zt.test(n) && (i = l.left, o = e.runtimeStyle, a = o && o.left, a && (o.left = e.currentStyle.left), l.left = "fontSize" === n ? "1em" : u, u = l.pixelLeft + "px", l.left = i, a && (o.left = a)), "" === u ? "auto" : u
});
function on(e, t, n) {
var r = Vt.exec(t);
return r ? Math.max(0, r[1] - (n || 0)) + (r[2] || "px") : t
}
function an(e, t, n, r, i) {
var o = n === (r ? "border" : "content") ? 4 : "width" === t ? 1 : 0,
a = 0;
for (; 4 > o; o += 2) "margin" === n && (a += b.css(e, n + Zt[o], !0, i)), r ? ("content" === n && (a -= b.css(e, "padding" + Zt[o], !0, i)), "margin" !== n && (a -= b.css(e, "border" + Zt[o] + "Width", !0, i))) : (a += b.css(e, "padding" + Zt[o], !0, i), "padding" !== n && (a += b.css(e, "border" + Zt[o] + "Width", !0, i)));
return a
}
function sn(e, t, n) {
var r = !0,
i = "width" === t ? e.offsetWidth : e.offsetHeight,
o = Rt(e),
a = b.support.boxSizing && "border-box" === b.css(e, "boxSizing", !1, o);
if (0 >= i || null == i) {
if (i = Wt(e, t, o), (0 > i || null == i) && (i = e.style[t]), Yt.test(i)) return i;
r = a && (b.support.boxSizingReliable || i === e.style[t]), i = parseFloat(i) || 0
}
return i + an(e, t, n || (a ? "border" : "content"), r, o) + "px"
}
function un(e) {
var t = o,
n = Gt[e];
return n || (n = ln(e, t), "none" !== n && n || (Pt = (Pt || b("").css("cssText", "display:block !important")).appendTo(t.documentElement), t = (Pt[0].contentWindow || Pt[0].contentDocument).document, t.write(""), t.close(), n = ln(e, t), Pt.detach()), Gt[e] = n), n
}
function ln(e, t) {
var n = b(t.createElement(e)).appendTo(t.body),
r = b.css(n[0], "display");
return n.remove(), r
}
b.each(["height", "width"], function(e, n) {
b.cssHooks[n] = {
get: function(e, r, i) {
return r ? 0 === e.offsetWidth && Xt.test(b.css(e, "display")) ? b.swap(e, Qt, function() {
return sn(e, n, i)
}) : sn(e, n, i) : t
},
set: function(e, t, r) {
var i = r && Rt(e);
return on(e, t, r ? an(e, n, r, b.support.boxSizing && "border-box" === b.css(e, "boxSizing", !1, i), i) : 0)
}
}
}), b.support.opacity || (b.cssHooks.opacity = {
get: function(e, t) {
return It.test((t && e.currentStyle ? e.currentStyle.filter : e.style.filter) || "") ? .01 * parseFloat(RegExp.$1) + "" : t ? "1" : ""
},
set: function(e, t) {
var n = e.style,
r = e.currentStyle,
i = b.isNumeric(t) ? "alpha(opacity=" + 100 * t + ")" : "",
o = r && r.filter || n.filter || "";
n.zoom = 1, (t >= 1 || "" === t) && "" === b.trim(o.replace($t, "")) && n.removeAttribute && (n.removeAttribute("filter"), "" === t || r && !r.filter) || (n.filter = $t.test(o) ? o.replace($t, i) : o + " " + i)
}
}), b(function() {
b.support.reliableMarginRight || (b.cssHooks.marginRight = {
get: function(e, n) {
return n ? b.swap(e, {
display: "inline-block"
}, Wt, [e, "marginRight"]) : t
}
}), !b.support.pixelPosition && b.fn.position && b.each(["top", "left"], function(e, n) {
b.cssHooks[n] = {
get: function(e, r) {
return r ? (r = Wt(e, n), Yt.test(r) ? b(e).position()[n] + "px" : r) : t
}
}
})
}), b.expr && b.expr.filters && (b.expr.filters.hidden = function(e) {
return 0 >= e.offsetWidth && 0 >= e.offsetHeight || !b.support.reliableHiddenOffsets && "none" === (e.style && e.style.display || b.css(e, "display"))
}, b.expr.filters.visible = function(e) {
return !b.expr.filters.hidden(e)
}), b.each({
margin: "",
padding: "",
border: "Width"
}, function(e, t) {
b.cssHooks[e + t] = {
expand: function(n) {
var r = 0,
i = {},
o = "string" == typeof n ? n.split(" ") : [n];
for (; 4 > r; r++) i[e + Zt[r] + t] = o[r] || o[r - 2] || o[0];
return i
}
}, Ut.test(e) || (b.cssHooks[e + t].set = on)
});
var cn = /%20/g,
pn = /\[\]$/,
fn = /\r?\n/g,
dn = /^(?:submit|button|image|reset|file)$/i,
hn = /^(?:input|select|textarea|keygen)/i;
b.fn.extend({
serialize: function() {
return b.param(this.serializeArray())
},
serializeArray: function() {
return this.map(function() {
var e = b.prop(this, "elements");
return e ? b.makeArray(e) : this
}).filter(function() {
var e = this.type;
return this.name && !b(this).is(":disabled") && hn.test(this.nodeName) && !dn.test(e) && (this.checked || !Nt.test(e))
}).map(function(e, t) {
var n = b(this).val();
return null == n ? null : b.isArray(n) ? b.map(n, function(e) {
return {
name: t.name,
value: e.replace(fn, "\r\n")
}
}) : {
name: t.name,
value: n.replace(fn, "\r\n")
}
}).get()
}
}), b.param = function(e, n) {
var r, i = [],
o = function(e, t) {
t = b.isFunction(t) ? t() : null == t ? "" : t, i[i.length] = encodeURIComponent(e) + "=" + encodeURIComponent(t)
};
if (n === t && (n = b.ajaxSettings && b.ajaxSettings.traditional), b.isArray(e) || e.jquery && !b.isPlainObject(e)) b.each(e, function() {
o(this.name, this.value)
});
else
for (r in e) gn(r, e[r], n, o);
return i.join("&").replace(cn, "+")
};
function gn(e, t, n, r) {
var i;
if (b.isArray(t)) b.each(t, function(t, i) {
n || pn.test(e) ? r(e, i) : gn(e + "[" + ("object" == typeof i ? t : "") + "]", i, n, r)
});
else if (n || "object" !== b.type(t)) r(e, t);
else
for (i in t) gn(e + "[" + i + "]", t[i], n, r)
}
b.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "), function(e, t) {
b.fn[t] = function(e, n) {
return arguments.length > 0 ? this.on(t, null, e, n) : this.trigger(t)
}
}), b.fn.hover = function(e, t) {
return this.mouseenter(e).mouseleave(t || e)
};
var mn, yn, vn = b.now(),
bn = /\?/,
xn = /#.*$/,
wn = /([?&])_=[^&]*/,
Tn = /^(.*?):[ \t]*([^\r\n]*)\r?$/gm,
Nn = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
Cn = /^(?:GET|HEAD)$/,
kn = /^\/\//,
En = /^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,
Sn = b.fn.load,
An = {},
jn = {},
Dn = "*/".concat("*");
try {
yn = a.href
} catch (Ln) {
yn = o.createElement("a"), yn.href = "", yn = yn.href
}
mn = En.exec(yn.toLowerCase()) || [];
function Hn(e) {
return function(t, n) {
"string" != typeof t && (n = t, t = "*");
var r, i = 0,
o = t.toLowerCase().match(w) || [];
if (b.isFunction(n))
while (r = o[i++]) "+" === r[0] ? (r = r.slice(1) || "*", (e[r] = e[r] || []).unshift(n)) : (e[r] = e[r] || []).push(n)
}
}
function qn(e, n, r, i) {
var o = {},
a = e === jn;
function s(u) {
var l;
return o[u] = !0, b.each(e[u] || [], function(e, u) {
var c = u(n, r, i);
return "string" != typeof c || a || o[c] ? a ? !(l = c) : t : (n.dataTypes.unshift(c), s(c), !1)
}), l
}
return s(n.dataTypes[0]) || !o["*"] && s("*")
}
function Mn(e, n) {
var r, i, o = b.ajaxSettings.flatOptions || {};
for (i in n) n[i] !== t && ((o[i] ? e : r || (r = {}))[i] = n[i]);
return r && b.extend(!0, e, r), e
}
b.fn.load = function(e, n, r) {
if ("string" != typeof e && Sn) return Sn.apply(this, arguments);
var i, o, a, s = this,
u = e.indexOf(" ");
return u >= 0 && (i = e.slice(u, e.length), e = e.slice(0, u)), b.isFunction(n) ? (r = n, n = t) : n && "object" == typeof n && (a = "POST"), s.length > 0 && b.ajax({
url: e,
type: a,
dataType: "html",
data: n
}).done(function(e) {
o = arguments, s.html(i ? b("").append(b.parseHTML(e)).find(i) : e)
}).complete(r && function(e, t) {
s.each(r, o || [e.responseText, t, e])
}), this
}, b.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], function(e, t) {
b.fn[t] = function(e) {
return this.on(t, e)
}
}), b.each(["get", "post"], function(e, n) {
b[n] = function(e, r, i, o) {
return b.isFunction(r) && (o = o || i, i = r, r = t), b.ajax({
url: e,
type: n,
dataType: o,
data: r,
success: i
})
}
}), b.extend({
active: 0,
lastModified: {},
etag: {},
ajaxSettings: {
url: yn,
type: "GET",
isLocal: Nn.test(mn[1]),
global: !0,
processData: !0,
async: !0,
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
accepts: {
"*": Dn,
text: "text/plain",
html: "text/html",
xml: "application/xml, text/xml",
json: "application/json, text/javascript"
},
contents: {
xml: /xml/,
html: /html/,
json: /json/
},
responseFields: {
xml: "responseXML",
text: "responseText"
},
converters: {
"* text": e.String,
"text html": !0,
"text json": b.parseJSON,
"text xml": b.parseXML
},
flatOptions: {
url: !0,
context: !0
}
},
ajaxSetup: function(e, t) {
return t ? Mn(Mn(e, b.ajaxSettings), t) : Mn(b.ajaxSettings, e)
},
ajaxPrefilter: Hn(An),
ajaxTransport: Hn(jn),
ajax: function(e, n) {
"object" == typeof e && (n = e, e = t), n = n || {};
var r, i, o, a, s, u, l, c, p = b.ajaxSetup({}, n),
f = p.context || p,
d = p.context && (f.nodeType || f.jquery) ? b(f) : b.event,
h = b.Deferred(),
g = b.Callbacks("once memory"),
m = p.statusCode || {},
y = {},
v = {},
x = 0,
T = "canceled",
N = {
readyState: 0,
getResponseHeader: function(e) {
var t;
if (2 === x) {
if (!c) {
c = {};
while (t = Tn.exec(a)) c[t[1].toLowerCase()] = t[2]
}
t = c[e.toLowerCase()]
}
return null == t ? null : t
},
getAllResponseHeaders: function() {
return 2 === x ? a : null
},
setRequestHeader: function(e, t) {
var n = e.toLowerCase();
return x || (e = v[n] = v[n] || e, y[e] = t), this
},
overrideMimeType: function(e) {
return x || (p.mimeType = e), this
},
statusCode: function(e) {
var t;
if (e)
if (2 > x)
for (t in e) m[t] = [m[t], e[t]];
else N.always(e[N.status]);
return this
},
abort: function(e) {
var t = e || T;
return l && l.abort(t), k(0, t), this
}
};
if (h.promise(N).complete = g.add, N.success = N.done, N.error = N.fail, p.url = ((e || p.url || yn) + "").replace(xn, "").replace(kn, mn[1] + "//"), p.type = n.method || n.type || p.method || p.type, p.dataTypes = b.trim(p.dataType || "*").toLowerCase().match(w) || [""], null == p.crossDomain && (r = En.exec(p.url.toLowerCase()), p.crossDomain = !(!r || r[1] === mn[1] && r[2] === mn[2] && (r[3] || ("http:" === r[1] ? 80 : 443)) == (mn[3] || ("http:" === mn[1] ? 80 : 443)))), p.data && p.processData && "string" != typeof p.data && (p.data = b.param(p.data, p.traditional)), qn(An, p, n, N), 2 === x) return N;
u = p.global, u && 0 === b.active++ && b.event.trigger("ajaxStart"), p.type = p.type.toUpperCase(), p.hasContent = !Cn.test(p.type), o = p.url, p.hasContent || (p.data && (o = p.url += (bn.test(o) ? "&" : "?") + p.data, delete p.data), p.cache === !1 && (p.url = wn.test(o) ? o.replace(wn, "$1_=" + vn++) : o + (bn.test(o) ? "&" : "?") + "_=" + vn++)), p.ifModified && (b.lastModified[o] && N.setRequestHeader("If-Modified-Since", b.lastModified[o]), b.etag[o] && N.setRequestHeader("If-None-Match", b.etag[o])), (p.data && p.hasContent && p.contentType !== !1 || n.contentType) && N.setRequestHeader("Content-Type", p.contentType), N.setRequestHeader("Accept", p.dataTypes[0] && p.accepts[p.dataTypes[0]] ? p.accepts[p.dataTypes[0]] + ("*" !== p.dataTypes[0] ? ", " + Dn + "; q=0.01" : "") : p.accepts["*"]);
for (i in p.headers) N.setRequestHeader(i, p.headers[i]);
if (p.beforeSend && (p.beforeSend.call(f, N, p) === !1 || 2 === x)) return N.abort();
T = "abort";
for (i in {
success: 1,
error: 1,
complete: 1
}) N[i](p[i]);
if (l = qn(jn, p, n, N)) {
N.readyState = 1, u && d.trigger("ajaxSend", [N, p]), p.async && p.timeout > 0 && (s = setTimeout(function() {
N.abort("timeout")
}, p.timeout));
try {
x = 1, l.send(y, k)
} catch (C) {
if (!(2 > x)) throw C;
k(-1, C)
}
} else k(-1, "No Transport");
function k(e, n, r, i) {
var c, y, v, w, T, C = n;
2 !== x && (x = 2, s && clearTimeout(s), l = t, a = i || "", N.readyState = e > 0 ? 4 : 0, r && (w = _n(p, N, r)), e >= 200 && 300 > e || 304 === e ? (p.ifModified && (T = N.getResponseHeader("Last-Modified"), T && (b.lastModified[o] = T), T = N.getResponseHeader("etag"), T && (b.etag[o] = T)), 204 === e ? (c = !0, C = "nocontent") : 304 === e ? (c = !0, C = "notmodified") : (c = Fn(p, w), C = c.state, y = c.data, v = c.error, c = !v)) : (v = C, (e || !C) && (C = "error", 0 > e && (e = 0))), N.status = e, N.statusText = (n || C) + "", c ? h.resolveWith(f, [y, C, N]) : h.rejectWith(f, [N, C, v]), N.statusCode(m), m = t, u && d.trigger(c ? "ajaxSuccess" : "ajaxError", [N, p, c ? y : v]), g.fireWith(f, [N, C]), u && (d.trigger("ajaxComplete", [N, p]), --b.active || b.event.trigger("ajaxStop")))
}
return N
},
getScript: function(e, n) {
return b.get(e, t, n, "script")
},
getJSON: function(e, t, n) {
return b.get(e, t, n, "json")
}
});
function _n(e, n, r) {
var i, o, a, s, u = e.contents,
l = e.dataTypes,
c = e.responseFields;
for (s in c) s in r && (n[c[s]] = r[s]);
while ("*" === l[0]) l.shift(), o === t && (o = e.mimeType || n.getResponseHeader("Content-Type"));
if (o)
for (s in u)
if (u[s] && u[s].test(o)) {
l.unshift(s);
break
} if (l[0] in r) a = l[0];
else {
for (s in r) {
if (!l[0] || e.converters[s + " " + l[0]]) {
a = s;
break
}
i || (i = s)
}
a = a || i
}
return a ? (a !== l[0] && l.unshift(a), r[a]) : t
}
function Fn(e, t) {
var n, r, i, o, a = {},
s = 0,
u = e.dataTypes.slice(),
l = u[0];
if (e.dataFilter && (t = e.dataFilter(t, e.dataType)), u[1])
for (i in e.converters) a[i.toLowerCase()] = e.converters[i];
for (; r = u[++s];)
if ("*" !== r) {
if ("*" !== l && l !== r) {
if (i = a[l + " " + r] || a["* " + r], !i)
for (n in a)
if (o = n.split(" "), o[1] === r && (i = a[l + " " + o[0]] || a["* " + o[0]])) {
i === !0 ? i = a[n] : a[n] !== !0 && (r = o[0], u.splice(s--, 0, r));
break
} if (i !== !0)
if (i && e["throws"]) t = i(t);
else try {
t = i(t)
} catch (c) {
return {
state: "parsererror",
error: i ? c : "No conversion from " + l + " to " + r
}
}
}
l = r
} return {
state: "success",
data: t
}
}
b.ajaxSetup({
accepts: {
script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
},
contents: {
script: /(?:java|ecma)script/
},
converters: {
"text script": function(e) {
return b.globalEval(e), e
}
}
}), b.ajaxPrefilter("script", function(e) {
e.cache === t && (e.cache = !1), e.crossDomain && (e.type = "GET", e.global = !1)
}), b.ajaxTransport("script", function(e) {
if (e.crossDomain) {
var n, r = o.head || b("head")[0] || o.documentElement;
return {
send: function(t, i) {
n = o.createElement("script"), n.async = !0, e.scriptCharset && (n.charset = e.scriptCharset), n.src = e.url, n.onload = n.onreadystatechange = function(e, t) {
(t || !n.readyState || /loaded|complete/.test(n.readyState)) && (n.onload = n.onreadystatechange = null, n.parentNode && n.parentNode.removeChild(n), n = null, t || i(200, "success"))
}, r.insertBefore(n, r.firstChild)
},
abort: function() {
n && n.onload(t, !0)
}
}
}
});
var On = [],
Bn = /(=)\?(?=&|$)|\?\?/;
b.ajaxSetup({
jsonp: "callback",
jsonpCallback: function() {
var e = On.pop() || b.expando + "_" + vn++;
return this[e] = !0, e
}
}), b.ajaxPrefilter("json jsonp", function(n, r, i) {
var o, a, s, u = n.jsonp !== !1 && (Bn.test(n.url) ? "url" : "string" == typeof n.data && !(n.contentType || "").indexOf("application/x-www-form-urlencoded") && Bn.test(n.data) && "data");
return u || "jsonp" === n.dataTypes[0] ? (o = n.jsonpCallback = b.isFunction(n.jsonpCallback) ? n.jsonpCallback() : n.jsonpCallback, u ? n[u] = n[u].replace(Bn, "$1" + o) : n.jsonp !== !1 && (n.url += (bn.test(n.url) ? "&" : "?") + n.jsonp + "=" + o), n.converters["script json"] = function() {
return s || b.error(o + " was not called"), s[0]
}, n.dataTypes[0] = "json", a = e[o], e[o] = function() {
s = arguments
}, i.always(function() {
e[o] = a, n[o] && (n.jsonpCallback = r.jsonpCallback, On.push(o)), s && b.isFunction(a) && a(s[0]), s = a = t
}), "script") : t
});
var Pn, Rn, Wn = 0,
$n = e.ActiveXObject && function() {
var e;
for (e in Pn) Pn[e](t, !0)
};
function In() {
try {
return new e.XMLHttpRequest
} catch (t) {}
}
function zn() {
try {
return new e.ActiveXObject("Microsoft.XMLHTTP")
} catch (t) {}
}
b.ajaxSettings.xhr = e.ActiveXObject ? function() {
return !this.isLocal && In() || zn()
} : In, Rn = b.ajaxSettings.xhr(), b.support.cors = !!Rn && "withCredentials" in Rn, Rn = b.support.ajax = !!Rn, Rn && b.ajaxTransport(function(n) {
if (!n.crossDomain || b.support.cors) {
var r;
return {
send: function(i, o) {
var a, s, u = n.xhr();
if (n.username ? u.open(n.type, n.url, n.async, n.username, n.password) : u.open(n.type, n.url, n.async), n.xhrFields)
for (s in n.xhrFields) u[s] = n.xhrFields[s];
n.mimeType && u.overrideMimeType && u.overrideMimeType(n.mimeType), n.crossDomain || i["X-Requested-With"] || (i["X-Requested-With"] = "XMLHttpRequest");
try {
for (s in i) u.setRequestHeader(s, i[s])
} catch (l) {}
u.send(n.hasContent && n.data || null), r = function(e, i) {
var s, l, c, p;
try {
if (r && (i || 4 === u.readyState))
if (r = t, a && (u.onreadystatechange = b.noop, $n && delete Pn[a]), i) 4 !== u.readyState && u.abort();
else {
p = {}, s = u.status, l = u.getAllResponseHeaders(), "string" == typeof u.responseText && (p.text = u.responseText);
try {
c = u.statusText
} catch (f) {
c = ""
}
s || !n.isLocal || n.crossDomain ? 1223 === s && (s = 204) : s = p.text ? 200 : 404
}
} catch (d) {
i || o(-1, d)
}
p && o(s, c, p, l)
}, n.async ? 4 === u.readyState ? setTimeout(r) : (a = ++Wn, $n && (Pn || (Pn = {}, b(e).unload($n)), Pn[a] = r), u.onreadystatechange = r) : r()
},
abort: function() {
r && r(t, !0)
}
}
}
});
var Xn, Un, Vn = /^(?:toggle|show|hide)$/,
Yn = RegExp("^(?:([+-])=|)(" + x + ")([a-z%]*)$", "i"),
Jn = /queueHooks$/,
Gn = [nr],
Qn = {
"*": [function(e, t) {
var n, r, i = this.createTween(e, t),
o = Yn.exec(t),
a = i.cur(),
s = +a || 0,
u = 1,
l = 20;
if (o) {
if (n = +o[2], r = o[3] || (b.cssNumber[e] ? "" : "px"), "px" !== r && s) {
s = b.css(i.elem, e, !0) || n || 1;
do u = u || ".5", s /= u, b.style(i.elem, e, s + r); while (u !== (u = i.cur() / a) && 1 !== u && --l)
}
i.unit = r, i.start = s, i.end = o[1] ? s + (o[1] + 1) * n : n
}
return i
}]
};
function Kn() {
return setTimeout(function() {
Xn = t
}), Xn = b.now()
}
function Zn(e, t) {
b.each(t, function(t, n) {
var r = (Qn[t] || []).concat(Qn["*"]),
i = 0,
o = r.length;
for (; o > i; i++)
if (r[i].call(e, t, n)) return
})
}
function er(e, t, n) {
var r, i, o = 0,
a = Gn.length,
s = b.Deferred().always(function() {
delete u.elem
}),
u = function() {
if (i) return !1;
var t = Xn || Kn(),
n = Math.max(0, l.startTime + l.duration - t),
r = n / l.duration || 0,
o = 1 - r,
a = 0,
u = l.tweens.length;
for (; u > a; a++) l.tweens[a].run(o);
return s.notifyWith(e, [l, o, n]), 1 > o && u ? n : (s.resolveWith(e, [l]), !1)
},
l = s.promise({
elem: e,
props: b.extend({}, t),
opts: b.extend(!0, {
specialEasing: {}
}, n),
originalProperties: t,
originalOptions: n,
startTime: Xn || Kn(),
duration: n.duration,
tweens: [],
createTween: function(t, n) {
var r = b.Tween(e, l.opts, t, n, l.opts.specialEasing[t] || l.opts.easing);
return l.tweens.push(r), r
},
stop: function(t) {
var n = 0,
r = t ? l.tweens.length : 0;
if (i) return this;
for (i = !0; r > n; n++) l.tweens[n].run(1);
return t ? s.resolveWith(e, [l, t]) : s.rejectWith(e, [l, t]), this
}
}),
c = l.props;
for (tr(c, l.opts.specialEasing); a > o; o++)
if (r = Gn[o].call(l, e, c, l.opts)) return r;
return Zn(l, c), b.isFunction(l.opts.start) && l.opts.start.call(e, l), b.fx.timer(b.extend(u, {
elem: e,
anim: l,
queue: l.opts.queue
})), l.progress(l.opts.progress).done(l.opts.done, l.opts.complete).fail(l.opts.fail).always(l.opts.always)
}
function tr(e, t) {
var n, r, i, o, a;
for (i in e)
if (r = b.camelCase(i), o = t[r], n = e[i], b.isArray(n) && (o = n[1], n = e[i] = n[0]), i !== r && (e[r] = n, delete e[i]), a = b.cssHooks[r], a && "expand" in a) {
n = a.expand(n), delete e[r];
for (i in n) i in e || (e[i] = n[i], t[i] = o)
} else t[r] = o
}
b.Animation = b.extend(er, {
tweener: function(e, t) {
b.isFunction(e) ? (t = e, e = ["*"]) : e = e.split(" ");
var n, r = 0,
i = e.length;
for (; i > r; r++) n = e[r], Qn[n] = Qn[n] || [], Qn[n].unshift(t)
},
prefilter: function(e, t) {
t ? Gn.unshift(e) : Gn.push(e)
}
});
function nr(e, t, n) {
var r, i, o, a, s, u, l, c, p, f = this,
d = e.style,
h = {},
g = [],
m = e.nodeType && nn(e);
n.queue || (c = b._queueHooks(e, "fx"), null == c.unqueued && (c.unqueued = 0, p = c.empty.fire, c.empty.fire = function() {
c.unqueued || p()
}), c.unqueued++, f.always(function() {
f.always(function() {
c.unqueued--, b.queue(e, "fx").length || c.empty.fire()
})
})), 1 === e.nodeType && ("height" in t || "width" in t) && (n.overflow = [d.overflow, d.overflowX, d.overflowY], "inline" === b.css(e, "display") && "none" === b.css(e, "float") && (b.support.inlineBlockNeedsLayout && "inline" !== un(e.nodeName) ? d.zoom = 1 : d.display = "inline-block")), n.overflow && (d.overflow = "hidden", b.support.shrinkWrapBlocks || f.always(function() {
d.overflow = n.overflow[0], d.overflowX = n.overflow[1], d.overflowY = n.overflow[2]
}));
for (i in t)
if (a = t[i], Vn.exec(a)) {
if (delete t[i], u = u || "toggle" === a, a === (m ? "hide" : "show")) continue;
g.push(i)
} if (o = g.length) {
s = b._data(e, "fxshow") || b._data(e, "fxshow", {}), "hidden" in s && (m = s.hidden), u && (s.hidden = !m), m ? b(e).show() : f.done(function() {
b(e).hide()
}), f.done(function() {
var t;
b._removeData(e, "fxshow");
for (t in h) b.style(e, t, h[t])
});
for (i = 0; o > i; i++) r = g[i], l = f.createTween(r, m ? s[r] : 0), h[r] = s[r] || b.style(e, r), r in s || (s[r] = l.start, m && (l.end = l.start, l.start = "width" === r || "height" === r ? 1 : 0))
}
}
function rr(e, t, n, r, i) {
return new rr.prototype.init(e, t, n, r, i)
}
b.Tween = rr, rr.prototype = {
constructor: rr,
init: function(e, t, n, r, i, o) {
this.elem = e, this.prop = n, this.easing = i || "swing", this.options = t, this.start = this.now = this.cur(), this.end = r, this.unit = o || (b.cssNumber[n] ? "" : "px")
},
cur: function() {
var e = rr.propHooks[this.prop];
return e && e.get ? e.get(this) : rr.propHooks._default.get(this)
},
run: function(e) {
var t, n = rr.propHooks[this.prop];
return this.pos = t = this.options.duration ? b.easing[this.easing](e, this.options.duration * e, 0, 1, this.options.duration) : e, this.now = (this.end - this.start) * t + this.start, this.options.step && this.options.step.call(this.elem, this.now, this), n && n.set ? n.set(this) : rr.propHooks._default.set(this), this
}
}, rr.prototype.init.prototype = rr.prototype, rr.propHooks = {
_default: {
get: function(e) {
var t;
return null == e.elem[e.prop] || e.elem.style && null != e.elem.style[e.prop] ? (t = b.css(e.elem, e.prop, ""), t && "auto" !== t ? t : 0) : e.elem[e.prop]
},
set: function(e) {
b.fx.step[e.prop] ? b.fx.step[e.prop](e) : e.elem.style && (null != e.elem.style[b.cssProps[e.prop]] || b.cssHooks[e.prop]) ? b.style(e.elem, e.prop, e.now + e.unit) : e.elem[e.prop] = e.now
}
}
}, rr.propHooks.scrollTop = rr.propHooks.scrollLeft = {
set: function(e) {
e.elem.nodeType && e.elem.parentNode && (e.elem[e.prop] = e.now)
}
}, b.each(["toggle", "show", "hide"], function(e, t) {
var n = b.fn[t];
b.fn[t] = function(e, r, i) {
return null == e || "boolean" == typeof e ? n.apply(this, arguments) : this.animate(ir(t, !0), e, r, i)
}
}), b.fn.extend({
fadeTo: function(e, t, n, r) {
return this.filter(nn).css("opacity", 0).show().end().animate({
opacity: t
}, e, n, r)
},
animate: function(e, t, n, r) {
var i = b.isEmptyObject(e),
o = b.speed(t, n, r),
a = function() {
var t = er(this, b.extend({}, e), o);
a.finish = function() {
t.stop(!0)
}, (i || b._data(this, "finish")) && t.stop(!0)
};
return a.finish = a, i || o.queue === !1 ? this.each(a) : this.queue(o.queue, a)
},
stop: function(e, n, r) {
var i = function(e) {
var t = e.stop;
delete e.stop, t(r)
};
return "string" != typeof e && (r = n, n = e, e = t), n && e !== !1 && this.queue(e || "fx", []), this.each(function() {
var t = !0,
n = null != e && e + "queueHooks",
o = b.timers,
a = b._data(this);
if (n) a[n] && a[n].stop && i(a[n]);
else
for (n in a) a[n] && a[n].stop && Jn.test(n) && i(a[n]);
for (n = o.length; n--;) o[n].elem !== this || null != e && o[n].queue !== e || (o[n].anim.stop(r), t = !1, o.splice(n, 1));
(t || !r) && b.dequeue(this, e)
})
},
finish: function(e) {
return e !== !1 && (e = e || "fx"), this.each(function() {
var t, n = b._data(this),
r = n[e + "queue"],
i = n[e + "queueHooks"],
o = b.timers,
a = r ? r.length : 0;
for (n.finish = !0, b.queue(this, e, []), i && i.cur && i.cur.finish && i.cur.finish.call(this), t = o.length; t--;) o[t].elem === this && o[t].queue === e && (o[t].anim.stop(!0), o.splice(t, 1));
for (t = 0; a > t; t++) r[t] && r[t].finish && r[t].finish.call(this);
delete n.finish
})
}
});
function ir(e, t) {
var n, r = {
height: e
},
i = 0;
for (t = t ? 1 : 0; 4 > i; i += 2 - t) n = Zt[i], r["margin" + n] = r["padding" + n] = e;
return t && (r.opacity = r.width = e), r
}
b.each({
slideDown: ir("show"),
slideUp: ir("hide"),
slideToggle: ir("toggle"),
fadeIn: {
opacity: "show"
},
fadeOut: {
opacity: "hide"
},
fadeToggle: {
opacity: "toggle"
}
}, function(e, t) {
b.fn[e] = function(e, n, r) {
return this.animate(t, e, n, r)
}
}), b.speed = function(e, t, n) {
var r = e && "object" == typeof e ? b.extend({}, e) : {
complete: n || !n && t || b.isFunction(e) && e,
duration: e,
easing: n && t || t && !b.isFunction(t) && t
};
return r.duration = b.fx.off ? 0 : "number" == typeof r.duration ? r.duration : r.duration in b.fx.speeds ? b.fx.speeds[r.duration] : b.fx.speeds._default, (null == r.queue || r.queue === !0) && (r.queue = "fx"), r.old = r.complete, r.complete = function() {
b.isFunction(r.old) && r.old.call(this), r.queue && b.dequeue(this, r.queue)
}, r
}, b.easing = {
linear: function(e) {
return e
},
swing: function(e) {
return .5 - Math.cos(e * Math.PI) / 2
}
}, b.timers = [], b.fx = rr.prototype.init, b.fx.tick = function() {
var e, n = b.timers,
r = 0;
for (Xn = b.now(); n.length > r; r++) e = n[r], e() || n[r] !== e || n.splice(r--, 1);
n.length || b.fx.stop(), Xn = t
}, b.fx.timer = function(e) {
e() && b.timers.push(e) && b.fx.start()
}, b.fx.interval = 13, b.fx.start = function() {
Un || (Un = setInterval(b.fx.tick, b.fx.interval))
}, b.fx.stop = function() {
clearInterval(Un), Un = null
}, b.fx.speeds = {
slow: 600,
fast: 200,
_default: 400
}, b.fx.step = {}, b.expr && b.expr.filters && (b.expr.filters.animated = function(e) {
return b.grep(b.timers, function(t) {
return e === t.elem
}).length
}), b.fn.offset = function(e) {
if (arguments.length) return e === t ? this : this.each(function(t) {
b.offset.setOffset(this, e, t)
});
var n, r, o = {
top: 0,
left: 0
},
a = this[0],
s = a && a.ownerDocument;
if (s) return n = s.documentElement, b.contains(n, a) ? (typeof a.getBoundingClientRect !== i && (o = a.getBoundingClientRect()), r = or(s), {
top: o.top + (r.pageYOffset || n.scrollTop) - (n.clientTop || 0),
left: o.left + (r.pageXOffset || n.scrollLeft) - (n.clientLeft || 0)
}) : o
}, b.offset = {
setOffset: function(e, t, n) {
var r = b.css(e, "position");
"static" === r && (e.style.position = "relative");
var i = b(e),
o = i.offset(),
a = b.css(e, "top"),
s = b.css(e, "left"),
u = ("absolute" === r || "fixed" === r) && b.inArray("auto", [a, s]) > -1,
l = {},
c = {},
p, f;
u ? (c = i.position(), p = c.top, f = c.left) : (p = parseFloat(a) || 0, f = parseFloat(s) || 0), b.isFunction(t) && (t = t.call(e, n, o)), null != t.top && (l.top = t.top - o.top + p), null != t.left && (l.left = t.left - o.left + f), "using" in t ? t.using.call(e, l) : i.css(l)
}
}, b.fn.extend({
position: function() {
if (this[0]) {
var e, t, n = {
top: 0,
left: 0
},
r = this[0];
return "fixed" === b.css(r, "position") ? t = r.getBoundingClientRect() : (e = this.offsetParent(), t = this.offset(), b.nodeName(e[0], "html") || (n = e.offset()), n.top += b.css(e[0], "borderTopWidth", !0), n.left += b.css(e[0], "borderLeftWidth", !0)), {
top: t.top - n.top - b.css(r, "marginTop", !0),
left: t.left - n.left - b.css(r, "marginLeft", !0)
}
}
},
offsetParent: function() {
return this.map(function() {
var e = this.offsetParent || o.documentElement;
while (e && !b.nodeName(e, "html") && "static" === b.css(e, "position")) e = e.offsetParent;
return e || o.documentElement
})
}
}), b.each({
scrollLeft: "pageXOffset",
scrollTop: "pageYOffset"
}, function(e, n) {
var r = /Y/.test(n);
b.fn[e] = function(i) {
return b.access(this, function(e, i, o) {
var a = or(e);
return o === t ? a ? n in a ? a[n] : a.document.documentElement[i] : e[i] : (a ? a.scrollTo(r ? b(a).scrollLeft() : o, r ? o : b(a).scrollTop()) : e[i] = o, t)
}, e, i, arguments.length, null)
}
});
function or(e) {
return b.isWindow(e) ? e : 9 === e.nodeType ? e.defaultView || e.parentWindow : !1
}
b.each({
Height: "height",
Width: "width"
}, function(e, n) {
b.each({
padding: "inner" + e,
content: n,
"": "outer" + e
}, function(r, i) {
b.fn[i] = function(i, o) {
var a = arguments.length && (r || "boolean" != typeof i),
s = r || (i === !0 || o === !0 ? "margin" : "border");
return b.access(this, function(n, r, i) {
var o;
return b.isWindow(n) ? n.document.documentElement["client" + e] : 9 === n.nodeType ? (o = n.documentElement, Math.max(n.body["scroll" + e], o["scroll" + e], n.body["offset" + e], o["offset" + e], o["client" + e])) : i === t ? b.css(n, r, s) : b.style(n, r, i, s)
}, n, a ? i : t, a, null)
}
})
}), e.jQuery = e.$ = b, "function" == typeof define && define.amd && define.amd.jQuery && define("jquery", [], function() {
return b
})
})(window);
/*! Modernizr 2.7.1 (Custom Build) | MIT & BSD
* Build: http://modernizr.com/download/#-fontface-backgroundsize-borderimage-borderradius-boxshadow-flexbox-hsla-multiplebgs-opacity-rgba-textshadow-cssanimations-csscolumns-generatedcontent-cssgradients-cssreflections-csstransforms-csstransforms3d-csstransitions-applicationcache-canvas-canvastext-draganddrop-hashchange-history-audio-video-indexeddb-input-inputtypes-localstorage-postmessage-sessionstorage-websockets-websqldatabase-webworkers-geolocation-inlinesvg-smil-svg-svgclippaths-touch-webgl-shiv-cssclasses-addtest-prefixed-teststyles-testprop-testallprops-hasevent-prefixes-domprefixes-load
*/
;
window.Modernizr = (function(window, document, undefined) {
var version = '2.7.1',
Modernizr = {},
enableClasses = true,
docElement = document.documentElement,
mod = 'modernizr',
modElem = document.createElement(mod),
mStyle = modElem.style,
inputElem = document.createElement('input'),
smile = ':)',
toString = {}.toString,
prefixes = ' -webkit- -moz- -o- -ms- '.split(' '),
omPrefixes = 'Webkit Moz O ms',
cssomPrefixes = omPrefixes.split(' '),
domPrefixes = omPrefixes.toLowerCase().split(' '),
ns = {
'svg': 'http://www.w3.org/2000/svg'
},
tests = {},
inputs = {},
attrs = {},
classes = [],
slice = classes.slice,
featureName, injectElementWithStyles = function(rule, callback, nodes, testnames) {
var style, ret, node, docOverflow, div = document.createElement('div'),
body = document.body,
fakeBody = body || document.createElement('body');
if (parseInt(nodes, 10)) {
while (nodes--) {
node = document.createElement('div');
node.id = testnames ? testnames[nodes] : mod + (nodes + 1);
div.appendChild(node)
}
}
style = ['', ''].join('');
div.id = mod;
(body ? div : fakeBody).innerHTML += style;
fakeBody.appendChild(div);
if (!body) {
fakeBody.style.background = '';
fakeBody.style.overflow = 'hidden';
docOverflow = docElement.style.overflow;
docElement.style.overflow = 'hidden';
docElement.appendChild(fakeBody)
}
ret = callback(div, rule);
if (!body) {
fakeBody.parentNode.removeChild(fakeBody);
docElement.style.overflow = docOverflow
} else {
div.parentNode.removeChild(div)
}
return !!ret
},
isEventSupported = (function() {
var TAGNAMES = {
'select': 'input',
'change': 'input',
'submit': 'form',
'reset': 'form',
'error': 'img',
'load': 'img',
'abort': 'img'
};
function isEventSupported(eventName, element) {
element = element || document.createElement(TAGNAMES[eventName] || 'div');
eventName = 'on' + eventName;
var isSupported = eventName in element;
if (!isSupported) {
if (!element.setAttribute) {
element = document.createElement('div')
}
if (element.setAttribute && element.removeAttribute) {
element.setAttribute(eventName, '');
isSupported = is(element[eventName], 'function');
if (!is(element[eventName], 'undefined')) {
element[eventName] = undefined
}
element.removeAttribute(eventName)
}
}
element = null;
return isSupported
}
return isEventSupported
})(),
_hasOwnProperty = ({}).hasOwnProperty,
hasOwnProp;
if (!is(_hasOwnProperty, 'undefined') && !is(_hasOwnProperty.call, 'undefined')) {
hasOwnProp = function(object, property) {
return _hasOwnProperty.call(object, property)
}
} else {
hasOwnProp = function(object, property) {
return ((property in object) && is(object.constructor.prototype[property], 'undefined'))
}
}
if (!Function.prototype.bind) {
Function.prototype.bind = function bind(that) {
var target = this;
if (typeof target != "function") {
throw new TypeError();
}
var args = slice.call(arguments, 1),
bound = function() {
if (this instanceof bound) {
var F = function() {};
F.prototype = target.prototype;
var self = new F();
var result = target.apply(self, args.concat(slice.call(arguments)));
if (Object(result) === result) {
return result
}
return self
} else {
return target.apply(that, args.concat(slice.call(arguments)))
}
};
return bound
}
}
function setCss(str) {
mStyle.cssText = str
}
function setCssAll(str1, str2) {
return setCss(prefixes.join(str1 + ';') + (str2 || ''))
}
function is(obj, type) {
return typeof obj === type
}
function contains(str, substr) {
return !!~('' + str).indexOf(substr)
}
function testProps(props, prefixed) {
for (var i in props) {
var prop = props[i];
if (!contains(prop, "-") && mStyle[prop] !== undefined) {
return prefixed == 'pfx' ? prop : true
}
}
return false
}
function testDOMProps(props, obj, elem) {
for (var i in props) {
var item = obj[props[i]];
if (item !== undefined) {
if (elem === false) return props[i];
if (is(item, 'function')) {
return item.bind(elem || obj)
}
return item
}
}
return false
}
function testPropsAll(prop, prefixed, elem) {
var ucProp = prop.charAt(0).toUpperCase() + prop.slice(1),
props = (prop + ' ' + cssomPrefixes.join(ucProp + ' ') + ucProp).split(' ');
if (is(prefixed, "string") || is(prefixed, "undefined")) {
return testProps(props, prefixed)
} else {
props = (prop + ' ' + (domPrefixes).join(ucProp + ' ') + ucProp).split(' ');
return testDOMProps(props, prefixed, elem)
}
}
tests['flexbox'] = function() {
return testPropsAll('flexWrap')
};
tests['canvas'] = function() {
var elem = document.createElement('canvas');
return !!(elem.getContext && elem.getContext('2d'))
};
tests['canvastext'] = function() {
return !!(Modernizr['canvas'] && is(document.createElement('canvas').getContext('2d').fillText, 'function'))
};
tests['webgl'] = function() {
return !!window.WebGLRenderingContext
};
tests['touch'] = function() {
var bool;
if (('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch) {
bool = true
} else {
injectElementWithStyles(['@media (', prefixes.join('touch-enabled),('), mod, ')', '{#modernizr{top:9px;position:absolute}}'].join(''), function(node) {
bool = node.offsetTop === 9
})
}
return bool
};
tests['geolocation'] = function() {
return 'geolocation' in navigator
};
tests['postmessage'] = function() {
return !!window.postMessage
};
tests['websqldatabase'] = function() {
return !!window.openDatabase
};
tests['indexedDB'] = function() {
return !!testPropsAll("indexedDB", window)
};
tests['hashchange'] = function() {
return isEventSupported('hashchange', window) && (document.documentMode === undefined || document.documentMode > 7)
};
tests['history'] = function() {
return !!(window.history && history.pushState)
};
tests['draganddrop'] = function() {
var div = document.createElement('div');
return ('draggable' in div) || ('ondragstart' in div && 'ondrop' in div)
};
tests['websockets'] = function() {
return 'WebSocket' in window || 'MozWebSocket' in window
};
tests['rgba'] = function() {
setCss('background-color:rgba(150,255,150,.5)');
return contains(mStyle.backgroundColor, 'rgba')
};
tests['hsla'] = function() {
setCss('background-color:hsla(120,40%,100%,.5)');
return contains(mStyle.backgroundColor, 'rgba') || contains(mStyle.backgroundColor, 'hsla')
};
tests['multiplebgs'] = function() {
setCss('background:url(https://),url(https://),red url(https://)');
return (/(url\s*\(.*?){3}/).test(mStyle.background)
};
tests['backgroundsize'] = function() {
return testPropsAll('backgroundSize')
};
tests['borderimage'] = function() {
return testPropsAll('borderImage')
};
tests['borderradius'] = function() {
return testPropsAll('borderRadius')
};
tests['boxshadow'] = function() {
return testPropsAll('boxShadow')
};
tests['textshadow'] = function() {
return document.createElement('div').style.textShadow === ''
};
tests['opacity'] = function() {
setCssAll('opacity:.55');
return (/^0.55$/).test(mStyle.opacity)
};
tests['cssanimations'] = function() {
return testPropsAll('animationName')
};
tests['csscolumns'] = function() {
return testPropsAll('columnCount')
};
tests['cssgradients'] = function() {
var str1 = 'background-image:',
str2 = 'gradient(linear,left top,right bottom,from(#9f9),to(white));',
str3 = 'linear-gradient(left top,#9f9, white);';
setCss((str1 + '-webkit- '.split(' ').join(str2 + str1) + prefixes.join(str3 + str1)).slice(0, -str1.length));
return contains(mStyle.backgroundImage, 'gradient')
};
tests['cssreflections'] = function() {
return testPropsAll('boxReflect')
};
tests['csstransforms'] = function() {
return !!testPropsAll('transform')
};
tests['csstransforms3d'] = function() {
var ret = !!testPropsAll('perspective');
if (ret && 'webkitPerspective' in docElement.style) {
injectElementWithStyles('@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}', function(node, rule) {
ret = node.offsetLeft === 9 && node.offsetHeight === 3
})
}
return ret
};
tests['csstransitions'] = function() {
return testPropsAll('transition')
};
tests['fontface'] = function() {
var bool;
injectElementWithStyles('@font-face {font-family:"font";src:url("https://")}', function(node, rule) {
var style = document.getElementById('smodernizr'),
sheet = style.sheet || style.styleSheet,
cssText = sheet ? (sheet.cssRules && sheet.cssRules[0] ? sheet.cssRules[0].cssText : sheet.cssText || '') : '';
bool = /src/i.test(cssText) && cssText.indexOf(rule.split(' ')[0]) === 0
});
return bool
};
tests['generatedcontent'] = function() {
var bool;
injectElementWithStyles(['#', mod, '{font:0/0 a}#', mod, ':after{content:"', smile, '";visibility:hidden;font:3px/1 a}'].join(''), function(node) {
bool = node.offsetHeight >= 3
});
return bool
};
tests['video'] = function() {
var elem = document.createElement('video'),
bool = false;
try {
if (bool = !!elem.canPlayType) {
bool = new Boolean(bool);
bool.ogg = elem.canPlayType('video/ogg; codecs="theora"').replace(/^no$/, '');
bool.h264 = elem.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/, '');
bool.webm = elem.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/, '')
}
} catch (e) {}
return bool
};
tests['audio'] = function() {
var elem = document.createElement('audio'),
bool = false;
try {
if (bool = !!elem.canPlayType) {
bool = new Boolean(bool);
bool.ogg = elem.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/, '');
bool.mp3 = elem.canPlayType('audio/mpeg;').replace(/^no$/, '');
bool.wav = elem.canPlayType('audio/wav; codecs="1"').replace(/^no$/, '');
bool.m4a = (elem.canPlayType('audio/x-m4a;') || elem.canPlayType('audio/aac;')).replace(/^no$/, '')
}
} catch (e) {}
return bool
};
tests['localstorage'] = function() {
try {
localStorage.setItem(mod, mod);
localStorage.removeItem(mod);
return true
} catch (e) {
return false
}
};
tests['sessionstorage'] = function() {
try {
sessionStorage.setItem(mod, mod);
sessionStorage.removeItem(mod);
return true
} catch (e) {
return false
}
};
tests['webworkers'] = function() {
return !!window.Worker
};
tests['applicationcache'] = function() {
return !!window.applicationCache
};
tests['svg'] = function() {
return !!document.createElementNS && !!document.createElementNS(ns.svg, 'svg').createSVGRect
};
tests['inlinesvg'] = function() {
var div = document.createElement('div');
div.innerHTML = ' ';
return (div.firstChild && div.firstChild.namespaceURI) == ns.svg
};
tests['smil'] = function() {
return !!document.createElementNS && /SVGAnimate/.test(toString.call(document.createElementNS(ns.svg, 'animate')))
};
tests['svgclippaths'] = function() {
return !!document.createElementNS && /SVGClipPath/.test(toString.call(document.createElementNS(ns.svg, 'clipPath')))
};
function webforms() {
Modernizr['input'] = (function(props) {
for (var i = 0, len = props.length; i < len; i++) {
attrs[props[i]] = !!(props[i] in inputElem)
}
if (attrs.list) {
attrs.list = !!(document.createElement('datalist') && window.HTMLDataListElement)
}
return attrs
})('autocomplete autofocus list placeholder max min multiple pattern required step'.split(' '));
Modernizr['inputtypes'] = (function(props) {
for (var i = 0, bool, inputElemType, defaultView, len = props.length; i < len; i++) {
inputElem.setAttribute('type', inputElemType = props[i]);
bool = inputElem.type !== 'text';
if (bool) {
inputElem.value = smile;
inputElem.style.cssText = 'position:absolute;visibility:hidden;';
if (/^range$/.test(inputElemType) && inputElem.style.WebkitAppearance !== undefined) {
docElement.appendChild(inputElem);
defaultView = document.defaultView;
bool = defaultView.getComputedStyle && defaultView.getComputedStyle(inputElem, null).WebkitAppearance !== 'textfield' && (inputElem.offsetHeight !== 0);
docElement.removeChild(inputElem)
} else if (/^(search|tel)$/.test(inputElemType)) {} else if (/^(url|email)$/.test(inputElemType)) {
bool = inputElem.checkValidity && inputElem.checkValidity() === false
} else {
bool = inputElem.value != smile
}
}
inputs[props[i]] = !!bool
}
return inputs
})('search tel url email datetime date month week time datetime-local number range color'.split(' '))
}
for (var feature in tests) {
if (hasOwnProp(tests, feature)) {
featureName = feature.toLowerCase();
Modernizr[featureName] = tests[feature]();
classes.push((Modernizr[featureName] ? '' : 'no-') + featureName)
}
}
Modernizr.input || webforms();
Modernizr.addTest = function(feature, test) {
if (typeof feature == 'object') {
for (var key in feature) {
if (hasOwnProp(feature, key)) {
Modernizr.addTest(key, feature[key])
}
}
} else {
feature = feature.toLowerCase();
if (Modernizr[feature] !== undefined) {
return Modernizr
}
test = typeof test == 'function' ? test() : test;
if (typeof enableClasses !== "undefined" && enableClasses) {
docElement.className += ' ' + (test ? '' : 'no-') + feature
}
Modernizr[feature] = test
}
return Modernizr
};
setCss('');
modElem = inputElem = null;
(function(window, document) {
var version = "";
var options = window.html5 || {};
var reSkip = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i;
var saveClones = /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i;
var supportsHtml5Styles;
var expando = "";
var expanID = 0;
var expandoData = {};
var supportsUnknownElements;
(function() {
try {
var a = document.createElement('a');
a.innerHTML = ' ';
supportsHtml5Styles = ('hidden' in a);
supportsUnknownElements = a.childNodes.length == 1 || (function() {
(document.createElement)('a');
var frag = document.createDocumentFragment();
return (typeof frag.cloneNode == 'undefined' || typeof frag.createDocumentFragment == 'undefined' || typeof frag.createElement == 'undefined')
}())
} catch (e) {
supportsHtml5Styles = true;
supportsUnknownElements = true
}
}());
function addStyleSheet(ownerDocument, cssText) {
var p = ownerDocument.createElement('p'),
parent = ownerDocument.getElementsByTagName('head')[0] || ownerDocument.documentElement;
p.innerHTML = 'x';
return parent.insertBefore(p.lastChild, parent.firstChild)
}
function getElements() {
var elements = html5.elements;
return typeof elements == 'string' ? elements.split(' ') : elements
}
function getExpandoData(ownerDocument) {
var data = expandoData[ownerDocument[expando]];
if (!data) {
data = {};
expanID++;
ownerDocument[expando] = expanID;
expandoData[expanID] = data
}
return data
}
function createElement(nodeName, ownerDocument, data) {
if (!ownerDocument) {
ownerDocument = document
}
if (supportsUnknownElements) {
return ownerDocument.createElement(nodeName)
}
if (!data) {
data = getExpandoData(ownerDocument)
}
var node;
if (data.cache[nodeName]) {
node = data.cache[nodeName].cloneNode()
} else if (saveClones.test(nodeName)) {
node = (data.cache[nodeName] = data.createElem(nodeName)).cloneNode()
} else {
node = data.createElem(nodeName)
}
return node.canHaveChildren && !reSkip.test(nodeName) && !node.tagUrn ? data.frag.appendChild(node) : node
}
function createDocumentFragment(ownerDocument, data) {
if (!ownerDocument) {
ownerDocument = document
}
if (supportsUnknownElements) {
return ownerDocument.createDocumentFragment()
}
data = data || getExpandoData(ownerDocument);
var clone = data.frag.cloneNode(),
i = 0,
elems = getElements(),
l = elems.length;
for (; i < l; i++) {
clone.createElement(elems[i])
}
return clone
}
function shivMethods(ownerDocument, data) {
if (!data.cache) {
data.cache = {};
data.createElem = ownerDocument.createElement;
data.createFrag = ownerDocument.createDocumentFragment;
data.frag = data.createFrag()
}
ownerDocument.createElement = function(nodeName) {
if (!html5.shivMethods) {
return data.createElem(nodeName)
}
return createElement(nodeName, ownerDocument, data)
};
ownerDocument.createDocumentFragment = Function('h,f', 'return function(){' + 'var n=f.cloneNode(),c=n.createElement;' + 'h.shivMethods&&(' + getElements().join().replace(/[\w\-]+/g, function(nodeName) {
data.createElem(nodeName);
data.frag.createElement(nodeName);
return 'c("' + nodeName + '")'
}) + ');return n}')(html5, data.frag)
}
function shivDocument(ownerDocument) {
if (!ownerDocument) {
ownerDocument = document
}
var data = getExpandoData(ownerDocument);
if (html5.shivCSS && !supportsHtml5Styles && !data.hasCSS) {
data.hasCSS = !!addStyleSheet(ownerDocument, 'article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}' + 'mark{background:#FF0;color:#000}' + 'template{display:none}')
}
if (!supportsUnknownElements) {
shivMethods(ownerDocument, data)
}
return ownerDocument
}
var html5 = {
'elements': options.elements || 'abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video',
'version': version,
'shivCSS': (options.shivCSS !== false),
'supportsUnknownElements': supportsUnknownElements,
'shivMethods': (options.shivMethods !== false),
'type': 'default',
'shivDocument': shivDocument,
createElement: createElement,
createDocumentFragment: createDocumentFragment
};
window.html5 = html5;
shivDocument(document)
}(this, document));
Modernizr._version = version;
Modernizr._prefixes = prefixes;
Modernizr._domPrefixes = domPrefixes;
Modernizr._cssomPrefixes = cssomPrefixes;
Modernizr.hasEvent = isEventSupported;
Modernizr.testProp = function(prop) {
return testProps([prop])
};
Modernizr.testAllProps = testPropsAll;
Modernizr.testStyles = injectElementWithStyles;
Modernizr.prefixed = function(prop, obj, elem) {
if (!obj) {
return testPropsAll(prop, 'pfx')
} else {
return testPropsAll(prop, obj, elem)
}
};
docElement.className = docElement.className.replace(/(^|\s)no-js(\s|$)/, '$1$2') + (enableClasses ? ' js ' + classes.join(' ') : '');
return Modernizr
})(this, this.document);
(function(a, b, c) {
function d(a) {
return "[object Function]" == o.call(a)
}
function e(a) {
return "string" == typeof a
}
function f() {}
function g(a) {
return !a || "loaded" == a || "complete" == a || "uninitialized" == a
}
function h() {
var a = p.shift();
q = 1, a ? a.t ? m(function() {
("c" == a.t ? B.injectCss : B.injectJs)(a.s, 0, a.a, a.x, a.e, 1)
}, 0) : (a(), h()) : q = 0
}
function i(a, c, d, e, f, i, j) {
function k(b) {
if (!o && g(l.readyState) && (u.r = o = 1, !q && h(), l.onload = l.onreadystatechange = null, b)) {
"img" != a && m(function() {
t.removeChild(l)
}, 50);
for (var d in y[c]) y[c].hasOwnProperty(d) && y[c][d].onload()
}
}
var j = j || B.errorTimeout,
l = b.createElement(a),
o = 0,
r = 0,
u = {
t: d,
s: c,
e: f,
a: i,
x: j
};
1 === y[c] && (r = 1, y[c] = []), "object" == a ? l.data = c : (l.src = c, l.type = a), l.width = l.height = "0", l.onerror = l.onload = l.onreadystatechange = function() {
k.call(this, r)
}, p.splice(e, 0, u), "img" != a && (r || 2 === y[c] ? (t.insertBefore(l, s ? null : n), m(k, j)) : y[c].push(l))
}
function j(a, b, c, d, f) {
return q = 0, b = b || "j", e(a) ? i("c" == b ? v : u, a, b, this.i++, c, d, f) : (p.splice(this.i++, 0, a), 1 == p.length && h()), this
}
function k() {
var a = B;
return a.loader = {
load: j,
i: 0
}, a
}
var l = b.documentElement,
m = a.setTimeout,
n = b.getElementsByTagName("script")[0],
o = {}.toString,
p = [],
q = 0,
r = "MozAppearance" in l.style,
s = r && !!b.createRange().compareNode,
t = s ? l : n.parentNode,
l = a.opera && "[object Opera]" == o.call(a.opera),
l = !!b.attachEvent && !l,
u = r ? "object" : l ? "script" : "img",
v = l ? "script" : u,
w = Array.isArray || function(a) {
return "[object Array]" == o.call(a)
},
x = [],
y = {},
z = {
timeout: function(a, b) {
return b.length && (a.timeout = b[0]), a
}
},
A, B;
B = function(a) {
function b(a) {
var a = a.split("!"),
b = x.length,
c = a.pop(),
d = a.length,
c = {
url: c,
origUrl: c,
prefixes: a
},
e, f, g;
for (f = 0; f < d; f++) g = a[f].split("="), (e = z[g.shift()]) && (c = e(c, g));
for (f = 0; f < b; f++) c = x[f](c);
return c
}
function g(a, e, f, g, h) {
var i = b(a),
j = i.autoCallback;
i.url.split(".").pop().split("?").shift(), i.bypass || (e && (e = d(e) ? e : e[a] || e[g] || e[a.split("/").pop().split("?")[0]]), i.instead ? i.instead(a, e, f, g, h) : (y[i.url] ? i.noexec = !0 : y[i.url] = 1, f.load(i.url, i.forceCSS || !i.forceJS && "css" == i.url.split(".").pop().split("?").shift() ? "c" : c, i.noexec, i.attrs, i.timeout), (d(e) || d(j)) && f.load(function() {
k(), e && e(i.origUrl, h, g), j && j(i.origUrl, h, g), y[i.url] = 2
})))
}
function h(a, b) {
function c(a, c) {
if (a) {
if (e(a)) c || (j = function() {
var a = [].slice.call(arguments);
k.apply(this, a), l()
}), g(a, j, b, 0, h);
else if (Object(a) === a)
for (n in m = function() {
var b = 0,
c;
for (c in a) a.hasOwnProperty(c) && b++;
return b
}(), a) a.hasOwnProperty(n) && (!c && !--m && (d(j) ? j = function() {
var a = [].slice.call(arguments);
k.apply(this, a), l()
} : j[n] = function(a) {
return function() {
var b = [].slice.call(arguments);
a && a.apply(this, b), l()
}
}(k[n])), g(a[n], j, b, n, h))
} else !c && l()
}
var h = !!a.test,
i = a.load || a.both,
j = a.callback || f,
k = j,
l = a.complete || f,
m, n;
c(h ? a.yep : a.nope, !!i), i && c(i)
}
var i, j, l = this.yepnope.loader;
if (e(a)) g(a, 0, l, 0);
else if (w(a))
for (i = 0; i < a.length; i++) j = a[i], e(j) ? g(j, 0, l, 0) : w(j) ? B(j) : Object(j) === j && h(j, l);
else Object(a) === a && h(a, l)
}, B.addPrefix = function(a, b) {
z[a] = b
}, B.addFilter = function(a) {
x.push(a)
}, B.errorTimeout = 1e4, null == b.readyState && b.addEventListener && (b.readyState = "loading", b.addEventListener("DOMContentLoaded", A = function() {
b.removeEventListener("DOMContentLoaded", A, 0), b.readyState = "complete"
}, 0)), a.yepnope = k(), a.yepnope.executeStack = h, a.yepnope.injectJs = function(a, c, d, e, i, j) {
var k = b.createElement("script"),
l, o, e = e || B.errorTimeout;
k.src = a;
for (o in d) k.setAttribute(o, d[o]);
c = j ? h : c || f, k.onreadystatechange = k.onload = function() {
!l && g(k.readyState) && (l = 1, c(), k.onload = k.onreadystatechange = null)
}, m(function() {
l || (l = 1, c(1))
}, e), i ? k.onload() : n.parentNode.insertBefore(k, n)
}, a.yepnope.injectCss = function(a, c, d, e, g, i) {
var e = b.createElement("link"),
j, c = i ? h : c || f;
e.href = a, e.rel = "stylesheet", e.type = "text/css";
for (j in d) e.setAttribute(j, d[j]);
g || (n.parentNode.insertBefore(e, n), m(c, 0))
}
})(this, document);
Modernizr.load = function() {
yepnope.apply(window, [].slice.call(arguments, 0))
};
redirect = function(a, b) {
a = a || window.location.href || "", a = a.match(/\?/) ? a : a + "?";
for (var c in b) {
var d = RegExp("[;&]?" + c + "=?[^&]*", "g");
a = a.replace(d, ""), a += "&" + c + "=" + b[c]
}
a = a.replace(/[&]$/, ""), a = a.replace(/\?[&]/, "?"), a = a.replace(/[&]{2}/g, "&"), window.location.replace(a)
};
function getDocHeight() {
var a = Math.max.apply(null, [document.body.clientHeight, document.body.scrollHeight, document.documentElement.scrollHeight, document.documentElement.clientHeight]);
return a
}
$(function() {
if ($(".hb-contents").show(), $(".hb-select-language").show(), $(".hb-is-disabled").click(function(a) {
a.preventDefault()
}), $(".hb-btn").on("mousedown", function() {
$(this).addClass("hb-is-pressed")
}), $(".hb-btn").on("mouseup mouseleave", function() {
$(this).removeClass("hb-is-pressed")
}), $(document).ready(function() {
var a = window.navigator.userAgent.toLowerCase(); - 1 != a.indexOf("nintendo switch") ? ($(".hb-checkbox").hide(), $(".hb-checkbox-ex").show(), $(".hb-radio").hide(), $(".hb-radio-ex").show()) : ($(".hb-checkbox").show(), $(".hb-checkbox-ex").hide(), $(".hb-radio").show(), $(".hb-radio-ex").hide())
}), $(".hb-checkbox input:checkbox").change(function() {
$(this).is(":checked") ? $(this).next().addClass("hb-is-checked") : $(this).next().removeClass("hb-is-checked")
}), $(".hb-checkbox-ex input:checkbox").change(function() {
$(this).is(":checked") ? $(this).next().addClass("hb-is-checked") : $(this).next().removeClass("hb-is-checked")
}), $(".hb-checkbox-ex").keyup(function() {
if (13 == event.keyCode) {
var a = $(this).children("input:checkbox");
a.is(":checked") ? (a.prop("checked", !1), a.next().removeClass("hb-is-checked")) : (a.prop("checked", !0), a.next().addClass("hb-is-checked"))
}
}), $(".hb-radio input:radio").change(function() {
if ($(this).val() === $(this).prop("value") && ($(this).parent().addClass("hb-is-checked"), $(this).prop("checked", !0)), $(".hb-radio input:radio").each(function() {
$(this).is(":checked") || ($(this).parent().removeClass("hb-is-checked"), $(this).prop("checked", !1))
}), $("input:radio[name='searchCondition']")[0] && $("input:radio[name='searchCondition']:checked").val()) {
var a = $("input:radio[name='searchCondition']:checked").val();
"nickname" === a ? ($("#date_of_birth").hide(), $("#nickname").show(), $("#nickname input").focus()) : ($("#date_of_birth").show(), $("#nickname").hide())
}
}), $(".hb-radio-ex input:radio").change(function() {
if ($(this).val() === $(this).prop("value") && ($(this).parent().addClass("hb-is-checked"), $(this).prop("checked", !0)), $(".hb-radio-ex input:radio").each(function() {
$(this).is(":checked") || ($(this).parent().removeClass("hb-is-checked"), $(this).prop("checked", !1))
}), $("input:radio[name='searchCondition']")[0] && $("input:radio[name='searchCondition']:checked").val()) {
var a = $("input:radio[name='searchCondition']:checked").val();
"nickname" === a ? ($("#date_of_birth").hide(), $("#nickname").show(), $("#nickname input").focus()) : ($("#date_of_birth").show(), $("#nickname").hide())
}
}), $(".hb-radio-ex .hb-radio-ex-inner").keyup(function() {
if (13 == event.keyCode) {
var a = $(this).children("label").find("input");
if (a.val() === a.prop("value") && (a.parent().addClass("hb-is-checked"), a.prop("checked", !0)), $(".hb-radio-ex input:radio").each(function() {
$(this).is(":checked") || ($(this).parent().removeClass("hb-is-checked"), $(this).prop("checked", !1))
}), $("input:radio[name='searchCondition']")[0] && $("input:radio[name='searchCondition']:checked").val()) {
var b = $("input:radio[name='searchCondition']:checked").val();
"nickname" === b ? ($("#date_of_birth").hide(), $("#nickname").show(), $("#nickname input").focus()) : ($("#date_of_birth").show(), $("#nickname").hide())
}
}
}), $(window).resize(function() {
$(".hb-popup-bg")[0] && $(".hb-popup-bg").height(getDocHeight())
}), $("#btn_approve").click(function(a) {
a.preventDefault();
var b = $("form").attr("action");
$("form").attr("action", b.replace("reject", "approve")), $("form").submit()
}), $("#btn_reject").click(function(a) {
a.preventDefault();
var b = $("form").attr("action");
$("form").attr("action", b.replace("approve", "reject")), $("form").submit()
}), $(".hb-list-disc")[0]) {
var a = $(".hb-list-disc li");
a.each(function() {
$(this).html() || $(this).remove()
})
}
if ($(".auth-service-list")[0]) {
var b = [],
c = "";
$(".auth-service-list").css("opacity", 0), $(".auth-service-list li").each(function() {
b.push({
name: $(this).find("a").html(),
src: $(this).html()
})
}), b.sort(function(a, b) {
var c = a.name,
d = b.name;
return c > d ? 1 : d > c ? -1 : 0
});
for (var d = 0; d < b.length; d++) c += "
" + b[d].src + " ";
$(".auth-service-list").css("opacity", 1), $(".auth-service-list").html(c)
}
});