mobile.dev.js 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405
  1. "use strict";
  2. function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
  3. /** layui-v2.5.6 MIT License By https://www.layui.com */
  4. ;
  5. layui.define(function (i) {
  6. i("layui.mobile", layui.v);
  7. });
  8. layui.define(function (e) {
  9. "use strict";
  10. var r = {
  11. open: "{{",
  12. close: "}}"
  13. },
  14. c = {
  15. exp: function exp(e) {
  16. return new RegExp(e, "g");
  17. },
  18. query: function query(e, c, t) {
  19. var o = ["#([\\s\\S])+?", "([^{#}])*?"][e || 0];
  20. return n((c || "") + r.open + o + r.close + (t || ""));
  21. },
  22. escape: function escape(e) {
  23. return String(e || "").replace(/&(?!#?[a-zA-Z0-9]+;)/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/'/g, "&#39;").replace(/"/g, "&quot;");
  24. },
  25. error: function error(e, r) {
  26. var c = "Laytpl Error:";
  27. return "object" == (typeof console === "undefined" ? "undefined" : _typeof(console)) && console.error(c + e + "\n" + (r || "")), c + e;
  28. }
  29. },
  30. n = c.exp,
  31. t = function t(e) {
  32. this.tpl = e;
  33. };
  34. t.pt = t.prototype, window.errors = 0, t.pt.parse = function (e, t) {
  35. var o = this,
  36. p = e,
  37. a = n("^" + r.open + "#", ""),
  38. l = n(r.close + "$", "");
  39. e = e.replace(/\s+|\r|\t|\n/g, " ").replace(n(r.open + "#"), r.open + "# ").replace(n(r.close + "}"), "} " + r.close).replace(/\\/g, "\\\\").replace(n(r.open + "!(.+?)!" + r.close), function (e) {
  40. return e = e.replace(n("^" + r.open + "!"), "").replace(n("!" + r.close), "").replace(n(r.open + "|" + r.close), function (e) {
  41. return e.replace(/(.)/g, "\\$1");
  42. });
  43. }).replace(/(?="|')/g, "\\").replace(c.query(), function (e) {
  44. return e = e.replace(a, "").replace(l, ""), '";' + e.replace(/\\/g, "") + ';view+="';
  45. }).replace(c.query(1), function (e) {
  46. var c = '"+(';
  47. return e.replace(/\s/g, "") === r.open + r.close ? "" : (e = e.replace(n(r.open + "|" + r.close), ""), /^=/.test(e) && (e = e.replace(/^=/, ""), c = '"+_escape_('), c + e.replace(/\\/g, "") + ')+"');
  48. }), e = '"use strict";var view = "' + e + '";return view;';
  49. try {
  50. return o.cache = e = new Function("d, _escape_", e), e(t, c.escape);
  51. } catch (u) {
  52. return delete o.cache, c.error(u, p);
  53. }
  54. }, t.pt.render = function (e, r) {
  55. var n,
  56. t = this;
  57. return e ? (n = t.cache ? t.cache(e, c.escape) : t.parse(t.tpl, e), r ? void r(n) : n) : c.error("no data");
  58. };
  59. var o = function o(e) {
  60. return "string" != typeof e ? c.error("Template not found") : new t(e);
  61. };
  62. o.config = function (e) {
  63. e = e || {};
  64. for (var c in e) {
  65. r[c] = e[c];
  66. }
  67. }, o.v = "1.2.0", e("laytpl", o);
  68. });
  69. layui.define(function (e) {
  70. "use strict";
  71. var t = (window, document),
  72. i = "querySelectorAll",
  73. n = "getElementsByClassName",
  74. a = function a(e) {
  75. return t[i](e);
  76. },
  77. s = {
  78. type: 0,
  79. shade: !0,
  80. shadeClose: !0,
  81. fixed: !0,
  82. anim: "scale"
  83. },
  84. l = {
  85. extend: function extend(e) {
  86. var t = JSON.parse(JSON.stringify(s));
  87. for (var i in e) {
  88. t[i] = e[i];
  89. }
  90. return t;
  91. },
  92. timer: {},
  93. end: {}
  94. };
  95. l.touch = function (e, t) {
  96. e.addEventListener("click", function (e) {
  97. t.call(this, e);
  98. }, !1);
  99. };
  100. var o = 0,
  101. r = ["layui-m-layer"],
  102. d = function d(e) {
  103. var t = this;
  104. t.config = l.extend(e), t.view();
  105. };
  106. d.prototype.view = function () {
  107. var e = this,
  108. i = e.config,
  109. s = t.createElement("div");
  110. e.id = s.id = r[0] + o, s.setAttribute("class", r[0] + " " + r[0] + (i.type || 0)), s.setAttribute("index", o);
  111. var l = function () {
  112. var e = "object" == _typeof(i.title);
  113. return i.title ? '<h3 style="' + (e ? i.title[1] : "") + '">' + (e ? i.title[0] : i.title) + "</h3>" : "";
  114. }(),
  115. d = function () {
  116. "string" == typeof i.btn && (i.btn = [i.btn]);
  117. var e,
  118. t = (i.btn || []).length;
  119. return 0 !== t && i.btn ? (e = '<span yes type="1">' + i.btn[0] + "</span>", 2 === t && (e = '<span no type="0">' + i.btn[1] + "</span>" + e), '<div class="layui-m-layerbtn">' + e + "</div>") : "";
  120. }();
  121. if (i.fixed || (i.top = i.hasOwnProperty("top") ? i.top : 100, i.style = i.style || "", i.style += " top:" + (t.body.scrollTop + i.top) + "px"), 2 === i.type && (i.content = '<i></i><i class="layui-m-layerload"></i><i></i><p>' + (i.content || "") + "</p>"), i.skin && (i.anim = "up"), "msg" === i.skin && (i.shade = !1), s.innerHTML = (i.shade ? "<div " + ("string" == typeof i.shade ? 'style="' + i.shade + '"' : "") + ' class="layui-m-layershade"></div>' : "") + '<div class="layui-m-layermain" ' + (i.fixed ? "" : 'style="position:static;"') + '><div class="layui-m-layersection"><div class="layui-m-layerchild ' + (i.skin ? "layui-m-layer-" + i.skin + " " : "") + (i.className ? i.className : "") + " " + (i.anim ? "layui-m-anim-" + i.anim : "") + '" ' + (i.style ? 'style="' + i.style + '"' : "") + ">" + l + '<div class="layui-m-layercont">' + i.content + "</div>" + d + "</div></div></div>", !i.type || 2 === i.type) {
  122. var y = t[n](r[0] + i.type),
  123. u = y.length;
  124. u >= 1 && c.close(y[0].getAttribute("index"));
  125. }
  126. document.body.appendChild(s);
  127. var m = e.elem = a("#" + e.id)[0];
  128. i.success && i.success(m), e.index = o++, e.action(i, m);
  129. }, d.prototype.action = function (e, t) {
  130. var i = this;
  131. e.time && (l.timer[i.index] = setTimeout(function () {
  132. c.close(i.index);
  133. }, 1e3 * e.time));
  134. var a = function a() {
  135. var t = this.getAttribute("type");
  136. 0 == t ? (e.no && e.no(), c.close(i.index)) : e.yes ? e.yes(i.index) : c.close(i.index);
  137. };
  138. if (e.btn) for (var s = t[n]("layui-m-layerbtn")[0].children, o = s.length, r = 0; r < o; r++) {
  139. l.touch(s[r], a);
  140. }
  141. if (e.shade && e.shadeClose) {
  142. var d = t[n]("layui-m-layershade")[0];
  143. l.touch(d, function () {
  144. c.close(i.index, e.end);
  145. });
  146. }
  147. e.end && (l.end[i.index] = e.end);
  148. };
  149. var c = {
  150. v: "2.0 m",
  151. index: o,
  152. open: function open(e) {
  153. var t = new d(e || {});
  154. return t.index;
  155. },
  156. close: function close(e) {
  157. var i = a("#" + r[0] + e)[0];
  158. i && (i.innerHTML = "", t.body.removeChild(i), clearTimeout(l.timer[e]), delete l.timer[e], "function" == typeof l.end[e] && l.end[e](), delete l.end[e]);
  159. },
  160. closeAll: function closeAll() {
  161. for (var e = t[n](r[0]), i = 0, a = e.length; i < a; i++) {
  162. c.close(0 | e[0].getAttribute("index"));
  163. }
  164. }
  165. };
  166. e("layer-mobile", c);
  167. });
  168. layui.define(function (t) {
  169. var e = function () {
  170. function t(t) {
  171. return null == t ? String(t) : J[W.call(t)] || "object";
  172. }
  173. function e(e) {
  174. return "function" == t(e);
  175. }
  176. function n(t) {
  177. return null != t && t == t.window;
  178. }
  179. function r(t) {
  180. return null != t && t.nodeType == t.DOCUMENT_NODE;
  181. }
  182. function i(e) {
  183. return "object" == t(e);
  184. }
  185. function o(t) {
  186. return i(t) && !n(t) && Object.getPrototypeOf(t) == Object.prototype;
  187. }
  188. function a(t) {
  189. var e = !!t && "length" in t && t.length,
  190. r = T.type(t);
  191. return "function" != r && !n(t) && ("array" == r || 0 === e || "number" == typeof e && e > 0 && e - 1 in t);
  192. }
  193. function s(t) {
  194. return A.call(t, function (t) {
  195. return null != t;
  196. });
  197. }
  198. function u(t) {
  199. return t.length > 0 ? T.fn.concat.apply([], t) : t;
  200. }
  201. function c(t) {
  202. return t.replace(/::/g, "/").replace(/([A-Z]+)([A-Z][a-z])/g, "$1_$2").replace(/([a-z\d])([A-Z])/g, "$1_$2").replace(/_/g, "-").toLowerCase();
  203. }
  204. function l(t) {
  205. return t in F ? F[t] : F[t] = new RegExp("(^|\\s)" + t + "(\\s|$)");
  206. }
  207. function f(t, e) {
  208. return "number" != typeof e || k[c(t)] ? e : e + "px";
  209. }
  210. function h(t) {
  211. var e, n;
  212. return $[t] || (e = L.createElement(t), L.body.appendChild(e), n = getComputedStyle(e, "").getPropertyValue("display"), e.parentNode.removeChild(e), "none" == n && (n = "block"), $[t] = n), $[t];
  213. }
  214. function p(t) {
  215. return "children" in t ? D.call(t.children) : T.map(t.childNodes, function (t) {
  216. if (1 == t.nodeType) return t;
  217. });
  218. }
  219. function d(t, e) {
  220. var n,
  221. r = t ? t.length : 0;
  222. for (n = 0; n < r; n++) {
  223. this[n] = t[n];
  224. }
  225. this.length = r, this.selector = e || "";
  226. }
  227. function m(t, e, n) {
  228. for (j in e) {
  229. n && (o(e[j]) || Q(e[j])) ? (o(e[j]) && !o(t[j]) && (t[j] = {}), Q(e[j]) && !Q(t[j]) && (t[j] = []), m(t[j], e[j], n)) : e[j] !== E && (t[j] = e[j]);
  230. }
  231. }
  232. function v(t, e) {
  233. return null == e ? T(t) : T(t).filter(e);
  234. }
  235. function g(t, n, r, i) {
  236. return e(n) ? n.call(t, r, i) : n;
  237. }
  238. function y(t, e, n) {
  239. null == n ? t.removeAttribute(e) : t.setAttribute(e, n);
  240. }
  241. function x(t, e) {
  242. var n = t.className || "",
  243. r = n && n.baseVal !== E;
  244. return e === E ? r ? n.baseVal : n : void (r ? n.baseVal = e : t.className = e);
  245. }
  246. function b(t) {
  247. try {
  248. return t ? "true" == t || "false" != t && ("null" == t ? null : +t + "" == t ? +t : /^[\[\{]/.test(t) ? T.parseJSON(t) : t) : t;
  249. } catch (e) {
  250. return t;
  251. }
  252. }
  253. function w(t, e) {
  254. e(t);
  255. for (var n = 0, r = t.childNodes.length; n < r; n++) {
  256. w(t.childNodes[n], e);
  257. }
  258. }
  259. var E,
  260. j,
  261. T,
  262. S,
  263. C,
  264. N,
  265. O = [],
  266. P = O.concat,
  267. A = O.filter,
  268. D = O.slice,
  269. L = window.document,
  270. $ = {},
  271. F = {},
  272. k = {
  273. "column-count": 1,
  274. columns: 1,
  275. "font-weight": 1,
  276. "line-height": 1,
  277. opacity: 1,
  278. "z-index": 1,
  279. zoom: 1
  280. },
  281. M = /^\s*<(\w+|!)[^>]*>/,
  282. R = /^<(\w+)\s*\/?>(?:<\/\1>|)$/,
  283. z = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,
  284. Z = /^(?:body|html)$/i,
  285. q = /([A-Z])/g,
  286. H = ["val", "css", "html", "text", "data", "width", "height", "offset"],
  287. I = ["after", "prepend", "before", "append"],
  288. V = L.createElement("table"),
  289. _ = L.createElement("tr"),
  290. B = {
  291. tr: L.createElement("tbody"),
  292. tbody: V,
  293. thead: V,
  294. tfoot: V,
  295. td: _,
  296. th: _,
  297. "*": L.createElement("div")
  298. },
  299. U = /complete|loaded|interactive/,
  300. X = /^[\w-]*$/,
  301. J = {},
  302. W = J.toString,
  303. Y = {},
  304. G = L.createElement("div"),
  305. K = {
  306. tabindex: "tabIndex",
  307. readonly: "readOnly",
  308. "for": "htmlFor",
  309. "class": "className",
  310. maxlength: "maxLength",
  311. cellspacing: "cellSpacing",
  312. cellpadding: "cellPadding",
  313. rowspan: "rowSpan",
  314. colspan: "colSpan",
  315. usemap: "useMap",
  316. frameborder: "frameBorder",
  317. contenteditable: "contentEditable"
  318. },
  319. Q = Array.isArray || function (t) {
  320. return t instanceof Array;
  321. };
  322. return Y.matches = function (t, e) {
  323. if (!e || !t || 1 !== t.nodeType) return !1;
  324. var n = t.matches || t.webkitMatchesSelector || t.mozMatchesSelector || t.oMatchesSelector || t.matchesSelector;
  325. if (n) return n.call(t, e);
  326. var r,
  327. i = t.parentNode,
  328. o = !i;
  329. return o && (i = G).appendChild(t), r = ~Y.qsa(i, e).indexOf(t), o && G.removeChild(t), r;
  330. }, C = function C(t) {
  331. return t.replace(/-+(.)?/g, function (t, e) {
  332. return e ? e.toUpperCase() : "";
  333. });
  334. }, N = function N(t) {
  335. return A.call(t, function (e, n) {
  336. return t.indexOf(e) == n;
  337. });
  338. }, Y.fragment = function (t, e, n) {
  339. var r, i, a;
  340. return R.test(t) && (r = T(L.createElement(RegExp.$1))), r || (t.replace && (t = t.replace(z, "<$1></$2>")), e === E && (e = M.test(t) && RegExp.$1), e in B || (e = "*"), a = B[e], a.innerHTML = "" + t, r = T.each(D.call(a.childNodes), function () {
  341. a.removeChild(this);
  342. })), o(n) && (i = T(r), T.each(n, function (t, e) {
  343. H.indexOf(t) > -1 ? i[t](e) : i.attr(t, e);
  344. })), r;
  345. }, Y.Z = function (t, e) {
  346. return new d(t, e);
  347. }, Y.isZ = function (t) {
  348. return t instanceof Y.Z;
  349. }, Y.init = function (t, n) {
  350. var r;
  351. if (!t) return Y.Z();
  352. if ("string" == typeof t) {
  353. if (t = t.trim(), "<" == t[0] && M.test(t)) r = Y.fragment(t, RegExp.$1, n), t = null;else {
  354. if (n !== E) return T(n).find(t);
  355. r = Y.qsa(L, t);
  356. }
  357. } else {
  358. if (e(t)) return T(L).ready(t);
  359. if (Y.isZ(t)) return t;
  360. if (Q(t)) r = s(t);else if (i(t)) r = [t], t = null;else if (M.test(t)) r = Y.fragment(t.trim(), RegExp.$1, n), t = null;else {
  361. if (n !== E) return T(n).find(t);
  362. r = Y.qsa(L, t);
  363. }
  364. }
  365. return Y.Z(r, t);
  366. }, T = function T(t, e) {
  367. return Y.init(t, e);
  368. }, T.extend = function (t) {
  369. var e,
  370. n = D.call(arguments, 1);
  371. return "boolean" == typeof t && (e = t, t = n.shift()), n.forEach(function (n) {
  372. m(t, n, e);
  373. }), t;
  374. }, Y.qsa = function (t, e) {
  375. var n,
  376. r = "#" == e[0],
  377. i = !r && "." == e[0],
  378. o = r || i ? e.slice(1) : e,
  379. a = X.test(o);
  380. return t.getElementById && a && r ? (n = t.getElementById(o)) ? [n] : [] : 1 !== t.nodeType && 9 !== t.nodeType && 11 !== t.nodeType ? [] : D.call(a && !r && t.getElementsByClassName ? i ? t.getElementsByClassName(o) : t.getElementsByTagName(e) : t.querySelectorAll(e));
  381. }, T.contains = L.documentElement.contains ? function (t, e) {
  382. return t !== e && t.contains(e);
  383. } : function (t, e) {
  384. for (; e && (e = e.parentNode);) {
  385. if (e === t) return !0;
  386. }
  387. return !1;
  388. }, T.type = t, T.isFunction = e, T.isWindow = n, T.isArray = Q, T.isPlainObject = o, T.isEmptyObject = function (t) {
  389. var e;
  390. for (e in t) {
  391. return !1;
  392. }
  393. return !0;
  394. }, T.isNumeric = function (t) {
  395. var e = Number(t),
  396. n = _typeof(t);
  397. return null != t && "boolean" != n && ("string" != n || t.length) && !isNaN(e) && isFinite(e) || !1;
  398. }, T.inArray = function (t, e, n) {
  399. return O.indexOf.call(e, t, n);
  400. }, T.camelCase = C, T.trim = function (t) {
  401. return null == t ? "" : String.prototype.trim.call(t);
  402. }, T.uuid = 0, T.support = {}, T.expr = {}, T.noop = function () {}, T.map = function (t, e) {
  403. var n,
  404. r,
  405. i,
  406. o = [];
  407. if (a(t)) for (r = 0; r < t.length; r++) {
  408. n = e(t[r], r), null != n && o.push(n);
  409. } else for (i in t) {
  410. n = e(t[i], i), null != n && o.push(n);
  411. }
  412. return u(o);
  413. }, T.each = function (t, e) {
  414. var n, r;
  415. if (a(t)) {
  416. for (n = 0; n < t.length; n++) {
  417. if (e.call(t[n], n, t[n]) === !1) return t;
  418. }
  419. } else for (r in t) {
  420. if (e.call(t[r], r, t[r]) === !1) return t;
  421. }
  422. return t;
  423. }, T.grep = function (t, e) {
  424. return A.call(t, e);
  425. }, window.JSON && (T.parseJSON = JSON.parse), T.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function (t, e) {
  426. J["[object " + e + "]"] = e.toLowerCase();
  427. }), T.fn = {
  428. constructor: Y.Z,
  429. length: 0,
  430. forEach: O.forEach,
  431. reduce: O.reduce,
  432. push: O.push,
  433. sort: O.sort,
  434. splice: O.splice,
  435. indexOf: O.indexOf,
  436. concat: function concat() {
  437. var t,
  438. e,
  439. n = [];
  440. for (t = 0; t < arguments.length; t++) {
  441. e = arguments[t], n[t] = Y.isZ(e) ? e.toArray() : e;
  442. }
  443. return P.apply(Y.isZ(this) ? this.toArray() : this, n);
  444. },
  445. map: function map(t) {
  446. return T(T.map(this, function (e, n) {
  447. return t.call(e, n, e);
  448. }));
  449. },
  450. slice: function slice() {
  451. return T(D.apply(this, arguments));
  452. },
  453. ready: function ready(t) {
  454. return U.test(L.readyState) && L.body ? t(T) : L.addEventListener("DOMContentLoaded", function () {
  455. t(T);
  456. }, !1), this;
  457. },
  458. get: function get(t) {
  459. return t === E ? D.call(this) : this[t >= 0 ? t : t + this.length];
  460. },
  461. toArray: function toArray() {
  462. return this.get();
  463. },
  464. size: function size() {
  465. return this.length;
  466. },
  467. remove: function remove() {
  468. return this.each(function () {
  469. null != this.parentNode && this.parentNode.removeChild(this);
  470. });
  471. },
  472. each: function each(t) {
  473. return O.every.call(this, function (e, n) {
  474. return t.call(e, n, e) !== !1;
  475. }), this;
  476. },
  477. filter: function filter(t) {
  478. return e(t) ? this.not(this.not(t)) : T(A.call(this, function (e) {
  479. return Y.matches(e, t);
  480. }));
  481. },
  482. add: function add(t, e) {
  483. return T(N(this.concat(T(t, e))));
  484. },
  485. is: function is(t) {
  486. return this.length > 0 && Y.matches(this[0], t);
  487. },
  488. not: function not(t) {
  489. var n = [];
  490. if (e(t) && t.call !== E) this.each(function (e) {
  491. t.call(this, e) || n.push(this);
  492. });else {
  493. var r = "string" == typeof t ? this.filter(t) : a(t) && e(t.item) ? D.call(t) : T(t);
  494. this.forEach(function (t) {
  495. r.indexOf(t) < 0 && n.push(t);
  496. });
  497. }
  498. return T(n);
  499. },
  500. has: function has(t) {
  501. return this.filter(function () {
  502. return i(t) ? T.contains(this, t) : T(this).find(t).size();
  503. });
  504. },
  505. eq: function eq(t) {
  506. return t === -1 ? this.slice(t) : this.slice(t, +t + 1);
  507. },
  508. first: function first() {
  509. var t = this[0];
  510. return t && !i(t) ? t : T(t);
  511. },
  512. last: function last() {
  513. var t = this[this.length - 1];
  514. return t && !i(t) ? t : T(t);
  515. },
  516. find: function find(t) {
  517. var e,
  518. n = this;
  519. return e = t ? "object" == _typeof(t) ? T(t).filter(function () {
  520. var t = this;
  521. return O.some.call(n, function (e) {
  522. return T.contains(e, t);
  523. });
  524. }) : 1 == this.length ? T(Y.qsa(this[0], t)) : this.map(function () {
  525. return Y.qsa(this, t);
  526. }) : T();
  527. },
  528. closest: function closest(t, e) {
  529. var n = [],
  530. i = "object" == _typeof(t) && T(t);
  531. return this.each(function (o, a) {
  532. for (; a && !(i ? i.indexOf(a) >= 0 : Y.matches(a, t));) {
  533. a = a !== e && !r(a) && a.parentNode;
  534. }
  535. a && n.indexOf(a) < 0 && n.push(a);
  536. }), T(n);
  537. },
  538. parents: function parents(t) {
  539. for (var e = [], n = this; n.length > 0;) {
  540. n = T.map(n, function (t) {
  541. if ((t = t.parentNode) && !r(t) && e.indexOf(t) < 0) return e.push(t), t;
  542. });
  543. }
  544. return v(e, t);
  545. },
  546. parent: function parent(t) {
  547. return v(N(this.pluck("parentNode")), t);
  548. },
  549. children: function children(t) {
  550. return v(this.map(function () {
  551. return p(this);
  552. }), t);
  553. },
  554. contents: function contents() {
  555. return this.map(function () {
  556. return this.contentDocument || D.call(this.childNodes);
  557. });
  558. },
  559. siblings: function siblings(t) {
  560. return v(this.map(function (t, e) {
  561. return A.call(p(e.parentNode), function (t) {
  562. return t !== e;
  563. });
  564. }), t);
  565. },
  566. empty: function empty() {
  567. return this.each(function () {
  568. this.innerHTML = "";
  569. });
  570. },
  571. pluck: function pluck(t) {
  572. return T.map(this, function (e) {
  573. return e[t];
  574. });
  575. },
  576. show: function show() {
  577. return this.each(function () {
  578. "none" == this.style.display && (this.style.display = ""), "none" == getComputedStyle(this, "").getPropertyValue("display") && (this.style.display = h(this.nodeName));
  579. });
  580. },
  581. replaceWith: function replaceWith(t) {
  582. return this.before(t).remove();
  583. },
  584. wrap: function wrap(t) {
  585. var n = e(t);
  586. if (this[0] && !n) var r = T(t).get(0),
  587. i = r.parentNode || this.length > 1;
  588. return this.each(function (e) {
  589. T(this).wrapAll(n ? t.call(this, e) : i ? r.cloneNode(!0) : r);
  590. });
  591. },
  592. wrapAll: function wrapAll(t) {
  593. if (this[0]) {
  594. T(this[0]).before(t = T(t));
  595. for (var e; (e = t.children()).length;) {
  596. t = e.first();
  597. }
  598. T(t).append(this);
  599. }
  600. return this;
  601. },
  602. wrapInner: function wrapInner(t) {
  603. var n = e(t);
  604. return this.each(function (e) {
  605. var r = T(this),
  606. i = r.contents(),
  607. o = n ? t.call(this, e) : t;
  608. i.length ? i.wrapAll(o) : r.append(o);
  609. });
  610. },
  611. unwrap: function unwrap() {
  612. return this.parent().each(function () {
  613. T(this).replaceWith(T(this).children());
  614. }), this;
  615. },
  616. clone: function clone() {
  617. return this.map(function () {
  618. return this.cloneNode(!0);
  619. });
  620. },
  621. hide: function hide() {
  622. return this.css("display", "none");
  623. },
  624. toggle: function toggle(t) {
  625. return this.each(function () {
  626. var e = T(this);
  627. (t === E ? "none" == e.css("display") : t) ? e.show() : e.hide();
  628. });
  629. },
  630. prev: function prev(t) {
  631. return T(this.pluck("previousElementSibling")).filter(t || "*");
  632. },
  633. next: function next(t) {
  634. return T(this.pluck("nextElementSibling")).filter(t || "*");
  635. },
  636. html: function html(t) {
  637. return 0 in arguments ? this.each(function (e) {
  638. var n = this.innerHTML;
  639. T(this).empty().append(g(this, t, e, n));
  640. }) : 0 in this ? this[0].innerHTML : null;
  641. },
  642. text: function text(t) {
  643. return 0 in arguments ? this.each(function (e) {
  644. var n = g(this, t, e, this.textContent);
  645. this.textContent = null == n ? "" : "" + n;
  646. }) : 0 in this ? this.pluck("textContent").join("") : null;
  647. },
  648. attr: function attr(t, e) {
  649. var n;
  650. return "string" != typeof t || 1 in arguments ? this.each(function (n) {
  651. if (1 === this.nodeType) if (i(t)) for (j in t) {
  652. y(this, j, t[j]);
  653. } else y(this, t, g(this, e, n, this.getAttribute(t)));
  654. }) : 0 in this && 1 == this[0].nodeType && null != (n = this[0].getAttribute(t)) ? n : E;
  655. },
  656. removeAttr: function removeAttr(t) {
  657. return this.each(function () {
  658. 1 === this.nodeType && t.split(" ").forEach(function (t) {
  659. y(this, t);
  660. }, this);
  661. });
  662. },
  663. prop: function prop(t, e) {
  664. return t = K[t] || t, 1 in arguments ? this.each(function (n) {
  665. this[t] = g(this, e, n, this[t]);
  666. }) : this[0] && this[0][t];
  667. },
  668. removeProp: function removeProp(t) {
  669. return t = K[t] || t, this.each(function () {
  670. delete this[t];
  671. });
  672. },
  673. data: function data(t, e) {
  674. var n = "data-" + t.replace(q, "-$1").toLowerCase(),
  675. r = 1 in arguments ? this.attr(n, e) : this.attr(n);
  676. return null !== r ? b(r) : E;
  677. },
  678. val: function val(t) {
  679. return 0 in arguments ? (null == t && (t = ""), this.each(function (e) {
  680. this.value = g(this, t, e, this.value);
  681. })) : this[0] && (this[0].multiple ? T(this[0]).find("option").filter(function () {
  682. return this.selected;
  683. }).pluck("value") : this[0].value);
  684. },
  685. offset: function offset(t) {
  686. if (t) return this.each(function (e) {
  687. var n = T(this),
  688. r = g(this, t, e, n.offset()),
  689. i = n.offsetParent().offset(),
  690. o = {
  691. top: r.top - i.top,
  692. left: r.left - i.left
  693. };
  694. "static" == n.css("position") && (o.position = "relative"), n.css(o);
  695. });
  696. if (!this.length) return null;
  697. if (L.documentElement !== this[0] && !T.contains(L.documentElement, this[0])) return {
  698. top: 0,
  699. left: 0
  700. };
  701. var e = this[0].getBoundingClientRect();
  702. return {
  703. left: e.left + window.pageXOffset,
  704. top: e.top + window.pageYOffset,
  705. width: Math.round(e.width),
  706. height: Math.round(e.height)
  707. };
  708. },
  709. css: function css(e, n) {
  710. if (arguments.length < 2) {
  711. var r = this[0];
  712. if ("string" == typeof e) {
  713. if (!r) return;
  714. return r.style[C(e)] || getComputedStyle(r, "").getPropertyValue(e);
  715. }
  716. if (Q(e)) {
  717. if (!r) return;
  718. var i = {},
  719. o = getComputedStyle(r, "");
  720. return T.each(e, function (t, e) {
  721. i[e] = r.style[C(e)] || o.getPropertyValue(e);
  722. }), i;
  723. }
  724. }
  725. var a = "";
  726. if ("string" == t(e)) n || 0 === n ? a = c(e) + ":" + f(e, n) : this.each(function () {
  727. this.style.removeProperty(c(e));
  728. });else for (j in e) {
  729. e[j] || 0 === e[j] ? a += c(j) + ":" + f(j, e[j]) + ";" : this.each(function () {
  730. this.style.removeProperty(c(j));
  731. });
  732. }
  733. return this.each(function () {
  734. this.style.cssText += ";" + a;
  735. });
  736. },
  737. index: function index(t) {
  738. return t ? this.indexOf(T(t)[0]) : this.parent().children().indexOf(this[0]);
  739. },
  740. hasClass: function hasClass(t) {
  741. return !!t && O.some.call(this, function (t) {
  742. return this.test(x(t));
  743. }, l(t));
  744. },
  745. addClass: function addClass(t) {
  746. return t ? this.each(function (e) {
  747. if ("className" in this) {
  748. S = [];
  749. var n = x(this),
  750. r = g(this, t, e, n);
  751. r.split(/\s+/g).forEach(function (t) {
  752. T(this).hasClass(t) || S.push(t);
  753. }, this), S.length && x(this, n + (n ? " " : "") + S.join(" "));
  754. }
  755. }) : this;
  756. },
  757. removeClass: function removeClass(t) {
  758. return this.each(function (e) {
  759. if ("className" in this) {
  760. if (t === E) return x(this, "");
  761. S = x(this), g(this, t, e, S).split(/\s+/g).forEach(function (t) {
  762. S = S.replace(l(t), " ");
  763. }), x(this, S.trim());
  764. }
  765. });
  766. },
  767. toggleClass: function toggleClass(t, e) {
  768. return t ? this.each(function (n) {
  769. var r = T(this),
  770. i = g(this, t, n, x(this));
  771. i.split(/\s+/g).forEach(function (t) {
  772. (e === E ? !r.hasClass(t) : e) ? r.addClass(t) : r.removeClass(t);
  773. });
  774. }) : this;
  775. },
  776. scrollTop: function scrollTop(t) {
  777. if (this.length) {
  778. var e = "scrollTop" in this[0];
  779. return t === E ? e ? this[0].scrollTop : this[0].pageYOffset : this.each(e ? function () {
  780. this.scrollTop = t;
  781. } : function () {
  782. this.scrollTo(this.scrollX, t);
  783. });
  784. }
  785. },
  786. scrollLeft: function scrollLeft(t) {
  787. if (this.length) {
  788. var e = "scrollLeft" in this[0];
  789. return t === E ? e ? this[0].scrollLeft : this[0].pageXOffset : this.each(e ? function () {
  790. this.scrollLeft = t;
  791. } : function () {
  792. this.scrollTo(t, this.scrollY);
  793. });
  794. }
  795. },
  796. position: function position() {
  797. if (this.length) {
  798. var t = this[0],
  799. e = this.offsetParent(),
  800. n = this.offset(),
  801. r = Z.test(e[0].nodeName) ? {
  802. top: 0,
  803. left: 0
  804. } : e.offset();
  805. return n.top -= parseFloat(T(t).css("margin-top")) || 0, n.left -= parseFloat(T(t).css("margin-left")) || 0, r.top += parseFloat(T(e[0]).css("border-top-width")) || 0, r.left += parseFloat(T(e[0]).css("border-left-width")) || 0, {
  806. top: n.top - r.top,
  807. left: n.left - r.left
  808. };
  809. }
  810. },
  811. offsetParent: function offsetParent() {
  812. return this.map(function () {
  813. for (var t = this.offsetParent || L.body; t && !Z.test(t.nodeName) && "static" == T(t).css("position");) {
  814. t = t.offsetParent;
  815. }
  816. return t;
  817. });
  818. }
  819. }, T.fn.detach = T.fn.remove, ["width", "height"].forEach(function (t) {
  820. var e = t.replace(/./, function (t) {
  821. return t[0].toUpperCase();
  822. });
  823. T.fn[t] = function (i) {
  824. var o,
  825. a = this[0];
  826. return i === E ? n(a) ? a["inner" + e] : r(a) ? a.documentElement["scroll" + e] : (o = this.offset()) && o[t] : this.each(function (e) {
  827. a = T(this), a.css(t, g(this, i, e, a[t]()));
  828. });
  829. };
  830. }), I.forEach(function (e, n) {
  831. var r = n % 2;
  832. T.fn[e] = function () {
  833. var e,
  834. i,
  835. o = T.map(arguments, function (n) {
  836. var r = [];
  837. return e = t(n), "array" == e ? (n.forEach(function (t) {
  838. return t.nodeType !== E ? r.push(t) : T.zepto.isZ(t) ? r = r.concat(t.get()) : void (r = r.concat(Y.fragment(t)));
  839. }), r) : "object" == e || null == n ? n : Y.fragment(n);
  840. }),
  841. a = this.length > 1;
  842. return o.length < 1 ? this : this.each(function (t, e) {
  843. i = r ? e : e.parentNode, e = 0 == n ? e.nextSibling : 1 == n ? e.firstChild : 2 == n ? e : null;
  844. var s = T.contains(L.documentElement, i);
  845. o.forEach(function (t) {
  846. if (a) t = t.cloneNode(!0);else if (!i) return T(t).remove();
  847. i.insertBefore(t, e), s && w(t, function (t) {
  848. if (!(null == t.nodeName || "SCRIPT" !== t.nodeName.toUpperCase() || t.type && "text/javascript" !== t.type || t.src)) {
  849. var e = t.ownerDocument ? t.ownerDocument.defaultView : window;
  850. e.eval.call(e, t.innerHTML);
  851. }
  852. });
  853. });
  854. });
  855. }, T.fn[r ? e + "To" : "insert" + (n ? "Before" : "After")] = function (t) {
  856. return T(t)[e](this), this;
  857. };
  858. }), Y.Z.prototype = d.prototype = T.fn, Y.uniq = N, Y.deserializeValue = b, T.zepto = Y, T;
  859. }();
  860. !function (t) {
  861. function e(t) {
  862. return t._zid || (t._zid = h++);
  863. }
  864. function n(t, n, o, a) {
  865. if (n = r(n), n.ns) var s = i(n.ns);
  866. return (v[e(t)] || []).filter(function (t) {
  867. return t && (!n.e || t.e == n.e) && (!n.ns || s.test(t.ns)) && (!o || e(t.fn) === e(o)) && (!a || t.sel == a);
  868. });
  869. }
  870. function r(t) {
  871. var e = ("" + t).split(".");
  872. return {
  873. e: e[0],
  874. ns: e.slice(1).sort().join(" ")
  875. };
  876. }
  877. function i(t) {
  878. return new RegExp("(?:^| )" + t.replace(" ", " .* ?") + "(?: |$)");
  879. }
  880. function o(t, e) {
  881. return t.del && !y && t.e in x || !!e;
  882. }
  883. function a(t) {
  884. return b[t] || y && x[t] || t;
  885. }
  886. function s(n, i, s, u, l, h, p) {
  887. var d = e(n),
  888. m = v[d] || (v[d] = []);
  889. i.split(/\s/).forEach(function (e) {
  890. if ("ready" == e) return t(document).ready(s);
  891. var i = r(e);
  892. i.fn = s, i.sel = l, i.e in b && (s = function s(e) {
  893. var n = e.relatedTarget;
  894. if (!n || n !== this && !t.contains(this, n)) return i.fn.apply(this, arguments);
  895. }), i.del = h;
  896. var d = h || s;
  897. i.proxy = function (t) {
  898. if (t = c(t), !t.isImmediatePropagationStopped()) {
  899. t.data = u;
  900. var e = d.apply(n, t._args == f ? [t] : [t].concat(t._args));
  901. return e === !1 && (t.preventDefault(), t.stopPropagation()), e;
  902. }
  903. }, i.i = m.length, m.push(i), "addEventListener" in n && n.addEventListener(a(i.e), i.proxy, o(i, p));
  904. });
  905. }
  906. function u(t, r, i, s, u) {
  907. var c = e(t);
  908. (r || "").split(/\s/).forEach(function (e) {
  909. n(t, e, i, s).forEach(function (e) {
  910. delete v[c][e.i], "removeEventListener" in t && t.removeEventListener(a(e.e), e.proxy, o(e, u));
  911. });
  912. });
  913. }
  914. function c(e, n) {
  915. return !n && e.isDefaultPrevented || (n || (n = e), t.each(T, function (t, r) {
  916. var i = n[t];
  917. e[t] = function () {
  918. return this[r] = w, i && i.apply(n, arguments);
  919. }, e[r] = E;
  920. }), e.timeStamp || (e.timeStamp = Date.now()), (n.defaultPrevented !== f ? n.defaultPrevented : "returnValue" in n ? n.returnValue === !1 : n.getPreventDefault && n.getPreventDefault()) && (e.isDefaultPrevented = w)), e;
  921. }
  922. function l(t) {
  923. var e,
  924. n = {
  925. originalEvent: t
  926. };
  927. for (e in t) {
  928. j.test(e) || t[e] === f || (n[e] = t[e]);
  929. }
  930. return c(n, t);
  931. }
  932. var f,
  933. h = 1,
  934. p = Array.prototype.slice,
  935. d = t.isFunction,
  936. m = function m(t) {
  937. return "string" == typeof t;
  938. },
  939. v = {},
  940. g = {},
  941. y = "onfocusin" in window,
  942. x = {
  943. focus: "focusin",
  944. blur: "focusout"
  945. },
  946. b = {
  947. mouseenter: "mouseover",
  948. mouseleave: "mouseout"
  949. };
  950. g.click = g.mousedown = g.mouseup = g.mousemove = "MouseEvents", t.event = {
  951. add: s,
  952. remove: u
  953. }, t.proxy = function (n, r) {
  954. var i = 2 in arguments && p.call(arguments, 2);
  955. if (d(n)) {
  956. var o = function o() {
  957. return n.apply(r, i ? i.concat(p.call(arguments)) : arguments);
  958. };
  959. return o._zid = e(n), o;
  960. }
  961. if (m(r)) return i ? (i.unshift(n[r], n), t.proxy.apply(null, i)) : t.proxy(n[r], n);
  962. throw new TypeError("expected function");
  963. }, t.fn.bind = function (t, e, n) {
  964. return this.on(t, e, n);
  965. }, t.fn.unbind = function (t, e) {
  966. return this.off(t, e);
  967. }, t.fn.one = function (t, e, n, r) {
  968. return this.on(t, e, n, r, 1);
  969. };
  970. var w = function w() {
  971. return !0;
  972. },
  973. E = function E() {
  974. return !1;
  975. },
  976. j = /^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,
  977. T = {
  978. preventDefault: "isDefaultPrevented",
  979. stopImmediatePropagation: "isImmediatePropagationStopped",
  980. stopPropagation: "isPropagationStopped"
  981. };
  982. t.fn.delegate = function (t, e, n) {
  983. return this.on(e, t, n);
  984. }, t.fn.undelegate = function (t, e, n) {
  985. return this.off(e, t, n);
  986. }, t.fn.live = function (e, n) {
  987. return t(document.body).delegate(this.selector, e, n), this;
  988. }, t.fn.die = function (e, n) {
  989. return t(document.body).undelegate(this.selector, e, n), this;
  990. }, t.fn.on = function (e, n, r, i, o) {
  991. var a,
  992. c,
  993. h = this;
  994. return e && !m(e) ? (t.each(e, function (t, e) {
  995. h.on(t, n, r, e, o);
  996. }), h) : (m(n) || d(i) || i === !1 || (i = r, r = n, n = f), i !== f && r !== !1 || (i = r, r = f), i === !1 && (i = E), h.each(function (f, h) {
  997. o && (a = function a(t) {
  998. return u(h, t.type, i), i.apply(this, arguments);
  999. }), n && (c = function c(e) {
  1000. var r,
  1001. o = t(e.target).closest(n, h).get(0);
  1002. if (o && o !== h) return r = t.extend(l(e), {
  1003. currentTarget: o,
  1004. liveFired: h
  1005. }), (a || i).apply(o, [r].concat(p.call(arguments, 1)));
  1006. }), s(h, e, i, r, n, c || a);
  1007. }));
  1008. }, t.fn.off = function (e, n, r) {
  1009. var i = this;
  1010. return e && !m(e) ? (t.each(e, function (t, e) {
  1011. i.off(t, n, e);
  1012. }), i) : (m(n) || d(r) || r === !1 || (r = n, n = f), r === !1 && (r = E), i.each(function () {
  1013. u(this, e, r, n);
  1014. }));
  1015. }, t.fn.trigger = function (e, n) {
  1016. return e = m(e) || t.isPlainObject(e) ? t.Event(e) : c(e), e._args = n, this.each(function () {
  1017. e.type in x && "function" == typeof this[e.type] ? this[e.type]() : "dispatchEvent" in this ? this.dispatchEvent(e) : t(this).triggerHandler(e, n);
  1018. });
  1019. }, t.fn.triggerHandler = function (e, r) {
  1020. var i, o;
  1021. return this.each(function (a, s) {
  1022. i = l(m(e) ? t.Event(e) : e), i._args = r, i.target = s, t.each(n(s, e.type || e), function (t, e) {
  1023. if (o = e.proxy(i), i.isImmediatePropagationStopped()) return !1;
  1024. });
  1025. }), o;
  1026. }, "focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function (e) {
  1027. t.fn[e] = function (t) {
  1028. return 0 in arguments ? this.bind(e, t) : this.trigger(e);
  1029. };
  1030. }), t.Event = function (t, e) {
  1031. m(t) || (e = t, t = e.type);
  1032. var n = document.createEvent(g[t] || "Events"),
  1033. r = !0;
  1034. if (e) for (var i in e) {
  1035. "bubbles" == i ? r = !!e[i] : n[i] = e[i];
  1036. }
  1037. return n.initEvent(t, r, !0), c(n);
  1038. };
  1039. }(e), function (t) {
  1040. function e(e, n, r) {
  1041. var i = t.Event(n);
  1042. return t(e).trigger(i, r), !i.isDefaultPrevented();
  1043. }
  1044. function n(t, n, r, i) {
  1045. if (t.global) return e(n || x, r, i);
  1046. }
  1047. function r(e) {
  1048. e.global && 0 === t.active++ && n(e, null, "ajaxStart");
  1049. }
  1050. function i(e) {
  1051. e.global && ! --t.active && n(e, null, "ajaxStop");
  1052. }
  1053. function o(t, e) {
  1054. var r = e.context;
  1055. return e.beforeSend.call(r, t, e) !== !1 && n(e, r, "ajaxBeforeSend", [t, e]) !== !1 && void n(e, r, "ajaxSend", [t, e]);
  1056. }
  1057. function a(t, e, r, i) {
  1058. var o = r.context,
  1059. a = "success";
  1060. r.success.call(o, t, a, e), i && i.resolveWith(o, [t, a, e]), n(r, o, "ajaxSuccess", [e, r, t]), u(a, e, r);
  1061. }
  1062. function s(t, e, r, i, o) {
  1063. var a = i.context;
  1064. i.error.call(a, r, e, t), o && o.rejectWith(a, [r, e, t]), n(i, a, "ajaxError", [r, i, t || e]), u(e, r, i);
  1065. }
  1066. function u(t, e, r) {
  1067. var o = r.context;
  1068. r.complete.call(o, e, t), n(r, o, "ajaxComplete", [e, r]), i(r);
  1069. }
  1070. function c(t, e, n) {
  1071. if (n.dataFilter == l) return t;
  1072. var r = n.context;
  1073. return n.dataFilter.call(r, t, e);
  1074. }
  1075. function l() {}
  1076. function f(t) {
  1077. return t && (t = t.split(";", 2)[0]), t && (t == T ? "html" : t == j ? "json" : w.test(t) ? "script" : E.test(t) && "xml") || "text";
  1078. }
  1079. function h(t, e) {
  1080. return "" == e ? t : (t + "&" + e).replace(/[&?]{1,2}/, "?");
  1081. }
  1082. function p(e) {
  1083. e.processData && e.data && "string" != t.type(e.data) && (e.data = t.param(e.data, e.traditional)), !e.data || e.type && "GET" != e.type.toUpperCase() && "jsonp" != e.dataType || (e.url = h(e.url, e.data), e.data = void 0);
  1084. }
  1085. function d(e, n, r, i) {
  1086. return t.isFunction(n) && (i = r, r = n, n = void 0), t.isFunction(r) || (i = r, r = void 0), {
  1087. url: e,
  1088. data: n,
  1089. success: r,
  1090. dataType: i
  1091. };
  1092. }
  1093. function m(e, n, r, i) {
  1094. var o,
  1095. a = t.isArray(n),
  1096. s = t.isPlainObject(n);
  1097. t.each(n, function (n, u) {
  1098. o = t.type(u), i && (n = r ? i : i + "[" + (s || "object" == o || "array" == o ? n : "") + "]"), !i && a ? e.add(u.name, u.value) : "array" == o || !r && "object" == o ? m(e, u, r, n) : e.add(n, u);
  1099. });
  1100. }
  1101. var v,
  1102. g,
  1103. y = +new Date(),
  1104. x = window.document,
  1105. b = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
  1106. w = /^(?:text|application)\/javascript/i,
  1107. E = /^(?:text|application)\/xml/i,
  1108. j = "application/json",
  1109. T = "text/html",
  1110. S = /^\s*$/,
  1111. C = x.createElement("a");
  1112. C.href = window.location.href, t.active = 0, t.ajaxJSONP = function (e, n) {
  1113. if (!("type" in e)) return t.ajax(e);
  1114. var r,
  1115. i,
  1116. u = e.jsonpCallback,
  1117. c = (t.isFunction(u) ? u() : u) || "Zepto" + y++,
  1118. l = x.createElement("script"),
  1119. f = window[c],
  1120. h = function h(e) {
  1121. t(l).triggerHandler("error", e || "abort");
  1122. },
  1123. p = {
  1124. abort: h
  1125. };
  1126. return n && n.promise(p), t(l).on("load error", function (o, u) {
  1127. clearTimeout(i), t(l).off().remove(), "error" != o.type && r ? a(r[0], p, e, n) : s(null, u || "error", p, e, n), window[c] = f, r && t.isFunction(f) && f(r[0]), f = r = void 0;
  1128. }), o(p, e) === !1 ? (h("abort"), p) : (window[c] = function () {
  1129. r = arguments;
  1130. }, l.src = e.url.replace(/\?(.+)=\?/, "?$1=" + c), x.head.appendChild(l), e.timeout > 0 && (i = setTimeout(function () {
  1131. h("timeout");
  1132. }, e.timeout)), p);
  1133. }, t.ajaxSettings = {
  1134. type: "GET",
  1135. beforeSend: l,
  1136. success: l,
  1137. error: l,
  1138. complete: l,
  1139. context: null,
  1140. global: !0,
  1141. xhr: function xhr() {
  1142. return new window.XMLHttpRequest();
  1143. },
  1144. accepts: {
  1145. script: "text/javascript, application/javascript, application/x-javascript",
  1146. json: j,
  1147. xml: "application/xml, text/xml",
  1148. html: T,
  1149. text: "text/plain"
  1150. },
  1151. crossDomain: !1,
  1152. timeout: 0,
  1153. processData: !0,
  1154. cache: !0,
  1155. dataFilter: l
  1156. }, t.ajax = function (e) {
  1157. var n,
  1158. i,
  1159. u = t.extend({}, e || {}),
  1160. d = t.Deferred && t.Deferred();
  1161. for (v in t.ajaxSettings) {
  1162. void 0 === u[v] && (u[v] = t.ajaxSettings[v]);
  1163. }
  1164. r(u), u.crossDomain || (n = x.createElement("a"), n.href = u.url, n.href = n.href, u.crossDomain = C.protocol + "//" + C.host != n.protocol + "//" + n.host), u.url || (u.url = window.location.toString()), (i = u.url.indexOf("#")) > -1 && (u.url = u.url.slice(0, i)), p(u);
  1165. var m = u.dataType,
  1166. y = /\?.+=\?/.test(u.url);
  1167. if (y && (m = "jsonp"), u.cache !== !1 && (e && e.cache === !0 || "script" != m && "jsonp" != m) || (u.url = h(u.url, "_=" + Date.now())), "jsonp" == m) return y || (u.url = h(u.url, u.jsonp ? u.jsonp + "=?" : u.jsonp === !1 ? "" : "callback=?")), t.ajaxJSONP(u, d);
  1168. var b,
  1169. w = u.accepts[m],
  1170. E = {},
  1171. j = function j(t, e) {
  1172. E[t.toLowerCase()] = [t, e];
  1173. },
  1174. T = /^([\w-]+:)\/\//.test(u.url) ? RegExp.$1 : window.location.protocol,
  1175. N = u.xhr(),
  1176. O = N.setRequestHeader;
  1177. if (d && d.promise(N), u.crossDomain || j("X-Requested-With", "XMLHttpRequest"), j("Accept", w || "*/*"), (w = u.mimeType || w) && (w.indexOf(",") > -1 && (w = w.split(",", 2)[0]), N.overrideMimeType && N.overrideMimeType(w)), (u.contentType || u.contentType !== !1 && u.data && "GET" != u.type.toUpperCase()) && j("Content-Type", u.contentType || "application/x-www-form-urlencoded"), u.headers) for (g in u.headers) {
  1178. j(g, u.headers[g]);
  1179. }
  1180. if (N.setRequestHeader = j, N.onreadystatechange = function () {
  1181. if (4 == N.readyState) {
  1182. N.onreadystatechange = l, clearTimeout(b);
  1183. var e,
  1184. n = !1;
  1185. if (N.status >= 200 && N.status < 300 || 304 == N.status || 0 == N.status && "file:" == T) {
  1186. if (m = m || f(u.mimeType || N.getResponseHeader("content-type")), "arraybuffer" == N.responseType || "blob" == N.responseType) e = N.response;else {
  1187. e = N.responseText;
  1188. try {
  1189. e = c(e, m, u), "script" == m ? (0, eval)(e) : "xml" == m ? e = N.responseXML : "json" == m && (e = S.test(e) ? null : t.parseJSON(e));
  1190. } catch (r) {
  1191. n = r;
  1192. }
  1193. if (n) return s(n, "parsererror", N, u, d);
  1194. }
  1195. a(e, N, u, d);
  1196. } else s(N.statusText || null, N.status ? "error" : "abort", N, u, d);
  1197. }
  1198. }, o(N, u) === !1) return N.abort(), s(null, "abort", N, u, d), N;
  1199. var P = !("async" in u) || u.async;
  1200. if (N.open(u.type, u.url, P, u.username, u.password), u.xhrFields) for (g in u.xhrFields) {
  1201. N[g] = u.xhrFields[g];
  1202. }
  1203. for (g in E) {
  1204. O.apply(N, E[g]);
  1205. }
  1206. return u.timeout > 0 && (b = setTimeout(function () {
  1207. N.onreadystatechange = l, N.abort(), s(null, "timeout", N, u, d);
  1208. }, u.timeout)), N.send(u.data ? u.data : null), N;
  1209. }, t.get = function () {
  1210. return t.ajax(d.apply(null, arguments));
  1211. }, t.post = function () {
  1212. var e = d.apply(null, arguments);
  1213. return e.type = "POST", t.ajax(e);
  1214. }, t.getJSON = function () {
  1215. var e = d.apply(null, arguments);
  1216. return e.dataType = "json", t.ajax(e);
  1217. }, t.fn.load = function (e, n, r) {
  1218. if (!this.length) return this;
  1219. var i,
  1220. o = this,
  1221. a = e.split(/\s/),
  1222. s = d(e, n, r),
  1223. u = s.success;
  1224. return a.length > 1 && (s.url = a[0], i = a[1]), s.success = function (e) {
  1225. o.html(i ? t("<div>").html(e.replace(b, "")).find(i) : e), u && u.apply(o, arguments);
  1226. }, t.ajax(s), this;
  1227. };
  1228. var N = encodeURIComponent;
  1229. t.param = function (e, n) {
  1230. var r = [];
  1231. return r.add = function (e, n) {
  1232. t.isFunction(n) && (n = n()), null == n && (n = ""), this.push(N(e) + "=" + N(n));
  1233. }, m(r, e, n), r.join("&").replace(/%20/g, "+");
  1234. };
  1235. }(e), function (t) {
  1236. t.fn.serializeArray = function () {
  1237. var e,
  1238. n,
  1239. r = [],
  1240. i = function i(t) {
  1241. return t.forEach ? t.forEach(i) : void r.push({
  1242. name: e,
  1243. value: t
  1244. });
  1245. };
  1246. return this[0] && t.each(this[0].elements, function (r, o) {
  1247. n = o.type, e = o.name, e && "fieldset" != o.nodeName.toLowerCase() && !o.disabled && "submit" != n && "reset" != n && "button" != n && "file" != n && ("radio" != n && "checkbox" != n || o.checked) && i(t(o).val());
  1248. }), r;
  1249. }, t.fn.serialize = function () {
  1250. var t = [];
  1251. return this.serializeArray().forEach(function (e) {
  1252. t.push(encodeURIComponent(e.name) + "=" + encodeURIComponent(e.value));
  1253. }), t.join("&");
  1254. }, t.fn.submit = function (e) {
  1255. if (0 in arguments) this.bind("submit", e);else if (this.length) {
  1256. var n = t.Event("submit");
  1257. this.eq(0).trigger(n), n.isDefaultPrevented() || this.get(0).submit();
  1258. }
  1259. return this;
  1260. };
  1261. }(e), function () {
  1262. try {
  1263. getComputedStyle(void 0);
  1264. } catch (t) {
  1265. var e = getComputedStyle;
  1266. window.getComputedStyle = function (t, n) {
  1267. try {
  1268. return e(t, n);
  1269. } catch (r) {
  1270. return null;
  1271. }
  1272. };
  1273. }
  1274. }(), t("zepto", e);
  1275. });
  1276. layui.define(function (i) {
  1277. i("layim-mobile", layui.v);
  1278. });
  1279. layui["layui.mobile"] || layui.config({
  1280. base: layui.cache.dir + "lay/modules/mobile/"
  1281. }).extend({
  1282. "layer-mobile": "layer-mobile",
  1283. zepto: "zepto",
  1284. "upload-mobile": "upload-mobile",
  1285. "layim-mobile": "layim-mobile"
  1286. }), layui.define(["layer-mobile", "zepto", "layim-mobile"], function (l) {
  1287. l("mobile", {
  1288. layer: layui["layer-mobile"],
  1289. layim: layui["layim-mobile"]
  1290. });
  1291. });