!function(e,t){function n(e){var t,n,r=O[e]={};for(e=e.split(/\s+/),t=0,n=e.length;n>t;t++)r[e[t]]=!0;return r}function r(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(q,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:H.isNumeric(r)?+r:P.test(r)?H.parseJSON(r):r}catch(o){}H.data(e,n,r)}else r=t}return r}function i(e){for(var t in e)if(("data"!==t||!H.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function o(e,t,n){var r=t+"defer",i=t+"queue",o=t+"mark",a=H._data(e,r);!a||"queue"!==n&&H._data(e,i)||"mark"!==n&&H._data(e,o)||setTimeout(function(){H._data(e,i)||H._data(e,o)||(H.removeData(e,r,!0),a.fire())},0)}function a(){return!1}function s(){return!0}function l(e){return!e||!e.parentNode||11===e.parentNode.nodeType}function u(e,t,n){if(t=t||0,H.isFunction(t))return H.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return H.grep(e,function(e){return e===t===n});if("string"==typeof t){var r=H.grep(e,function(e){return 1===e.nodeType});if(ct.test(t))return H.filter(t,r,!n);t=H.filter(t,r)}return H.grep(e,function(e){return H.inArray(e,t)>=0===n})}function c(e){var t=ht.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function f(e){return H.nodeName(e,"table")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function d(e,t){if(1===t.nodeType&&H.hasData(e)){var n,r,i,o=H._data(e),a=H._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)H.event.add(t,n,s[n][r])}a.data&&(a.data=H.extend({},a.data))}}function p(e,t){var n;1===t.nodeType&&(t.clearAttributes&&t.clearAttributes(),t.mergeAttributes&&t.mergeAttributes(e),n=t.nodeName.toLowerCase(),"object"===n?t.outerHTML=e.outerHTML:"input"!==n||"checkbox"!==e.type&&"radio"!==e.type?"option"===n?t.selected=e.defaultSelected:"input"===n||"textarea"===n?t.defaultValue=e.defaultValue:"script"===n&&t.text!==e.text&&(t.text=e.text):(e.checked&&(t.defaultChecked=t.checked=e.checked),t.value!==e.value&&(t.value=e.value)),t.removeAttribute(H.expando),t.removeAttribute("_submit_attached"),t.removeAttribute("_change_attached"))}function h(e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName("*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll("*"):[]}function m(e){("checkbox"===e.type||"radio"===e.type)&&(e.defaultChecked=e.checked)}function g(e){var t=(e.nodeName||"").toLowerCase();"input"===t?m(e):"script"!==t&&"undefined"!=typeof e.getElementsByTagName&&H.grep(e.getElementsByTagName("input"),m)}function y(e){var t=F.createElement("div");return At.appendChild(t),t.innerHTML=e.outerHTML,t.firstChild}function v(e,t,n){var r="width"===t?e.offsetWidth:e.offsetHeight,i="width"===t?1:0,o=4;if(r>0){if("border"!==n)for(;o>i;i+=2)n||(r-=parseFloat(H.css(e,"padding"+Wt[i]))||0),"margin"===n?r+=parseFloat(H.css(e,n+Wt[i]))||0:r-=parseFloat(H.css(e,"border"+Wt[i]+"Width"))||0;return r+"px"}if(r=Lt(e,t),(0>r||null==r)&&(r=e.style[t]),Ot.test(r))return r;if(r=parseFloat(r)||0,n)for(;o>i;i+=2)r+=parseFloat(H.css(e,"padding"+Wt[i]))||0,"padding"!==n&&(r+=parseFloat(H.css(e,"border"+Wt[i]+"Width"))||0),"margin"===n&&(r+=parseFloat(H.css(e,n+Wt[i]))||0);return r+"px"}function b(e){return function(t,n){if("string"!=typeof t&&(n=t,t="*"),H.isFunction(n))for(var r,i,o,a=t.toLowerCase().split(tn),s=0,l=a.length;l>s;s++)r=a[s],o=/^\+/.test(r),o&&(r=r.substr(1)||"*"),i=e[r]=e[r]||[],i[o?"unshift":"push"](n)}}function x(e,n,r,i,o,a){o=o||n.dataTypes[0],a=a||{},a[o]=!0;for(var s,l=e[o],u=0,c=l?l.length:0,f=e===an;c>u&&(f||!s);u++)s=l[u](n,r,i),"string"==typeof s&&(!f||a[s]?s=t:(n.dataTypes.unshift(s),s=x(e,n,r,i,s,a)));return!f&&s||a["*"]||(s=x(e,n,r,i,"*",a)),s}function T(e,n){var r,i,o=H.ajaxSettings.flatOptions||{};for(r in n)n[r]!==t&&((o[r]?e:i||(i={}))[r]=n[r]);i&&H.extend(!0,e,i)}function w(e,t,n,r){if(H.isArray(t))H.each(t,function(t,i){n||Xt.test(e)?r(e,i):w(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==H.type(t))r(e,t);else for(var i in t)w(e+"["+i+"]",t[i],n,r)}function N(e,n,r){var i,o,a,s,l=e.contents,u=e.dataTypes,c=e.responseFields;for(o in c)o in r&&(n[c[o]]=r[o]);for(;"*"===u[0];)u.shift(),i===t&&(i=e.mimeType||n.getResponseHeader("content-type"));if(i)for(o in l)if(l[o]&&l[o].test(i)){u.unshift(o);break}if(u[0]in r)a=u[0];else{for(o in r){if(!u[0]||e.converters[o+" "+u[0]]){a=o;break}s||(s=o)}a=a||s}return a?(a!==u[0]&&u.unshift(a),r[a]):void 0}function C(e,n){e.dataFilter&&(n=e.dataFilter(n,e.dataType));var r,i,o,a,s,l,u,c,f=e.dataTypes,d={},p=f.length,h=f[0];for(r=1;p>r;r++){if(1===r)for(i in e.converters)"string"==typeof i&&(d[i.toLowerCase()]=e.converters[i]);if(a=h,h=f[r],"*"===h)h=a;else if("*"!==a&&a!==h){if(s=a+" "+h,l=d[s]||d["* "+h],!l){c=t;for(u in d)if(o=u.split(" "),(o[0]===a||"*"===o[0])&&(c=d[o[1]+" "+h])){u=d[u],u===!0?l=c:c===!0&&(l=u);break}}l||c||H.error("No conversion from "+s.replace(" "," to ")),l!==!0&&(n=l?l(n):c(u(n)))}}return n}function E(){try{return new e.XMLHttpRequest}catch(t){}}function k(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function S(){return setTimeout(A,0),vn=H.now()}function A(){vn=t}function L(e,t){var n={};return H.each(wn.concat.apply([],wn.slice(0,t)),function(){n[this]=e}),n}function D(e){if(!bn[e]){var t=F.body,n=H("<"+e+">").appendTo(t),r=n.css("display");n.remove(),("none"===r||""===r)&&(mn||(mn=F.createElement("iframe"),mn.frameBorder=mn.width=mn.height=0),t.appendChild(mn),gn&&mn.createElement||(gn=(mn.contentWindow||mn.contentDocument).document,gn.write((H.support.boxModel?"":"")+""),gn.close()),n=gn.createElement(e),gn.body.appendChild(n),r=H.css(n,"display"),t.removeChild(mn)),bn[e]=r}return bn[e]}function j(e){return H.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}var F=e.document,M=e.navigator,_=e.location,H=function(){function n(){if(!s.isReady){try{F.documentElement.doScroll("left")}catch(e){return setTimeout(n,1),void 0}s.ready()}}var r,i,o,a,s=function(e,t){return new s.fn.init(e,t,r)},l=e.jQuery,u=e.$,c=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,f=/\S/,d=/^\s+/,p=/\s+$/,h=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,m=/^[\],:{}\s]*$/,g=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,y=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,v=/(?:^|:|,)(?:\s*\[)+/g,b=/(webkit)[ \/]([\w.]+)/,x=/(opera)(?:.*version)?[ \/]([\w.]+)/,T=/(msie) ([\w.]+)/,w=/(mozilla)(?:.*? rv:([\w.]+))?/,N=/-([a-z]|[0-9])/gi,C=/^-ms-/,E=function(e,t){return(t+"").toUpperCase()},k=M.userAgent,S=Object.prototype.toString,A=Object.prototype.hasOwnProperty,L=Array.prototype.push,D=Array.prototype.slice,j=String.prototype.trim,_=Array.prototype.indexOf,H={};return s.fn=s.prototype={constructor:s,init:function(e,n,r){var i,o,a,l;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if("body"===e&&!n&&F.body)return this.context=F,this[0]=F.body,this.selector=e,this.length=1,this;if("string"==typeof e){if(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:c.exec(e),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1])return n=n instanceof s?n[0]:n,l=n?n.ownerDocument||n:F,a=h.exec(e),a?s.isPlainObject(n)?(e=[F.createElement(a[1])],s.fn.attr.call(e,n,!0)):e=[l.createElement(a[1])]:(a=s.buildFragment([i[1]],[l]),e=(a.cacheable?s.clone(a.fragment):a.fragment).childNodes),s.merge(this,e);if(o=F.getElementById(i[2]),o&&o.parentNode){if(o.id!==i[2])return r.find(e);this.length=1,this[0]=o}return this.context=F,this.selector=e,this}return s.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),s.makeArray(e,this))},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return D.call(this,0)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e,t,n){var r=this.constructor();return s.isArray(e)?L.apply(r,e):s.merge(r,e),r.prevObject=this,r.context=this.context,"find"===t?r.selector=this.selector+(this.selector?" ":"")+n:t&&(r.selector=this.selector+"."+t+"("+n+")"),r},each:function(e,t){return s.each(this,e,t)},ready:function(e){return s.bindReady(),o.add(e),this},eq:function(e){return e=+e,-1===e?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(D.apply(this,arguments),"slice",D.call(arguments).join(","))},map:function(e){return this.pushStack(s.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:L,sort:[].sort,splice:[].splice},s.fn.init.prototype=s.fn,s.extend=s.fn.extend=function(){var e,n,r,i,o,a,l=arguments[0]||{},u=1,c=arguments.length,f=!1;for("boolean"==typeof l&&(f=l,l=arguments[1]||{},u=2),"object"==typeof l||s.isFunction(l)||(l={}),c===u&&(l=this,--u);c>u;u++)if(null!=(e=arguments[u]))for(n in e)r=l[n],i=e[n],l!==i&&(f&&i&&(s.isPlainObject(i)||(o=s.isArray(i)))?(o?(o=!1,a=r&&s.isArray(r)?r:[]):a=r&&s.isPlainObject(r)?r:{},l[n]=s.extend(f,a,i)):i!==t&&(l[n]=i));return l},s.extend({noConflict:function(t){return e.$===s&&(e.$=u),t&&e.jQuery===s&&(e.jQuery=l),s},isReady:!1,readyWait:1,holdReady:function(e){e?s.readyWait++:s.ready(!0)},ready:function(e){if(e===!0&&!--s.readyWait||e!==!0&&!s.isReady){if(!F.body)return setTimeout(s.ready,1);if(s.isReady=!0,e!==!0&&--s.readyWait>0)return;o.fireWith(F,[s]),s.fn.trigger&&s(F).trigger("ready").off("ready")}},bindReady:function(){if(!o){if(o=s.Callbacks("once memory"),"complete"===F.readyState)return setTimeout(s.ready,1);if(F.addEventListener)F.addEventListener("DOMContentLoaded",a,!1),e.addEventListener("load",s.ready,!1);else if(F.attachEvent){F.attachEvent("onreadystatechange",a),e.attachEvent("onload",s.ready);var t=!1;try{t=null==e.frameElement}catch(r){}F.documentElement.doScroll&&t&&n()}}},isFunction:function(e){return"function"===s.type(e)},isArray:Array.isArray||function(e){return"array"===s.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?String(e):H[S.call(e)]||"object"},isPlainObject:function(e){if(!e||"object"!==s.type(e)||e.nodeType||s.isWindow(e))return!1;try{if(e.constructor&&!A.call(e,"constructor")&&!A.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}var r;for(r in e);return r===t||A.call(e,r)},isEmptyObject:function(e){for(var t in e)return!1;return!0},error:function(e){throw new Error(e)},parseJSON:function(t){return"string"==typeof t&&t?(t=s.trim(t),e.JSON&&e.JSON.parse?e.JSON.parse(t):m.test(t.replace(g,"@").replace(y,"]").replace(v,""))?new Function("return "+t)():(s.error("Invalid JSON: "+t),void 0)):null},parseXML:function(n){if("string"!=typeof n||!n)return null;var r,i;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(o){r=t}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||s.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&f.test(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(C,"ms-").replace(N,E)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toUpperCase()===t.toUpperCase()},each:function(e,n,r){var i,o=0,a=e.length,l=a===t||s.isFunction(e);if(r)if(l){for(i in e)if(n.apply(e[i],r)===!1)break}else for(;a>o&&n.apply(e[o++],r)!==!1;);else if(l){for(i in e)if(n.call(e[i],i,e[i])===!1)break}else for(;a>o&&n.call(e[o],o,e[o++])!==!1;);return e},trim:j?function(e){return null==e?"":j.call(e)}:function(e){return null==e?"":e.toString().replace(d,"").replace(p,"")},makeArray:function(e,t){var n=t||[];if(null!=e){var r=s.type(e);null==e.length||"string"===r||"function"===r||"regexp"===r||s.isWindow(e)?L.call(n,e):s.merge(n,e)}return n},inArray:function(e,t,n){var r;if(t){if(_)return _.call(t,e,n);for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=e.length,i=0;if("number"==typeof n.length)for(var o=n.length;o>i;i++)e[r++]=n[i];else for(;n[i]!==t;)e[r++]=n[i++];return e.length=r,e},grep:function(e,t,n){var r,i=[];n=!!n;for(var o=0,a=e.length;a>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,n,r){var i,o,a=[],l=0,u=e.length,c=e instanceof s||u!==t&&"number"==typeof u&&(u>0&&e[0]&&e[u-1]||0===u||s.isArray(e));if(c)for(;u>l;l++)i=n(e[l],l,r),null!=i&&(a[a.length]=i);else for(o in e)i=n(e[o],o,r),null!=i&&(a[a.length]=i);return a.concat.apply([],a)},guid:1,proxy:function(e,n){if("string"==typeof n){var r=e[n];n=e,e=r}if(!s.isFunction(e))return t;var i=D.call(arguments,2),o=function(){return e.apply(n,i.concat(D.call(arguments)))};return o.guid=e.guid=e.guid||o.guid||s.guid++,o},access:function(e,n,r,i,o,a,l){var u,c=null==r,f=0,d=e.length;if(r&&"object"==typeof r){for(f in r)s.access(e,n,f,r[f],1,a,i);o=1}else if(i!==t){if(u=l===t&&s.isFunction(i),c&&(u?(u=n,n=function(e,t,n){return u.call(s(e),n)}):(n.call(e,i),n=null)),n)for(;d>f;f++)n(e[f],r,u?i.call(e[f],f,n(e[f],r)):i,l);o=1}return o?e:c?n.call(e):d?n(e[0],r):a},now:function(){return(new Date).getTime()},uaMatch:function(e){e=e.toLowerCase();var t=b.exec(e)||x.exec(e)||T.exec(e)||e.indexOf("compatible")<0&&w.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},sub:function(){function e(t,n){return new e.fn.init(t,n)}s.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(n,r){return r&&r instanceof s&&!(r instanceof e)&&(r=e(r)),s.fn.init.call(this,n,r,t)},e.fn.init.prototype=e.fn;var t=e(F);return e},browser:{}}),s.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(e,t){H["[object "+t+"]"]=t.toLowerCase()}),i=s.uaMatch(k),i.browser&&(s.browser[i.browser]=!0,s.browser.version=i.version),s.browser.webkit&&(s.browser.safari=!0),f.test("")&&(d=/^[\s\xA0]+/,p=/[\s\xA0]+$/),r=s(F),F.addEventListener?a=function(){F.removeEventListener("DOMContentLoaded",a,!1),s.ready()}:F.attachEvent&&(a=function(){"complete"===F.readyState&&(F.detachEvent("onreadystatechange",a),s.ready())}),s}(),O={};H.Callbacks=function(e){e=e?O[e]||n(e):{};var r,i,o,a,s,l,u=[],c=[],f=function(t){var n,r,i,o;for(n=0,r=t.length;r>n;n++)i=t[n],o=H.type(i),"array"===o?f(i):"function"===o&&(e.unique&&p.has(i)||u.push(i))},d=function(t,n){for(n=n||[],r=!e.memory||[t,n],i=!0,o=!0,l=a||0,a=0,s=u.length;u&&s>l;l++)if(u[l].apply(t,n)===!1&&e.stopOnFalse){r=!0;break}o=!1,u&&(e.once?r===!0?p.disable():u=[]:c&&c.length&&(r=c.shift(),p.fireWith(r[0],r[1])))},p={add:function(){if(u){var e=u.length;f(arguments),o?s=u.length:r&&r!==!0&&(a=e,d(r[0],r[1]))}return this},remove:function(){if(u)for(var t=arguments,n=0,r=t.length;r>n;n++)for(var i=0;i=i&&(s--,l>=i&&l--),u.splice(i--,1),!e.unique));i++);return this},has:function(e){if(u)for(var t=0,n=u.length;n>t;t++)if(e===u[t])return!0;return!1},empty:function(){return u=[],this},disable:function(){return u=c=r=t,this},disabled:function(){return!u},lock:function(){return c=t,r&&r!==!0||p.disable(),this},locked:function(){return!c},fireWith:function(t,n){return c&&(o?e.once||c.push([t,n]):e.once&&r||d(t,n)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p};var B=[].slice;H.extend({Deferred:function(e){var t,n=H.Callbacks("once memory"),r=H.Callbacks("once memory"),i=H.Callbacks("memory"),o="pending",a={resolve:n,reject:r,notify:i},s={done:n.add,fail:r.add,progress:i.add,state:function(){return o},isResolved:n.fired,isRejected:r.fired,then:function(e,t,n){return l.done(e).fail(t).progress(n),this},always:function(){return l.done.apply(l,arguments).fail.apply(l,arguments),this},pipe:function(e,t,n){return H.Deferred(function(r){H.each({done:[e,"resolve"],fail:[t,"reject"],progress:[n,"notify"]},function(e,t){var n,i=t[0],o=t[1];H.isFunction(i)?l[e](function(){n=i.apply(this,arguments),n&&H.isFunction(n.promise)?n.promise().then(r.resolve,r.reject,r.notify):r[o+"With"](this===l?r:this,[n])}):l[e](r[o])})}).promise()},promise:function(e){if(null==e)e=s;else for(var t in s)e[t]=s[t];return e}},l=s.promise({});for(t in a)l[t]=a[t].fire,l[t+"With"]=a[t].fireWith;return l.done(function(){o="resolved"},r.disable,i.lock).fail(function(){o="rejected"},n.disable,i.lock),e&&e.call(l,l),l},when:function(e){function t(e){return function(t){r[e]=arguments.length>1?B.call(arguments,0):t,--s||l.resolveWith(l,r)}}function n(e){return function(t){a[e]=arguments.length>1?B.call(arguments,0):t,l.notifyWith(u,a)}}var r=B.call(arguments,0),i=0,o=r.length,a=new Array(o),s=o,l=1>=o&&e&&H.isFunction(e.promise)?e:H.Deferred(),u=l.promise();if(o>1){for(;o>i;i++)r[i]&&r[i].promise&&H.isFunction(r[i].promise)?r[i].promise().then(t(i),l.reject,n(i)):--s;s||l.resolveWith(l,r)}else l!==e&&l.resolveWith(l,o?[e]:[]);return u}}),H.support=function(){{var t,n,r,i,o,a,s,l,u,c,f,d=F.createElement("div");F.documentElement}if(d.setAttribute("className","t"),d.innerHTML="
a",n=d.getElementsByTagName("*"),r=d.getElementsByTagName("a")[0],!n||!n.length||!r)return{};i=F.createElement("select"),o=i.appendChild(F.createElement("option")),a=d.getElementsByTagName("input")[0],t={leadingWhitespace:3===d.firstChild.nodeType,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("style")),hrefNormalized:"/a"===r.getAttribute("href"),opacity:/^0.55/.test(r.style.opacity),cssFloat:!!r.style.cssFloat,checkOn:"on"===a.value,optSelected:o.selected,getSetAttribute:"t"!==d.className,enctype:!!F.createElement("form").enctype,html5Clone:"<:nav>"!==F.createElement("nav").cloneNode(!0).outerHTML,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},H.boxModel=t.boxModel="CSS1Compat"===F.compatMode,a.checked=!0,t.noCloneChecked=a.cloneNode(!0).checked,i.disabled=!0,t.optDisabled=!o.disabled;try{delete d.test}catch(p){t.deleteExpando=!1}if(!d.addEventListener&&d.attachEvent&&d.fireEvent&&(d.attachEvent("onclick",function(){t.noCloneEvent=!1}),d.cloneNode(!0).fireEvent("onclick")),a=F.createElement("input"),a.value="t",a.setAttribute("type","radio"),t.radioValue="t"===a.value,a.setAttribute("checked","checked"),a.setAttribute("name","t"),d.appendChild(a),s=F.createDocumentFragment(),s.appendChild(d.lastChild),t.checkClone=s.cloneNode(!0).cloneNode(!0).lastChild.checked,t.appendChecked=a.checked,s.removeChild(a),s.appendChild(d),d.attachEvent)for(c in{submit:1,change:1,focusin:1})u="on"+c,f=u in d,f||(d.setAttribute(u,"return;"),f="function"==typeof d[u]),t[c+"Bubbles"]=f;return s.removeChild(d),s=i=o=d=a=null,H(function(){var n,r,i,o,a,s,u,c,p,h,m,g,y=F.getElementsByTagName("body")[0];y&&(u=1,g="padding:0;margin:0;border:",h="position:absolute;top:0;left:0;width:1px;height:1px;",m=g+"0;visibility:hidden;",c="style='"+h+g+"5px solid #000;",p="
",n=F.createElement("div"),n.style.cssText=m+"width:0;height:0;position:static;top:0;margin-top:"+u+"px",y.insertBefore(n,y.firstChild),d=F.createElement("div"),n.appendChild(d),d.innerHTML="
t
",l=d.getElementsByTagName("td"),f=0===l[0].offsetHeight,l[0].style.display="",l[1].style.display="none",t.reliableHiddenOffsets=f&&0===l[0].offsetHeight,e.getComputedStyle&&(d.innerHTML="",s=F.createElement("div"),s.style.width="0",s.style.marginRight="0",d.style.width="2px",d.appendChild(s),t.reliableMarginRight=0===(parseInt((e.getComputedStyle(s,null)||{marginRight:0}).marginRight,10)||0)),"undefined"!=typeof d.style.zoom&&(d.innerHTML="",d.style.width=d.style.padding="1px",d.style.border=0,d.style.overflow="hidden",d.style.display="inline",d.style.zoom=1,t.inlineBlockNeedsLayout=3===d.offsetWidth,d.style.display="block",d.style.overflow="visible",d.innerHTML="
",t.shrinkWrapBlocks=3!==d.offsetWidth),d.style.cssText=h+m,d.innerHTML=p,r=d.firstChild,i=r.firstChild,o=r.nextSibling.firstChild.firstChild,a={doesNotAddBorder:5!==i.offsetTop,doesAddBorderForTableAndCells:5===o.offsetTop},i.style.position="fixed",i.style.top="20px",a.fixedPosition=20===i.offsetTop||15===i.offsetTop,i.style.position=i.style.top="",r.style.overflow="hidden",r.style.position="relative",a.subtractsBorderForOverflowNotVisible=-5===i.offsetTop,a.doesNotIncludeMarginInBodyOffset=y.offsetTop!==u,e.getComputedStyle&&(d.style.marginTop="1%",t.pixelMargin="1%"!==(e.getComputedStyle(d,null)||{marginTop:0}).marginTop),"undefined"!=typeof n.style.zoom&&(n.style.zoom=1),y.removeChild(n),s=d=n=null,H.extend(t,a))}),t}();var P=/^(?:\{.*\}|\[.*\])$/,q=/([A-Z])/g;H.extend({cache:{},uuid:0,expando:"jQuery"+(H.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?H.cache[e[H.expando]]:e[H.expando],!!e&&!i(e)},data:function(e,n,r,i){if(H.acceptData(e)){var o,a,s,l=H.expando,u="string"==typeof n,c=e.nodeType,f=c?H.cache:e,d=c?e[l]:e[l]&&l,p="events"===n;if(d&&f[d]&&(p||i||f[d].data)||!u||r!==t)return d||(c?e[l]=d=++H.uuid:d=l),f[d]||(f[d]={},c||(f[d].toJSON=H.noop)),("object"==typeof n||"function"==typeof n)&&(i?f[d]=H.extend(f[d],n):f[d].data=H.extend(f[d].data,n)),o=a=f[d],i||(a.data||(a.data={}),a=a.data),r!==t&&(a[H.camelCase(n)]=r),p&&!a[n]?o.events:(u?(s=a[n],null==s&&(s=a[H.camelCase(n)])):s=a,s)}},removeData:function(e,t,n){if(H.acceptData(e)){var r,o,a,s=H.expando,l=e.nodeType,u=l?H.cache:e,c=l?e[s]:s;if(u[c]){if(t&&(r=n?u[c]:u[c].data)){H.isArray(t)||(t in r?t=[t]:(t=H.camelCase(t),t=t in r?[t]:t.split(" ")));for(o=0,a=t.length;a>o;o++)delete r[t[o]];if(!(n?i:H.isEmptyObject)(r))return}(n||(delete u[c].data,i(u[c])))&&(H.support.deleteExpando||!u.setInterval?delete u[c]:u[c]=null,l&&(H.support.deleteExpando?delete e[s]:e.removeAttribute?e.removeAttribute(s):e[s]=null))}}},_data:function(e,t,n){return H.data(e,t,n,!0)},acceptData:function(e){if(e.nodeName){var t=H.noData[e.nodeName.toLowerCase()];if(t)return!(t===!0||e.getAttribute("classid")!==t)}return!0}}),H.fn.extend({data:function(e,n){var i,o,a,s,l,u=this[0],c=0,f=null;if(e===t){if(this.length&&(f=H.data(u),1===u.nodeType&&!H._data(u,"parsedAttrs"))){for(a=u.attributes,l=a.length;l>c;c++)s=a[c].name,0===s.indexOf("data-")&&(s=H.camelCase(s.substring(5)),r(u,s,f[s]));H._data(u,"parsedAttrs",!0)}return f}return"object"==typeof e?this.each(function(){H.data(this,e)}):(i=e.split(".",2),i[1]=i[1]?"."+i[1]:"",o=i[1]+"!",H.access(this,function(n){return n===t?(f=this.triggerHandler("getData"+o,[i[0]]),f===t&&u&&(f=H.data(u,e),f=r(u,e,f)),f===t&&i[1]?this.data(i[0]):f):(i[1]=n,this.each(function(){var t=H(this);t.triggerHandler("setData"+o,i),H.data(this,e,n),t.triggerHandler("changeData"+o,i)}),void 0)},null,n,arguments.length>1,null,!1))},removeData:function(e){return this.each(function(){H.removeData(this,e)})}}),H.extend({_mark:function(e,t){e&&(t=(t||"fx")+"mark",H._data(e,t,(H._data(e,t)||0)+1))},_unmark:function(e,t,n){if(e!==!0&&(n=t,t=e,e=!1),t){n=n||"fx";var r=n+"mark",i=e?0:(H._data(t,r)||1)-1;i?H._data(t,r,i):(H.removeData(t,r,!0),o(t,n,"mark"))}},queue:function(e,t,n){var r;return e?(t=(t||"fx")+"queue",r=H._data(e,t),n&&(!r||H.isArray(n)?r=H._data(e,t,H.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=H.queue(e,t),r=n.shift(),i={};"inprogress"===r&&(r=n.shift()),r&&("fx"===t&&n.unshift("inprogress"),H._data(e,t+".run",i),r.call(e,function(){H.dequeue(e,t)},i)),n.length||(H.removeData(e,t+"queue "+t+".run",!0),o(e,t,"queue"))}}),H.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),arguments.length1)},removeAttr:function(e){return this.each(function(){H.removeAttr(this,e)})},prop:function(e,t){return H.access(this,H.prop,e,t,arguments.length>1)},removeProp:function(e){return e=H.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,o,a,s;if(H.isFunction(e))return this.each(function(t){H(this).addClass(e.call(this,t,this.className))});if(e&&"string"==typeof e)for(t=e.split(X),n=0,r=this.length;r>n;n++)if(i=this[n],1===i.nodeType)if(i.className||1!==t.length){for(o=" "+i.className+" ",a=0,s=t.length;s>a;a++)~o.indexOf(" "+t[a]+" ")||(o+=t[a]+" ");i.className=H.trim(o)}else i.className=e;return this},removeClass:function(e){var n,r,i,o,a,s,l;if(H.isFunction(e))return this.each(function(t){H(this).removeClass(e.call(this,t,this.className))});if(e&&"string"==typeof e||e===t)for(n=(e||"").split(X),r=0,i=this.length;i>r;r++)if(o=this[r],1===o.nodeType&&o.className)if(e){for(a=(" "+o.className+" ").replace(R," "),s=0,l=n.length;l>s;s++)a=a.replace(" "+n[s]+" "," ");o.className=H.trim(a)}else o.className="";return this},toggleClass:function(e,t){var n=typeof e,r="boolean"==typeof t;return H.isFunction(e)?this.each(function(n){H(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n)for(var i,o=0,a=H(this),s=t,l=e.split(X);i=l[o++];)s=r?s:!a.hasClass(i),a[s?"addClass":"removeClass"](i);else("undefined"===n||"boolean"===n)&&(this.className&&H._data(this,"__className__",this.className),this.className=this.className||e===!1?"":H._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(R," ").indexOf(t)>-1)return!0;return!1},val:function(e){var n,r,i,o=this[0];{if(arguments.length)return i=H.isFunction(e),this.each(function(r){var o,a=H(this);1===this.nodeType&&(o=i?e.call(this,r,a.val()):e,null==o?o="":"number"==typeof o?o+="":H.isArray(o)&&(o=H.map(o,function(e){return null==e?"":e+""})),n=H.valHooks[this.type]||H.valHooks[this.nodeName.toLowerCase()],n&&"set"in n&&n.set(this,o,"value")!==t||(this.value=o))});if(o)return n=H.valHooks[o.type]||H.valHooks[o.nodeName.toLowerCase()],n&&"get"in n&&(r=n.get(o,"value"))!==t?r:(r=o.value,"string"==typeof r?r.replace(z,""):null==r?"":r)}}}),H.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r,i,o=e.selectedIndex,a=[],s=e.options,l="select-one"===e.type;if(0>o)return null;for(n=l?o:0,r=l?o+1:s.length;r>n;n++)if(i=s[n],!(!i.selected||(H.support.optDisabled?i.disabled:null!==i.getAttribute("disabled"))||i.parentNode.disabled&&H.nodeName(i.parentNode,"optgroup"))){if(t=H(i).val(),l)return t;a.push(t)}return l&&!a.length&&s.length?H(s[o]).val():a},set:function(e,t){var n=H.makeArray(t);return H(e).find("option").each(function(){this.selected=H.inArray(H(this).val(),n)>=0}),n.length||(e.selectedIndex=-1),n}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(e,n,r,i){var o,a,s,l=e.nodeType;if(e&&3!==l&&8!==l&&2!==l)return i&&n in H.attrFn?H(e)[n](r):"undefined"==typeof e.getAttribute?H.prop(e,n,r):(s=1!==l||!H.isXMLDoc(e),s&&(n=n.toLowerCase(),a=H.attrHooks[n]||(Y.test(n)?I:W)),r!==t?null===r?(H.removeAttr(e,n),void 0):a&&"set"in a&&s&&(o=a.set(e,r,n))!==t?o:(e.setAttribute(n,""+r),r):a&&"get"in a&&s&&null!==(o=a.get(e,n))?o:(o=e.getAttribute(n),null===o?t:o))},removeAttr:function(e,t){var n,r,i,o,a,s=0;if(t&&1===e.nodeType)for(r=t.toLowerCase().split(X),o=r.length;o>s;s++)i=r[s],i&&(n=H.propFix[i]||i,a=Y.test(i),a||H.attr(e,i,""),e.removeAttribute(J?i:n),a&&n in e&&(e[n]=!1))},attrHooks:{type:{set:function(e,t){if(V.test(e.nodeName)&&e.parentNode)H.error("type property can't be changed");else if(!H.support.radioValue&&"radio"===t&&H.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}},value:{get:function(e,t){return W&&H.nodeName(e,"button")?W.get(e,t):t in e?e.value:null},set:function(e,t,n){return W&&H.nodeName(e,"button")?W.set(e,t,n):(e.value=t,void 0)}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,n,r){var i,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return a=1!==s||!H.isXMLDoc(e),a&&(n=H.propFix[n]||n,o=H.propHooks[n]),r!==t?o&&"set"in o&&(i=o.set(e,r,n))!==t?i:e[n]=r:o&&"get"in o&&null!==(i=o.get(e,n))?i:e[n]},propHooks:{tabIndex:{get:function(e){var n=e.getAttributeNode("tabindex");return n&&n.specified?parseInt(n.value,10):U.test(e.nodeName)||G.test(e.nodeName)&&e.href?0:t}}}}),H.attrHooks.tabindex=H.propHooks.tabIndex,I={get:function(e,n){var r,i=H.prop(e,n);return i===!0||"boolean"!=typeof i&&(r=e.getAttributeNode(n))&&r.nodeValue!==!1?n.toLowerCase():t},set:function(e,t,n){var r;return t===!1?H.removeAttr(e,n):(r=H.propFix[n]||n,r in e&&(e[r]=!0),e.setAttribute(n,n.toLowerCase())),n}},J||($={name:!0,id:!0,coords:!0},W=H.valHooks.button={get:function(e,n){var r;return r=e.getAttributeNode(n),r&&($[n]?""!==r.nodeValue:r.specified)?r.nodeValue:t},set:function(e,t,n){var r=e.getAttributeNode(n);return r||(r=F.createAttribute(n),e.setAttributeNode(r)),r.nodeValue=t+""}},H.attrHooks.tabindex.set=W.set,H.each(["width","height"],function(e,t){H.attrHooks[t]=H.extend(H.attrHooks[t],{set:function(e,n){return""===n?(e.setAttribute(t,"auto"),n):void 0}})}),H.attrHooks.contenteditable={get:W.get,set:function(e,t,n){""===t&&(t="false"),W.set(e,t,n)}}),H.support.hrefNormalized||H.each(["href","src","width","height"],function(e,n){H.attrHooks[n]=H.extend(H.attrHooks[n],{get:function(e){var r=e.getAttribute(n,2);return null===r?t:r}})}),H.support.style||(H.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||t},set:function(e,t){return e.style.cssText=""+t}}),H.support.optSelected||(H.propHooks.selected=H.extend(H.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),H.support.enctype||(H.propFix.enctype="encoding"),H.support.checkOn||H.each(["radio","checkbox"],function(){H.valHooks[this]={get:function(e){return null===e.getAttribute("value")?"on":e.value}}}),H.each(["radio","checkbox"],function(){H.valHooks[this]=H.extend(H.valHooks[this],{set:function(e,t){return H.isArray(t)?e.checked=H.inArray(H(e).val(),t)>=0:void 0}})});var Q=/^(?:textarea|input|select)$/i,K=/^([^\.]*)?(?:\.(.+))?$/,Z=/(?:^|\s)hover(\.\S+)?\b/,et=/^key/,tt=/^(?:mouse|contextmenu)|click/,nt=/^(?:focusinfocus|focusoutblur)$/,rt=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,it=function(e){var t=rt.exec(e); return t&&(t[1]=(t[1]||"").toLowerCase(),t[3]=t[3]&&new RegExp("(?:^|\\s)"+t[3]+"(?:\\s|$)")),t},ot=function(e,t){var n=e.attributes||{};return!(t[1]&&e.nodeName.toLowerCase()!==t[1]||t[2]&&(n.id||{}).value!==t[2]||t[3]&&!t[3].test((n["class"]||{}).value))},at=function(e){return H.event.special.hover?e:e.replace(Z,"mouseenter$1 mouseleave$1")};H.event={add:function(e,n,r,i,o){var a,s,l,u,c,f,d,p,h,m,g;if(3!==e.nodeType&&8!==e.nodeType&&n&&r&&(a=H._data(e))){for(r.handler&&(h=r,r=h.handler,o=h.selector),r.guid||(r.guid=H.guid++),l=a.events,l||(a.events=l={}),s=a.handle,s||(a.handle=s=function(e){return"undefined"==typeof H||e&&H.event.triggered===e.type?t:H.event.dispatch.apply(s.elem,arguments)},s.elem=e),n=H.trim(at(n)).split(" "),u=0;u=0&&(g=g.slice(0,-1),s=!0),g.indexOf(".")>=0&&(y=g.split("."),g=y.shift(),y.sort()),i&&!H.event.customEvent[g]||H.event.global[g]))if(n="object"==typeof n?n[H.expando]?n:new H.Event(g,n):new H.Event(g),n.type=g,n.isTrigger=!0,n.exclusive=s,n.namespace=y.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,f=g.indexOf(":")<0?"on"+g:"",i){if(n.result=t,n.target||(n.target=i),r=null!=r?H.makeArray(r):[],r.unshift(n),d=H.event.special[g]||{},!d.trigger||d.trigger.apply(i,r)!==!1){if(h=[[i,d.bindType||g]],!o&&!d.noBubble&&!H.isWindow(i)){for(m=d.delegateType||g,u=nt.test(m+g)?i:i.parentNode,c=null;u;u=u.parentNode)h.push([u,m]),c=u;c&&c===i.ownerDocument&&h.push([c.defaultView||c.parentWindow||e,m])}for(l=0;lr;r++)f=p[r],d=f.selector,l[d]===t&&(l[d]=f.quick?ot(o,f.quick):a.is(d)),l[d]&&c.push(f);c.length&&v.push({elem:o,matches:c})}for(p.length>h&&v.push({elem:this,matches:p.slice(h)}),r=0;r0?this.on(t,null,e,n):this.trigger(t)},H.attrFn&&(H.attrFn[t]=!0),et.test(t)&&(H.event.fixHooks[t]=H.event.keyHooks),tt.test(t)&&(H.event.fixHooks[t]=H.event.mouseHooks)}),function(){function e(e,t,n,r,o,a){for(var s=0,l=r.length;l>s;s++){var u=r[s];if(u){var c=!1;for(u=u[e];u;){if(u[i]===n){c=r[u.sizset];break}if(1!==u.nodeType||a||(u[i]=n,u.sizset=s),u.nodeName.toLowerCase()===t){c=u;break}u=u[e]}r[s]=c}}}function n(e,t,n,r,o,a){for(var s=0,l=r.length;l>s;s++){var u=r[s];if(u){var c=!1;for(u=u[e];u;){if(u[i]===n){c=r[u.sizset];break}if(1===u.nodeType)if(a||(u[i]=n,u.sizset=s),"string"!=typeof t){if(u===t){c=!0;break}}else if(d.filter(t,[u]).length>0){c=u;break}u=u[e]}r[s]=c}}}var r=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,i="sizcache"+(Math.random()+"").replace(".",""),o=0,a=Object.prototype.toString,s=!1,l=!0,u=/\\/g,c=/\r\n/g,f=/\W/;[0,0].sort(function(){return l=!1,0});var d=function(e,t,n,i){n=n||[],t=t||F;var o=t;if(1!==t.nodeType&&9!==t.nodeType)return[];if(!e||"string"!=typeof e)return n;var s,l,u,c,f,p,g,y,b=!0,x=d.isXML(t),T=[],N=e;do if(r.exec(""),s=r.exec(N),s&&(N=s[3],T.push(s[1]),s[2])){c=s[3];break}while(s);if(T.length>1&&m.exec(e))if(2===T.length&&h.relative[T[0]])l=w(T[0]+T[1],t,i);else for(l=h.relative[T[0]]?[t]:d(T.shift(),t);T.length;)e=T.shift(),h.relative[e]&&(e+=T.shift()),l=w(e,l,i);else if(!i&&T.length>1&&9===t.nodeType&&!x&&h.match.ID.test(T[0])&&!h.match.ID.test(T[T.length-1])&&(f=d.find(T.shift(),t,x),t=f.expr?d.filter(f.expr,f.set)[0]:f.set[0]),t)for(f=i?{expr:T.pop(),set:v(i)}:d.find(T.pop(),1!==T.length||"~"!==T[0]&&"+"!==T[0]||!t.parentNode?t:t.parentNode,x),l=f.expr?d.filter(f.expr,f.set):f.set,T.length>0?u=v(l):b=!1;T.length;)p=T.pop(),g=p,h.relative[p]?g=T.pop():p="",null==g&&(g=t),h.relative[p](u,g,x);else u=T=[];if(u||(u=l),u||d.error(p||e),"[object Array]"===a.call(u))if(b)if(t&&1===t.nodeType)for(y=0;null!=u[y];y++)u[y]&&(u[y]===!0||1===u[y].nodeType&&d.contains(t,u[y]))&&n.push(l[y]);else for(y=0;null!=u[y];y++)u[y]&&1===u[y].nodeType&&n.push(l[y]);else n.push.apply(n,u);else v(u,n);return c&&(d(c,o,n,i),d.uniqueSort(n)),n};d.uniqueSort=function(e){if(x&&(s=l,e.sort(x),s))for(var t=1;t0},d.find=function(e,t,n){var r,i,o,a,s,l;if(!e)return[];for(i=0,o=h.order.length;o>i;i++)if(s=h.order[i],(a=h.leftMatch[s].exec(e))&&(l=a[1],a.splice(1,1),"\\"!==l.substr(l.length-1)&&(a[1]=(a[1]||"").replace(u,""),r=h.find[s](a,t,n),null!=r))){e=e.replace(h.match[s],"");break}return r||(r="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName("*"):[]),{set:r,expr:e}},d.filter=function(e,n,r,i){for(var o,a,s,l,u,c,f,p,m,g=e,y=[],v=n,b=n&&n[0]&&d.isXML(n[0]);e&&n.length;){for(s in h.filter)if(null!=(o=h.leftMatch[s].exec(e))&&o[2]){if(c=h.filter[s],f=o[1],a=!1,o.splice(1,1),"\\"===f.substr(f.length-1))continue;if(v===y&&(y=[]),h.preFilter[s])if(o=h.preFilter[s](o,v,r,y,i,b)){if(o===!0)continue}else a=l=!0;if(o)for(p=0;null!=(u=v[p]);p++)u&&(l=c(u,o,p,v),m=i^l,r&&null!=l?m?a=!0:v[p]=!1:m&&(y.push(u),a=!0));if(l!==t){if(r||(v=y),e=e.replace(h.match[s],""),!a)return[];break}}if(e===g){if(null!=a)break;d.error(e)}g=e}return v},d.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)};var p=d.getText=function(e){var t,n,r=e.nodeType,i="";if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;if("string"==typeof e.innerText)return e.innerText.replace(c,"");for(e=e.firstChild;e;e=e.nextSibling)i+=p(e)}else if(3===r||4===r)return e.nodeValue}else for(t=0;n=e[t];t++)8!==n.nodeType&&(i+=p(n));return i},h=d.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(e){return e.getAttribute("href")},type:function(e){return e.getAttribute("type")}},relative:{"+":function(e,t){var n="string"==typeof t,r=n&&!f.test(t),i=n&&!r;r&&(t=t.toLowerCase());for(var o,a=0,s=e.length;s>a;a++)if(o=e[a]){for(;(o=o.previousSibling)&&1!==o.nodeType;);e[a]=i||o&&o.nodeName.toLowerCase()===t?o||!1:o===t}i&&d.filter(t,e,!0)},">":function(e,t){var n,r="string"==typeof t,i=0,o=e.length;if(r&&!f.test(t)){for(t=t.toLowerCase();o>i;i++)if(n=e[i]){var a=n.parentNode;e[i]=a.nodeName.toLowerCase()===t?a:!1}}else{for(;o>i;i++)n=e[i],n&&(e[i]=r?n.parentNode:n.parentNode===t);r&&d.filter(t,e,!0)}},"":function(t,r,i){var a,s=o++,l=n;"string"!=typeof r||f.test(r)||(r=r.toLowerCase(),a=r,l=e),l("parentNode",r,s,t,a,i)},"~":function(t,r,i){var a,s=o++,l=n;"string"!=typeof r||f.test(r)||(r=r.toLowerCase(),a=r,l=e),l("previousSibling",r,s,t,a,i)}},find:{ID:function(e,t,n){if("undefined"!=typeof t.getElementById&&!n){var r=t.getElementById(e[1]);return r&&r.parentNode?[r]:[]}},NAME:function(e,t){if("undefined"!=typeof t.getElementsByName){for(var n=[],r=t.getElementsByName(e[1]),i=0,o=r.length;o>i;i++)r[i].getAttribute("name")===e[1]&&n.push(r[i]);return 0===n.length?null:n}},TAG:function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e[1]):void 0}},preFilter:{CLASS:function(e,t,n,r,i,o){if(e=" "+e[1].replace(u,"")+" ",o)return e;for(var a,s=0;null!=(a=t[s]);s++)a&&(i^(a.className&&(" "+a.className+" ").replace(/[\t\n\r]/g," ").indexOf(e)>=0)?n||r.push(a):n&&(t[s]=!1));return!1},ID:function(e){return e[1].replace(u,"")},TAG:function(e){return e[1].replace(u,"").toLowerCase()},CHILD:function(e){if("nth"===e[1]){e[2]||d.error(e[0]),e[2]=e[2].replace(/^\+|\s*/g,"");var t=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec("even"===e[2]&&"2n"||"odd"===e[2]&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=t[1]+(t[2]||1)-0,e[3]=t[3]-0}else e[2]&&d.error(e[0]);return e[0]=o++,e},ATTR:function(e,t,n,r,i,o){var a=e[1]=e[1].replace(u,"");return!o&&h.attrMap[a]&&(e[1]=h.attrMap[a]),e[4]=(e[4]||e[5]||"").replace(u,""),"~="===e[2]&&(e[4]=" "+e[4]+" "),e},PSEUDO:function(e,t,n,i,o){if("not"===e[1]){if(!((r.exec(e[3])||"").length>1||/^\w/.test(e[3]))){var a=d.filter(e[3],t,n,!0^o);return n||i.push.apply(i,a),!1}e[3]=d(e[3],null,null,t)}else if(h.match.POS.test(e[0])||h.match.CHILD.test(e[0]))return!0;return e},POS:function(e){return e.unshift(!0),e}},filters:{enabled:function(e){return e.disabled===!1&&"hidden"!==e.type},disabled:function(e){return e.disabled===!0},checked:function(e){return e.checked===!0},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},parent:function(e){return!!e.firstChild},empty:function(e){return!e.firstChild},has:function(e,t,n){return!!d(n[3],e).length},header:function(e){return/h\d/i.test(e.nodeName)},text:function(e){var t=e.getAttribute("type"),n=e.type;return"input"===e.nodeName.toLowerCase()&&"text"===n&&(t===n||null===t)},radio:function(e){return"input"===e.nodeName.toLowerCase()&&"radio"===e.type},checkbox:function(e){return"input"===e.nodeName.toLowerCase()&&"checkbox"===e.type},file:function(e){return"input"===e.nodeName.toLowerCase()&&"file"===e.type},password:function(e){return"input"===e.nodeName.toLowerCase()&&"password"===e.type},submit:function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&"submit"===e.type},image:function(e){return"input"===e.nodeName.toLowerCase()&&"image"===e.type},reset:function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&"reset"===e.type},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},input:function(e){return/input|select|textarea|button/i.test(e.nodeName)},focus:function(e){return e===e.ownerDocument.activeElement}},setFilters:{first:function(e,t){return 0===t},last:function(e,t,n,r){return t===r.length-1},even:function(e,t){return t%2===0},odd:function(e,t){return t%2===1},lt:function(e,t,n){return tn[3]-0},nth:function(e,t,n){return n[3]-0===t},eq:function(e,t,n){return n[3]-0===t}},filter:{PSEUDO:function(e,t,n,r){var i=t[1],o=h.filters[i];if(o)return o(e,n,t,r);if("contains"===i)return(e.textContent||e.innerText||p([e])||"").indexOf(t[3])>=0;if("not"===i){for(var a=t[3],s=0,l=a.length;l>s;s++)if(a[s]===e)return!1;return!0}d.error(i)},CHILD:function(e,t){var n,r,o,a,s,l,u=t[1],c=e;switch(u){case"only":case"first":for(;c=c.previousSibling;)if(1===c.nodeType)return!1;if("first"===u)return!0;c=e;case"last":for(;c=c.nextSibling;)if(1===c.nodeType)return!1;return!0;case"nth":if(n=t[2],r=t[3],1===n&&0===r)return!0;if(o=t[0],a=e.parentNode,a&&(a[i]!==o||!e.nodeIndex)){for(s=0,c=a.firstChild;c;c=c.nextSibling)1===c.nodeType&&(c.nodeIndex=++s);a[i]=o}return l=e.nodeIndex-r,0===n?0===l:l%n===0&&l/n>=0}},ID:function(e,t){return 1===e.nodeType&&e.getAttribute("id")===t},TAG:function(e,t){return"*"===t&&1===e.nodeType||!!e.nodeName&&e.nodeName.toLowerCase()===t},CLASS:function(e,t){return(" "+(e.className||e.getAttribute("class"))+" ").indexOf(t)>-1},ATTR:function(e,t){var n=t[1],r=d.attr?d.attr(e,n):h.attrHandle[n]?h.attrHandle[n](e):null!=e[n]?e[n]:e.getAttribute(n),i=r+"",o=t[2],a=t[4];return null==r?"!="===o:!o&&d.attr?null!=r:"="===o?i===a:"*="===o?i.indexOf(a)>=0:"~="===o?(" "+i+" ").indexOf(a)>=0:a?"!="===o?i!==a:"^="===o?0===i.indexOf(a):"$="===o?i.substr(i.length-a.length)===a:"|="===o?i===a||i.substr(0,a.length+1)===a+"-":!1:i&&r!==!1},POS:function(e,t,n,r){var i=t[2],o=h.setFilters[i];return o?o(e,n,t,r):void 0}}},m=h.match.POS,g=function(e,t){return"\\"+(t-0+1)};for(var y in h.match)h.match[y]=new RegExp(h.match[y].source+/(?![^\[]*\])(?![^\(]*\))/.source),h.leftMatch[y]=new RegExp(/(^(?:.|\r|\n)*?)/.source+h.match[y].source.replace(/\\(\d+)/g,g));h.match.globalPOS=m;var v=function(e,t){return e=Array.prototype.slice.call(e,0),t?(t.push.apply(t,e),t):e};try{Array.prototype.slice.call(F.documentElement.childNodes,0)[0].nodeType}catch(b){v=function(e,t){var n=0,r=t||[];if("[object Array]"===a.call(e))Array.prototype.push.apply(r,e);else if("number"==typeof e.length)for(var i=e.length;i>n;n++)r.push(e[n]);else for(;e[n];n++)r.push(e[n]);return r}}var x,T;F.documentElement.compareDocumentPosition?x=function(e,t){return e===t?(s=!0,0):e.compareDocumentPosition&&t.compareDocumentPosition?4&e.compareDocumentPosition(t)?-1:1:e.compareDocumentPosition?-1:1}:(x=function(e,t){if(e===t)return s=!0,0;if(e.sourceIndex&&t.sourceIndex)return e.sourceIndex-t.sourceIndex;var n,r,i=[],o=[],a=e.parentNode,l=t.parentNode,u=a;if(a===l)return T(e,t);if(!a)return-1;if(!l)return 1;for(;u;)i.unshift(u),u=u.parentNode;for(u=l;u;)o.unshift(u),u=u.parentNode;n=i.length,r=o.length;for(var c=0;n>c&&r>c;c++)if(i[c]!==o[c])return T(i[c],o[c]);return c===n?T(e,o[c],-1):T(i[c],t,1)},T=function(e,t,n){if(e===t)return n;for(var r=e.nextSibling;r;){if(r===t)return-1;r=r.nextSibling}return 1}),function(){var e=F.createElement("div"),n="script"+(new Date).getTime(),r=F.documentElement;e.innerHTML="",r.insertBefore(e,r.firstChild),F.getElementById(n)&&(h.find.ID=function(e,n,r){if("undefined"!=typeof n.getElementById&&!r){var i=n.getElementById(e[1]);return i?i.id===e[1]||"undefined"!=typeof i.getAttributeNode&&i.getAttributeNode("id").nodeValue===e[1]?[i]:t:[]}},h.filter.ID=function(e,t){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return 1===e.nodeType&&n&&n.nodeValue===t}),r.removeChild(e),r=e=null}(),function(){var e=F.createElement("div");e.appendChild(F.createComment("")),e.getElementsByTagName("*").length>0&&(h.find.TAG=function(e,t){var n=t.getElementsByTagName(e[1]);if("*"===e[1]){for(var r=[],i=0;n[i];i++)1===n[i].nodeType&&r.push(n[i]);n=r}return n}),e.innerHTML="",e.firstChild&&"undefined"!=typeof e.firstChild.getAttribute&&"#"!==e.firstChild.getAttribute("href")&&(h.attrHandle.href=function(e){return e.getAttribute("href",2)}),e=null}(),F.querySelectorAll&&!function(){var e=d,t=F.createElement("div"),n="__sizzle__";if(t.innerHTML="

",!t.querySelectorAll||0!==t.querySelectorAll(".TEST").length){d=function(t,r,i,o){if(r=r||F,!o&&!d.isXML(r)){var a=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(t);if(a&&(1===r.nodeType||9===r.nodeType)){if(a[1])return v(r.getElementsByTagName(t),i);if(a[2]&&h.find.CLASS&&r.getElementsByClassName)return v(r.getElementsByClassName(a[2]),i)}if(9===r.nodeType){if("body"===t&&r.body)return v([r.body],i);if(a&&a[3]){var s=r.getElementById(a[3]);if(!s||!s.parentNode)return v([],i);if(s.id===a[3])return v([s],i)}try{return v(r.querySelectorAll(t),i)}catch(l){}}else if(1===r.nodeType&&"object"!==r.nodeName.toLowerCase()){var u=r,c=r.getAttribute("id"),f=c||n,p=r.parentNode,m=/^\s*[+~]/.test(t);c?f=f.replace(/'/g,"\\$&"):r.setAttribute("id",f),m&&p&&(r=r.parentNode);try{if(!m||p)return v(r.querySelectorAll("[id='"+f+"'] "+t),i)}catch(g){}finally{c||u.removeAttribute("id")}}}return e(t,r,i,o)};for(var r in e)d[r]=e[r];t=null}}(),function(){var e=F.documentElement,t=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(t){var n=!t.call(F.createElement("div"),"div"),r=!1;try{t.call(F.documentElement,"[test!='']:sizzle")}catch(i){r=!0}d.matchesSelector=function(e,i){if(i=i.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!d.isXML(e))try{if(r||!h.match.PSEUDO.test(i)&&!/!=/.test(i)){var o=t.call(e,i);if(o||!n||e.document&&11!==e.document.nodeType)return o}}catch(a){}return d(i,null,null,[e]).length>0}}}(),function(){var e=F.createElement("div");e.innerHTML="
",e.getElementsByClassName&&0!==e.getElementsByClassName("e").length&&(e.lastChild.className="e",1!==e.getElementsByClassName("e").length&&(h.order.splice(1,0,"CLASS"),h.find.CLASS=function(e,t,n){return"undefined"==typeof t.getElementsByClassName||n?void 0:t.getElementsByClassName(e[1])},e=null))}(),d.contains=F.documentElement.contains?function(e,t){return e!==t&&(e.contains?e.contains(t):!0)}:F.documentElement.compareDocumentPosition?function(e,t){return!!(16&e.compareDocumentPosition(t))}:function(){return!1},d.isXML=function(e){var t=(e?e.ownerDocument||e:0).documentElement;return t?"HTML"!==t.nodeName:!1};var w=function(e,t,n){for(var r,i=[],o="",a=t.nodeType?[t]:t;r=h.match.PSEUDO.exec(e);)o+=r[0],e=e.replace(h.match.PSEUDO,"");e=h.relative[e]?e+"*":e;for(var s=0,l=a.length;l>s;s++)d(e,a[s],i,n);return d.filter(o,i)};d.attr=H.attr,d.selectors.attrMap={},H.find=d,H.expr=d.selectors,H.expr[":"]=H.expr.filters,H.unique=d.uniqueSort,H.text=d.getText,H.isXMLDoc=d.isXML,H.contains=d.contains}();var st=/Until$/,lt=/^(?:parents|prevUntil|prevAll)/,ut=/,/,ct=/^.[^:#\[\.,]*$/,ft=Array.prototype.slice,dt=H.expr.match.globalPOS,pt={children:!0,contents:!0,next:!0,prev:!0};H.fn.extend({find:function(e){var t,n,r=this;if("string"!=typeof e)return H(e).filter(function(){for(t=0,n=r.length;n>t;t++)if(H.contains(r[t],this))return!0});var i,o,a,s=this.pushStack("","find",e);for(t=0,n=this.length;n>t;t++)if(i=s.length,H.find(e,this[t],s),t>0)for(o=i;oa;a++)if(s[a]===s[o]){s.splice(o--,1);break}return s},has:function(e){var t=H(e);return this.filter(function(){for(var e=0,n=t.length;n>e;e++)if(H.contains(this,t[e]))return!0})},not:function(e){return this.pushStack(u(this,e,!1),"not",e)},filter:function(e){return this.pushStack(u(this,e,!0),"filter",e)},is:function(e){return!!e&&("string"==typeof e?dt.test(e)?H(e,this.context).index(this[0])>=0:H.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,r,i=[],o=this[0];if(H.isArray(e)){for(var a=1;o&&o.ownerDocument&&o!==t;){for(n=0;nn;n++)for(o=this[n];o;){if(s?s.index(o)>-1:H.find.matchesSelector(o,e)){i.push(o);break}if(o=o.parentNode,!o||!o.ownerDocument||o===t||11===o.nodeType)break}return i=i.length>1?H.unique(i):i,this.pushStack(i,"closest",e)},index:function(e){return e?"string"==typeof e?H.inArray(this[0],H(e)):H.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,t){var n="string"==typeof e?H(e,t):H.makeArray(e&&e.nodeType?[e]:e),r=H.merge(this.get(),n);return this.pushStack(l(n[0])||l(r[0])?r:H.unique(r))},andSelf:function(){return this.add(this.prevObject)}}),H.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return H.dir(e,"parentNode")},parentsUntil:function(e,t,n){return H.dir(e,"parentNode",n)},next:function(e){return H.nth(e,2,"nextSibling")},prev:function(e){return H.nth(e,2,"previousSibling")},nextAll:function(e){return H.dir(e,"nextSibling")},prevAll:function(e){return H.dir(e,"previousSibling")},nextUntil:function(e,t,n){return H.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return H.dir(e,"previousSibling",n)},siblings:function(e){return H.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return H.sibling(e.firstChild)},contents:function(e){return H.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:H.makeArray(e.childNodes)}},function(e,t){H.fn[e]=function(n,r){var i=H.map(this,t,n);return st.test(e)||(r=n),r&&"string"==typeof r&&(i=H.filter(r,i)),i=this.length>1&&!pt[e]?H.unique(i):i,(this.length>1||ut.test(r))&<.test(e)&&(i=i.reverse()),this.pushStack(i,e,ft.call(arguments).join(","))}}),H.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),1===t.length?H.find.matchesSelector(t[0],e)?[t[0]]:[]:H.find.matches(e,t)},dir:function(e,n,r){for(var i=[],o=e[n];o&&9!==o.nodeType&&(r===t||1!==o.nodeType||!H(o).is(r));)1===o.nodeType&&i.push(o),o=o[n];return i},nth:function(e,t,n){t=t||1;for(var r=0;e&&(1!==e.nodeType||++r!==t);e=e[n]);return e},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});var ht="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",mt=/ jQuery\d+="(?:\d+|null)"/g,gt=/^\s+/,yt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,vt=/<([\w:]+)/,bt=/]","i"),Ct=/checked\s*(?:[^=]|=\s*.checked.)/i,Et=/\/(java|ecma)script/i,kt=/^\s*",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},At=c(F);St.optgroup=St.option,St.tbody=St.tfoot=St.colgroup=St.caption=St.thead,St.th=St.td,H.support.htmlSerialize||(St._default=[1,"div
","
"]),H.fn.extend({text:function(e){return H.access(this,function(e){return e===t?H.text(this):this.empty().append((this[0]&&this[0].ownerDocument||F).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(H.isFunction(e))return this.each(function(t){H(this).wrapAll(e.call(this,t))});if(this[0]){var t=H(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return H.isFunction(e)?this.each(function(t){H(this).wrapInner(e.call(this,t))}):this.each(function(){var t=H(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=H.isFunction(e);return this.each(function(n){H(this).wrapAll(t?e.call(this,n):e) })},unwrap:function(){return this.parent().each(function(){H.nodeName(this,"body")||H(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){1===this.nodeType&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){1===this.nodeType&&this.insertBefore(e,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this)});if(arguments.length){var e=H.clean(arguments);return e.push.apply(e,this.toArray()),this.pushStack(e,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this.nextSibling)});if(arguments.length){var e=this.pushStack(this,"after",arguments);return e.push.apply(e,H.clean(arguments)),e}},remove:function(e,t){for(var n,r=0;null!=(n=this[r]);r++)(!e||H.filter(e,[n]).length)&&(t||1!==n.nodeType||(H.cleanData(n.getElementsByTagName("*")),H.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)for(1===e.nodeType&&H.cleanData(e.getElementsByTagName("*"));e.firstChild;)e.removeChild(e.firstChild);return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return H.clone(this,e,t)})},html:function(e){return H.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(mt,""):null;if(!("string"!=typeof e||Tt.test(e)||!H.support.leadingWhitespace&>.test(e)||St[(vt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(yt,"<$1>");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(H.cleanData(n.getElementsByTagName("*")),n.innerHTML=e);n=0}catch(o){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(e){return this[0]&&this[0].parentNode?H.isFunction(e)?this.each(function(t){var n=H(this),r=n.html();n.replaceWith(e.call(this,t,r))}):("string"!=typeof e&&(e=H(e).detach()),this.each(function(){var t=this.nextSibling,n=this.parentNode;H(this).remove(),t?H(t).before(e):H(n).append(e)})):this.length?this.pushStack(H(H.isFunction(e)?e():e),"replaceWith",e):this},detach:function(e){return this.remove(e,!0)},domManip:function(e,n,r){var i,o,a,s,l=e[0],u=[];if(!H.support.checkClone&&3===arguments.length&&"string"==typeof l&&Ct.test(l))return this.each(function(){H(this).domManip(e,n,r,!0)});if(H.isFunction(l))return this.each(function(i){var o=H(this);e[0]=l.call(this,i,n?o.html():t),o.domManip(e,n,r)});if(this[0]){if(s=l&&l.parentNode,i=H.support.parentNode&&s&&11===s.nodeType&&s.childNodes.length===this.length?{fragment:s}:H.buildFragment(e,this,u),a=i.fragment,o=1===a.childNodes.length?a=a.firstChild:a.firstChild){n=n&&H.nodeName(o,"tr");for(var c=0,d=this.length,p=d-1;d>c;c++)r.call(n?f(this[c],o):this[c],i.cacheable||d>1&&p>c?H.clone(a,!0,!0):a)}u.length&&H.each(u,function(e,t){t.src?H.ajax({type:"GET",global:!1,url:t.src,async:!1,dataType:"script"}):H.globalEval((t.text||t.textContent||t.innerHTML||"").replace(kt,"/*$0*/")),t.parentNode&&t.parentNode.removeChild(t)})}return this}}),H.buildFragment=function(e,t,n){var r,i,o,a,s=e[0];return t&&t[0]&&(a=t[0].ownerDocument||t[0]),a.createDocumentFragment||(a=F),!(1===e.length&&"string"==typeof s&&s.length<512&&a===F&&"<"===s.charAt(0))||wt.test(s)||!H.support.checkClone&&Ct.test(s)||!H.support.html5Clone&&Nt.test(s)||(i=!0,o=H.fragments[s],o&&1!==o&&(r=o)),r||(r=a.createDocumentFragment(),H.clean(e,a,r,n)),i&&(H.fragments[s]=o?r:1),{fragment:r,cacheable:i}},H.fragments={},H.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){H.fn[e]=function(n){var r=[],i=H(n),o=1===this.length&&this[0].parentNode;if(o&&11===o.nodeType&&1===o.childNodes.length&&1===i.length)return i[t](this[0]),this;for(var a=0,s=i.length;s>a;a++){var l=(a>0?this.clone(!0):this).get();H(i[a])[t](l),r=r.concat(l)}return this.pushStack(r,e,i.selector)}}),H.extend({clone:function(e,t,n){var r,i,o,a=H.support.html5Clone||H.isXMLDoc(e)||!Nt.test("<"+e.nodeName+">")?e.cloneNode(!0):y(e);if(!(H.support.noCloneEvent&&H.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||H.isXMLDoc(e)))for(p(e,a),r=h(e),i=h(a),o=0;r[o];++o)i[o]&&p(r[o],i[o]);if(t&&(d(e,a),n))for(r=h(e),i=h(a),o=0;r[o];++o)d(r[o],i[o]);return r=i=null,a},clean:function(e,t,n,r){var i,o,a,s=[];t=t||F,"undefined"==typeof t.createElement&&(t=t.ownerDocument||t[0]&&t[0].ownerDocument||F);for(var l,u=0;null!=(l=e[u]);u++)if("number"==typeof l&&(l+=""),l){if("string"==typeof l)if(xt.test(l)){l=l.replace(yt,"<$1>");var f,d=(vt.exec(l)||["",""])[1].toLowerCase(),p=St[d]||St._default,h=p[0],m=t.createElement("div"),y=At.childNodes;for(t===F?At.appendChild(m):c(t).appendChild(m),m.innerHTML=p[1]+l+p[2];h--;)m=m.lastChild;if(!H.support.tbody){var v=bt.test(l),b="table"!==d||v?""!==p[1]||v?[]:m.childNodes:m.firstChild&&m.firstChild.childNodes;for(a=b.length-1;a>=0;--a)H.nodeName(b[a],"tbody")&&!b[a].childNodes.length&&b[a].parentNode.removeChild(b[a])}!H.support.leadingWhitespace&>.test(l)&&m.insertBefore(t.createTextNode(gt.exec(l)[0]),m.firstChild),l=m.childNodes,m&&(m.parentNode.removeChild(m),y.length>0&&(f=y[y.length-1],f&&f.parentNode&&f.parentNode.removeChild(f)))}else l=t.createTextNode(l);var x;if(!H.support.appendChecked)if(l[0]&&"number"==typeof(x=l.length))for(a=0;x>a;a++)g(l[a]);else g(l);l.nodeType?s.push(l):s=H.merge(s,l)}if(n)for(i=function(e){return!e.type||Et.test(e.type)},u=0;s[u];u++)if(o=s[u],r&&H.nodeName(o,"script")&&(!o.type||Et.test(o.type)))r.push(o.parentNode?o.parentNode.removeChild(o):o);else{if(1===o.nodeType){var T=H.grep(o.getElementsByTagName("script"),i);s.splice.apply(s,[u+1,0].concat(T))}n.appendChild(o)}return s},cleanData:function(e){for(var t,n,r,i=H.cache,o=H.event.special,a=H.support.deleteExpando,s=0;null!=(r=e[s]);s++)if((!r.nodeName||!H.noData[r.nodeName.toLowerCase()])&&(n=r[H.expando])){if(t=i[n],t&&t.events){for(var l in t.events)o[l]?H.event.remove(r,l):H.removeEvent(r,l,t.handle);t.handle&&(t.handle.elem=null)}a?delete r[H.expando]:r.removeAttribute&&r.removeAttribute(H.expando),delete i[n]}}});var Lt,Dt,jt,Ft=/alpha\([^)]*\)/i,Mt=/opacity=([^)]*)/,_t=/([A-Z]|^ms)/g,Ht=/^[\-+]?(?:\d*\.)?\d+$/i,Ot=/^-?(?:\d*\.)?\d+(?!px)[^\d\s]+$/i,Bt=/^([\-+])=([\-+.\de]+)/,Pt=/^margin/,qt={position:"absolute",visibility:"hidden",display:"block"},Wt=["Top","Right","Bottom","Left"];H.fn.css=function(e,n){return H.access(this,function(e,n,r){return r!==t?H.style(e,n,r):H.css(e,n)},e,n,arguments.length>1)},H.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Lt(e,"opacity");return""===n?"1":n}return e.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":H.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s=H.camelCase(n),l=e.style,u=H.cssHooks[s];if(n=H.cssProps[s]||s,r===t)return u&&"get"in u&&(o=u.get(e,!1,i))!==t?o:l[n];if(a=typeof r,"string"===a&&(o=Bt.exec(r))&&(r=+(o[1]+1)*+o[2]+parseFloat(H.css(e,n)),a="number"),!(null==r||"number"===a&&isNaN(r)||("number"!==a||H.cssNumber[s]||(r+="px"),u&&"set"in u&&(r=u.set(e,r))===t)))try{l[n]=r}catch(c){}}},css:function(e,n,r){var i,o;return n=H.camelCase(n),o=H.cssHooks[n],n=H.cssProps[n]||n,"cssFloat"===n&&(n="float"),o&&"get"in o&&(i=o.get(e,!0,r))!==t?i:Lt?Lt(e,n):void 0},swap:function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];r=n.call(e);for(i in t)e.style[i]=o[i];return r}}),H.curCSS=H.css,F.defaultView&&F.defaultView.getComputedStyle&&(Dt=function(e,t){var n,r,i,o,a=e.style;return t=t.replace(_t,"-$1").toLowerCase(),(r=e.ownerDocument.defaultView)&&(i=r.getComputedStyle(e,null))&&(n=i.getPropertyValue(t),""!==n||H.contains(e.ownerDocument.documentElement,e)||(n=H.style(e,t))),!H.support.pixelMargin&&i&&Pt.test(t)&&Ot.test(n)&&(o=a.width,a.width=n,n=i.width,a.width=o),n}),F.documentElement.currentStyle&&(jt=function(e,t){var n,r,i,o=e.currentStyle&&e.currentStyle[t],a=e.style;return null==o&&a&&(i=a[t])&&(o=i),Ot.test(o)&&(n=a.left,r=e.runtimeStyle&&e.runtimeStyle.left,r&&(e.runtimeStyle.left=e.currentStyle.left),a.left="fontSize"===t?"1em":o,o=a.pixelLeft+"px",a.left=n,r&&(e.runtimeStyle.left=r)),""===o?"auto":o}),Lt=Dt||jt,H.each(["height","width"],function(e,t){H.cssHooks[t]={get:function(e,n,r){return n?0!==e.offsetWidth?v(e,t,r):H.swap(e,qt,function(){return v(e,t,r)}):void 0},set:function(e,t){return Ht.test(t)?t+"px":t}}}),H.support.opacity||(H.cssHooks.opacity={get:function(e,t){return Mt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?parseFloat(RegExp.$1)/100+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=H.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,t>=1&&""===H.trim(o.replace(Ft,""))&&(n.removeAttribute("filter"),r&&!r.filter)||(n.filter=Ft.test(o)?o.replace(Ft,i):o+" "+i)}}),H(function(){H.support.reliableMarginRight||(H.cssHooks.marginRight={get:function(e,t){return H.swap(e,{display:"inline-block"},function(){return t?Lt(e,"margin-right"):e.style.marginRight})}})}),H.expr&&H.expr.filters&&(H.expr.filters.hidden=function(e){var t=e.offsetWidth,n=e.offsetHeight;return 0===t&&0===n||!H.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||H.css(e,"display"))},H.expr.filters.visible=function(e){return!H.expr.filters.hidden(e)}),H.each({margin:"",padding:"",border:"Width"},function(e,t){H.cssHooks[e+t]={expand:function(n){var r,i="string"==typeof n?n.split(" "):[n],o={};for(r=0;4>r;r++)o[e+Wt[r]+t]=i[r]||i[r-2]||i[0];return o}}});var It,$t,Rt=/%20/g,Xt=/\[\]$/,zt=/\r?\n/g,Vt=/#.*$/,Ut=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Gt=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Yt=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,Jt=/^(?:GET|HEAD)$/,Qt=/^\/\//,Kt=/\?/,Zt=/)<[^<]*)*<\/script>/gi,en=/^(?:select|textarea)/i,tn=/\s+/,nn=/([?&])_=[^&]*/,rn=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,on=H.fn.load,an={},sn={},ln=["*/"]+["*"];try{It=_.href}catch(un){It=F.createElement("a"),It.href="",It=It.href}$t=rn.exec(It.toLowerCase())||[],H.fn.extend({load:function(e,n,r){if("string"!=typeof e&&on)return on.apply(this,arguments);if(!this.length)return this;var i=e.indexOf(" ");if(i>=0){var o=e.slice(i,e.length);e=e.slice(0,i)}var a="GET";n&&(H.isFunction(n)?(r=n,n=t):"object"==typeof n&&(n=H.param(n,H.ajaxSettings.traditional),a="POST"));var s=this;return H.ajax({url:e,type:a,dataType:"html",data:n,complete:function(e,t,n){n=e.responseText,e.isResolved()&&(e.done(function(e){n=e}),s.html(o?H("
").append(n.replace(Zt,"")).find(o):n)),r&&s.each(r,[n,t,e])}}),this},serialize:function(){return H.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?H.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||en.test(this.nodeName)||Gt.test(this.type))}).map(function(e,t){var n=H(this).val();return null==n?null:H.isArray(n)?H.map(n,function(e){return{name:t.name,value:e.replace(zt,"\r\n")}}):{name:t.name,value:n.replace(zt,"\r\n")}}).get()}}),H.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,t){H.fn[t]=function(e){return this.on(t,e)}}),H.each(["get","post"],function(e,n){H[n]=function(e,r,i,o){return H.isFunction(r)&&(o=o||i,i=r,r=t),H.ajax({type:n,url:e,data:r,success:i,dataType:o})}}),H.extend({getScript:function(e,n){return H.get(e,t,n,"script")},getJSON:function(e,t,n){return H.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?T(e,H.ajaxSettings):(t=e,e=H.ajaxSettings),T(e,t),e},ajaxSettings:{url:It,isLocal:Yt.test($t[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":ln},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":H.parseJSON,"text xml":H.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:b(an),ajaxTransport:b(sn),ajax:function(e,n){function r(e,n,r,a){if(2!==T){T=2,l&&clearTimeout(l),s=t,o=a||"",w.readyState=e>0?4:0;var u,f,v,b,x,E=n,k=r?N(d,w,r):t;if(e>=200&&300>e||304===e)if(d.ifModified&&((b=w.getResponseHeader("Last-Modified"))&&(H.lastModified[i]=b),(x=w.getResponseHeader("Etag"))&&(H.etag[i]=x)),304===e)E="notmodified",u=!0;else try{f=C(d,k),E="success",u=!0}catch(S){E="parsererror",v=S}else v=E,(!E||e)&&(E="error",0>e&&(e=0));w.status=e,w.statusText=""+(n||E),u?m.resolveWith(p,[f,E,w]):m.rejectWith(p,[w,E,v]),w.statusCode(y),y=t,c&&h.trigger("ajax"+(u?"Success":"Error"),[w,d,u?f:v]),g.fireWith(p,[w,E]),c&&(h.trigger("ajaxComplete",[w,d]),--H.active||H.event.trigger("ajaxStop"))}}"object"==typeof e&&(n=e,e=t),n=n||{};var i,o,a,s,l,u,c,f,d=H.ajaxSetup({},n),p=d.context||d,h=p!==d&&(p.nodeType||p instanceof H)?H(p):H.event,m=H.Deferred(),g=H.Callbacks("once memory"),y=d.statusCode||{},v={},b={},T=0,w={readyState:0,setRequestHeader:function(e,t){if(!T){var n=e.toLowerCase();e=b[n]=b[n]||e,v[e]=t}return this},getAllResponseHeaders:function(){return 2===T?o:null},getResponseHeader:function(e){var n;if(2===T){if(!a)for(a={};n=Ut.exec(o);)a[n[1].toLowerCase()]=n[2];n=a[e.toLowerCase()]}return n===t?null:n},overrideMimeType:function(e){return T||(d.mimeType=e),this},abort:function(e){return e=e||"abort",s&&s.abort(e),r(0,e),this}};if(m.promise(w),w.success=w.done,w.error=w.fail,w.complete=g.add,w.statusCode=function(e){if(e){var t;if(2>T)for(t in e)y[t]=[y[t],e[t]];else t=e[w.status],w.then(t,t)}return this},d.url=((e||d.url)+"").replace(Vt,"").replace(Qt,$t[1]+"//"),d.dataTypes=H.trim(d.dataType||"*").toLowerCase().split(tn),null==d.crossDomain&&(u=rn.exec(d.url.toLowerCase()),d.crossDomain=!(!u||u[1]==$t[1]&&u[2]==$t[2]&&(u[3]||("http:"===u[1]?80:443))==($t[3]||("http:"===$t[1]?80:443)))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=H.param(d.data,d.traditional)),x(an,d,n,w),2===T)return!1;if(c=d.global,d.type=d.type.toUpperCase(),d.hasContent=!Jt.test(d.type),c&&0===H.active++&&H.event.trigger("ajaxStart"),!d.hasContent&&(d.data&&(d.url+=(Kt.test(d.url)?"&":"?")+d.data,delete d.data),i=d.url,d.cache===!1)){var E=H.now(),k=d.url.replace(nn,"$1_="+E);d.url=k+(k===d.url?(Kt.test(d.url)?"&":"?")+"_="+E:"")}(d.data&&d.hasContent&&d.contentType!==!1||n.contentType)&&w.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(i=i||d.url,H.lastModified[i]&&w.setRequestHeader("If-Modified-Since",H.lastModified[i]),H.etag[i]&&w.setRequestHeader("If-None-Match",H.etag[i])),w.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+ln+"; q=0.01":""):d.accepts["*"]);for(f in d.headers)w.setRequestHeader(f,d.headers[f]);if(d.beforeSend&&(d.beforeSend.call(p,w,d)===!1||2===T))return w.abort(),!1;for(f in{success:1,error:1,complete:1})w[f](d[f]);if(s=x(sn,d,n,w)){w.readyState=1,c&&h.trigger("ajaxSend",[w,d]),d.async&&d.timeout>0&&(l=setTimeout(function(){w.abort("timeout")},d.timeout));try{T=1,s.send(v,r)}catch(S){if(!(2>T))throw S;r(-1,S)}}else r(-1,"No Transport");return w},param:function(e,n){var r=[],i=function(e,t){t=H.isFunction(t)?t():t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=H.ajaxSettings.traditional),H.isArray(e)||e.jquery&&!H.isPlainObject(e))H.each(e,function(){i(this.name,this.value)});else for(var o in e)w(o,e[o],n,i);return r.join("&").replace(Rt,"+")}}),H.extend({active:0,lastModified:{},etag:{}});var cn=H.now(),fn=/(\=)\?(&|$)|\?\?/i;H.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return H.expando+"_"+cn++}}),H.ajaxPrefilter("json jsonp",function(t,n,r){var i="string"==typeof t.data&&/^application\/x\-www\-form\-urlencoded/.test(t.contentType);if("jsonp"===t.dataTypes[0]||t.jsonp!==!1&&(fn.test(t.url)||i&&fn.test(t.data))){var o,a=t.jsonpCallback=H.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s=e[a],l=t.url,u=t.data,c="$1"+a+"$2";return t.jsonp!==!1&&(l=l.replace(fn,c),t.url===l&&(i&&(u=u.replace(fn,c)),t.data===u&&(l+=(/\?/.test(l)?"&":"?")+t.jsonp+"="+a))),t.url=l,t.data=u,e[a]=function(e){o=[e]},r.always(function(){e[a]=s,o&&H.isFunction(s)&&e[a](o[0])}),t.converters["script json"]=function(){return o||H.error(a+" was not called"),o[0]},t.dataTypes[0]="json","script"}}),H.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return H.globalEval(e),e}}}),H.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),H.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=F.head||F.getElementsByTagName("head")[0]||F.documentElement;return{send:function(i,o){n=F.createElement("script"),n.async="async",e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,i){(i||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,r&&n.parentNode&&r.removeChild(n),n=t,i||o(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(0,1)}}}});var dn,pn=e.ActiveXObject?function(){for(var e in dn)dn[e](0,1)}:!1,hn=0;H.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&E()||k()}:E,function(e){H.extend(H.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})}(H.ajaxSettings.xhr()),H.support.ajax&&H.ajaxTransport(function(n){if(!n.crossDomain||H.support.cors){var r;return{send:function(i,o){var a,s,l=n.xhr();if(n.username?l.open(n.type,n.url,n.async,n.username,n.password):l.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)l[s]=n.xhrFields[s];n.mimeType&&l.overrideMimeType&&l.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");try{for(s in i)l.setRequestHeader(s,i[s])}catch(u){}l.send(n.hasContent&&n.data||null),r=function(e,i){var s,u,c,f,d;try{if(r&&(i||4===l.readyState))if(r=t,a&&(l.onreadystatechange=H.noop,pn&&delete dn[a]),i)4!==l.readyState&&l.abort();else{s=l.status,c=l.getAllResponseHeaders(),f={},d=l.responseXML,d&&d.documentElement&&(f.xml=d);try{f.text=l.responseText}catch(e){}try{u=l.statusText}catch(p){u=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=f.text?200:404}}catch(h){i||o(-1,h)}f&&o(s,u,f,c)},n.async&&4!==l.readyState?(a=++hn,pn&&(dn||(dn={},H(e).unload(pn)),dn[a]=r),l.onreadystatechange=r):r()},abort:function(){r&&r(0,1)}}}});var mn,gn,yn,vn,bn={},xn=/^(?:toggle|show|hide)$/,Tn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,wn=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];H.fn.extend({show:function(e,t,n){var r,i;if(e||0===e)return this.animate(L("show",3),e,t,n);for(var o=0,a=this.length;a>o;o++)r=this[o],r.style&&(i=r.style.display,H._data(r,"olddisplay")||"none"!==i||(i=r.style.display=""),(""===i&&"none"===H.css(r,"display")||!H.contains(r.ownerDocument.documentElement,r))&&H._data(r,"olddisplay",D(r.nodeName)));for(o=0;a>o;o++)r=this[o],r.style&&(i=r.style.display,(""===i||"none"===i)&&(r.style.display=H._data(r,"olddisplay")||""));return this},hide:function(e,t,n){if(e||0===e)return this.animate(L("hide",3),e,t,n);for(var r,i,o=0,a=this.length;a>o;o++)r=this[o],r.style&&(i=H.css(r,"display"),"none"===i||H._data(r,"olddisplay")||H._data(r,"olddisplay",i));for(o=0;a>o;o++)this[o].style&&(this[o].style.display="none");return this},_toggle:H.fn.toggle,toggle:function(e,t,n){var r="boolean"==typeof e;return H.isFunction(e)&&H.isFunction(t)?this._toggle.apply(this,arguments):null==e||r?this.each(function(){var t=r?e:H(this).is(":hidden");H(this)[t?"show":"hide"]()}):this.animate(L("toggle",3),e,t,n),this},fadeTo:function(e,t,n,r){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){function i(){o.queue===!1&&H._mark(this);var t,n,r,i,a,s,l,u,c,f,d,p=H.extend({},o),h=1===this.nodeType,m=h&&H(this).is(":hidden");p.animatedProperties={};for(r in e)if(t=H.camelCase(r),r!==t&&(e[t]=e[r],delete e[r]),(a=H.cssHooks[t])&&"expand"in a){s=a.expand(e[t]),delete e[t];for(r in s)r in e||(e[r]=s[r])}for(t in e){if(n=e[t],H.isArray(n)?(p.animatedProperties[t]=n[1],n=e[t]=n[0]):p.animatedProperties[t]=p.specialEasing&&p.specialEasing[t]||p.easing||"swing","hide"===n&&m||"show"===n&&!m)return p.complete.call(this);!h||"height"!==t&&"width"!==t||(p.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],"inline"===H.css(this,"display")&&"none"===H.css(this,"float")&&(H.support.inlineBlockNeedsLayout&&"inline"!==D(this.nodeName)?this.style.zoom=1:this.style.display="inline-block"))}null!=p.overflow&&(this.style.overflow="hidden");for(r in e)i=new H.fx(this,p,r),n=e[r],xn.test(n)?(d=H._data(this,"toggle"+r)||("toggle"===n?m?"show":"hide":0),d?(H._data(this,"toggle"+r,"show"===d?"hide":"show"),i[d]()):i[n]()):(l=Tn.exec(n),u=i.cur(),l?(c=parseFloat(l[2]),f=l[3]||(H.cssNumber[r]?"":"px"),"px"!==f&&(H.style(this,r,(c||1)+f),u=(c||1)/i.cur()*u,H.style(this,r,u+f)),l[1]&&(c=("-="===l[1]?-1:1)*c+u),i.custom(u,c,f)):i.custom(u,n,""));return!0}var o=H.speed(t,n,r);return H.isEmptyObject(e)?this.each(o.complete,[!1]):(e=H.extend({},e),o.queue===!1?this.each(i):this.queue(o.queue,i))},stop:function(e,n,r){return"string"!=typeof e&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){function t(e,t,n){var i=t[n];H.removeData(e,n,!0),i.stop(r)}var n,i=!1,o=H.timers,a=H._data(this);if(r||H._unmark(!0,this),null==e)for(n in a)a[n]&&a[n].stop&&n.indexOf(".run")===n.length-4&&t(this,a,n);else a[n=e+".run"]&&a[n].stop&&t(this,a,n);for(n=o.length;n--;)o[n].elem!==this||null!=e&&o[n].queue!==e||(r?o[n](!0):o[n].saveState(),i=!0,o.splice(n,1));r&&i||H.dequeue(this,e)})}}),H.each({slideDown:L("show",1),slideUp:L("hide",1),slideToggle:L("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){H.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),H.extend({speed:function(e,t,n){var r=e&&"object"==typeof e?H.extend({},e):{complete:n||!n&&t||H.isFunction(e)&&e,duration:e,easing:n&&t||t&&!H.isFunction(t)&&t};return r.duration=H.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in H.fx.speeds?H.fx.speeds[r.duration]:H.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(e){H.isFunction(r.old)&&r.old.call(this),r.queue?H.dequeue(this,r.queue):e!==!1&&H._unmark(this)},r},easing:{linear:function(e){return e},swing:function(e){return-Math.cos(e*Math.PI)/2+.5}},timers:[],fx:function(e,t,n){this.options=t,this.elem=e,this.prop=n,t.orig=t.orig||{}}}),H.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(H.fx.step[this.prop]||H.fx.step._default)(this)},cur:function(){if(null!=this.elem[this.prop]&&(!this.elem.style||null==this.elem.style[this.prop]))return this.elem[this.prop];var e,t=H.css(this.elem,this.prop);return isNaN(e=parseFloat(t))?t&&"auto"!==t?t:0:e},custom:function(e,n,r){function i(e){return o.step(e)}var o=this,a=H.fx;this.startTime=vn||S(),this.end=n,this.now=this.start=e,this.pos=this.state=0,this.unit=r||this.unit||(H.cssNumber[this.prop]?"":"px"),i.queue=this.options.queue,i.elem=this.elem,i.saveState=function(){H._data(o.elem,"fxshow"+o.prop)===t&&(o.options.hide?H._data(o.elem,"fxshow"+o.prop,o.start):o.options.show&&H._data(o.elem,"fxshow"+o.prop,o.end))},i()&&H.timers.push(i)&&!yn&&(yn=setInterval(a.tick,a.interval))},show:function(){var e=H._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=e||H.style(this.elem,this.prop),this.options.show=!0,e!==t?this.custom(this.cur(),e):this.custom("width"===this.prop||"height"===this.prop?1:0,this.cur()),H(this.elem).show()},hide:function(){this.options.orig[this.prop]=H._data(this.elem,"fxshow"+this.prop)||H.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(e){var t,n,r,i=vn||S(),o=!0,a=this.elem,s=this.options;if(e||i>=s.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),s.animatedProperties[this.prop]=!0;for(t in s.animatedProperties)s.animatedProperties[t]!==!0&&(o=!1);if(o){if(null==s.overflow||H.support.shrinkWrapBlocks||H.each(["","X","Y"],function(e,t){a.style["overflow"+t]=s.overflow[e]}),s.hide&&H(a).hide(),s.hide||s.show)for(t in s.animatedProperties)H.style(a,t,s.orig[t]),H.removeData(a,"fxshow"+t,!0),H.removeData(a,"toggle"+t,!0);r=s.complete,r&&(s.complete=!1,r.call(a))}return!1}return 1/0==s.duration?this.now=i:(n=i-this.startTime,this.state=n/s.duration,this.pos=H.easing[s.animatedProperties[this.prop]](this.state,n,0,1,s.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},H.extend(H.fx,{tick:function(){for(var e,t=H.timers,n=0;n-1,f={},d={};c?(d=a.position(),i=d.top,o=d.left):(i=parseFloat(l)||0,o=parseFloat(u)||0),H.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(f.top=t.top-s.top+i),null!=t.left&&(f.left=t.left-s.left+o),"using"in t?t.using.call(e,f):a.css(f)}},H.fn.extend({position:function(){if(!this[0])return null;var e=this[0],t=this.offsetParent(),n=this.offset(),r=En.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(H.css(e,"marginTop"))||0,n.left-=parseFloat(H.css(e,"marginLeft"))||0,r.top+=parseFloat(H.css(t[0],"borderTopWidth"))||0,r.left+=parseFloat(H.css(t[0],"borderLeftWidth"))||0,{top:n.top-r.top,left:n.left-r.left}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||F.body;e&&!En.test(e.nodeName)&&"static"===H.css(e,"position");)e=e.offsetParent;return e})}}),H.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);H.fn[e]=function(i){return H.access(this,function(e,i,o){var a=j(e);return o===t?a?n in a?a[n]:H.support.boxModel&&a.document.documentElement[i]||a.document.body[i]:e[i]:(a?a.scrollTo(r?H(a).scrollLeft():o,r?o:H(a).scrollTop()):e[i]=o,void 0)},e,i,arguments.length,null)}}),H.each({Height:"height",Width:"width"},function(e,n){var r="client"+e,i="scroll"+e,o="offset"+e;H.fn["inner"+e]=function(){var e=this[0];return e?e.style?parseFloat(H.css(e,n,"padding")):this[n]():null},H.fn["outer"+e]=function(e){var t=this[0];return t?t.style?parseFloat(H.css(t,n,e?"margin":"border")):this[n]():null},H.fn[n]=function(e){return H.access(this,function(e,n,a){var s,l,u,c;return H.isWindow(e)?(s=e.document,l=s.documentElement[r],H.support.boxModel&&l||s.body&&s.body[r]||l):9===e.nodeType?(s=e.documentElement,s[r]>=s[i]?s[r]:Math.max(e.body[i],s[i],e.body[o],s[o])):a===t?(u=H.css(e,n),c=parseFloat(u),H.isNumeric(c)?c:u):(H(e).css(n,a),void 0)},n,e,arguments.length,null)}}),e.jQuery=e.$=H,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return H})}(window); ;!function(t,e){function i(e,i){var o,n,r,a=e.nodeName.toLowerCase();return"area"===a?(o=e.parentNode,n=o.name,e.href&&n&&"map"===o.nodeName.toLowerCase()?(r=t("img[usemap=#"+n+"]")[0],!!r&&s(r)):!1):(/input|select|textarea|button|object/.test(a)?!e.disabled:"a"===a?e.href||i:i)&&s(e)}function s(e){return t.expr.filters.visible(e)&&!t(e).parents().addBack().filter(function(){return"hidden"===t.css(this,"visibility")}).length}var o=0,n=/^ui-id-\d+$/;t.ui=t.ui||{},t.extend(t.ui,{version:"1.10.3",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({focus:function(e){return function(i,s){return"number"==typeof i?this.each(function(){var e=this;setTimeout(function(){t(e).focus(),s&&s.call(e)},i)}):e.apply(this,arguments)}}(t.fn.focus),scrollParent:function(){var e;return e=t.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(t.css(this,"position"))&&/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!e.length?t(document):e},zIndex:function(i){if(i!==e)return this.css("zIndex",i);if(this.length)for(var s,o,n=t(this[0]);n.length&&n[0]!==document;){if(s=n.css("position"),("absolute"===s||"relative"===s||"fixed"===s)&&(o=parseInt(n.css("zIndex"),10),!isNaN(o)&&0!==o))return o;n=n.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++o)})},removeUniqueId:function(){return this.each(function(){n.test(this.id)&&t(this).removeAttr("id")})}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,s){return!!t.data(e,s[3])},focusable:function(e){return i(e,!isNaN(t.attr(e,"tabindex")))},tabbable:function(e){var s=t.attr(e,"tabindex"),o=isNaN(s);return(o||s>=0)&&i(e,!o)}}),t("").outerWidth(1).jquery||t.each(["Width","Height"],function(i,s){function o(e,i,s,o){return t.each(n,function(){i-=parseFloat(t.css(e,"padding"+this))||0,s&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),o&&(i-=parseFloat(t.css(e,"margin"+this))||0)}),i}var n="Width"===s?["Left","Right"]:["Top","Bottom"],r=s.toLowerCase(),a={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+s]=function(i){return i===e?a["inner"+s].call(this):this.each(function(){t(this).css(r,o(this,i)+"px")})},t.fn["outer"+s]=function(e,i){return"number"!=typeof e?a["outer"+s].call(this,e):this.each(function(){t(this).css(r,o(this,e,!0,i)+"px")})}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t("").data("a-b","a").removeData("a-b").data("a-b")&&(t.fn.removeData=function(e){return function(i){return arguments.length?e.call(this,t.camelCase(i)):e.call(this)}}(t.fn.removeData)),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),t.support.selectstart="onselectstart"in document.createElement("div"),t.fn.extend({disableSelection:function(){return this.bind((t.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(t){t.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),t.extend(t.ui,{plugin:{add:function(e,i,s){var o,n=t.ui[e].prototype;for(o in s)n.plugins[o]=n.plugins[o]||[],n.plugins[o].push([i,s[o]])},call:function(t,e,i){var s,o=t.plugins[e];if(o&&t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType)for(s=0;s0?!0:(e[s]=1,o=e[s]>0,e[s]=0,o)}})}(jQuery),function(t,e){var i=0,s=Array.prototype.slice,o=t.cleanData;t.cleanData=function(e){for(var i,s=0;null!=(i=e[s]);s++)try{t(i).triggerHandler("remove")}catch(n){}o(e)},t.widget=function(e,i,s){var o,n,r,a,h={},l=e.split(".")[0];e=e.split(".")[1],o=l+"-"+e,s||(s=i,i=t.Widget),t.expr[":"][o.toLowerCase()]=function(e){return!!t.data(e,o)},t[l]=t[l]||{},n=t[l][e],r=t[l][e]=function(t,e){return this._createWidget?(arguments.length&&this._createWidget(t,e),void 0):new r(t,e)},t.extend(r,n,{version:s.version,_proto:t.extend({},s),_childConstructors:[]}),a=new i,a.options=t.widget.extend({},a.options),t.each(s,function(e,s){return t.isFunction(s)?(h[e]=function(){var t=function(){return i.prototype[e].apply(this,arguments)},o=function(t){return i.prototype[e].apply(this,t)};return function(){var e,i=this._super,n=this._superApply;return this._super=t,this._superApply=o,e=s.apply(this,arguments),this._super=i,this._superApply=n,e}}(),void 0):(h[e]=s,void 0)}),r.prototype=t.widget.extend(a,{widgetEventPrefix:n?a.widgetEventPrefix:e},h,{constructor:r,namespace:l,widgetName:e,widgetFullName:o}),n?(t.each(n._childConstructors,function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,r,i._proto)}),delete n._childConstructors):i._childConstructors.push(r),t.widget.bridge(e,r)},t.widget.extend=function(i){for(var o,n,r=s.call(arguments,1),a=0,h=r.length;h>a;a++)for(o in r[a])n=r[a][o],r[a].hasOwnProperty(o)&&n!==e&&(i[o]=t.isPlainObject(n)?t.isPlainObject(i[o])?t.widget.extend({},i[o],n):t.widget.extend({},n):n);return i},t.widget.bridge=function(i,o){var n=o.prototype.widgetFullName||i;t.fn[i]=function(r){var a="string"==typeof r,h=s.call(arguments,1),l=this;return r=!a&&h.length?t.widget.extend.apply(null,[r].concat(h)):r,a?this.each(function(){var s,o=t.data(this,n);return o?t.isFunction(o[r])&&"_"!==r.charAt(0)?(s=o[r].apply(o,h),s!==o&&s!==e?(l=s&&s.jquery?l.pushStack(s.get()):s,!1):void 0):t.error("no such method '"+r+"' for "+i+" widget instance"):t.error("cannot call methods on "+i+" prior to initialization; attempted to call method '"+r+"'")}):this.each(function(){var e=t.data(this,n);e?e.option(r||{})._init():t.data(this,n,new o(r,this))}),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"
",options:{disabled:!1,create:null},_createWidget:function(e,s){s=t(s||this.defaultElement||this)[0],this.element=t(s),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=t(),this.hoverable=t(),this.focusable=t(),s!==this&&(t.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===s&&this.destroy()}}),this.document=t(s.style?s.ownerDocument:s.document||s),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(i,s){var o,n,r,a=i;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof i)if(a={},o=i.split("."),i=o.shift(),o.length){for(n=a[i]=t.widget.extend({},this.options[i]),r=0;r=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(t,e){function i(t,e,i){return[parseFloat(t[0])*(u.test(t[0])?e/100:1),parseFloat(t[1])*(u.test(t[1])?i/100:1)]}function s(e,i){return parseInt(t.css(e,i),10)||0}function o(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}t.ui=t.ui||{};var n,r=Math.max,a=Math.abs,h=Math.round,l=/left|center|right/,c=/top|center|bottom/,p=/[\+\-]\d+(\.[\d]+)?%?/,f=/^\w+/,u=/%$/,d=t.fn.position;t.position={scrollbarWidth:function(){if(n!==e)return n;var i,s,o=t("
"),r=o.children()[0];return t("body").append(o),i=r.offsetWidth,o.css("overflow","scroll"),s=r.offsetWidth,i===s&&(s=o[0].clientWidth),o.remove(),n=i-s},getScrollInfo:function(e){var i=e.isWindow?"":e.element.css("overflow-x"),s=e.isWindow?"":e.element.css("overflow-y"),o="scroll"===i||"auto"===i&&e.widths?"left":i>0?"right":"center",vertical:0>n?"top":o>0?"bottom":"middle"};p>u&&a(i+s)g&&a(o+n)r(a(o),a(n))?"horizontal":"vertical",e.using.call(this,t,h)}),c.offset(t.extend(T,{using:l}))})},t.ui.position={fit:{left:function(t,e){var i,s=e.within,o=s.isWindow?s.scrollLeft:s.offset.left,n=s.width,a=t.left-e.collisionPosition.marginLeft,h=o-a,l=a+e.collisionWidth-n-o;e.collisionWidth>n?h>0&&0>=l?(i=t.left+h+e.collisionWidth-n-o,t.left+=h-i):t.left=l>0&&0>=h?o:h>l?o+n-e.collisionWidth:o:h>0?t.left+=h:l>0?t.left-=l:t.left=r(t.left-a,t.left)},top:function(t,e){var i,s=e.within,o=s.isWindow?s.scrollTop:s.offset.top,n=e.within.height,a=t.top-e.collisionPosition.marginTop,h=o-a,l=a+e.collisionHeight-n-o;e.collisionHeight>n?h>0&&0>=l?(i=t.top+h+e.collisionHeight-n-o,t.top+=h-i):t.top=l>0&&0>=h?o:h>l?o+n-e.collisionHeight:o:h>0?t.top+=h:l>0?t.top-=l:t.top=r(t.top-a,t.top)}},flip:{left:function(t,e){var i,s,o=e.within,n=o.offset.left+o.scrollLeft,r=o.width,h=o.isWindow?o.scrollLeft:o.offset.left,l=t.left-e.collisionPosition.marginLeft,c=l-h,p=l+e.collisionWidth-r-h,f="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,u="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,d=-2*e.offset[0];0>c?(i=t.left+f+u+d+e.collisionWidth-r-n,(0>i||i0&&(s=t.left-e.collisionPosition.marginLeft+f+u+d-h,(s>0||a(s)c?(s=t.top+u+d+g+e.collisionHeight-r-n,t.top+u+d+g>c&&(0>s||s0&&(i=t.top-e.collisionPosition.marginTop+u+d+g-h,t.top+u+d+g>p&&(i>0||a(i)10&&11>o,e.innerHTML="",i.removeChild(e)}()}(jQuery),function(t){t.widget("ui.draggable",t.ui.mouse,{version:"1.10.3",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"!==this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(e){var i=this.options;return this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(e),this.handle?(t(i.iframeFix===!0?"iframe":i.iframeFix).each(function(){t("
").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(t(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),this._trigger("start",e)===!1?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_mouseDrag:function(e,i){if("fixed"===this.offsetParentCssPosition&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),!i){var s=this._uiHash();if(this._trigger("drag",e,s)===!1)return this._mouseUp({}),!1;this.position=s.position}return this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,s=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(s=t.ui.ddmanager.drop(this,e)),this.dropped&&(s=this.dropped,this.dropped=!1),"original"!==this.options.helper||t.contains(this.element[0].ownerDocument,this.element[0])?("invalid"===this.options.revert&&!s||"valid"===this.options.revert&&s||this.options.revert===!0||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,s)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){i._trigger("stop",e)!==!1&&i._clear()}):this._trigger("stop",e)!==!1&&this._clear(),!1):!1},_mouseUp:function(e){return t("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){return this.options.handle?!!t(e.target).closest(this.element.find(this.options.handle)).length:!0},_createHelper:function(e){var i=this.options,s=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return s.parents("body").length||s.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),s[0]===this.element[0]||/(fixed|absolute)/.test(s.css("position"))||s.css("position","absolute"),s},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.element.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,s,o=this.options;return o.containment?"window"===o.containment?(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):"document"===o.containment?(this.containment=[0,0,t(document).width()-this.helperProportions.width-this.margins.left,(t(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):o.containment.constructor===Array?(this.containment=o.containment,void 0):("parent"===o.containment&&(o.containment=this.helper[0].parentNode),i=t(o.containment),s=i[0],s&&(e="hidden"!==i.css("overflow"),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(s.scrollWidth,s.offsetWidth):s.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(s.scrollHeight,s.offsetHeight):s.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=i),void 0):(this.containment=null,void 0)},_convertPositionTo:function(e,i){i||(i=this.position);var s="absolute"===e?1:-1,o="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent;return this.offset.scroll||(this.offset.scroll={top:o.scrollTop(),left:o.scrollLeft()}),{top:i.top+this.offset.relative.top*s+this.offset.parent.top*s-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top)*s,left:i.left+this.offset.relative.left*s+this.offset.parent.left*s-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)*s}},_generatePosition:function(e){var i,s,o,n,r=this.options,a="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,h=e.pageX,l=e.pageY;return this.offset.scroll||(this.offset.scroll={top:a.scrollTop(),left:a.scrollLeft()}),this.originalPosition&&(this.containment&&(this.relative_container?(s=this.relative_container.offset(),i=[this.containment[0]+s.left,this.containment[1]+s.top,this.containment[2]+s.left,this.containment[3]+s.top]):i=this.containment,e.pageX-this.offset.click.lefti[2]&&(h=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(l=i[3]+this.offset.click.top)),r.grid&&(o=r.grid[1]?this.originalPageY+Math.round((l-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,l=i?o-this.offset.click.top>=i[1]||o-this.offset.click.top>i[3]?o:o-this.offset.click.top>=i[1]?o-r.grid[1]:o+r.grid[1]:o,n=r.grid[0]?this.originalPageX+Math.round((h-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,h=i?n-this.offset.click.left>=i[0]||n-this.offset.click.left>i[2]?n:n-this.offset.click.left>=i[0]?n-r.grid[0]:n+r.grid[0]:n)),{top:l-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top),left:h-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(e,i,s){return s=s||this._uiHash(),t.ui.plugin.call(this,e,[i,s]),"drag"===e&&(this.positionAbs=this._convertPositionTo("absolute")),t.Widget.prototype._trigger.call(this,e,i,s)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i){var s=t(this).data("ui-draggable"),o=s.options,n=t.extend({},i,{item:s.element});s.sortables=[],t(o.connectToSortable).each(function(){var i=t.data(this,"ui-sortable");i&&!i.options.disabled&&(s.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger("activate",e,n))})},stop:function(e,i){var s=t(this).data("ui-draggable"),o=t.extend({},i,{item:s.element});t.each(s.sortables,function(){this.instance.isOver?(this.instance.isOver=0,s.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(e),this.instance.options.helper=this.instance.options._helper,"original"===s.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",e,o))})},drag:function(e,i){var s=t(this).data("ui-draggable"),o=this;t.each(s.sortables,function(){var n=!1,r=this;this.instance.positionAbs=s.positionAbs,this.instance.helperProportions=s.helperProportions,this.instance.offset.click=s.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(n=!0,t.each(s.sortables,function(){return this.instance.positionAbs=s.positionAbs,this.instance.helperProportions=s.helperProportions,this.instance.offset.click=s.offset.click,this!==r&&this.instance._intersectsWith(this.instance.containerCache)&&t.contains(r.instance.element[0],this.instance.element[0])&&(n=!1),n})),n?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=t(o).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return i.helper[0]},e.target=this.instance.currentItem[0],this.instance._mouseCapture(e,!0),this.instance._mouseStart(e,!0,!0),this.instance.offset.click.top=s.offset.click.top,this.instance.offset.click.left=s.offset.click.left,this.instance.offset.parent.left-=s.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=s.offset.parent.top-this.instance.offset.parent.top,s._trigger("toSortable",e),s.dropped=this.instance.element,s.currentItem=s.element,this.instance.fromOutside=s),this.instance.currentItem&&this.instance._mouseDrag(e)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",e,this.instance._uiHash(this.instance)),this.instance._mouseStop(e,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),s._trigger("fromSortable",e),s.dropped=!1) })}}),t.ui.plugin.add("draggable","cursor",{start:function(){var e=t("body"),i=t(this).data("ui-draggable").options;e.css("cursor")&&(i._cursor=e.css("cursor")),e.css("cursor",i.cursor)},stop:function(){var e=t(this).data("ui-draggable").options;e._cursor&&t("body").css("cursor",e._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i){var s=t(i.helper),o=t(this).data("ui-draggable").options;s.css("opacity")&&(o._opacity=s.css("opacity")),s.css("opacity",o.opacity)},stop:function(e,i){var s=t(this).data("ui-draggable").options;s._opacity&&t(i.helper).css("opacity",s._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(){var e=t(this).data("ui-draggable");e.scrollParent[0]!==document&&"HTML"!==e.scrollParent[0].tagName&&(e.overflowOffset=e.scrollParent.offset())},drag:function(e){var i=t(this).data("ui-draggable"),s=i.options,o=!1;i.scrollParent[0]!==document&&"HTML"!==i.scrollParent[0].tagName?(s.axis&&"x"===s.axis||(i.overflowOffset.top+i.scrollParent[0].offsetHeight-e.pageY=0;p--)a=u.snapElements[p].left,h=a+u.snapElements[p].width,l=u.snapElements[p].top,c=l+u.snapElements[p].height,a-g>v||m>h+g||l-g>b||_>c+g||!t.contains(u.snapElements[p].item.ownerDocument,u.snapElements[p].item)?(u.snapElements[p].snapping&&u.options.snap.release&&u.options.snap.release.call(u.element,e,t.extend(u._uiHash(),{snapItem:u.snapElements[p].item})),u.snapElements[p].snapping=!1):("inner"!==d.snapMode&&(s=Math.abs(l-b)<=g,o=Math.abs(c-_)<=g,n=Math.abs(a-v)<=g,r=Math.abs(h-m)<=g,s&&(i.position.top=u._convertPositionTo("relative",{top:l-u.helperProportions.height,left:0}).top-u.margins.top),o&&(i.position.top=u._convertPositionTo("relative",{top:c,left:0}).top-u.margins.top),n&&(i.position.left=u._convertPositionTo("relative",{top:0,left:a-u.helperProportions.width}).left-u.margins.left),r&&(i.position.left=u._convertPositionTo("relative",{top:0,left:h}).left-u.margins.left)),f=s||o||n||r,"outer"!==d.snapMode&&(s=Math.abs(l-_)<=g,o=Math.abs(c-b)<=g,n=Math.abs(a-m)<=g,r=Math.abs(h-v)<=g,s&&(i.position.top=u._convertPositionTo("relative",{top:l,left:0}).top-u.margins.top),o&&(i.position.top=u._convertPositionTo("relative",{top:c-u.helperProportions.height,left:0}).top-u.margins.top),n&&(i.position.left=u._convertPositionTo("relative",{top:0,left:a}).left-u.margins.left),r&&(i.position.left=u._convertPositionTo("relative",{top:0,left:h-u.helperProportions.width}).left-u.margins.left)),!u.snapElements[p].snapping&&(s||o||n||r||f)&&u.options.snap.snap&&u.options.snap.snap.call(u.element,e,t.extend(u._uiHash(),{snapItem:u.snapElements[p].item})),u.snapElements[p].snapping=s||o||n||r||f)}}),t.ui.plugin.add("draggable","stack",{start:function(){var e,i=this.data("ui-draggable").options,s=t.makeArray(t(i.stack)).sort(function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)});s.length&&(e=parseInt(t(s[0]).css("zIndex"),10)||0,t(s).each(function(i){t(this).css("zIndex",e+i)}),this.css("zIndex",e+s.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i){var s=t(i.helper),o=t(this).data("ui-draggable").options;s.css("zIndex")&&(o._zIndex=s.css("zIndex")),s.css("zIndex",o.zIndex)},stop:function(e,i){var s=t(this).data("ui-draggable").options;s._zIndex&&t(i.helper).css("zIndex",s._zIndex)}})}(jQuery),function(t){function e(t,e,i){return t>e&&e+i>t}function i(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))}t.widget("ui.sortable",t.ui.mouse,{version:"1.10.3",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var t=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=this.items.length?"x"===t.axis||i(this.items[0].item):!1,this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_setOption:function(e,i){"disabled"===e?(this.options[e]=i,this.widget().toggleClass("ui-sortable-disabled",!!i)):t.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(e,i){var s=null,o=!1,n=this;return this.reverting?!1:this.options.disabled||"static"===this.options.type?!1:(this._refreshItems(e),t(e.target).parents().each(function(){return t.data(this,n.widgetName+"-item")===n?(s=t(this),!1):void 0}),t.data(e.target,n.widgetName+"-item")===n&&(s=t(e.target)),s?!this.options.handle||i||(t(this.options.handle,s).find("*").addBack().each(function(){this===e.target&&(o=!0)}),o)?(this.currentItem=s,this._removeCurrentsFromItems(),!0):!1:!1)},_mouseStart:function(e,i,s){var o,n,r=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(n=this.document.find("body"),this.storedCursor=n.css("cursor"),n.css("cursor",r.cursor),this.storedStylesheet=t("").appendTo(n)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!s)for(o=this.containers.length-1;o>=0;o--)this.containers[o]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,s,o,n,r=this.options,a=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY=0;i--)if(s=this.items[i],o=s.item[0],n=this._intersectsWithPointer(s),n&&s.instance===this.currentContainer&&o!==this.currentItem[0]&&this.placeholder[1===n?"next":"prev"]()[0]!==o&&!t.contains(this.placeholder[0],o)&&("semi-dynamic"===this.options.type?!t.contains(this.element[0],o):!0)){if(this.direction=1===n?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(s))break;this._rearrange(e,s),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var s=this,o=this.placeholder.offset(),n=this.options.axis,r={};n&&"x"!==n||(r.left=o.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),n&&"y"!==n||(r.top=o.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(r,parseInt(this.options.revert,10)||500,function(){s._clear(e)})}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),s=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&s.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))}),!s.length&&e.key&&s.push(e.key+"="),s.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),s=[];return e=e||{},i.each(function(){s.push(t(e.item||this).attr(e.attribute||"id")||"")}),s},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,s=this.positionAbs.top,o=s+this.helperProportions.height,n=t.left,r=n+t.width,a=t.top,h=a+t.height,l=this.offset.click.top,c=this.offset.click.left,p="x"===this.options.axis||s+l>a&&h>s+l,f="y"===this.options.axis||e+c>n&&r>e+c,u=p&&f;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?u:n0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var i,s,o,n,r=[],a=[],h=this._connectWith();if(h&&e)for(i=h.length-1;i>=0;i--)for(o=t(h[i]),s=o.length-1;s>=0;s--)n=t.data(o[s],this.widgetFullName),n&&n!==this&&!n.options.disabled&&a.push([t.isFunction(n.options.items)?n.options.items.call(n.element):t(n.options.items,n.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),n]);for(a.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=a.length-1;i>=0;i--)a[i][0].each(function(){r.push(this)});return t(r)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var i=0;i=0;i--)for(o=t(f[i]),s=o.length-1;s>=0;s--)n=t.data(o[s],this.widgetFullName),n&&n!==this&&!n.options.disabled&&(p.push([t.isFunction(n.options.items)?n.options.items.call(n.element[0],e,{item:this.currentItem}):t(n.options.items,n.element),n]),this.containers.push(n));for(i=p.length-1;i>=0;i--)for(r=p[i][1],a=p[i][0],s=0,l=a.length;l>s;s++)h=t(a[s]),h.data(this.widgetName+"-item",r),c.push({item:h,instance:r,width:0,height:0,left:0,top:0})},refreshPositions:function(e){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var i,s,o,n;for(i=this.items.length-1;i>=0;i--)s=this.items[i],s.instance!==this.currentContainer&&this.currentContainer&&s.item[0]!==this.currentItem[0]||(o=this.options.toleranceElement?t(this.options.toleranceElement,s.item):s.item,e||(s.width=o.outerWidth(),s.height=o.outerHeight()),n=o.offset(),s.left=n.left,s.top=n.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)n=this.containers[i].element.offset(),this.containers[i].containerCache.left=n.left,this.containers[i].containerCache.top=n.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){e=e||this;var i,s=e.options;s.placeholder&&s.placeholder.constructor!==String||(i=s.placeholder,s.placeholder={element:function(){var s=e.currentItem[0].nodeName.toLowerCase(),o=t("<"+s+">",e.document[0]).addClass(i||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tr"===s?e.currentItem.children().each(function(){t("
",e.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(o)}):"img"===s&&o.attr("src",e.currentItem.attr("src")),i||o.css("visibility","hidden"),o},update:function(t,o){(!i||s.forcePlaceholderSize)&&(o.height()||o.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),o.width()||o.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(s.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),s.placeholder.update(e,e.placeholder)},_contactContainers:function(s){var o,n,r,a,h,l,c,p,f,u,d=null,g=null;for(o=this.containers.length-1;o>=0;o--)if(!t.contains(this.currentItem[0],this.containers[o].element[0]))if(this._intersectsWith(this.containers[o].containerCache)){if(d&&t.contains(this.containers[o].element[0],d.element[0]))continue;d=this.containers[o],g=o}else this.containers[o].containerCache.over&&(this.containers[o]._trigger("out",s,this._uiHash(this)),this.containers[o].containerCache.over=0);if(d)if(1===this.containers.length)this.containers[g].containerCache.over||(this.containers[g]._trigger("over",s,this._uiHash(this)),this.containers[g].containerCache.over=1);else{for(r=1e4,a=null,u=d.floating||i(this.currentItem),h=u?"left":"top",l=u?"width":"height",c=this.positionAbs[h]+this.offset.click[h],n=this.items.length-1;n>=0;n--)t.contains(this.containers[g].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(!u||e(this.positionAbs.top+this.offset.click.top,this.items[n].top,this.items[n].height))&&(p=this.items[n].item.offset()[h],f=!1,Math.abs(p-c)>Math.abs(p+this.items[n][l]-c)&&(f=!0,p+=this.items[n][l]),Math.abs(p-c)this.containment[2]&&(n=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),o.grid&&(i=this.originalPageY+Math.round((r-this.originalPageY)/o.grid[1])*o.grid[1],r=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-o.grid[1]:i+o.grid[1]:i,s=this.originalPageX+Math.round((n-this.originalPageX)/o.grid[0])*o.grid[0],n=this.containment?s-this.offset.click.left>=this.containment[0]&&s-this.offset.click.left<=this.containment[2]?s:s-this.offset.click.left>=this.containment[0]?s-o.grid[0]:s+o.grid[0]:s)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():h?0:a.scrollTop()),left:n-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():h?0:a.scrollLeft())}},_rearrange:function(t,e,i,s){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var o=this.counter;this._delay(function(){o===this.counter&&this.refreshPositions(!s)})},_clear:function(t,e){this.reverting=!1;var i,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)("auto"===this._storedCSS[i]||"static"===this._storedCSS[i])&&(this._storedCSS[i]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&s.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||s.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(s.push(function(t){this._trigger("remove",t,this._uiHash())}),s.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)e||s.push(function(t){return function(e){t._trigger("deactivate",e,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over&&(s.push(function(t){return function(e){t._trigger("out",e,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!e){for(this._trigger("beforeStop",t,this._uiHash()),i=0;ithe remote url is: "+r[1]+"//"+r[2]),void 0;var a=n.success||e.noop;n.success=function(t){var n="string"==typeof t?e.parseJSON(t):t;if(!n||void 0===n.no||void 0===n.data||void 0===n.error)return a.call(i,{no:-1,data:t,msg:"not json data format"}),void 0;var r={4:"用户未登录!",5:"提交参数校验失败!",6:"对不起,您无权限进行此操作!",7:"请使用post方式提交数据!",8:"您的ID被封禁!",10:"您说的太快了,请停下来先喝杯茶吧!",9000:"需要设置用户名。"};r[n.no]?4==n.no?TbUtil.login?TbUtil.login():e.log("TbUtil.login function is not exists","warning"):9e3===n.no?TbCom.process("User","buildUnameFrame"):e.dialog.open('
'+r[n.no]+"
",{title:"错误提示",width:310}):a.call(i,n)},e.ajax(n)},e.tb.get=function(t,n,i,r){return jQuery.isFunction(n)&&(r=r||i,i=n,n=null),e.tb.ajax({type:"GET",url:t,data:n,success:i,dataType:r})},e.tb.post=function(t,n,i,r){jQuery.isFunction(n)&&(r=r||i,i=n,n={});var o="utf-8";return"string"==typeof n?n.indexOf("ie")<0&&(n+="&ie="+o):e.isPlainObject(n)?n=e.extend({ie:o},n):e.isArray(n)&&n.push({name:"ie",value:o}),e.tb.ajax({type:"POST",url:t,data:n,success:i,dataType:r})}}(jQuery),function(e){function t(t){var n=t||window.event,i=[].slice.call(arguments,1),r=0,o=0,a=0;return t=e.event.fix(n),t.type="mousewheel",n.wheelDelta&&(r=n.wheelDelta/120),n.detail&&(r=-n.detail/3),a=r,void 0!==n.axis&&n.axis===n.HORIZONTAL_AXIS&&(a=0,o=-1*r),void 0!==n.wheelDeltaY&&(a=n.wheelDeltaY/120),void 0!==n.wheelDeltaX&&(o=-1*n.wheelDeltaX/120),i.unshift(t,r,o,a),(e.event.dispatch||e.event.handle).apply(this,i)}var n=["DOMMouseScroll","mousewheel"];if(e.event.fixHooks)for(var i=n.length;i;)e.event.fixHooks[n[--i]]=e.event.mouseHooks;e.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var e=n.length;e;)this.addEventListener(n[--e],t,!1);else this.onmousewheel=t},teardown:function(){if(this.removeEventListener)for(var e=n.length;e;)this.removeEventListener(n[--e],t,!1);else this.onmousewheel=null}},e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}(jQuery),function(e){var t=function(t){var n=this;this.cfg=e.extend({},{className:"dialogJmodal",resizeable:!0},t),this.element=e('
').appendTo(document.body).css({display:"none",zIndex:e.getzIndex(),width:this.width(),height:this.height()}),this.cfg.show&&this.show(),this.resizeFunc=function(){n.css("width",n.width()),n.css("height",n.height()),n.triggerHandler("resize")},this.cfg.resizeable&&e(window).bind("resize",this.resizeFunc)};t.prototype={constructor:t,show:function(){this.element.show.apply(this.element,arguments),this._processTages(1)},hide:function(){this.element.hide.apply(this.element,arguments),this._processTages(0)},width:function(){return e(window).width()},height:function(){return Math.max(e("body").height(),e("html").height())},css:function(){this.element.css.apply(this.element,arguments)},triggerHandler:function(){this.element.triggerHandler.apply(this.element,arguments)},bind:function(){this.element.bind.apply(this.element,arguments)},remove:function(){this._processTages(0),this.element&&this.element.remove(),e(window).unbind("resize",this.resizeFunc);for(var t in this)delete this[t]},_processTages:function(t){var n=this;if(e.browser.msie)if(n.special=n.special||[],t){if(n.special.length>0)return;var i=e("SELECT,OBJECT,EMBED");this.cfg.safety&&(i=i.filter(function(){return 0==n.cfg.safety.find(this).length})),i.each(function(){var t=e(this);n.special.push({dom:this,css:t.css("visibility")}),t.css("visibility","hidden")})}else for(var r=0,o=n.special.length;o>r;r++)e(n.special[r].dom).css("visibility",n.special[r].css||""),n.special[r].dom=null}},e.modal=t,e.getzIndex=function(){return e.zIndex=e.zIndex||5e4,e.zIndex++}}(jQuery),function(e){e.getcurzIndex=function(){return e.curzIndex=e.curzIndex||10005,e.curzIndex++}}(jQuery),function(e){var t=e.browser.msie&&e.browser.version<7,n=function(r){function o(){s.dragged||(s.element.triggerHandler("onresize"),s.sizeTimer&&clearTimeout(s.sizeTimer),s.sizeTimer=setTimeout(function(){s.setPosition()},5))}n.INST.push(this),this.cfg=e.extend({},n.setting,r),this.cfg.showTitle||(this.cfg.draggable=!1),(null!=this.cfg.top||null!=this.cfg.left)&&(this.cfg.autoCenter=!1);var a="dialogJ";this.cfg.holderClassName&&(a+=" "+this.cfg.holderClassName),!t&&this.cfg.fixed&&(a+=" dialogJfix"),this.cfg.showShadow&&(a+=" dialogJshadow");var s=this;if(this.cfg.modal){var l={};this.cfg.modalClassName&&(l.className=this.cfg.modalClassName),this.modal=new e.modal(l)}this.element=e('
').css({zIndex:e.getzIndex(),display:"none"}).appendTo(document.body),this.elementWrapper=e('
').appendTo(this.element),this._setupTitleBar(),this.setTitle(this.cfg.title),this._setupNoTitle(),"iframe"===this.cfg.contentType&&(this.cfg.html=e("").css({width:"100%",height:"100%",border:"none"}).attr({src:this.cfg.html,frameBorder:0})),this._setupContent(),this.setContent(this.cfg.html),this.width(this.cfg.width),this.height(this.cfg.height),this.setPosition(this.cfg.left,this.cfg.top),this.cfg.show&&this.show(),this.cfg.autoCenter&&e(window).bind("resize",o),this._setScroll(),e.each(i,function(e,t){s.cfg[t]&&s.bind(t,s.cfg[t])}),this.cfg.escable&&this._setupEscKey(),this.close=function(){if(s.element.triggerHandler("onclose")===!1)return!1;e(window).unbind("resize",o),s.modal&&s.modal.remove(),s._setScroll(!0),s.element.remove();for(var t=0,i=n.INST.length;i>t;t++)if(n.INST[t]==s){n.INST.splice(t,1);break}}},i=["onaccept","oncancel","onclose","onresize","onhide"];e.extend(n,{open:function(t,i){return new n(e.extend({},i,{html:t}))},ask:function(t,i,r,o){var a=new n(e.extend({modal:!0},o||{},{html:t||"",show:!1}));if(e.isArray(i)&&i.length>0){var s=e('
').appendTo(a.elementWrapper).html(e.map(i,function(e){return''}).join(" "));a.buttons=e("input[type=button]",s).each(function(t){e(this).bind("click",function(){r.call(this,t,a)!==!1&&a.close()})})}return a.setPosition(),o&&o.show||a.show(),a},alert:function(t,r){var o=e.extend({},r||{});return n.ask(t,[o.acceptValue||"确定"],function(e,t){return t.element.triggerHandler(i[e],this)},o)},confirm:function(t,r){var o=e.extend({},r||{});return n.ask(t,[o.acceptValue||"确定",o.cancelValue||"取消"],function(e,t){return t.element.triggerHandler(i[e],this)},o)},assert:function(t,r,o){var a=e.extend({button:!0},o||{});2==arguments.length&&(a=r,r=e.noop);var s=n.ask(t,a.button?[a.acceptValue||"确定"]:[],function(e,t){return t.element.triggerHandler(i[e],this)},a);return setTimeout(function(){s&&s.close&&s.close(),r&&r()},parseInt(a.time)||2e3),s},load:function(t,i){i=i||{};var r={url:t,type:"GET",dataType:"html",cache:!1,success:function(t){i.filter&&(t=e(i.filter,t)),o.setContent(t)}};e.each(["type","cache"],function(){this in i&&(r[this]=i[this],delete i[this])}),e.ajax(r);var o=new n(i||{});return o},close:function(){for(var e=0;espan.dialogJtxt").html(e||"")},setContent:function(e){e&&this.element.find(".dialogJbody").html(e)},width:function(e){return this.element.css("width",e)},height:function(t){return e(".dialogJbody",this.element).css("height",t)},setPosition:function(n,i){if(0!==n&!n&&0!==i&&!i){var r=e(document),o=e(window),a=this.cfg.fixed&&!t?[0,0]:[r.scrollLeft(),r.scrollTop()];n=a[0]+(o.width()-this.element.outerWidth())/2,i=a[1]+(o.height()-this.element.outerHeight())/2,i=i>=0?i:0}this.element.css({left:n,top:i}),this.triggerHandler("resize")},getTitle:function(){return this.element.find(".dialogJtitle>span").html()},getContent:function(){return e(".dialogJbody",this.element).html()},show:function(){this.element.show.apply(this.element,arguments),this.modal&&(this.modal.cfg.safety=this.element,this.modal.show.apply(this.modal,arguments))},hide:function(){return this.element.triggerHandler("onhide")===!1?!1:(this.element.hide.apply(this.element,arguments),this.modal&&this.modal.hide.apply(this.modal,arguments),void 0)},getElement:function(){return this.element[0]},bind:function(){return this.element.bind.apply(this.element,arguments),this},triggerHandler:function(){this.element.triggerHandler.apply(this.element,arguments)},getButtons:function(){return this.buttons},_setupNoTitle:function(){if(this.cfg.noTitle){var t=e(".dialogJtitle");t.css({"border-bottom":0,"background-color":"#fff"})}},_setupTitleBar:function(){if(this.cfg.showTitle){var t=this,n=t.titleBar=e('
').appendTo(this.elementWrapper);if(this.cfg.closeable&&e('
 ').appendTo(n).bind("mousedown",function(e){e.stopPropagation()}).click(function(){return t.cfg.hideOnclose?t.hide():t.close(),!1}),this.cfg.draggable){n[0].style.cssText="-moz-user-select: none;cursor:move";e(t.element).draggable({handle:e(n),start:function(){t._setupHackDiv(1)},stop:function(){t.dragged=!0,t._setupHackDiv(0)}})}}},_setupHackDiv:function(t){var n=this;if(t){if(e("IFRAME",n.element).length>0){var i=e(".dialogJcontent",n.element);n.hack_div=(n.hack_div||e("
").appendTo(i).css({position:"absolute",left:0,top:0,cursor:"move"})).css({display:"block",width:n.element.outerWidth(),height:n.element.outerHeight()})}}else n.hack_div&&n.hack_div.css("display","none")},_setupEscKey:function(){var t=this,n=function(n){27==n.which&&(t.showTitle?e(".dialogJclose",t.titleBar).triggerHandler("click"):t.close())};e(document).bind("keydown",n),e(t.element).bind("onclose",function(){e(document).unbind("keydown",n)})},_setupContent:function(){var t=e('
');this.elementWrapper.append(t)},_setScroll:function(t){if(this.cfg.modal&&!this.cfg.scrollable){var n=e("html");if(n.length){var i=n[0].scrollTop;t?n.css({overflow:this.element.data("htmlof")||"","padding-right":"0px"}):(n[0].style.overFlow&&this.element.data("htmlof",n[0].style.overFlow),n.css({overflow:"hidden","padding-right":"17px"})),n[0].scrollTop=i}}}},e.each(i,function(e,t){n.prototype[t]=function(e){this.bind(t,e)}}),n.INST=[],e.dialog=n}(jQuery),$.disableInput=function(e,t,n){var i,r,o,a=[8,9,16,17,18,20,13,27,37,38,39,40,33,34,35,36,45,46,112,113,114,115,116,117,118,119,120,121,122,123,144,145],s=function(){i=e,t&&"function"==typeof t&&(r=t||null),n&&"function"==typeof n&&(o=n||null),l()},l=function(){i.bind("keydown",function(e){return c(e)})},c=function(e){var t=e;return $.inArray(t.keyCode,a)>=0?!0:t.ctrlKey||t.altKey?!0:o&&!o(t.keyCode)?(t.preventDefault(),!1):r&&!r(i.val().toString().trim())?(t.preventDefault(),!1):void 0};s()},$.subInput=function(e,t){$.disableInput(e,function(e){return e.toString().getByteLength()>=t?!1:!0});var n=function(){var n=e.val().toString();n.getByteLength()>t&&e.val(n.subByte(t,""))};e.bind("propertychange",n);try{e.bind("input",n)}catch(i){}e.bind("keyup",n)},function(e,t,n){e.json=e.json||{},e.json.encode=function(){function t(e){return/["\\\x00-\x1f]/.test(e)&&(e=e.replace(/["\\\x00-\x1f]/g,function(e){var t=o[e];return t?t:(t=e.charCodeAt(),"\\u00"+Math.floor(t/16).toString(16)+(t%16).toString(16))})),'"'+e+'"'}function n(t){var n,i,r,o=["["],a=t.length;for(i=0;a>i;i++)switch(r=t[i],typeof r){case"undefined":case"function":case"unknown":break;default:n&&o.push(","),o.push(e.json.encode(r)),n=1}return o.push("]"),o.join("")}function i(e){return 10>e?"0"+e:e}function r(e){return'"'+e.getFullYear()+"-"+i(e.getMonth()+1)+"-"+i(e.getDate())+"T"+i(e.getHours())+":"+i(e.getMinutes())+":"+i(e.getSeconds())+'"'}var o={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return function(i){switch(typeof i){case"undefined":return"undefined";case"number":return isFinite(i)?String(i):"null";case"string":return t(i);case"boolean":return String(i);default:if(null===i)return"null";if(i instanceof Array)return n(i);if(i instanceof Date)return r(i);var o,a,s=["{"],l=e.json.encode;for(key in i)if(i.hasOwnProperty(key))switch(a=i[key],typeof a){case"undefined":case"unknown":case"function":break;default:o&&s.push(","),o=1,s.push(l(key)+":"+l(a))}return s.push("}"),s.join("")}}}(),e.json.parseJSON=function(){var e,t,i,r,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},a=function(t){throw{name:"SyntaxError",message:t,at:e,text:i}},s=function(n){return n&&n!==t&&a("Expected '"+n+"' instead of '"+t+"'"),t=i.charAt(e),e+=1,t},l=function(){var e,n="";for("-"===t&&(n="-",s("-"));t>="0"&&"9">=t;)n+=t,s();if("."===t)for(n+=".";s()&&t>="0"&&"9">=t;)n+=t;if("e"===t||"E"===t)for(n+=t,s(),("-"===t||"+"===t)&&(n+=t,s());t>="0"&&"9">=t;)n+=t,s();return e=+n,isFinite(e)?e:(a("Bad number"),void 0)},c=function(){var e,n,i,r,l="";if('"'===t||"'"===t)for(r=t;s();){if(t===r)return s(),l;if("\\"===t)if(s(),"u"===t){for(i=0,n=0;4>n&&(e=parseInt(s(),16),isFinite(e));n+=1)i=16*i+e;l+=String.fromCharCode(i)}else{if("string"!=typeof o[t])break;l+=o[t]}else l+=t}a("Bad string")},u=function(){for(;t&&" ">=t;)s()},h=function(){switch(t){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}a("Unexpected '"+t+"'")},f=function(){var e=[];if("["===t){if(s("["),u(),"]"===t)return s("]"),e;for(;t;){if(e.push(r()),u(),"]"===t)return s("]"),e;s(","),u()}}a("Bad array")},d=function(){if('"'===t||"'"===t)return c();for(var e="";t&&!(":"===t||" ">=t);)e+=t,s();return""===e&&a("Bad key"),e},g=function(){var e,n={};if("{"===t){if(s("{"),u(),"}"===t)return s("}"),n;for(;t;){if(e=d(),u(),s(":"),Object.hasOwnProperty.call(n,e)&&a('Duplicate key "'+e+'"'),n[e]=r(),u(),"}"===t)return s("}"),n;s(","),u()}}a("Bad object")};return r=function(){switch(u(),t){case"{":return g();case"[":return f();case'"':case"'":return c();case"-":return l();default:return t>="0"&&"9">=t?l():h()}},function(o,s){var l;return i=o,e=0,t=" ",l=r(),u(),t&&a("Syntax error"),"function"==typeof s?function c(e,t){var i,r,o=e[t];if(o&&"object"==typeof o)for(i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r=c(o,i),r!==n?o[i]=r:delete o[i]);return s.call(e,t,o)}({"":l},""):l}}(),e.json.decode=function(t,n){if("string"!=typeof t||!t.length)return null;if(n&&!/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/.test(t.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"/g,"")))return null;try{return e.json.parseJSON(t)}catch(i){return{}}}}(jQuery,window),$.getBrowser=function(){var e=navigator.userAgent,t="",n="";return e.indexOf("AppleWebKit")>=0?t="webkit":e.indexOf("Gecko")>=0?t="gecko":e.indexOf("MSIE")>=0&&(t="ie"),e.indexOf("Firefox")>=0?n="firefox":e.indexOf("360SE")>=0?n="360se":e.indexOf("SE")>=0?n="sougou":e.indexOf("Maxthon")>=0?n="maxthon":e.indexOf("MSIE")>=0?n="ie":e.indexOf("Chrome")>=0?n="chrome":e.indexOf("Safari")>=0&&(n="safari"),{core:t,name:n}},$.resizePic=function(e,t,n,i){function r(e,t,n,i){var r=0,o=e,a=t;switch(e>n&&(r+=1),t>i&&(r+=2),r){case 1:o=n,o=t*n/e;case 2:a=i,o=e*i/t;case 3:a=t/i>e/n?i:t*n/e,o=t/i>e/n?e*i/t:n}return 0!=r&&(s=!0),[o,a]}var o=t||120,a=n||120,s=!1,l=e;if(0==l.width()){var c,u=this,h=arguments;return c=setTimeout(function(){clearTimeout(c),c=null,h.callee.apply(u,h)},100),!1}var f=r(l.width(),l.height(),o,a);return e.css("width",f[0]),e.css("height",f[1]),e.css("visibility","visible"),1==i&&e.css("margin-top",(n-parseInt(f[1]))/2),s},$.dateFormat=function(e,t){function n(e,n){t=t.replace(e,n)}if("string"!=typeof t)return e.toString();var i=function(e){return String(e).length>1?String(e):"0"+e},r=e.getFullYear(),o=e.getMonth()+1,a=e.getDate(),s=e.getHours(),l=e.getMinutes(),c=e.getSeconds();return n(/yyyy/g,String(r)),n(/yy/g,i(r.toString().slice(2),2)),n(/MM/g,i(o,2)),n(/M/g,o),n(/dd/g,i(a,2)),n(/d/g,a),n(/HH/g,i(s,2)),n(/H/g,s),n(/hh/g,i(s%12,2)),n(/h/g,s%12),n(/mm/g,i(l,2)),n(/m/g,l),n(/ss/g,i(c,2)),n(/s/g,c),t},function(e){e.extend(String.prototype,{escapeHTML:function(){return this.replace(/&/g,"&").replace(//g,">").replace(/\s/g," ").replace(/"/g,""")},unescapeHTML:function(){return this.replace(/</g,"<").replace(/>/g,">").replace(/ /g," ").replace(/"/g,'"').replace(/&/g,"&")},format:function(){var t=Array.prototype.slice.call(arguments,0);return t.unshift(this),e.tb.format.apply(e.tb,t)},tempFormat:function(){var t=Array.prototype.slice.call(arguments,0);return t.unshift(this),e.tb.format.apply(e.tb,t)},getByteLength:function(){return this.replace(/[^\x00-\xff]/g,"mm").length},subByte:function(t,n){e.tb.subByte(this,t,n)},escapeUTF8:function(){return escape(this).replace(/%u(\w{4})/g,function(e,t){return encodeURIComponent(String.fromCharCode("0x"+t)).replace(/%/g,"%25")})}})}(jQuery),function(e){function t(t,n){this.$el=e(t),this.config=e.extend({},this.defaultConfig,n),this.init()}t.prototype={defaultConfig:{enterDelay:1e3,leaveDelay:1e3,mouseenter:null,mouseleave:null},config:null,type:null,timer:null,entered:!1,init:function(){var e=this.$el,t=this;e.bind("mouseenter.delayhover",function(e){var n=this;t.hoverMouseenter(e,n)}),e.bind("mouseleave.delayhover",function(e){var n=this;t.hoverMouseleave(e,n)})},hoverMouseenter:function(e,t){var n=this,i=this.config;clearTimeout(this.timer),this.timer=setTimeout(function(){"function"==typeof i.mouseenter&&i.mouseenter.call(t,e),n.entered=!0},i.enterDelay)},hoverMouseleave:function(e,t){var n=this,i=this.config;clearTimeout(this.timer),this.entered&&(this.timer=setTimeout(function(){"function"==typeof i.mouseleave&&i.mouseleave.call(t,e),n.entered=!1},i.leaveDelay))},clearHoverTimer:function(){clearTimeout(this.timer),this.entered=!1},destroy:function(){this.$el.unbind(".delayhover"),clearTimeout(this.timer),this.entered&&"function"==typeof this.config.mouseleave&&this.config.mouseleave.call(this)}},e.fn.delayhover=function(e){if(this.data("tb-delayhover"))throw new Error("$.delayhover: 不能绑定两次");return this.data("tb-delayhover",new t(this,e)),this},e.fn.removeDelayhover=function(){return this.data("tb-delayhover")&&(this.data("tb-delayhover").destroy(),this.removeData("tb-delayhover")),this},e.fn.clearDelayHoverTimer=function(){return this.data("tb-delayhover")&&this.data("tb-delayhover").clearHoverTimer(),this},e.tb.Delayhover=t}(jQuery),function($,undefined){$.tb.escapeHTML=function(e){return"string"!=typeof e?"":e.replace(/&/g,"&").replace(//g,">").replace(/\s/g," ").replace(/'/g,"'").replace(/"/g,""")},$.tb.unescapeHTML=function(e){return"string"!=typeof e?"":e.replace(/</g,"<").replace(/>/g,">").replace(/ /g," ").replace(/'/g,"'").replace(/"/g,'"').replace(/&/g,"&")},$.tb.format=function(e,t){if("undefined"==typeof t)return e;var n=/([.*+?^=!:${}()|[\]\/\\])/g,i="{".replace(n,"\\$1"),r="}".replace(n,"\\$1"),o=new RegExp("#"+i+"([^"+i+r+"]+)"+r,"g"),a=new RegExp("#"+i+"(\\d+)"+r,"g");if("object"==typeof t)return e.replace(o,function(e,n){var i=t[n];return"function"==typeof i&&(i=i(n)),"undefined"==typeof i?"":i});if("undefined"!=typeof t){var s=Array.prototype.slice.call(arguments,1),l=s.length;return e.replace(a,function(e,t){return t=parseInt(t,10),t>=l?e:s[t]})}},$.tb.getByteLength=function(e){return(e+"").replace(/[^\x00-\xff]/g,"mm").length},$.tb.subByte=function(e,t,n){if($.tb.getByteLength(e)<=t)return e;n=n===undefined?"...":String(n),t-=$.tb.getByteLength(n);for(var i=Math.floor(t/2),r=$.tb.getByteLength(e);r>i;i++){var o=e.substring(0,i),a=$.tb.getByteLength(o);if(a==t)return o+n;if(a>t)return e.substring(0,i-1)+n}return e},$.tb.escapeUTF8=function(e){return escape(e).replace(/%u(\w{4})/g,function(e,t){return encodeURIComponent(String.fromCharCode("0x"+t)).replace(/%/g,"%25")})},$.tb.resizePic=function(e,t,n,i,r){var o=e.width,a=e.height,s=o,l=a;0!==o&&0!==a&&("string"==typeof i&&(r=i,i=!1),"width"===r||"height"!==r&&o/a>=t/n?o>t&&(s=t,l=Math.round(t*a/o)):a>n&&(l=n,s=Math.round(n*o/a)),i&&(t>s&&(e.style.marginLeft=Math.floor((t-s)/2)+"px"),n>l&&(e.style.marginTop=Math.floor((n-l)/2)+"px")),e.width=s,e.height=l)},$.tb.Storage=function(){function e(e){return e.replace(/[_\s]/g,function(e){return"_"==e?"__":"_s"})}function t(){return document.getElementById(a+"-storage")}function n(e){return"[object Date]"==={}.toString.call(e)&&"Invalid Date"!==e.toString()&&!isNaN(e)}function i(){var e;return window.localStorage?e=o():window.ActiveXObject&&(e=r()),e}function r(){var i=document.createElement("div");return i.style.display="none",i.id=a+"-storage",document.body.appendChild(i),t().addBehavior("#default#userData"),{set:function(i,r,o){var a=s.SUCCESS,l=t(),c=e(i),u=o?o:(new Date).getTime()+31536e6;n(u)&&(u=u.getTime()),l.expires=new Date(u).toUTCString();try{l.setAttribute(c,r),l.save(c)}catch(h){a=s.OVERFLOW}return l=null,a},get:function(n){var i=t(),r=e(n),o=null;try{return i.load(r),o=i.getAttribute(r)}catch(a){throw a.message}},del:function(n){var i,r=t(),o=e(n);try{return r.load(o),i=r.getAttribute(o),i?(r.removeAttribute(o),r.expires=new Date(315532799e3).toUTCString(),r.save(o),!0):!1}catch(a){return!1}}}}function o(){return{set:function(t,i,r){var o=s.SUCCESS,a=window.localStorage,l=e(t),c=r?r:(new Date).getTime()+31536e6;n(c)&&(c=c.getTime());try{a.setItem(l,c+"|"+i)}catch(u){o=s.OVERFLOW}return o},get:function(t){var n,i,r=window.localStorage,o=e(t),a=null;try{a=r.getItem(o)}catch(s){return null}return a?(n=a.indexOf("|"),i=parseInt(a.substring(0,n),10),new Date(i).getTime()>(new Date).getTime()||0==i?a=a.substring(n+1,a.length):(a=null,this.del(t),null)):null},del:function(t){var n=window.localStorage,i=e(t),r=null;try{r=n.getItem(i)}catch(o){return!1}return r?(r=r.substring(r.indexOf("|")+1,r.length),r&&n.removeItem(i),!0):!1}}}var a="tieba",s={SUCCESS:0,FAILURE:1,OVERFLOW:2};return{set:function(){var e=this;return!e._storage&&(e._storage=i()),e._storage.set.apply(e._storage,arguments)},get:function(){var e=this;return!e._storage&&(e._storage=i()),e._storage.get.apply(e._storage,arguments)},remove:function(){var e=this;return!e._storage&&(e._storage=i()),e._storage.del.apply(e._storage,arguments)},isSupport:function(){return!(!window.localStorage&&!window.ActiveXObject)}}}(),$.cookie=function(e,t,n){if("undefined"==typeof t){var i=null;if(document.cookie&&""!=document.cookie)for(var r=document.cookie.split(";"),o=0;o
");$$.CallBacks[this.instance]={};var o=n.params,a=n.vars,s=n.callBacks,l=$.extend({},{height:n.height,width:n.width},n.properties),c=this;for(var u in s)$$.CallBacks[this.instance][u]=function(e){return function(){return e.apply(c.object,arguments)}}(s[u]),a[u]="$.swf.CallBacks."+this.instance+"."+u;o.flashVars=$.param(a),$.browser.msie?(l.classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000",l.codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0",o.movie=e):(l.type="application/x-shockwave-flash",l.data=e);var h=['");for(var d in o)o[d]!==undefined&&h.push('');h.push(""),$.each(r,function(e,t){t.innerHTML=h.join("")}),this.getObject()};$.extend($$,{options:{id:null,height:1,width:1,container:null,properties:{align:"middle"},params:{quality:"high",allowScriptAccess:"always",wMode:"transparent",swLiveConnect:!0,menu:!1},callBacks:{},vars:{}},CallBacks:{},remote:function(obj,fn){var rs=obj.CallFunction(''+__flash__argumentsToXML(arguments,2)+"");return eval(rs)}}),$.extend($$.prototype,{toElement:function(){return this.object},getObject:function(){var e=this;this.object=document[this.id]||window[this.id],this.object||setTimeout(function(){e.getObject()},1)},remote:function(){for(var e=[this.toElement()],t=0,n=arguments.length;n>t;t++)e.push(arguments[t]);return $$.remote.apply($$,e)}}),$$.getVersion=function(){var e=navigator;if(e.plugins&&e.mimeTypes.length){var t=e.plugins["Shockwave Flash"];if(t&&t.description)return t.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s)+r/,".")+".0"}else if(window.ActiveXObject&&!window.opera)for(var n=10;n>=2;n--)try{var i=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+n);if(i){var r=i.GetVariable("$version");return r.replace(/WIN/g,"").replace(/,/g,".")}}catch(o){}},$$.getFlash=function(e){return-1!=navigator.appName.indexOf("Microsoft")?window[e]:document[e]},$.swf=$$,$.JsLoadManager=$.JLM={use:function(e,t,n,i){if("string"==typeof e)return"function"!=typeof t?(i=t,t=undefined):i=n,this.loadUrl(e,t,i),void 0;if(!this.isArray(e))throw new Error("JsLoadManager.use: Arguments Illegal!");n?this.loadSerial(e,t,i):this.loadParallel(e,t,i)},loaded:{},loading:{},loadSerial:function(e,t,n){function i(){e[++r]?o.loadUrl(e[r],i,n):"function"==typeof t&&t()}var r=0,o=this;this.loadUrl(e[r],i,n)},loadParallel:function(e,t,n){for(var i=this,r=!1,o=0,a=e.length;a>o&&(this.loadUrl(e[o],function(){i.checkLoaded(e)&&("function"==typeof t&&t(),r=!0)},n),!r);o++);},checkLoaded:function(e){if("string"==typeof e)return!!this.loaded[e];for(var t=0,n=e.length;n>t;t++)if(!this.loaded[e[t]])return!1;return!0},isArray:function(e){return"object"==typeof e&&e.constructor===Array},loadUrl:function(e,t,n){var i=this;this.loaded[e]!==undefined?"function"==typeof t&&t(e,this.loaded[e]):this.loading[e]!==undefined?"function"==typeof t&&this.loading[e].push(t):(this.loading[e]=[],"function"==typeof t&&this.loading[e].push(t),this.createScriptTag(e,function(e,t){i.loaded[e]=t;for(var n=0,r=i.loading[e].length;r>n;n++)i.loading[e][n](e,t);delete i.loading[e]},n))},createScriptTag:function(e,t,n){var i=document.createElement("script");i.setAttribute("type","text/javascript"),i.setAttribute("src",e),n&&i.setAttribute("charset",n),i.onload=i.onreadystatechange=function(){this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(i.onload=i.onreadystatechange=null,"function"==typeof t&&t(e,!0))},i.onerror=function(){"function"==typeof t&&t(e,!1)},document.getElementsByTagName("head")[0].appendChild(i)}},$.fn.tb_html=function(e){if("string"==typeof e){for(var t=0,n=this.length;n>t;t++)1===this[t].nodeType&&(jQuery.cleanData(this[t].getElementsByTagName("*")),this[t].innerHTML=e);return this}return this.html(e)},$.tb.location={getHref:function(){return this._escape(location.href)},setHref:function(e){location.href=e},getSearch:function(){return this._escape(location.search)},getHash:function(){return this._escape(location.hash)},setHash:function(e){location.hash=e},getHost:function(){return location.host},getHostname:function(){return location.hostname},getPort:function(){return location.port},getProtocol:function(){return location.protocol},getPathname:function(){return this._escape(location.pathname)},reload:function(){location.reload()},getOrigin:function(){return this._escape(location.origin)},_escape:function(e){return e.replace(//g,">").replace(/'/g,"'").replace(/"/g,""")},_getSearchValue:function(e){var t=location.search.replace(/^\?/,""),n={};if(!t)return e===undefined?n:undefined;t=t.split("&");for(var i,r=0,o=t.length;o>r;r++)i=t[r].indexOf("="),i>0?n[t[r].substring(0,i)]=t[r].substring(i+1):n[t[r]]="";return e===undefined?n:n[e]},getSearchValue:function(e){function t(e){try{return decodeURIComponent(e)}catch(t){return e}}if(e){var n=$.tb.getSearch(e);return null!=n?$.tb.escapeHTML(t(n)):null}var i=$.tb.getSearch();for(var r in i)i[r]=$.tb.escapeHTML(t(i[r]));return i}},$.tb.getSearch=function(e){return $.tb.location._getSearchValue(e)},$.tb.getDecodedSearch=function(e){return $.tb.location.getSearchValue(e)},$.tb.throttle=function(e,t){return function(){t=t||100;var n=this,i=arguments;clearTimeout(e.tId),e.tId=setTimeout(function(){e.apply(n,i)},t)}},$.tb.alert=function(e){e=$.extend({show:!1,width:410},e||{});var t=['
',e.iconSrc||e.heading?'

':"",e.iconSrc?'':"",e.heading?"#{heading}":"",e.iconSrc||e.heading?"

":"",'

#{message}

','
',"
"].join(""),n='#{text}';$root=$($.tb.format(t,e)),e.html=$root;var i=new $.dialog(e);return e.buttons=e.buttons?$.isArray(e.buttons)?e.buttons:[e.buttons]:[],$btn_group=$root.find(".tb_alert_btn_group"),$.each(e.buttons,function(e,t){var r=$($.tb.format(n,t));r.bind("click",function(n){n.preventDefault(),(!t.callback||t.callback&&t.callback.call(this,e,i)!==!1)&&i.close()}),$btn_group.append(r)}),i.setPosition(),e&&e.show||i.show(),i.buttons=$.find(".j_btn"),i}}(jQuery),function(e){e.fn.extend({bindData:function(t,n){null==n&&(n="data-field");var i=e.json.encode(t);return this.attr(n,i),this},getData:function(t){null==t&&(t="data-field");var n=this.attr(t);return null==n?null:e.json.parseJSON(n)}}),e.tb.dataField=function(t,n){null==n&&(n="data-field");var i=e.json.encode(t);return i=e.tb.escapeHTML(i)," "+n+'="'+i+'" '}}(jQuery),window.tbFormat=function(e,t){if("none"==t||null==t)return tempalte;for(var n in t)t[n]=$.tb.escapeHTML(String(t[n]));return $.tb.format(e,t)},function(e){var t={tbattr:e.fn.attr,tbprop:e.fn.prop},n={};for(var i in t)!function(i){var r=t[i];n[i]=function(){var t=r.apply(this,arguments);return"string"==typeof t&&(t=e.tb.escapeHTML(t)),t}}(i);e.fn.extend(n)}(jQuery),function(e){e.sendAjaxError=function(t){if(!t)return!1;t={ll:t.ll||"warning",tbfeerrormsg:t.msg||"",locator:t.locator||"",linenum:t.linenum||"",modulename:t.modulename||"",alarminfo:t.alarminfo||"",browser:e.getBrowser().name||"",tbfewarning:1,logtype:"js",appname:"pc",_t:1e3*new Date};try{var n="/ems/page?"+e.param(t);e.get(n)}catch(i){}},e.se=e.sendAjaxError}(jQuery); ;$.stats={sendRequest:function(t){if(document.images){var e=new Image;window["bd_pv_"+(new Date).getTime()]=e,e.src="http://static.tieba.baidu.com/tb/img/pv.gif?"+t+"&t="+(new Date).getTime(),e=null}},hive:function(t,e){for(var a=/^\w*$/,n=0,o=arguments.length;o>n;n++)if(!a.test(arguments[n]))return!1;if(document.images){var r=new Image;window["bd_pv_"+(new Date).getTime()]=r;var s="http://static.tieba.baidu.com/tb/img/hive.gif?",i=window.ALog&&ALog.sid||(+new Date).toString(36)+(+Math.random().toFixed(8).substr(2)).toString(36),u=["location="+(t||""),"cmd="+(e||"click"),"url="+encodeURIComponent(document.location.href),"refer="+encodeURIComponent(document.referrer),"sid="+i];PageData&&(u.push("tb_mid="+(PageData.product||"")),PageData.forum&&(u.push("tb_fid="+(PageData.forum.forum_id||"")),u.push("tb_fname="+encodeURIComponent(PageData.forum.forum_name||""))),PageData.user&&(u.push("uname="+encodeURIComponent(PageData.user.user_name||"")),u.push("tb_is_new_user="+(PageData.user.is_new_user||""))),PageData.thread&&u.push("tb_tid="+(PageData.thread&&PageData.thread.thread_id||""))),arguments[2]&&u.push("tb_trump="+arguments[2]),s+="&"+u.join("&"),r.src=s,r=null}},track:function(t,e,a,n,o){if(a&&"object"==typeof a&&(o=a,a=""),n&&"object"==typeof n&&(o=n,n=""),document.images){var r=new Image;window["bd_pv_"+(new Date).getTime()]=r;var s="http://static.tieba.baidu.com/tb/img/track.gif?",i=["client_type=pc_web","task="+(e&&encodeURIComponent(e)||""),"locate="+(t&&encodeURIComponent(t)||""),"type="+(n&&encodeURIComponent(n)||"click"),"url="+encodeURIComponent(document.location.href),"refer="+encodeURIComponent(document.referrer)];PageData&&(i.push("page="+(a||PageData.product||"")),PageData.forum&&(i.push("fid="+(PageData.forum.forum_id||"")),i.push("fname="+encodeURIComponent(PageData.forum.forum_name||""))),PageData.user&&(i.push("uid="+(PageData.user.user_id||PageData.user.user_id||"")),i.push("uname="+encodeURIComponent(PageData.user.user_name||"")),i.push("is_new_user="+(PageData.user.is_new_user||""))),PageData.thread&&i.push("tid="+(PageData.thread&&PageData.thread.thread_id||"")));for(var u in o)o.hasOwnProperty(u)&&i.push(u+"="+encodeURIComponent(o[u]));s+=i.join("&"),r.src=s+"&t="+(new Date).getTime(),r=null}},scanPage:function(t){var e=t?t:$("body"),a="stats-data",n=e.find("*["+a+"]");n.length&&$.each(n,function(t,e){$.stats.processTag($(e))})},processTag:function(t){var e="stats-event",a="stats-data",n="stats-datatype",o=t.tbattr(a),r=t.tbattr(e),s=t.tbattr(n);o&&""!=o&&(s&&""!=s||(s="query"),"json"==s&&(o=$.param($.json.decode(o))),r=r&&""!=r?r:"click",t.tbattr(a,o),t.bind(r,function(){$.stats.sendRequest($(this).tbattr(a))}))}};var Stats=$.stats,Statistics=$.stats;$.tb.Stats={defaultConfig:{elms:["A","INPUT","BUTTON"],url:"http://tb1.bdstatic.com/tb/img/pv.gif",need_st_type:!1,path_body:!0,path:"tagName",event_type:"click"},defaultParams:{fr:"tb0_itieba",st_mod:"frs",st_type:"tb-stats"},bind:function(t,e,a){var a=$.extend({},this.defaultConfig,a),e=$.extend({},this.defaultParams,e),n=$(t),t=n[0],o=this;n.bind(a.event_type+".tb-stats",function(n){var r=n.target;if(!($.inArray(r.tagName,a.elms)<0)){for(var s;r!==t;){if(s=r.getAttribute("st_type"),null!==s){e.st_type=s;break}r=r.parentNode}e.st_value=o.getPath(n.target,a.path,a.path_body?document.body:t),(!a.need_st_type||s)&&o.sendRequest(a.url,e)}})},unbind:function(t){$(t).unbind(".tb-stats")},sendRequest:function(t,e){var t=t+"?";if("object"==typeof e)for(var a in e)"function"==typeof e[a]&&(e[a]=e[a]()),t+=a+"="+e[a]+"&";window["tb-stats-img"]=new Image,window["tb-stats-img"].src=t+"t="+(new Date).getTime()},getPath:function(t,e,a){for(var n=t[e]?[t[e]]:[];t!==a;)t=t.parentNode,t[e]&&n.push(t[e]);return n.reverse().join("-")}},function(t){t("body").bind("mousedown",function(e){for(var a,n=e.target;"BODY"!=n.tagName;){if(a=t(n).tbattr("location")){t.stats.hive(a);break}if(a=t(n).tbattr("locate")){var o=a.split("#")||[];t.stats.track(o[0]||"",o[1]||"",o[2]||"");break}n=n.parentNode}})}(jQuery); ;!function(){function e(e,n,r){for(var i=0,o=n.length;o>i;++i){var a=n[i],u=a.indexOf(r),l=a.slice(0,u),f=a.slice(u+1),s=t[l];"function"==typeof s&&(e=s(e,f))}return e}var t={subByte:function(e,t){return $.tb.subByte(e+"",t)},htmlLenLimit:function(e,t){return e+="",$.tb.getByteLength(e)<=t?e:['',$.tb.subByte(e,t),""].join("")},date:function(e,t){var n=e instanceof Date?e:new Date(e),r=t,i={"M+":n.getMonth()+1,"d+":n.getDate(),"h+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds(),"q+":Math.floor((n.getMonth()+3)/3),S:n.getMilliseconds()};/(y+)/.test(r)&&(r=r.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length)));for(var o in i)new RegExp("("+o+")").test(r)&&(r=r.replace(RegExp.$1,1==RegExp.$1.length?i[o]:("00"+i[o]).substr((""+i[o]).length)));return r}};$.tb.filterFormat=function(t,n){if("undefined"==typeof n)return t;var r=/([.*+?^=!:${}()|[\]\/\\])/g,i="{".replace(r,"\\$1"),o="}".replace(r,"\\$1");"object"!=typeof n&&(n=Array.prototype.slice.call(arguments,1));var a="|",u=":",l=new RegExp("#"+i+"([^"+i+o+"]+)"+o,"g");return t.replace(l,function(t,r){r=r.split(a);var i=r[0],o=n[i],l=r.slice(1);return"function"==typeof o&&(o=o(i)),"undefined"==typeof o?t:e(o,l,u)})},$.tb.filterFormat.filters=t}(); ;(function(){function n(t,r,e){if(t===r)return 0!==t||1/t==1/r;if(null==t||null==r)return t===r;if(t._chain&&(t=t._wrapped),r._chain&&(r=r._wrapped),t.isEqual&&A.isFunction(t.isEqual))return t.isEqual(r);if(r.isEqual&&A.isFunction(r.isEqual))return r.isEqual(t);var u=l.call(t);if(u!=l.call(r))return!1;switch(u){case"[object String]":return t==String(r);case"[object Number]":return t!=+t?r!=+r:0==t?1/t==1/r:t==+r;case"[object Date]":case"[object Boolean]":return+t==+r;case"[object RegExp]":return t.source==r.source&&t.global==r.global&&t.multiline==r.multiline&&t.ignoreCase==r.ignoreCase}if("object"!=typeof t||"object"!=typeof r)return!1;for(var i=e.length;i--;)if(e[i]==t)return!0;e.push(t);var a=0,c=!0;if("[object Array]"==u){if(a=t.length,c=a==r.length)for(;a--&&(c=a in t==a in r&&n(t[a],r[a],e)););}else{if("constructor"in t!="constructor"in r||t.constructor!=r.constructor)return!1;for(var o in t)if(A.has(t,o)&&(a++,!(c=A.has(r,o)&&n(t[o],r[o],e))))break;if(c){for(o in r)if(A.has(r,o)&&!a--)break;c=!a}}return e.pop(),c}var t=this,r=t._,e={},u=Array.prototype,i=Object.prototype,a=Function.prototype,c=u.slice,o=u.unshift,l=i.toString,f=i.hasOwnProperty,s=u.forEach,p=u.map,h=u.reduce,v=u.reduceRight,g=u.filter,d=u.every,m=u.some,y=u.indexOf,b=u.lastIndexOf,x=Array.isArray,j=Object.keys,_=a.bind,A=function(n){return new N(n)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=A),exports._=A):t._=A,A.VERSION="1.3.3";var w=A.each=A.forEach=function(n,t,r){if(null!=n)if(s&&n.forEach===s)n.forEach(t,r);else if(n.length===+n.length){for(var u=0,i=n.length;i>u;u++)if(u in n&&t.call(r,n[u],u,n)===e)return}else for(var a in n)if(A.has(n,a)&&t.call(r,n[a],a,n)===e)return};A.map=A.collect=function(n,t,r){var e=[];return null==n?e:p&&n.map===p?n.map(t,r):(w(n,function(n,u,i){e[e.length]=t.call(r,n,u,i)}),n.length===+n.length&&(e.length=n.length),e)},A.reduce=A.foldl=A.inject=function(n,t,r,e){var u=arguments.length>2;if(null==n&&(n=[]),h&&n.reduce===h)return e&&(t=A.bind(t,e)),u?n.reduce(t,r):n.reduce(t);if(w(n,function(n,i,a){u?r=t.call(e,r,n,i,a):(r=n,u=!0)}),!u)throw new TypeError("Reduce of empty array with no initial value");return r},A.reduceRight=A.foldr=function(n,t,r,e){var u=arguments.length>2;if(null==n&&(n=[]),v&&n.reduceRight===v)return e&&(t=A.bind(t,e)),u?n.reduceRight(t,r):n.reduceRight(t);var i=A.toArray(n).reverse();return e&&!u&&(t=A.bind(t,e)),u?A.reduce(i,t,r,e):A.reduce(i,t)},A.find=A.detect=function(n,t,r){var e;return E(n,function(n,u,i){return t.call(r,n,u,i)?(e=n,!0):void 0}),e},A.filter=A.select=function(n,t,r){var e=[];return null==n?e:g&&n.filter===g?n.filter(t,r):(w(n,function(n,u,i){t.call(r,n,u,i)&&(e[e.length]=n)}),e)},A.reject=function(n,t,r){var e=[];return null==n?e:(w(n,function(n,u,i){t.call(r,n,u,i)||(e[e.length]=n)}),e)},A.every=A.all=function(n,t,r){var u=!0;return null==n?u:d&&n.every===d?n.every(t,r):(w(n,function(n,i,a){return(u=u&&t.call(r,n,i,a))?void 0:e}),!!u)};var E=A.some=A.any=function(n,t,r){t||(t=A.identity);var u=!1;return null==n?u:m&&n.some===m?n.some(t,r):(w(n,function(n,i,a){return u||(u=t.call(r,n,i,a))?e:void 0}),!!u)};A.include=A.contains=function(n,t){var r=!1;return null==n?r:y&&n.indexOf===y?-1!=n.indexOf(t):r=E(n,function(n){return n===t})},A.invoke=function(n,t){var r=c.call(arguments,2);return A.map(n,function(n){return(A.isFunction(t)?t||n:n[t]).apply(n,r)})},A.pluck=function(n,t){return A.map(n,function(n){return n[t]})},A.max=function(n,t,r){if(!t&&A.isArray(n)&&n[0]===+n[0])return Math.max.apply(Math,n);if(!t&&A.isEmpty(n))return-1/0;var e={computed:-1/0};return w(n,function(n,u,i){var a=t?t.call(r,n,u,i):n;a>=e.computed&&(e={value:n,computed:a})}),e.value},A.min=function(n,t,r){if(!t&&A.isArray(n)&&n[0]===+n[0])return Math.min.apply(Math,n);if(!t&&A.isEmpty(n))return 1/0;var e={computed:1/0};return w(n,function(n,u,i){var a=t?t.call(r,n,u,i):n;ar?-1:r>e?1:0}),"value")},A.groupBy=function(n,t){var r={},e=A.isFunction(t)?t:function(n){return n[t]};return w(n,function(n,t){var u=e(n,t);(r[u]||(r[u]=[])).push(n)}),r},A.sortedIndex=function(n,t,r){r||(r=A.identity);for(var e=0,u=n.length;u>e;){var i=e+u>>1;r(n[i])=0})})},A.difference=function(n){var t=A.flatten(c.call(arguments,1),!0);return A.filter(n,function(n){return!A.include(t,n)})},A.zip=function(){for(var n=c.call(arguments),t=A.max(A.pluck(n,"length")),r=new Array(t),e=0;t>e;e++)r[e]=A.pluck(n,""+e);return r},A.indexOf=function(n,t,r){if(null==n)return-1;var e,u;if(r)return e=A.sortedIndex(n,t),n[e]===t?e:-1;if(y&&n.indexOf===y)return n.indexOf(t);for(e=0,u=n.length;u>e;e++)if(e in n&&n[e]===t)return e;return-1},A.lastIndexOf=function(n,t){if(null==n)return-1;if(b&&n.lastIndexOf===b)return n.lastIndexOf(t);for(var r=n.length;r--;)if(r in n&&n[r]===t)return r;return-1},A.range=function(n,t,r){arguments.length<=1&&(t=n||0,n=0),r=arguments[2]||1;for(var e=Math.max(Math.ceil((t-n)/r),0),u=0,i=new Array(e);e>u;)i[u++]=n,n+=r;return i};var O=function(){};A.bind=function(n,t){var r,e;if(n.bind===_&&_)return _.apply(n,c.call(arguments,1));if(!A.isFunction(n))throw new TypeError;return e=c.call(arguments,2),r=function(){if(!(this instanceof r))return n.apply(t,e.concat(c.call(arguments)));O.prototype=n.prototype;var u=new O,i=n.apply(u,e.concat(c.call(arguments)));return Object(i)===i?i:u}},A.bindAll=function(n){var t=c.call(arguments,1);return 0==t.length&&(t=A.functions(n)),w(t,function(t){n[t]=A.bind(n[t],n)}),n},A.memoize=function(n,t){var r={};return t||(t=A.identity),function(){var e=t.apply(this,arguments);return A.has(r,e)?r[e]:r[e]=n.apply(this,arguments)}},A.delay=function(n,t){var r=c.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},t)},A.defer=function(n){return A.delay.apply(A,[n,1].concat(c.call(arguments,1)))},A.throttle=function(n,t){var r,e,u,i,a,c,o=A.debounce(function(){a=i=!1},t);return function(){r=this,e=arguments;var l=function(){u=null,a&&n.apply(r,e),o()};return u||(u=setTimeout(l,t)),i?a=!0:c=n.apply(r,e),o(),i=!0,c}},A.debounce=function(n,t,r){var e;return function(){var u=this,i=arguments,a=function(){e=null,r||n.apply(u,i)};r&&!e&&n.apply(u,i),clearTimeout(e),e=setTimeout(a,t)}},A.once=function(n){var t,r=!1;return function(){return r?t:(r=!0,t=n.apply(this,arguments))}},A.wrap=function(n,t){return function(){var r=[n].concat(c.call(arguments,0));return t.apply(this,r)}},A.compose=function(){var n=arguments;return function(){for(var t=arguments,r=n.length-1;r>=0;r--)t=[n[r].apply(this,t)];return t[0]}},A.after=function(n,t){return 0>=n?t():function(){return--n<1?t.apply(this,arguments):void 0}},A.keys=j||function(n){if(n!==Object(n))throw new TypeError("Invalid object");var t=[];for(var r in n)A.has(n,r)&&(t[t.length]=r);return t},A.values=function(n){return A.map(n,A.identity)},A.functions=A.methods=function(n){var t=[];for(var r in n)A.isFunction(n[r])&&t.push(r);return t.sort()},A.extend=function(n){return w(c.call(arguments,1),function(t){for(var r in t)n[r]=t[r]}),n},A.pick=function(n){var t={};return w(A.flatten(c.call(arguments,1)),function(r){r in n&&(t[r]=n[r])}),t},A.defaults=function(n){return w(c.call(arguments,1),function(t){for(var r in t)null==n[r]&&(n[r]=t[r])}),n},A.clone=function(n){return A.isObject(n)?A.isArray(n)?n.slice():A.extend({},n):n},A.tap=function(n,t){return t(n),n},A.isEqual=function(t,r){return n(t,r,[])},A.isEmpty=function(n){if(null==n)return!0;if(A.isArray(n)||A.isString(n))return 0===n.length;for(var t in n)if(A.has(n,t))return!1;return!0},A.isElement=function(n){return!(!n||1!=n.nodeType)},A.isArray=x||function(n){return"[object Array]"==l.call(n)},A.isObject=function(n){return n===Object(n)},A.isArguments=function(n){return"[object Arguments]"==l.call(n)},A.isArguments(arguments)||(A.isArguments=function(n){return!(!n||!A.has(n,"callee"))}),A.isFunction=function(n){return"[object Function]"==l.call(n)},A.isString=function(n){return"[object String]"==l.call(n)},A.isNumber=function(n){return"[object Number]"==l.call(n)},A.isFinite=function(n){return A.isNumber(n)&&isFinite(n)},A.isNaN=function(n){return n!==n},A.isBoolean=function(n){return n===!0||n===!1||"[object Boolean]"==l.call(n)},A.isDate=function(n){return"[object Date]"==l.call(n)},A.isRegExp=function(n){return"[object RegExp]"==l.call(n)},A.isNull=function(n){return null===n},A.isUndefined=function(n){return void 0===n},A.has=function(n,t){return f.call(n,t)},A.noConflict=function(){return t._=r,this},A.identity=function(n){return n},A.times=function(n,t,r){for(var e=0;n>e;e++)t.call(r,e)},A.escape=function(n){return(""+n).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")},A.result=function(n,t){if(null==n)return null;var r=n[t];return A.isFunction(r)?r.call(n):r},A.mixin=function(n){w(A.functions(n),function(t){B(t,A[t]=n[t])})};var F=0;A.uniqueId=function(n){var t=F++;return n?n+t:t},A.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var q=/.^/,k={"\\":"\\","'":"'",r:"\r",n:"\n",t:" ",u2028:"\u2028",u2029:"\u2029"};for(var S in k)k[k[S]]=S;var R=/\\|'|\r|\n|\t|\u2028|\u2029/g,I=/\\(\\|'|r|n|t|u2028|u2029)/g,M=function(n){return n.replace(I,function(n,t){return k[t]})};A.template=function(n,t,r){r=A.defaults(r||{},A.templateSettings);var e="__p+='"+n.replace(R,function(n){return"\\"+k[n]}).replace(r.escape||q,function(n,t){return"'+\n_.escape("+M(t)+")+\n'"}).replace(r.interpolate||q,function(n,t){return"'+\n("+M(t)+")+\n'"}).replace(r.evaluate||q,function(n,t){return"';\n"+M(t)+"\n;__p+='"})+"';\n";r.variable||(e="with(obj||{}){\n"+e+"}\n"),e="var __p='';var print=function(){__p+=Array.prototype.join.call(arguments, '')};\n"+e+"return __p;\n";var u=new Function(r.variable||"obj","_",e);if(t)return u(t,A);var i=function(n){return u.call(this,n,A)};return i.source="function("+(r.variable||"obj")+"){\n"+e+"}",i},A.chain=function(n){return A(n).chain()};var N=function(n){this._wrapped=n};A.prototype=N.prototype;var T=function(n,t){return t?A(n).chain():n},B=function(n,t){N.prototype[n]=function(){var n=c.call(arguments);return o.call(n,this._wrapped),T(t.apply(A,n),this._chain)}};A.mixin(A),w(["pop","push","reverse","shift","sort","splice","unshift"],function(n){var t=u[n];N.prototype[n]=function(){var r=this._wrapped;t.apply(r,arguments);var e=r.length;return"shift"!=n&&"splice"!=n||0!==e||delete r[0],T(r,this._chain)}}),w(["concat","join","slice"],function(n){var t=u[n];N.prototype[n]=function(){return T(t.apply(this._wrapped,arguments),this._chain)}}),N.prototype.chain=function(){return this._chain=!0,this},N.prototype.value=function(){return this._wrapped}}).call(this); ;!function(t,e){function a(t,e){if(t instanceof Array){for(var a=0,i=t.length;i>a;a++)if(e.call(t[a],t[a],a)===!1)return}else for(var a in t)if(t.hasOwnProperty(a)&&e.call(t[a],t[a],a)===!1)return}function i(t,e){this.name=e,this.path=t,this.fn=null,this.exports={},this._loaded=!1,this._requiredStack=[],this._readyStack=[],i.cache[this.name]=this}i.loadedPaths={},i.loadingPaths={},i.cache={},i.paths={},i.moduleFileMap={},i.requiredPaths={},i.lazyLoadPaths={},i.isPathsLoaded=function(t){var e=!0;return a(t,function(t){return t in i.loadedPaths?void 0:e=!1}),e},i.require=function(t){var e=i.get(t);return e.init(),e.exports},e&&"/"==e.charAt(e.length-1)&&(e=e.substr(0,e.length-1)),i.getJsPath=function(t){return e||""+t},i.get=function(t){var e=t.indexOf(":")>-1?t:i.getJsPath(t);if(t.indexOf("?")>-1){var a=t.split("?");t=a[0],e=t.replace(/\.js$/,"_"+a[1]+".js")}return i.cache[t]?i.cache[t]:new i(e,t)},i.prototype={init:function(){if(!this._inited){if(this._inited=!0,!this.fn)throw new Error('Module "'+this.name+'" not found!');var t;(t=this.fn.call(null,i.require,this.exports))&&(this.exports=t)}},load:function(){i.loadingPaths[this.path]=!0;var t=i.moduleFileMap[this.name]||this.path;n.create({src:t})},lazyLoad:function(){var t=this.name,e=this.path;i.lazyLoadPaths[t]?(this.define(),delete i.lazyLoadPaths[t]):i.loadedPaths[e]?this.triggerStack():i.loadingPaths[e]||(i.requiredPaths[this.name]=!0,this.load())},ready:function(t,e){var a=e?this._requiredStack:this._readyStack;t?this._loaded?(this.init(),t()):a.push(t):(this._loaded=!0,i.loadedPaths[this.path]=!0,delete i.loadingPaths[this.path],this.triggerStack())},triggerStack:function(){this._readyStack.length>0&&(this.init(),a(this._readyStack,function(t){t.doing||(t.doing=!0,t())}),this._readyStack=[]),this._requiredStack.length>0&&(a(this._requiredStack,function(t){t.doing||(t.doing=!0,t())}),this._requiredStack=[])},define:function(){var t=this,e=this.deps,n=[];e||(e=this.getDependents()),e.length?(a(e,function(t){var e=i.get(t);n.push(e.path)}),a(e,function(e){var a=i.get(e);a.ready(function(){i.isPathsLoaded(n)&&t.ready()},!0),a.lazyLoad()})):this.ready()},getDependents:function(){var t=this.fn.toString(),e=t.match(/require\(\s*('|")([a-zA-Z0-9_\/.]+)('|")\s*\)/g);return e?(a(e,function(t,a){e[a]=t.replace(/\s+/g,"").substr(9).slice(0,-2)}),e):[]}};var n={create:function(t){var e=t.src;if(!(e in this._paths)){this._paths[e]=!0,a(this._rules,function(t){e=t.call(null,e)});var i=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type=t.type||"text/javascript",n.src=e,n.onload=n.onreadystatechange=function(){this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(t.loaded&&t.loaded(),n.onload=n.onerror=n.onreadystatechange=null)},i.insertBefore(n,i.firstChild)}},_paths:{},_rules:[],addPathRule:function(t){this._rules.push(t)}};t.version="1.0",t.use=function(t,e){"string"==typeof t&&(t=[t]);var n=[],r=[];a(t,function(t,e){r[e]=!1}),a(t,function(t,s){var h=i.get(t);h.ready(function(){n[s]=h.exports,r[s]=!0;var t=!0;a(r,function(e){return e===!1?t=!1:void 0}),e&&t&&e.apply(null,n)}),h.lazyLoad()})},t.module=function(t,e,a){var n=i.get(t);n.fn=e,n.deps=a,i.requiredPaths[t]?n.define():i.lazyLoadPaths[t]=!0},t.pathRule=function(t){n.addPathRule(t)},t._fileMap=function(e,n){"object"==typeof e?a(e,function(e,a){t._fileMap(a,e)}):("string"==typeof n&&(n=[n]),a(n,function(t){i.moduleFileMap[t]=e}))}}(function(){return window.F={}}()); ;var _=_||{};$.extend(_,function(t){var e={debug:!1,eventPool:$({}),observe:function(){this.eventPool.bind.apply(this.eventPool,arguments)},fire:function(){this.eventPool.trigger.apply(this.eventPool,arguments)},stopObserving:function(){this.eventPool.unbind.apply(this.eventPool,arguments)}},n=function(t){t.hasOwnProperty("initial")&&$.isFunction(t.initial)||(t.initial=new Function);var e=function(t){var e={noMethod:{},method:{}};for(var n in t)"prototype"!=n&&($.isFunction(t[n])?e.method[n]=t[n]:e.noMethod[n]=$.isArray(t[n])?Array.prototype.slice.call(t[n],0):$.isPlainObject(t[n])?$.extend({},t[n]):t[n]);return e},r=function(){var n=e(t);$.extend(this,n.noMethod),r.prototype.initial&&$.isFunction(r.prototype.initial)&&r.prototype.initial.apply(this,arguments)};return r.extend=function(t){var e=r.prototype,o={};$.extend(o,e,t);var i=n(o);return $.extend(i.prototype,{__parent__:function(t){var n=this;if(e.hasOwnProperty(t))return $.isFunction(e[t])?function(){e[t].apply(n,arguments)}:e[t]},__super__:function(){return this.__parent__("initial").apply(this,arguments)}}),i},$.extend(r.prototype,t,{prototype:r.prototype}),r},r=n({type:"",target:null,initial:function(t,e){this.type=t,this.target=e}}),o=n({_eventStack:{},initial:function(){},bind:function(t,e,n){this._eventStack.hasOwnProperty(t)||(this._eventStack[t]=[]),this._eventStack[t].push({handler:e,context:n})},unbind:function(t,e){if(this._eventStack.hasOwnProperty(t)){if(!e||!$.isFunction(e))return delete this._eventStack[t],void 0;for(var n=this._eventStack[t],r=0,o=n.length;o>r;r++)if(n[r].handler==e){n.splice(r,1);break}}},trigger:function(t){if(this._eventStack.hasOwnProperty(t)&&this._eventStack[t].length){var e=new r(t,this),n=Array.prototype.slice.call(arguments,0),o=[];n.shift(),n=[e].concat(n),this._eventStack[t]&&(o=Array.prototype.slice.call(this._eventStack[t]));for(var i=0,a=o,s=o.length;s>i;i++)if(a&&a[i]){var u=a[i],c=u.handler,l=u.context||null;c&&$.isFunction(c)&&c.apply(l,n)}}},observe:function(){e.observe.apply(e,arguments)},stopObserving:function(){e.stopObserving.apply(e,arguments)},fire:function(){e.fire.apply(e,arguments)}}),i={component:["component"],widget:["widget"],controller:[]},a={component:["component","widget"],widget:["component","widget"],controller:["component","widget"]},s={},u=/[^\/]*$/,c=function(t){var e=function(e){return t.apply(this,e)};return e.prototype=t.prototype,function(){return new e(arguments)}},l={define:function(t){if(t&&t.hasOwnProperty("path")&&t.hasOwnProperty("sub")){var e=t.path,n=[],r=[],o=null,i=p.getModuleAttr(e);if(p.checkAndInitAlias(t),t.requires=p.convertPaths(t.requires,i),t.extend=p.convertAlias(t.extend,i),o=t.extend,r=t.requires,l._checkDeps(e,t),r&&$.isArray(r)&&r.length>0)for(var a=0,s=r.length;s>a;a++)n.push(p.getJsPath(r[a],i));o&&""!=o&&(o=p.getJsPath(o),n.push(o));var u=p.getJsPath(e);F.module(u,function(e,n){var r=$.extend({},t.sub);if(r.__require=e,r.__attr=i,o){var a=e(o);if(!a||!a.hasOwnProperty("cls"))throw new Error("@ModuleFactroy : Superclass is not defined!");n.cls=a.cls.extend(r)}else n.cls=p.extend(r)},n)}},use:function(t,e,n,r){var o=p.getModuleAttr(t);F.use(o.path,function(t){var i,a,s;if(a=t.cls&&c(t.cls)||null,s=$.isArray(e)?e:[e],!a)throw new Error("class is undefined! - "+o.path);i=a.apply(null,s),"widget"!=o.type||"undefined"!=typeof r&&r===!1||(window[o.scope]=window[o.scope]||{},window[o.scope][o.module]=i),n&&$.isFunction(n)&&n.call(null,i)})},getInstance:function(t,e){var n=p.getModuleAttr(t),r=(n.modulePath,l._checkGlobalInstance(t));r&&"object"==typeof r?e&&$.isFunction(e)&&e.call(null,r):l.use(t,null,function(n){n&&"object"==typeof n&&(l._addGlobalInstance(t,n),e&&$.isFunction(e)&&e.call(null,n))})},aop:function(e,n,r){var o=t+"/static-common/lib/__aop.js";$.JsLoadManager.use(o,function(){if($.aop&&$.aop.hasOwnProperty(e)){var t=n.target;if(t&&""!=t){var o=p.getModuleAttr(t);F.use(o.path,function(t){var i;if(i=t.cls||null,!i)throw new Error("class is undefined! - "+o.path);$.aop[e]({target:i,method:n.method||""},r)})}}})},_checkGlobalInstance:function(t){var e=p.getModuleAttr(t),n=e.modulePath;window.__moduleInstances__||(window.__moduleInstances__={});var r=window.__moduleInstances__[n];return r?r:null},_addGlobalInstance:function(t,e){var n=l._checkGlobalInstance(t);if(n)return!1;var r=p.getModuleAttr(t),o=r.modulePath;return window.__moduleInstances__[o]=e,!0},_checkDeps:function(t,e){var n=p.getModuleAttr(t);if(!i.hasOwnProperty(n.type))throw new Error("@ModuleFactroy._checkDeps : module type error! - "+t);if(e.extend&&""!=e.extend&&$.inArray(p.getModuleAttr(e.extend).type,i[n.type])<0)throw new Error("@ModuleFactroy._checkDeps : Can not extends module! - "+t);if(e.hasOwnProperty("requires")&&$.isArray(e.requires))for(var r=0,o=e.requires.length;o>r;r++){var s=p.getModuleAttr(e.requires[r],n);if(s.module!=n.module&&$.inArray(s.type,a[n.type])<0)throw new Error("@ModuleFactroy._checkDeps : can not require module!")}}},p=o.extend({__attr:{},initial:function(){},use:function(t){if(t=p.convertAlias(t,this.__attr),this.__checkUse(t),!this.__require||!$.isFunction(this.__require))throw new Error("@Module : this._require is not defined!");var e=p.getModuleAttr(t,this.__attr),n=e.path,r=this.__require(n),o=c(r.cls),i=Array.prototype.slice.call(arguments,1),a=o.apply(null,i);return a},getInstance:function(t){if(t=p.convertAlias(t,this.__attr),this.__checkUse(t),!this.__require||!$.isFunction(this.__require))throw new Error("@Module : this._require is not defined!");var e=(p.getModuleAttr(t,this.__attr),l._checkGlobalInstance(t));return e&&"object"==typeof e?e:(e=this.use(t),l._addGlobalInstance(t,e),e)},asynUse:function(t){this.__checkUse(t);var e=p.getJsPath(t,this.__attr),n=Array.prototype.slice.call(arguments,1);n.unshift(e),l.use.apply(null,n)},__checkUse:function(t){if(t.indexOf("/")>0){var e=p.getModuleAttr(t);if((e.scope!=this.__attr.scope||e.type!=this.__attr.type||e.module!=this.__attr.module)&&$.inArray(e.type,a[this.__attr.type])<0)throw new Error("@Module : Can not use this Module!")}}});return p.checkAndInitAlias=function(t){var e,n,r=t.path,o=r.match(u)[0];if(o!==r&&"__alias"===o){if(n=$.trim(r).split("/"),e=n[2],!t.sub.alias)throw new Error("@Module : __alias can not be used !");s[e]=t.sub.alias}},p.convertPaths=function(t,e){var n=[];if($.isArray(t))return $.each(t,function(t,r){n.push(p.convertAlias(r,e))}),n},p.convertAlias=function(t,e){var n,r;return e&&t?(n=e.module,r=s[n]||{},r[t]&&(t=r[t]),t):t},p.getModuleAttr=function(e,n){var r,o,i,a,s,u,c,l,h="",d="/";if(r=e.replace(/\/$/,"").split("/"),c=r.length,1==c&&n)a=e,s=n.module,o=n.type,i=n.scope;else if(3===c||4===c)o=r[1].toLowerCase(),s=r[2],i=r[0],a=c>3?r[3]:r[2];else{if(!(c>4))return!1;o=r[1].toLowerCase(),s=r[2],i=r[0];for(var _=3;c-1>_;_++)h+=r[_]+d;a=r[c-1]}return a=p.nameToFile(a),u=(t+d+"static-"+i+d+o+d+p.nameToFile(s)+d+h+a+".js").toString(),l=(i+d+o+d+s+d+h+a).toString(),{scope:i,module:s,file:a,type:o,path:u,modulePath:l}},p.nameToFile=function(t){return t.replace(/([a-z])([A-Z])/g,function(){return arguments[1]+"_"+arguments[2]}).toLowerCase()},p.getJsPath=function(t,e){var n=p.getModuleAttr(t,e);return n.path},F.pathRule(function(e){var n,r;return"object"==typeof _JSSTAMP&&(n=e.match(/(static\-[\w-]+\/[\w-]+\/[\w-]+\/)[\w-]+\.js$/i))&&(r=_JSSTAMP[n[0].replace("static-","")])?0===r.indexOf("/tb/_")?"http://tb1.bdstatic.com/".replace(/\/$/,"")+r:t+"/"+n[1]+r:e}),{Module:{use:l.use,define:l.define,getInstance:l.getInstance,aop:l.aop},Class:n,Dispatcher:o,MessageManager:e}}("http://tb1.bdstatic.com/tb")); ;!function(e){e.baidu=e.baidu||{},baidu.template=function(t,a){var r=function(){if(!e.document)return n._compile(t);var a=document.getElementById(t);if(a){if(n.cache[t])return n.cache[t];var r=/^(textarea|input)$/i.test(a.nodeName)?a.value:a.innerHTML;return n._compile(r)}return n._compile(t)}(),p=n._isObject(a)?r(a):r;return r=null,p};var n=baidu.template;n.versions=n.versions||[],n.versions.push("1.0.6"),n.cache={},n.LEFT_DELIMITER=n.LEFT_DELIMITER||"<%",n.RIGHT_DELIMITER=n.RIGHT_DELIMITER||"%>",n.ESCAPE=!0,n._encodeHTML=function(e){return String(e).replace(/&/g,"&").replace(//g,">").replace(/\\/g,"\").replace(/"/g,""").replace(/'/g,"'")},n._encodeReg=function(e){return String(e).replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")},n._encodeEventHTML=function(e){return String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\\\\/g,"\\").replace(/\\\//g,"/").replace(/\\n/g,"\n").replace(/\\r/g,"\r")},n._compile=function(e){var t="var _template_fun_array=[];\nvar fn=(function(data){\nvar _template_varName='';\nfor(name in data){\n_template_varName+=('var '+name+'=data[\"'+name+'\"];');\n};\neval(_template_varName);\n_template_fun_array.push('"+n._analysisStr(e)+"');\n_template_varName=null;\n})(_template_object);\nfn = null;\nreturn _template_fun_array.join('');\n";return new Function("_template_object",t)},n._isObject=function(e){return"function"==typeof e||!(!e||"object"!=typeof e)},n._analysisStr=function(e){var t=n.LEFT_DELIMITER,a=n.RIGHT_DELIMITER,r=n._encodeReg(t),p=n._encodeReg(a);return e=String(e).replace(new RegExp("("+r+"[^"+p+"]*)//.*\n","g"),"$1").replace(new RegExp("","g"),"").replace(new RegExp(r+"\\*.*?\\*"+p,"g"),"").replace(new RegExp("[\\r\\t\\n]","g"),"").replace(new RegExp(r+"(?:(?!"+p+")[\\s\\S])*"+p+"|((?:(?!"+r+")[\\s\\S])+)","g"),function(e,n){var t="";if(n)for(t=n.replace(/\\/g,"\").replace(/'/g,"'");/<[^<]*?'[^<]*?>/g.test(t);)t=t.replace(/(<[^<]*?)'([^<]*?>)/g,"$1\r$2");else t=e;return t}),e=e.replace(new RegExp("("+r+"[\\s]*?var[\\s]*?.*?[\\s]*?[^;])[\\s]*?"+p,"g"),"$1;"+a).replace(new RegExp("("+r+":?[hvu]?[\\s]*?=[\\s]*?[^;|"+p+"]*?);[\\s]*?"+p,"g"),"$1"+a).split(t).join(" "),e=n.ESCAPE?e.replace(new RegExp("\\t=(.*?)"+p,"g"),"',typeof($1) === 'undefined'?'':baidu.template._encodeHTML($1),'"):e.replace(new RegExp("\\t=(.*?)"+p,"g"),"',typeof($1) === 'undefined'?'':$1,'"),e=e.replace(new RegExp("\\t:h=(.*?)"+p,"g"),"',typeof($1) === 'undefined'?'':baidu.template._encodeHTML($1),'").replace(new RegExp("\\t(?::=|-)(.*?)"+p,"g"),"',typeof($1)==='undefined'?'':$1,'").replace(new RegExp("\\t:u=(.*?)"+p,"g"),"',typeof($1)==='undefined'?'':encodeURIComponent($1),'").replace(new RegExp("\\t:v=(.*?)"+p,"g"),"',typeof($1)==='undefined'?'':baidu.template._encodeEventHTML($1),'").split(" ").join("');").split(a).join("_template_fun_array.push('").split("\r").join("\\'")}}(window); ;function showInfo(n){$("#output").html(n)}!function(){var n={type:"swipe",distance:{x:0,y:0},direction:{x:"",y:""}},t={},i={},e=!1;$(window).bind("touchstart",function(n){var i=n.originalEvent;if(i.changedTouches.length>0){var o=i.changedTouches[0];i.stopPropagation(),t.x=o.clientX,t.y=o.clientY,t.instance=o,e=!0}}),$(window).bind("touchend touchcanel",function(o){var c=o.originalEvent;if(e&&c.changedTouches.length>0){var a=c.changedTouches[0];i.x=a.clientX,i.y=a.clientY;var d={x:i.x-t.x,y:i.y-t.y};n.direction.x=d.x>0?"left":d.x<0?"right":"none",n.distance.x=Math.abs(d.x),n.direction.y=d.y>0?"down":d.y<0?"up":"none",n.distance.y=Math.abs(d.y),$(t.instance.target).trigger(n),e=!1}}),innerTools={hasEvent:function(n,t){var i=!1,e=$._data(n,"events");return e&&e[t]&&(i=!0),i}}}(),$("#touchable").bind("swipe",function(n){var t=["X dist:",n.distance.x,",dire:",n.direction.x,"|Y dist:",n.distance.y,",dire:",n.direction.y];showInfo(t.join(""))}); ;var PageLink={_debug:-1,init:function(e,t,n,a,o){var i=this,d=a||document.body;if($(d).mousedown(function(n){"A"===n.target.nodeName&&i._onclick(n,e,t,o)}),$(d).click(function(n){"A"!==n.target.nodeName&&i._onclick(n,e,t,o)}),n&&n.length)for(var m=0;m0&&(i._debug=0,$(d).mouseover(function(n){"A"===n.target.nodeName&&i._onclick(n,e,t,o)}))},bindCustomElem:function(e){$(e).attr("page_link_custom_elem_flag","true")},_onclick:function(e,t,n,a){var o=this,i=e.target;if(!i||"BODY"!=i.nodeName){var d="";if((!a||!i||(d=a(i),"exit"!=d))&&o._is_need_send_msg(i)){for(var m="fr="+t+"&st_type=page_link&st_mod="+n,_=$.trim(i.className),r=i.id,c=i.nodeName,l=$.trim(i.className),s=0;i&&i.parentNode&&i!=document.body&&i.parentNode!=document.body;)i=i.parentNode,c=i.nodeName+c,i.className&&4>s&&(s++,l=l?$.trim(i.className)+"-"+l:$.trim(i.className));m+="&st_value="+c;var g=$(e.target).prevAll().length;m+=g>0?"&dom_i="+g:"&dom_i=0",_&&(m+="&class_name="+_),r&&(m+="&id_name="+r),l&&(m+="&class_path="+l),m=m.replace(/\ /g,"-"),""!=d&&(m+="&"+d),o._debug>-1&&(o._debug++,$(document.body).append("
["+o._debug+"] "+m+"
"),$(e.target).attr("title","["+o._debug+"] "+m),console&&console.log("["+o._debug+"] "+m));var u=new Image;window["bd_pv_"+(new Date).getTime()]=u,u.src="http://tb1.bdstatic.com/tb/img/pv.gif?"+m+"&t="+(new Date).getTime(),u=null}}},_is_need_send_msg:function(e){var t=e.nodeName,n=$(e).attr("type");return"A"==t||"INPUT"==t&&("submit"==n||"button"==n)||"BUTTON"==t?!0:$(e).attr("page_link_custom_elem_flag")?!0:!1}}; ;F.module("datalazyload",function(){function t(t){t.style.display=g,t.className="",$(t.value).appendTo(t.parentNode)}function e(t){v._getHtmlById($(t).tbattr("id"))}function n(t,e){var n,i;return(n=t.id)||(n=t.id=v.guid("tb-lazyload")),(i=e.tbLazyloadId)||(i=e.tbLazyloadId=v.guid("tb-lazyload")),n+i}function i(t){return t._tb_lazy_width?t._tb_lazy_width:t._tb_lazy_width=$(t).outerWidth()}function a(t){return t._tb_lazy_height?t._tb_lazy_height:t._tb_lazy_height=$(t).outerHeight()}function o(t,e,n){if(!t.offsetWidth)return!1;var o,r=$(t).offset(),c=!0,u=r.left,l=r.top,f={left:u,top:l,right:u+i(t),bottom:l+a(t)};return o=s(e,f),o&&n&&(c=s(n,f)),c&&o}function r(t,e){var n=this;if(!(n instanceof r))return new r(t,e);"undefined"==typeof t&&(t=L.container);var i=t;$.isPlainObject(i)||(i=e||{},t&&(i.container=t)),$.isArray(i.container)?0==i.container.length&&(i.container=L.container):i.container=$(i.container),i=$.extend(L,i),n.userConfig=i,l=n.userConfig.imgFlag||l,n._callbacks=i.callbacks||{},n._containerIsNotDocument=$.isArray(n.userConfig.container)?9!=n.userConfig.container[0].get(0).nodeType:9!=n.userConfig.container.get(0).nodeType,n._filterItems(),n._initLoadEvent()}function s(t,e){var n={};return n.top=Math.max(t.top,e.top),n.bottom=Math.min(t.bottom,e.bottom),n.left=Math.max(t.left,e.left),n.right=Math.min(t.right,e.right),n.bottom>=n.top&&n.right>=n.left}function c(e,n,i){"img-src"===n&&(n="img"),$.isArray(e)||(e=$(e));var a=i||l+d,o=i||f+d;$.each(e,function(e){"img"==n?"img"==e.nodeName.toLowerCase()?y(e,a):$(e).find("img").each(function(t){y(t,a)}):"textarea"==e.nodeName.toLowerCase()&&$(e).hasClass(o)?t(e,!0):$(e).find("textarea."+o).each(function(e){t(e,!0)})})}var u=window,l=(u.document,"data-tb-lazyload"),f="tb-datalazyload",d="-custom",_={top:200},g="none",h="scroll",m="touchmove",b="resize",p=50,v={_guid:0,EMPTY:"",guid:function(t){return(t||v.EMPTY)+v.guid++},later:function(t,e,n,i,a){e=e||0;var o,r,s=t,c=$.makeArray(a);return"string"==typeof t&&(s=i[t]),s||S.error("method undefined"),o=function(){s.apply(i,c)},r=n?setInterval(o,e):setTimeout(o,e),{id:r,interval:n,cancel:function(){this.interval?clearInterval(r):clearTimeout(r)}}},buffer:function(t,e,n){function i(){i.stop(),a=v.later(t,e,0,n||this,arguments)}if(e=e||150,-1===e)return function(){t.apply(n||this,arguments)};var a=null;return i.stop=function(){a&&(a.cancel(),a=0)},i},unescapeHTML:function(){var t=document.createElement("div");return function(e){var n;return t.innerHTML=e,n=t.textContent}}(),_getHtmlById:function(t){var e=document.getElementById(t),n="";if(e.firstChild&&8===e.firstChild.nodeType){if(n=e.firstChild.nodeValue,""==$.trim(n))return n;$(n).insertBefore($(e)),e.parentNode.removeChild(e)}return n},filter:function(t,e,n){var i=[];return $.each(t,function(a,o){e.call(n||this,o,a,t)&&i.push(o)}),i}},y=function(t,e,n){e=e||l;var i=t.getAttribute(e);if(i&&t.src!=i){var a=t.getAttribute("onloadfun");a&&n&&$.isFunction(n[a])?n[a].apply({img:t}):t.src=i,t.removeAttribute(e)}},C=function(t,e){setTimeout(function(){e(t),$(t).removeClass("hideLzl")},100)},L={diff:_,imgOnloadCallback:{},subListLoadCallback:{},placeholder:"http://tb1.bdstatic.com/tb/static-frs/img/v2/video_background.jpg?v=1",execScript:!0,container:$(document.body),autoDestroy:!0};return $.extend(r.prototype,{_filterItems:function(){var t=this,e=t.userConfig,n=t.userConfig.container,i=[],a=[],o=[],r=[],s=[n];$.isArray(e.container)&&(t._backCompact=1,s=e.container),$.each(s,function(e,n){n=n.get(0),i=i.concat(v.filter($(n).find("img"),t._filterImg,t)),a=a.concat(v.filter($(n).find(".hideLzl"),t._filterSubList,t)),o=$.merge(o,$(n).find("textarea[data-type="+f+"]")),r=$.merge(r,$(n).find("code[data-type="+f+"]"))}),t._images=i,t._subList=a,t._textareas=o,t._codes=r},_filterImg:function(t){{var e=this;e.userConfig.placeholder}return t.getAttribute(l)?!0:void 0},_filterSubList:function(t){return $(t).hasClass("hideLzl")?!0:void 0},_initLoadEvent:function(){function t(){e._isLoadAllLazyElements()||$(document).ready(o)}var e=this,n=new Image,i=e.userConfig.placeholder,a=e.userConfig.autoDestroy,o=function(){e._loadItems(),a&&e._isLoadAllLazyElements()&&e.destroy()};e._loadFn=v.buffer(o,p,e),e.resume(),n.src=i,n.complete?t():n.onload=t},refresh:function(){this._loadFn()},_loadItems:function(){var t,e,n=this,i=n.userConfig.container;(n._backCompact||!n._containerIsNotDocument||i.get(0).offsetWidth)&&(e=n._getBoundingRect(),!n._backCompact&&n._containerIsNotDocument&&(t=n._getBoundingRect(n.userConfig.container)),n._loadImgs(e,t,n.userConfig.imgOnloadCallback),n._loadCodeAreas(e,t),n._loadSublist(e,t,n.userConfig.subListOnloadCallback),n._loadTextAreas(e,t),n._fireCallbacks(e,t))},_loadImgs:function(t,e,n){var i=this;i._images=v.filter(i._images,function(a){return o(a,t,e)?y(a,i.userConfig.imgFlag||null,n):!0},i)},_loadSublist:function(t,e,n){var i=this;i._subList=v.filter(i._subList,function(i){return o(i,t,e)?(C(i,n),void 0):!0},i)},_loadCodeAreas:function(t,n){var i=this,a=i.userConfig.execScript;i._codes=v.filter(i._codes,function(r){return o(r,t,n)?(e(r,a),i._subList=i._subList.concat(v.filter($(i.userConfig.container).find(".hideLzl"),i._filterSubList,i)),void 0):!0},i)},_loadTextAreas:function(e,n){var i=this,a=i.userConfig.execScript;i._textareas=v.filter(i._textareas,function(i){return o(i,e,n)?t(i,a):!0},i)},_fireCallbacks:function(t,e){var n=this,i=n._callbacks;$.each(i,function(n,a){var r=a.el,s=!1,c=a.fn;o(r,t,e)&&(s=c.call(r)),s!==!1&&delete i[key]})},addCallback:function(t,e){var i=this,a=i._callbacks;t=$(t).get(0),a[n(t,e)]={el:t,fn:e},i._loadFn()},loadSpecialCodeArea:function(t){e(t)},loadAllTextArea:function(){var e=this,n=e.userConfig.execScript;e._codes=v.filter(e._textareas,function(e){return t(e,n)},e)},loadAllCodeArea:function(){var t=this,n=t.userConfig.execScript;t._codes=v.filter(t._codes,function(t){return e(t,n)},t)},removeCallback:function(t,e){var i=this._callbacks;t=$(t).get(0),delete i[n(t,e)]},getElements:function(){return{images:this._images,subList:this._subList,textareas:this._textareas,codes:this._codes}},addElements:function(t){var e=this,n=e._images||[],i=e._subList||[],a=e._textareas||[],o=e._codes||[];$.each(t,function(t,e){var r=e.nodeName.toLowerCase();"img"==r?n.push(e):"ul"==r?i.push(e):"textarea"==r?$.inArray(e,a)||a.push(e):"code"==r&&($.inArray(e,o)||o.push(e))}),e._images=n,e._subList=i,e._textareas=a,e._codes=o},removeElements:function(t){"string"==typeof t?t=$(t):$.isArray(t)||(t=[t]);var e=this,n=[],i=[],a=[],o=[];$.each(e._images,function(e){$.inArray(e,t)||n.push(e)}),$.each(e._subList,function(e){$.inArray(e,t)||e.push(e)}),$.each(e._textareas,function(e){$.inArray(e,t)||a.push(e)}),$.each(e._codes,function(e){$.inArray(e,t)||a.push(e)}),e._images=n,e._subList=i,e._textareas=a,e._codes=o},_getBoundingRect:function(t){var e,n,i,a;if(void 0!==t){e=$(t).outerHeight(),n=$(t).outerWidth();var o=$(t).offset();i=o.left,a=o.top}else{var r=$(window),s=$(document);e=r.height(),n=r.width(),i=s.scrollLeft(),a=s.scrollTop()}var c=this.userConfig.diff,u=c===_?n:c,l=0,f=u,d=c===_?e:c,g=0,h=d,m=i+n,b=a+e;return $.isPlainObject(c)&&(l=c.left||0,f=c.right||0,g=c.top||0,h=c.bottom||0),i-=l,m+=f,a-=g,b+=h,{left:i,top:a,right:m,bottom:b}},_isLoadAllLazyElements:function(){var t=this;return t._images.length+t._subList.length+t._textareas.length+t._codes.length+($.isEmptyObject(t._callbacks)?0:1)==0},pause:function(){var t=this,e=t._loadFn;if(!t._destroyed&&($(u).off(h+" "+m+" "+b,e),e.stop(),t._containerIsNotDocument&&1!=t._backCompact)){var n=t.userConfig.container;n.off(h+" "+m,e)}},resume:function(){var t=this,e=t._loadFn;if(!t._destroyed&&($(u).on(h+" "+m+" "+b,e),t._containerIsNotDocument&&1!=t._backCompact)){var n=t.userConfig.container;n.on(h+" "+m,e)}},destroy:function(){var t=this;t.pause(),t._callbacks={},t._images=[],t._subList=[],t._textareas=[],t._codes=[],t._destroyed=1}}),r.loadCustomLazyData=c,r},[]); ;window.PageUnit=window.PageUnit||{load:function(t,a){var n="";return"object"==typeof PageUnitData&&null!=PageUnitData[t]&&(n=PageUnitData[t],null!=a&&0==n.indexOf("<")&&(n=$(n).attr(a).get(0).outerHTML)),n}}; ;!function(e){function t(t,l){return parseInt(e.css(t[0],l))||0}function l(e){return e[0].offsetWidth+t(e,"marginLeft")+t(e,"marginRight")}function r(e){return e[0].offsetHeight+t(e,"marginTop")+t(e,"marginBottom")}e.fn.jCarouselLite=function(t){return t=e.extend({btnPrev:null,btnNext:null,btnGo:null,mouseWheel:!1,auto:null,speed:200,easing:null,vertical:!1,circular:!0,visible:3,start:0,scroll:1,hoverScroll:!1,beforeStart:null,afterEnd:null,lazyLoadImg:!1},t||{}),this.each(function(){function i(){o(x-t.scroll),x-t.scroll>=0&&(z=setTimeout(arguments.callee,t.hoverScroll+t.speed))}function n(){o(x+t.scroll),x+t.scroll<=g-b&&(C=setTimeout(arguments.callee,t.hoverScroll+t.speed))}function s(){return p.slice(x).slice(0,b)}function c(){v.find("div[data-src]").each(function(){var t=e(this).tbattr("data-title")?e(this).tbattr("data-title"):"";e(this).replaceWith(''+t+'')})}function o(l){return a||(t.beforeStart&&t.beforeStart.call(this,s()),t.lazyLoadImg&&c(),t.circular?l<=t.start-b-1?(v.css(u,-((g-2*b)*T)+"px"),x=l==t.start-b-1?g-2*b-1:g-2*b-t.scroll):l>=g-b+1?(v.css(u,-(b*T)+"px"),x=l==g-b+1?b+1:b+t.scroll):x=l:x=Math.min(Math.max(0,l),g-b),a=!0,v.animate("left"==u?{left:-(x*T)}:{top:-(x*T)},t.speed,t.easing,function(){t.afterEnd&&t.afterEnd.call(this,s()),a=!1}),t.circular||(e(t.btnPrev).removeClass("prev_disabled"),e(t.btnNext).removeClass("next_disabled"),e(x-t.scroll<0&&t.btnPrev||[]).addClass("prev_disabled"),e(x+t.scroll>g-b&&t.btnNext||[]).addClass("next_disabled"))),!1}var a=!1,u=t.vertical?"top":"left",f=t.vertical?"height":"width",d=e(this),v=e("ul",d),h=e("li",v),m=h.size(),b=t.visible;t.circular&&(v.prepend(h.slice(m-b-1+1).clone()).append(h.slice(0,b).clone()),t.start+=b);var p=e("li",v),g=p.size(),x=t.start;d.css("visibility","visible"),p.css({overflow:"hidden","float":t.vertical?"none":"left"}),v.css({margin:"0",padding:"0",position:"relative","list-style-type":"none","z-index":"1"}),d.css({overflow:"hidden",position:"relative","z-index":"2",left:"0px"});var T=t.vertical?r(p):l(p),S=T*g,w=T*b;if(p.css({width:p.width(),height:p.height()}),v.css(f,S+"px").css(u,-(x*T)),d.css(f,w+"px"),t.btnPrev){var y=e(t.btnPrev);if(t.hoverScroll){var z;y.hover(function(){z=setTimeout(i,500)},function(){clearTimeout(z)}).click(function(){return clearTimeout(z),z=setTimeout(i,t.hoverScroll+t.speed),o(x-t.scroll)})}else y.click(function(){return o(x-t.scroll)})}if(t.btnNext){var k=e(t.btnNext);if(t.hoverScroll){var C;k.hover(function(){C=setTimeout(n,500)},function(){clearTimeout(C)}).click(function(){return clearTimeout(C),C=setTimeout(n,t.hoverScroll+t.speed),o(x+t.scroll)})}else k.click(function(){return o(x+t.scroll)})}t.btnGo&&e.each(t.btnGo,function(l,r){e(r).click(function(){return o(t.circular?t.visible+l:l)})}),t.mouseWheel&&d.mousewheel&&d.mousewheel(function(e,l){return l>0?o(x-t.scroll):o(x+t.scroll)}),t.auto&&setInterval(function(){o(x+t.scroll)},t.auto+t.speed)})}}(jQuery); ;$.tb.discardinglog={_modDiscardJs:{},_hasLogAll:!1,discarding:function(i){this._modDiscardJs[i]=1,this._hasLogAll&&this._sendLog(i)},_addLog:function(i,o,d){d[o]instanceof Array&&d[o].length>0?i.push(o+":"+d[o].join()):i.push(o)},_sendLog:function(i){var o=1;!window.PageData||"frs"!=PageData.product&&"pb"!=PageData.product||(o=Math.floor(100*Math.random())),1===o&&$.stats.track(i,"component_discard")},logAll:function(){var i,o=this,d=window.modDiscardTemplate||{},n=[];for(i in this._modDiscardJs)this._addLog(n,i,d);for(i in d)this._modDiscardJs[i]||this._addLog(n,i,d);this._hasLogAll=!0;for(var t=0,s=n.length;s>t;t++)!function(i){setTimeout(function(){o._sendLog(i)},10)}(n[t])}},window.__discarding=$.tb.discarding=function(i){$.tb.discardinglog.discarding(i)},$(function(){setTimeout(function(){$.tb.discardinglog.logAll()},1e3)}); ;!function(e){function t(e,t,i){return e>t&&t+i>e}e.widget("ui.droppable",{version:"1.10.4",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,i=this.options,s=i.accept;this.isover=!1,this.isout=!0,this.accept=e.isFunction(s)?s:function(e){return e.is(s)},this.proportions=function(){return arguments.length?(t=arguments[0],void 0):t?t:t={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}},e.ui.ddmanager.droppables[i.scope]=e.ui.ddmanager.droppables[i.scope]||[],e.ui.ddmanager.droppables[i.scope].push(this),i.addClasses&&this.element.addClass("ui-droppable")},_destroy:function(){for(var t=0,i=e.ui.ddmanager.droppables[this.options.scope];t=h&&u>=l&&a>=c&&d>=p;case"intersect":return h=c&&d>=a||p>=c&&d>=p||c>a&&p>d)&&(r>=h&&u>=r||l>=h&&u>=l||h>r&&l>u);default:return!1}},e.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(t,i){var s,o,n=e.ui.ddmanager.droppables[t.options.scope]||[],r=i?i.type:null,a=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();e:for(s=0;s0){if(e==null){e=[]}for(var c=0,a=e.length;c0)};this.isFull=function(){return !!(d>0&&f.length>=d)};this.getSize=function(){return f.length};this.pop=function(){f.pop()};this.getId=function(){return c};this.clear=function(){f=new Array()};g()};a.processor=function(){var b=false,d=null,c={};this.process=function(i){d=i;b=true;var h=i.getType(),f=i.getTo(),e=i.getFrom();if(c.hasOwnProperty(h)&&typeof c[h]=="function"){var g=c[h].call(i,h,f,e,i.body);d=null;b=false;return g}d=null;b=false;return false};this.setProcess=function(f,e){c[f]=e};this.getCurrentMsg=function(){return d}};a.Server=function(f){var c=f,b=a.Assembly,e={},d=new a.processor();this.recieve=function(g){return d.process(g)};this.sendToQueue=function(h){var g=h.getTo();if(!e.hasOwnProperty(g)||!e[g]){e[g]=new a.MsgQue(g)}e[g].add(h)};this.getMsgQueues=function(){return e};this.setProcessor=function(h,g){d.setProcess(h,g)}};a.Servers=new (function(){var b={},c=a.Assembly;this.addServer=function(d){if(!b.hasOwnProperty(d)||!b[d]){b[d]=new a.Server(d)}},this.getServer=function(d){return(b[d]||null)};this.getAllServer=function(){return b};this.removeServer=function(d){delete b[d]}})();a.Distributor=new (function(){var c=a.Servers,b=a.Assembly;this.distribute=function(f){if(!b.checkBox().checkMsg(f)){return false}var e=c.getServer(f.getTo()),d=c.getServer(f.getFrom());if(!e){d.sendToQueue(f);return false}else{return this.recieve(f)}};this.recieve=function(e){var d=c.getServer(e.getTo());if(d){return d.recieve(e)}else{return false}}})();a.MsgManager=new (function(){var d=a.Assembly,e=new a.Generator(),b=a.Servers,h=a.Distributor,i=this;var j={system:{state:true,msg:true}};var g=function(){for(var k in j){i.addMsgType(k,j[k])}};var f=function(l,q,o,p){if(l=="system"&&p.state=="init"){var k=b.getServer(q),r=k.getMsgQueues();for(var m in r){var n=r[m];if(!n||n.isEmpty()){continue}c(n)}}};var c=function(k){if(!k.isEmpty()){var l=k.get();h.distribute(l);setTimeout(function(){c(k)},50)}};this.addMsgType=function(k,l){d.typeManager().addType(k,l)};this.removeMsgType=function(k){d.typeManager().removeType(k)};this.checkMsg=function(k){return d.checkBox().checkMsg(k)};this.sendMsg=function(k,o,n,l){var m=e.getNewMessage(k,o,n,l);if(m){return h.distribute(m)}else{return false}};this.sendMsgToAll=function(k,p,n){var l=b.getAllServer();for(var m in l){if(m==p){continue}var o=e.getNewMessage(k,p,m,n);if(o){h.distribute(o)}}};this.setProcessor=function(l,n,m){var k=b.getServer(l);if(!k){return false}k.setProcessor(n,m);return true};this.registerServer=function(k){b.addServer(k);this.setProcessor(k,"system",f)};this.initedServer=function(k){this.sendMsgToAll("system",k,{state:"init",msg:true})};g()})();TbMsgSys=a.MsgManager})();var TbCom;var TbComMsName="ComManager";var MsgSystem=MsgSystem||{need_start:true};(function(){var b=null;var f=typeof _VERSION==="undefined"?{}:_VERSION;var a={staticVersion:18.46,comlist:{PassportFillName:{inited:false,loaded:false,url:"/tb/static-common/"+(f["component/commonLogic/common/passport/PassportFillName.js"]||"component/commonLogic/common/passport/PassportFillName.js")},PassportSign:{inited:false,loaded:false,url:"/tb/static-common/"+(f["component/commonLogic/common/passport/PassportLogin.js"]||"component/commonLogic/common/passport/PassportLogin.js")},PassportRegister:{inited:false,loaded:false,url:"/tb/static-common/"+(f["component/commonLogic/common/passport/PassportRegister.js"]||"component/commonLogic/common/passport/PassportRegister.js")},User:{inited:false,loaded:false,url:"/tb/static-common/"+(f["component/commonLogic/common/user/User.js"]||"component/commonLogic/common/user/User.js")},UserBar:{inited:false,loaded:false,url:"/tb/static-common/"+(f["component/commonLogic/common/user/UserBar.js"]||"component/commonLogic/common/user/UserBar.js")},Suggestion:{inited:false,loaded:false,url:"/tb/static-common/"+(f["component/commonLogic/common/suggestion/Suggestion.js"]||"component/commonLogic/common/suggestion/Suggestion.js")},Poptip:{inited:false,loaded:false,url:"/tb/static-common/"+(f["component/commonLogic/common/poptip/Poptip.js"]||"component/commonLogic/common/poptip/Poptip.js")},WealthSystem:{inited:false,loaded:false,url:"/tb/static-common/"+(f["component/commonLogic/common/wealth/WealthSystem.js"]||"component/commonLogic/common/wealth/WealthSystem.js")},Search:{inited:false,loaded:true,url:"/tb/static-common/"+(f["component/commonLogic/common/search/Search.js"]||"component/commonLogic/common/search/Search.js")},MsgSystem:{inited:false,loaded:false,url:"/tb/static-common/"+(f["component/commonLogic/common/crosspage_msg_system/MsgSystem.js"]||"component/commonLogic/common/crosspage_msg_system/MsgSystem.js")},UserMessage:{inited:false,loaded:false,url:"/tb/static-common/"+(f["component/commonLogic/common/user_message/UserMessage.js"]||"component/commonLogic/common/user_message/UserMessage.js")}},defualtMerger:["User","UserBar","Suggestion","Poptip","WealthSystem"],defaultMergerURL:"/tb/static-common/"+(f["component/commonLogic/common/common_default_merger.js"]||"component/commonLogic/common/common_default_merger.js"),error:{SUCCESS:0,COM_NOT_FOUND:1,METHOD_NOT_FOUND:2,PROCESS_ERROR:3}};var g=function(i,h){var k=i;var j=h;this.error=function(){return k};this.result=function(){return j}};var e=function(){var h=arguments[0];this.createPars=function(k){var j=[];for(var l=k;l0||!r(x))){h[v]=x;for(var u=0;u=0&&r(h[u])){i(u);arguments.callee(u)}}};var r=function(v){var t=true;for(var u=0;u=0){$.console.log("该模块在默认合并文件中,不做单独加载 : "+t);return}if(p.comlist[t]["loaded"]){return}$.JsLoadManager.use(p.comlist[t]["url"]+"?v="+a.staticVersion,function(){o(t)});p.comlist[t]["loaded"]=true};this.process=function(u,w,v){l(u);var t=new e(arguments).createPars(2);return TbMsgSys.sendMsg("process",TbComMsName,u,{method:w,params:t})};this.addEvent=function(t,u,v){return this.process(t,"addEvent",u,v)};this.removeEvent=function(t,u,v){return this.process(t,"removeEvent",u,v)};this.setNeedStartConfig=function(t){if(t&&typeof t=="object"){$.extend(q,t)}};this.defaultLogicInit=function(w,y,x,u,t){var v=u||null;if(typeof t!="undefined"){a.staticVersion=t}this.setNeedStartConfig(x);if(q.User){this.process("User","init",w,y);if(q.UserBar){this.process("UserBar","init",v)}}if(q.Suggestion){this.process("Suggestion","createMainSearchSuggestion")}if(w.is_login&&!w.no_un&&q.MsgSystem&&(!MsgSystem||!MsgSystem.hasOwnProperty("need_start")||MsgSystem.need_start===true)){this.process("MsgSystem","init");if(q.UserMessage){this.process("UserMessage","init",y,v)}}};n()})();TbCom=c})();var TbICom=function(){var d=false,c,b=this;var a=[];var e;this.processMsgHandler=function(f,k,i,j){var g=j.params,h=j.method;if(!e[h]||typeof e[h]!="function"){$.console.error("找不到方法: "+h);return false}return e[h].apply(b,g)};this.initSys=function(h,g,f){if(d){return}c=h;$.extend(e,f);a=g;TbMsgSys.registerServer(c);TbMsgSys.setProcessor(c,"process",this.processMsgHandler);TbMsgSys.sendMsg("needCom",c,"ComManager",{coms:a});d=true;$.console.debug("模块: "+h+" initSys!依赖:"+g)};this.init=function(){};this.getRelationship=function(){return a};this.getId=function(){return c};this.getInited=function(){return d};this.addEvent=function(f,g){$(b).bind(f,g)};this.removeEvent=function(f,g){$(b).unbind(f,g)};this.dispatchEvent=function(){$(b).trigger.apply($(b),arguments)};e={init:this.init,addEvent:this.addEvent,removeEvent:this.removeEvent,dispatchEvent:this.dispatchEvent,getId:this.getId,getRelationship:this.getRelationship,getInited:this.getInited}};var TbUtil={addStamp:function(a){return a+(a.indexOf("?")==-1?"?":"&t=")+new Date().getTime().toString(32)},toQueryString:function(b){var c=[];for(var a in b){c.push(encodeURIComponent(a)+"="+encodeURIComponent(b[a]))}return c.join("&")},selectAll:function(g,e,f){var d=document.getElementById(g);if(d){var b=d.getElementsByTagName("input");for(var c=0,a=b.length;c/g,">").replace(/"/g,""")};TbUtil.escapeUTF8=function(a){return escape(String(a)).replace(/%u(\w{4})/g,function(b,c){return encodeURIComponent(String.fromCharCode("0x"+c)).replace(/%/g,"%25")})};TbUtil.resizePic=function(d,a,j,e){var i=a||120;var f=j||120;var c=false;var g=d;if(g.width==0){var h=this;var l=arguments;setTimeout(function(){l.callee.apply(h,l)},100);return false}function k(m,p,n,r){var o=0,q=m,s=p;if(m>n){o+=1}if(p>r){o+=2}switch(o){case 1:q=n;q=p*n/m;case 2:s=r;q=m*r/p;case 3:s=(p/r>m/n)?r:p*n/m;q=(p/r>m/n)?m*r/p:n}if(o!=0){c=true}return[q,s]}var b=k(g.width,g.height,i,f);d.style.width=b[0]+"px";d.style.height=b[1]+"px";d.style.visibility="visible";if(e==true){d.style.marginTop=(j-parseInt(b[1]))/2+"px"}return c};TbUtil.json={};TbUtil.json.encode=(function(){var b={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function a(f){if(/["\\\x00-\x1f]/.test(f)){f=f.replace(/["\\\x00-\x1f]/g,function(g){var h=b[g];if(h){return h}h=g.charCodeAt();return"\\u00"+Math.floor(h/16).toString(16)+(h%16).toString(16)})}return'"'+f+'"'}function d(m){var g=["["],h=m.length,f,j,k;for(j=0;j'+d.replace(/\r?\n/gi,"
")+"
";var b=a||false;if(b){Fe.Dialog.open(c,{title:"",width:200});setTimeout(function(){Fe.Dialog.close()},500)}else{Fe.Dialog.alert(c,{title:e,width:380})}};TbUtil.hiPopHandler=function(a){if(a==0){TbUtil.login()}else{if(a==1||a==3){Fe.Dialog.alertMessageFace("该用户不存在",json._info.replace(/\r?\n/gi,"
"),{title:"错误提示",width:350})}}};TbUtil.browser=function(){var c=navigator.userAgent;var d={};var a="",b="";if(c.indexOf("AppleWebKit")>=0){a="webkit"}else{if(c.indexOf("Gecko")>=0){a="gecko"}else{if(c.indexOf("MSIE")>=0){a="ie"}}}if(c.indexOf("Firefox")>=0){b="firefox"}else{if(c.indexOf("360SE")>=0){b="360se"}else{if(c.indexOf("SE")>=0){b="sougou"}else{if(c.indexOf("Maxthon")>=0){b="maxthon"}else{if(c.indexOf("MSIE")>=0){b="ie"}else{if(c.indexOf("Chrome")>=0){b="chrome"}else{if(c.indexOf("Safari")>=0){b="safari"}}}}}}}return{core:a,name:b}};TbUtil.handleError=function(d,e,f,c,a){d.no=d.no||d.error_no;_autoHide=a||false;if(d.no==4){Fe.showLoginLayer(true)}else{var b=e||"操作失败";var f=f||"left";var c=c||d.error||FORUM_ERROR_INFO[d.no]||"操作失败";TbUtil.showErrorTip(b,c,f,_autoHide)}};var PageData=PageData||{};PageData.tbs_loaded=true;TbUtil.requestTbs=function(asyn){if(typeof asyn=="undefined"){asyn=true}if(PageData.tbs_loaded){return}var url=FORUM_POST_URL.get_tbs+"?t="+Math.random();var parmas="";Fe.Ajax.request(url,function(xml){var json=eval("("+xml.responseText+")");if(json.tbs){PageData.tbs=json.tbs;PageData.tbs_loaded=true}else{PageData.tbs=""}},{async:asyn})};String.prototype.trim=function(){var a=this;var b=a.replace(/^\s*|\s*$/g,"");return b};String.prototype.clear=function(){var a=this;var b=a.replace(/\^\<]*\/?\>/gi,"");b=b.replace(/\^\<]*\>(\ \;)?\<\/p\>|\/gi,"");return b.trim()};String.prototype.wordLen=function(){var a=this.replace(/[^\x00-\xff]/g,"**");return a.length};String.prototype.wordCut=function(e,b){if(typeof e!="number"||e<0){return}var c=e,h=b||"";var g=this,a=new Array();var f=g.replace(/[^\x00-\xff]/g,function(i){a.push(i);return"*)"});if(f[c-1]&&f[c-1]=="*"&&f[c]==")"){c++}if(c>=f.length){return g}f=f.substr(0,c);var d=0;f=f.replace(/(\*\))/g,function(j){var i=a[d];d++;return i});return f+h};String.prototype.subByte=function(c){if(this.wordLen()<=c){return this}for(var b=Math.floor((c=c-2)/2),a=this.length;b=c){return this.substr(0,b)+"\u2026"}}return this};String.prototype.subByte2=function(c){if(this.wordLen()<=c){return this}for(var b=Math.floor((c=c-2)/2),a=this.length;bc){return this.substr(0,b)}}return this};String.prototype.subByteFix=function(d,c){if(this.wordLen()<=d){return this}for(var b=Math.floor((d-2)/2),a=this.length;b=d){return this.substr(0,b)+(c?c:"")}}return this};new (function(){TbICom.call(this);var a=this;var e={_keyValues:[["贴吧投诉","http://tieba.baidu.com/tousu/new"],["帖吧投诉","http://tieba.baidu.com/tousu/new"],["tiebatousu","http://tieba.baidu.com/tousu/new"],["贴吧投诉吧","http://tieba.baidu.com/tousu/new"],["贴吧投诉中心","http://tieba.baidu.com/tousu/new"],["投诉中心","http://tieba.baidu.com/tousu/new"],["投诉","http://tieba.baidu.com/tousu/new"],["贴吧举报","http://tieba.baidu.com/tousu/new"],["知道投诉","http://tousu.baidu.com/zhidao"],["空间投诉","http://tousu.baidu.com/hi"],["百科投诉","http://tousu.baidu.com/baike"],["zhidaotousu","http://tousu.baidu.com/zhidao"],["kongjiantousu","http://tousu.baidu.com/hi"],["baiketousu","http://tousu.baidu.com/baike"]],go:function(k){var f=this._keyValues;var g=k.toLowerCase();for(var h=0;h=0){var f="fr=tb01000&";if(window.location.href.match("ftype=guide")){f="fr=tb01se0&"}var g=k.href.indexOf("fr=");if(g>-1){k.href=k.href.substring(0,g)+f}else{k.href=k.href+f}}h=h.replace(/\%/gi,"%25").replace(/&/gi,"%26").replace(/\+/gi,"%2B").replace(/[\ \u3000]/gi,"%20").replace(/\//gi,"%2F").replace(/\#/gi,"%23").replace(/\=/gi,"%3D");var g=k.href.indexOf(j+"=");if(g>-1){k.href=k.href.substring(0,g)+j+"="+h}else{k.href=k.href+j+"="+h}}}a.dispatchEvent("setWord",j)},isIndexPage:function(){return/^\w+:\/\/[^\/]+\/(index\.html?)|(i\/\d+)/.test(window.location.href)},setVal:function(f,g){f.kw.value=g.kw},DBC2SBC:function(f){return TbUtil.DBC2SBC(f)},search:function(i,f){a.dispatchEvent("search",i);if(!f){f=""}if(b(i.kw.value)==""){window.location.href="http://tieba.baidu.com";return false}var g="/f";if(d("jointb"+f)){var h=c.searchTieba(i.kw.value);if(h===false){return h}}if(d("authortb"+f)){return c.searchItieba(i.kw.value)}if(d("searchtb"+f)){return c.searchWord(i.kw.value)}if(d("nametb"+f)){window.location.href="/f?ct=536870912&tn=searchPostListByName&rn=30&cm=1104rs2=3&ie=utf-8&kw="+encodeURIComponent(i.kw.value);return false}if(d("nowtb"+f)){window.location.href="/f/search/res?ie=utf-8&kw="+encodeURIComponent(PageData.present_forum.unescapeHTML())+"&qw="+encodeURIComponent(i.kw.value);return false}i.action=g;return true},searchItieba:function(f){window.location.href="/i/sys/enter?ie=utf-8&kw="+encodeURIComponent(f);return false},searchTieba:function(f){var g=b(f);if(e.go(g)){return false}},searchWord:function(f){$.tb.post("/data/searchhistory?method=add_word&ie=UTF-8",{word:f},function(){});setTimeout(function(){window.location.href="/f/search/res?ie=utf-8&qw="+encodeURIComponent(f)},100);return false}};this.initSys("Search",[],{headSetWord:c.setWord,headSetVal:c.setVal,headSearch:c.search,headSearchTieba:c.searchTieba,headSearchITieba:c.searchItieba,headSearchWord:c.searchWord})})();var NsLogLinker={_pid:0,stat:function(d,b){var f="nslog__"+(new Date()).getTime();var e=window[f]=new Image();var a=b||this._pid;e.onload=(e.onerror=function(){window[f]=null});e.src="http://nsclick.baidu.com/v.gif?pid="+a+"&url="+encodeURIComponent(d)+"&t="+(new Date()).getTime()+"&type=0";e=null},_checkEvent:function(c){c=c||event;var b=c.srcElement||c.target;if(b.nodeType!=1){b=b.parentNode}while(b&&b.tagName&&b.tagName.toUpperCase()!="A"){b=b.parentNode}if(b&&b.tagName&&b.tagName.toUpperCase()=="A"){if(!/^([\w-]+\.)*?baidu\.com/i.test(b.host)){var a=b.href;setTimeout(function(){NsLogLinker.stat(a)},1)}}b=null},isOutLink:function(a){return(!/([\w-]+\.)*?baidu\.com/i.test(a))},bind:function(a){this._pid=a;if(document.attachEvent){document.attachEvent("onmousedown",this._checkEvent);window.attachEvent("onunload",function(){document.detachEvent("onmousedown",NsLogLinker._checkEvent)})}else{document.addEventListener("mousedown",this._checkEvent,false);window.addEventListener("unload",function(){document.removeEventListener("mousedown",NsLogLinker._checkEvent,false)},false)}}};window.baidu=window.baidu||{version:"1-0-0",emptyFn:function(){}};baidu.swf=baidu.swf||{};baidu.isString=function(a){return(typeof a=="object"&&a&&a.constructor==String)||typeof a=="string"};baidu.swf.getVersion=function(){var h=navigator;if(h.plugins&&h.mimeTypes.length){var b=h.plugins["Shockwave Flash"];if(b&&b.description){return b.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s)+r/,".")+".0"}}else{if(window.ActiveXObject&&!window.opera){for(var d=10;d>=2;d--){try{var g=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+d);if(g){return d+".0.0";break}}catch(f){}}}}};baidu.swf.createHTML=function(r){r=r||{};var h=baidu.swf.getVersion(),q=1;var f=r.ver||"6.0.0",e,c;if(h){h=h.split(".");f=f.split(".");for(var d=0;d<3;d++){e=parseInt(h[d],10);c=parseInt(f[d],10);if(ce){q=0;break}}}}else{q=0}if(!q){return""}var l=r.vars;var d,b,g,p;var j=["classid","codebase","id","width","height","align"];r.align=r.align||"middle";r.classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000";r.codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0";r.movie=r.url||"";delete r.vars;delete r.url;if(baidu.isString(l)){r.flashvars=l}else{var n=[];for(b in l){p=l[b];if(p){n.push(b+"="+encodeURIComponent(p))}}r.flashvars=n.join("&")}var m=["");var a={wmode:1,scale:1,quality:1,play:1,loop:1,menu:1,salign:1,bgcolor:1,base:1,allowscriptaccess:1,allownetworking:1,allowfullscreen:1,seamlesstabbing:1,devicefont:1,swliveconnect:1,flashvars:1,movie:1};for(b in r){p=r[b];if(a[b]&&p){m.push('')}}r.src=r.movie;r.name=r.id;delete r.id;delete r.movie;delete r.classid;delete r.codebase;r.type="application/x-shockwave-flash";r.pluginspage="http://www.macromedia.com/go/getflashplayer";m.push("");return m.join("")};baidu.swf.create=function(a,d){a=a||{};var b=baidu.swf.createHTML(a);var c=true;if(d&&baidu.isString(d)){d=document.getElementById(d)}if(b.length<=0){b=a.errorMessage||"";c=false}if(d){d.innerHTML=b}return c};baidu.swf.getMovie=function(a){return document[a]||window[a]};var CaptchaCom=function(b,a){this.init(b,a)};CaptchaCom.DEFAULT_OPTIONS={imgUrl:"/cgi-bin/genimg?",audioUrl:"/cgi-bin/genaudio?",inputFocusClass:"c_captcha_focus",onInputFocus:null,onInputBlur:null,beforeImgInit:null,afterImgInit:null,template:'
请点击后输入验证码
'};CaptchaCom.prototype={init:function(c,a){this.captchaReq=c;this.options=$.extend({},CaptchaCom.DEFAULT_OPTIONS,a);this.initialized=false;this.needUpdate=true;this.j_container=$(a.container);var b=$(this.options.template);this.j_container.html(b);this.j_content=this.j_container.find(".j_captcha_content");this.j_input=this.j_container.find(".j_captcha_input");this.j_tip=this.j_container.find(".j_captcha_tip");this.j_error=this.j_container.find(".j_captcha_err");this.j_imgWrapper=this.j_container.find(".j_captcha_img_wrapper");this.j_imgChangeBtn=this.j_container.find(".j_captcha_img_change");this.j_switchAudioBtn=this.j_container.find(".j_captcha_audio_switch");this.j_audioIcon=this.j_container.find(".j_captcha_audio_icon");this.j_audioWrapper=this.j_container.find(".j_captcha_audio_wrapper");this._initEvents()},_initEvents:function(){var a=this;this.j_imgChangeBtn.click(function(){a.reload();return false});this.j_switchAudioBtn.click(function(){a.getAudio();return false});this.j_input.blur(function(b){$(this).removeClass(a.options.inputFocusClass);if(a.options.onInputBlur){a.options.onInputBlur.call(this,b,a)}a.reset()});this.j_input.focus(function(b){$(this).addClass(a.options.inputFocusClass);if(a.options.onInputFocus){a.options.onInputFocus.call(this,b,a)}if(a.initialized===false){if(a.options.beforeImgInit){a.options.beforeImgInit.call(a)}a.updateCaptchaImg();a.initialized=true;if(a.options.afterImgInit){a.options.afterImgInit.call(a)}}})},changeContent:function(a){if(a=="loginUser"){if(this.captchaReq.answer.showShenshou==1&&this.captchaReq.answer.open_by_spam!=1){this.j_tip.text("为抵御爆吧挖坟,吧主设置本吧"+this.captchaReq.answer.shenshou_lv+"级以下用户暂时需要输入中文验证码")}else{this.j_tip.text("请点击后输入验证码")}}else{if(this.captchaReq.answer.showShenshou==1&&this.captchaReq.answer.open_by_spam!=1){this.j_tip.text("为抵御爆吧挖坟,吧主设置本吧"+this.captchaReq.answer.shenshou_lv+"级以下用户暂时需要输入中文验证码")}else{this.j_tip.text("请点击后输入验证码,匿名发贴需要输入验证码")}}},getAudio:function(){this.needUpdate=false;this.j_audioIcon.show();var a=this.options.audioUrl+this.signStr+"&t="+Math.random();if(!document.all){this.j_audioWrapper.html('')}else{this.j_audioWrapper.html('')}this.j_input.focus()},_getData:function(){this.captchaReq.antiProcess();var b=this.captchaReq.getVcodeUrl()+"&t="+Math.random();var a=this;$.ajax({url:b,dataType:"json",success:function(d){var c=d.data;a.signStr=c.vcodestr},async:false})},validCaptcha:function(){var a=this.j_input.val();this.captchaReq.antiProcess();if(this.captchaReq.needCaptcha){if(a==null||a.length==0){this.j_error.text("验证码不能为空,请输入验证码").show();this.j_input.focus();return false}}return true},getInputValue:function(){return this.j_input.val().replace(/\s/g,"")},changeYImg:function(a){a.src="http://static.tieba.baidu.com/tb/img/errorYimg.jpg"},updateCaptchaImg:function(){if(!this.needUpdate){return}var a=this;this.needUpdate=false;this._getData();var c=this.j_img;var b=this.options.imgUrl+this.signStr+"&t="+Math.random();if(!c){this.j_imgWrapper.html('');this.j_img=this.j_imgWrapper.find("img").click(function(){a.reload()})}else{c.attr("src",b)}this.j_content.show()},reload:function(){this.reset();this.updateCaptchaImg()},updateImage:function(){this.needUpdate=false;this.j_input.val("").focus();var a=this.imgUrl+this.signStr+"&t="+Math.random();this.j_img.attr("src",a)},show:function(){if(this.captchaReq.answer.showShenshou==1){if(this.captchaReq.answer.open_by_spam==1){this.j_tip.text("请点击后输入验证码")}else{this.j_tip.text("为抵御爆吧挖坟,吧主设置本吧"+this.captchaReq.answer.shenshou_lv+"级以下用户暂时需要输入中文验证码")}this.j_input.css("imeMode","active");this.j_switchAudioBtn.hide()}this.j_container.show()},hide:function(){this.j_container.hide();this.j_input.val("");this.j_error.html("")},focus:function(){this.j_input.focus()},clear:function(){this.j_input.val("")},reset:function(){this.needUpdate=true},showErrorTip:function(a){this.j_error.text(a).show()},hideErrorTip:function(){this.j_error.hide().html("")}};var CaptchaReqCom=function(b,a){this.needCaptcha=false;this.isPosting=false;this.isAnonymous=false;this.answer={antiNeedVerify:null,antiNeedVerifyAnonymous:null};this.postType="thread";this.url=a||"/f/user/json_needvcode";this.forumName=b.forumName;this.forumId=b.forumId;if(b.postType=="reply"){this.postType="reply";if(b.tid){this.tid=b.tid}}this.async=true;if(b.async===false){this.async=false}delete b.forumName;delete b.forumId;delete b.postType;delete b.tid;delete b.async;this.params=b};CaptchaReqCom.prototype={_ifHasKnowAnti:function(){if(this.isAnonymous){return !(this.answer.antiNeedVerifyAnonymous==null)}else{return !(this.answer.antiNeedVerify==null)}},setVcodeUrl:function(a){if(this.isAnonymous){this.answer.vcodeUrlAnonymous=a}else{this.answer.vcodeUrl=a}},getVcodeUrl:function(){if(this.isAnonymous){return this.answer.vcodeUrlAnonymous}else{return this.answer.vcodeUrl}},_getAntiAnswer:function(c){var a=this;var b={rs1:this.isAnonymous?"1":"0",rs10:this.postType=="thread"?"1":"0",lm:this.forumId,word:this.forumName,t:Math.random()};if(this.tid){b.tid=this.tid}this.isPosting=true;$.ajax({url:a.url,data:b,async:a.async,dataType:"json",success:function(d){a.handleAnswer(d.data);c();a.isPosting=false}})},handleAnswer:function(a){if(this.isAnonymous){this.answer.antiNeedVerifyAnonymous=a.need}else{this.answer.antiNeedVerify=a.need}this.answer.showShenshou=a.open_shenshou;if(a.open_shenshou==1){this.answer.shenshou_lv=a.shenshou_lv;this.answer.open_by_spam=a.open_by_spam}if(this.tid){a.vcodeUrl+="&tid="+this.tid}this.setVcodeUrl(a.vcodeUrl)},setData:function(a,b){this.params[a]=b},antiProcess:function(d){if(!this.isPosting){var b=this;var c="";var a=function(){if(b.isAnonymous){c=b.answer.antiNeedVerifyAnonymous}else{c=b.answer.antiNeedVerify}b.needCaptcha=c=="1";if(d){d(b.needCaptcha)}};if(this._ifHasKnowAnti()){a()}else{this._getAntiAnswer(a)}}},reload:function(){this.answer.antiNeedVerifyAnonymous=null;this.answer.antiNeedVerify=null},getCaptchaInstance:function(a){return new CaptchaCom(this,a)}};var UiBubbleTipBase=function(e){var i={content:"",arrow_dir:"up",bubble_css:{width:170},arrow_pos:{},attr:"",wrap:$("body"),closeBtn:!1,level:1,arrowReq:!0};this._option=$.extend(!0,i,e),this._event={},this.init()};UiBubbleTipBase.bubbles={},UiBubbleTipBase.count=0,UiBubbleTipBase.prototype={constructor:UiBubbleTipBase,init:function(){this.buildBubble()},buildBubble:function(){var e=this._option;_html=this.genericTpl(),wrap=e.wrap,this.j_bubble=$(_html),wrap.append(this.j_bubble),this.j_bubble.css(e.bubble_css),this.j_bubble.find(".j_ui_triangle").css(e.arrow_pos),this.setContent(e.content),this.j_bubble.find(".j_content").css("up"==e.arrow_dir||"down"==e.arrow_dir?{width:e.bubble_css.width}:{width:e.bubble_css.width-7}),e.closeBtn&&this.j_bubble.find(".j_close").show(),e.arrowReq||this.hideArrow(),this._bindEvent(),this.cid="bubble_"+UiBubbleTipBase.count,UiBubbleTipBase.count++},_bindEvent:function(){var e=this._option,i=this;e.closeBtn&&this.j_bubble.find(".j_close").click(function(){var e=i.triggerEvent("onclose");e&&i.closeBubble()})},bind:function(e,i,b){var t={stat:b?!0:!1,fun:i};this._event[e]?this._event[e].push(t):(this._event[e]=[],this._event[e].push(t))},triggerEvent:function(e){var i=!0;if(this._event[e])for(var b=this._event[e],t=0;t
'},closeBubble:function(){this.j_bubble.remove(),delete UiBubbleTipBase.bubbles[this.cid]},hideArrow:function(){this.j_bubble.find(".ui_triangle").hide()},hideBubble:function(){this.j_bubble.hide()},showBubble:function(e){if(e)if(e.zIndex)this._getBubbleInfo(e.zIndex),this.j_bubble.css({"z-index":e.zIndex}),this.showByTime(e.type,e.time);else{this._getBubbleInfo();var i=this._handleCover();i||this.showByTime(e.type,e.time)}else{this._getBubbleInfo();var i=this._handleCover();i||this.j_bubble.show()}},showByTime:function(e,i){var b=this;"delayShow"==e?setTimeout(function(){b.j_bubble.show()},i):"delayClose"==e?(b.j_bubble.show(),setTimeout(function(){b.closeBubble()},i)):b.j_bubble.show()},_getBubbleInfo:function(e){var i=this,b=i.j_bubble,t=b.width();b.width(0),b.show();var s=b.offset(),n=s.top,o=s.left,l=b.find(".j_body").height()+12;b.hide(),b.width(t),i.minL=o,i.maxL=o+t+7,i.minT=n,i.maxT=n+l,e&&(i.bubbleType="inter"),UiBubbleTipBase.bubbles[i.cid]=i},_isCover:function(){var e=this,i=e.cid,b=UiBubbleTipBase.bubbles,t=e;for(var s in b)if(s==i||"inter"==e.bubbleType||"none"==b[s].j_bubble.get(0).style.display);else{var n=b[s];if(t.minLn.minL&&t.minTn.minT)return n}return!1},_handleCover:function(){var e=this._isCover(),i=this;if(e){var b=e._option.level,t=i._option.level;return t>b?(e.j_bubble.fadeOut("slow"),!1):!0}return!1},setBubblePosition:function(e){e&&(e.top||e.left)&&this.j_bubble.css(e)},setBubbleFixed:function(){this.j_bubble.addClass($.browser.msie&&"6.0"==$.browser.version?"ui_bubble_fixed_hack":"ui_bubble_wrap_fixed")},setBubbleNormal:function(){this.j_bubble.removeClass($.browser.msie&&"6.0"==$.browser.version?"ui_bubble_fixed_hack":"ui_bubble_wrap_fixed")},setFixedForMessage:function(){var e,i=this,b=null;e&&clearTimeout(e),$(window).bind("scroll",function(){e&&clearTimeout(e),null==b&&(b={top:parseInt(i.j_bubble.css("top"))||i.j_bubble.position().top}),e=setTimeout(function(){i._bubleFixedSet(b)},10)})},setContent:function(e){this.j_bubble.find(".j_body").html(e)},_bubleFixedSet:function(e){{var i=this,b=$(window).scrollTop();this._option}b>e.top?(i.setBubbleFixed(),$.browser.msie&&"6.0"==$.browser.version||i.j_bubble.css({top:-5}),i.j_bubble.find(".ui_triangle").hide()):(i.setBubbleNormal(),i.j_bubble.css({top:e.top}),i.j_bubble.find(".ui_triangle").show())}}; ;var PopWindow=function(t){var e={styleId:1,templateObj:{title:"无",content:"无",button:"无",note:"无",link:"#"}};this._option=$.extend(!0,e,t),this._event={}};PopWindow.prototype={constructor:PopWindow,bind:function(t,e,n){var i={stat:n?!0:!1,fun:e};this._event[t]?this._event[t].push(i):(this._event[t]=[],this._event[t].push(i))},trigger:function(t){if(this._event[t])for(var e=this._event[t],n=0;n0)return!1;var e=this._option,n=$("#j_popWindow_tpl_"+e.styleId).html(),i=e.templateObj.title;e.templateObj.title=i+t._sayHi();var o=$.tb.format(n,e.templateObj);this.PopupContainer=document.createElement("div"),this.PopupContainer.id="pop_frame",this.PopupContainer.innerHTML=o,document.body.appendChild(this.PopupContainer),setTimeout(function(){t._setAnimation(),t._eventInit()},200)},_setAnimation:function(){var t=$("#pop_animate"),e=t.outerHeight();$("#pop_frame").css({height:e+2+"px"}),t.css({height:e+"px",top:e+"px"}).animate({top:"0px"},"slow")},_sayHi:function(){var t="",e=(new Date).getHours();return e>=0&&5>e?t=":":e>=5&&9>e?t=",早上好:":e>=9&&12>e?t=",上午好:":e>=12&&14>e?t=",中午好:":e>=14&&18>e?t=",下午好:":e>=18&&24>e&&(t=",晚上好:"),t},_eventInit:function(){var t=this,e=$("#pop_frame");e.find(".pop_close").click(function(){var e=t.trigger("closeSuccess");if(e)return $("#pop_frame").remove(),!1});var n=e.find(".pop_button");n.click(function(){var e=t.trigger("clickBtn");e&&$("#pop_frame").remove()})},showPop:function(){var t=this;t._buildHtml()}}; ;var Enum={FileStatus:{NONE:0,RUNNING:1,ERROR:2,COMPLETE:3},ProcessorStatus:{NOTSTART:0,RUNNING:1,PAUSE:2,COMPLETE:4,ERROR:5},ProcessorCommand:{PAUSE:0,STOP:1,NONE:2},Error:{NONE:{no:0,msg:""},FILE_SIZE_OVERFLOW:{no:1,msg:"文件大小超出限制"},NETWORK_ERROR:{no:2,msg:"网络错误"},JSON_PARSE_ERROR:{no:3,msg:"数据转换失败"}}},Compressor=function(){var n=null,e=null,t=function(){n=document.createElement("canvas"),e=n.getContext("2d")};this.compress=function(t){var o=t.quality?t.quality:1,a=t.imageType?t.imageType:"image/jpeg",s=1,u=t.image.width,i=t.image.height;if(t.maxWidth&&t.maxHeight){var l=u/t.maxWidth,m=i/t.maxHeight;s=l>m?1/l:1/m}s=t.rate?t.rate:s;var c=t.isIos?r(t.image,u,i):1;n.width=u*s,n.height=i*s,e.clearRect(0,0,u,i),e.scale(s,s/c),e.drawImage(t.image,0,0);var h=n.toDataURL(a,o),d=(h.length-814)/1.37;return t.maxSize&&t.maxSizes;){var l=a[4*(i-1)+3];0===l?u=i:s=i,i=u+s>>1}var m=i/o;return 0===m?1:m};t()},MImage={};MImage._createImage=function(n){var e=new Image;return e.size=n.file.size||0,e.name=n.file.name||"",e.type=n.file.type||"",e.percent=0,e.status=Enum.FileStatus.NONE,e.response="",e.errorCode=0,e.errorMessage="",e.onLoaded=n.onLoaded,e.id="img_"+(new Date).getTime()+"_"+e.type,e.getData=function(){return MImage._getImageData(e.src)},e.getPostData=function(){return MImage._getPostData(e)},e},MImage._getPostData=function(n){return{file:{filename:n.name,type:n.type,content:n.getData()}}},MImage._getImageData=function(n){return n.split(",")[1]},MImage._calImageSize=function(n){return(n.length-814)/1.37},MImage._readImage=function(n,e){var t=new FileReader;t.onload=function(n){e&&e(n.target.result)},t.readAsDataURL(n)},MImage._compressImage=function(n,e,t,r,o){var a=new Compressor;return n.width>t||n.height>r?a.compress({image:n,maxWidth:t,maxHeight:r,maxSize:o}):n.src},MImage.create=function(n){var e=(new Compressor,!1),t=null;return t=MImage._createImage(n),t.onload=function(){!e&&n.maxWidth&&n.maxHeight&&(t.width>n.maxWidth||t.height>n.maxHeight)?(t.src=MImage._compressImage(t,t.type,n.maxWidth,n.maxHeight,n.maxSize),t.size=MImage._calImageSize(t.src),e=!0):(t.onLoaded&&(t.onLoaded(t),t.onLoaded=null),e=!1)},MImage._readImage(n.file,function(n){t.src=n}),t};var Queue=function(){this._queue=[],this._index=0,this.push=function(n){"Array"!=typeof n?this._queue.push(n):this._queue.concat(n)},this.pop=function(){return this._queue[this._index++]},this.remove=function(n){this._queue.splice(n,1)},this.insert=function(n,e){this._queue.splice(n,e,0)},this.clear=function(){this._queue=[],this._index=0},this.length=function(){return this._queue.length},this.remainLength=function(){return this._queue.length-this._index},this.get=function(n){return this._queue[n]},this.toArray=function(){return this._queue}},ImageQueue=function(n){Queue.call(this);var e=0,t=n.maxLength||10,r=n.maxWidth||0,o=n.maxSize||5242880,a=n.maxHeight||0,s=this,u=n.onLoaded||null,i=n.onItemLoaded||null,l=function(n){n.status=Enum.FileStatus.NONE,s.push(n),i&&i(n),e==s.length()&&u&&u(s.toArray())},m=function(n){return s.length()0;){var n=c();if(null==n)break;var e=t.pop();e&&(o.runHandler(o.handler.onItemStart,e),n.process({file:e}))}};this.process=function(n){o.conf.url=n.url||o.conf.url,t=n.queue,o.runHandler(o.handler.onStart,t.toArray()),E()},this.pause=function(){this._command=Enum.ProcessorCommand.PAUSE},this.goOn=function(){E()},this.bind=function(n,e){o.handler[n]=e},this.reset=function(){this._command=Enum.ProcessorCommand.NONE,this._status=Enum.ProcessorStatus.NOTSTART,a=0}},MultiUploador=function(n,e){Processor.call(this);var t=this,r=null,o=null,a=null;t.extend(t.conf,{maxWidth:0,maxHeight:0,maxSize:5242880,container:null,isAutoUp:!1,queueLen:10,maxParallel:1,postType:0,postUrl:""}),t.extend(t.handler,{onFileSelected:null,onStartUpload:null,onProgressListen:null,onStopUpload:null,onError:null,onComplete:null,onImageLoaded:null}),e&&t.extend(t.handler,e);var s=function(){a=$("").css({opacity:"0",width:t.conf.container.width()+"px",height:t.conf.container.height()+"px"}).attr("multiple","multiple"),a.appendTo(t.conf.container),a.bind("change",i),o=new UploadorPool({maxLength:t.conf.maxParallel,url:t.conf.postUrl}),u()},u=function(){o.bind("onComplete",function(n){t.runHandler(t.handler.onComplete,n),r.reset()}),o.bind("onProcessing",function(n){t.runHandler(t.handler.onProgressListen,n)}),o.bind("onError",function(n){t.runHandler(t.handler.onError,n)}),o.bind("onPause",function(n){t.runHandler(t.handler.onStopUpload,n)})},i=function(n){r||(r=new ImageQueue({maxLength:t.conf.queueLen,onLoaded:c,onItemLoaded:m,maxWidth:t.conf.maxWidth,maxHeight:t.conf.maxHeight,maxSize:t.conf.maxSize})),r.concat(n.target.files),l()},l=function(){a.val("")},m=function(n){n.size>t.conf.maxSize&&(n.status=Enum.FileStatus.ERROR,n.errorCode=Enum.Error.FILE_SIZE_OVERFLOW.no,n.errorMessage=Enum.Error.FILE_SIZE_OVERFLOW.msg,t.runHandler(t.handler.onError,n)),t.runHandler(t.handler.onImageLoaded,n)},c=function(n){t.runHandler(t.handler.onFileSelected,{percent:0,imageList:n}),t._command==Enum.ProcessorCommand.NONE&&t.conf.isAutoUp&&t.startUpload()};this.start=function(){this.runHandler(t.handler.onStartUpload,{percent:0,imageList:r.toArray()}),o.process({queue:r})},this.stop=function(){o.pause()},this.goOn=function(){o.process({queue:r})},this.clearList=function(){r.reset()},this.deleteFile=function(n){for(var e=r.toArray(),t=0;t',className:"",name:"",value:"",length:0,selectedIndex:-1,multiple:!1,disabled:!1,maxHeight:null,selectSource:null},selectTpl:['
','
    ',"<% for (var i = 0, len = select.length; i < len; i++ ) {%>",'
  • " data-index="<%=i%>" data-value="<%=select[i]["value"]%>"><%=select[i]["text"]%>
  • ',"<% } %>","
","
"].join(""),initial:function(e){if(0===e.trigger.length)throw"trigger is not found";this._mergeAttr(e)},render:function(){var e=this,t=e._attrs,i=t.trigger,r="";if("select"===i[0].tagName.toLowerCase()){this._bindObserve();var s=i.tbattr("name");s&&this.set("name",s),this.set("disabled",i.tbattr("disabled")),r=e._getClassName(t.classPrefix,"trigger"),i.addClass(r),this.set("selectSource",i);var n=$(e.get("triggerTpl")).addClass(r);this.set("trigger",n),i.after(n).hide(),e.set("model",e.convertSelect(i[0],e.get("classPrefix"))),e._bindEvents()}},updateSelect:function(e,t){var i=this.convertSelect(e[0],t);this.set("model",i)},convertSelect:function(e,t){var i,r=[],s=e.options,n=s.length,l=!1,a=this.get("cid");for(i=0;n>i;i++){var c,o={},u=s[i],d=["text","value","defaultSelected","selected","disabled"];for(c in d){var g=d[c];o[g]=u[g]}u.selected&&(l=!0),r.push(o)}return!l&&r.length&&(r[0].selected="true"),{cid:a,select:r,classPrefix:t}},set:function(e,t){var i=this.get(e);this._isEqual(i,t)||(this.fire("change-cid-"+this.get("cid")+":"+e,{prev:i,value:t}),this._attrs[e]=t)},get:function(e){return this._attrs[e]},asyncSelect:function(e){for(var t=this.get("selectSource"),i="",r=0,s=e.select.length;s>r;r++)i+="";t.html(i).trigger("change")},_bindObserve:function(){var e=this;this.observe("change-cid-"+this.get("cid")+":model",function(t,i){var r=i.value,s=baidu.template,n=e.get("trigger");if(!e.get("options")||0==e.get("options").length){var l=s(e.selectTpl,r);e.set("options",$(l).appendTo("body"))}for(var a=null,c=0,o=r.select.length;o>c;c++)r.select[c].selected&&(a=r.select[c]);n.html(a.text),e.asyncSelect(r)}),this.observe("change-cid-"+this.get("cid")+":visiable",function(t,i){var r=i.value,s=(e.get("classPrefix"),e.get("cid"),e.get("trigger")),n=s.offset(),l=e.get("options");l.css({width:s.outerWidth(),top:n.top+s.height(),left:n.left}).toggle(r)})},_bindEvents:function(){var e=this,t=e.get("trigger");t.on("click",function(t){t.preventDefault();$(this);e.get("disabled")||e.set("visiable",!e.get("visiable"))}).on("mouseenter",function(){var t=$(this);t.data("disabled")||t.addClass(e.get("classPrefix")+"-trigger-hover")}).on("mouseleave",function(){var t=$(this);t.data("disabled")||t.removeClass(e.get("classPrefix")+"-trigger-hover")});var i=this.get("classPrefix");this.get("options").on("click",".ui-select-item",function(){for(var t=e.get("model"),i=$(this).data("index"),r=$.extend(!0,{},t),s=0,n=r.select.length;n>s;s++)r.select[s].selected=!1;r.select[i].selected=!0,e.set("model",r),e.set("visiable",!1)}),$("body").on("click",function(t){var r=$(t.target),s=r.tbattr("class");s&&-1!=s.indexOf(i)||e.set("visiable",!1)})},_getClassName:function(e,t){if(!e)return this.get("className");var i=this.get("className")+" "+e+"-"+t;return this.get("disabled")&&(i+=" "+e+"-"+t+"-disabled"),i},_isType:function(e){return function(t){return{}.toString.call(t)=="[object "+e+"]"}},_isEmptyAttrValue:function(e){var t=this._isType("String"),i=this._isType("Array"),r=Object.prototype.toString,s=function(e){return null!=e&&e==e.window},n=function(e){if(!e||"[object Object]"!==r.call(e)||e.nodeType||s(e)||!e.hasOwnProperty)return!1;for(var t in e)if(e.hasOwnProperty(t))return!1;return!0};return null==e||(t(e)||i(e))&&0===e.length||n(e)},_isPlainObject:function(e){var t=Object.prototype.toString,i=Object.prototype.hasOwnProperty,r=function(e){return null!=e&&e==e.window};if(!e||"[object Object]"!==t.call(e)||e.nodeType||r(e))return!1;try{if(e.constructor&&!i.call(e,"constructor")&&!i.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(s){return!1}var n;for(n in e);return void 0===n||i.call(e,n)},_isEqual:function(e,t){if(e===t)return!0;if(this._isEmptyAttrValue(e)&&this._isEmptyAttrValue(t))return!0;var i=Object.prototype.toString,r=i.call(e);if(r!=i.call(t))return!1;switch(r){case"[object String]":return e==String(t);case"[object Number]":return e!=+e?t!=+t:0==e?1/e==1/t:e==+t;case"[object Boolean]":return+e==+t;case"[object Array]":var s=e.toString(),n=t.toString();return-1===s.indexOf("[object")&&-1===n.indexOf("[object")&&s===n}if("object"!=typeof e||"object"!=typeof t)return!1;if(this._isPlainObject(e)&&this._isPlainObject(t)){if(!this._isEqual(this._keys(e),this._keys(t)))return!1;for(var l in e)if(e[l]!==t[l])return!1;return!0}return!1},_mergeAttr:function(e){this._attrs=$.extend(!0,{},this._defaultAttrs);for(var t in this._defaultAttrs)e.hasOwnProperty(t)&&(this._attrs[t]=e[t])},_keys:function(e){var t=Object.keys;if(t)return t(e);var i=[];for(var r in e)e.hasOwnProperty(r)&&i.push(r);return i}}}); ;_.Module.define({path:"common/widget/tchargeDialog",requires:["common/widget/Tdou"],sub:{initial:function(t){var e=this;t&&(e.consumption_path=t.consumption_path,e.desc=t.desc,e.desc=t.desc,e.current_need_tdou=t.current_need_tdou,e.is_direct_cashier=t.is_direct_cashier);var i=this.use("common/widget/Tdou");t&&e.is_direct_cashier?i.factory("auto_direct",e.consumption_path,e.desc,e.current_need_tdou):i.factory("get_icon",e.consumption_path)},_tbmallCashier:function(){var t=window.open("");$.get("/tbmall/getPayUrl?terminal=pc&pay_type=2",function(e){e.data&&(t.location.href=e.data)})}}}); ;_.Module.define({path:"common/widget/wallet_dialog",requires:["common/component/Card","common/component/JsPager"],sub:{_dialog:null,_html:null,_pushPager:null,_popPager:null,_options:null,_pager_option:{container:null,amount:3,current:1,total:0,mode:0,showDisableItem:!0,template:{prev:'<',next:'>',prev_disable:'<',next_disable:'>',head:"",tail:"",head_disable:"",tail_disable:""},classname:{wrapper:"tbui_js_pager wallet_js_pager",normal:"normal",current:"current",prev:"prev j_wallet_list_prev",next:"next j_wallet_next_prev",status:"status",prev_disable:"prev_disable",next_disable:"next_disable"}},initial:function(){},show:function(a){var l=this;l._options=a||{},l._dialog?l._dialog.show():l._buildCard()},hide:function(){this._dialog&&this._dialog.hide()},_buildCard:function(){var a=this;$.ajax({url:"/tbmall/history?ie=utf8&c=1&pn=1&_t="+(new Date).valueOf(),type:"get",dateType:"json",success:function(l){if(0===l.no){a._buildInitHtml(l.data.user);var t={html:a._html,title:"我的T豆钱包",draggable:!1,width:700,hideOnclose:!0};a._dialog=new $.dialog(t),a._buildPager(1,$("#wallet_dialog_msg_pop_pager"),a._popPager,a._popChange,l),a._buildPager(1,$("#wallet_dialog_msg_push_pager"),a._pushPager,a._pushChange),$("#wallet_dialog_tab").on("click",".j_wallet_dialog_tab_item",function(a){var l=$(a.currentTarget);$(".j_wallet_dialog_tab_item").removeClass("wallet_dialog_tab_current"),l.addClass("wallet_dialog_tab_current");var t=l.tbattr("attr-show");$(".j_wallet_dialog_msg_list").hide(),$(t).show()}),$("#wallet_dialog_return").on("click",function(a){a.preventDefault(),$("#wallet_dialog_main").show(),$("#wallet_dialog_rules").hide()}),$("#wallet_dialog_medal").on("click",".j_wallet_dialog_medal_btn",function(l){l.preventDefault(),_.Module.use("common/widget/JoinVipDialog",[],function(a){a.getMemberDialog()}),a.hide()}),$("#j_wallet_tcharge_dialog").on("click",function(){a.hide(),_.Module.use("common/widget/tcharge_dialog")})}},error:function(){}})},_popChange:function(a,l,t){var e=this,s=10;return t?(e._buildPopPage.call(e,t),void l(Math.ceil(t.data.total_count/s))):void $.ajax({url:"/tbmall/history?ie=utf8&c="+s+"&pn="+a+"&_t="+(new Date).valueOf(),type:"get",dateType:"json",success:function(t){0===t.no&&(e._buildPopPage.call(e,t,a),l(Math.ceil(t.data.total_count/s)))},error:function(){}})},_formatDateTime:function(a){var l=a||Date.now(),t=[];return t.push(l.getFullYear()+"年"),t.push(parseInt(l.getMonth()+1)+"月"),t.push(l.getDate()+"日 "),t.push(l.getHours()+":"),t.push(l.getMinutes()),t=t.join("")},_buildPopPage:function(a,l){for(var t=a.data.order_info||[],e=[],s=0;s'),e.push('您消费了'+_.scores+"T豆,");var r=0==_.props_id.indexOf("105")?"购买":"兑换";e.push(r+'了道具'+_.props_name+""),e.push(''+n+""),e.push("")}0==t.length&&1==l&&(e.push('
'),e.push("您还没购买过东西哦~,
贴吧新玩法从酷炫特权道具开始。
"),e.push('进入商城购买>>'),e.push("
")),e=e.join(""),$("#wallet_pop_list_main").html(e)},_pushChange:function(a,l){var t=this,e=5;$.ajax({url:"/tbmall/bwsdubiorder?ie=utf8&c="+e+"&pn="+a+"&_t="+(new Date).valueOf(),type:"get",dateType:"json",success:function(s){0===s.no&&(t._buildPushPage.call(t,s,a),l(Math.ceil(s.data.total_num/e)))},error:function(){}})},_buildPushPage:function(a,l){for(var t=a.data.order||[],e=[],s=0;s'),e.push('
订单号:'+_.order_id+"
"),e.push('消费'+_.db_money/100+"百度点券"),e.push("购买【贴吧印记】"),parseInt(_.given_scores)&&e.push('获赠'+r+"T豆"),e.push(''+n+""),e.push("")}0==t.length&&1==l&&(e.push('
'),e.push("您还没有T豆充值记录,
T豆可以购买贴吧会员以及众多酷炫特权道具。
"),e.push('查看特权道具>>'),e.push("
")),e=e.join(""),$("#wallet_push_list_main").html(e)},_buildPager:function(a,l,t,e){var s=this;"function"==typeof e&&e.call(s,a,function(_){if(_>1){t=s.use("common/component/JsPager",$.extend(s._pager_option,{current:a,total:_,container:l})),t.bind("pageChange",function(a,_){s._buildPager.call(s,_,l,t,e)});var i=['
','','跳转',"
"].join("");pagerTotal='
共'+_+"页
",$(pagerTotal).prependTo(l),$pagerSkip=$(i),$pagerSkip.on("click",".j_wallet_pager_skip_btn",function(i){i.preventDefault();var n=parseInt($pagerSkip.find(".j_wallet_pager_skip_text").val());return n>_||!(n>0)?void $pagerSkip.find(".j_wallet_pager_skip_text").val(a):void s._buildPager.call(s,n,l,t,e)})}})},_buildInitHtml:function(a){var l=a.Parr_scores||[],t=a.Parr_props&&a.Parr_props.level?a.Parr_props.level:[],e=t.end_time?parseInt((new Date).valueOf()/1e3)>t.end_time?0:t.props_id:0,s=a.setpass,_=[];_.push('
'),e?1==t.props_id?(_.push('会员专属特权'),_.push('续费')):(_.push('会员专属特权'),_.push('续费')):(_.push('开通会员'),_.push('尊享特权')),_.push("
"),_=_.join("");var i=this._getInfoHtml(l,s),n=this._getIntroHtml(),r=this._getMsgHtml(),o=this._getRuleHtml(),d=['
','
',i,'
',_,n,"
","
",r,"
",o];this._html=d.join("")},_getIntroHtml:function(){var a=['"].join("");return a},_parseInt:function(a){return a=parseInt(a),a>0?a:0>=a?a:0},_getInfoHtml:function(a,l){var t=this._parseInt(a.scores_money),e=this._parseInt(a.scores_other),s=this._parseInt(t+e),_=['"].join("");return _},_getMsgHtml:function(){var a=['
','",'
','
','
    ',"
",'
','
',"
",'
','
    ',"
",'
','
',"
","
","
"].join("");return a},_getRuleHtml:function(){var a=['
','返回我的T豆钱包>',"

","

1.豆票说明


","

豆票可以购买部分贴吧T豆商城商品,具体可见商城购买时提示。


","

豆票可作为部分贴吧商品(包括贴吧会员)的抵价券。


","

2.在线时间


","

用户在贴吧正常在线(有浏览器行为),即可按在线的时长获得对应的豆票


","
 
","",'',"","",'','',"","","",'',"","","",'',"","","",'',"","","
在线时长豆票获取数量豆票获取日上限
10分钟10100
30分钟20
50分钟30
90分钟40

",'

说明:在关注的吧内,右侧个人信息栏中开启在线礼包,即可获得奖励豆票。


','
',"

3.随机彩蛋



","

浏览贴吧或浏览其他会员的主页,都有机会获得豆票彩蛋,每日上限170豆票。


","

4.发贴回贴


","

用户每天的发贴/回贴行为都可获得一定的豆票


","","",'',"","",'','',"","","",'',"","","",'','',"","","
发贴/回贴获得豆票豆票获取日上限
PC首次发贴1015
PC首次回贴5
多次发贴1/贴(PC)
2/贴(移动端)
10

",'

说明:每天发贴的计算起止时间为00:00--23:59


',"

5.热门贴奖励


","

用户所发主题贴达到热门贴要求,可获得奖励豆票,最高可达20豆票。


",'

热门贴说明:有效回复达到一定数量,具体数量由所在吧的活跃用户数决定。


','

(即大型贴吧的热门贴所需回复数大于小型贴吧)


',"

5.移动端发贴回贴


","

在移动端登录后活跃(发贴,回贴)即可获得15豆票/天,此项与第3项奖励不冲突。


","

豆票上限说明


","

1.活跃获取豆票每日总获取上限为330豆票/天


","

2.活跃豆票获取上限为8000,若无消耗将不再获得活跃豆票

",""].join("");return a}}}); ;_.Module.define({path:"common/widget/JoinVipDialog",sub:{_body:null,_agreeKnown:!0,_dataMap:{},_badgeLv:"month_v2",_monthNum:3,_use_left_bean:0,_all_scores:0,_user_scores:0,_packet_id:0,_tbs:"",_price:"0",_dialog:null,_badge1_tpl:['
','
','贴吧会员
',"
"].join(""),_badge2_tpl:['
','
','贴吧超级会员',"
",'
',"
"].join(""),initial:function(){this._tbs=PageData.tbs,this._bindEvent()},getMemberDialog:function(){return PageData.user.is_login?(this._flowRateTest(),!1):(_.Module.use("common/widget/LoginDialog"),!1)},_bindEvent:function(){var _=this;$("body").off("click.j_join_vip"),$("body").delegate(".j_tbmall_join_vip_btn","click.j_join_vip",function(){return _.getMemberDialog(),!1}).delegate(".tshow_join_vip_badge_btn","click.j_join_vip",function(){_._badgeBtnClickAction(this)}).delegate(".tshow_join_vip_month_count_btn","click.j_join_vip",function(){_._monthBtnClickAction(this)}).delegate(".j_tshow_join_vip_use_leave","click.j_join_vip",function(){_._useLeftBtnClickAction(this)}).delegate("#j_agree_known","click",function(){_._agreeKnown=$(this)[0].checked,1==_._agreeKnown?$(".tshow_join_vip_open_btn_disable").removeClass("tshow_join_vip_open_btn_disable").addClass("tshow_join_vip_open_btn"):$(".tshow_join_vip_open_btn").removeClass("tshow_join_vip_open_btn").addClass("tshow_join_vip_open_btn_disable")}).delegate(".tshow_join_vip_open_btn_content .tshow_join_vip_open_btn","click.j_join_vip",function(){_._getOrderId()}).delegate(".tshow_join_vip_j_charge_success_btn","click.j_join_vip",function(){_._dialog.close(),_._confirmChargeState()}).delegate(".tshow_join_vip_j_charge_fail_btn","click.j_join_vip",function(){_._dialog.close()})},_badgeBtnClickAction:function(_){_=$(_),$(".tshow_join_vip_badge_btn").removeClass("tshow_join_vip_block_btn_active"),this._badgeLv=_.tbattr("data-id"),$(_).addClass("tshow_join_vip_block_btn_active");var i=this;this._getBadgeInfo("need_bean",function(_){i._updatePriceAction(_)})},_monthBtnClickAction:function(_){_=$(_),$(".tshow_join_vip_month_count_btn").removeClass("tshow_join_vip_block_btn_active"),this._monthNum=_.tbattr("data-id"),$(_).addClass("tshow_join_vip_block_btn_active");var i=this;this._getBadgeInfo("need_bean",function(_){i._updatePriceAction(_)})},_useLeftBtnClickAction:function(){var _=this;_._use_left_bean=$(".tshow_join_vip_use_leave")[0].checked?1:0,this._getBadgeInfo("need_bean",function(i){_._updatePriceAction(i)})},_updatePriceAction:function(_){this._price=_,$(".j_cost_total").html(_);var i;this._use_left_bean=$(".tshow_join_vip_use_leave")[0].checked?1:0,i=this._use_left_bean?Math.max(0,_-this._dataMap.use_scores):_,$(".tshow_join_vip_red").html(Math.ceil(i/1e3))},_initDataMap:function(){var _=this;$.get("/tbmall/bwstshow",function(i){if(0==i.no){_._dataMap=i.data;var t=$(".j_month_content"),o=$(".j_badge_content");$(".j_tshow_join_vip_block_use_scores").html(_._dataMap.use_scores),$(".j_tshow_join_vip_block_all_scores").html(_._dataMap.all_scores);for(var n=0;n'+i.data.month_v1[n].month_num+"个月"+(3==n?'
':"")+"");_._dataMap.user.Parr_props&&_._dataMap.user.Parr_props.level&&2==_._dataMap.user.Parr_props.level.props_id&&1e3*_._dataMap.user.Parr_props.level.end_time>(new Date).getTime()||o.append(_._badge1_tpl),o.append(_._badge2_tpl),_._use_left_bean=$(".badge_lv2").trigger("click"),$(".tshow_join_vip_month_count_btn").eq(3).trigger("click")}else _._showDialog("错误提示","获取信息失败",200)})},_build:function(){var _=['
','
','
开通会员类型:
','
',"
","
",'
','
开通时长:
','
',"
","
",'
','
','
','*开通12个月超级会员赠送连续签到卡3张',"
","
",'
','
总价:
','
','
360000T豆 使用T豆余额(可用余额加载中.. 总余额加载中..)
',"
","
",'
','
需要花费:
','
','
360百度点券(1点券 = 1000T豆 = 1元人民币)
',"
","
",'
','
','
立即开通
','',"
","
","
",'
什么是连续签到卡
使用连续签到卡,可把某个吧所有的签到天数连续在一起!
'].join("");this._body=$(_),this._showDialog("开通贴吧会员",this._body,650)},_chargingDialog:function(){var _="

请在新打开的页面上完成开通会员的支付操作

支付完成前    请勿关闭窗口

";this._showDialog("充值T豆",_,500)},_getBadgeInfo:function(_,i){for(var t=0;t已成功开通会员",1500,"canClose",function(){$.tb.location.reload()});break;default:_._showDialog("操作失败",o.no,200)}}})},_confirmChargeState:function(){var _=this,i=6;this._bubble=this._showBubble("正在验证支付中,请稍候"+i+"秒...");var t=setInterval(function(){if(i--,_._bubble.html("正在验证支付中,请稍候"+i+"秒..."),i%2==0){var o={ie:"utf-8",tbs:_._tbs,order_id:_._order_id};$.ajax({type:"POST",url:"/tbmall/checkorder",dataType:"json",data:o,success:function(o){switch(o.no){case 0:1e4==o.data.result_code&&(_._closeBubble(_._bubble),_._bubble=_._showBubble("已成功开通会员",1500,"canClose",function(){$.tb.location.reload()}),clearInterval(t)),0>=i&&(_._closeBubble(_._bubble),_._bubble=_._showBubble("抱歉,开通会员没有成功",1500,"canClose"),clearInterval(t));break;case 1:case 2:default:0>=i&&(_._closeBubble(_._bubble),_._bubble=_._showBubble("抱歉,系统出现异常,请刷新页面查看交易记录",1500,"canClose"),clearInterval(t))}},error:function(){_._bubble.html("

未知错误

"),clearInterval(t)}})}0>=i&&clearInterval(t)},1e3)},_showDialog:function(_,i,t){this._dialog=new $.dialog({html:i,title:_,width:t,hideOnclose:!1,draggable:!1,closeable:!0})},_showBubble:function(_,i,t,o){var n=$("
");return n.append(_),$("body").append(n),n.css({left:$(window).width()/2-n.width()/2,top:$(window).height()/2}),$(window).resize(function(){n.css({left:$(window).width()/2-n.width()/2,top:$(window).height()/2})}),t&&n.click(function(){$(this).remove()}),i?void this._closeBubble(n,i,o):n},_closeBubble:function(_,i,t){i&&i>0?setTimeout(function(){_.fadeOut("normal",function(){_.remove(),"function"==typeof t&&t()})},i):_.fadeOut("normal",function(){_.remove()})},_flowRateTest:function(){var _=window.open("");$.get("/tbmall/getPayUrl?terminal=pc&pay_type=1",function(i){i.data&&(_.location.href=i.data)})}}}); ;_.Module.define({path:"common/widget/Icons/IconCard",sub:{_option:{},_j_card:null,_open_timer:null,_close_timer:null,_is_show:!1,_is_first_show:!0,_default_option:{content:"",arrow_dir:"down",arrow_pos:{},card_css:{width:170,"z-index":1001},arrow_req:!0,auto_positon:!1,event_target:null,offset:{x:0,y:0},card_leave_display:!1,card_hover_show:!0,card_leave_hide:!1,attr:"",wrap:$("body")},initial:function(t){var i=this;i._option=$.extend(!0,{},i._default_option,t),this._buildCard()},_buildCard:function(){var t=this._option,i=this._genericTpl(),e=t.wrap;this._j_card=$(i),this._j_card.find(".j_content").html(t.content),e.append(this._j_card),delete t.card_css.height,this._j_card.css(t.card_css),t.card_css.height=this._j_card.find(".j_content").outerHeight(!0),this._arrow=this._j_card.find(".j_ui_white_arrow"),void 0===t.arrow_pos.left&&(this._arrow_left=t.card_css.width/2-10,this._arrow.css({left:this._arrow_left})),this._arrow.css(t.arrow_pos),t.arrow_req||this._j_card.find(".j_ui_white_arrow").hide(),t.auto_positon&&this._autoPosition()},_autoPosition:function(){var t=this._option,i={},e=$(window).height(),o=$(window).width(),_=($(document).scrollLeft(),$(document).scrollTop()),r=(t.event_target.innerWidth(),t.event_target.innerHeight()),s="",a={x:t.event_target.offset().left-t.card_css.width/2+t.event_target.outerWidth(!0)/2,y:t.event_target.offset().top-t.card_css.height-10,width:this._j_card.innerWidth(),height:this._j_card.innerHeight()+this._arrow.innerHeight()};i.left=a.x,i.top=a.y;var n=t.arrow_pos.left||this._arrow_left,d=15,h=o;o<$(document).width()&&(h=$(document).width());var c=h-(t.card_css.width+d);i.leftc&&(n+=i.left-c,i.left=c),i.top<_?(s="up",i.top+=r+(a.height||0),i.top-=t.offset.y):(i.top+=i.top+r>_+e?-r-(a.height||0):0,s="down",i.top+=t.offset.y),this._arrow.removeClass("icon_white_down").removeClass("icon_white_up").addClass("icon_white_"+s).css({left:n}),this._j_card.css(i)},_genericTpl:function(){var t=this._option.attr,i=this._option.arrow_dir,e=['"].join("");return e},showCard:function(t){var i=this;i._close_timer&&clearTimeout(i._close_timer),t&&"delayShow"==t.type?(i._open_timer&&clearTimeout(i._open_timer),i._open_timer=setTimeout(function(){i._showCardDo()},t.time)):i._showCardDo()},closeCard:function(t){var i=this;i._open_timer&&clearTimeout(i._open_timer),t&&"delayClose"==t.type?i._close_timer=setTimeout(function(){i._closeCardDo()},t.time):i._closeCardDo()},hideCard:function(t){var i=this;i._open_timer&&clearTimeout(i._open_timer),t&&"delayHide"==t.type?i._close_timer=setTimeout(function(){i._hideCardDo()},t.time):i._hideCardDo()},_showCardDo:function(){var t=this;t._is_first_show,this._j_card.css({visibility:"visible"})},_closeCardDo:function(){var t=this;this._j_card&&!this._is_show&&t._j_card.remove()},_hideCardDo:function(){var t=this;this._j_card&&!this._is_show&&t._j_card.css({visibility:"hidden"})},setContent:function(t){var i=this._option;if(null!==this._j_card){var e=this._j_card.find(".j_content");e.html(t),i.card_css.height=e.outerHeight(!0),this._j_card.css({height:i.card_css.height}),i.auto_positon&&this._autoPosition()}}}}); ;_.Module.define({path:"common/widget/Icons/IconsBookCommon",requires:[],sub:{initial:function(){},isDurationIcon:function(e){return e&&4==e.type?!0:!1},getIconExpired:function(e){var n=-1;if(!e)return n;var t=e.type,i=e.end_time,r=Env.server_time/1e3;return 4==t&&i>=r&&(n=((i-r)/86400).toFixed(1)),n},isShowDurationIcon:function(e){if(!e)return!1;var n=e.type,t=e.end_time,i=Env.server_time/1e3;return 4!=n?!0:t>=i?!0:!1}}}); ;_.Module.define({path:"common/widget/Icons/IconsBookControl",requires:["IconsBookView","IconsBookTip","IconCard","IconsBookMessagebox","IconsBookGetIcon"],sub:{_icon_book:null,_icon_book_ajax:null,_icon_user_action:"",_icon_tab_loaded:{},_tip:null,_messagebox:null,tabLen:0,_slot_no:0,_icon_info:{},_current_tab_index:0,_selected_icon_name:"",_target_ele:null,_option:{width:655},_slot_buy_price:[0,0,100,1e4,3e4,5e4,1e4,2e4,1e5],initial:function(){var o=this;o._wrap=$("body"),o._view=o.use("common/widget/Icons/IconsBookView"),o._target_ele=null;var e=PageUnit.load("icons_category");e=e||[{category_id:"101",category_name:"足球"},{category_id:"102",category_name:"星座"},{category_id:"104",category_name:"其他"}],o.bindIconBookHookEvents(e)},bindIconBookHookEvents:function(o){var e=this;e._wrap.delegate(".j_icon_slot_buy","mouseenter",function(){e.__timeoutId&&clearTimeout(e.__timeoutId),e.closeAllCard(),e._icon_user_action="buy_slot",e._target_ele=$(this),e._selected_icon_name="";var t=$(".j_icon_slot").length;e._slot_no=1;var _={add_slot_no:t+1,category_info:o,price:e._slot_buy_price[t+1],action:"buy_slot"};return e.buySlot(_,$(this)),!1}),e._wrap.delegate(".j_icon_slot_buy","mouseleave",function(){return e.__timeoutId&&clearTimeout(e.__timeoutId),e.__timeoutId=setTimeout(function(){e._messagebox&&e._messagebox.hideBox()},200),!1}),e._wrap.delegate(".j_icon_slot","click",function(t){e.closeAllCard(),e._setIconRefresh($(this)),e._icon_user_action="replace_icon",e._target_ele=$(this);var _=$(this).tbattr("data-slot"),a=$(this).tbattr("data-name");e._selected_icon_name=a,e._slot_no=_;var i="",n=PageData.new_iconInfo||{};for(var c in n)n[c].name==a&&(i=n[c].category_id);var s={slot_no:_,category_info:o,icon_id:a,action:"replace_icon",category_id:i};e.initIconBook(s,$(this)),t.preventDefault()}),e._wrap.delegate(".j_slot_null_icon","click",function(){e.closeAllCard(),e._selected_icon_name="",e._setIconRefresh($(this)),e._icon_user_action="buy_icon",e._target_ele=$(this);var t=$(this).tbattr("data-slot");e._slot_no=t;var _={slot_no:t,category_info:o,icon_id:"",action:"buy_icon"};e.initIconBook(_,$(this))}),e._wrap.delegate(".j_icon_slot","hover",function(o){var e=$(this);if(!e.hasClass("j_slot_null_icon")){var t=$(this).tbattr("data-name"),_=($(this).tbattr("data-slot"),PageData.new_iconInfo);if(_){var a=null;for(var i in _)if(_[i].name==t){a=_[i];break}if(a){var n=a["level_"+a.value],c="url("+n.icon_1+") no-repeat",s=o||event;if("mouseenter"==s.type){var r={background:c},l=e.css("background");l||(l=e[0].style.background),e.data({bg:l}),e.css(r),e.addClass("icon_slot_hover"),e.children(".j_icon_slot_refresh").addClass("icon_slot_refresh_hover")}else{var l=e.data("bg"),r={background:l};e.css(r),e.removeClass("icon_slot_hover"),e.children(".j_icon_slot_refresh").removeClass("icon_slot_refresh_hover")}}}}})},buySlot:function(o,e){var t=this;t._messagebox||(t._messagebox=t.use("common/widget/Icons/IconsBookMessagebox")),t._messagebox.is_leave_close=!0,t._messagebox.showBox(o,e)},initIconBook:function(o,e){var t=this,_=o.category_info;t.closeIconBook();var a=t._view.getTabItem(_),i={content:a,card_css:{width:t._option.width,zIndex:$.getcurzIndex()},auto_positon:!0,event_target:e,attr:"id='icon_book_tab'",wrap:$("body")};if(t._icon_book=t.use("common/widget/Icons/IconCard",i),t._icon_book.showCard({type:"delayShow",time:200}),t.initTab(),o.icon_id){var n=t._getTabIdByCategory(o.category_id);t._selected_icon_name=o.icon_id,t._showTab(n,o.icon_id)}else t.setDefaultTab(2)},closeIconBook:function(){var o=this;o._tip&&o._tip.closeTip(),o._icon_book&&(o._icon_book.closeCard(),o._icon_book=null)},initTab:function(){var o=this;o.tabLen=$(".icon_book_tab_head li").length,o._bindHeadEvents()},setDefaultTab:function(o){var e=this;e._showTab(o)},_bindHeadEvents:function(){var o=this;$(".icon_book_tab_head").delegate("li","click",function(){var e=$(this).index();o._showTab(e),o._tip&&o._tip.hideTip()}),$(".icon_book_close").click(function(){return $("#icon_book_tab").remove(),o._tip&&(o._tip.hideTip(),o._tip=null),$(".icon_wrap .j_icon_slot_refresh").removeClass("icon_slot_refresh"),!1}),$(".icon_book_close").hover(function(){$(this).addClass("icon_book_close_hover")},function(){$(this).removeClass("icon_book_close_hover")})},_showTab:function(o,e){var t=this;$(".icon_book_tab_head .head_inner").each(function(){!$(this).hasClass("space")&&$(this).parent().index()o?"0":$("#tab_head_"+(o-1)+" div.space").removeClass("space"),$(".icon_book_tab_head li.tab_active").removeClass("tab_active").addClass("tab_deactive"),$("#tab_head_"+o).removeClass("tab_deactive").addClass("tab_active"),$(".icon_book_tab_body div.tab_body_item_active").removeClass("tab_body_item_active"),$("#tab_content_"+o).addClass("tab_body_item_active"),e=e||t._selected_icon_name,t._loadTabContent(o,e),t._current_tab_index=e},_loadTabContent:function(o,e){var t=this,_='
正在努力加载,请稍后...
';$("#tab_content_"+o).html(_);var a={ie:"utf-8"},i=$("#tab_head_"+o).tbattr("data-categoryId");a.tbs=PageData.tbs,a.category_id=i,t._icon_book_ajax&&t._icon_book_ajax.abort(),t._icon_book_ajax=$.ajax({type:"post",url:"/icon/get/icon",data:a,dataType:"json"}).success(function(_){if(_&&0===_.no){var a=_.data,n=a.icon_info,c=t._view.getTabContent(n,e,i);$("#tab_content_"+o).html(c),t._bindTabContenEvent(o),t.initScroll(o),t._icon_tab_loaded[o]=!0,t._icon_info["category_"+o]=a.icon_info}else{var c='
未知错误刷新
';$("#tab_content_"+o).html(c),$("#icon_book_reload").on("click",function(){return t._loadTabContent(o),!1})}})},_bindTabContenEvent:function(){var o=this;o._tip||(o._tip=o.use("common/widget/Icons/IconsBookTip",[o]));var e=$("#icon_book_wrap");e.on("mouseenter",".tab_body_item_active .icon_box_place",function(){$(this).children(".icon_border").addClass("icon_border_hover")}).on("mouseleave",".tab_body_item_active .icon_box_place",function(){$(this).children(".icon_border").removeClass("icon_border_hover")}),e.delegate(".icon_wrap .icon_box_place","mouseenter",function(){var e=o._target_ele.tbattr("data-name"),t=$(this).tbattr("data-id"),_=$(this).tbattr("data-level"),a=$(this).hasClass("icon_not_use"),i=$(".icon_book .tab_body_item_active")[0].id.replace("tab_content_",""),n=o._icon_info["category_"+i],c=null,s=null;if(n){n=n.normal||[];for(var r=0;r0)){$(this).parent().parent().find(".icon_subscript").removeClass("icon_selected"),$(this).children(".icon_subscript").addClass("icon_selected");var e=o._target_ele.tbattr("data-name"),t=$(this).tbattr("data-id"),_=$(this).tbattr("data-level"),a=$(this).hasClass("icon_not_use"),i=$(".icon_book .tab_body_item_active")[0].id.replace("tab_content_",""),n=o._icon_info["category_"+i],c=null,s=null;if(n){n=n.advanced||[];for(var r=0;r0&&e.bindArrowScrollEvent("icon_wrap");var _=$("#tab_content_"+o+" .collect_icon_wrap");_&&_.length>0&&e.bindArrowScrollEvent("collect_icon_wrap")},bindArrowScrollEvent:function(o){var e=this;$("."+o).delegate(".icon_wrap_scroll_arrow","hover",function(){$(this).hasClass("arrow_disable")||$(this).toggleClass("arrow_hover")}),$("."+o).delegate(".right_arrow","click",function(){e._move("left",o),e._tip&&e._tip.hideTip()}),$("."+o).delegate(".left_arrow","click",function(){e._move("right",o),e._tip&&e._tip.hideTip()})},_move:function(o,e){var t=this,_=0,a=$($(".tab_body_item_active ."+e+" .icon_view")[0]).tbattr("total-col");switch(a=parseInt(a),o){case"left":_=t._moveLeft(a,e);break;case"right":_=t._moveRight(a,e)}_&&$(".tab_body_item_active .icon_wrap .icon_list").animate({left:_},300);var i=55*a;_&&(_=Math.abs(parseInt(_)),_+550>=i?($(".tab_body_item_active ."+e+" .icon_wrap_right_arrow").addClass("arrow_disable"),$(".tab_body_item_active ."+e+" .icon_wrap_left_arrow").removeClass("arrow_disable")):($(".tab_body_item_active ."+e+" .icon_wrap_right_arrow").removeClass("arrow_disable"),$(".tab_body_item_active ."+e+" .icon_wrap_left_arrow").removeClass("arrow_disable")),0==_&&($(".tab_body_item_active ."+e+" .icon_wrap_right_arrow").removeClass("arrow_disable"),$(".tab_body_item_active ."+e+" .icon_wrap_left_arrow").addClass("arrow_disable")))},_moveLeft:function(o,e){var t=0,_=o;if(!(10>=_)){var a=55*_,i=$(".tab_body_item_active ."+e+" .icon_list").css("left"),n=Math.abs(parseInt(i));n%55!=0&&(n=n%55*55);var c=a-n;if(c>550)return t=n+165,"-"+t+"px"}},_moveRight:function(o,e){var t=0,_=o;if(!(10>=_)){var a=$(".tab_body_item_active ."+e+" .icon_list").css("left"),i=parseInt(a);if(!(i>=0))return t=Math.abs(i)-165,0>t&&(t=0),"-"+t+"px"}},closeAllCard:function(){var o=this;o._tip&&o._tip.closeTip(),o._messagebox&&o._messagebox.hideBox(),o.closeIconBook(),o._removeIconRefresh()},_setIconRefresh:function(o){$(".icon_wrap .j_icon_slot_refresh").removeClass("icon_slot_refresh"),o.children(".j_icon_slot_refresh").addClass("icon_slot_refresh")},_removeIconRefresh:function(){$(".icon_wrap .j_icon_slot_refresh").removeClass("icon_slot_refresh")}}}); ;_.Module.define({path:"common/widget/Icons/IconsBookGetIcon",requires:["IconsBookCommon"],sub:{_dialog:null,initial:function(){this.common=this.use("common/widget/Icons/IconsBookCommon")},get:function(){return this._dialog},show:function(){this._dialog.show()},hide:function(){this._dialog.hide()},close:function(){this._dialog.close()},_init:function(o){var i={modal:!0,showTitle:!1,fixed:!0,width:290,height:180},n=this;i.html='
'+o+"
",this._dialog=new $.dialog(i),this._dialog.element.find(".icon_book_dialog_wrap .icon_book_msgbox_close").click(function(o){o.preventDefault(),n._dialog.close()}),this._dialog.element.find(".icon_book_dialog_wrap .icon_book_msgbox_close").hover(function(){$(this).addClass("icon_book_msgbox_close_hover")},function(){$(this).removeClass("icon_book_msgbox_close_hover")})},getOneIcon:function(o){var i=this;if(!o)return void i._handleError();var n={ie:"utf-8"};n.tbs=PageData.tbs,n.icon_name=o,i._ajax&&i._ajax.abort(),i._ajax=$.ajax({type:"post",url:"/icon/seticon",data:n,dataType:"json"}).success(function(o){if(o&&0===o.no){var n=o.data;if(!n.icon_info)return void i._handleError();i.showOneIcon(n.icon_info)}else o&&2270028===o.no||i._handleError()})},_handleError:function(){var o=this,i=o._getErrorTpl();o._init(i),o.show(),this._dialog.element.find(".icon_book_dialog_wrap .ui_btn").click(function(){$.tb.location.reload()})},showOneIcon:function(o){var i=this,n=i._getOneIconTpl(o);i._init(n),i.show()},_getOneIconTpl:function(o){if(o){var i=this._getIconStyle(o),n=PageUnit.load("icons_new_cfg")||{},s=o.name+"_"+o.value,t={styleBg:i,iconTitle:n[s][0]},c=['
','
','
','
恭喜你获得了#{iconTitle}
','
','
','
','
',"
",'","
",'
',"
","
"].join("");return $.tb.format(c,t)}},showDurationIcon:function(o,i){var n=[];n.push(o),this.showIconList(n,i,"duration")},showIconList:function(o,i,n){var s=this,t={hide_btn:!1,close_callback:function(){},close_time:0};t=$.extend(t,i);var c=s._getIconListTpl(o,t.hide_btn,n);s._init(c),s.show(),t.close_time&&parseInt(t.close_time)>0&&setTimeout(function(){s._dialog.close()},parseInt(t.close_time)),t.close_callback&&"function"==typeof t.close_callback&&s._dialog.onclose(function(){t.close_callback()})},_getIconListTpl:function(o,i,n){var s=this,t=PageData.user.portrait;if(o||$.isArray(o)){for(var c=[],a=[],e="",_=i?"":['"].join(""),l=0;l-1&&(e="有效天数:"+r+"
")}var g=['
','
','
','
恭喜你获得了'+c+"
",'
',a,"
",_,'

',e,'去我的个人中心查看>>',"

","
",'
',"
","
"].join("");return g}},_getIconFormatInfo:function(o,i){var n=this._getIconStyle(o),s=PageUnit.load("icons_new_cfg")||{},t=o.name+"_"+o.value,c={iconTpl:'
',styleBg:n,iconTitle:s[t][0]};return c},_getIconStyle:function(o){var i=0,n=0,s="http://tb1.bdstatic.com/tb/cms/com/icon/icon_sprite.png",t=o.sprite[o.value].split(","),c=50,a=t[0],e=t[1];i=2*c,n=e*c;var _="background: url("+s+"?stamp="+a+") no-repeat -"+n+"px -"+i+"px;";return _},_getErrorTpl:function(){var o=['
','
','
','
未知错误
','","
",'
',"
","
"].join("");return o}}}); ;_.Module.define({path:"common/widget/Icons/IconsBookMessagebox",requires:["IconCard","IconsBookCommon"],sub:{_icon_book_message_box:null,_icon_data:null,_is_show:!1,_option:{width:290},is_leave_close:!1,setLeaveClose:function(o){this.is_leave_close=o},initial:function(){this.common=this.use("common/widget/Icons/IconsBookCommon")},showBox:function(o,i){var s=this;s._showBox(i),s.generatorBuySlot(o),s._bindEvents()},hideBox:function(){var o=this;o._is_show||o._icon_book_message_box&&(o._icon_book_message_box.closeCard(),o._icon_book_message_box=null)},_bindEvents:function(){var o=this,i=$(".icon_card_wrap");i.bind("mouseenter",function(){o.is_leave_close&&(o._is_show=!0)}),i.bind("mouseleave",function(){o.is_leave_close&&(o._is_show=!1,o.hideBox())})},generatorBuySlot:function(o){var i=this,s=i._getBuySlotTpl(o);$(".icon_book_msgbox_body").html(s),$(".icon_book_msgbox .ui_btn").click(function(){i.buySlot(o)})},showReplaceFirstSlotBox:function(o,i,s,n){var _=this;setTimeout(function(){n.closeTip()},0),_._showBox(i);var c=_._getReplaceFirstSlotTipTpl(o);$(".icon_book_msgbox_body").html(c),$(".icon_book_msgbox .ui_btn").click(function(){s.call(n,o)})},showBuyIconBox:function(o,i,s,n){var c=this;setTimeout(function(){n.closeTip()},0),c._showBox(i);var e=c._getBuyIconTpl(o);$(".icon_book_msgbox_body").html(e),$(".icon_book_msgbox .ui_btn").click(function(){var i=0,e=PageData.user.Parr_scores;if(e&&(i=e.scores_other+e.scores_money),i-o.icon_info.price<0){var t=c._hasNotEnoughTdou();return $(".icon_book_msgbox_body").html(t),void $(".j_tdou_not_enough").on("click",function(){_.Module.use("common/widget/TchargeDialog")})}s.call(n,o.icon_info,function(){var o=c._buyIconSuccess();$(".icon_book_msgbox_body").html(o)})})},buySlot:function(o){var i=this,s=0,n=PageData.user.Parr_scores;n&&(s=n.scores_other+n.scores_money+n.scores_fetch);var c=-1;if(c=o.price?o.price:o.icon_info.price,c>0&&0>s-c){var e=i._hasNotEnoughTdou();return $(".icon_book_msgbox_body").html(e),void $(".j_tdou_not_enough").on("click",function(){_.Module.use("common/widget/TchargeDialog")})}var t={ie:"utf-8"};t.tbs=PageData.tbs,i._ajax&&i._ajax.abort(),i._ajax=$.ajax({type:"post",url:"/icon/addslot",data:t,dataType:"json"}).success(function(o){if(o&&0===o.no){var s=o.data,n=i._addSuccess();$(".icon_book_msgbox_body").html(n),i._refreshSlotList();{s.scores_other||0,s.scores_money||0}i._updateTdouAccount(s.scores_other,s.scores_money,s.scores_fetch)}else if(o&&2270028===o.no)i.hasNotEnoughTdou();else{var _='
未知错误刷新
';$(".icon_book_msgbox_body").html(_),$("#icon_book_reload").on("click",function(){return $.tb.location.reload(),!1})}})},_updateTdouAccount:function(o,i,s){var n=PageData.user.Parr_scores;n&&(n.scores_other=o,n.scores_money=i,n.scores_fetch=s,$(".j_userinfo_scores_num").html(o+i))},_showBox:function(o){var i=this;i.hideBox();var s=i._getTpl(),n={content:s,card_css:{width:i._option.width,zIndex:$.getcurzIndex()},auto_positon:!0,event_target:o,attr:"id='icon_book_message_box'",wrap:$("body")};i._icon_book_message_box=i.use("common/widget/Icons/IconCard",n),i._icon_book_message_box.showCard({type:"delayShow",time:200}),i._bindCloseEvent()},_bindCloseEvent:function(){var o=this;$(".icon_book_msgbox .icon_book_msgbox_close").click(function(){o._icon_book_message_box?(o._icon_book_message_box.closeCard(),o._icon_book_message_box=null):$("#icon_book_message_box").length>0&&$("#icon_book_message_box").remove(),$(".icon_wrap .j_icon_slot_refresh").removeClass("icon_slot_refresh")}),$(".icon_book_msgbox .icon_book_msgbox_close").hover(function(){$(this).addClass("icon_book_msgbox_close_hover")},function(){$(this).removeClass("icon_book_msgbox_close_hover")})},_getTpl:function(){var o=['
','
','
',"
",'
',"
",'
',"
"].join("");return o},_refreshSlotList:function(){var o=$(".j_icon_slot").length,i=28*o,s='
';$(".icon_slot_wrap .icon_add_solt").css({left:28*(o+1)}),$(".icon_slot_wrap .icon_add_solt").before(s),8==$(".j_icon_slot").length&&$(".icon_add_solt").remove()},_addSuccess:function(){var o=['
','
恭喜您获得了一枚印记插槽
'].join("");return o},_buyIconSuccess:function(){var o=['
恭喜您获得了一枚新印记
','
','"].join("");return o},_replaceIconSuccess:function(){var o=['
印记替换成功
','
','
','确定',"
"].join("");return o},_hasNotEnoughTdou:function(){var o=['
T豆不足
','
','"].join("");return o},_getBuySlotTpl:function(o){var i={price:o.price},s=['
需要消耗#{price}T豆开启印记插槽
','
(开启后免费更换印记)
','
','开启',"
"].join("");return $.tb.format(s,i)},_getReplaceFirstSlotTipTpl:function(o){var i=this,s=o.old_icon_info,n=o.icon_info,_=this.common.isShowDurationIcon(s),c=_?i._getIconBackground(s):"",e=i._getIconBackground(n),t={old_background:c,background:e},a=['
点击替换当前印记
','
','
','
','
',"
",'
','替换',"
"].join("");return $.tb.format(a,t)},_getIconBackground:function(o){var i=0,s=0,n="http://tb1.bdstatic.com/tb/cms/com/icon/icon_sprite.png";if(o){var _=o.sprite[o.value].split(","),c=50,e=_[0],t=_[1];i=2*c,s=t*c;var a="background: url("+n+"?stamp="+e+") no-repeat -"+s+"px -"+i+"px;";return a}return""},_getBuyIconTpl:function(o){var i=this,s=i._getIconBackground(o.icon_info),n={price:o.icon_info.price,background:s},_=['
需要消耗10000T豆购买该印记
','
','
',"
",'"].join("");return $.tb.format(_,n)},hasNotEnoughTdou:function(o){var i=this;o||(o=$(".icon_wrap .j_icon_slot_refresh")),i._showBox(o);var s=i._hasNotEnoughTdou();$(".icon_book_msgbox_body").html(s),$(".j_tdou_not_enough").on("click",function(){_.Module.use("common/widget/TchargeDialog")})},replaceIconSuccess:function(o){var i=this,s=$(".icon_wrap .icon_slot_refresh");s&&(s=s.parent()),i._showBox(s);var n=i._replaceIconSuccess();if($(".icon_book_msgbox_body").html(n),$(".icon_book_msgbox_body .j_replace_ok").on("click",function(){$.tb.location.reload()}),$(".icon_book_msgbox .icon_book_msgbox_close").click(function(){$.tb.location.reload()}),o){var _=o.getControl();_&&_.closeIconBook()}}}}); ;_.Module.define({path:"common/widget/Icons/IconsBookTip",requires:["IconCard","IconsBookMessagebox","IconsBookCommon"],sub:{_icon_book_tip:null,_icon_data:null,_ajax:null,_control:null,_msgbox:null,_option:{width:"535px"},_is_show:!1,initial:function(o){var i=this;i.common=this.use("common/widget/Icons/IconsBookCommon"),i._control=o[0]},getControl:function(){return this._control},showTip:function(o,i){if(o){var n=this,t=$("#icon_book_tip");0==t.length&&$(".icon_card_wrap").append(this._getWrapTpl()),t=$("#icon_book_tip"),n._setContent(o);var e=$(".j_icon_book_tip .j_tip_up_arrow"),s=i.position(),c=s.top,a=s.left-5,r=i.parents(".icon_view"),p=r.position(),l=parseInt(p.left)+15,d=c+106;i.parents(".collect_wrap").length>0&&(d+=146),t.css({display:"block",visibility:"visible",top:d+"px",left:l+"px","z-index":2e4});var u=parseInt(a)+25;e.css({left:u+"px"}),n._bindEvents(),$(".icon_book_tip .j_tip_icon_price").html("消耗"+o.icon_info.price+"T豆"),n._icon_data=o,$("#j_icon_book_action_btn").bind("click",function(){var i=!0,t=0,e=PageData.user.Parr_scores;e&&(t=e.scores_other+e.scores_money);var s=-1;if(s=n._icon_data.price?n._icon_data.price:n._icon_data.icon_info.price,s>0&&0>t-s&&(i=!1,$(".icon_book_tip .icon_action_wrap").html(n._getNoRemainTip()),$("#j_icon_book_recharge_btn").click(function(){_.Module.use("common/widget/TchargeDialog")})),o.in_use)1==parseInt(o.slot_no)?n._replaceIcon4FirstSlot(o):n._replaceIcon4OtherSlot(o);else if(i){var c=$("#j_icon_book_action_btn em");c.length>0&&c.html("购买中"),n._buyIconRequest(o)}})}},hideTip:function(){var o=this;o._is_show||o.closeTip()},closeTip:function(){tip=$("#icon_book_tip"),(tip||0!=tip.length)&&tip.remove()},_bindEvents:function(){var o=$("#icon_book_tip"),i=this;o.bind("mouseenter",function(){i._is_show=!0}).bind("mouseleave",function(){i._is_show=!1,i.hideTip()})},_replaceIcon4FirstSlot:function(o){var i=this;i._control.closeIconBook(),i._msgbox||(i._msgbox=i.use("common/widget/Icons/IconsBookMessagebox"));var n=$(".icon_wrap .icon_slot_refresh");i._msgbox.showReplaceFirstSlotBox(o,n,i._replaceIcon4OtherSlot,i)},_replaceIcon4OtherSlot:function(o){var i=this,n={ie:"utf-8"};n.tbs=PageData.tbs,n.icon_name=o.icon_id,n.slot_no=o.slot_no,i._ajax&&i._ajax.abort(),i._ajax=$.ajax({type:"post",url:"/icon/seticon",data:n,dataType:"json"}).success(function(o){if(o&&0===o.no){var n=o.data;i._refreshAfterReplace(n.icon_info)}else if(o&&2270028===o.no)i._msgbox||(i._msgbox=i.use("common/widget/Icons/IconsBookMessagebox")),i._msgbox.hasNotEnoughTdou();else;})},_refreshAfterReplace:function(){var o=this;setTimeout(function(){o.closeTip()},0),o._msgbox||(o._msgbox=o.use("common/widget/Icons/IconsBookMessagebox")),o._msgbox.replaceIconSuccess(o)},_setSoltIconBg:function(o,i){var n=o.sprite[o.value].split(","),t=50,e=n[0],s=n[1],_=1*t,c=s*t,a="http://tb1.bdstatic.com/tb/cms/com/icon/icon_sprite.png",r=" url("+a+"?stamp="+e+") no-repeat -"+c+"px -"+_+"px;";i&&i.children("span").length>0?i.children("span").css({background:r}):(i.css({background:r}),i.removeClass("j_slot_null_icon"),i.removeClass("icon_slot_null_icon"),i.tbattr("title",""))},_buyIcon:function(o){var i=this;i._control.closeIconBook(),i._msgbox||(i._msgbox=i.use("common/widget/Icons/IconsBookMessagebox"));var n=$(".icon_wrap .icon_slot_refresh");i._msgbox.showBuyIconBox(o,n,i._buyIconRequest,i)},_buyIconRequest:function(o){var i=this,n={ie:"utf-8"};n.tbs=PageData.tbs,n.icon_name=o.icon_id,n.level=o.value,i._ajax&&i._ajax.abort(),i._ajax=$.ajax({type:"post",url:"/icon/buyIcon",data:n,dataType:"json"}).success(function(o){if(o&&0===o.no){var n=o.data;parr=PageData.user.Parr_scores,parr.scores_fetch=n.scores_fetch||0,parr.scores_money=n.scores_money||0,parr.scores_other=n.scores_other||0,parr.scores_total=n.scores_total,$(".j_userinfo_scores_num").html(parr.scores_money+parr.scores_other);for(var t=$(".tab_body_item_active .icon_view .icon_box_place"),e=0;e',""].join("");return o},_getNoRemainTip:function(){var o=['
','
T豆不足
','充值',"
"].join("");return o},_getTpl:function(o){var i=this,n=PageUnit.load("icons_new_cfg")||{},t=o.icon_info,e=t.sprite[t.value].split(","),s=50,_=e[0],c=e[1],a=2*s,r=c*s,p="http://tb1.bdstatic.com/tb/cms/com/icon/icon_sprite.png",l=" background:url("+p+"?stamp="+_+") no-repeat -"+r+"px -"+a+"px;",d=t.name+"_"+o.value,u="",b=i.common.getIconExpired(t);b>-1&&(u='剩余时间:'+b+"天");var m={background_img:l,desc_title:n[d][0]+u||"印记",desc_detail:n[d][2]||"",desc_link:n[d][3]||"http://tieba.baidu.com/",btn_value:o.in_use?"替换":"购买",price_info_display:1==o.in_use?"none":"block",padding_top:o.in_use?"20":"10",in_use_display:"none",in_use_text:"",button_display:0==o.in_use&&0==t.price?"none":"block"};i._judgeCommIconInSlot(o.icon_id)&&(m.button_display="none"),"none"==m.button_display&&(m.in_use_display="display",m.in_use_text="使用中",m.price_info_display="none"),0==o.in_use&&0==t.price&&(m.in_use_text="活动获取");var g=['
','
','
','
','
',"
",'
','
#{desc_title}
','
#{desc_detail}详情 >>
',"
",'
','
','
','
#{in_use_text}
','#{btn_value}',"
","
","
","
"].join("");return $.tb.format(g,m)},_judgeCommIconInSlot:function(o){var i=PageData.new_iconInfo||{};for(var n in i){var t=this.common.isShowDurationIcon(i[n]);if(i[n].name==o&&t)return!0}return!1}}}); ;_.Module.define({path:"common/widget/Icons/IconsBookView",requires:["IconsBookTip","IconsBookCommon"],sub:{tabIconsContentCongfig:{},_collect_icon_title:{101:"集齐32个国旗印记奖励【贴吧世界杯】印记",102:"集齐12个星座印记可以获得12个黄金版星座印记",103:"",104:""},initial:function(){},_getTabPanelTpl:function(){var o=['
','
','
','
    ',"#{tabHead}","
",'
',"#{tabContent}","
","
","
",'
',"
"].join("");return o},getTabItem:function(o){var i=this,t=['
  • ','
    ','
  • '].join(""),n=['
    ',"
    "].join(""),a="",c="";o=o||[];var l=0;for(var e in o)l++;var r=0;for(var e in o){var s={index:r,category_id:e,title:o[e][0],separator_cls:r==l-1?"":"space"};r++,a+=$.tb.format(t,s),c+=$.tb.format(n,s)}var _={tabHead:a,tabContent:c},d=i._getTabPanelTpl();return $.tb.format(d,_)},getTabContent:function(o,i,t){var n="",a="",c=this,l=0,e=0;if(o=o||{},o.normal&&!o.advanced){var r=o.normal||[],s=r.length;return l=5,e=1>=s/50?10:s%l==0?Math.floor(s/l):Math.floor(s/l)+1,n+=c._getPositionIconListHtml(r,e,i),a=c._getCommIconWrap(null,l,e,n),c.tabIconsContentCongfig.comm={row:l,col:10,total_col:e},a}if(o.advanced&&o.advanced){var r=o.normal||[],_=o.advanced||[],s=r.length,d=_.length,v="";return l=2,e=1>=s/20?10:s%l==0?Math.floor(s/l):Math.floor(s/l)+1,n+=c._getPositionIconListHtml(r,e,i),a=c._getCommIconWrap(null,l,e,n),c.tabIconsContentCongfig.comm={row:l,col:10,total_col:e},a+=c._getDownArrowHtml(),e=1>=d/20?10:s%2==0?Math.floor(d/2):Math.floor(d/2)+1,v+=c._getPositionIconListHtml(_,e,null),a+=c._getAdvancedIconWrap(null,l,e,v,t),c.tabIconsContentCongfig.adv={row:l,col:10,total_col:e},a}return a},_getCommIconWrap:function(o,i,t,n){var a={arrow_top:5==i?100:45,arrow_visiblity:t>10?"visible":"hidden",height_cls:5==i?"icon_wrap_5":"",icon_list:n,total_col:t},c=['
    ','
    ','
    ','
    ','
    ','
      ',"#{icon_list}","
    ","
    ","
    ",'
    ','
    ',"
    "].join("");return $.tb.format(c,a)},_getAdvancedIconWrap:function(o,i,t,n,a){var c=this,l={title:c._collect_icon_title[a],arrow_visiblity:t>10?"visible":"hidden",icon_list:n,total_col:t},e=['
    ','
    #{title}
    ','
    ','
    ','
    ','
    ','
    ','
      ',"#{icon_list}","
    ","
    ","
    ",'
    ','
    ',"
    ","
    "].join("");return $.tb.format(e,l)},_getDownArrowHtml:function(){return'
    '},_getPositionIconListHtml:function(o,i,t,n){for(var a="",c=this,l=!1,e=o.length,r=0,s=0,_=0;e>_;_++){r=Math.floor(_/i),s=_%i;var d=55*r,v=55*s;l=t&&t==o[_].name?!0:!1;var b="";b=0==o[_].is_advanced?c._getCommonIconTpl(o[_],d,v,l):c._getAdvIconTpl(o[_],d,v,n),a+=b}return a},_getCommonIconTpl:function(o,i,t,n){var a=this,c=o.sprite[o.value].split(","),l=50,e=c[0],r=c[1],s=2*l,_=r*l,d="http://tb1.bdstatic.com/tb/cms/com/icon/icon_sprite.png",v="background: url("+d+"?stamp="+e+") no-repeat -"+_+"px -"+s+"px;",b={icon_top:i,icon_left:t,name:o.name,in_use:o.in_use,in_use_cls:1==o.in_use?"":" icon_not_use",selected_cls:n?" icon_selected":"",level:o.value,background:v,locked_cls:0==o.in_use?" icon_locked":""};a._judgeCommIconInSlot(o)&&(b.selected_cls="icon_selected");var p=["
  • ",'
    ','
    ','
    ','
    ',"
    ","
  • "].join("");return $.tb.format(p,b)},_judgeCommIconInSlot:function(o){var i=this,t=o.name,n=PageData.new_iconInfo||{};for(var a in n){if("1"==a&&$.isEmptyObject(n[a])){var c=this._getOldIconinfoInSlot();if(t==c)return!0}if(n[a].name==t){i.common=this.use("common/widget/Icons/IconsBookCommon");var l=i.common.isShowDurationIcon(o);return l?!0:!1}}return!1},_getOldIconinfoInSlot:function(){var o=$(".j_icon_slot").first();if(o){var i=o.tbattr("data-slot");return i}return null},_getAdvIconTpl:function(o,i,t,n){var a=o.sprite[o.value].split(","),c=50,l=a[0],e=a[1],r=2*c,s=e*c,_="http://tb1.bdstatic.com/tb/cms/com/icon/icon_sprite.png",d="background: url("+_+"?stamp="+l+") no-repeat -"+s+"px -"+r+"px;";n=o.is_collected;var v=o.is_collected,b={icon_top:i,icon_left:t,name:o.name,in_use:o.in_use,clocked_cls:1==v?" ":" icon_locked",level:o.value,background:d},p=["
  • ",'
    ','
    ','
    ','
    ',"
    ","
  • "].join("");return $.tb.format(p,b)},_judgeAdvIconLocked:function(o,i){var t=!1;switch(i=parseInt(i)){case 101:break;case 102:if(o){for(var n=0;n13962816e5&&Env.server_time<1396368e6&&4!=i?(n='
    ',t=2,n+='',n+="
    "):(e&&e.level&&e.level.end_time>o&&(n='
    ',t=e.level.props_id,n+='',n+="
    "),n)},_getIconsHtml:function(e,i){var i=i||1,t=e.iconinfo,a=PageUnit.load("icons_cfg"),n=50,o="";if(t&&t.length>0){o='
    ';for(var r,l,c,s,_,m,p=null,v=0;v=2&&(f-=2,o+="');break;case"is_member":o+="';break;default:_&&(o+=_[1]?"':"')}}return o+="
    "}},getIconsHtml:function(e,i,t){var t=t?t:5,a=e.new_iconinfo,n=0;for(var o in a)n++;var r='
    ',l=0;if(!a){var c=e.iconinfo;if(c){var s=c[0];r+=this._getIconHtml(s,1)}}for(var _ in a){var m=a[_];if(l==t)break;if($.isEmptyObject(m)){if("1"==_){var c=e.iconinfo;if(!$.isEmptyObject(c)){var s=this._getReplaceIcon(c,a);if(!s)continue;r+=this._getIconHtml(s,1),l++}}}else this.common.isShowDurationIcon(m)&&(r+=this._getIconHtml(m,1),l++)}return r+="
    "},_getReplaceIcon:function(e,i){if($.isEmptyObject(i))return e[0];for(var t=0;t=2&&(p-=2,_+="');break;case"is_member":_+="';break;default:r&&(_+=r[1]?"':"')}return _}}}); ;_.Module.define({path:"common/widget/Tdou/TdouBuilder",requires:["common/widget/Tdou/TdouTemplate","common/widget/Tdou/TdouCounter"],sub:{initial:function(){this.template=this.use("common/widget/Tdou/TdouTemplate")},builderGetTdouMain:function(e,t){var i=this.template.getMainFrame(),r=this.builderGetTdouList(e);return $.tb.format(i,{list:r,user_name_show:t.userNameShow,user_name:t.userName,tdou_amount:t.tdouAmount,member_icons:t.member_icons,advance_Member:t.advance_Member,member_name_color:t.member_name_color})},builderGetBodyTitle:function(e){var t=this.template.getBodyTitle();return $.tb.format(t,e)},builderGetTdouList:function(e){var t="";if(e){var i=(this.use("common/widget/Tdou/TdouCounter"),this.template.getIconItem()),r=0;for(var o in e){var n=e[o];n.idx=r,n.price_diff=n.member_price-n.non_member_price,n.per_price=100*n.price_diff/n.non_member_price,t+=$.tb.format(i,n),r++}return t}},builderLoading:function(){return this.template.getLoadingTpl()},builderMask:function(){return this.template.getMaskLayer()},builderTdouCheck:function(){return this.template.getTipInfoCheckPayInfoAndTdouInfo()},builderError:function(e){var t=this.template.getTipInfoMainFrame(),i={tip_img:"tip_failed_img",tdou_tip_text:"
    "+e+"获取失败!请尝试重新获取或刷新当前页面!
    "};return $.tb.format(t,i)},builderIconTip:function(e,t,i){var r=this.template.getIconInfoTip(),o={icon_name:e,icon_expired:t,icon_desc:i};return $.tb.format(r,o)},buildGetIconSuccessTip:function(e){var t=this.template.getTipInfoMainFrame(),i="获取印记成功去我的个人中心查看>>',r={tip_img:"tip_successed_img",tdou_tip_text:i};return $.tb.format(t,r)}}}); ;_.Module.define({path:"common/widget/Tdou/TdouCounter",requires:[],sub:{onValueChange:[],initial:function(){},builderUI:function(t){var a=['
    ',' ',' ',' ',"
    "].join(""),n=$.tb.format(a,{id:t});return n},bindEvents:function(t){var a=this;if(t){var n=999999,c=t.find(".j_tdou_calc_input"),e=t[0].id.replace("tdou_counter_","");t.delegate(".j_tdou_calc_minus","click",function(){var t=parseInt(c.val())||1;t=Math.max(1,t-1),t=Math.min(n,t),c.val(t),a.triggerValChange(t,e)}).delegate(".j_tdou_calc_add","click",function(){var t=parseInt(c.val())||1;t++,t=Math.min(n,t),c.val(t),a.triggerValChange(t,e)}).delegate(".j_tdou_calc_input","input propertychange",function(){var t=/^[1-9]\d*$/,o=c.val();(o&&!t.test(o)||t.test(o)&&o>999)&&(o=o.replace(/\D/g,"").replace(/^0(\d*)$/,"$1"),o=Math.min(n,o),c.val(o),a.triggerValChange(o,e))});var o=function(){var t=c.val()&&parseInt(c.val())>0&&parseInt(c.val())||1;t=Math.min(n,t),c.val(t),a.triggerValChange(t,e)};c.on("blur",function(){o()}).on("keydown",function(t){13==t.keyCode&&o()})}},triggerValChange:function(t,a){for(var n=0;nt&&parseInt(n.props_id,10)>a&&(a=parseInt(n.props_id,10)),a},getAdvanceMember:function(){var e="http://tieba.baidu.com/tbmall/getPayUrl?terminal=pc&pay_type=1&is_jump=1";return e},getIconInfo:function(e,a){var t=this,r={ie:"utf-8"};r.tbs=PageData.tbs,t._get_icon_ajax&&t._get_icon_ajax.abort(),t._get_icon_ajax=$.ajax({type:"get",url:t.route.getIconInfo,data:r,cache:!1,dataType:"json"}).success(function(r){if(r&&0===r.no){var n=r.data;t._item_raw_cache=r.data,r.data=t.dapterIconListData(n)}e.call(a,r)})},dapterIconListData:function(e){var a={};if(e)for(key in e)if(e.hasOwnProperty(key)){var t={icon_id:e[key].iconId,icon_name:e[key].name||"随机印记",icon_picurl:e[key].picUrl,member_price:"",non_member_price:e[key].non_member_t,price_diff:"",tbmall_price:e[key].dubi/100};t.member_price=this.calcIconMemberPrice(e[key].dubi,e[key].non_member_t,e[key].discount,1),a[key]=t}return a},calcIconMemberPrice:function(e,a,t,r){var n=0,i=e*r,o=1;for(var c in t){if(!(i>=c))return n=1==o?a:a*r*t[o]/100;o=c}return n=a*r*t[o]/100},getPriceInfo:function(e,a){var t=this,r=null,n=this.getCache(a);return n&&(r={icon_id:n.iconId,member_price:"",non_member_price:t._convertNum(n.non_member_t*e),tbmall_price:t._convertNum(n.dubi*e/100)},r.member_price=t.calcIconMemberPrice(n.dubi,n.non_member_t,n.discount,e),r.member_price=t._convertNum(r.member_price)),r},_convertNum:function(e){return e>99999999?Math.floor(e/1e6)/100+"亿":e>9999999?Math.floor(e/1e5)/100+"千万":e>999999?Math.floor(e/1e4)/100+"百万":e},payIcon:function(e,a,t,r,n,i){var o=this,c={ie:"utf-8",tbs:PageData.tbs,terminal:"pc",pay_type:6,iconId:e,iconCount:a,fr:i||0,pageUrl:n||""};o._payIcon(c,t,r)},payIconWithMargin:function(e,a,t,r,n,i){var o=this,c={ie:"utf-8",tbs:PageData.tbs,terminal:"pc",pay_type:6,iconId:e,pageUrl:n||"",margin:a,fr:i||0};o._payIcon(c,t,r)},_payIcon:function(e,a,t){var r=this;r._buy_icon_ajax&&r._buy_icon_ajax.abort(),r._buy_icon_ajax=$.ajax({type:"get",url:r.route.buyIcon,data:e,cache:!1,dataType:"json"}).success(function(e){a.call(t,e)})},getTdou:function(e,a,t){var r=this;r._get_tdou_ajax&&r._get_tdou_ajax.abort(),r._get_tdou_ajax=$.ajax({type:"get",url:r.route.getTdou+"?"+new Date,data:{},cache:!1,dataType:"json"}).success(function(r){e.call(a,r,t)})},getCache:function(e){return e?this._item_raw_cache[e]:{}},clearCache:function(){this._item_raw_cache=null},getTipData:function(e){var a=this.getCache(e),t={};return t.icon_name=a.name,t.icon_expired=1,t.icon_desc=this.iconConfig[a.name+"_1"]||this.tipData[e],t}}}); ;_.Module.define({path:"common/widget/Tdou/TdouTemplate",sub:{get_icon_main_tpl:"",get_icon_item_tpl:"",initial:function(){},getMainFrame:function(){var i=this;if(!i.get_icon_main_tpl){var _=['','
    ','
    ','
    获取T豆
    ',' ',"
    ",'
    ','
      ',"#{list}","
    ","
    ",'
    ','购买数量:
    ','需支付:','获赠: T豆',"
    ",' ","
    "].join("");i.get_icon_main_tpl=_}return i.get_icon_main_tpl},getBodyTitle:function(){var i=['账号:#{member_icons}#{user_name_show}','T豆余额:','#{tdou_amount}','
    会员特权:获取印记可多赠T豆开通
    '].join("");return i},getIconItem:function(){var i=this;if(!i.get_icon_item_tpl){var _=['
  • ','
    ','
    ','
    ','

    价格:#{tbmall_price}元

    ','

    ','赠送:#{non_member_price}T豆','超级会员加送#{per_price}% #{price_diff}T豆',"

    ","
    ",'
    ','',"

    #{icon_name}
    有效期:1天

    ","
    ",'
    ',"
    ","
  • "].join("");i.get_icon_item_tpl=_}return i.get_icon_item_tpl},getLoadingTpl:function(){var i=this;if(!i.get_icon_loading_tpl){var _=['
    ','
    ',"
    ",'
    '," 加载中,请稍等","
    ","
    "].join("");i.get_icon_loading_tpl=_}return i.get_icon_loading_tpl},getTipInfoMainFrame:function(){var i=this;if(!i.get_icon_tip_main_tpl){var _=['
    ','
    ',"
    ",'
    '," #{tdou_tip_text}","
    ","
    "].join("");i.get_icon_tip_main_tpl=_}return i.get_icon_tip_main_tpl},getTipInfoCheckPayInfoAndTdouInfo:function(){var i=this;if(!i.get_tdou_info_tpl){var _=['
    ',' ','
    ','
    ','
    '," 请在新打开的页面完成获取操作","
    ",' ","
    ","
    "].join("");i.get_tdou_info_tpl=_}return i.get_tdou_info_tpl},getMaskLayer:function(){return'
    '},getIconInfoTip:function(){var i=this;return i.get_icon_info_tip_tpl||(i.get_icon_info_tip_tpl=['
    ','
    ','

    【#{icon_name}】

    ','

    有效期 #{icon_expired} 天/个

    ','

    #{icon_desc}

    ',"
    ",' ',"
    "].join("")),i.get_icon_info_tip_tpl}}}); ;_.Module.define({path:"common/widget/Tdou/TdouView",requires:["common/widget/Tdou/TdouBuilder","common/widget/Tdou/TdouData","common/widget/Tdou/TdouCounter","common/widget/Tdou/TdouViewUtil","common/component/Icons","common/widget/LoginDialog","common/widget/Tdou/TdouViewCheck"],sub:{initial:function(){this.builder=this.use("common/widget/Tdou/TdouBuilder"),this.dataProxy=this.use("common/widget/Tdou/TdouData"),this.counter=this.use("common/widget/Tdou/TdouCounter"),this.viewUtil=this.use("common/widget/Tdou/TdouViewUtil"),this.checkTdou=this.use("common/widget/Tdou/TdouViewCheck")},createMain:function(e,o,t,n){var i=this;i.consumption_path=e,i.desc=o,i.current_need_tdou=t,i.is_direct_cashier=n;var a=$.tb.location.getHref();i.dataProxy.getIconInfo(i.builderMainUI,i,a)},builderMainUI:function(e){var o=this;if(e&&0===e.no){var t=e.data,n=this.getTitleData(),i=o.builder.builderGetTdouMain(t,n);o.renderMain(i),o.bindMainUIEvents(),o.dataProxy.isLogin()||$(".j_tdou_body_title").hide(),o.updateTdouAndUserName(),o.setDefaultSlected()}else e&&11e4===e.no&&this.viewUtil.OpenLoginDialog()},getTitleData:function(){var e=this,o=e.dataProxy.getUserName(),t=e.dataProxy.getUserTdou(),n=e.dataProxy.getShowName(),i=e.dataProxy.getAdvanceMember(),a=e.use("common/component/Icons"),d=a.getPreIconHtml(PageData.user.Parr_props||PageData.user.mParr_props||{}),r=e.dataProxy.isMemeber(),u="";r&&(u="#FF0000");var c={userName:o,userNameShow:n,tdouAmount:t,member_icons:d,advance_Member:i,member_name_color:u};return c},renderMain:function(e){var o={modal:!0,showTitle:!1,fixed:!0,width:620,height:480,holderClassName:"tdou_pay_icon_dialog",draggable:!0};o.html=e,this._dialog=new $.dialog(o),this._dialog.element[0].id="tdou_pay_icon_dialog",this._dialog.show()},setDefaultSlected:function(){$(".j_tdou_base_list li:eq(1)").trigger("click")},bindMainUIEvents:function(){var e=this;e.bindCounterEvent(),$(".j_header_close").on("click",function(){e.closeMain()}),$(".j_tdou_give_btn_big").on("click",function(){e.closeMain()});$(".j_tdou_get_item").on("click",function(){var o=$(this);e.selectIconItem(o)}).on("mouseenter",function(){var e=$(this);e.addClass("tdou_item_hover")}).on("mouseleave",function(){var e=$(this);e.removeClass("tdou_item_hover")});$(".j_tdou_buy_btn_big").on("click",function(){var o=$(".goods_wrap_selected");if(0!=o.length){var t=$(".j_tdou_calc_input").val(),n=o[0].id;e.wrap=$("#tdou_pay_icon_dialog"),e.viewUtil.displayLoading(e.wrap),e.new_win=window.open("about:blank");var i=$.tb.location.getHref();e.dataProxy.payIcon(n,t,e.buyIcon,e,i,e.consumption_path)}})},bindCounterEvent:function(){var e=this;$(".tdou_calc_count_wrap").each(function(){e.counter.bindEvents($(this).find(".j_tdou_calc_count")),e.counter.onValueChange.push({action:e.onCounterValueChange,context:e})})},closeMain:function(){this._dialog.close(),this.dataProxy.clearCache()},selectIconItem:function(e){if(e){$(".j_tdou_get_item").removeClass("goods_wrap_selected"),e.addClass("goods_wrap_selected");var o=this,t=e.tbattr("id");$(".j_tdou_counter_replace").html(o.counter.builderUI(t));var n=$("#tdou_counter_"+t);o.counter.bindEvents(n),o.counter.onValueChange.push({action:o.onCounterValueChange,context:o}),o.onCounterValueChange(1,t)}},onCounterValueChange:function(e,o){var t=this.dataProxy.getPriceInfo(e,o),n=this.dataProxy.getMemberLevel();$(".j_goods_member_num").html(n>1?t.member_price:t.non_member_price),$(".j_goods_tmall_price_num").html(t.tbmall_price)},buyIcon:function(e){var o=this;o.viewUtil.hideLoading(),o.wrap=$("#tdou_pay_icon_dialog"),e&&0===e.no?(o.checkTdou.showTdouCheckView(o.wrap,o.updateTdou,o),o.new_win.location.href=e.data):e&&11e4===e.no?(o.closeMain(),o.viewUtil.OpenLoginDialog(),o.new_win&&o.new_win.close()):(this.viewUtil.displayErrorInfo(o.wrap,""),o.new_win&&o.new_win.close())},updateTdou:function(){var e=this;e.dataProxy.getTdou(e.onUpdateTdou,e)},onUpdateTdou:function(e){var o=this;if(e&&0===e.no){var t=e.data.Parr_scores,n=$("#tdou_remain_num"),i=t?t.scores_money+t.scores_other:0,a=parseInt(n.val()||0,10);if(n.html(i),i-a>=1e4){o.wrap=o.wrap||$("#tdou_pay_icon_dialog");var d=o.dataProxy.getUserName();this.viewUtil.dispalySuccessedInfo(o.wrap,d,function(){o.pointOutTdou(n)},o)}else this.viewUtil.displayErrorInfo(o.wrap,"",function(){o.pointOutTdou(n)},o)}},updateTdouAndUserName:function(){var e=this;e.dataProxy.getTdou(e.onUpdateTdouAndUserName,e)},onUpdateTdouAndUserName:function(e){var o=this;if(e&&0===e.no){var t=e.data.mParr_props,n=e.data.Parr_scores;o.dataProxy.setParrProps(t),o.dataProxy.setParrScores(n);var i=$(".j_title_remain_num"),a=n?n.scores_money+n.scores_other:0;i.html(a);var d=this.getTitleData(),r=o.builder.builderGetBodyTitle(d);$("j_tdou_body_title").html(r)}},pointOutTdou:function(e){if(e){var o=0,t=function n(){2!=o&&(o++,e.animate({fontSize:"+=10px"},"normal",function(){e.animate({fontSize:"-=10px"}),n()}))};t()}}}}); ;_.Module.define({path:"common/widget/Tdou/TdouViewAutoRedirect",requires:["common/widget/Tdou/TdouBuilder","common/widget/Tdou/TdouData","common/widget/Tdou/TdouViewUtil"],sub:{_icon_id:"suiji",initial:function(){this.builder=this.use("common/widget/Tdou/TdouBuilder"),this.dataProxy=this.use("common/widget/Tdou/TdouData"),this.viewUtil=this.use("common/widget/Tdou/TdouViewUtil")},createMain:function(o,i,e){var t=this,n=$.tb.location.getHref();t.consumption_path=o,t.desc=i,t.current_need_tdou=e,t.new_win=window.open("about:blank"),t.dataProxy.getIconInfo(t.onGetIconInfo,t,n)},onGetIconInfo:function(o){var i=this;if(o&&0===o.no){{o.data}if(!i.dataProxy.isLogin())return void this.viewUtil.OpenLoginDialog();i.afterUpdateTdou()}else o&&11e4===o.no&&this.viewUtil.OpenLoginDialog()},afterUpdateTdou:function(){var o=this,i=o.current_need_tdou,e=o._icon_id,t=$.tb.location.getHref();o.dataProxy.payIconWithMargin(e,i,o.buyIcon,o,t,o.consumption_path)},builderMainUI:function(){var o=this.builder.builderTdouCheck();this.renderMain(o);var i=$(".j_tdou_get_icon_check");this.bindMainUIEvents(i),i.css({"z-index":"900"}),this.wrap=$("#tdou_pay_icon_check_dialog")},renderMain:function(o){var i={modal:!0,showTitle:!1,fixed:!0,width:538,height:208,holderClassName:"tdou_pay_icon_check_dialog",draggable:!0};i.html=o,this._dialog=new $.dialog(i),this._dialog.element[0].id="tdou_pay_icon_check_dialog",this._dialog.show()},bindMainUIEvents:function(o){var i=this;o&&o.delegate(".j_header_close","click",function(){i.closeMain()}).delegate(".j_check_btn","click",function(){i.updateTdou()}).delegate(".j_btn_redo_check","click",function(){i.closeMain()})},closeMain:function(){this._dialog.close(),this.dataProxy.clearCache()},buyIcon:function(o){var i=this;i.wrap=$("#tdou_pay_icon_check_dialog"),o&&0===o.no?(i.builderMainUI(),i.new_win.location.href=o.data):o&&11e4===o.no?(i.closeMain(),i.viewUtil.OpenLoginDialog(),i.new_win&&i.new_win.close()):(this.viewUtil.displayErrorInfo(i.wrap,""),i.new_win&&i.new_win.close())},updateTdou:function(){var o=this;o.dataProxy.getTdou(o.onUpdateTdou,o)},onUpdateTdou:function(o){var i=this;if(o&&0===o.no){var e=o.data.Parr_scores,t=e?e.scores_money+e.scores_other:0,n=i.dataProxy.getUserTdou();if(t-n>=1e4){i.wrap=$("body")||$("#tdou_pay_icon_check_dialog");var a=i.dataProxy.getUserName();this.viewUtil.dispalySuccessedInfo(i.wrap,a,function(){i.closeMain()},i)}else this.viewUtil.displayErrorInfo(i.wrap,"",function(){i.closeMain()},i)}},updateTdouAndUserName:function(o){var i=this;i.dataProxy.getTdou(i.onUpdateTdouAndUserName,i,o)},onUpdateTdouAndUserName:function(o,i){var e=this;if(o&&0===o.no){var t=o.data.mParr_props,n=o.data.Parr_scores;e.dataProxy.setParrProps(t),e.dataProxy.setParrScores(n);{n?n.scores_money+n.scores_other:0}i&&i.call(this)}}}}); ;_.Module.define({path:"common/widget/Tdou/TdouViewCheck",requires:["common/widget/Tdou/TdouBuilder","common/widget/Tdou/TdouData","common/widget/Tdou/TdouViewUtil"],sub:{initial:function(){this.builder=this.use("common/widget/Tdou/TdouBuilder"),this.dataProxy=this.use("common/widget/Tdou/TdouData"),this.viewUtil=this.use("common/widget/Tdou/TdouViewUtil")},showTdouCheckView:function(e,i,o){var t=this;t._wrap=e||$("body");var d=(t._wrap.height()-208)/2+"px",c=(t._wrap.width()-520)/2+"px",n={top:d,left:c},u=t._wrap.find(".j_tdou_get_icon_check");if(0==u.length){var h=this.builder.builderTdouCheck();u=$(h),t._wrap.prepend(u),t._bindEvents(u,i,o)}t.viewUtil.setMask(e),u.css(n),u.show()},hideTdouCheckView:function(){var e=this._wrap.find(".j_tdou_get_icon_check");e.hide(),this.viewUtil.removeMask()},_bindEvents:function(e,i,o){var t=this;e&&e.delegate(".j_header_close","click",function(){t.hideTdouCheckView()}).delegate(".j_check_btn","click",function(){t.hideTdouCheckView(),"function"==typeof i&&t._onCheckTdou(i,o)}).delegate(".j_btn_redo_check","click",function(){t._onRedoBuyIcon()})},_onCheckTdou:function(e,i){"function"==typeof e&&"object"==typeof i&&e.call(i)},_onRedoBuyIcon:function(){this.hideTdouCheckView()}}}); ;_.Module.define({path:"common/widget/Tdou/TdouViewUtil",requires:["common/widget/Tdou/TdouBuilder","common/widget/LoginDialog"],sub:{_wrap:null,initial:function(){this.builder=this.use("common/widget/Tdou/TdouBuilder")},setMask:function(i){var t=this;this._wrap=i||$("body");var o={height:t._wrap.height(),width:t._wrap.width()},n=this._wrap.find(".j_tdou_mask");if(0==n.length){var e=this.builder.builderMask();n=$(e),t._wrap.prepend(n)}n.css(o),n.show()},removeMask:function(){var i=this._wrap.find(".j_tdou_mask");0!=i.length&&i.hide()},displayLoading:function(i){var t=this;this._wrap=i||$("body");var o=(t._wrap.height()-70)/2+"px",n=(t._wrap.width()-200)/2+"px",e={top:o,left:n},d=this._wrap.find(".j_tdou_get_icon_loading");if(0==d.length){var s=this.builder.builderLoading();d=$(s),t._wrap.prepend(d)}t.setMask(i),d.css(e),d.show()},hideLoading:function(){var i=this._wrap.find(".j_tdou_get_icon_loading");0!=i.length&&i.hide(),this.removeMask()},_displayInfo:function(i,t,o,n){var e=this;this._wrap=i||$("body");var d=(e._wrap.height()-80)/2+"px",s=(e._wrap.width()-400)/2+"px",h={top:d,left:s},r=$(t);e._wrap.prepend(r),e.setMask(i),r.css(h),r.show(),setTimeout(function(){e._hideInfo(),o&&o.call(n)},3e3)},_hideInfo:function(){this._wrap.find(".j_tdou_get_icon_tip").remove(),this.removeMask()},displayErrorInfo:function(i,t,o,n){var e=this,d=e.builder.builderError(t);e._displayInfo(i,d,o,n)},hideErrorinfo:function(){this._hideInfo()},dispalySuccessedInfo:function(i,t,o,n){var e=this,d=e.builder.buildGetIconSuccessTip(t);e._displayInfo(i,d,o,n)},showIconTip:function(i,t,o){var n=this,e=i;this._icon=t;var d=n._icon.position(),s=d.top-60+"px",h=(d.right-20+"px",{top:s,right:85});if(this.$tip=e.find(".j_tdou_get_icon_info_tip"),0==this.$tip.length){var r=this.builder.builderIconTip(o.icon_name,o.icon_expired,o.icon_desc);this.$tip=$(r),e.append(this.$tip)}else this.$tip.find(".j_icon_name").html(o.icon_name),this.$tip.find(".j_icon_expired").html(o.icon_expired),this.$tip.find(".j_icon_desc").html(o.icon_desc);this.$tip.css(h),this.$tip.show()},hideIconTip:function(){this.$tip&&this.$tip.hide()},OpenLoginDialog:function(){_.Module.use("common/widget/LoginDialog")}}}); ;_.Module.define({path:"common/widget/Tdou",requires:["common/widget/Tdou/TdouView","common/widget/Tdou/TdouViewAutoRedirect"],sub:{initial:function(){},factory:function(e,i,t,o){switch(e){case"get_icon":this.view=this.use("common/widget/Tdou/TdouView"),this.view.createMain(i,t,o);break;case"auto_direct":this.autoDirect=this.use("common/widget/Tdou/TdouViewAutoRedirect"),this.autoDirect.createMain(i,t,o)}}}});_.Module.define({path:"ueglibs/widget/Ban",sub:{initial:function(e,a,r,t,i,n){var o,s,f,p,l=PageData.user.forbidden;if(l)o=l.days_to_free,s=l.opgroup,f=l.isForbid,p=l.block_reason;else{var d=PageData.user.balv;o=d.days_tofree,s=d.opgroup,f=d.is_block,p=d.block_reason}var u=this,e=void 0!==e?e:PageData.product,a=void 0!==a?a:PageData.forum.forum_id,r=void 0!==r?r:o,t=void 0!==t?t:s,i=void 0!==i?i:f,n=void 0!==n?n:p,n=n&&"bawu"===t?"封禁理由:"+n+"":"",c="bawu"===t?";如果吧务不处理,就可以自动解封哦~":"";u.renderInfo={product:e,ban:i,fid:a,day:r,by:t,op:"bawu"!==t?"系统":"本吧吧务",page:"bawu"!==t?"system":"bawu",br:n,notice:c},$("body").off("click.ueg.pmclink").on("click.ueg.pmclink",".ueg_pmc-link",function(){var e=$(this),a=e.data("fr"),r=e.data("site");$.stats.track(r,"UEG-track",a,"click")})},ensure:function(e,a,r){for(var t,a=a.split(".");a.length>1;)t=a.shift(),e=e[t]=e[t]||{};if(t=a.shift(),void 0===t)throw"Please make sure you has one namespace like `scope.name.value` !";return void 0!==r&&(e[t]=r),e[t]},_tplRenders:{richPoster:function(e){if("system"==e.page)var a=e.ban?["您可能存在违规操作,已被#{op}封禁,去",'申请恢复',"#{notice}#{br}"].join(""):"";else var a=e.ban?["您已被#{op}封禁,#{br}",'您可以去申请恢复'].join(""):"";return $.tb.format(a,e)},simplePoster:function(e){if("system"==e.page)var a=e.ban?["您可能存在违规操作,已被#{op}封禁,去",'申请恢复'].join(""):"";else var a=e.ban?["您已被#{op}封禁,#{br}",'您可以去申请恢复'].join(""):"";return $.tb.format(a,e)},balvAside:function(e){var a=['
    ',"
    你已被系统永久封禁,
    封禁期间不加经验,头衔和权限收回。
    ",'","
    "].join(""),r=['
    ','
    ',"你已被#{op}封禁,#{br}","封禁期间不加经验,头衔和权限收回。","
    ",'
    ','去申请恢复',"
    ","
    "].join(""),t=e.ban?e.day>0&&e.day<360?r:a:"";return $.tb.format(t,e)},oldPosterDialog:function(e){var a=e.ban?["操作失败,您的账号因违规操作而被封禁  ",'查看封禁信息']:"";return $.tb.format(a,e)},balvLike:function(e){return $.tb.format("你已被#{op}封禁,暂时不能进行操作",e)},voteDialog:function(e){var a=e.ban?["操作失败,您的账号因违规操作而被封禁  ",'查看封禁信息']:"";return $.tb.format(a,e)},delPost:function(e){var a=e.ban?"抱歉,您已被本吧封禁或者加入黑名单,暂不能删贴":"";return a},forumInfoManager:function(e){var a=e.ban?"您的账户被封禁,暂不能修改":"";return a},forumManagerApply:function(){var e="抱歉,您的帐号被封禁,暂时无法申请吧主。";return e}},_supports:{frs:{richPoster:"richPoster",simplePoster:"simplePoster",balvAside:"balvAside",balvLike:"balvLike",oldPosterDialog:"oldPosterDialog",voteDialog:"voteDialog",forumManagerApply:"forumManagerApply"},pb:{richPoster:"richPoster",simplePoster:"simplePoster",balvAside:"balvAside",oldPosterDialog:"oldPosterDialog",voteDialog:"voteDialog",forumManagerApply:"forumManagerApply",delPost:"delPost"},"forum-info":{forumManagerApply:"forumManagerApply"},tbmall_theme2:{richPoster:"richPoster"}},assign:function(e,a,r,t){var i=this,n=(i._supports,i._tplRenders);if(!t&&"function"==typeof r){if(t=r,r=t.name,!r)return i.$error("Unknown render handler with an anonymous function"),!1;if(n[r])return i.$error("There exsits one render, place choice one another name"),!1;n[r]=t}e=support[e]=support[e]||{},e[a]=r},$error:function(){"tieba.baidu.com"!==$.tb.location.getHost()&&(arguments[0]="Console$>Error: "+(arguments[0]||""),(console&&console.error||function(){}).apply(console,arguments))},render:function(e){var a,r=this,t=r.renderInfo.product,i=r._supports,n=r._tplRenders,o=(i[t]||{})[e],s=$.tb.location.getSearchValue().fr||"";return o&&"function"==typeof n[o]?(r.renderInfo.site=e,r.renderInfo.fr=t+(s?"-"+s:""),a=n[o](r.renderInfo),r.renderInfo.site="",a):(r.$error("Don't support for this page named %s with the site named %s ,please hi li304207639",t,e),"")}}});