├── LICENSE ├── Plugin.php ├── README.md ├── css └── model.css ├── js └── jquery.min.js └── models ├── flandre.png ├── kotori.png ├── lamu.png ├── marisa.png └── reimu.png /LICENSE: -------------------------------------------------------------------------------- 1 | This is free and unencumbered software released into the public domain. 2 | 3 | Anyone is free to copy, modify, publish, use, compile, sell, or 4 | distribute this software, either in source code form or as a compiled 5 | binary, for any purpose, commercial or non-commercial, and by any 6 | means. 7 | 8 | In jurisdictions that recognize copyright laws, the author or authors 9 | of this software dedicate any and all copyright interest in the 10 | software to the public domain. We make this dedication for the benefit 11 | of the public at large and to the detriment of our heirs and 12 | successors. We intend this dedication to be an overt act of 13 | relinquishment in perpetuity of all present and future rights to this 14 | software under copyright law. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | For more information, please refer to 25 | -------------------------------------------------------------------------------- /Plugin.php: -------------------------------------------------------------------------------- 1 | header = array(__CLASS__, 'header'); 23 | Typecho_Plugin::factory('Widget_Archive')->footer = array(__CLASS__, 'footer'); 24 | return "插件启动成功,请配置相关内容"; 25 | } 26 | 27 | /** 28 | * 禁用插件方法,如果禁用失败,直接抛出异常 29 | * 30 | * @static 31 | * @access public 32 | * @return void 33 | * @throws Typecho_Plugin_Exception 34 | */ 35 | public static function deactivate() 36 | { 37 | return "插件禁用成功"; 38 | } 39 | 40 | /** 41 | * 获取插件配置面板 42 | * 43 | * @access public 44 | * @param Typecho_Widget_Helper_Form $form 配置面板 45 | * @return void 46 | */ 47 | public static function config(Typecho_Widget_Helper_Form $form) 48 | { 49 | 50 | // 插件信息与更新检测 51 | function check_update($version) 52 | { 53 | echo ""; 54 | echo "
"; 55 | echo "

MoeTop返回顶部插件 (" . $version . ")

"; 56 | echo "

By: Sanakey

"; 57 | echo "

插件说明 58 | 检查更新

"; 59 | echo "

感谢使用!更多说明请点击插件说明或点击前往github查看~

"; 60 | 61 | echo "
"; 62 | } 63 | check_update("1.1.0"); 64 | 65 | // 读取模型文件夹 66 | $models = array(); 67 | $load = glob("../usr/plugins/MoeTop/models/*"); 68 | foreach ($load as $key => $value) { 69 | $single = substr($value, 29); 70 | $models[$single] = "$single"; 71 | }; 72 | 73 | // 选择模型 74 | $chooseModels = new Typecho_Widget_Helper_Form_Element_Radio( 75 | 'chooseModels', 76 | $models, 77 | 'reimu.png', 78 | _t('选择模型'), 79 | _t('选择插件 models 目录下的模型,每个模型为一张图片。') 80 | ); 81 | $form->addInput($chooseModels); 82 | 83 | // 是否开启随机 84 | $randomMode = new Typecho_Widget_Helper_Form_Element_Checkbox( 85 | 'randomMode', 86 | array('1' => _t('开启随机模式')), 87 | '1', 88 | _t('是否开启随机模式'), 89 | _t('勾选此选项后,前面选择的模型将会失效,每次刷新页面将会随机加载返回顶部图片。') 90 | ); 91 | $form->addInput($randomMode); 92 | 93 | // 是否在移动端显示 94 | $isShowMobile = new Typecho_Widget_Helper_Form_Element_Radio( 95 | 'isShowMobile', 96 | array( 97 | '0' => _t('否'), 98 | '1' => _t('是'), 99 | ), 100 | '1', 101 | _t('是否在移动端显示') 102 | ); 103 | $form->addInput($isShowMobile); 104 | 105 | // 是否加载jq 106 | $jquery = new Typecho_Widget_Helper_Form_Element_Radio( 107 | 'jquery', 108 | array( 109 | '0' => _t('否'), 110 | '1' => _t('是'), 111 | ), 112 | '1', 113 | _t('是否加载jQuery'), 114 | _t('插件需要加载jQuery,如果主题模板已经引用加载JQuery,则可以取消加载。') 115 | ); 116 | $form->addInput($jquery); 117 | 118 | } 119 | 120 | /** 121 | * 个人用户的配置面板 122 | * 123 | * @access public 124 | * @param Typecho_Widget_Helper_Form $form 125 | * @return void 126 | */ 127 | public static function personalConfig(Typecho_Widget_Helper_Form $form) 128 | { } 129 | 130 | /** 131 | * 插件实现方法 132 | * 133 | * @access public 134 | * @return void 135 | */ 136 | public static function render() 137 | { } 138 | 139 | 140 | /** 141 | * 在header页头输出相关代码 142 | * 143 | * @access public 144 | * @param unknown header 145 | * @return void 146 | */ 147 | public static function header() 148 | { 149 | 150 | // 获取用户配置 151 | $options = Helper::options(); 152 | $jquery = $options->plugin('MoeTop')->jquery; 153 | // 输出css文件 154 | $path = $options->pluginUrl . '/MoeTop/'; 155 | echo ''; 156 | if ($jquery) { 157 | echo ''; 158 | } 159 | } 160 | 161 | /** 162 | * 在页脚footer输出相关代码 163 | * 164 | * @access public 165 | * @param unknown footer 166 | * @return void 167 | */ 168 | public static function footer() 169 | { 170 | // 获取用户配置 171 | $options = Helper::options(); 172 | $path = $options->pluginUrl . '/MoeTop/models/'; 173 | $randomMode = $options->plugin('MoeTop')->randomMode; 174 | $isShowMobile = $options->plugin('MoeTop')->isShowMobile; 175 | 176 | // 读取模型文件夹 177 | $models = array(); 178 | $load = glob("usr/plugins/MoeTop/models/*"); 179 | // print_r(glob("*.*")); 180 | foreach ($load as $key => $value) { 181 | $single = substr($value, 26); 182 | $models[$key] = $single; 183 | }; 184 | if ($isShowMobile) { 185 | $css = ''; 186 | } else { 187 | $css = ''; 194 | } 195 | if ($randomMode) { 196 | $chooseModels = $models[mt_rand( 0, count($models) - 1)]; 197 | } else { 198 | $chooseModels = $options->plugin('MoeTop')->chooseModels; 199 | } 200 | $models_id = preg_replace("/\.(?:gif|png|jpg|jpeg)$/i","",$chooseModels); 201 | 202 | echo << 204 | $css 205 | 222 | 223 | HTML; 224 | 225 | } 226 | } 227 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MoeTop 2 | 这是一款typecho插件,一款萌萌哒的返回顶部插件。 3 | 4 | ## 食用方法 5 | * 点击右上角绿色的`Clone or download`按钮,`Download ZIP`, 解压文件。 6 | * 重命名文件夹为`MoeTop` 7 | * 将`MoeTop`文件夹上传至typecho的插件`usr/plugins`目录 8 | * 登录后台启用`MoeTop`插件即可正确食用 9 | 10 | ## 配置说明 11 | * 选择自己喜欢的图片模型即可。 12 | * 支持随机模式,开启后每次刷新页面将会从插件的models文件夹中随机加载一张图片模型。 13 | 14 | ## 更新 15 | ### 1.1.0 16 | - 添加是否在移动端显示选项。 17 | 18 | ## 效果 19 | 预览效果: [Sanakeyの小站](https://keymoe.com) 20 | 21 | ## 声明 22 | 本插件使用到的所有图片来自互联网,版权归原作者所有。 23 | 24 | 25 | -------------------------------------------------------------------------------- /css/model.css: -------------------------------------------------------------------------------- 1 | 2 | .topButton { 3 | display: none; 4 | } 5 | 6 | .back-to-top { 7 | cursor: pointer; 8 | position: fixed; 9 | z-index: 10000; 10 | max-height: 120px; 11 | transition: all .5s ease-in-out; 12 | opacity: 1; 13 | } 14 | .back-to-top.animate { 15 | animation: floatY 2s linear infinite; 16 | } 17 | .back-to-top:hover{ 18 | animation-play-state:paused; 19 | -webkit-animation-play-state:paused; 20 | } 21 | 22 | @keyframes floatX { 23 | 0% { 24 | -webkit-transform: translateX(0); 25 | -ms-transform: translateX(0); 26 | transform: translateX(0) 27 | } 28 | 29 | 50% { 30 | -webkit-transform: translateX(-6px); 31 | -ms-transform: translateX(-6px); 32 | transform: translateX(-6px) 33 | } 34 | 35 | 100% { 36 | -webkit-transform: translateX(0); 37 | -ms-transform: translateX(0); 38 | transform: translateX(0) 39 | } 40 | } 41 | @keyframes floatY { 42 | 0% { 43 | -webkit-transform: translateY(0); 44 | -ms-transform: translateY(0); 45 | transform: translateY(0) 46 | } 47 | 48 | 50% { 49 | -webkit-transform: translateY(-6px); 50 | -ms-transform: translateY(-6px); 51 | transform: translateY(-6px) 52 | } 53 | 54 | 100% { 55 | -webkit-transform: translateY(0); 56 | -ms-transform: translateY(0); 57 | transform: translateY(0) 58 | } 59 | } 60 | 61 | /*kotori*/ 62 | #kotori { 63 | left:-15px; 64 | bottom:-15px; 65 | max-height:110px; 66 | } 67 | #kotori:hover { 68 | left:0; 69 | bottom:0; 70 | } 71 | #kotori.hidetotop { 72 | left:-100%; 73 | bottom:-100%; 74 | } 75 | 76 | /* 东方系列 */ 77 | #reimu,#marisa,#flandre{ 78 | bottom:-0px; 79 | right:-15px; 80 | max-height:150px; 81 | } 82 | #reimu.animate,#marisa.animate,#flandre.animate { 83 | animation: floatX 2s linear infinite; 84 | } 85 | #reimu:hover,#marisa:hover,#flandre:hover { 86 | right:0; 87 | bottom:0; 88 | animation-play-state:paused; 89 | -webkit-animation-play-state:paused; 90 | } 91 | #reimu.hidetotop,#marisa.hidetotop,#flandre.hidetotop { 92 | right:-100%; 93 | } 94 | /* 拉姆 */ 95 | #lamu { 96 | bottom:-15px; 97 | right:-15px; 98 | } 99 | #lamu:hover { 100 | right:0; 101 | bottom:0; 102 | } 103 | #lamu.hidetotop { 104 | right:-100%; 105 | bottom:-100%; 106 | } -------------------------------------------------------------------------------- /js/jquery.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery v3.3.1 | (c) JS Foundation and other contributors | jquery.org/license */ 2 | !function (e, t) { 3 | "use strict"; 4 | "object" == typeof module && "object" == typeof module.exports ? module.exports = e.document ? t(e, !0) : function (e) { 5 | if (!e.document) throw new Error("jQuery requires a window with a document"); 6 | return t(e) 7 | } : t(e) 8 | }("undefined" != typeof window ? window : this, function (e, t) { 9 | "use strict"; 10 | var n = [], r = e.document, i = Object.getPrototypeOf, o = n.slice, a = n.concat, s = n.push, u = n.indexOf, l = {}, 11 | c = l.toString, f = l.hasOwnProperty, p = f.toString, d = p.call(Object), h = {}, g = function e(t) { 12 | return "function" == typeof t && "number" != typeof t.nodeType 13 | }, y = function e(t) { 14 | return null != t && t === t.window 15 | }, v = {type: !0, src: !0, noModule: !0}; 16 | 17 | function m(e, t, n) { 18 | var i, o = (t = t || r).createElement("script"); 19 | if (o.text = e, n) for (i in v) n[i] && (o[i] = n[i]); 20 | t.head.appendChild(o).parentNode.removeChild(o) 21 | } 22 | 23 | function x(e) { 24 | return null == e ? e + "" : "object" == typeof e || "function" == typeof e ? l[c.call(e)] || "object" : typeof e 25 | } 26 | 27 | var b = "3.3.1", w = function (e, t) { 28 | return new w.fn.init(e, t) 29 | }, T = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g; 30 | w.fn = w.prototype = { 31 | jquery: "3.3.1", constructor: w, length: 0, toArray: function () { 32 | return o.call(this) 33 | }, get: function (e) { 34 | return null == e ? o.call(this) : e < 0 ? this[e + this.length] : this[e] 35 | }, pushStack: function (e) { 36 | var t = w.merge(this.constructor(), e); 37 | return t.prevObject = this, t 38 | }, each: function (e) { 39 | return w.each(this, e) 40 | }, map: function (e) { 41 | return this.pushStack(w.map(this, function (t, n) { 42 | return e.call(t, n, t) 43 | })) 44 | }, slice: function () { 45 | return this.pushStack(o.apply(this, arguments)) 46 | }, first: function () { 47 | return this.eq(0) 48 | }, last: function () { 49 | return this.eq(-1) 50 | }, eq: function (e) { 51 | var t = this.length, n = +e + (e < 0 ? t : 0); 52 | return this.pushStack(n >= 0 && n < t ? [this[n]] : []) 53 | }, end: function () { 54 | return this.prevObject || this.constructor() 55 | }, push: s, sort: n.sort, splice: n.splice 56 | }, w.extend = w.fn.extend = function () { 57 | var e, t, n, r, i, o, a = arguments[0] || {}, s = 1, u = arguments.length, l = !1; 58 | for ("boolean" == typeof a && (l = a, a = arguments[s] || {}, s++), "object" == typeof a || g(a) || (a = {}), s === u && (a = this, s--); s < u; s++) if (null != (e = arguments[s])) for (t in e) n = a[t], a !== (r = e[t]) && (l && r && (w.isPlainObject(r) || (i = Array.isArray(r))) ? (i ? (i = !1, o = n && Array.isArray(n) ? n : []) : o = n && w.isPlainObject(n) ? n : {}, a[t] = w.extend(l, o, r)) : void 0 !== r && (a[t] = r)); 59 | return a 60 | }, w.extend({ 61 | expando: "jQuery" + ("3.3.1" + Math.random()).replace(/\D/g, ""), isReady: !0, error: function (e) { 62 | throw new Error(e) 63 | }, noop: function () { 64 | }, isPlainObject: function (e) { 65 | var t, n; 66 | return !(!e || "[object Object]" !== c.call(e)) && (!(t = i(e)) || "function" == typeof(n = f.call(t, "constructor") && t.constructor) && p.call(n) === d) 67 | }, isEmptyObject: function (e) { 68 | var t; 69 | for (t in e) return !1; 70 | return !0 71 | }, globalEval: function (e) { 72 | m(e) 73 | }, each: function (e, t) { 74 | var n, r = 0; 75 | if (C(e)) { 76 | for (n = e.length; r < n; r++) if (!1 === t.call(e[r], r, e[r])) break 77 | } else for (r in e) if (!1 === t.call(e[r], r, e[r])) break; 78 | return e 79 | }, trim: function (e) { 80 | return null == e ? "" : (e + "").replace(T, "") 81 | }, makeArray: function (e, t) { 82 | var n = t || []; 83 | return null != e && (C(Object(e)) ? w.merge(n, "string" == typeof e ? [e] : e) : s.call(n, e)), n 84 | }, inArray: function (e, t, n) { 85 | return null == t ? -1 : u.call(t, e, n) 86 | }, merge: function (e, t) { 87 | for (var n = +t.length, r = 0, i = e.length; r < n; r++) e[i++] = t[r]; 88 | return e.length = i, e 89 | }, grep: function (e, t, n) { 90 | for (var r, i = [], o = 0, a = e.length, s = !n; o < a; o++) (r = !t(e[o], o)) !== s && i.push(e[o]); 91 | return i 92 | }, map: function (e, t, n) { 93 | var r, i, o = 0, s = []; 94 | if (C(e)) for (r = e.length; o < r; o++) null != (i = t(e[o], o, n)) && s.push(i); else for (o in e) null != (i = t(e[o], o, n)) && s.push(i); 95 | return a.apply([], s) 96 | }, guid: 1, support: h 97 | }), "function" == typeof Symbol && (w.fn[Symbol.iterator] = n[Symbol.iterator]), w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "), function (e, t) { 98 | l["[object " + t + "]"] = t.toLowerCase() 99 | }); 100 | 101 | function C(e) { 102 | var t = !!e && "length" in e && e.length, n = x(e); 103 | return !g(e) && !y(e) && ("array" === n || 0 === t || "number" == typeof t && t > 0 && t - 1 in e) 104 | } 105 | 106 | var E = function (e) { 107 | var t, n, r, i, o, a, s, u, l, c, f, p, d, h, g, y, v, m, x, b = "sizzle" + 1 * new Date, w = e.document, T = 0, 108 | C = 0, E = ae(), k = ae(), S = ae(), D = function (e, t) { 109 | return e === t && (f = !0), 0 110 | }, N = {}.hasOwnProperty, A = [], j = A.pop, q = A.push, L = A.push, H = A.slice, O = function (e, t) { 111 | for (var n = 0, r = e.length; n < r; n++) if (e[n] === t) return n; 112 | return -1 113 | }, 114 | P = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", 115 | M = "[\\x20\\t\\r\\n\\f]", R = "(?:\\\\.|[\\w-]|[^\0-\\xa0])+", 116 | I = "\\[" + M + "*(" + R + ")(?:" + M + "*([*^$|!~]?=)" + M + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + R + "))|)" + M + "*\\]", 117 | W = ":(" + R + ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" + I + ")*)|.*)\\)|)", 118 | $ = new RegExp(M + "+", "g"), B = new RegExp("^" + M + "+|((?:^|[^\\\\])(?:\\\\.)*)" + M + "+$", "g"), 119 | F = new RegExp("^" + M + "*," + M + "*"), _ = new RegExp("^" + M + "*([>+~]|" + M + ")" + M + "*"), 120 | z = new RegExp("=" + M + "*([^\\]'\"]*?)" + M + "*\\]", "g"), X = new RegExp(W), 121 | U = new RegExp("^" + R + "$"), V = { 122 | ID: new RegExp("^#(" + R + ")"), 123 | CLASS: new RegExp("^\\.(" + R + ")"), 124 | TAG: new RegExp("^(" + R + "|[*])"), 125 | ATTR: new RegExp("^" + I), 126 | PSEUDO: new RegExp("^" + W), 127 | CHILD: new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + M + "*(even|odd|(([+-]|)(\\d*)n|)" + M + "*(?:([+-]|)" + M + "*(\\d+)|))" + M + "*\\)|)", "i"), 128 | bool: new RegExp("^(?:" + P + ")$", "i"), 129 | needsContext: new RegExp("^" + M + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + M + "*((?:-\\d)?\\d*)" + M + "*\\)|)(?=[^-]|$)", "i") 130 | }, G = /^(?:input|select|textarea|button)$/i, Y = /^h\d$/i, Q = /^[^{]+\{\s*\[native \w/, 131 | J = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, K = /[+~]/, 132 | Z = new RegExp("\\\\([\\da-f]{1,6}" + M + "?|(" + M + ")|.)", "ig"), ee = function (e, t, n) { 133 | var r = "0x" + t - 65536; 134 | return r !== r || n ? t : r < 0 ? String.fromCharCode(r + 65536) : String.fromCharCode(r >> 10 | 55296, 1023 & r | 56320) 135 | }, te = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g, ne = function (e, t) { 136 | return t ? "\0" === e ? "\ufffd" : e.slice(0, -1) + "\\" + e.charCodeAt(e.length - 1).toString(16) + " " : "\\" + e 137 | }, re = function () { 138 | p() 139 | }, ie = me(function (e) { 140 | return !0 === e.disabled && ("form" in e || "label" in e) 141 | }, {dir: "parentNode", next: "legend"}); 142 | try { 143 | L.apply(A = H.call(w.childNodes), w.childNodes), A[w.childNodes.length].nodeType 144 | } catch (e) { 145 | L = { 146 | apply: A.length ? function (e, t) { 147 | q.apply(e, H.call(t)) 148 | } : function (e, t) { 149 | var n = e.length, r = 0; 150 | while (e[n++] = t[r++]) ; 151 | e.length = n - 1 152 | } 153 | } 154 | } 155 | 156 | function oe(e, t, r, i) { 157 | var o, s, l, c, f, h, v, m = t && t.ownerDocument, T = t ? t.nodeType : 9; 158 | if (r = r || [], "string" != typeof e || !e || 1 !== T && 9 !== T && 11 !== T) return r; 159 | if (!i && ((t ? t.ownerDocument || t : w) !== d && p(t), t = t || d, g)) { 160 | if (11 !== T && (f = J.exec(e))) if (o = f[1]) { 161 | if (9 === T) { 162 | if (!(l = t.getElementById(o))) return r; 163 | if (l.id === o) return r.push(l), r 164 | } else if (m && (l = m.getElementById(o)) && x(t, l) && l.id === o) return r.push(l), r 165 | } else { 166 | if (f[2]) return L.apply(r, t.getElementsByTagName(e)), r; 167 | if ((o = f[3]) && n.getElementsByClassName && t.getElementsByClassName) return L.apply(r, t.getElementsByClassName(o)), r 168 | } 169 | if (n.qsa && !S[e + " "] && (!y || !y.test(e))) { 170 | if (1 !== T) m = t, v = e; else if ("object" !== t.nodeName.toLowerCase()) { 171 | (c = t.getAttribute("id")) ? c = c.replace(te, ne) : t.setAttribute("id", c = b), s = (h = a(e)).length; 172 | while (s--) h[s] = "#" + c + " " + ve(h[s]); 173 | v = h.join(","), m = K.test(e) && ge(t.parentNode) || t 174 | } 175 | if (v) try { 176 | return L.apply(r, m.querySelectorAll(v)), r 177 | } catch (e) { 178 | } finally { 179 | c === b && t.removeAttribute("id") 180 | } 181 | } 182 | } 183 | return u(e.replace(B, "$1"), t, r, i) 184 | } 185 | 186 | function ae() { 187 | var e = []; 188 | 189 | function t(n, i) { 190 | return e.push(n + " ") > r.cacheLength && delete t[e.shift()], t[n + " "] = i 191 | } 192 | 193 | return t 194 | } 195 | 196 | function se(e) { 197 | return e[b] = !0, e 198 | } 199 | 200 | function ue(e) { 201 | var t = d.createElement("fieldset"); 202 | try { 203 | return !!e(t) 204 | } catch (e) { 205 | return !1 206 | } finally { 207 | t.parentNode && t.parentNode.removeChild(t), t = null 208 | } 209 | } 210 | 211 | function le(e, t) { 212 | var n = e.split("|"), i = n.length; 213 | while (i--) r.attrHandle[n[i]] = t 214 | } 215 | 216 | function ce(e, t) { 217 | var n = t && e, r = n && 1 === e.nodeType && 1 === t.nodeType && e.sourceIndex - t.sourceIndex; 218 | if (r) return r; 219 | if (n) while (n = n.nextSibling) if (n === t) return -1; 220 | return e ? 1 : -1 221 | } 222 | 223 | function fe(e) { 224 | return function (t) { 225 | return "input" === t.nodeName.toLowerCase() && t.type === e 226 | } 227 | } 228 | 229 | function pe(e) { 230 | return function (t) { 231 | var n = t.nodeName.toLowerCase(); 232 | return ("input" === n || "button" === n) && t.type === e 233 | } 234 | } 235 | 236 | function de(e) { 237 | return function (t) { 238 | return "form" in t ? t.parentNode && !1 === t.disabled ? "label" in t ? "label" in t.parentNode ? t.parentNode.disabled === e : t.disabled === e : t.isDisabled === e || t.isDisabled !== !e && ie(t) === e : t.disabled === e : "label" in t && t.disabled === e 239 | } 240 | } 241 | 242 | function he(e) { 243 | return se(function (t) { 244 | return t = +t, se(function (n, r) { 245 | var i, o = e([], n.length, t), a = o.length; 246 | while (a--) n[i = o[a]] && (n[i] = !(r[i] = n[i])) 247 | }) 248 | }) 249 | } 250 | 251 | function ge(e) { 252 | return e && "undefined" != typeof e.getElementsByTagName && e 253 | } 254 | 255 | n = oe.support = {}, o = oe.isXML = function (e) { 256 | var t = e && (e.ownerDocument || e).documentElement; 257 | return !!t && "HTML" !== t.nodeName 258 | }, p = oe.setDocument = function (e) { 259 | var t, i, a = e ? e.ownerDocument || e : w; 260 | return a !== d && 9 === a.nodeType && a.documentElement ? (d = a, h = d.documentElement, g = !o(d), w !== d && (i = d.defaultView) && i.top !== i && (i.addEventListener ? i.addEventListener("unload", re, !1) : i.attachEvent && i.attachEvent("onunload", re)), n.attributes = ue(function (e) { 261 | return e.className = "i", !e.getAttribute("className") 262 | }), n.getElementsByTagName = ue(function (e) { 263 | return e.appendChild(d.createComment("")), !e.getElementsByTagName("*").length 264 | }), n.getElementsByClassName = Q.test(d.getElementsByClassName), n.getById = ue(function (e) { 265 | return h.appendChild(e).id = b, !d.getElementsByName || !d.getElementsByName(b).length 266 | }), n.getById ? (r.filter.ID = function (e) { 267 | var t = e.replace(Z, ee); 268 | return function (e) { 269 | return e.getAttribute("id") === t 270 | } 271 | }, r.find.ID = function (e, t) { 272 | if ("undefined" != typeof t.getElementById && g) { 273 | var n = t.getElementById(e); 274 | return n ? [n] : [] 275 | } 276 | }) : (r.filter.ID = function (e) { 277 | var t = e.replace(Z, ee); 278 | return function (e) { 279 | var n = "undefined" != typeof e.getAttributeNode && e.getAttributeNode("id"); 280 | return n && n.value === t 281 | } 282 | }, r.find.ID = function (e, t) { 283 | if ("undefined" != typeof t.getElementById && g) { 284 | var n, r, i, o = t.getElementById(e); 285 | if (o) { 286 | if ((n = o.getAttributeNode("id")) && n.value === e) return [o]; 287 | i = t.getElementsByName(e), r = 0; 288 | while (o = i[r++]) if ((n = o.getAttributeNode("id")) && n.value === e) return [o] 289 | } 290 | return [] 291 | } 292 | }), r.find.TAG = n.getElementsByTagName ? function (e, t) { 293 | return "undefined" != typeof t.getElementsByTagName ? t.getElementsByTagName(e) : n.qsa ? t.querySelectorAll(e) : void 0 294 | } : function (e, t) { 295 | var n, r = [], i = 0, o = t.getElementsByTagName(e); 296 | if ("*" === e) { 297 | while (n = o[i++]) 1 === n.nodeType && r.push(n); 298 | return r 299 | } 300 | return o 301 | }, r.find.CLASS = n.getElementsByClassName && function (e, t) { 302 | if ("undefined" != typeof t.getElementsByClassName && g) return t.getElementsByClassName(e) 303 | }, v = [], y = [], (n.qsa = Q.test(d.querySelectorAll)) && (ue(function (e) { 304 | h.appendChild(e).innerHTML = "", e.querySelectorAll("[msallowcapture^='']").length && y.push("[*^$]=" + M + "*(?:''|\"\")"), e.querySelectorAll("[selected]").length || y.push("\\[" + M + "*(?:value|" + P + ")"), e.querySelectorAll("[id~=" + b + "-]").length || y.push("~="), e.querySelectorAll(":checked").length || y.push(":checked"), e.querySelectorAll("a#" + b + "+*").length || y.push(".#.+[+~]") 305 | }), ue(function (e) { 306 | e.innerHTML = ""; 307 | var t = d.createElement("input"); 308 | t.setAttribute("type", "hidden"), e.appendChild(t).setAttribute("name", "D"), e.querySelectorAll("[name=d]").length && y.push("name" + M + "*[*^$|!~]?="), 2 !== e.querySelectorAll(":enabled").length && y.push(":enabled", ":disabled"), h.appendChild(e).disabled = !0, 2 !== e.querySelectorAll(":disabled").length && y.push(":enabled", ":disabled"), e.querySelectorAll("*,:x"), y.push(",.*:") 309 | })), (n.matchesSelector = Q.test(m = h.matches || h.webkitMatchesSelector || h.mozMatchesSelector || h.oMatchesSelector || h.msMatchesSelector)) && ue(function (e) { 310 | n.disconnectedMatch = m.call(e, "*"), m.call(e, "[s!='']:x"), v.push("!=", W) 311 | }), y = y.length && new RegExp(y.join("|")), v = v.length && new RegExp(v.join("|")), t = Q.test(h.compareDocumentPosition), x = t || Q.test(h.contains) ? function (e, t) { 312 | var n = 9 === e.nodeType ? e.documentElement : e, r = t && t.parentNode; 313 | return e === r || !(!r || 1 !== r.nodeType || !(n.contains ? n.contains(r) : e.compareDocumentPosition && 16 & e.compareDocumentPosition(r))) 314 | } : function (e, t) { 315 | if (t) while (t = t.parentNode) if (t === e) return !0; 316 | return !1 317 | }, D = t ? function (e, t) { 318 | if (e === t) return f = !0, 0; 319 | var r = !e.compareDocumentPosition - !t.compareDocumentPosition; 320 | return r || (1 & (r = (e.ownerDocument || e) === (t.ownerDocument || t) ? e.compareDocumentPosition(t) : 1) || !n.sortDetached && t.compareDocumentPosition(e) === r ? e === d || e.ownerDocument === w && x(w, e) ? -1 : t === d || t.ownerDocument === w && x(w, t) ? 1 : c ? O(c, e) - O(c, t) : 0 : 4 & r ? -1 : 1) 321 | } : function (e, t) { 322 | if (e === t) return f = !0, 0; 323 | var n, r = 0, i = e.parentNode, o = t.parentNode, a = [e], s = [t]; 324 | if (!i || !o) return e === d ? -1 : t === d ? 1 : i ? -1 : o ? 1 : c ? O(c, e) - O(c, t) : 0; 325 | if (i === o) return ce(e, t); 326 | n = e; 327 | while (n = n.parentNode) a.unshift(n); 328 | n = t; 329 | while (n = n.parentNode) s.unshift(n); 330 | while (a[r] === s[r]) r++; 331 | return r ? ce(a[r], s[r]) : a[r] === w ? -1 : s[r] === w ? 1 : 0 332 | }, d) : d 333 | }, oe.matches = function (e, t) { 334 | return oe(e, null, null, t) 335 | }, oe.matchesSelector = function (e, t) { 336 | if ((e.ownerDocument || e) !== d && p(e), t = t.replace(z, "='$1']"), n.matchesSelector && g && !S[t + " "] && (!v || !v.test(t)) && (!y || !y.test(t))) try { 337 | var r = m.call(e, t); 338 | if (r || n.disconnectedMatch || e.document && 11 !== e.document.nodeType) return r 339 | } catch (e) { 340 | } 341 | return oe(t, d, null, [e]).length > 0 342 | }, oe.contains = function (e, t) { 343 | return (e.ownerDocument || e) !== d && p(e), x(e, t) 344 | }, oe.attr = function (e, t) { 345 | (e.ownerDocument || e) !== d && p(e); 346 | var i = r.attrHandle[t.toLowerCase()], 347 | o = i && N.call(r.attrHandle, t.toLowerCase()) ? i(e, t, !g) : void 0; 348 | return void 0 !== o ? o : n.attributes || !g ? e.getAttribute(t) : (o = e.getAttributeNode(t)) && o.specified ? o.value : null 349 | }, oe.escape = function (e) { 350 | return (e + "").replace(te, ne) 351 | }, oe.error = function (e) { 352 | throw new Error("Syntax error, unrecognized expression: " + e) 353 | }, oe.uniqueSort = function (e) { 354 | var t, r = [], i = 0, o = 0; 355 | if (f = !n.detectDuplicates, c = !n.sortStable && e.slice(0), e.sort(D), f) { 356 | while (t = e[o++]) t === e[o] && (i = r.push(o)); 357 | while (i--) e.splice(r[i], 1) 358 | } 359 | return c = null, e 360 | }, i = oe.getText = function (e) { 361 | var t, n = "", r = 0, o = e.nodeType; 362 | if (o) { 363 | if (1 === o || 9 === o || 11 === o) { 364 | if ("string" == typeof e.textContent) return e.textContent; 365 | for (e = e.firstChild; e; e = e.nextSibling) n += i(e) 366 | } else if (3 === o || 4 === o) return e.nodeValue 367 | } else while (t = e[r++]) n += i(t); 368 | return n 369 | }, (r = oe.selectors = { 370 | cacheLength: 50, 371 | createPseudo: se, 372 | match: V, 373 | attrHandle: {}, 374 | find: {}, 375 | relative: { 376 | ">": {dir: "parentNode", first: !0}, 377 | " ": {dir: "parentNode"}, 378 | "+": {dir: "previousSibling", first: !0}, 379 | "~": {dir: "previousSibling"} 380 | }, 381 | preFilter: { 382 | ATTR: function (e) { 383 | return e[1] = e[1].replace(Z, ee), e[3] = (e[3] || e[4] || e[5] || "").replace(Z, ee), "~=" === e[2] && (e[3] = " " + e[3] + " "), e.slice(0, 4) 384 | }, CHILD: function (e) { 385 | return e[1] = e[1].toLowerCase(), "nth" === e[1].slice(0, 3) ? (e[3] || oe.error(e[0]), e[4] = +(e[4] ? e[5] + (e[6] || 1) : 2 * ("even" === e[3] || "odd" === e[3])), e[5] = +(e[7] + e[8] || "odd" === e[3])) : e[3] && oe.error(e[0]), e 386 | }, PSEUDO: function (e) { 387 | var t, n = !e[6] && e[2]; 388 | return V.CHILD.test(e[0]) ? null : (e[3] ? e[2] = e[4] || e[5] || "" : n && X.test(n) && (t = a(n, !0)) && (t = n.indexOf(")", n.length - t) - n.length) && (e[0] = e[0].slice(0, t), e[2] = n.slice(0, t)), e.slice(0, 3)) 389 | } 390 | }, 391 | filter: { 392 | TAG: function (e) { 393 | var t = e.replace(Z, ee).toLowerCase(); 394 | return "*" === e ? function () { 395 | return !0 396 | } : function (e) { 397 | return e.nodeName && e.nodeName.toLowerCase() === t 398 | } 399 | }, CLASS: function (e) { 400 | var t = E[e + " "]; 401 | return t || (t = new RegExp("(^|" + M + ")" + e + "(" + M + "|$)")) && E(e, function (e) { 402 | return t.test("string" == typeof e.className && e.className || "undefined" != typeof e.getAttribute && e.getAttribute("class") || "") 403 | }) 404 | }, ATTR: function (e, t, n) { 405 | return function (r) { 406 | var i = oe.attr(r, e); 407 | return null == i ? "!=" === t : !t || (i += "", "=" === t ? i === n : "!=" === t ? i !== n : "^=" === t ? n && 0 === i.indexOf(n) : "*=" === t ? n && i.indexOf(n) > -1 : "$=" === t ? n && i.slice(-n.length) === n : "~=" === t ? (" " + i.replace($, " ") + " ").indexOf(n) > -1 : "|=" === t && (i === n || i.slice(0, n.length + 1) === n + "-")) 408 | } 409 | }, CHILD: function (e, t, n, r, i) { 410 | var o = "nth" !== e.slice(0, 3), a = "last" !== e.slice(-4), s = "of-type" === t; 411 | return 1 === r && 0 === i ? function (e) { 412 | return !!e.parentNode 413 | } : function (t, n, u) { 414 | var l, c, f, p, d, h, g = o !== a ? "nextSibling" : "previousSibling", y = t.parentNode, 415 | v = s && t.nodeName.toLowerCase(), m = !u && !s, x = !1; 416 | if (y) { 417 | if (o) { 418 | while (g) { 419 | p = t; 420 | while (p = p[g]) if (s ? p.nodeName.toLowerCase() === v : 1 === p.nodeType) return !1; 421 | h = g = "only" === e && !h && "nextSibling" 422 | } 423 | return !0 424 | } 425 | if (h = [a ? y.firstChild : y.lastChild], a && m) { 426 | x = (d = (l = (c = (f = (p = y)[b] || (p[b] = {}))[p.uniqueID] || (f[p.uniqueID] = {}))[e] || [])[0] === T && l[1]) && l[2], p = d && y.childNodes[d]; 427 | while (p = ++d && p && p[g] || (x = d = 0) || h.pop()) if (1 === p.nodeType && ++x && p === t) { 428 | c[e] = [T, d, x]; 429 | break 430 | } 431 | } else if (m && (x = d = (l = (c = (f = (p = t)[b] || (p[b] = {}))[p.uniqueID] || (f[p.uniqueID] = {}))[e] || [])[0] === T && l[1]), !1 === x) while (p = ++d && p && p[g] || (x = d = 0) || h.pop()) if ((s ? p.nodeName.toLowerCase() === v : 1 === p.nodeType) && ++x && (m && ((c = (f = p[b] || (p[b] = {}))[p.uniqueID] || (f[p.uniqueID] = {}))[e] = [T, x]), p === t)) break; 432 | return (x -= i) === r || x % r == 0 && x / r >= 0 433 | } 434 | } 435 | }, PSEUDO: function (e, t) { 436 | var n, i = r.pseudos[e] || r.setFilters[e.toLowerCase()] || oe.error("unsupported pseudo: " + e); 437 | return i[b] ? i(t) : i.length > 1 ? (n = [e, e, "", t], r.setFilters.hasOwnProperty(e.toLowerCase()) ? se(function (e, n) { 438 | var r, o = i(e, t), a = o.length; 439 | while (a--) e[r = O(e, o[a])] = !(n[r] = o[a]) 440 | }) : function (e) { 441 | return i(e, 0, n) 442 | }) : i 443 | } 444 | }, 445 | pseudos: { 446 | not: se(function (e) { 447 | var t = [], n = [], r = s(e.replace(B, "$1")); 448 | return r[b] ? se(function (e, t, n, i) { 449 | var o, a = r(e, null, i, []), s = e.length; 450 | while (s--) (o = a[s]) && (e[s] = !(t[s] = o)) 451 | }) : function (e, i, o) { 452 | return t[0] = e, r(t, null, o, n), t[0] = null, !n.pop() 453 | } 454 | }), has: se(function (e) { 455 | return function (t) { 456 | return oe(e, t).length > 0 457 | } 458 | }), contains: se(function (e) { 459 | return e = e.replace(Z, ee), function (t) { 460 | return (t.textContent || t.innerText || i(t)).indexOf(e) > -1 461 | } 462 | }), lang: se(function (e) { 463 | return U.test(e || "") || oe.error("unsupported lang: " + e), e = e.replace(Z, ee).toLowerCase(), function (t) { 464 | var n; 465 | do { 466 | if (n = g ? t.lang : t.getAttribute("xml:lang") || t.getAttribute("lang")) return (n = n.toLowerCase()) === e || 0 === n.indexOf(e + "-") 467 | } while ((t = t.parentNode) && 1 === t.nodeType); 468 | return !1 469 | } 470 | }), target: function (t) { 471 | var n = e.location && e.location.hash; 472 | return n && n.slice(1) === t.id 473 | }, root: function (e) { 474 | return e === h 475 | }, focus: function (e) { 476 | return e === d.activeElement && (!d.hasFocus || d.hasFocus()) && !!(e.type || e.href || ~e.tabIndex) 477 | }, enabled: de(!1), disabled: de(!0), checked: function (e) { 478 | var t = e.nodeName.toLowerCase(); 479 | return "input" === t && !!e.checked || "option" === t && !!e.selected 480 | }, selected: function (e) { 481 | return e.parentNode && e.parentNode.selectedIndex, !0 === e.selected 482 | }, empty: function (e) { 483 | for (e = e.firstChild; e; e = e.nextSibling) if (e.nodeType < 6) return !1; 484 | return !0 485 | }, parent: function (e) { 486 | return !r.pseudos.empty(e) 487 | }, header: function (e) { 488 | return Y.test(e.nodeName) 489 | }, input: function (e) { 490 | return G.test(e.nodeName) 491 | }, button: function (e) { 492 | var t = e.nodeName.toLowerCase(); 493 | return "input" === t && "button" === e.type || "button" === t 494 | }, text: function (e) { 495 | var t; 496 | return "input" === e.nodeName.toLowerCase() && "text" === e.type && (null == (t = e.getAttribute("type")) || "text" === t.toLowerCase()) 497 | }, first: he(function () { 498 | return [0] 499 | }), last: he(function (e, t) { 500 | return [t - 1] 501 | }), eq: he(function (e, t, n) { 502 | return [n < 0 ? n + t : n] 503 | }), even: he(function (e, t) { 504 | for (var n = 0; n < t; n += 2) e.push(n); 505 | return e 506 | }), odd: he(function (e, t) { 507 | for (var n = 1; n < t; n += 2) e.push(n); 508 | return e 509 | }), lt: he(function (e, t, n) { 510 | for (var r = n < 0 ? n + t : n; --r >= 0;) e.push(r); 511 | return e 512 | }), gt: he(function (e, t, n) { 513 | for (var r = n < 0 ? n + t : n; ++r < t;) e.push(r); 514 | return e 515 | }) 516 | } 517 | }).pseudos.nth = r.pseudos.eq; 518 | for (t in{radio: !0, checkbox: !0, file: !0, password: !0, image: !0}) r.pseudos[t] = fe(t); 519 | for (t in{submit: !0, reset: !0}) r.pseudos[t] = pe(t); 520 | 521 | function ye() { 522 | } 523 | 524 | ye.prototype = r.filters = r.pseudos, r.setFilters = new ye, a = oe.tokenize = function (e, t) { 525 | var n, i, o, a, s, u, l, c = k[e + " "]; 526 | if (c) return t ? 0 : c.slice(0); 527 | s = e, u = [], l = r.preFilter; 528 | while (s) { 529 | n && !(i = F.exec(s)) || (i && (s = s.slice(i[0].length) || s), u.push(o = [])), n = !1, (i = _.exec(s)) && (n = i.shift(), o.push({ 530 | value: n, 531 | type: i[0].replace(B, " ") 532 | }), s = s.slice(n.length)); 533 | for (a in r.filter) !(i = V[a].exec(s)) || l[a] && !(i = l[a](i)) || (n = i.shift(), o.push({ 534 | value: n, 535 | type: a, 536 | matches: i 537 | }), s = s.slice(n.length)); 538 | if (!n) break 539 | } 540 | return t ? s.length : s ? oe.error(e) : k(e, u).slice(0) 541 | }; 542 | 543 | function ve(e) { 544 | for (var t = 0, n = e.length, r = ""; t < n; t++) r += e[t].value; 545 | return r 546 | } 547 | 548 | function me(e, t, n) { 549 | var r = t.dir, i = t.next, o = i || r, a = n && "parentNode" === o, s = C++; 550 | return t.first ? function (t, n, i) { 551 | while (t = t[r]) if (1 === t.nodeType || a) return e(t, n, i); 552 | return !1 553 | } : function (t, n, u) { 554 | var l, c, f, p = [T, s]; 555 | if (u) { 556 | while (t = t[r]) if ((1 === t.nodeType || a) && e(t, n, u)) return !0 557 | } else while (t = t[r]) if (1 === t.nodeType || a) if (f = t[b] || (t[b] = {}), c = f[t.uniqueID] || (f[t.uniqueID] = {}), i && i === t.nodeName.toLowerCase()) t = t[r] || t; else { 558 | if ((l = c[o]) && l[0] === T && l[1] === s) return p[2] = l[2]; 559 | if (c[o] = p, p[2] = e(t, n, u)) return !0 560 | } 561 | return !1 562 | } 563 | } 564 | 565 | function xe(e) { 566 | return e.length > 1 ? function (t, n, r) { 567 | var i = e.length; 568 | while (i--) if (!e[i](t, n, r)) return !1; 569 | return !0 570 | } : e[0] 571 | } 572 | 573 | function be(e, t, n) { 574 | for (var r = 0, i = t.length; r < i; r++) oe(e, t[r], n); 575 | return n 576 | } 577 | 578 | function we(e, t, n, r, i) { 579 | for (var o, a = [], s = 0, u = e.length, l = null != t; s < u; s++) (o = e[s]) && (n && !n(o, r, i) || (a.push(o), l && t.push(s))); 580 | return a 581 | } 582 | 583 | function Te(e, t, n, r, i, o) { 584 | return r && !r[b] && (r = Te(r)), i && !i[b] && (i = Te(i, o)), se(function (o, a, s, u) { 585 | var l, c, f, p = [], d = [], h = a.length, g = o || be(t || "*", s.nodeType ? [s] : s, []), 586 | y = !e || !o && t ? g : we(g, p, e, s, u), v = n ? i || (o ? e : h || r) ? [] : a : y; 587 | if (n && n(y, v, s, u), r) { 588 | l = we(v, d), r(l, [], s, u), c = l.length; 589 | while (c--) (f = l[c]) && (v[d[c]] = !(y[d[c]] = f)) 590 | } 591 | if (o) { 592 | if (i || e) { 593 | if (i) { 594 | l = [], c = v.length; 595 | while (c--) (f = v[c]) && l.push(y[c] = f); 596 | i(null, v = [], l, u) 597 | } 598 | c = v.length; 599 | while (c--) (f = v[c]) && (l = i ? O(o, f) : p[c]) > -1 && (o[l] = !(a[l] = f)) 600 | } 601 | } else v = we(v === a ? v.splice(h, v.length) : v), i ? i(null, a, v, u) : L.apply(a, v) 602 | }) 603 | } 604 | 605 | function Ce(e) { 606 | for (var t, n, i, o = e.length, a = r.relative[e[0].type], s = a || r.relative[" "], u = a ? 1 : 0, c = me(function (e) { 607 | return e === t 608 | }, s, !0), f = me(function (e) { 609 | return O(t, e) > -1 610 | }, s, !0), p = [function (e, n, r) { 611 | var i = !a && (r || n !== l) || ((t = n).nodeType ? c(e, n, r) : f(e, n, r)); 612 | return t = null, i 613 | }]; u < o; u++) if (n = r.relative[e[u].type]) p = [me(xe(p), n)]; else { 614 | if ((n = r.filter[e[u].type].apply(null, e[u].matches))[b]) { 615 | for (i = ++u; i < o; i++) if (r.relative[e[i].type]) break; 616 | return Te(u > 1 && xe(p), u > 1 && ve(e.slice(0, u - 1).concat({value: " " === e[u - 2].type ? "*" : ""})).replace(B, "$1"), n, u < i && Ce(e.slice(u, i)), i < o && Ce(e = e.slice(i)), i < o && ve(e)) 617 | } 618 | p.push(n) 619 | } 620 | return xe(p) 621 | } 622 | 623 | function Ee(e, t) { 624 | var n = t.length > 0, i = e.length > 0, o = function (o, a, s, u, c) { 625 | var f, h, y, v = 0, m = "0", x = o && [], b = [], w = l, C = o || i && r.find.TAG("*", c), 626 | E = T += null == w ? 1 : Math.random() || .1, k = C.length; 627 | for (c && (l = a === d || a || c); m !== k && null != (f = C[m]); m++) { 628 | if (i && f) { 629 | h = 0, a || f.ownerDocument === d || (p(f), s = !g); 630 | while (y = e[h++]) if (y(f, a || d, s)) { 631 | u.push(f); 632 | break 633 | } 634 | c && (T = E) 635 | } 636 | n && ((f = !y && f) && v--, o && x.push(f)) 637 | } 638 | if (v += m, n && m !== v) { 639 | h = 0; 640 | while (y = t[h++]) y(x, b, a, s); 641 | if (o) { 642 | if (v > 0) while (m--) x[m] || b[m] || (b[m] = j.call(u)); 643 | b = we(b) 644 | } 645 | L.apply(u, b), c && !o && b.length > 0 && v + t.length > 1 && oe.uniqueSort(u) 646 | } 647 | return c && (T = E, l = w), x 648 | }; 649 | return n ? se(o) : o 650 | } 651 | 652 | return s = oe.compile = function (e, t) { 653 | var n, r = [], i = [], o = S[e + " "]; 654 | if (!o) { 655 | t || (t = a(e)), n = t.length; 656 | while (n--) (o = Ce(t[n]))[b] ? r.push(o) : i.push(o); 657 | (o = S(e, Ee(i, r))).selector = e 658 | } 659 | return o 660 | }, u = oe.select = function (e, t, n, i) { 661 | var o, u, l, c, f, p = "function" == typeof e && e, d = !i && a(e = p.selector || e); 662 | if (n = n || [], 1 === d.length) { 663 | if ((u = d[0] = d[0].slice(0)).length > 2 && "ID" === (l = u[0]).type && 9 === t.nodeType && g && r.relative[u[1].type]) { 664 | if (!(t = (r.find.ID(l.matches[0].replace(Z, ee), t) || [])[0])) return n; 665 | p && (t = t.parentNode), e = e.slice(u.shift().value.length) 666 | } 667 | o = V.needsContext.test(e) ? 0 : u.length; 668 | while (o--) { 669 | if (l = u[o], r.relative[c = l.type]) break; 670 | if ((f = r.find[c]) && (i = f(l.matches[0].replace(Z, ee), K.test(u[0].type) && ge(t.parentNode) || t))) { 671 | if (u.splice(o, 1), !(e = i.length && ve(u))) return L.apply(n, i), n; 672 | break 673 | } 674 | } 675 | } 676 | return (p || s(e, d))(i, t, !g, n, !t || K.test(e) && ge(t.parentNode) || t), n 677 | }, n.sortStable = b.split("").sort(D).join("") === b, n.detectDuplicates = !!f, p(), n.sortDetached = ue(function (e) { 678 | return 1 & e.compareDocumentPosition(d.createElement("fieldset")) 679 | }), ue(function (e) { 680 | return e.innerHTML = "", "#" === e.firstChild.getAttribute("href") 681 | }) || le("type|href|height|width", function (e, t, n) { 682 | if (!n) return e.getAttribute(t, "type" === t.toLowerCase() ? 1 : 2) 683 | }), n.attributes && ue(function (e) { 684 | return e.innerHTML = "", e.firstChild.setAttribute("value", ""), "" === e.firstChild.getAttribute("value") 685 | }) || le("value", function (e, t, n) { 686 | if (!n && "input" === e.nodeName.toLowerCase()) return e.defaultValue 687 | }), ue(function (e) { 688 | return null == e.getAttribute("disabled") 689 | }) || le(P, function (e, t, n) { 690 | var r; 691 | if (!n) return !0 === e[t] ? t.toLowerCase() : (r = e.getAttributeNode(t)) && r.specified ? r.value : null 692 | }), oe 693 | }(e); 694 | w.find = E, w.expr = E.selectors, w.expr[":"] = w.expr.pseudos, w.uniqueSort = w.unique = E.uniqueSort, w.text = E.getText, w.isXMLDoc = E.isXML, w.contains = E.contains, w.escapeSelector = E.escape; 695 | var k = function (e, t, n) { 696 | var r = [], i = void 0 !== n; 697 | while ((e = e[t]) && 9 !== e.nodeType) if (1 === e.nodeType) { 698 | if (i && w(e).is(n)) break; 699 | r.push(e) 700 | } 701 | return r 702 | }, S = function (e, t) { 703 | for (var n = []; e; e = e.nextSibling) 1 === e.nodeType && e !== t && n.push(e); 704 | return n 705 | }, D = w.expr.match.needsContext; 706 | 707 | function N(e, t) { 708 | return e.nodeName && e.nodeName.toLowerCase() === t.toLowerCase() 709 | } 710 | 711 | var A = /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i; 712 | 713 | function j(e, t, n) { 714 | return g(t) ? w.grep(e, function (e, r) { 715 | return !!t.call(e, r, e) !== n 716 | }) : t.nodeType ? w.grep(e, function (e) { 717 | return e === t !== n 718 | }) : "string" != typeof t ? w.grep(e, function (e) { 719 | return u.call(t, e) > -1 !== n 720 | }) : w.filter(t, e, n) 721 | } 722 | 723 | w.filter = function (e, t, n) { 724 | var r = t[0]; 725 | return n && (e = ":not(" + e + ")"), 1 === t.length && 1 === r.nodeType ? w.find.matchesSelector(r, e) ? [r] : [] : w.find.matches(e, w.grep(t, function (e) { 726 | return 1 === e.nodeType 727 | })) 728 | }, w.fn.extend({ 729 | find: function (e) { 730 | var t, n, r = this.length, i = this; 731 | if ("string" != typeof e) return this.pushStack(w(e).filter(function () { 732 | for (t = 0; t < r; t++) if (w.contains(i[t], this)) return !0 733 | })); 734 | for (n = this.pushStack([]), t = 0; t < r; t++) w.find(e, i[t], n); 735 | return r > 1 ? w.uniqueSort(n) : n 736 | }, filter: function (e) { 737 | return this.pushStack(j(this, e || [], !1)) 738 | }, not: function (e) { 739 | return this.pushStack(j(this, e || [], !0)) 740 | }, is: function (e) { 741 | return !!j(this, "string" == typeof e && D.test(e) ? w(e) : e || [], !1).length 742 | } 743 | }); 744 | var q, L = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/; 745 | (w.fn.init = function (e, t, n) { 746 | var i, o; 747 | if (!e) return this; 748 | if (n = n || q, "string" == typeof e) { 749 | if (!(i = "<" === e[0] && ">" === e[e.length - 1] && e.length >= 3 ? [null, e, null] : L.exec(e)) || !i[1] && t) return !t || t.jquery ? (t || n).find(e) : this.constructor(t).find(e); 750 | if (i[1]) { 751 | if (t = t instanceof w ? t[0] : t, w.merge(this, w.parseHTML(i[1], t && t.nodeType ? t.ownerDocument || t : r, !0)), A.test(i[1]) && w.isPlainObject(t)) for (i in t) g(this[i]) ? this[i](t[i]) : this.attr(i, t[i]); 752 | return this 753 | } 754 | return (o = r.getElementById(i[2])) && (this[0] = o, this.length = 1), this 755 | } 756 | return e.nodeType ? (this[0] = e, this.length = 1, this) : g(e) ? void 0 !== n.ready ? n.ready(e) : e(w) : w.makeArray(e, this) 757 | }).prototype = w.fn, q = w(r); 758 | var H = /^(?:parents|prev(?:Until|All))/, O = {children: !0, contents: !0, next: !0, prev: !0}; 759 | w.fn.extend({ 760 | has: function (e) { 761 | var t = w(e, this), n = t.length; 762 | return this.filter(function () { 763 | for (var e = 0; e < n; e++) if (w.contains(this, t[e])) return !0 764 | }) 765 | }, closest: function (e, t) { 766 | var n, r = 0, i = this.length, o = [], a = "string" != typeof e && w(e); 767 | if (!D.test(e)) for (; r < i; r++) for (n = this[r]; n && n !== t; n = n.parentNode) if (n.nodeType < 11 && (a ? a.index(n) > -1 : 1 === n.nodeType && w.find.matchesSelector(n, e))) { 768 | o.push(n); 769 | break 770 | } 771 | return this.pushStack(o.length > 1 ? w.uniqueSort(o) : o) 772 | }, index: function (e) { 773 | return e ? "string" == typeof e ? u.call(w(e), this[0]) : u.call(this, e.jquery ? e[0] : e) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1 774 | }, add: function (e, t) { 775 | return this.pushStack(w.uniqueSort(w.merge(this.get(), w(e, t)))) 776 | }, addBack: function (e) { 777 | return this.add(null == e ? this.prevObject : this.prevObject.filter(e)) 778 | } 779 | }); 780 | 781 | function P(e, t) { 782 | while ((e = e[t]) && 1 !== e.nodeType) ; 783 | return e 784 | } 785 | 786 | w.each({ 787 | parent: function (e) { 788 | var t = e.parentNode; 789 | return t && 11 !== t.nodeType ? t : null 790 | }, parents: function (e) { 791 | return k(e, "parentNode") 792 | }, parentsUntil: function (e, t, n) { 793 | return k(e, "parentNode", n) 794 | }, next: function (e) { 795 | return P(e, "nextSibling") 796 | }, prev: function (e) { 797 | return P(e, "previousSibling") 798 | }, nextAll: function (e) { 799 | return k(e, "nextSibling") 800 | }, prevAll: function (e) { 801 | return k(e, "previousSibling") 802 | }, nextUntil: function (e, t, n) { 803 | return k(e, "nextSibling", n) 804 | }, prevUntil: function (e, t, n) { 805 | return k(e, "previousSibling", n) 806 | }, siblings: function (e) { 807 | return S((e.parentNode || {}).firstChild, e) 808 | }, children: function (e) { 809 | return S(e.firstChild) 810 | }, contents: function (e) { 811 | return N(e, "iframe") ? e.contentDocument : (N(e, "template") && (e = e.content || e), w.merge([], e.childNodes)) 812 | } 813 | }, function (e, t) { 814 | w.fn[e] = function (n, r) { 815 | var i = w.map(this, t, n); 816 | return "Until" !== e.slice(-5) && (r = n), r && "string" == typeof r && (i = w.filter(r, i)), this.length > 1 && (O[e] || w.uniqueSort(i), H.test(e) && i.reverse()), this.pushStack(i) 817 | } 818 | }); 819 | var M = /[^\x20\t\r\n\f]+/g; 820 | 821 | function R(e) { 822 | var t = {}; 823 | return w.each(e.match(M) || [], function (e, n) { 824 | t[n] = !0 825 | }), t 826 | } 827 | 828 | w.Callbacks = function (e) { 829 | e = "string" == typeof e ? R(e) : w.extend({}, e); 830 | var t, n, r, i, o = [], a = [], s = -1, u = function () { 831 | for (i = i || e.once, r = t = !0; a.length; s = -1) { 832 | n = a.shift(); 833 | while (++s < o.length) !1 === o[s].apply(n[0], n[1]) && e.stopOnFalse && (s = o.length, n = !1) 834 | } 835 | e.memory || (n = !1), t = !1, i && (o = n ? [] : "") 836 | }, l = { 837 | add: function () { 838 | return o && (n && !t && (s = o.length - 1, a.push(n)), function t(n) { 839 | w.each(n, function (n, r) { 840 | g(r) ? e.unique && l.has(r) || o.push(r) : r && r.length && "string" !== x(r) && t(r) 841 | }) 842 | }(arguments), n && !t && u()), this 843 | }, remove: function () { 844 | return w.each(arguments, function (e, t) { 845 | var n; 846 | while ((n = w.inArray(t, o, n)) > -1) o.splice(n, 1), n <= s && s-- 847 | }), this 848 | }, has: function (e) { 849 | return e ? w.inArray(e, o) > -1 : o.length > 0 850 | }, empty: function () { 851 | return o && (o = []), this 852 | }, disable: function () { 853 | return i = a = [], o = n = "", this 854 | }, disabled: function () { 855 | return !o 856 | }, lock: function () { 857 | return i = a = [], n || t || (o = n = ""), this 858 | }, locked: function () { 859 | return !!i 860 | }, fireWith: function (e, n) { 861 | return i || (n = [e, (n = n || []).slice ? n.slice() : n], a.push(n), t || u()), this 862 | }, fire: function () { 863 | return l.fireWith(this, arguments), this 864 | }, fired: function () { 865 | return !!r 866 | } 867 | }; 868 | return l 869 | }; 870 | 871 | function I(e) { 872 | return e 873 | } 874 | 875 | function W(e) { 876 | throw e 877 | } 878 | 879 | function $(e, t, n, r) { 880 | var i; 881 | try { 882 | e && g(i = e.promise) ? i.call(e).done(t).fail(n) : e && g(i = e.then) ? i.call(e, t, n) : t.apply(void 0, [e].slice(r)) 883 | } catch (e) { 884 | n.apply(void 0, [e]) 885 | } 886 | } 887 | 888 | w.extend({ 889 | Deferred: function (t) { 890 | var n = [["notify", "progress", w.Callbacks("memory"), w.Callbacks("memory"), 2], ["resolve", "done", w.Callbacks("once memory"), w.Callbacks("once memory"), 0, "resolved"], ["reject", "fail", w.Callbacks("once memory"), w.Callbacks("once memory"), 1, "rejected"]], 891 | r = "pending", i = { 892 | state: function () { 893 | return r 894 | }, always: function () { 895 | return o.done(arguments).fail(arguments), this 896 | }, "catch": function (e) { 897 | return i.then(null, e) 898 | }, pipe: function () { 899 | var e = arguments; 900 | return w.Deferred(function (t) { 901 | w.each(n, function (n, r) { 902 | var i = g(e[r[4]]) && e[r[4]]; 903 | o[r[1]](function () { 904 | var e = i && i.apply(this, arguments); 905 | e && g(e.promise) ? e.promise().progress(t.notify).done(t.resolve).fail(t.reject) : t[r[0] + "With"](this, i ? [e] : arguments) 906 | }) 907 | }), e = null 908 | }).promise() 909 | }, then: function (t, r, i) { 910 | var o = 0; 911 | 912 | function a(t, n, r, i) { 913 | return function () { 914 | var s = this, u = arguments, l = function () { 915 | var e, l; 916 | if (!(t < o)) { 917 | if ((e = r.apply(s, u)) === n.promise()) throw new TypeError("Thenable self-resolution"); 918 | l = e && ("object" == typeof e || "function" == typeof e) && e.then, g(l) ? i ? l.call(e, a(o, n, I, i), a(o, n, W, i)) : (o++, l.call(e, a(o, n, I, i), a(o, n, W, i), a(o, n, I, n.notifyWith))) : (r !== I && (s = void 0, u = [e]), (i || n.resolveWith)(s, u)) 919 | } 920 | }, c = i ? l : function () { 921 | try { 922 | l() 923 | } catch (e) { 924 | w.Deferred.exceptionHook && w.Deferred.exceptionHook(e, c.stackTrace), t + 1 >= o && (r !== W && (s = void 0, u = [e]), n.rejectWith(s, u)) 925 | } 926 | }; 927 | t ? c() : (w.Deferred.getStackHook && (c.stackTrace = w.Deferred.getStackHook()), e.setTimeout(c)) 928 | } 929 | } 930 | 931 | return w.Deferred(function (e) { 932 | n[0][3].add(a(0, e, g(i) ? i : I, e.notifyWith)), n[1][3].add(a(0, e, g(t) ? t : I)), n[2][3].add(a(0, e, g(r) ? r : W)) 933 | }).promise() 934 | }, promise: function (e) { 935 | return null != e ? w.extend(e, i) : i 936 | } 937 | }, o = {}; 938 | return w.each(n, function (e, t) { 939 | var a = t[2], s = t[5]; 940 | i[t[1]] = a.add, s && a.add(function () { 941 | r = s 942 | }, n[3 - e][2].disable, n[3 - e][3].disable, n[0][2].lock, n[0][3].lock), a.add(t[3].fire), o[t[0]] = function () { 943 | return o[t[0] + "With"](this === o ? void 0 : this, arguments), this 944 | }, o[t[0] + "With"] = a.fireWith 945 | }), i.promise(o), t && t.call(o, o), o 946 | }, when: function (e) { 947 | var t = arguments.length, n = t, r = Array(n), i = o.call(arguments), a = w.Deferred(), s = function (e) { 948 | return function (n) { 949 | r[e] = this, i[e] = arguments.length > 1 ? o.call(arguments) : n, --t || a.resolveWith(r, i) 950 | } 951 | }; 952 | if (t <= 1 && ($(e, a.done(s(n)).resolve, a.reject, !t), "pending" === a.state() || g(i[n] && i[n].then))) return a.then(); 953 | while (n--) $(i[n], s(n), a.reject); 954 | return a.promise() 955 | } 956 | }); 957 | var B = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/; 958 | w.Deferred.exceptionHook = function (t, n) { 959 | e.console && e.console.warn && t && B.test(t.name) && e.console.warn("jQuery.Deferred exception: " + t.message, t.stack, n) 960 | }, w.readyException = function (t) { 961 | e.setTimeout(function () { 962 | throw t 963 | }) 964 | }; 965 | var F = w.Deferred(); 966 | w.fn.ready = function (e) { 967 | return F.then(e)["catch"](function (e) { 968 | w.readyException(e) 969 | }), this 970 | }, w.extend({ 971 | isReady: !1, readyWait: 1, ready: function (e) { 972 | (!0 === e ? --w.readyWait : w.isReady) || (w.isReady = !0, !0 !== e && --w.readyWait > 0 || F.resolveWith(r, [w])) 973 | } 974 | }), w.ready.then = F.then; 975 | 976 | function _() { 977 | r.removeEventListener("DOMContentLoaded", _), e.removeEventListener("load", _), w.ready() 978 | } 979 | 980 | "complete" === r.readyState || "loading" !== r.readyState && !r.documentElement.doScroll ? e.setTimeout(w.ready) : (r.addEventListener("DOMContentLoaded", _), e.addEventListener("load", _)); 981 | var z = function (e, t, n, r, i, o, a) { 982 | var s = 0, u = e.length, l = null == n; 983 | if ("object" === x(n)) { 984 | i = !0; 985 | for (s in n) z(e, t, s, n[s], !0, o, a) 986 | } else if (void 0 !== r && (i = !0, g(r) || (a = !0), l && (a ? (t.call(e, r), t = null) : (l = t, t = function (e, t, n) { 987 | return l.call(w(e), n) 988 | })), t)) for (; s < u; s++) t(e[s], n, a ? r : r.call(e[s], s, t(e[s], n))); 989 | return i ? e : l ? t.call(e) : u ? t(e[0], n) : o 990 | }, X = /^-ms-/, U = /-([a-z])/g; 991 | 992 | function V(e, t) { 993 | return t.toUpperCase() 994 | } 995 | 996 | function G(e) { 997 | return e.replace(X, "ms-").replace(U, V) 998 | } 999 | 1000 | var Y = function (e) { 1001 | return 1 === e.nodeType || 9 === e.nodeType || !+e.nodeType 1002 | }; 1003 | 1004 | function Q() { 1005 | this.expando = w.expando + Q.uid++ 1006 | } 1007 | 1008 | Q.uid = 1, Q.prototype = { 1009 | cache: function (e) { 1010 | var t = e[this.expando]; 1011 | return t || (t = {}, Y(e) && (e.nodeType ? e[this.expando] = t : Object.defineProperty(e, this.expando, { 1012 | value: t, 1013 | configurable: !0 1014 | }))), t 1015 | }, set: function (e, t, n) { 1016 | var r, i = this.cache(e); 1017 | if ("string" == typeof t) i[G(t)] = n; else for (r in t) i[G(r)] = t[r]; 1018 | return i 1019 | }, get: function (e, t) { 1020 | return void 0 === t ? this.cache(e) : e[this.expando] && e[this.expando][G(t)] 1021 | }, access: function (e, t, n) { 1022 | return void 0 === t || t && "string" == typeof t && void 0 === n ? this.get(e, t) : (this.set(e, t, n), void 0 !== n ? n : t) 1023 | }, remove: function (e, t) { 1024 | var n, r = e[this.expando]; 1025 | if (void 0 !== r) { 1026 | if (void 0 !== t) { 1027 | n = (t = Array.isArray(t) ? t.map(G) : (t = G(t)) in r ? [t] : t.match(M) || []).length; 1028 | while (n--) delete r[t[n]] 1029 | } 1030 | (void 0 === t || w.isEmptyObject(r)) && (e.nodeType ? e[this.expando] = void 0 : delete e[this.expando]) 1031 | } 1032 | }, hasData: function (e) { 1033 | var t = e[this.expando]; 1034 | return void 0 !== t && !w.isEmptyObject(t) 1035 | } 1036 | }; 1037 | var J = new Q, K = new Q, Z = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, ee = /[A-Z]/g; 1038 | 1039 | function te(e) { 1040 | return "true" === e || "false" !== e && ("null" === e ? null : e === +e + "" ? +e : Z.test(e) ? JSON.parse(e) : e) 1041 | } 1042 | 1043 | function ne(e, t, n) { 1044 | var r; 1045 | if (void 0 === n && 1 === e.nodeType) if (r = "data-" + t.replace(ee, "-$&").toLowerCase(), "string" == typeof(n = e.getAttribute(r))) { 1046 | try { 1047 | n = te(n) 1048 | } catch (e) { 1049 | } 1050 | K.set(e, t, n) 1051 | } else n = void 0; 1052 | return n 1053 | } 1054 | 1055 | w.extend({ 1056 | hasData: function (e) { 1057 | return K.hasData(e) || J.hasData(e) 1058 | }, data: function (e, t, n) { 1059 | return K.access(e, t, n) 1060 | }, removeData: function (e, t) { 1061 | K.remove(e, t) 1062 | }, _data: function (e, t, n) { 1063 | return J.access(e, t, n) 1064 | }, _removeData: function (e, t) { 1065 | J.remove(e, t) 1066 | } 1067 | }), w.fn.extend({ 1068 | data: function (e, t) { 1069 | var n, r, i, o = this[0], a = o && o.attributes; 1070 | if (void 0 === e) { 1071 | if (this.length && (i = K.get(o), 1 === o.nodeType && !J.get(o, "hasDataAttrs"))) { 1072 | n = a.length; 1073 | while (n--) a[n] && 0 === (r = a[n].name).indexOf("data-") && (r = G(r.slice(5)), ne(o, r, i[r])); 1074 | J.set(o, "hasDataAttrs", !0) 1075 | } 1076 | return i 1077 | } 1078 | return "object" == typeof e ? this.each(function () { 1079 | K.set(this, e) 1080 | }) : z(this, function (t) { 1081 | var n; 1082 | if (o && void 0 === t) { 1083 | if (void 0 !== (n = K.get(o, e))) return n; 1084 | if (void 0 !== (n = ne(o, e))) return n 1085 | } else this.each(function () { 1086 | K.set(this, e, t) 1087 | }) 1088 | }, null, t, arguments.length > 1, null, !0) 1089 | }, removeData: function (e) { 1090 | return this.each(function () { 1091 | K.remove(this, e) 1092 | }) 1093 | } 1094 | }), w.extend({ 1095 | queue: function (e, t, n) { 1096 | var r; 1097 | if (e) return t = (t || "fx") + "queue", r = J.get(e, t), n && (!r || Array.isArray(n) ? r = J.access(e, t, w.makeArray(n)) : r.push(n)), r || [] 1098 | }, dequeue: function (e, t) { 1099 | t = t || "fx"; 1100 | var n = w.queue(e, t), r = n.length, i = n.shift(), o = w._queueHooks(e, t), a = function () { 1101 | w.dequeue(e, t) 1102 | }; 1103 | "inprogress" === i && (i = n.shift(), r--), i && ("fx" === t && n.unshift("inprogress"), delete o.stop, i.call(e, a, o)), !r && o && o.empty.fire() 1104 | }, _queueHooks: function (e, t) { 1105 | var n = t + "queueHooks"; 1106 | return J.get(e, n) || J.access(e, n, { 1107 | empty: w.Callbacks("once memory").add(function () { 1108 | J.remove(e, [t + "queue", n]) 1109 | }) 1110 | }) 1111 | } 1112 | }), w.fn.extend({ 1113 | queue: function (e, t) { 1114 | var n = 2; 1115 | return "string" != typeof e && (t = e, e = "fx", n--), arguments.length < n ? w.queue(this[0], e) : void 0 === t ? this : this.each(function () { 1116 | var n = w.queue(this, e, t); 1117 | w._queueHooks(this, e), "fx" === e && "inprogress" !== n[0] && w.dequeue(this, e) 1118 | }) 1119 | }, dequeue: function (e) { 1120 | return this.each(function () { 1121 | w.dequeue(this, e) 1122 | }) 1123 | }, clearQueue: function (e) { 1124 | return this.queue(e || "fx", []) 1125 | }, promise: function (e, t) { 1126 | var n, r = 1, i = w.Deferred(), o = this, a = this.length, s = function () { 1127 | --r || i.resolveWith(o, [o]) 1128 | }; 1129 | "string" != typeof e && (t = e, e = void 0), e = e || "fx"; 1130 | while (a--) (n = J.get(o[a], e + "queueHooks")) && n.empty && (r++, n.empty.add(s)); 1131 | return s(), i.promise(t) 1132 | } 1133 | }); 1134 | var re = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, ie = new RegExp("^(?:([+-])=|)(" + re + ")([a-z%]*)$", "i"), 1135 | oe = ["Top", "Right", "Bottom", "Left"], ae = function (e, t) { 1136 | return "none" === (e = t || e).style.display || "" === e.style.display && w.contains(e.ownerDocument, e) && "none" === w.css(e, "display") 1137 | }, se = function (e, t, n, r) { 1138 | var i, o, a = {}; 1139 | for (o in t) a[o] = e.style[o], e.style[o] = t[o]; 1140 | i = n.apply(e, r || []); 1141 | for (o in t) e.style[o] = a[o]; 1142 | return i 1143 | }; 1144 | 1145 | function ue(e, t, n, r) { 1146 | var i, o, a = 20, s = r ? function () { 1147 | return r.cur() 1148 | } : function () { 1149 | return w.css(e, t, "") 1150 | }, u = s(), l = n && n[3] || (w.cssNumber[t] ? "" : "px"), 1151 | c = (w.cssNumber[t] || "px" !== l && +u) && ie.exec(w.css(e, t)); 1152 | if (c && c[3] !== l) { 1153 | u /= 2, l = l || c[3], c = +u || 1; 1154 | while (a--) w.style(e, t, c + l), (1 - o) * (1 - (o = s() / u || .5)) <= 0 && (a = 0), c /= o; 1155 | c *= 2, w.style(e, t, c + l), n = n || [] 1156 | } 1157 | return n && (c = +c || +u || 0, i = n[1] ? c + (n[1] + 1) * n[2] : +n[2], r && (r.unit = l, r.start = c, r.end = i)), i 1158 | } 1159 | 1160 | var le = {}; 1161 | 1162 | function ce(e) { 1163 | var t, n = e.ownerDocument, r = e.nodeName, i = le[r]; 1164 | return i || (t = n.body.appendChild(n.createElement(r)), i = w.css(t, "display"), t.parentNode.removeChild(t), "none" === i && (i = "block"), le[r] = i, i) 1165 | } 1166 | 1167 | function fe(e, t) { 1168 | for (var n, r, i = [], o = 0, a = e.length; o < a; o++) (r = e[o]).style && (n = r.style.display, t ? ("none" === n && (i[o] = J.get(r, "display") || null, i[o] || (r.style.display = "")), "" === r.style.display && ae(r) && (i[o] = ce(r))) : "none" !== n && (i[o] = "none", J.set(r, "display", n))); 1169 | for (o = 0; o < a; o++) null != i[o] && (e[o].style.display = i[o]); 1170 | return e 1171 | } 1172 | 1173 | w.fn.extend({ 1174 | show: function () { 1175 | return fe(this, !0) 1176 | }, hide: function () { 1177 | return fe(this) 1178 | }, toggle: function (e) { 1179 | return "boolean" == typeof e ? e ? this.show() : this.hide() : this.each(function () { 1180 | ae(this) ? w(this).show() : w(this).hide() 1181 | }) 1182 | } 1183 | }); 1184 | var pe = /^(?:checkbox|radio)$/i, de = /<([a-z][^\/\0>\x20\t\r\n\f]+)/i, he = /^$|^module$|\/(?:java|ecma)script/i, 1185 | ge = { 1186 | option: [1, ""], 1187 | thead: [1, "", "
"], 1188 | col: [2, "", "
"], 1189 | tr: [2, "", "
"], 1190 | td: [3, "", "
"], 1191 | _default: [0, "", ""] 1192 | }; 1193 | ge.optgroup = ge.option, ge.tbody = ge.tfoot = ge.colgroup = ge.caption = ge.thead, ge.th = ge.td; 1194 | 1195 | function ye(e, t) { 1196 | var n; 1197 | return n = "undefined" != typeof e.getElementsByTagName ? e.getElementsByTagName(t || "*") : "undefined" != typeof e.querySelectorAll ? e.querySelectorAll(t || "*") : [], void 0 === t || t && N(e, t) ? w.merge([e], n) : n 1198 | } 1199 | 1200 | function ve(e, t) { 1201 | for (var n = 0, r = e.length; n < r; n++) J.set(e[n], "globalEval", !t || J.get(t[n], "globalEval")) 1202 | } 1203 | 1204 | var me = /<|&#?\w+;/; 1205 | 1206 | function xe(e, t, n, r, i) { 1207 | for (var o, a, s, u, l, c, f = t.createDocumentFragment(), p = [], d = 0, h = e.length; d < h; d++) if ((o = e[d]) || 0 === o) if ("object" === x(o)) w.merge(p, o.nodeType ? [o] : o); else if (me.test(o)) { 1208 | a = a || f.appendChild(t.createElement("div")), s = (de.exec(o) || ["", ""])[1].toLowerCase(), u = ge[s] || ge._default, a.innerHTML = u[1] + w.htmlPrefilter(o) + u[2], c = u[0]; 1209 | while (c--) a = a.lastChild; 1210 | w.merge(p, a.childNodes), (a = f.firstChild).textContent = "" 1211 | } else p.push(t.createTextNode(o)); 1212 | f.textContent = "", d = 0; 1213 | while (o = p[d++]) if (r && w.inArray(o, r) > -1) i && i.push(o); else if (l = w.contains(o.ownerDocument, o), a = ye(f.appendChild(o), "script"), l && ve(a), n) { 1214 | c = 0; 1215 | while (o = a[c++]) he.test(o.type || "") && n.push(o) 1216 | } 1217 | return f 1218 | } 1219 | 1220 | !function () { 1221 | var e = r.createDocumentFragment().appendChild(r.createElement("div")), t = r.createElement("input"); 1222 | t.setAttribute("type", "radio"), t.setAttribute("checked", "checked"), t.setAttribute("name", "t"), e.appendChild(t), h.checkClone = e.cloneNode(!0).cloneNode(!0).lastChild.checked, e.innerHTML = "", h.noCloneChecked = !!e.cloneNode(!0).lastChild.defaultValue 1223 | }(); 1224 | var be = r.documentElement, we = /^key/, Te = /^(?:mouse|pointer|contextmenu|drag|drop)|click/, 1225 | Ce = /^([^.]*)(?:\.(.+)|)/; 1226 | 1227 | function Ee() { 1228 | return !0 1229 | } 1230 | 1231 | function ke() { 1232 | return !1 1233 | } 1234 | 1235 | function Se() { 1236 | try { 1237 | return r.activeElement 1238 | } catch (e) { 1239 | } 1240 | } 1241 | 1242 | function De(e, t, n, r, i, o) { 1243 | var a, s; 1244 | if ("object" == typeof t) { 1245 | "string" != typeof n && (r = r || n, n = void 0); 1246 | for (s in t) De(e, s, n, r, t[s], o); 1247 | return e 1248 | } 1249 | if (null == r && null == i ? (i = n, r = n = void 0) : null == i && ("string" == typeof n ? (i = r, r = void 0) : (i = r, r = n, n = void 0)), !1 === i) i = ke; else if (!i) return e; 1250 | return 1 === o && (a = i, (i = function (e) { 1251 | return w().off(e), a.apply(this, arguments) 1252 | }).guid = a.guid || (a.guid = w.guid++)), e.each(function () { 1253 | w.event.add(this, t, i, r, n) 1254 | }) 1255 | } 1256 | 1257 | w.event = { 1258 | global: {}, add: function (e, t, n, r, i) { 1259 | var o, a, s, u, l, c, f, p, d, h, g, y = J.get(e); 1260 | if (y) { 1261 | n.handler && (n = (o = n).handler, i = o.selector), i && w.find.matchesSelector(be, i), n.guid || (n.guid = w.guid++), (u = y.events) || (u = y.events = {}), (a = y.handle) || (a = y.handle = function (t) { 1262 | return "undefined" != typeof w && w.event.triggered !== t.type ? w.event.dispatch.apply(e, arguments) : void 0 1263 | }), l = (t = (t || "").match(M) || [""]).length; 1264 | while (l--) d = g = (s = Ce.exec(t[l]) || [])[1], h = (s[2] || "").split(".").sort(), d && (f = w.event.special[d] || {}, d = (i ? f.delegateType : f.bindType) || d, f = w.event.special[d] || {}, c = w.extend({ 1265 | type: d, 1266 | origType: g, 1267 | data: r, 1268 | handler: n, 1269 | guid: n.guid, 1270 | selector: i, 1271 | needsContext: i && w.expr.match.needsContext.test(i), 1272 | namespace: h.join(".") 1273 | }, o), (p = u[d]) || ((p = u[d] = []).delegateCount = 0, f.setup && !1 !== f.setup.call(e, r, h, a) || e.addEventListener && e.addEventListener(d, a)), f.add && (f.add.call(e, c), c.handler.guid || (c.handler.guid = n.guid)), i ? p.splice(p.delegateCount++, 0, c) : p.push(c), w.event.global[d] = !0) 1274 | } 1275 | }, remove: function (e, t, n, r, i) { 1276 | var o, a, s, u, l, c, f, p, d, h, g, y = J.hasData(e) && J.get(e); 1277 | if (y && (u = y.events)) { 1278 | l = (t = (t || "").match(M) || [""]).length; 1279 | while (l--) if (s = Ce.exec(t[l]) || [], d = g = s[1], h = (s[2] || "").split(".").sort(), d) { 1280 | f = w.event.special[d] || {}, p = u[d = (r ? f.delegateType : f.bindType) || d] || [], s = s[2] && new RegExp("(^|\\.)" + h.join("\\.(?:.*\\.|)") + "(\\.|$)"), a = o = p.length; 1281 | while (o--) c = p[o], !i && g !== c.origType || n && n.guid !== c.guid || s && !s.test(c.namespace) || r && r !== c.selector && ("**" !== r || !c.selector) || (p.splice(o, 1), c.selector && p.delegateCount--, f.remove && f.remove.call(e, c)); 1282 | a && !p.length && (f.teardown && !1 !== f.teardown.call(e, h, y.handle) || w.removeEvent(e, d, y.handle), delete u[d]) 1283 | } else for (d in u) w.event.remove(e, d + t[l], n, r, !0); 1284 | w.isEmptyObject(u) && J.remove(e, "handle events") 1285 | } 1286 | }, dispatch: function (e) { 1287 | var t = w.event.fix(e), n, r, i, o, a, s, u = new Array(arguments.length), 1288 | l = (J.get(this, "events") || {})[t.type] || [], c = w.event.special[t.type] || {}; 1289 | for (u[0] = t, n = 1; n < arguments.length; n++) u[n] = arguments[n]; 1290 | if (t.delegateTarget = this, !c.preDispatch || !1 !== c.preDispatch.call(this, t)) { 1291 | s = w.event.handlers.call(this, t, l), n = 0; 1292 | while ((o = s[n++]) && !t.isPropagationStopped()) { 1293 | t.currentTarget = o.elem, r = 0; 1294 | while ((a = o.handlers[r++]) && !t.isImmediatePropagationStopped()) t.rnamespace && !t.rnamespace.test(a.namespace) || (t.handleObj = a, t.data = a.data, void 0 !== (i = ((w.event.special[a.origType] || {}).handle || a.handler).apply(o.elem, u)) && !1 === (t.result = i) && (t.preventDefault(), t.stopPropagation())) 1295 | } 1296 | return c.postDispatch && c.postDispatch.call(this, t), t.result 1297 | } 1298 | }, handlers: function (e, t) { 1299 | var n, r, i, o, a, s = [], u = t.delegateCount, l = e.target; 1300 | if (u && l.nodeType && !("click" === e.type && e.button >= 1)) for (; l !== this; l = l.parentNode || this) if (1 === l.nodeType && ("click" !== e.type || !0 !== l.disabled)) { 1301 | for (o = [], a = {}, n = 0; n < u; n++) void 0 === a[i = (r = t[n]).selector + " "] && (a[i] = r.needsContext ? w(i, this).index(l) > -1 : w.find(i, this, null, [l]).length), a[i] && o.push(r); 1302 | o.length && s.push({elem: l, handlers: o}) 1303 | } 1304 | return l = this, u < t.length && s.push({elem: l, handlers: t.slice(u)}), s 1305 | }, addProp: function (e, t) { 1306 | Object.defineProperty(w.Event.prototype, e, { 1307 | enumerable: !0, configurable: !0, get: g(t) ? function () { 1308 | if (this.originalEvent) return t(this.originalEvent) 1309 | } : function () { 1310 | if (this.originalEvent) return this.originalEvent[e] 1311 | }, set: function (t) { 1312 | Object.defineProperty(this, e, {enumerable: !0, configurable: !0, writable: !0, value: t}) 1313 | } 1314 | }) 1315 | }, fix: function (e) { 1316 | return e[w.expando] ? e : new w.Event(e) 1317 | }, special: { 1318 | load: {noBubble: !0}, focus: { 1319 | trigger: function () { 1320 | if (this !== Se() && this.focus) return this.focus(), !1 1321 | }, delegateType: "focusin" 1322 | }, blur: { 1323 | trigger: function () { 1324 | if (this === Se() && this.blur) return this.blur(), !1 1325 | }, delegateType: "focusout" 1326 | }, click: { 1327 | trigger: function () { 1328 | if ("checkbox" === this.type && this.click && N(this, "input")) return this.click(), !1 1329 | }, _default: function (e) { 1330 | return N(e.target, "a") 1331 | } 1332 | }, beforeunload: { 1333 | postDispatch: function (e) { 1334 | void 0 !== e.result && e.originalEvent && (e.originalEvent.returnValue = e.result) 1335 | } 1336 | } 1337 | } 1338 | }, w.removeEvent = function (e, t, n) { 1339 | e.removeEventListener && e.removeEventListener(t, n) 1340 | }, w.Event = function (e, t) { 1341 | if (!(this instanceof w.Event)) return new w.Event(e, t); 1342 | e && e.type ? (this.originalEvent = e, this.type = e.type, this.isDefaultPrevented = e.defaultPrevented || void 0 === e.defaultPrevented && !1 === e.returnValue ? Ee : ke, this.target = e.target && 3 === e.target.nodeType ? e.target.parentNode : e.target, this.currentTarget = e.currentTarget, this.relatedTarget = e.relatedTarget) : this.type = e, t && w.extend(this, t), this.timeStamp = e && e.timeStamp || Date.now(), this[w.expando] = !0 1343 | }, w.Event.prototype = { 1344 | constructor: w.Event, 1345 | isDefaultPrevented: ke, 1346 | isPropagationStopped: ke, 1347 | isImmediatePropagationStopped: ke, 1348 | isSimulated: !1, 1349 | preventDefault: function () { 1350 | var e = this.originalEvent; 1351 | this.isDefaultPrevented = Ee, e && !this.isSimulated && e.preventDefault() 1352 | }, 1353 | stopPropagation: function () { 1354 | var e = this.originalEvent; 1355 | this.isPropagationStopped = Ee, e && !this.isSimulated && e.stopPropagation() 1356 | }, 1357 | stopImmediatePropagation: function () { 1358 | var e = this.originalEvent; 1359 | this.isImmediatePropagationStopped = Ee, e && !this.isSimulated && e.stopImmediatePropagation(), this.stopPropagation() 1360 | } 1361 | }, w.each({ 1362 | altKey: !0, 1363 | bubbles: !0, 1364 | cancelable: !0, 1365 | changedTouches: !0, 1366 | ctrlKey: !0, 1367 | detail: !0, 1368 | eventPhase: !0, 1369 | metaKey: !0, 1370 | pageX: !0, 1371 | pageY: !0, 1372 | shiftKey: !0, 1373 | view: !0, 1374 | "char": !0, 1375 | charCode: !0, 1376 | key: !0, 1377 | keyCode: !0, 1378 | button: !0, 1379 | buttons: !0, 1380 | clientX: !0, 1381 | clientY: !0, 1382 | offsetX: !0, 1383 | offsetY: !0, 1384 | pointerId: !0, 1385 | pointerType: !0, 1386 | screenX: !0, 1387 | screenY: !0, 1388 | targetTouches: !0, 1389 | toElement: !0, 1390 | touches: !0, 1391 | which: function (e) { 1392 | var t = e.button; 1393 | return null == e.which && we.test(e.type) ? null != e.charCode ? e.charCode : e.keyCode : !e.which && void 0 !== t && Te.test(e.type) ? 1 & t ? 1 : 2 & t ? 3 : 4 & t ? 2 : 0 : e.which 1394 | } 1395 | }, w.event.addProp), w.each({ 1396 | mouseenter: "mouseover", 1397 | mouseleave: "mouseout", 1398 | pointerenter: "pointerover", 1399 | pointerleave: "pointerout" 1400 | }, function (e, t) { 1401 | w.event.special[e] = { 1402 | delegateType: t, bindType: t, handle: function (e) { 1403 | var n, r = this, i = e.relatedTarget, o = e.handleObj; 1404 | return i && (i === r || w.contains(r, i)) || (e.type = o.origType, n = o.handler.apply(this, arguments), e.type = t), n 1405 | } 1406 | } 1407 | }), w.fn.extend({ 1408 | on: function (e, t, n, r) { 1409 | return De(this, e, t, n, r) 1410 | }, one: function (e, t, n, r) { 1411 | return De(this, e, t, n, r, 1) 1412 | }, off: function (e, t, n) { 1413 | var r, i; 1414 | if (e && e.preventDefault && e.handleObj) return r = e.handleObj, w(e.delegateTarget).off(r.namespace ? r.origType + "." + r.namespace : r.origType, r.selector, r.handler), this; 1415 | if ("object" == typeof e) { 1416 | for (i in e) this.off(i, t, e[i]); 1417 | return this 1418 | } 1419 | return !1 !== t && "function" != typeof t || (n = t, t = void 0), !1 === n && (n = ke), this.each(function () { 1420 | w.event.remove(this, e, n, t) 1421 | }) 1422 | } 1423 | }); 1424 | var Ne = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi, 1425 | Ae = /\s*$/g; 1427 | 1428 | function Le(e, t) { 1429 | return N(e, "table") && N(11 !== t.nodeType ? t : t.firstChild, "tr") ? w(e).children("tbody")[0] || e : e 1430 | } 1431 | 1432 | function He(e) { 1433 | return e.type = (null !== e.getAttribute("type")) + "/" + e.type, e 1434 | } 1435 | 1436 | function Oe(e) { 1437 | return "true/" === (e.type || "").slice(0, 5) ? e.type = e.type.slice(5) : e.removeAttribute("type"), e 1438 | } 1439 | 1440 | function Pe(e, t) { 1441 | var n, r, i, o, a, s, u, l; 1442 | if (1 === t.nodeType) { 1443 | if (J.hasData(e) && (o = J.access(e), a = J.set(t, o), l = o.events)) { 1444 | delete a.handle, a.events = {}; 1445 | for (i in l) for (n = 0, r = l[i].length; n < r; n++) w.event.add(t, i, l[i][n]) 1446 | } 1447 | K.hasData(e) && (s = K.access(e), u = w.extend({}, s), K.set(t, u)) 1448 | } 1449 | } 1450 | 1451 | function Me(e, t) { 1452 | var n = t.nodeName.toLowerCase(); 1453 | "input" === n && pe.test(e.type) ? t.checked = e.checked : "input" !== n && "textarea" !== n || (t.defaultValue = e.defaultValue) 1454 | } 1455 | 1456 | function Re(e, t, n, r) { 1457 | t = a.apply([], t); 1458 | var i, o, s, u, l, c, f = 0, p = e.length, d = p - 1, y = t[0], v = g(y); 1459 | if (v || p > 1 && "string" == typeof y && !h.checkClone && je.test(y)) return e.each(function (i) { 1460 | var o = e.eq(i); 1461 | v && (t[0] = y.call(this, i, o.html())), Re(o, t, n, r) 1462 | }); 1463 | if (p && (i = xe(t, e[0].ownerDocument, !1, e, r), o = i.firstChild, 1 === i.childNodes.length && (i = o), o || r)) { 1464 | for (u = (s = w.map(ye(i, "script"), He)).length; f < p; f++) l = i, f !== d && (l = w.clone(l, !0, !0), u && w.merge(s, ye(l, "script"))), n.call(e[f], l, f); 1465 | if (u) for (c = s[s.length - 1].ownerDocument, w.map(s, Oe), f = 0; f < u; f++) l = s[f], he.test(l.type || "") && !J.access(l, "globalEval") && w.contains(c, l) && (l.src && "module" !== (l.type || "").toLowerCase() ? w._evalUrl && w._evalUrl(l.src) : m(l.textContent.replace(qe, ""), c, l)) 1466 | } 1467 | return e 1468 | } 1469 | 1470 | function Ie(e, t, n) { 1471 | for (var r, i = t ? w.filter(t, e) : e, o = 0; null != (r = i[o]); o++) n || 1 !== r.nodeType || w.cleanData(ye(r)), r.parentNode && (n && w.contains(r.ownerDocument, r) && ve(ye(r, "script")), r.parentNode.removeChild(r)); 1472 | return e 1473 | } 1474 | 1475 | w.extend({ 1476 | htmlPrefilter: function (e) { 1477 | return e.replace(Ne, "<$1>") 1478 | }, clone: function (e, t, n) { 1479 | var r, i, o, a, s = e.cloneNode(!0), u = w.contains(e.ownerDocument, e); 1480 | if (!(h.noCloneChecked || 1 !== e.nodeType && 11 !== e.nodeType || w.isXMLDoc(e))) for (a = ye(s), r = 0, i = (o = ye(e)).length; r < i; r++) Me(o[r], a[r]); 1481 | if (t) if (n) for (o = o || ye(e), a = a || ye(s), r = 0, i = o.length; r < i; r++) Pe(o[r], a[r]); else Pe(e, s); 1482 | return (a = ye(s, "script")).length > 0 && ve(a, !u && ye(e, "script")), s 1483 | }, cleanData: function (e) { 1484 | for (var t, n, r, i = w.event.special, o = 0; void 0 !== (n = e[o]); o++) if (Y(n)) { 1485 | if (t = n[J.expando]) { 1486 | if (t.events) for (r in t.events) i[r] ? w.event.remove(n, r) : w.removeEvent(n, r, t.handle); 1487 | n[J.expando] = void 0 1488 | } 1489 | n[K.expando] && (n[K.expando] = void 0) 1490 | } 1491 | } 1492 | }), w.fn.extend({ 1493 | detach: function (e) { 1494 | return Ie(this, e, !0) 1495 | }, remove: function (e) { 1496 | return Ie(this, e) 1497 | }, text: function (e) { 1498 | return z(this, function (e) { 1499 | return void 0 === e ? w.text(this) : this.empty().each(function () { 1500 | 1 !== this.nodeType && 11 !== this.nodeType && 9 !== this.nodeType || (this.textContent = e) 1501 | }) 1502 | }, null, e, arguments.length) 1503 | }, append: function () { 1504 | return Re(this, arguments, function (e) { 1505 | 1 !== this.nodeType && 11 !== this.nodeType && 9 !== this.nodeType || Le(this, e).appendChild(e) 1506 | }) 1507 | }, prepend: function () { 1508 | return Re(this, arguments, function (e) { 1509 | if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) { 1510 | var t = Le(this, e); 1511 | t.insertBefore(e, t.firstChild) 1512 | } 1513 | }) 1514 | }, before: function () { 1515 | return Re(this, arguments, function (e) { 1516 | this.parentNode && this.parentNode.insertBefore(e, this) 1517 | }) 1518 | }, after: function () { 1519 | return Re(this, arguments, function (e) { 1520 | this.parentNode && this.parentNode.insertBefore(e, this.nextSibling) 1521 | }) 1522 | }, empty: function () { 1523 | for (var e, t = 0; null != (e = this[t]); t++) 1 === e.nodeType && (w.cleanData(ye(e, !1)), e.textContent = ""); 1524 | return this 1525 | }, clone: function (e, t) { 1526 | return e = null != e && e, t = null == t ? e : t, this.map(function () { 1527 | return w.clone(this, e, t) 1528 | }) 1529 | }, html: function (e) { 1530 | return z(this, function (e) { 1531 | var t = this[0] || {}, n = 0, r = this.length; 1532 | if (void 0 === e && 1 === t.nodeType) return t.innerHTML; 1533 | if ("string" == typeof e && !Ae.test(e) && !ge[(de.exec(e) || ["", ""])[1].toLowerCase()]) { 1534 | e = w.htmlPrefilter(e); 1535 | try { 1536 | for (; n < r; n++) 1 === (t = this[n] || {}).nodeType && (w.cleanData(ye(t, !1)), t.innerHTML = e); 1537 | t = 0 1538 | } catch (e) { 1539 | } 1540 | } 1541 | t && this.empty().append(e) 1542 | }, null, e, arguments.length) 1543 | }, replaceWith: function () { 1544 | var e = []; 1545 | return Re(this, arguments, function (t) { 1546 | var n = this.parentNode; 1547 | w.inArray(this, e) < 0 && (w.cleanData(ye(this)), n && n.replaceChild(t, this)) 1548 | }, e) 1549 | } 1550 | }), w.each({ 1551 | appendTo: "append", 1552 | prependTo: "prepend", 1553 | insertBefore: "before", 1554 | insertAfter: "after", 1555 | replaceAll: "replaceWith" 1556 | }, function (e, t) { 1557 | w.fn[e] = function (e) { 1558 | for (var n, r = [], i = w(e), o = i.length - 1, a = 0; a <= o; a++) n = a === o ? this : this.clone(!0), w(i[a])[t](n), s.apply(r, n.get()); 1559 | return this.pushStack(r) 1560 | } 1561 | }); 1562 | var We = new RegExp("^(" + re + ")(?!px)[a-z%]+$", "i"), $e = function (t) { 1563 | var n = t.ownerDocument.defaultView; 1564 | return n && n.opener || (n = e), n.getComputedStyle(t) 1565 | }, Be = new RegExp(oe.join("|"), "i"); 1566 | !function () { 1567 | function t() { 1568 | if (c) { 1569 | l.style.cssText = "position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0", c.style.cssText = "position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%", be.appendChild(l).appendChild(c); 1570 | var t = e.getComputedStyle(c); 1571 | i = "1%" !== t.top, u = 12 === n(t.marginLeft), c.style.right = "60%", s = 36 === n(t.right), o = 36 === n(t.width), c.style.position = "absolute", a = 36 === c.offsetWidth || "absolute", be.removeChild(l), c = null 1572 | } 1573 | } 1574 | 1575 | function n(e) { 1576 | return Math.round(parseFloat(e)) 1577 | } 1578 | 1579 | var i, o, a, s, u, l = r.createElement("div"), c = r.createElement("div"); 1580 | c.style && (c.style.backgroundClip = "content-box", c.cloneNode(!0).style.backgroundClip = "", h.clearCloneStyle = "content-box" === c.style.backgroundClip, w.extend(h, { 1581 | boxSizingReliable: function () { 1582 | return t(), o 1583 | }, pixelBoxStyles: function () { 1584 | return t(), s 1585 | }, pixelPosition: function () { 1586 | return t(), i 1587 | }, reliableMarginLeft: function () { 1588 | return t(), u 1589 | }, scrollboxSize: function () { 1590 | return t(), a 1591 | } 1592 | })) 1593 | }(); 1594 | 1595 | function Fe(e, t, n) { 1596 | var r, i, o, a, s = e.style; 1597 | return (n = n || $e(e)) && ("" !== (a = n.getPropertyValue(t) || n[t]) || w.contains(e.ownerDocument, e) || (a = w.style(e, t)), !h.pixelBoxStyles() && We.test(a) && Be.test(t) && (r = s.width, i = s.minWidth, o = s.maxWidth, s.minWidth = s.maxWidth = s.width = a, a = n.width, s.width = r, s.minWidth = i, s.maxWidth = o)), void 0 !== a ? a + "" : a 1598 | } 1599 | 1600 | function _e(e, t) { 1601 | return { 1602 | get: function () { 1603 | if (!e()) return (this.get = t).apply(this, arguments); 1604 | delete this.get 1605 | } 1606 | } 1607 | } 1608 | 1609 | var ze = /^(none|table(?!-c[ea]).+)/, Xe = /^--/, 1610 | Ue = {position: "absolute", visibility: "hidden", display: "block"}, 1611 | Ve = {letterSpacing: "0", fontWeight: "400"}, Ge = ["Webkit", "Moz", "ms"], Ye = r.createElement("div").style; 1612 | 1613 | function Qe(e) { 1614 | if (e in Ye) return e; 1615 | var t = e[0].toUpperCase() + e.slice(1), n = Ge.length; 1616 | while (n--) if ((e = Ge[n] + t) in Ye) return e 1617 | } 1618 | 1619 | function Je(e) { 1620 | var t = w.cssProps[e]; 1621 | return t || (t = w.cssProps[e] = Qe(e) || e), t 1622 | } 1623 | 1624 | function Ke(e, t, n) { 1625 | var r = ie.exec(t); 1626 | return r ? Math.max(0, r[2] - (n || 0)) + (r[3] || "px") : t 1627 | } 1628 | 1629 | function Ze(e, t, n, r, i, o) { 1630 | var a = "width" === t ? 1 : 0, s = 0, u = 0; 1631 | if (n === (r ? "border" : "content")) return 0; 1632 | for (; a < 4; a += 2) "margin" === n && (u += w.css(e, n + oe[a], !0, i)), r ? ("content" === n && (u -= w.css(e, "padding" + oe[a], !0, i)), "margin" !== n && (u -= w.css(e, "border" + oe[a] + "Width", !0, i))) : (u += w.css(e, "padding" + oe[a], !0, i), "padding" !== n ? u += w.css(e, "border" + oe[a] + "Width", !0, i) : s += w.css(e, "border" + oe[a] + "Width", !0, i)); 1633 | return !r && o >= 0 && (u += Math.max(0, Math.ceil(e["offset" + t[0].toUpperCase() + t.slice(1)] - o - u - s - .5))), u 1634 | } 1635 | 1636 | function et(e, t, n) { 1637 | var r = $e(e), i = Fe(e, t, r), o = "border-box" === w.css(e, "boxSizing", !1, r), a = o; 1638 | if (We.test(i)) { 1639 | if (!n) return i; 1640 | i = "auto" 1641 | } 1642 | return a = a && (h.boxSizingReliable() || i === e.style[t]), ("auto" === i || !parseFloat(i) && "inline" === w.css(e, "display", !1, r)) && (i = e["offset" + t[0].toUpperCase() + t.slice(1)], a = !0), (i = parseFloat(i) || 0) + Ze(e, t, n || (o ? "border" : "content"), a, r, i) + "px" 1643 | } 1644 | 1645 | w.extend({ 1646 | cssHooks: { 1647 | opacity: { 1648 | get: function (e, t) { 1649 | if (t) { 1650 | var n = Fe(e, "opacity"); 1651 | return "" === n ? "1" : n 1652 | } 1653 | } 1654 | } 1655 | }, 1656 | cssNumber: { 1657 | animationIterationCount: !0, 1658 | columnCount: !0, 1659 | fillOpacity: !0, 1660 | flexGrow: !0, 1661 | flexShrink: !0, 1662 | fontWeight: !0, 1663 | lineHeight: !0, 1664 | opacity: !0, 1665 | order: !0, 1666 | orphans: !0, 1667 | widows: !0, 1668 | zIndex: !0, 1669 | zoom: !0 1670 | }, 1671 | cssProps: {}, 1672 | style: function (e, t, n, r) { 1673 | if (e && 3 !== e.nodeType && 8 !== e.nodeType && e.style) { 1674 | var i, o, a, s = G(t), u = Xe.test(t), l = e.style; 1675 | if (u || (t = Je(s)), a = w.cssHooks[t] || w.cssHooks[s], void 0 === n) return a && "get" in a && void 0 !== (i = a.get(e, !1, r)) ? i : l[t]; 1676 | "string" == (o = typeof n) && (i = ie.exec(n)) && i[1] && (n = ue(e, t, i), o = "number"), null != n && n === n && ("number" === o && (n += i && i[3] || (w.cssNumber[s] ? "" : "px")), h.clearCloneStyle || "" !== n || 0 !== t.indexOf("background") || (l[t] = "inherit"), a && "set" in a && void 0 === (n = a.set(e, n, r)) || (u ? l.setProperty(t, n) : l[t] = n)) 1677 | } 1678 | }, 1679 | css: function (e, t, n, r) { 1680 | var i, o, a, s = G(t); 1681 | return Xe.test(t) || (t = Je(s)), (a = w.cssHooks[t] || w.cssHooks[s]) && "get" in a && (i = a.get(e, !0, n)), void 0 === i && (i = Fe(e, t, r)), "normal" === i && t in Ve && (i = Ve[t]), "" === n || n ? (o = parseFloat(i), !0 === n || isFinite(o) ? o || 0 : i) : i 1682 | } 1683 | }), w.each(["height", "width"], function (e, t) { 1684 | w.cssHooks[t] = { 1685 | get: function (e, n, r) { 1686 | if (n) return !ze.test(w.css(e, "display")) || e.getClientRects().length && e.getBoundingClientRect().width ? et(e, t, r) : se(e, Ue, function () { 1687 | return et(e, t, r) 1688 | }) 1689 | }, set: function (e, n, r) { 1690 | var i, o = $e(e), a = "border-box" === w.css(e, "boxSizing", !1, o), s = r && Ze(e, t, r, a, o); 1691 | return a && h.scrollboxSize() === o.position && (s -= Math.ceil(e["offset" + t[0].toUpperCase() + t.slice(1)] - parseFloat(o[t]) - Ze(e, t, "border", !1, o) - .5)), s && (i = ie.exec(n)) && "px" !== (i[3] || "px") && (e.style[t] = n, n = w.css(e, t)), Ke(e, n, s) 1692 | } 1693 | } 1694 | }), w.cssHooks.marginLeft = _e(h.reliableMarginLeft, function (e, t) { 1695 | if (t) return (parseFloat(Fe(e, "marginLeft")) || e.getBoundingClientRect().left - se(e, {marginLeft: 0}, function () { 1696 | return e.getBoundingClientRect().left 1697 | })) + "px" 1698 | }), w.each({margin: "", padding: "", border: "Width"}, function (e, t) { 1699 | w.cssHooks[e + t] = { 1700 | expand: function (n) { 1701 | for (var r = 0, i = {}, o = "string" == typeof n ? n.split(" ") : [n]; r < 4; r++) i[e + oe[r] + t] = o[r] || o[r - 2] || o[0]; 1702 | return i 1703 | } 1704 | }, "margin" !== e && (w.cssHooks[e + t].set = Ke) 1705 | }), w.fn.extend({ 1706 | css: function (e, t) { 1707 | return z(this, function (e, t, n) { 1708 | var r, i, o = {}, a = 0; 1709 | if (Array.isArray(t)) { 1710 | for (r = $e(e), i = t.length; a < i; a++) o[t[a]] = w.css(e, t[a], !1, r); 1711 | return o 1712 | } 1713 | return void 0 !== n ? w.style(e, t, n) : w.css(e, t) 1714 | }, e, t, arguments.length > 1) 1715 | } 1716 | }); 1717 | 1718 | function tt(e, t, n, r, i) { 1719 | return new tt.prototype.init(e, t, n, r, i) 1720 | } 1721 | 1722 | w.Tween = tt, tt.prototype = { 1723 | constructor: tt, init: function (e, t, n, r, i, o) { 1724 | this.elem = e, this.prop = n, this.easing = i || w.easing._default, this.options = t, this.start = this.now = this.cur(), this.end = r, this.unit = o || (w.cssNumber[n] ? "" : "px") 1725 | }, cur: function () { 1726 | var e = tt.propHooks[this.prop]; 1727 | return e && e.get ? e.get(this) : tt.propHooks._default.get(this) 1728 | }, run: function (e) { 1729 | var t, n = tt.propHooks[this.prop]; 1730 | return this.options.duration ? this.pos = t = w.easing[this.easing](e, this.options.duration * e, 0, 1, this.options.duration) : this.pos = t = 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) : tt.propHooks._default.set(this), this 1731 | } 1732 | }, tt.prototype.init.prototype = tt.prototype, tt.propHooks = { 1733 | _default: { 1734 | get: function (e) { 1735 | var t; 1736 | return 1 !== e.elem.nodeType || null != e.elem[e.prop] && null == e.elem.style[e.prop] ? e.elem[e.prop] : (t = w.css(e.elem, e.prop, "")) && "auto" !== t ? t : 0 1737 | }, set: function (e) { 1738 | w.fx.step[e.prop] ? w.fx.step[e.prop](e) : 1 !== e.elem.nodeType || null == e.elem.style[w.cssProps[e.prop]] && !w.cssHooks[e.prop] ? e.elem[e.prop] = e.now : w.style(e.elem, e.prop, e.now + e.unit) 1739 | } 1740 | } 1741 | }, tt.propHooks.scrollTop = tt.propHooks.scrollLeft = { 1742 | set: function (e) { 1743 | e.elem.nodeType && e.elem.parentNode && (e.elem[e.prop] = e.now) 1744 | } 1745 | }, w.easing = { 1746 | linear: function (e) { 1747 | return e 1748 | }, swing: function (e) { 1749 | return .5 - Math.cos(e * Math.PI) / 2 1750 | }, _default: "swing" 1751 | }, w.fx = tt.prototype.init, w.fx.step = {}; 1752 | var nt, rt, it = /^(?:toggle|show|hide)$/, ot = /queueHooks$/; 1753 | 1754 | function at() { 1755 | rt && (!1 === r.hidden && e.requestAnimationFrame ? e.requestAnimationFrame(at) : e.setTimeout(at, w.fx.interval), w.fx.tick()) 1756 | } 1757 | 1758 | function st() { 1759 | return e.setTimeout(function () { 1760 | nt = void 0 1761 | }), nt = Date.now() 1762 | } 1763 | 1764 | function ut(e, t) { 1765 | var n, r = 0, i = {height: e}; 1766 | for (t = t ? 1 : 0; r < 4; r += 2 - t) i["margin" + (n = oe[r])] = i["padding" + n] = e; 1767 | return t && (i.opacity = i.width = e), i 1768 | } 1769 | 1770 | function lt(e, t, n) { 1771 | for (var r, i = (pt.tweeners[t] || []).concat(pt.tweeners["*"]), o = 0, a = i.length; o < a; o++) if (r = i[o].call(n, t, e)) return r 1772 | } 1773 | 1774 | function ct(e, t, n) { 1775 | var r, i, o, a, s, u, l, c, f = "width" in t || "height" in t, p = this, d = {}, h = e.style, 1776 | g = e.nodeType && ae(e), y = J.get(e, "fxshow"); 1777 | n.queue || (null == (a = w._queueHooks(e, "fx")).unqueued && (a.unqueued = 0, s = a.empty.fire, a.empty.fire = function () { 1778 | a.unqueued || s() 1779 | }), a.unqueued++, p.always(function () { 1780 | p.always(function () { 1781 | a.unqueued--, w.queue(e, "fx").length || a.empty.fire() 1782 | }) 1783 | })); 1784 | for (r in t) if (i = t[r], it.test(i)) { 1785 | if (delete t[r], o = o || "toggle" === i, i === (g ? "hide" : "show")) { 1786 | if ("show" !== i || !y || void 0 === y[r]) continue; 1787 | g = !0 1788 | } 1789 | d[r] = y && y[r] || w.style(e, r) 1790 | } 1791 | if ((u = !w.isEmptyObject(t)) || !w.isEmptyObject(d)) { 1792 | f && 1 === e.nodeType && (n.overflow = [h.overflow, h.overflowX, h.overflowY], null == (l = y && y.display) && (l = J.get(e, "display")), "none" === (c = w.css(e, "display")) && (l ? c = l : (fe([e], !0), l = e.style.display || l, c = w.css(e, "display"), fe([e]))), ("inline" === c || "inline-block" === c && null != l) && "none" === w.css(e, "float") && (u || (p.done(function () { 1793 | h.display = l 1794 | }), null == l && (c = h.display, l = "none" === c ? "" : c)), h.display = "inline-block")), n.overflow && (h.overflow = "hidden", p.always(function () { 1795 | h.overflow = n.overflow[0], h.overflowX = n.overflow[1], h.overflowY = n.overflow[2] 1796 | })), u = !1; 1797 | for (r in d) u || (y ? "hidden" in y && (g = y.hidden) : y = J.access(e, "fxshow", {display: l}), o && (y.hidden = !g), g && fe([e], !0), p.done(function () { 1798 | g || fe([e]), J.remove(e, "fxshow"); 1799 | for (r in d) w.style(e, r, d[r]) 1800 | })), u = lt(g ? y[r] : 0, r, p), r in y || (y[r] = u.start, g && (u.end = u.start, u.start = 0)) 1801 | } 1802 | } 1803 | 1804 | function ft(e, t) { 1805 | var n, r, i, o, a; 1806 | for (n in e) if (r = G(n), i = t[r], o = e[n], Array.isArray(o) && (i = o[1], o = e[n] = o[0]), n !== r && (e[r] = o, delete e[n]), (a = w.cssHooks[r]) && "expand" in a) { 1807 | o = a.expand(o), delete e[r]; 1808 | for (n in o) n in e || (e[n] = o[n], t[n] = i) 1809 | } else t[r] = i 1810 | } 1811 | 1812 | function pt(e, t, n) { 1813 | var r, i, o = 0, a = pt.prefilters.length, s = w.Deferred().always(function () { 1814 | delete u.elem 1815 | }), u = function () { 1816 | if (i) return !1; 1817 | for (var t = nt || st(), n = Math.max(0, l.startTime + l.duration - t), r = 1 - (n / l.duration || 0), o = 0, a = l.tweens.length; o < a; o++) l.tweens[o].run(r); 1818 | return s.notifyWith(e, [l, r, n]), r < 1 && a ? n : (a || s.notifyWith(e, [l, 1, 0]), s.resolveWith(e, [l]), !1) 1819 | }, l = s.promise({ 1820 | elem: e, 1821 | props: w.extend({}, t), 1822 | opts: w.extend(!0, {specialEasing: {}, easing: w.easing._default}, n), 1823 | originalProperties: t, 1824 | originalOptions: n, 1825 | startTime: nt || st(), 1826 | duration: n.duration, 1827 | tweens: [], 1828 | createTween: function (t, n) { 1829 | var r = w.Tween(e, l.opts, t, n, l.opts.specialEasing[t] || l.opts.easing); 1830 | return l.tweens.push(r), r 1831 | }, 1832 | stop: function (t) { 1833 | var n = 0, r = t ? l.tweens.length : 0; 1834 | if (i) return this; 1835 | for (i = !0; n < r; n++) l.tweens[n].run(1); 1836 | return t ? (s.notifyWith(e, [l, 1, 0]), s.resolveWith(e, [l, t])) : s.rejectWith(e, [l, t]), this 1837 | } 1838 | }), c = l.props; 1839 | for (ft(c, l.opts.specialEasing); o < a; o++) if (r = pt.prefilters[o].call(l, e, c, l.opts)) return g(r.stop) && (w._queueHooks(l.elem, l.opts.queue).stop = r.stop.bind(r)), r; 1840 | return w.map(c, lt, l), g(l.opts.start) && l.opts.start.call(e, l), l.progress(l.opts.progress).done(l.opts.done, l.opts.complete).fail(l.opts.fail).always(l.opts.always), w.fx.timer(w.extend(u, { 1841 | elem: e, 1842 | anim: l, 1843 | queue: l.opts.queue 1844 | })), l 1845 | } 1846 | 1847 | w.Animation = w.extend(pt, { 1848 | tweeners: { 1849 | "*": [function (e, t) { 1850 | var n = this.createTween(e, t); 1851 | return ue(n.elem, e, ie.exec(t), n), n 1852 | }] 1853 | }, tweener: function (e, t) { 1854 | g(e) ? (t = e, e = ["*"]) : e = e.match(M); 1855 | for (var n, r = 0, i = e.length; r < i; r++) n = e[r], pt.tweeners[n] = pt.tweeners[n] || [], pt.tweeners[n].unshift(t) 1856 | }, prefilters: [ct], prefilter: function (e, t) { 1857 | t ? pt.prefilters.unshift(e) : pt.prefilters.push(e) 1858 | } 1859 | }), w.speed = function (e, t, n) { 1860 | var r = e && "object" == typeof e ? w.extend({}, e) : { 1861 | complete: n || !n && t || g(e) && e, 1862 | duration: e, 1863 | easing: n && t || t && !g(t) && t 1864 | }; 1865 | return w.fx.off ? r.duration = 0 : "number" != typeof r.duration && (r.duration in w.fx.speeds ? r.duration = w.fx.speeds[r.duration] : r.duration = w.fx.speeds._default), null != r.queue && !0 !== r.queue || (r.queue = "fx"), r.old = r.complete, r.complete = function () { 1866 | g(r.old) && r.old.call(this), r.queue && w.dequeue(this, r.queue) 1867 | }, r 1868 | }, w.fn.extend({ 1869 | fadeTo: function (e, t, n, r) { 1870 | return this.filter(ae).css("opacity", 0).show().end().animate({opacity: t}, e, n, r) 1871 | }, animate: function (e, t, n, r) { 1872 | var i = w.isEmptyObject(e), o = w.speed(t, n, r), a = function () { 1873 | var t = pt(this, w.extend({}, e), o); 1874 | (i || J.get(this, "finish")) && t.stop(!0) 1875 | }; 1876 | return a.finish = a, i || !1 === o.queue ? this.each(a) : this.queue(o.queue, a) 1877 | }, stop: function (e, t, n) { 1878 | var r = function (e) { 1879 | var t = e.stop; 1880 | delete e.stop, t(n) 1881 | }; 1882 | return "string" != typeof e && (n = t, t = e, e = void 0), t && !1 !== e && this.queue(e || "fx", []), this.each(function () { 1883 | var t = !0, i = null != e && e + "queueHooks", o = w.timers, a = J.get(this); 1884 | if (i) a[i] && a[i].stop && r(a[i]); else for (i in a) a[i] && a[i].stop && ot.test(i) && r(a[i]); 1885 | for (i = o.length; i--;) o[i].elem !== this || null != e && o[i].queue !== e || (o[i].anim.stop(n), t = !1, o.splice(i, 1)); 1886 | !t && n || w.dequeue(this, e) 1887 | }) 1888 | }, finish: function (e) { 1889 | return !1 !== e && (e = e || "fx"), this.each(function () { 1890 | var t, n = J.get(this), r = n[e + "queue"], i = n[e + "queueHooks"], o = w.timers, a = r ? r.length : 0; 1891 | for (n.finish = !0, w.queue(this, e, []), i && i.stop && i.stop.call(this, !0), t = o.length; t--;) o[t].elem === this && o[t].queue === e && (o[t].anim.stop(!0), o.splice(t, 1)); 1892 | for (t = 0; t < a; t++) r[t] && r[t].finish && r[t].finish.call(this); 1893 | delete n.finish 1894 | }) 1895 | } 1896 | }), w.each(["toggle", "show", "hide"], function (e, t) { 1897 | var n = w.fn[t]; 1898 | w.fn[t] = function (e, r, i) { 1899 | return null == e || "boolean" == typeof e ? n.apply(this, arguments) : this.animate(ut(t, !0), e, r, i) 1900 | } 1901 | }), w.each({ 1902 | slideDown: ut("show"), 1903 | slideUp: ut("hide"), 1904 | slideToggle: ut("toggle"), 1905 | fadeIn: {opacity: "show"}, 1906 | fadeOut: {opacity: "hide"}, 1907 | fadeToggle: {opacity: "toggle"} 1908 | }, function (e, t) { 1909 | w.fn[e] = function (e, n, r) { 1910 | return this.animate(t, e, n, r) 1911 | } 1912 | }), w.timers = [], w.fx.tick = function () { 1913 | var e, t = 0, n = w.timers; 1914 | for (nt = Date.now(); t < n.length; t++) (e = n[t])() || n[t] !== e || n.splice(t--, 1); 1915 | n.length || w.fx.stop(), nt = void 0 1916 | }, w.fx.timer = function (e) { 1917 | w.timers.push(e), w.fx.start() 1918 | }, w.fx.interval = 13, w.fx.start = function () { 1919 | rt || (rt = !0, at()) 1920 | }, w.fx.stop = function () { 1921 | rt = null 1922 | }, w.fx.speeds = {slow: 600, fast: 200, _default: 400}, w.fn.delay = function (t, n) { 1923 | return t = w.fx ? w.fx.speeds[t] || t : t, n = n || "fx", this.queue(n, function (n, r) { 1924 | var i = e.setTimeout(n, t); 1925 | r.stop = function () { 1926 | e.clearTimeout(i) 1927 | } 1928 | }) 1929 | }, function () { 1930 | var e = r.createElement("input"), t = r.createElement("select").appendChild(r.createElement("option")); 1931 | e.type = "checkbox", h.checkOn = "" !== e.value, h.optSelected = t.selected, (e = r.createElement("input")).value = "t", e.type = "radio", h.radioValue = "t" === e.value 1932 | }(); 1933 | var dt, ht = w.expr.attrHandle; 1934 | w.fn.extend({ 1935 | attr: function (e, t) { 1936 | return z(this, w.attr, e, t, arguments.length > 1) 1937 | }, removeAttr: function (e) { 1938 | return this.each(function () { 1939 | w.removeAttr(this, e) 1940 | }) 1941 | } 1942 | }), w.extend({ 1943 | attr: function (e, t, n) { 1944 | var r, i, o = e.nodeType; 1945 | if (3 !== o && 8 !== o && 2 !== o) return "undefined" == typeof e.getAttribute ? w.prop(e, t, n) : (1 === o && w.isXMLDoc(e) || (i = w.attrHooks[t.toLowerCase()] || (w.expr.match.bool.test(t) ? dt : void 0)), void 0 !== n ? null === n ? void w.removeAttr(e, t) : i && "set" in i && void 0 !== (r = i.set(e, n, t)) ? r : (e.setAttribute(t, n + ""), n) : i && "get" in i && null !== (r = i.get(e, t)) ? r : null == (r = w.find.attr(e, t)) ? void 0 : r) 1946 | }, attrHooks: { 1947 | type: { 1948 | set: function (e, t) { 1949 | if (!h.radioValue && "radio" === t && N(e, "input")) { 1950 | var n = e.value; 1951 | return e.setAttribute("type", t), n && (e.value = n), t 1952 | } 1953 | } 1954 | } 1955 | }, removeAttr: function (e, t) { 1956 | var n, r = 0, i = t && t.match(M); 1957 | if (i && 1 === e.nodeType) while (n = i[r++]) e.removeAttribute(n) 1958 | } 1959 | }), dt = { 1960 | set: function (e, t, n) { 1961 | return !1 === t ? w.removeAttr(e, n) : e.setAttribute(n, n), n 1962 | } 1963 | }, w.each(w.expr.match.bool.source.match(/\w+/g), function (e, t) { 1964 | var n = ht[t] || w.find.attr; 1965 | ht[t] = function (e, t, r) { 1966 | var i, o, a = t.toLowerCase(); 1967 | return r || (o = ht[a], ht[a] = i, i = null != n(e, t, r) ? a : null, ht[a] = o), i 1968 | } 1969 | }); 1970 | var gt = /^(?:input|select|textarea|button)$/i, yt = /^(?:a|area)$/i; 1971 | w.fn.extend({ 1972 | prop: function (e, t) { 1973 | return z(this, w.prop, e, t, arguments.length > 1) 1974 | }, removeProp: function (e) { 1975 | return this.each(function () { 1976 | delete this[w.propFix[e] || e] 1977 | }) 1978 | } 1979 | }), w.extend({ 1980 | prop: function (e, t, n) { 1981 | var r, i, o = e.nodeType; 1982 | if (3 !== o && 8 !== o && 2 !== o) return 1 === o && w.isXMLDoc(e) || (t = w.propFix[t] || t, i = w.propHooks[t]), void 0 !== n ? i && "set" in i && void 0 !== (r = i.set(e, n, t)) ? r : e[t] = n : i && "get" in i && null !== (r = i.get(e, t)) ? r : e[t] 1983 | }, propHooks: { 1984 | tabIndex: { 1985 | get: function (e) { 1986 | var t = w.find.attr(e, "tabindex"); 1987 | return t ? parseInt(t, 10) : gt.test(e.nodeName) || yt.test(e.nodeName) && e.href ? 0 : -1 1988 | } 1989 | } 1990 | }, propFix: {"for": "htmlFor", "class": "className"} 1991 | }), h.optSelected || (w.propHooks.selected = { 1992 | get: function (e) { 1993 | var t = e.parentNode; 1994 | return t && t.parentNode && t.parentNode.selectedIndex, null 1995 | }, set: function (e) { 1996 | var t = e.parentNode; 1997 | t && (t.selectedIndex, t.parentNode && t.parentNode.selectedIndex) 1998 | } 1999 | }), w.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], function () { 2000 | w.propFix[this.toLowerCase()] = this 2001 | }); 2002 | 2003 | function vt(e) { 2004 | return (e.match(M) || []).join(" ") 2005 | } 2006 | 2007 | function mt(e) { 2008 | return e.getAttribute && e.getAttribute("class") || "" 2009 | } 2010 | 2011 | function xt(e) { 2012 | return Array.isArray(e) ? e : "string" == typeof e ? e.match(M) || [] : [] 2013 | } 2014 | 2015 | w.fn.extend({ 2016 | addClass: function (e) { 2017 | var t, n, r, i, o, a, s, u = 0; 2018 | if (g(e)) return this.each(function (t) { 2019 | w(this).addClass(e.call(this, t, mt(this))) 2020 | }); 2021 | if ((t = xt(e)).length) while (n = this[u++]) if (i = mt(n), r = 1 === n.nodeType && " " + vt(i) + " ") { 2022 | a = 0; 2023 | while (o = t[a++]) r.indexOf(" " + o + " ") < 0 && (r += o + " "); 2024 | i !== (s = vt(r)) && n.setAttribute("class", s) 2025 | } 2026 | return this 2027 | }, removeClass: function (e) { 2028 | var t, n, r, i, o, a, s, u = 0; 2029 | if (g(e)) return this.each(function (t) { 2030 | w(this).removeClass(e.call(this, t, mt(this))) 2031 | }); 2032 | if (!arguments.length) return this.attr("class", ""); 2033 | if ((t = xt(e)).length) while (n = this[u++]) if (i = mt(n), r = 1 === n.nodeType && " " + vt(i) + " ") { 2034 | a = 0; 2035 | while (o = t[a++]) while (r.indexOf(" " + o + " ") > -1) r = r.replace(" " + o + " ", " "); 2036 | i !== (s = vt(r)) && n.setAttribute("class", s) 2037 | } 2038 | return this 2039 | }, toggleClass: function (e, t) { 2040 | var n = typeof e, r = "string" === n || Array.isArray(e); 2041 | return "boolean" == typeof t && r ? t ? this.addClass(e) : this.removeClass(e) : g(e) ? this.each(function (n) { 2042 | w(this).toggleClass(e.call(this, n, mt(this), t), t) 2043 | }) : this.each(function () { 2044 | var t, i, o, a; 2045 | if (r) { 2046 | i = 0, o = w(this), a = xt(e); 2047 | while (t = a[i++]) o.hasClass(t) ? o.removeClass(t) : o.addClass(t) 2048 | } else void 0 !== e && "boolean" !== n || ((t = mt(this)) && J.set(this, "__className__", t), this.setAttribute && this.setAttribute("class", t || !1 === e ? "" : J.get(this, "__className__") || "")) 2049 | }) 2050 | }, hasClass: function (e) { 2051 | var t, n, r = 0; 2052 | t = " " + e + " "; 2053 | while (n = this[r++]) if (1 === n.nodeType && (" " + vt(mt(n)) + " ").indexOf(t) > -1) return !0; 2054 | return !1 2055 | } 2056 | }); 2057 | var bt = /\r/g; 2058 | w.fn.extend({ 2059 | val: function (e) { 2060 | var t, n, r, i = this[0]; 2061 | { 2062 | if (arguments.length) return r = g(e), this.each(function (n) { 2063 | var i; 2064 | 1 === this.nodeType && (null == (i = r ? e.call(this, n, w(this).val()) : e) ? i = "" : "number" == typeof i ? i += "" : Array.isArray(i) && (i = w.map(i, function (e) { 2065 | return null == e ? "" : e + "" 2066 | })), (t = w.valHooks[this.type] || w.valHooks[this.nodeName.toLowerCase()]) && "set" in t && void 0 !== t.set(this, i, "value") || (this.value = i)) 2067 | }); 2068 | if (i) return (t = w.valHooks[i.type] || w.valHooks[i.nodeName.toLowerCase()]) && "get" in t && void 0 !== (n = t.get(i, "value")) ? n : "string" == typeof(n = i.value) ? n.replace(bt, "") : null == n ? "" : n 2069 | } 2070 | } 2071 | }), w.extend({ 2072 | valHooks: { 2073 | option: { 2074 | get: function (e) { 2075 | var t = w.find.attr(e, "value"); 2076 | return null != t ? t : vt(w.text(e)) 2077 | } 2078 | }, select: { 2079 | get: function (e) { 2080 | var t, n, r, i = e.options, o = e.selectedIndex, a = "select-one" === e.type, s = a ? null : [], 2081 | u = a ? o + 1 : i.length; 2082 | for (r = o < 0 ? u : a ? o : 0; r < u; r++) if (((n = i[r]).selected || r === o) && !n.disabled && (!n.parentNode.disabled || !N(n.parentNode, "optgroup"))) { 2083 | if (t = w(n).val(), a) return t; 2084 | s.push(t) 2085 | } 2086 | return s 2087 | }, set: function (e, t) { 2088 | var n, r, i = e.options, o = w.makeArray(t), a = i.length; 2089 | while (a--) ((r = i[a]).selected = w.inArray(w.valHooks.option.get(r), o) > -1) && (n = !0); 2090 | return n || (e.selectedIndex = -1), o 2091 | } 2092 | } 2093 | } 2094 | }), w.each(["radio", "checkbox"], function () { 2095 | w.valHooks[this] = { 2096 | set: function (e, t) { 2097 | if (Array.isArray(t)) return e.checked = w.inArray(w(e).val(), t) > -1 2098 | } 2099 | }, h.checkOn || (w.valHooks[this].get = function (e) { 2100 | return null === e.getAttribute("value") ? "on" : e.value 2101 | }) 2102 | }), h.focusin = "onfocusin" in e; 2103 | var wt = /^(?:focusinfocus|focusoutblur)$/, Tt = function (e) { 2104 | e.stopPropagation() 2105 | }; 2106 | w.extend(w.event, { 2107 | trigger: function (t, n, i, o) { 2108 | var a, s, u, l, c, p, d, h, v = [i || r], m = f.call(t, "type") ? t.type : t, 2109 | x = f.call(t, "namespace") ? t.namespace.split(".") : []; 2110 | if (s = h = u = i = i || r, 3 !== i.nodeType && 8 !== i.nodeType && !wt.test(m + w.event.triggered) && (m.indexOf(".") > -1 && (m = (x = m.split(".")).shift(), x.sort()), c = m.indexOf(":") < 0 && "on" + m, t = t[w.expando] ? t : new w.Event(m, "object" == typeof t && t), t.isTrigger = o ? 2 : 3, t.namespace = x.join("."), t.rnamespace = t.namespace ? new RegExp("(^|\\.)" + x.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, t.result = void 0, t.target || (t.target = i), n = null == n ? [t] : w.makeArray(n, [t]), d = w.event.special[m] || {}, o || !d.trigger || !1 !== d.trigger.apply(i, n))) { 2111 | if (!o && !d.noBubble && !y(i)) { 2112 | for (l = d.delegateType || m, wt.test(l + m) || (s = s.parentNode); s; s = s.parentNode) v.push(s), u = s; 2113 | u === (i.ownerDocument || r) && v.push(u.defaultView || u.parentWindow || e) 2114 | } 2115 | a = 0; 2116 | while ((s = v[a++]) && !t.isPropagationStopped()) h = s, t.type = a > 1 ? l : d.bindType || m, (p = (J.get(s, "events") || {})[t.type] && J.get(s, "handle")) && p.apply(s, n), (p = c && s[c]) && p.apply && Y(s) && (t.result = p.apply(s, n), !1 === t.result && t.preventDefault()); 2117 | return t.type = m, o || t.isDefaultPrevented() || d._default && !1 !== d._default.apply(v.pop(), n) || !Y(i) || c && g(i[m]) && !y(i) && ((u = i[c]) && (i[c] = null), w.event.triggered = m, t.isPropagationStopped() && h.addEventListener(m, Tt), i[m](), t.isPropagationStopped() && h.removeEventListener(m, Tt), w.event.triggered = void 0, u && (i[c] = u)), t.result 2118 | } 2119 | }, simulate: function (e, t, n) { 2120 | var r = w.extend(new w.Event, n, {type: e, isSimulated: !0}); 2121 | w.event.trigger(r, null, t) 2122 | } 2123 | }), w.fn.extend({ 2124 | trigger: function (e, t) { 2125 | return this.each(function () { 2126 | w.event.trigger(e, t, this) 2127 | }) 2128 | }, triggerHandler: function (e, t) { 2129 | var n = this[0]; 2130 | if (n) return w.event.trigger(e, t, n, !0) 2131 | } 2132 | }), h.focusin || w.each({focus: "focusin", blur: "focusout"}, function (e, t) { 2133 | var n = function (e) { 2134 | w.event.simulate(t, e.target, w.event.fix(e)) 2135 | }; 2136 | w.event.special[t] = { 2137 | setup: function () { 2138 | var r = this.ownerDocument || this, i = J.access(r, t); 2139 | i || r.addEventListener(e, n, !0), J.access(r, t, (i || 0) + 1) 2140 | }, teardown: function () { 2141 | var r = this.ownerDocument || this, i = J.access(r, t) - 1; 2142 | i ? J.access(r, t, i) : (r.removeEventListener(e, n, !0), J.remove(r, t)) 2143 | } 2144 | } 2145 | }); 2146 | var Ct = e.location, Et = Date.now(), kt = /\?/; 2147 | w.parseXML = function (t) { 2148 | var n; 2149 | if (!t || "string" != typeof t) return null; 2150 | try { 2151 | n = (new e.DOMParser).parseFromString(t, "text/xml") 2152 | } catch (e) { 2153 | n = void 0 2154 | } 2155 | return n && !n.getElementsByTagName("parsererror").length || w.error("Invalid XML: " + t), n 2156 | }; 2157 | var St = /\[\]$/, Dt = /\r?\n/g, Nt = /^(?:submit|button|image|reset|file)$/i, 2158 | At = /^(?:input|select|textarea|keygen)/i; 2159 | 2160 | function jt(e, t, n, r) { 2161 | var i; 2162 | if (Array.isArray(t)) w.each(t, function (t, i) { 2163 | n || St.test(e) ? r(e, i) : jt(e + "[" + ("object" == typeof i && null != i ? t : "") + "]", i, n, r) 2164 | }); else if (n || "object" !== x(t)) r(e, t); else for (i in t) jt(e + "[" + i + "]", t[i], n, r) 2165 | } 2166 | 2167 | w.param = function (e, t) { 2168 | var n, r = [], i = function (e, t) { 2169 | var n = g(t) ? t() : t; 2170 | r[r.length] = encodeURIComponent(e) + "=" + encodeURIComponent(null == n ? "" : n) 2171 | }; 2172 | if (Array.isArray(e) || e.jquery && !w.isPlainObject(e)) w.each(e, function () { 2173 | i(this.name, this.value) 2174 | }); else for (n in e) jt(n, e[n], t, i); 2175 | return r.join("&") 2176 | }, w.fn.extend({ 2177 | serialize: function () { 2178 | return w.param(this.serializeArray()) 2179 | }, serializeArray: function () { 2180 | return this.map(function () { 2181 | var e = w.prop(this, "elements"); 2182 | return e ? w.makeArray(e) : this 2183 | }).filter(function () { 2184 | var e = this.type; 2185 | return this.name && !w(this).is(":disabled") && At.test(this.nodeName) && !Nt.test(e) && (this.checked || !pe.test(e)) 2186 | }).map(function (e, t) { 2187 | var n = w(this).val(); 2188 | return null == n ? null : Array.isArray(n) ? w.map(n, function (e) { 2189 | return {name: t.name, value: e.replace(Dt, "\r\n")} 2190 | }) : {name: t.name, value: n.replace(Dt, "\r\n")} 2191 | }).get() 2192 | } 2193 | }); 2194 | var qt = /%20/g, Lt = /#.*$/, Ht = /([?&])_=[^&]*/, Ot = /^(.*?):[ \t]*([^\r\n]*)$/gm, 2195 | Pt = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, Mt = /^(?:GET|HEAD)$/, Rt = /^\/\//, It = {}, 2196 | Wt = {}, $t = "*/".concat("*"), Bt = r.createElement("a"); 2197 | Bt.href = Ct.href; 2198 | 2199 | function Ft(e) { 2200 | return function (t, n) { 2201 | "string" != typeof t && (n = t, t = "*"); 2202 | var r, i = 0, o = t.toLowerCase().match(M) || []; 2203 | if (g(n)) while (r = o[i++]) "+" === r[0] ? (r = r.slice(1) || "*", (e[r] = e[r] || []).unshift(n)) : (e[r] = e[r] || []).push(n) 2204 | } 2205 | } 2206 | 2207 | function _t(e, t, n, r) { 2208 | var i = {}, o = e === Wt; 2209 | 2210 | function a(s) { 2211 | var u; 2212 | return i[s] = !0, w.each(e[s] || [], function (e, s) { 2213 | var l = s(t, n, r); 2214 | return "string" != typeof l || o || i[l] ? o ? !(u = l) : void 0 : (t.dataTypes.unshift(l), a(l), !1) 2215 | }), u 2216 | } 2217 | 2218 | return a(t.dataTypes[0]) || !i["*"] && a("*") 2219 | } 2220 | 2221 | function zt(e, t) { 2222 | var n, r, i = w.ajaxSettings.flatOptions || {}; 2223 | for (n in t) void 0 !== t[n] && ((i[n] ? e : r || (r = {}))[n] = t[n]); 2224 | return r && w.extend(!0, e, r), e 2225 | } 2226 | 2227 | function Xt(e, t, n) { 2228 | var r, i, o, a, s = e.contents, u = e.dataTypes; 2229 | while ("*" === u[0]) u.shift(), void 0 === r && (r = e.mimeType || t.getResponseHeader("Content-Type")); 2230 | if (r) for (i in s) if (s[i] && s[i].test(r)) { 2231 | u.unshift(i); 2232 | break 2233 | } 2234 | if (u[0] in n) o = u[0]; else { 2235 | for (i in n) { 2236 | if (!u[0] || e.converters[i + " " + u[0]]) { 2237 | o = i; 2238 | break 2239 | } 2240 | a || (a = i) 2241 | } 2242 | o = o || a 2243 | } 2244 | if (o) return o !== u[0] && u.unshift(o), n[o] 2245 | } 2246 | 2247 | function Ut(e, t, n, r) { 2248 | var i, o, a, s, u, l = {}, c = e.dataTypes.slice(); 2249 | if (c[1]) for (a in e.converters) l[a.toLowerCase()] = e.converters[a]; 2250 | o = c.shift(); 2251 | while (o) if (e.responseFields[o] && (n[e.responseFields[o]] = t), !u && r && e.dataFilter && (t = e.dataFilter(t, e.dataType)), u = o, o = c.shift()) if ("*" === o) o = u; else if ("*" !== u && u !== o) { 2252 | if (!(a = l[u + " " + o] || l["* " + o])) for (i in l) if ((s = i.split(" "))[1] === o && (a = l[u + " " + s[0]] || l["* " + s[0]])) { 2253 | !0 === a ? a = l[i] : !0 !== l[i] && (o = s[0], c.unshift(s[1])); 2254 | break 2255 | } 2256 | if (!0 !== a) if (a && e["throws"]) t = a(t); else try { 2257 | t = a(t) 2258 | } catch (e) { 2259 | return {state: "parsererror", error: a ? e : "No conversion from " + u + " to " + o} 2260 | } 2261 | } 2262 | return {state: "success", data: t} 2263 | } 2264 | 2265 | w.extend({ 2266 | active: 0, 2267 | lastModified: {}, 2268 | etag: {}, 2269 | ajaxSettings: { 2270 | url: Ct.href, 2271 | type: "GET", 2272 | isLocal: Pt.test(Ct.protocol), 2273 | global: !0, 2274 | processData: !0, 2275 | async: !0, 2276 | contentType: "application/x-www-form-urlencoded; charset=UTF-8", 2277 | accepts: { 2278 | "*": $t, 2279 | text: "text/plain", 2280 | html: "text/html", 2281 | xml: "application/xml, text/xml", 2282 | json: "application/json, text/javascript" 2283 | }, 2284 | contents: {xml: /\bxml\b/, html: /\bhtml/, json: /\bjson\b/}, 2285 | responseFields: {xml: "responseXML", text: "responseText", json: "responseJSON"}, 2286 | converters: {"* text": String, "text html": !0, "text json": JSON.parse, "text xml": w.parseXML}, 2287 | flatOptions: {url: !0, context: !0} 2288 | }, 2289 | ajaxSetup: function (e, t) { 2290 | return t ? zt(zt(e, w.ajaxSettings), t) : zt(w.ajaxSettings, e) 2291 | }, 2292 | ajaxPrefilter: Ft(It), 2293 | ajaxTransport: Ft(Wt), 2294 | ajax: function (t, n) { 2295 | "object" == typeof t && (n = t, t = void 0), n = n || {}; 2296 | var i, o, a, s, u, l, c, f, p, d, h = w.ajaxSetup({}, n), g = h.context || h, 2297 | y = h.context && (g.nodeType || g.jquery) ? w(g) : w.event, v = w.Deferred(), 2298 | m = w.Callbacks("once memory"), x = h.statusCode || {}, b = {}, T = {}, C = "canceled", E = { 2299 | readyState: 0, getResponseHeader: function (e) { 2300 | var t; 2301 | if (c) { 2302 | if (!s) { 2303 | s = {}; 2304 | while (t = Ot.exec(a)) s[t[1].toLowerCase()] = t[2] 2305 | } 2306 | t = s[e.toLowerCase()] 2307 | } 2308 | return null == t ? null : t 2309 | }, getAllResponseHeaders: function () { 2310 | return c ? a : null 2311 | }, setRequestHeader: function (e, t) { 2312 | return null == c && (e = T[e.toLowerCase()] = T[e.toLowerCase()] || e, b[e] = t), this 2313 | }, overrideMimeType: function (e) { 2314 | return null == c && (h.mimeType = e), this 2315 | }, statusCode: function (e) { 2316 | var t; 2317 | if (e) if (c) E.always(e[E.status]); else for (t in e) x[t] = [x[t], e[t]]; 2318 | return this 2319 | }, abort: function (e) { 2320 | var t = e || C; 2321 | return i && i.abort(t), k(0, t), this 2322 | } 2323 | }; 2324 | if (v.promise(E), h.url = ((t || h.url || Ct.href) + "").replace(Rt, Ct.protocol + "//"), h.type = n.method || n.type || h.method || h.type, h.dataTypes = (h.dataType || "*").toLowerCase().match(M) || [""], null == h.crossDomain) { 2325 | l = r.createElement("a"); 2326 | try { 2327 | l.href = h.url, l.href = l.href, h.crossDomain = Bt.protocol + "//" + Bt.host != l.protocol + "//" + l.host 2328 | } catch (e) { 2329 | h.crossDomain = !0 2330 | } 2331 | } 2332 | if (h.data && h.processData && "string" != typeof h.data && (h.data = w.param(h.data, h.traditional)), _t(It, h, n, E), c) return E; 2333 | (f = w.event && h.global) && 0 == w.active++ && w.event.trigger("ajaxStart"), h.type = h.type.toUpperCase(), h.hasContent = !Mt.test(h.type), o = h.url.replace(Lt, ""), h.hasContent ? h.data && h.processData && 0 === (h.contentType || "").indexOf("application/x-www-form-urlencoded") && (h.data = h.data.replace(qt, "+")) : (d = h.url.slice(o.length), h.data && (h.processData || "string" == typeof h.data) && (o += (kt.test(o) ? "&" : "?") + h.data, delete h.data), !1 === h.cache && (o = o.replace(Ht, "$1"), d = (kt.test(o) ? "&" : "?") + "_=" + Et++ + d), h.url = o + d), h.ifModified && (w.lastModified[o] && E.setRequestHeader("If-Modified-Since", w.lastModified[o]), w.etag[o] && E.setRequestHeader("If-None-Match", w.etag[o])), (h.data && h.hasContent && !1 !== h.contentType || n.contentType) && E.setRequestHeader("Content-Type", h.contentType), E.setRequestHeader("Accept", h.dataTypes[0] && h.accepts[h.dataTypes[0]] ? h.accepts[h.dataTypes[0]] + ("*" !== h.dataTypes[0] ? ", " + $t + "; q=0.01" : "") : h.accepts["*"]); 2334 | for (p in h.headers) E.setRequestHeader(p, h.headers[p]); 2335 | if (h.beforeSend && (!1 === h.beforeSend.call(g, E, h) || c)) return E.abort(); 2336 | if (C = "abort", m.add(h.complete), E.done(h.success), E.fail(h.error), i = _t(Wt, h, n, E)) { 2337 | if (E.readyState = 1, f && y.trigger("ajaxSend", [E, h]), c) return E; 2338 | h.async && h.timeout > 0 && (u = e.setTimeout(function () { 2339 | E.abort("timeout") 2340 | }, h.timeout)); 2341 | try { 2342 | c = !1, i.send(b, k) 2343 | } catch (e) { 2344 | if (c) throw e; 2345 | k(-1, e) 2346 | } 2347 | } else k(-1, "No Transport"); 2348 | 2349 | function k(t, n, r, s) { 2350 | var l, p, d, b, T, C = n; 2351 | c || (c = !0, u && e.clearTimeout(u), i = void 0, a = s || "", E.readyState = t > 0 ? 4 : 0, l = t >= 200 && t < 300 || 304 === t, r && (b = Xt(h, E, r)), b = Ut(h, b, E, l), l ? (h.ifModified && ((T = E.getResponseHeader("Last-Modified")) && (w.lastModified[o] = T), (T = E.getResponseHeader("etag")) && (w.etag[o] = T)), 204 === t || "HEAD" === h.type ? C = "nocontent" : 304 === t ? C = "notmodified" : (C = b.state, p = b.data, l = !(d = b.error))) : (d = C, !t && C || (C = "error", t < 0 && (t = 0))), E.status = t, E.statusText = (n || C) + "", l ? v.resolveWith(g, [p, C, E]) : v.rejectWith(g, [E, C, d]), E.statusCode(x), x = void 0, f && y.trigger(l ? "ajaxSuccess" : "ajaxError", [E, h, l ? p : d]), m.fireWith(g, [E, C]), f && (y.trigger("ajaxComplete", [E, h]), --w.active || w.event.trigger("ajaxStop"))) 2352 | } 2353 | 2354 | return E 2355 | }, 2356 | getJSON: function (e, t, n) { 2357 | return w.get(e, t, n, "json") 2358 | }, 2359 | getScript: function (e, t) { 2360 | return w.get(e, void 0, t, "script") 2361 | } 2362 | }), w.each(["get", "post"], function (e, t) { 2363 | w[t] = function (e, n, r, i) { 2364 | return g(n) && (i = i || r, r = n, n = void 0), w.ajax(w.extend({ 2365 | url: e, 2366 | type: t, 2367 | dataType: i, 2368 | data: n, 2369 | success: r 2370 | }, w.isPlainObject(e) && e)) 2371 | } 2372 | }), w._evalUrl = function (e) { 2373 | return w.ajax({url: e, type: "GET", dataType: "script", cache: !0, async: !1, global: !1, "throws": !0}) 2374 | }, w.fn.extend({ 2375 | wrapAll: function (e) { 2376 | var t; 2377 | return this[0] && (g(e) && (e = e.call(this[0])), t = w(e, this[0].ownerDocument).eq(0).clone(!0), this[0].parentNode && t.insertBefore(this[0]), t.map(function () { 2378 | var e = this; 2379 | while (e.firstElementChild) e = e.firstElementChild; 2380 | return e 2381 | }).append(this)), this 2382 | }, wrapInner: function (e) { 2383 | return g(e) ? this.each(function (t) { 2384 | w(this).wrapInner(e.call(this, t)) 2385 | }) : this.each(function () { 2386 | var t = w(this), n = t.contents(); 2387 | n.length ? n.wrapAll(e) : t.append(e) 2388 | }) 2389 | }, wrap: function (e) { 2390 | var t = g(e); 2391 | return this.each(function (n) { 2392 | w(this).wrapAll(t ? e.call(this, n) : e) 2393 | }) 2394 | }, unwrap: function (e) { 2395 | return this.parent(e).not("body").each(function () { 2396 | w(this).replaceWith(this.childNodes) 2397 | }), this 2398 | } 2399 | }), w.expr.pseudos.hidden = function (e) { 2400 | return !w.expr.pseudos.visible(e) 2401 | }, w.expr.pseudos.visible = function (e) { 2402 | return !!(e.offsetWidth || e.offsetHeight || e.getClientRects().length) 2403 | }, w.ajaxSettings.xhr = function () { 2404 | try { 2405 | return new e.XMLHttpRequest 2406 | } catch (e) { 2407 | } 2408 | }; 2409 | var Vt = {0: 200, 1223: 204}, Gt = w.ajaxSettings.xhr(); 2410 | h.cors = !!Gt && "withCredentials" in Gt, h.ajax = Gt = !!Gt, w.ajaxTransport(function (t) { 2411 | var n, r; 2412 | if (h.cors || Gt && !t.crossDomain) return { 2413 | send: function (i, o) { 2414 | var a, s = t.xhr(); 2415 | if (s.open(t.type, t.url, t.async, t.username, t.password), t.xhrFields) for (a in t.xhrFields) s[a] = t.xhrFields[a]; 2416 | t.mimeType && s.overrideMimeType && s.overrideMimeType(t.mimeType), t.crossDomain || i["X-Requested-With"] || (i["X-Requested-With"] = "XMLHttpRequest"); 2417 | for (a in i) s.setRequestHeader(a, i[a]); 2418 | n = function (e) { 2419 | return function () { 2420 | n && (n = r = s.onload = s.onerror = s.onabort = s.ontimeout = s.onreadystatechange = null, "abort" === e ? s.abort() : "error" === e ? "number" != typeof s.status ? o(0, "error") : o(s.status, s.statusText) : o(Vt[s.status] || s.status, s.statusText, "text" !== (s.responseType || "text") || "string" != typeof s.responseText ? {binary: s.response} : {text: s.responseText}, s.getAllResponseHeaders())) 2421 | } 2422 | }, s.onload = n(), r = s.onerror = s.ontimeout = n("error"), void 0 !== s.onabort ? s.onabort = r : s.onreadystatechange = function () { 2423 | 4 === s.readyState && e.setTimeout(function () { 2424 | n && r() 2425 | }) 2426 | }, n = n("abort"); 2427 | try { 2428 | s.send(t.hasContent && t.data || null) 2429 | } catch (e) { 2430 | if (n) throw e 2431 | } 2432 | }, abort: function () { 2433 | n && n() 2434 | } 2435 | } 2436 | }), w.ajaxPrefilter(function (e) { 2437 | e.crossDomain && (e.contents.script = !1) 2438 | }), w.ajaxSetup({ 2439 | accepts: {script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"}, 2440 | contents: {script: /\b(?:java|ecma)script\b/}, 2441 | converters: { 2442 | "text script": function (e) { 2443 | return w.globalEval(e), e 2444 | } 2445 | } 2446 | }), w.ajaxPrefilter("script", function (e) { 2447 | void 0 === e.cache && (e.cache = !1), e.crossDomain && (e.type = "GET") 2448 | }), w.ajaxTransport("script", function (e) { 2449 | if (e.crossDomain) { 2450 | var t, n; 2451 | return { 2452 | send: function (i, o) { 2453 | t = w("