/*! Sea.js 2.2.1 | seajs.org/LICENSE.md */ ! function(a4, a3) { function a2(b) { return function(a) { return {}.toString.call(a) == "[object " + b + "]" } } function a1() { return aC++ } function a0(b) { return b.match(ay)[0] } function aZ(b) { for (b = b.replace(ax, "/"); b.match(aw);) { b = b.replace(aw, "/") } return b = b.replace(av, "$1/") } function aY(e) { var d = e.length - 1, f = e.charAt(d); return "#" === f ? e.substring(0, d) : ".js" === e.substring(d - 2) || e.indexOf("?") > 0 || ".css" === e .substring(d - 3) || "/" === f ? e : e + ".js" } function aX(d) { var c = aJ.alias; return c && aH(c[d]) ? c[d] : d } function aW(e) { var d = aJ.paths, f; return d && (f = e.match(au)) && aH(d[f[1]]) && (e = d[f[1]] + f[2]), e } function aV(d) { var c = aJ.vars; return c && d.indexOf("{") > -1 && (d = d.replace(at, function(b, e) { return aH(c[e]) ? c[e] : b })), d } function aU(h) { var g = aJ.map, l = h; if (g) { for (var k = 0, j = g.length; j > k; k++) { var i = g[k]; if (l = aF(i) ? i(h) || h : h.replace(i[0], i[1]), l !== h) { break } } } return l } function aT(f, e) { var j, i = f.charAt(0); if (ar.test(f)) { j = f } else { if ("." === i) { j = aZ((e ? a0(e) : aJ.cwd) + f) } else { if ("/" === i) { var h = aJ.cwd.match(aq); j = h ? h[0] + f.substring(1) : f } else { j = aJ.base + f } } } return 0 === j.indexOf("//") && (j = location.protocol + j), j } function aS(e, d) { if (!e) { return "" } e = aX(e), e = aW(e), e = aV(e), e = aY(e); var f = aT(e, d); return f = aU(f) } function aR(b) { return b.hasAttribute ? b.src : b.getAttribute("src", 4) } function aQ(h, g, l) { var k = ai.test(h), j = ap.createElement(k ? "link" : "script"); if (l) { var i = aF(l) ? l(h) : l; i && (j.charset = i) } aP(j, g, k, h), k ? (j.rel = "stylesheet", j.href = h) : (j.async = !0, j.src = h), ah = j, aj ? ak .insertBefore(j, aj) : ak.appendChild(j), ah = null } function aP(b, l, k, j) { function i() { b.onload = b.onerror = b.onreadystatechange = null, k || aJ.debug || ak.removeChild(b), b = null, l() } var h = "onload" in b; return !k || !af && h ? (h ? (b.onload = i, b.onerror = function() { az("error", { uri: j, node: b }), i() }) : b.onreadystatechange = function() { /loaded|complete/.test(b.readyState) && i() }, a3) : (setTimeout(function() { aO(b, l) }, 1), a3) } function aO(g, f) { var j = g.sheet, i; if (af) { j && (i = !0) } else { if (j) { try { j.cssRules && (i = !0) } catch (h) { "NS_ERROR_DOM_SECURITY_ERR" === h.name && (i = !0) } } } setTimeout(function() { i ? f() : aO(g, f) }, 20) } function aN() { if (ah) { return ah } if (ag && "interactive" === ag.readyState) { return ag } for (var e = ak.getElementsByTagName("script"), d = e.length - 1; d >= 0; d--) { var f = e[d]; if ("interactive" === f.readyState) { return ag = f } } } function aM(d) { var c = []; return d.replace(ad, "").replace(ae, function(b, f, e) { e && c.push(e) }), c } function aL(d, c) { this.uri = d, this.dependencies = c || [], this.exports = null, this.status = 0, this._waitings = {}, this ._remain = 0 } if (!a4.seajs) { var aK = a4.seajs = { version: "2.2.1" }, aJ = aK.data = {}, aI = a2("Object"), aH = a2("String"), aG = Array.isArray || a2("Array"), aF = a2("Function"), aC = 0, aA = aJ.events = {}; aK.on = function(e, d) { var f = aA[e] || (aA[e] = []); return f.push(d), aK }, aK.off = function(f, e) { if (!f && !e) { return aA = aJ.events = {}, aK } var h = aA[f]; if (h) { if (e) { for (var g = h.length - 1; g >= 0; g--) { h[g] === e && h.splice(g, 1) } } else { delete aA[f] } } return aK }; var az = aK.emit = function(f, e) { var h = aA[f], g; if (h) { for (h = h.slice(); g = h.shift();) { g(e) } } return aK }, ay = /[^?#]*\//, ax = /\/\.\//g, aw = /\/[^/]+\/\.\.\//, av = /([^:/])\/\//g, au = /^([^/:]+)(\/.+)$/, at = /{([^{]+)}/g, ar = /^\/\/.|:\//, aq = /^.*?\/\/.*?\//, ap = document, ao = a0(ap.URL), an = ap.scripts, am = ap.getElementById("seajsnode") || an[an.length - 1], al = a0(aR(am) || ao); aK.resolve = aS; var ak = ap.head || ap.getElementsByTagName("head")[0] || ap.documentElement, aj = ak.getElementsByTagName("base")[0], ai = /\.css(?:\?|$)/i, ah, ag, af = +navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/(\d+).*/, "$1") < 536; aK.request = aQ; var ae = /"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|\/\*[\S\s]*?\*\/|\/(?:\\\/|[^\/\r\n])+\/(?=[^\/])|\/\/.*|\.\s*require|(?:^|[^$])\brequire\s*\(\s*(["'])(.+?)\1\s*\)/g, ad = /\\\\/g, ac = aK.cache = {}, aa, aD = {}, a6 = {}, aB = {}, a5 = aL.STATUS = { FETCHING: 1, SAVED: 2, LOADING: 3, LOADED: 4, EXECUTING: 5, EXECUTED: 6 }; aL.prototype.resolve = function() { for (var g = this, f = g.dependencies, j = [], i = 0, h = f.length; h > i; i++) { j[i] = aL.resolve(f[i], g.uri) } return j }, aL.prototype.load = function() { var b = this; if (!(b.status >= a5.LOADING)) { b.status = a5.LOADING; var n = b.resolve(); az("load", n); for (var m = b._remain = n.length, l, k = 0; m > k; k++) { l = aL.get(n[k]), l.status < a5.LOADED ? l._waitings[b.uri] = (l._waitings[b.uri] || 0) + 1 : b ._remain-- } if (0 === b._remain) { return b.onload(), a3 } var j = {}; for (k = 0; m > k; k++) { l = ac[n[k]], l.status < a5.FETCHING ? l.fetch(j) : l.status === a5.SAVED && l.load() } for (var i in j) { j.hasOwnProperty(i) && j[i]() } } }, aL.prototype.onload = function() { var f = this; f.status = a5.LOADED, f.callback && f.callback(); var e = f._waitings, h, g; for (h in e) { e.hasOwnProperty(h) && (g = ac[h], g._remain -= e[h], 0 === g._remain && g.onload()) } delete f._waitings, delete f._remain }, aL.prototype.fetch = function(b) { function n() { aK.request(j.requestUri, j.onRequest, j.charset) } function m() { delete aD[i], a6[i] = !0, aa && (aL.save(k, aa), aa = null); var d, c = aB[i]; for (delete aB[i]; d = c.shift();) { d.load() } } var l = this, k = l.uri; l.status = a5.FETCHING; var j = { uri: k }; az("fetch", j); var i = j.requestUri || k; return !i || a6[i] ? (l.load(), a3) : aD[i] ? (aB[i].push(l), a3) : (aD[i] = !0, aB[i] = [l], az( "request", j = { uri: k, requestUri: i, onRequest: m, charset: aJ.charset }), j.requested || (b ? b[j.requestUri] = n : n()), a3) }, aL.prototype.exec = function() { function b(a) { return aL.get(b.resolve(a)).exec() } var j = this; if (j.status >= a5.EXECUTING) { return j.exports } j.status = a5.EXECUTING; var i = j.uri; b.resolve = function(c) { return aL.resolve(c, i) }, b.async = function(a, e) { return aL.use(a, e, i + "_async_" + a1()), b }; var h = j.factory, d = aF(h) ? h(b, j.exports = {}, j) : h; return d === a3 && (d = j.exports), delete j.factory, j.exports = d, j.status = a5.EXECUTED, az("exec", j), d }, aL.resolve = function(e, d) { var f = { id: e, refUri: d }; return az("resolve", f), f.uri || aK.resolve(f.id, d) }, aL.define = function(b, l, k) { var j = arguments.length; 1 === j ? (k = b, b = a3) : 2 === j && (k = l, aG(b) ? (l = b, b = a3) : l = a3), !aG(l) && aF(k) && ( l = aM("" + k)); var i = { id: b, uri: aL.resolve(b), deps: l, factory: k }; if (!i.uri && ap.attachEvent) { var h = aN(); h && (i.uri = h.src) } az("define", i), i.uri ? aL.save(i.uri, i) : aa = i }, aL.save = function(e, d) { var f = aL.get(e); f.status < a5.SAVED && (f.id = d.id || e, f.dependencies = d.deps || [], f.factory = d.factory, f .status = a5.SAVED) }, aL.get = function(d, c) { return ac[d] || (ac[d] = new aL(d, c)) }, aL.use = function(a, h, g) { var f = aL.get(g, aG(a) ? a : [a]); f.callback = function() { for (var c = [], j = f.resolve(), i = 0, e = j.length; e > i; i++) { c[i] = ac[j[i]].exec() } h && h.apply(a4, c), delete f.callback }, f.load() }, aL.preload = function(e) { var d = aJ.preload, f = d.length; f ? aL.use(d, function() { d.splice(0, f), aL.preload(e) }, aJ.cwd + "_preload_" + a1()) : e() }, aK.use = function(d, c) { return aL.preload(function() { aL.use(d, c, aJ.cwd + "_use_" + a1()) }), aK }, aL.define.cmd = {}, a4.define = aL.define, aK.Module = aL, aJ.fetchedList = a6, aJ.cid = a1, aK.require = function(d) { var c = aL.get(aL.resolve(d)); return c.status < a5.EXECUTING && (c.onload(), c.exec()), c.exports }; var aE = /^(.+?\/)(\?\?)?(seajs\/)+/; aJ.base = (al.match(aE) || ["", al])[1], aJ.dir = al, aJ.cwd = ao, aJ.charset = "utf-8", aJ.preload = function() { var d = [], c = location.search.replace(/(seajs-\w+)(&|$)/g, "$1=1$2"); return c += " " + ap.cookie, c.replace(/(seajs-\w+)=1/g, function(a, e) { d.push(e) }), d }(), aK.config = function(g) { for (var f in g) { var j = g[f], i = aJ[f]; if (i && aI(i)) { for (var h in j) { i[h] = j[h] } } else { aG(i) ? j = i.concat(j) : "base" === f && ("/" !== j.slice(-1) && (j += "/"), j = aT(j)), aJ[ f] = j } } return az("config", g), aK } } }(this);; /*! jQuery v3.6.3 | (c) OpenJS Foundation and other contributors | jquery.org/license */ !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,y=n.hasOwnProperty,a=y.toString,l=a.call(Object),v={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},S=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||S).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.3",E=function(e,t){return new E.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,S)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&v(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!y||!y.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ve(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=E)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{if(d.cssSupportsSelector&&!CSS.supports("selector(:is("+c+"))"))throw new Error;return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===E&&e.removeAttribute("id")}}}return g(t.replace(B,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[E]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ye(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ve(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,S=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.cssSupportsSelector=ce(function(){return CSS.supports("selector(*)")&&C.querySelectorAll(":is(:jqfake)")&&!CSS.supports("selector(:is(*,:jqfake))")}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=E,!C.getElementsByName||!C.getElementsByName(E).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&S){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&S){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&S)return t.getElementsByClassName(e)},s=[],y=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||y.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+E+"-]").length||y.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||y.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||y.push(":checked"),e.querySelectorAll("a#"+E+"+*").length||y.push(".#.+[+~]"),e.querySelectorAll("\\\f"),y.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");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"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),d.cssSupportsSelector||y.push(":has"),y=y.length&&new RegExp(y.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),v=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType&&e.documentElement||e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&v(p,e)?-1:t==C||t.ownerDocument==p&&v(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&S&&!N[t+" "]&&(!s||!s.test(t))&&(!y||!y.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.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]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(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))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?E.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?E.grep(e,function(e){return e===n!==r}):"string"!=typeof n?E.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(E.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof E?t[0]:t,E.merge(this,E.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:S,!0)),N.test(r[1])&&E.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=S.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(E):E.makeArray(e,this)}).prototype=E.fn,D=E(S);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}E.fn.extend({has:function(e){var t=E(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=S.createDocumentFragment().appendChild(S.createElement("div")),(fe=S.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),v.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="",v.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="",v.option=!!ce.lastChild;var ge={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ye(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?E.merge([e],n):n}function ve(e,t){for(var n=0,r=e.length;n",""]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&E(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n
",2===Ut.childNodes.length),E.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((r=(t=S.implementation.createHTMLDocument("")).createElement("base")).href=S.location.href,t.head.appendChild(r)):t=S),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&E(o).remove(),E.merge([],i.childNodes)));var r,i,o},E.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(E.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},E.expr.pseudos.animated=function(t){return E.grep(E.timers,function(e){return t===e.elem}).length},E.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=E.css(e,"position"),c=E(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=E.css(e,"top"),u=E.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,E.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},E.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){E.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===E.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===E.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=E(e).offset()).top+=E.css(e,"borderTopWidth",!0),i.left+=E.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-E.css(r,"marginTop",!0),left:t.left-i.left-E.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===E.css(e,"position"))e=e.offsetParent;return e||re})}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;E.fn[t]=function(e){return B(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),E.each(["top","left"],function(e,n){E.cssHooks[n]=_e(v.pixelPosition,function(e,t){if(t)return t=Be(e,n),Pe.test(t)?E(e).position()[n]+"px":t})}),E.each({Height:"height",Width:"width"},function(a,s){E.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){E.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return B(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?E.css(e,t,i):E.style(e,t,n,i)},s,n?e:void 0,n)}})}),E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){E.fn[t]=function(e){return this.on(t,e)}}),E.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),E.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){E.fn[n]=function(e,t){return 0 1) { b.el.slidesjs({ width: b.width, height: b.height, navigation: false, play: { auto: !b.stop, interval: 5000 }, callback: { loaded: function() { if (!b.loaded) { return } this.stop(true); var d = this; globalData.slidePlay = function(e) { d.play(e) } } } }) } }) }) }; Util.dropdown = function(a) { if (!$(".js-activated").length) { return } seajs.use("dropdown", function() { for (var c in Util.url.params) { var b = $("li[data-key='" + c + "']").filter("li[data-select='" + Util.url.params[c] + "']"); if (b) { b.addClass("dropdown-menu-item-current"); b.parents(".dropdown").find(".dropdown-toggle-text").html(b.find("a").html()) } } $(".js-activated").dropdownHover({ select: function(d, e) { d.parents(".dropdown").find(".dropdown-toggle-text").html(d.find("a").html()); if (d.parent().hasClass("dropdown-type-reload")) { Util.url.set(d.attr("data-key"), d.attr("data-select")); window.location.href = Util.url.getUrl() } else { if (d.parent().hasClass("dropdown-type-setKey")) { a[d.attr("data-key")] = d.attr("data-select") } } } }) }) }; Util.tabs = function(a) { if (!$(".J-tabs").length) { return } seajs.use("ui", function() { $(".J-tabs").each(function(c, b) { $(b).tabs({ active: a || 0, event: "mouseover" }) }) }) }; Util.fixed = function(c, b) { if (!c[0]) { return } var a = $(c).offset().top; $.event.add(window, "scroll", function() { var d = $(window).scrollTop(); if (d > a) { $(c).css("position", "fixed"); $(c).css("top", "0px"); $(c).css("z-index", "999"); b && b.start && b.start() } else { $(c).css("position", "static"); b && b.end && b.end() } }) }; Util.scrollTo = function(c, a) { if (!$(".J-scroll").length) { return } var b = a || 0; $(".J-scroll").click(function(e) { e.preventDefault(); var d = $(this); if ($("#" + d.attr("data-id")).length) { $("html,body").animate({ scrollTop: $("#" + d.attr("data-id")).position().top - b }, 500, function() { c && c(d) }) } else { window.open(d.attr("data-href")) } }) }; Util.lazyload = function() { if (!$(".J-lazyload").length) { return } seajs.use("lazyload", function() { $(".J-lazyload").lazyload({ threshold: 300, data_attribute: "src", placeholder: "http://files.0938.cn/images/default.jpg" }) }) }; Util.getRequestId = function() { return Util.get_url_para(window.location, "_no").substr(4) }; Util.placeholder = { _check: function() { return "placeholder" in document.createElement("input") }, init: function() { if (!this._check()) { this.fix() } }, fix: function() { if (!$(":input[placeholder]").length) { return } $(":input[placeholder]").each(function(e, b) { var k = $(this), c = k.attr("placeholder"); if (k.css("display") != "none") { k.wrap($("
").css({ position: "relative", zoom: "1", border: "none", background: "none", padding: "none", margin: "none" })); var i = k.position(), d = k.css("height"), f = k.css("padding"), a = k.css("width"), j = k.css("font-size"); var g = $("").text(c).css({ position: "absolute", left: i.left, fontSize: j, top: i.top, width: a, overflow: "hidden", height: d, lineHeight: d, padding: f, color: "#aaa" }).appendTo(k.parent()); k.focusin(function(h) { g.hide() }).focusout(function(h) { if (!k.val()) { g.show() } }); g.click(function(h) { g.hide(); k.focus() }) } }) } }; Util.rate = function() { if (!$(".J-rate").length) { return } seajs.use("rate", function() { $(".J-rate").jRating({ bigStarsPath: "http://files.0938.cn/images/comment-star.png", sendPath: "/ashx/house/comment.ashx", showRateInfo: false, mouseleave: function() { $(this).parent().find(".tip b").html("0") }, mousemove: function(a) { $(this).parent().find(".tip b").html(a) }, sendData: function(d, c, e) { var a = {}; a["_" + c] = e; var b = Util.getCookie("_id_" + Util.getRequestId()); a._id = b || 0; a._content = " "; a._hn_id = Util.getRequestId(); return a }, onSuccess: function(e, k, j, d) { var b = $("#" + k), f = b.find(".J_per_score"), h = parseFloat(f.html()), g = b.find(".J_per_people"), c = parseInt(g.html()), i = b.find(".per em"); g.html(c + 1); var a = ((h * c + j) / (c + 1)).toFixed(2); f.html(a); a = a.toString() + "%"; i.animate({ width: a }); Util.addCookie("_id_" + Util.getRequestId(), d, 0) }, onError: function() { alert("猫炉鈥灻ニ嗏�犆ヂぢ泵绰ッ寂捗访┾�÷嵜︹�撀懊モ�犅嵜��") } }) }) }; Util.ticker = function() { if (!$("#ticker")) { return } seajs.use("ticker", function() { $("#ticker").vTicker({ speed: 500, showItems: 2 }) }) }; Util.gallery = function() { seajs.use("gallery", function() {}); Util.fancyboxGallery() }; Util.url = { ourl: window.location.href, href: "", params: {}, paramsIsNULL: false, jing: "", defaultValue: "all", init: function() { var e = this.ourl; var a = e.indexOf("#"); if (a > 0) { this.jing = e.substr(a); e = e.substring(0, a) } a = e.indexOf("?"); if (a > 0) { this.href = e.substring(0, a); e = e.substr(a + 1); var d = e.split("&"); for (var b = 0; b < d.length; b++) { var c = d[b].split("="); this.params[c[0]] = c[1] } } else { this.href = this.ourl; this.params = {}; this.paramsIsNULL = true } }, set: function(a, b) { this.params[a] = b }, getUrl: function(e, d) { var c = e || this.href; var a = []; for (var b in this.params) { if (this.params[b]) { if (!(d && (b != d))) { a.push(b + "=" + this.params[b]) } } } if (a.length > 0) { c += "?" + a.join("&") } if (this.jing.length > 0) { c += this.jing } return c }, remove: function(a) { this.params[a] = undefined }, get: function(a) { return this.params[a] }, filter: function() { var a = this; this.init(); for (var b in this.params) { $(".J-filter[filter-key='" + b + "'][filter-value='" + this.params[b] + "']").addClass("current") } $(".J-filter[filter-value='" + this.defaultValue + "']").each(function(d, c) { !$(c).parent().children(".current").length && $(c).addClass("current") }); $(document).delegate(".J-filter", "click", function(g) { g.preventDefault(); var f = $(this).attr("filter-key"), h = $(this).attr("filter-value"); a.set(f, h); var e = "", c = $(this).attr("href") ? $(this).attr("href") : $(this).children("a").attr("href"); if (c.indexOf(".aspx") != -1) { var d = c.indexOf("?"); if (d > 0) { c = c.substring(0, d) } if (f.indexOf("subnav") != -1) { e = a.getUrl(c) } else { e = a.getUrl(c, f) } } else { e = a.getUrl() } window.location.href = e }) } }; Util.nav = function(c) { if (!$(".J-nav").length || $(".J-nav .current").length) { return } var b = c || window.location.pathname; var d = $('.J-nav a[href*="' + b + '"]'); if (!d.length) { var a = b.split("/"); b = "/" + a[1] + "/" + a[2]; d = $('.J-nav a[href*="' + b + '"]') } if (!d.length) { b = "/" + a[1]; d = $('.J-nav a[href*="' + b + '"]') } d.length && $(d.parent()[0]).addClass("current") }; Util.fancybox = function(a) { seajs.use(["fancybox_css", "fancybox"], function() { $.fancybox.open(a) }) }; Util.fancyboxGallery = function() { if (!$(".fancybox-thumbs").length) { return } seajs.use(["fancybox_css", "fancybox"], function() { $(".fancybox-thumbs").fancybox({ prevEffect: "none", nextEffect: "none", helpers: { thumbs: { width: 50, height: 50 } } }) }) }; Util.hoverBox = function(a) { if (!$(".J-hoverbox")) { return } $(".J-hoverbox").each(function() { var c = $("#" + $(this).attr("data-hover")); var b = $(this).position(); $(this).hover(function() { c.css("left", b.left + $(this).width()).css("top", b.top); if (!(a && !a($(this), c))) { c.show() } }, function() { c.hide() }) }) }; Util.hoverInfo = function() { if (!$(".hover-info").length) { return } $(".hover-info").hover(function(a) { console.log(a.currentTarget); setTimeout(function() { $(this).find(".hover-info-box").animate({ opacity: 1, easing: "easein" }, 1000) }, 100) }, function() { setTimeout(function() { $(this).find(".hover-info-box").animate({ opacity: 0, easing: "easeout" }, 500) }, 100) }) }; Util.hover = function(a) { if (!$(".J-hover").length) { return } $(".J-hover").each(function() { $(this).hover(function() { if (!(a && !a($(this)))) { $(this).addClass("hover") } }, function() { $(this).removeClass("hover") }) }) }; Util.galleryToImages = function() { var b = $(".ser-detail-foot-cnt"); if (!b.length) { return } var c = $(".g_img .img_big img"); if (!c.length) { return } var a = ""; c.each(function(f, d) { var e = $(d).parent().attr("href"); a += '' }); $(a).appendTo(b) }; Util.decimal = function(c) { var a = 0, b = []; while (c != 0) { if (c % 2 == 1) { b.push(Math.pow(2, a)) } a += 1; c >>>= 1 } return b }; Util.setLast = function() { if (!$(".J-last").length) { return } $(".J-last").each(function(b, a) { $(a).children().last().addClass("last") }) }; Util.map = function() { if (!$(".J-map").length) { return } $(".J-map").click(function(b) { b.preventDefault(); var a = $(this).attr("href"); Util.xbox({ width: "740px", height: "370px", src: a, callback: function() { return true } }) }) }; Util.bankCombo = function() { if (!$(".ui-list-bank-icon").length) { return } var c = "https://i.alipayobjects.com/combo.png?d=cashier&t=", a = []; $(".ui-list-bank-icon").each(function(e, d) { d = $(d); d.css({ "background-position": "0 " + (-e * 36) + "px" }); a.push(d.attr("class").split(" ")[2]) }); c += a.join(","); $("").appendTo("head"); var b = $(".bank-current"); $(".J-bank").click(function(d) { b.removeClass("bank-current"); $(this).find(".J-icon").addClass("bank-current"); $(this).find(".J-check")[0].checked = true; b = $(this).find(".J-icon") }) }; Util.select = function(a, c) { var b = a || "welfare"; Util.url.params[b] && $(Util.decimal(parseInt(Util.url.params[b]))).each(function(e, d) { $(".J-select a[data-value=" + d + "]").parent().addClass("select") }); $(document).delegate(".J-select", "click", function(g) { g.preventDefault(); $(this).hasClass("select") ? $(this).removeClass("select") : $(this).addClass("select"); var f = 0; $(".select").each(function(h, e) { f += parseInt($(e).attr("data-value")) || parseInt($(e).children("a").attr( "data-value")) }); if (f) { Util.url.set(b, f) } else { delete Util.url.params[b] } var d = Util.url.getUrl(); if (!(c && !c(d))) { window.location.href = d } }) }; Util.ajaxForm = function(b) { var a = $("#btn_submit"); if (!b.url) { return } if (a && b.stopOnError) { a.addClass("btn-disabled"); a.attr("disabled", "disabled") } var c = (new Date()).getTime(); if (b.url.indexOf("?") != -1) { _url = b.url + "&stamp=" + c } else { _url = b.url + "?stamp=" + c } $.ajax({ type: "post", url: _url, data: b.data, beforeSend: function() { b.beforeSend && b.beforeSend() }, success: function(d) { if (globalData.redirectUrl) { window.location.href = globalData.redirectUrl } else { b.success && b.success.call(this, d) } }, complete: function() { b.complete && b.complete(); a && a.removeAttr("disabled"); a && a.removeClass("btn-disabled") } }) }; var M_COUNT_DOWN, TIME_ID; Util.sendcode = function(a) { a.beforeSendCode && a.beforeSendCode(a); M_COUNT_DOWN = 60; var c = a.mobile || $('input[validate-type="mobile"]').val(); var b = a.template || "忙鈥扳�姑ε撀好っ�"; if (!c) { return } a.sendBtn && resendcode.call(a.sendBtn); Util.ajaxForm($.extend({ url: a.url }, a)) }; function resendcode() { var a = this; this.attr("disabled", "true"); this.html("(" + M_COUNT_DOWN + "莽搂鈥櫭ヂ惻�)茅鈥÷嵜︹�撀懊ㄅ铰访ヂ忊��"); if (M_COUNT_DOWN > 0) { M_COUNT_DOWN--; TIME_ID = window.setTimeout(function() { resendcode.call(a) }, 1000) } else { window.clearTimeout(TIME_ID); this.val("猫沤路氓聫鈥撁︹�扳�姑ε撀好÷っ� 聛"); this.removeAttr("disabled") } } var _current_click = null; $(document).ready(function() { $("form").click(function(a) { _current_click = a.target }) }); Util.getClick = function() { return _current_click }; Util.autoComplete = function(a) { if (!$(".J-autoComplete").length) { return } seajs.use(["common/ui/jquery-ui.min.css", "common/ui/jquery-ui.min.js"], function() { $(".J-autoComplete").each(function(c, d) { var b = $(d); b.autocomplete({ source: function(f, e) { $.ajax({ url: b.attr("data-url"), data: { name: f.term }, dataType: "json", success: function(h, i, g) { e($.map(h, function(k, j) { return { label: k.name, value: k.name, _value: k.value } })) } }) }, delay: 300, select: function(e, f) { a.select && a.select(e, f) } }) }) }) }; Util.eachSlider = function(g) { var c = g.slideCnt, d = g.slideItems, f = g.left, b = g.right, e = g.current || 0; var a = function(h) { f.show() && b.show(); if (!d[h]) { return } var i = 0 - $(d[h]).position().left; c.animate({ left: i }, { duration: 500 }) }; f.click(function(h) { h.preventDefault(); if (e > 0) { e--; a(e) } }); b.click(function(h) { h.preventDefault(); if (e < d.length - 1) { e++; a(e) } }) }; Util.adExpansion = function() { var a = $(".J-ad-expansion"); if (!a.length) { return } a.hover(function() { $(this).animate({ opacity: 1, width: 1000, left: 0 }, 1000) }, function() { $(this).fadeOut() }) }; Util.toUtf8 = function(e) { var b, d, a, f; b = ""; a = e.length; for (d = 0; d < a; d++) { f = e.charCodeAt(d); if ((f >= 1) && (f <= 127)) { b += e.charAt(d) } else { if (f > 2047) { b += String.fromCharCode(224 | ((f >> 12) & 15)); b += String.fromCharCode(128 | ((f >> 6) & 63)); b += String.fromCharCode(128 | ((f >> 0) & 63)) } else { b += String.fromCharCode(192 | ((f >> 6) & 31)); b += String.fromCharCode(128 | ((f >> 0) & 63)) } } } return b }; Util.xbox = function(a) { seajs.use(["laycss", "lay"], function() { $.layer({ type: 2, border: [5, 0.5, "#666"], shadeClose: true, title: a.title || "", area: [a.width || "500px", a.height || "260px"], iframe: { src: a.src }, end: function() { a.callback && a.callback() } }) }) }; Util.qrcode = function(a) { if (!$(".J-qrcode").length) { return } seajs.use("qrcode", function() { $(".J-qrcode").each(function(b, c) { c = $(c); var d = a(c.attr("data-text")); if (!d) { return } c.qrcode({ render: "table", width: c.attr("data-width") || 150, height: c.attr("data-width") || 150, text: d }) }) }) }; Util.rotate = function(e, h) { if (!e) { return } var a = "0px", d = e.height; if (!document.body.filters) { if (Math.abs(h / 90 % 2)) { console.log("width:" + e.width); d = e.width; a = (e.width - e.height) / 2 + "px" } $(e).parent().css("height", d); e.style.MozTransform = "translate(0px, " + a + ") rotate(" + h + "deg)"; e.style.webkitTransform = "translate(0px, " + a + ") rotate(" + h + "deg)"; e.style.msTransform = "translate(0px, " + a + ") rotate(" + h + "deg)"; e.style.OTransform = "translate(0px, " + a + ") rotate(" + h + "deg)"; e.style.transform = "translate(0px, " + a + ") rotate(" + h + "deg)" } else { if (h >= 0) { h = Math.PI * h / 180 } else { h = Math.PI * (360 + h) / 180 } var c = Math.cos(h), b = -Math.sin(h), g = Math.sin(h), f = Math.cos(h); $(e).parent().css("height", d); e.style.filter = "progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11='" + c + "', M12='" + b + "', M21='" + g + "', M22='" + f + "')" } }; Util.promotion = function(b) { var a = $(".content-extend .col2_r"); if (a.length && !a.hasClass("except")) { $.get("/ashx/promotion.ashx", { _module: b, stamp: (new Date()).getTime() }).done(function(c) { seajs.use("http://files.0938.cn/css/common/popularize.css"); var d = parseInt($(".content-extend .col2_l")[0] ? $(".content-extend .col2_l").css( "margin-top") : 0) + parseInt($(".mainbar1 .row1")[0] ? $(".mainbar1 .row1").css( "height") : 0); a.css("margin-top", d + "px"); a.html(c) }) } }; Util.validate = { base: {}, getField: function(a) { return this.defaultFields[a] }, setField: function(a, b) { this.defaultFields[a] = b }, set: function(a, b) { this.base[a] = b }, get: function(a) { return this.base[a] }, defaultFields: { username: { rule: "required;", msg: { required: "忙鈥毬克溍β猜∶ε撯�懊锯�溍モ�βッ绰γλ喡访ヂ惵�" } }, usernameExist: { rule: "required;username;", tip: "氓聫陋猫茠陆莽鈥澛泵ヂ�斆β嵜b偓聛忙鈥⒙懊ヂ�斆b偓聛盲赂鈥姑ニ嗏�櫭郝棵モ�櫯捗ぢ嘎︹�撯�∶烩�灻λ喡惷寂捗ぢ宦ッぢ嘎︹�撯�∶λ嗏�撁ヂ�斆β嵜ヂ尖偓氓陇麓茂录艗茅鈥⒙棵ヂ郝γぢ嘎�2-16盲陆聧", ok: "", dataFilter: function(a) { if (a == "True") { return "莽鈥澛λ喡访ヂ惵嵜ヂ仿裁ヂ溍ヅ撀�" } else { return "" } }, msg: { required: "忙鈥毬克溍β猜∶ε撯�懊锯�溍モ�βッр�澛λ喡访ヂ惵�" } }, password: { rule: "required;password", msg: { required: "忙鈥毬克溍β猜∶ε撯�懊锯�溍モ�βッヂ�犆� 聛" } }, oldpwd: { rule: "氓炉鈥犆� 聛茂录拧required;password", tip: "猫炉路猫戮鈥溍モ�βッヅ脚该ヂр�姑ヂ�犆� 聛", ok: "", msg: { required: "氓沤鸥氓搂鈥姑ヂ�犆� 聛盲赂聧猫茠陆盲赂潞莽漏潞!" } }, newpwd: { rule: "氓炉鈥犆� 聛茂录拧required;length[6~];password;strength", tip: "氓炉鈥犆� 聛茅艙鈧р�澛�6-16盲赂陋氓颅鈥斆β嵜b偓聛忙鈥⒙懊ヂ�斆モ�櫯捗γヂ徛访烩�灻λ喡惷寂捗ヅ捖好ニ嗏�犆ヂぢヂ奥徝モ�犫劉", ok: "", msg: { required: "氓炉鈥犆� 聛盲赂聧猫茠陆盲赂潞莽漏潞!", length: "氓炉鈥犆� 聛忙艙鈧ヂ扳�樏ぢ嘎�6盲陆聧茫鈧��" } }, repwd: { rule: "required;match(#txt_newpwd);", tip: "猫炉路氓鈥犅嵜β∶锯�溍モ�βッ︹�毬♀�灻ヂ�犆� 聛", ok: "", msg: { required: "氓炉鈥犆� 聛盲赂聧盲赂鈧ㄢ�÷疵寂捗访モ�犅嵜β∶÷�", match: "氓炉鈥犆� 聛盲赂聧盲赂鈧ㄢ�÷疵寂捗访モ�犅嵜β∶÷�" } }, mobile: { rule: "required;mobile;", dataFilter: function(a) { if (a == "True") { return "猫炉楼忙鈥扳�姑ε撀好ヂ徛访� 聛氓路虏猫垄芦猫庐陇猫炉聛" } else { return "" } }, ok: "" }, mobileNotExist: { rule: "required;mobile;", dataFilter: function(a) { if (a == "False") { return "猫炉楼忙鈥扳�姑ε撀好ヂ徛访� 聛氓掳拧忙艙陋忙鲁篓氓鈥犈�" } else { return "" } }, ok: "" }, mobileExist: { rule: "required;mobile;", tip: "猫炉路猫戮鈥溍モ�βッ︹�毬♀�灻︹�扳�姑ε撀好ヂ徛访� 聛", ok: "", dataFilter: function(a) { if (a == "True") { return "忙鈥扳�姑ε撀好ヂ徛访ヂ仿裁ヂ溍ヅ撀�" } else { return "" } }, msg: { required: "猫炉路猫戮鈥溍モ�βッ︹�毬♀�灻︹�扳�姑ε撀好ヂ徛访� 聛" } }, company: { rule: "required;length[2~50];", tip: "猫炉路氓隆芦氓鈥犫劉猫聬楼盲赂拧忙鈥奥р�βぢ概犆┞澛⒚♀�灻ヂ惵嵜�", ok: "", msg: { required: "2-50盲赂陋氓颅鈥斆寂捗ヂ徛ㄆ捖矫ヂ÷β扁�懊ヂ��,氓颅鈥斆β�,忙鈥⒙懊ヂ�斆ヂ徟犆︹�孤ヂ徛�" } }, companyExist: { rule: "required;length[2~50];", tip: "猫炉路氓隆芦氓鈥犫劉猫聬楼盲赂拧忙鈥奥р�βぢ概犆┞澛⒚♀�灻ヂ惵嵜�", ok: "", dataFilter: function(a) { if (a == "True") { return "盲录聛盲赂拧氓路虏氓颅藴氓艙篓" } else { return "" } }, msg: { required: "猫炉路猫戮鈥溍モ�βッぢ悸伱ぢ概∶ヂ惵嵜�" } }, code: { rule: "required;", ok: "", dataFilter: function(a) { if (a == "True") { return "" } else { return "忙鈥扳�姑ε撀好÷っ� 聛茅鈥濃劉猫炉炉" } } }, cardpic: { rule: "mychecked", ok: "", msg: { mychecked: "猫炉路盲赂艩盲录 猫潞芦盲禄陆猫炉聛" } }, cardid: { rule: "required; cardid;", ok: "", dataFilter: function(a) { if (a == "True") { return "猫潞芦盲禄陆猫炉聛氓聫路氓路虏莽禄聫猫垄芦猫庐陇猫炉聛" } else { return "" } } }, number: { rule: "required;integer[+];" }, no: { rule: "required;", ok: "" }, buinessName: { rule: "required;", ok: "" }, legal: { rule: "required;", ok: "" }, licensePic: { rule: "mychecked", ok: "", msg: { mychecked: "猫炉路盲赂艩盲录 猫聬楼盲赂拧忙鈥奥р�β�" } }, phone: "required;", qq: "qq", truename: "chinese", birth: "required", email: { rule: "required;email;", tip: "猫炉路猫戮鈥溍モ�βッр�澛得ヂ惷┾�毬�", ok: "", dataFilter: function(a) { if (a == "True") { return "忙艩卤忙颅鈥�,猫炉楼茅鈥毬泵ヂ仿裁宦徝⒙β陈モ�犈捗库��" } else { return "" } }, msg: { required: "忙鈥毬克溍β猜∶ε撯�懊锯�溍モ�βッр�澛得ヂ惷┾�毬�" } }, emailExist: { rule: "required;email;", tip: "猫炉路猫戮鈥溍モ�βッε撯�懊︹�⑺喢♀�灻р�澛得ヂ惷┾�毬泵寂捗ヂ徛р�澛ぢ号矫р劉禄氓陆鈥⒚モ�櫯捗︹�奥久モ�号久ヂ�犆� 聛", ok: "", dataFilter: function(a) { if (a == "True") { return "茅鈥毬泵ヂ仿裁ヂ溍ヅ撀�" } else { return "" } }, msg: { required: "忙鈥毬克溍β猜∶ε撯�懊锯�溍モ�βッр�澛得ヂ惷┾�毬�", remote: "莽鈥澛得ヂ惷┾�毬泵ヂ仿裁ヂ溍ヅ撀�" } }, agree: { rule: "checked", msg: { checked: "猫炉路氓聬艗忙鈥灺徝ぢ铰棵р�澛ヂ嵚徝�" } }, mileage: { rule: "required;price;" }, price: { rule: "price", msg: { price: "猫炉路猫戮鈥溍モ�βッβC÷♀�灻� 录氓录聫" } }, title: { rule: "required;length[2~50];" }, brand: { rule: "required;length[2~50];" }, content: { rule: "required;" }, address: { rule: "required;length[2~50];" }, contact: { rule: "required;contact" } }, getFormData: function(d, b) { var c = this; b = b || "J-validate"; var a = {}; var e = d.find("." + b); if (!e.length) { return } e.each(function(g, h) { var f = $(h).attr("validate-name"); if (!f) { f = "_" + $(h).attr("validate-type") } f && (a[f] = $(h).val()) }); return a }, getFormFields: function(b) { var e = b.form; var d = this; var c = "J-validate"; var a = {}; var f = e.find("." + c); if (!f.length) { return } f.each(function(h, i) { var g = $(i).attr("validate-type"); if (g) { if ($(i).attr("validate-remote")) { d.defaultFields[g].rule += "remote[" + $(i).attr("validate-remote") + "]" } a["#" + $(i).attr("id")] = d.defaultFields[g] } }); return a }, valid: function(a) { var b = this; if (!a.fields) { a.fields = {} } $.extend(a.fields, b.getFormFields(a)); seajs.use("validator", function() { seajs.use("validator_CN", function() { var c = { stopOnError: true, timely: 2, rules: { mychecked: function(d) { if (d.value == "0" || d.value == "") { return false || "猫炉路茅鈧�懊︹�孤�" } return true }, username: [/^[a-zA-Z\u4e00-\u9fa5][a-zA-Z0-9_\u4E00-\u9FA5]{1,15}$/, "氓聫陋猫茠陆莽鈥澛泵ヂ�斆β嵜b偓聛忙鈥⒙懊ヂ�斆b偓聛盲赂鈥姑ニ嗏�櫭郝棵モ�櫯捗ぢ嘎︹�撯�∶烩�灻λ喡惷寂捗ぢ宦ッぢ嘎︹�撯�∶λ嗏�撁ヂ�斆β嵜ヂ尖偓氓陇麓茂录艗茅鈥⒙棵ヂ郝γぢ嘎�2-16盲陆聧" ], mobile: function(d) { return Util.isMobile(d.value) }, contact: [/[^\x00-\xff]/, "氓聫陋猫茠陆莽鈥澛泵ぢ嘎ㄢ�孤泵︹�撯�∶ヂ�斆γ烩�灻λ喡�(2-10盲赂陋氓颅鈥�)茫鈧��"], phone: function(d) { return true }, myfloat: function(d) { return Util.IsFloat(d.value) }, price: function(d) { return Util.IsFloat(d.value) } } }; $.extend(c, a); c.valid = function(d) { if (!a.valid || (a.valid && a.valid(d))) { c.data = c.getData ? c.getData() : {}; $.extend(c.data, b.getFormData(c.form)); Util.ajaxForm(c) } }; b.base = c; a.form.validator(c); c.beforeValidate && c.beforeValidate.call(a.form, c) }) }) }, login: function(a) { var b = this; $.extend(a, { theme: "yellow_top", url: "/ashx/user/login.ashx", success: function(c) { if (c > 0) { if (get_url_para(window.location, "ReturnUrl") != null) { window.location = get_url_para(window.location, "ReturnUrl") } else { window.location = a.ReturnUrl || "/my/index.aspx" } } else { if (c == 0) { $("#msg-holder").html("猫麓娄忙藛路氓聬聧忙藛鈥撁ヂ�犆� 聛茅鈥濃劉猫炉炉"); a.successCallback && a.successCallback() } else { $("#msg-holder").html("忙颅陇猫麓娄忙藛路猫垄芦莽娄聛莽鈥澛�") } } }, invalid: function(d, e) { var c = ""; $.map(e, function(f) { $("#msg-holder").html(f) }) } }); b.valid(a) } }; /** * 忙鈥撀懊铰︹�櫬モ�郝緎wiper * @author shenhu */ let swiperFlag = true; Util.swiper = function(id,option){ if(id){ seajs.use('swiper', function () { if(swiperFlag){ var link = document.createElement("link"); link.rel = "stylesheet"; link.type = "text/css"; link.href = 'https://files.risun-tec.cn/js/common/swiper/swiper-bundle.min.css'; document.getElementsByTagName("head")[0].appendChild(link); swiperFlag = false } var swiper = new Swiper(id, option); }) }else{ return; } } /** * 忙鈥撀懊モ�郝久р�扳�∶┞⑩�灻� * @author shenhu */ let imgPerviewFlag = true Util.imgPerview = function(id) { if(id){ seajs.use('imgPerview', function () { if(imgPerviewFlag){ var link = document.createElement("link"); link.rel = "stylesheet"; link.type = "text/css"; link.href = 'https://files.risun-tec.cn/js/common/imgPerview/jquery.galpop.css'; document.getElementsByTagName("head")[0].appendChild(link); imgPerviewFlag = false } $(id).galpop(); }) }else{ return; } } /** * 忙鈥撀懊︹�⒙懊ヂ�斆︹�⑺喢ε九�(1) * @author shenhu */ let OdometerFlag = true Util.Odometer = function(id,num,dot){ if(id){ seajs.use('Odometer', function () { if(OdometerFlag){ var link = document.createElement("link"); link.rel = "stylesheet"; link.type = "text/css"; link.href = 'https://files.risun-tec.cn/js/common/Odometer/Odometer.css'; document.getElementsByTagName("head")[0].appendChild(link); OdometerFlag = false } var odo = new Odometer(id,{ len : null, //猫庐戮莽陆庐茅禄藴猫庐陇盲陆聧忙鈥⒙� num : num || 0, //氓藛聺氓搂鈥姑ヅ掆�撁モ偓录 speed : 3000, //氓艩篓莽鈥澛幻┾偓鸥氓潞娄 symbol : '', //氓藛鈥犆モ�奥裁� dot : dot || 0 //盲驴聺莽鈥⑩劉氓鈥� 盲陆聧氓掳聫忙鈥⒙懊р�毬� }); }) }else{ return } } /** * 忙鈥撀懊︹�⒙懊ヂ�斆︹�⑺喢ε九�(2) * @author shenhu */ Util.numscroll = function(id,time){ if(id){ seajs.use('numscroll', function () { $(id).numScroll({ time: time || 1500 }); }) }else{ return; } } /** * echarts 氓鈥郝久÷烩�灻ぢ宦睹ヂ衡�� * @author shenhu */ Util.Echarts = function(id,animate,option,callback){ if(id){ console.log(id,option) seajs.use('Echarts', function () { var DOM = document.getElementById(id); var myChart = echarts.init(DOM); if (option && typeof option === "object") { myChart.setOption(option, true); //莽隆庐盲驴聺callback忙藴炉盲赂鈧ぢ嘎モ�÷矫︹�⒙� if(animate){ setInterval(function(){ myChart.clear(); myChart.setOption(option, true); },5000) } if(typeof callback === "function"){ //猫掳茠莽鈥澛ヂ捗寂捗︹�斅⒚р�灺睹λ嗏�樏ぢ宦ヂ仿裁宦徝÷ヂ∶ぢ衡�犆ヂ捗λ溌ヂ徛捌捗р�澛♀�� callback(myChart); } } }) }else{ return; } } /** * echarts 氓藛鈥犆┞÷得烩�灻ぢ宦� * @author shenhu */ let pagesFlag = true Util.pages = function(id,option){ seajs.use('pages',function(){ if(pagesFlag){ var link = document.createElement("link"); link.rel = "stylesheet"; link.type = "text/css"; link.href = 'https://files.risun-tec.cn/js/common/pagenation/jquery.pagination.css'; document.getElementsByTagName("head")[0].appendChild(link); pagesFlag = false } $(id).pagination(option); }) } /** * 氓鸥潞莽隆鈧ヂ悸姑�� * @author shenhu */ let dialogFlag = true Util.dialog = function(id,thingsType,option){ seajs.use('dialog',function(){ if(dialogFlag){ var link = document.createElement("link"); link.rel = "stylesheet"; link.type = "text/css"; link.href = 'https://files.risun-tec.cn/js/common/dialog/dialog.css'; document.getElementsByTagName("head")[0].appendChild(link); dialogFlag = false } if(thingsType === 'click'){ $(id).click(function(){ var infoDialog = $.dialog(option); // if(typeof callback === "function"){ // callback(infoDialog); // } }); }else{ var infoDialog = $.dialog(option); // if(typeof callback === "function"){ // callback(infoDialog); // } } }) } /** * videoJs莽禄鈥灻ぢ宦� * @author shenhu */ Util.video = function(id,option){ if(id){ seajs.use(["common/videojs/video-js.min.css","common/videojs/video.min.js","common/videojs/videojs-contrib-hls.js","common/videojs/videojs-flash.js"],function(){ var player = videojs(id, option); }) }else{ return } } /** * 猫路鈥樏┞┞伮烩�灻ぢ宦� * @author shenhu */ Util.marquee = function(id,option){ if(id){ seajs.use('marquee',function(){ $(id).marquee(option); }) } else{ return } } /** * 猫炉鈥灻ニ嗏�犆烩�灻ぢ宦� * @author shenhu */ Util.rate = function(id,option){ if(id){ seajs.use('rate',function(){ $(id).lqScore(option); }) }else{ return } } /** * 氓艗潞氓鸥鸥氓庐拧盲陆聧莽禄鈥灻ぢ宦� * @author shenhu */ Util.sticky = function(id,option){ if(id){ seajs.use('sticky',function(){ var sticky = new Sticky(id); }) }else{ return } } /** * 猫炉娄忙茠鈥γ┞÷得モ�郝久р�扳�∶︹�澛久ヂぢヂ扁�⒚ぢ� H5 盲陆驴莽鈥澛� * @author shenhu */ Util.flyZoom = function(id,fn){ if(id){ seajs.use('flyZoom',function(){ var fly1 = $(id).FlyZommImg({ miscellaneous: true, //忙藴炉氓聬娄忙藴戮莽陇潞氓潞鈥⒚┢捖锯�γヅ犅┟ε掆�懊┾�櫬� closeBtn: true, //忙藴炉氓聬娄忙鈥扳�溍ヂ尖偓氓聫鲁盲赂艩猫搂鈥櫭モ�β趁┾�斅ε掆�懊┾�櫬� slitherCallback: fn // function(direction, DOM) { // // //氓路娄忙禄鈥樏ヅ犅モ�号久捌� 盲赂陇盲赂陋氓聫鈥毭︹�⒙� 莽卢卢盲赂鈧ぢ嘎ヅ犅ヂ愨�� // // 'left,firstClick,close' // // 莽卢卢盲潞艗盲赂陋 氓陆鈥溍モ�奥嵜︹�溌嵜ぢ脚揇OM // // console.log('test1'); // } }); }) } } Util.buyCountDeal = function(e) { if (!e.num) { return } var d = parseInt(e.num.val()); var f = function(a) { e.beforeChange && e.beforeChange(a); e.minus.removeClass("minus-disable"); e.plus.removeClass("plus-disable"); if (a <= 1) { a = 1; e.minus.addClass("minus-disable") } if (a >= e.max) { a = e.max; e.plus.addClass("plus-disable") } e.num.val(a); d = a; e.afterChange && e.afterChange(a) }; f(d); e.num.keyup(function(b) { var a = b.which; var c = $(this); if ((a >= 48 && a <= 57) || (a >= 96 && a <= 105)) { d = parseInt(c.val()) } else { d = 0 } f(d) }); e.plus.click(function() { if (!$(this).hasClass("plus-disable")) { d++; f(d) } }); e.minus.click(function() { if (!$(this).hasClass("minus-disable")) { d--; f(d) } }) }; (function(a) { var b = a({}); a.subscribe = function() { b.bind.apply(b, arguments) }; a.unsubscribe = function() { b.unbind.apply(b, arguments) }; a.publish = function() { b.trigger.apply(b, a.makeArray(arguments)) } })(jQuery);; if (!this.JSON) { this.JSON = {} }(function() { function f(n) { return n < 10 ? "0" + n : n } if (typeof Date.prototype.toJSON !== "function") { Date.prototype.toJSON = function(key) { return isFinite(this.valueOf()) ? this.getUTCFullYear() + "-" + f(this.getUTCMonth() + 1) + "-" + f( this.getUTCDate()) + "T" + f(this.getUTCHours()) + ":" + f(this.getUTCMinutes()) + ":" + f( this.getUTCSeconds()) + "Z" : null }; String.prototype.toJSON = Number.prototype.toJSON = Boolean.prototype.toJSON = function(key) { return this.valueOf() } } var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, gap, indent, meta = { "\b": "\\b", "\t": "\\t", "\n": "\\n", "\f": "\\f", "\r": "\\r", '"': '\\"', "\\": "\\\\" }, rep; function quote(string) { escapable.lastIndex = 0; return escapable.test(string) ? '"' + string.replace(escapable, function(a) { var c = meta[a]; return typeof c === "string" ? c : "\\u" + ("0000" + a.charCodeAt(0).toString(16)).slice(-4) }) + '"' : '"' + string + '"' } function str(key, holder) { var i, k, v, length, mind = gap, partial, value = holder[key]; if (value && typeof value === "object" && typeof value.toJSON === "function") { value = value.toJSON(key) } if (typeof rep === "function") { value = rep.call(holder, key, value) } switch (typeof value) { case "string": return quote(value); case "number": return isFinite(value) ? String(value) : "null"; case "boolean": case "null": return String(value); case "object": if (!value) { return "null" } gap += indent; partial = []; if (Object.prototype.toString.apply(value) === "[object Array]") { length = value.length; for (i = 0; i < length; i += 1) { partial[i] = str(i, value) || "null" } v = partial.length === 0 ? "[]" : gap ? "[\n" + gap + partial.join(",\n" + gap) + "\n" + mind + "]" : "[" + partial.join(",") + "]"; gap = mind; return v } if (rep && typeof rep === "object") { length = rep.length; for (i = 0; i < length; i += 1) { k = rep[i]; if (typeof k === "string") { v = str(k, value); if (v) { partial.push(quote(k) + (gap ? ": " : ":") + v) } } } } else { for (k in value) { if (Object.hasOwnProperty.call(value, k)) { v = str(k, value); if (v) { partial.push(quote(k) + (gap ? ": " : ":") + v) } } } } v = partial.length === 0 ? "{}" : gap ? "{\n" + gap + partial.join(",\n" + gap) + "\n" + mind + "}" : "{" + partial.join(",") + "}"; gap = mind; return v } } if (typeof JSON.stringify !== "function") { JSON.stringify = function(value, replacer, space) { var i; gap = ""; indent = ""; if (typeof space === "number") { for (i = 0; i < space; i += 1) { indent += " " } } else { if (typeof space === "string") { indent = space } } rep = replacer; if (replacer && typeof replacer !== "function" && (typeof replacer !== "object" || typeof replacer .length !== "number")) { throw new Error("JSON.stringify") } return str("", { "": value }) } } if (typeof JSON.parse !== "function") { JSON.parse = function(text, reviver) { var j; function walk(holder, key) { var k, v, value = holder[key]; if (value && typeof value === "object") { for (k in value) { if (Object.hasOwnProperty.call(value, k)) { v = walk(value, k); if (v !== undefined) { value[k] = v } else { delete value[k] } } } } return reviver.call(holder, key, value) } text = String(text); cx.lastIndex = 0; if (cx.test(text)) { text = text.replace(cx, function(a) { return "\\u" + ("0000" + a.charCodeAt(0).toString(16)).slice(-4) }) } if (/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, "@").replace( /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, "]").replace( /(?:^|:|,)(?:\s*\[)+/g, ""))) { j = eval("(" + text + ")"); return typeof reviver === "function" ? walk({ "": j }, "") : j } throw new SyntaxError("JSON.parse") } } }());; ;