(function(){var e,t=window.T;e={name:"OpenJS",version:"3.0",debug:!1,noConflict:function(){return window.T=t,e},copy:function(e,t,n,r){for(var i in t)if(n||typeof e[i]=="undefined")e[i]=r?r(t[i]):t[i];return e},create:function(e,t){var n=this,r=e?e.split("."):[],i=r.length;for(var s=0;se)t=t.substr(0,e);else if(t.length1?u[1]:o;if(y.hasOwnProperty(a)){l=y[a];switch(l.type){case c:f=b(f);break;case h:f=w(f,10);break;default:f=E(f)}g[a]=f}}}for(var N in y)y.hasOwnProperty(N)&&!g.hasOwnProperty(N)&&(g[N]=y[N]["default"]);e.extend("envs",g)}(),e.debug=e.envs.debug,e.provide=e.create,window.QQWB=window.T=e})(),QQWB.extend("",{bind:function(e,t){e=e.toLowerCase();var n=QQWB,r=n.bigtable,i=r.get("eventhandler",e);return i?QQWB.Array.inArray(i,t)||i.push(t):r.put("eventhandler",e,[t]),n},once:function(e,t){e=e.toLowerCase();var n=QQWB,r;return r=function(){var i=t.apply(QQWB,arguments);return n.unbind(e,r),r=null,i},n.bind(e,r),n},unbind:function(e,t){e=e.toLowerCase();var n=QQWB,r=n.bigtable,i=r.get("eventhandler",e),s,o;if(i)if(t)for(s=0,o=i.length;s=0&&e.toString().lastIndexOf(t)+t.length==e.length:!1},replaceAll:function(e,t,n){var r;e=e||"";do r=e,e=e.replace(t,n);while(r!=e);return e},splitby:function(e,t){var n=QQWB.String,r="[****]";t=n.replaceAll(t,"\\"+e,r),t=t.split(e);for(var i=0,s=t.length;i=0?e[t]:e[n+t]}}),function(){var e;e=function(){var e=[],t,n,r,i={done:function(){if(!r){var n=arguments,s,o;t&&(o=t,t=0);for(var u=0,a=n.length;u1?QQWB.Array.fromArguments(arguments):n,--r||i.resolveWith(i,QQWB.Array.fromArguments(t))}}var t=arguments,n=t.length,r=n,i=n<=1&&e&&QQWB.Function.isFunction(e.promise)?e:QQWB.deferred.deferred();if(n>1)for(var o=0;o([^<]+)<\/ret>/i);return t?parseInt(t[1],10):t},parseErrorCode:function(e){var t=e.match(/"errcode":([^,]+)/i)||e.match(/([^<]+)<\/errcode>/);return t?parseInt(t[1],10):t},parseErrorMsg:function(e){var t=e.match(/"msg":"([^"]+)"/)||e.match(/([^<]+)<\/msg>/);return t?t[1]:t},getErrorMessage:function(n){var r=this,i=[],s=e[this.parseRetCode(n)],o=t[this.parseErrorCode(n)],u=this.parseErrorMsg(n);return s&&i.push(s),o&&i.push(o),u&&i.push(u),i=i.join(","),i||"\u672a\u77e5\u9519\u8bef"},compat:function(e){return!QQWB.String.startsWith(e,"/")&&(e="/"+e),e.toLowerCase()}})}(),QQWB.extend("Object",{create:function(){return Object.create?Object.create:function(e,t){var n=function(){};return n.prototype=e,new n}}(),forEach:function(e,t,n,r){for(var i in e)r?t.call(n,e[i],i,e):e.hasOwnProperty(i)&&t.call(n,e[i],i,e)},isObject:function(e){return Object.prototype.toString.call(e)=="[object Object]"},isEmptyObject:function(e){var t;for(t in e)return!1;return!0}}),QQWB.extend("XML",{isXML:function(e){},toString:function(e){return this.stringify(e)},stringify:function(e){var t;return window.ActiveXObject?t=e.xml:t=(new XMLSerializer).serializeToString(e),t},fromString:function(e){var t;if(window.ActiveXObject)t=new ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(e);else{var n=new DOMParser;t=n.parseFromString(e,"text/xml")}return t}},!0),function(){function t(e,t){var n=QQWB,r=n.String;return r.isString(e)||n.log.warn("bigtable inName is not a str"),r.isString(t)||n.log.warn("bigtable inKey is not a str"),["bt",e,t].join("_")}var e={};QQWB.extend("bigtable",{put:function(n,r,i){var s=t(n,r);return e[s]=i,e[s]},get:function(n,r,i){var s=t(n,r),o=e[s],u;return i!=u&&o==u?i:o},del:function(n,r){var i=t(n,r);try{delete e[i]}catch(s){e[i]=null}},has:function(n,r){var i=t(n,r);return e.hasOwnProperty(i)},_:function(){return e}}),QQWB.bigtable.set=QQWB.bigtable.put}(),QQWB.extend("time",{now:function(){return this.dateNow().getTime()},secondsNow:function(){return Math.round(this.now()/1e3)},dateNow:function(){return new Date},shortTime:function(e,t){var n;return e instanceof Date||(t=e,e=this.dateNow()),[e.getFullYear(),"/",e.getMonth(),"/",e.getDate()," ",(n=e.getHours())&&n<10?"0"+n:n,":",(n=e.getMinutes())&&n<10?"0"+n:n,":",(n=e.getSeconds())&&n<10?"0"+n:n].join("")}}),QQWB.extend("log",{CRITICAL:50,ERROR:40,WARNING:30,INFO:20,DEBUG:10,NOTSET:0,_level:0,setLevel:function(e){return this._level=e,this},debug:function(e){return this.DEBUG>=this._level&&this._out("DEBUG",e),this},info:function(e){return this.INFO>=this._level&&this._out("INFO",e),this},warning:function(e){return this.WARNING>=this._level&&this._out("WARNING",e),this},error:function(e){return this.ERROR>=this._level&&this._out("ERROR",e),this},critical:function(e){return this.CRITICAL>=this._level&&this._out("CRITICAL",e),this},_out:function(e,t){var n=QQWB,r=n.bigtable,i;output=[window.name?window.name:"",window.opener||window.name===r.get("oauthwindow","name")?"#":"",window!=window.parent?"*":"",n.name,": ","["+e+"] ",n.time.shortTime()+" ",t].join(""),i=r.get("log","latest"),i||(i=r.put("log","latest",[])),i.length>=200&&i.shift(),i.push(output),QQWB.debug&&window.console&&window.console.log(output)},last:function(e){var t=QQWB.bigtable.get("log","latest");return t&&e&&(t=t.slice(0,e)),t?t.join("\n"):""}}),QQWB.log.warn=QQWB.log.warning,QQWB.log.setLevel(QQWB.envs.loglevel),QQWB.extend("queryString",{encode:function(e,t,n,r){var i=/%20/g,s=t||"&",o=n||encodeURIComponent,u=[],a=[],f,l;for(f in e)if(e.hasOwnProperty(f)){l=e[f];if(l!==null&&typeof l!="undefined"){f=o(f).replace(i,"+"),l=o(l).replace(i,"+");if(!r)u.push(f+"="+l);else for(var c=0,h=r.length;c",r[0]);return t>4?t:e}(),t?{browser:"msie",version:t}:(n=i.exec(e)||r.exec(e)||e.indexOf("compatible")<0&&s.exec(e)||[],{browser:n[1]||"unknown",version:n[2]||"0"})}function c(){var e,t;for(e in f)f.hasOwnProperty(e)&&(t=f[e](),t&&(u[e]=t))}function h(){var e=navigator.appVersion,t={},n="unknown";return e.indexOf("Win")!=-1&&(n="windows"),e.indexOf("Mac")!=-1&&(n="mac"),e.indexOf("X11")!=-1&&(n="unix"),e.indexOf("Linux")!=-1&&(n="linux"),t[n]=!0,t.name=n,t}function p(){return document.compatMode=="BackCompat"?{quirks:!0}:{standard:!0}}function d(){return QQWB.bigtable.get("browser","detectviewportsize")()}var e,t,n=navigator.userAgent,r=/(opera)(?:.*version)?[ \/]([\w.]+)/,i=/(webkit)[ \/]([\w.]+)/,s=/(mozilla)(?:.*? rv:([\w.]+))?/,o=/android.+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,u={},a=["Webkit","Moz","O","ms","khtml"],f={cookie:function(){if(navigator.cookieEnabled)return!0;document.cookie="cookietest=1";var e=document.cookie.indexOf("cookietest=")!=-1;return document.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e},flash:function(){var e,t,n,r,i;if(typeof navigator.plugins!="undefined"&&typeof navigator.plugins["Shockwave Flash"]=="object")e=navigator.plugins["Shockwave Flash"].description,t=typeof navigator.mimeTypes!="undefined"&&navigator.mimeTypes["application/x-shockwave-flash"]&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin,e&&t&&(e=e.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),r=[],r[0]=parseInt(e.replace(/^(.*)\..*$/,"$1"),10),r[1]=parseInt(e.replace(/^.*\.(.*)\s.*$/,"$1"),10),r[2]=/[a-zA-Z]/.test(e)?parseInt(e.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if(typeof window.ActiveXObject!="undefined"){try{n=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(s){}n&&(e=n.getVariable("$version"),e?(e=e.split(" ")[1].split(","),r=[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10)]):r=[0,0,0])}if(r)return i={version:r.join(".")},r[0]>=9&&(i.externalinterface=!0),i},userdata:function(){return QQWB.browser.msie},postmessage:function(){return!!window.postMessage&&(QQWB.browser.msie&&parseInt(QQWB.browser.version,10)<8?!1:!0)},canvas:function(){var e=document.createElement("canvas");return!!e.getContext&&!!e.getContext("2d")},webgl:function(){return!!window.WebGLRenderingContext},geolocation:function(){return!!navigator.geolocation},websqldatabase:function(){return!!window.openDatabase},indexeddb:function(){for(var e=0,t=a.length;e"].join("")),r.push([""].join(""));return n.length>0&&this.tmpl.splice(0,0,n.join("")),r.length>0&&this.tmpl.push(r.join("")),this},reset:function(e,t){return!e&&!t?(this.tmpl=[],this.datas={}):(e&&(this.tmpl=[]),t&&(this.datas= {})),this},data:function(r,i){var s,o,u=arguments;u.length>3&&(r=n.fromArguments(u),i=r.splice(-1,1),i=i.length>0?i[0]:!1);if(t.isObject(r))e.extend(this.datas,r,i);else if(n.isArray(r))for(var a=0,f=r.length;a)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split(" ").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');"):r[e]=r[e]||n(document.getElementById(e).innerHTML);return t?i(t):i}return n(e,t)}})}();var JSON;JSON||(JSON={}),function(){"use strict";function f(e){return e<10?"0"+e:e}function quote(e){return escapable.lastIndex=0,escapable.test(e)?'"'+e.replace(escapable,function(e){var t=meta[e];return typeof t=="string"?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var n,r,i,s,o=gap,u,a=t[e];a&&typeof a=="object"&&typeof a.toJSON=="function"&&(a=a.toJSON(e)),typeof rep=="function"&&(a=rep.call(t,e,a));switch(typeof a){case"string":return quote(a);case"number":return isFinite(a)?String(a):"null";case"boolean":case"null":return String(a);case"object":if(!a)return"null";gap+=indent,u=[];if(Object.prototype.toString.apply(a)==="[object Array]"){s=a.length;for(n=0;n0&&(a="; expires="+(new Date((new Date).getTime()+n*1e3)).toUTCString()),document.cookie=s(e)+"="+escape(t)+a+o+u,QQWB},get:function(e,t,n){t=t||QQWB.bigtable.get("cookie","defaultDecoder"),e+="=";var r=(document.cookie||"").split(/\s*;\s*/);for(var i=0,s=r.length;i"].join("")}),f=function(){QQWB.trigger(t.get("innerauth","eventproxysizechange"),u,a)},l=function(){o.parentNode.removeChild(o),QQWB.unbind(t.get("innerauth","eventproxysizechange"),!1),window.removeEventListener?window.removeEventListener("resize",f):window.detachEvent&&window.detachEvent("onresize",f)},QQWB.once(t.get("innerauth","eventproxysubmit"),function(e){e=e.replace(/expires_in=\d+/,"expires_in=").replace(/refresh_token=\w+/,"refresh_token="),QQWB._token.resolveResponse(e,!0),l()}),QQWB.once(t.get("innerauth","eventproxycancel"),function(){QQWB._token.resolveResponse("error=user_refused",!0),l()}),QQWB.bind(t.get("innerauth","eventproxysizechange"),function(e,t){var r=document.documentElement.scrollTop||document.body.scrollTop;u=e,a=t,o.style.width=e+"px",o.style.height=t+"px",o.style.left=Math.max(0,n.viewport.width-e)/2+"px",o.style.top=r+Math.max(0,n.viewport.height-t)/2+"px",o.style.visibility="visible"}),window.addEventListener?window.addEventListener("resize",f):window.attachEvent&&window.attachEvent("onresize",f),document.body.appendChild(o))})}},o=function(){var i=!1,s=null;return{show:function(){var o=t.get("oauthwindow","width"),u=t.get("oauthwindow","height"),a=t.get("oauthwindow","name"),f=t.get("uri","auth"),l="toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=yes,status=no",c=t.get("base","appkey"),h=t.get("base","autoclose"),p=t.get("base","samewindow"),d,v,m,g;if(!i){d=(window.screenX||window.screenLeft)+Math.max(0,(window.outerWidth||document.documentElement.clientWidth)-o)/2,v=(window.screenY||window.screenTop)+Math.max(0,(window.outerHeight||document.documentElement.clientHeight)-u)/2,m=e.queryString.encode({response_type:"token",client_id:c,redirect_uri:t.get("uri","redirect"),scope:"all",wap:n.platform.mobile?2:null}),g=["width="+o,"height="+u,"left="+d,"top="+v].join(",");if(p){window.name=a,window.location.href=f+"?"+m;return}s=window.open(f+"?"+m,a,[g,l].join(",")),i=!0,function(){var e=QQWB,t=e._token,n,o,u,a=e.queryString;if(!s){u="browser blocked popup authorize window",r.error(u),t.resolveResponse("error="+u,!0);return}if(s.closed){t.resolveResponse("error=access_denied",!0),i=!1,s=null;return}try{n=s.location&&s.location.href}catch(f){n=null}if(n&&n!=="about:blank"){o=n.lastIndexOf("#"),n=o===-1?"":n.slice(o+1);if(n){n=a.decode(n),t.resolveResponse(n,!0),i=!1,h&&s.close(),s=null;return}}setTimeout(arguments.callee,0)}()}else s&&s.focus()}}}(),QQWB.extend("auth",{login:function(n,i){var s=t.get("base","inited"),a=t.get("innerauth","enabled"),f=e.auth.loginStatus(),l,c;s||(l=e.name+" not initialized, call T.init() to initialize",r.critical(l));if(l&&i)return i({message:l}),e;if(f&&n)return n(f),e;if(n||i)c=function(s){s.access_token&&n?n(s):s.error&&i?i(s):r.error("wired result of T.login "+QQWB.JSON.stringify(s)),e.unbind(t.get("nativeevent","userloggedin"),c),e.unbind(t.get("nativeevent","userloginfailed"),c),c=null},e.bind(t.get("nativeevent","userloggedin"),c),e.bind(t.get("nativeevent","userloginfailed"),c);return a?u.show():o.show(),e},logout:function(n){var o=e.loginStatus(),u=t.get("innerauth","enabled"),a=t.get("innerauth","rootdomain");return r.info("logging out user"),o?(i.clearAccessToken(),i.clearRefreshToken(),r.info("user "+(o.name||"unknown")+" logged out")):r.warning("oops, user not logged in"),u&&(s.del("uin","/",a),s.del("skey","/",a),s.del("luin","/",a),s.del("lskey","/",a)),n&&n(),e.trigger(t.get("nativeevent","userloggedout")),e},loginStatus:function(e){var t=i.getAccessToken(),n=i.getTokenUser(),r;return t&&(r={access_token:t,openid:n.openid,name:n.name,nick:n.nick}),e&&e(r),r}}),QQWB.login=QQWB.auth.login,QQWB.logout=QQWB.auth.logout,QQWB.loginStatus=QQWB.auth.loginStatus}(),function(){function m(e,t,n,r,i,s){for(var o=0,u=r.length;o0){l=f;break}}f=f[e]}r[o]=l}}}var e=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,t=0,n=Object.prototype.toString,r=!1,i=!0,s=/\\/g,o=/\W/;[0,0].sort(function(){return i=!1,0});var u=function(t,r,i,s){i=i||[],r=r||document;var o=r;if(r.nodeType!==1&&r.nodeType!==9)return[];if(!t||typeof t!="string")return i;var l,c,p,d,v,m,g,b,w=!0,E=u.isXML(r),S=[],x=t;do{e.exec(""),l=e.exec(x);if(l){x=l[3],S.push(l[1]);if(l[2]){d=l[3];break}}}while(l);if(S.length>1&&f.exec(t))if(S.length===2&&a.relative[S[0]])c=y(S[0]+S[1],r);else{c=a.relative[S[0]]?[r]:u(S.shift(),r);while(S.length)t=S.shift(),a.relative[t]&&(t+=S.shift()),c=y(t,c)}else{!s&&S.length>1&&r.nodeType===9&&!E&&a.match.ID.test(S[0])&&!a.match.ID.test(S[S.length-1])&&(v=u.find(S.shift(),r,E),r=v.expr?u.filter(v.expr,v.set)[0]:v.set[0]);if(r){v=s?{expr:S.pop(),set:h(s)}:u.find(S.pop(),S.length!==1||S[0]!=="~"&&S[0]!=="+"||!r.parentNode?r:r.parentNode,E),c=v.expr?u.filter(v.expr,v.set):v.set,S.length>0?p=h(c):w=!1;while(S.length)m=S.pop(),g=m,a.relative[m]?g=S.pop():m="",g==null&&(g=r),a.relative[m](p,g,E)}else p=S=[]}p||(p=c),p||u.error(m||t);if(n.call(p)==="[object Array]")if(!w)i.push.apply(i,p);else if(r&&r.nodeType===1)for(b=0;p[b]!=null;b++)p[b]&&(p[b]===!0||p[b].nodeType===1&&u.contains(r,p[b]))&&i.push(c[b]);else for(b=0;p[b]!=null;b++)p[b]&&p[b].nodeType===1&&i.push(c[b]);else h(p,i);return d&&(u(d,o,i,s),u.uniqueSort(i)),i};u.uniqueSort=function(e){if(d){r=i,e.sort(d);if(r)for(var t=1;t0},u.find=function(e,t,n){var r;if(!e)return[];for(var i=0,o=a.order.length;i":function(e,t){var n,r=typeof t=="string",i=0,s=e.length;if(r&&!o.test(t)){t=t.toLowerCase();for(;i=0)?n||r.push(a):n&&(t[u]=!1));return!1},ID:function(e){return e[1].replace(s,"")},TAG:function(e,t){return e[1].replace(s,"").toLowerCase()},CHILD:function(e){if(e[1]==="nth"){e[2]||u.error(e[0]),e[2]=e[2].replace(/^\+|\s*/g,"");var n=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(e[2]==="even"&&"2n"||e[2]==="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=n[1]+(n[2]||1)-0,e[3]=n[3]-0}else e[2]&&u.error(e[0]);return e[0]=t++,e},ATTR:function(e,t,n,r,i,o){var u=e[1]=e[1].replace(s,"");return!o&&a.attrMap[u]&&(e[1]=a.attrMap[u]),e[4]=(e[4]||e[5]||"").replace(s,""),e[2]==="~="&&(e[4]=" "+e[4]+" "),e},PSEUDO:function(t,n,r,i,s){if(t[1]==="not"){if(!((e.exec(t[3])||"").length>1||/^\w/.test(t[3]))){var o=u.filter(t[3],n,r,!0^s);return r||i.push.apply(i,o),!1}t[3]=u(t[3],null,null,n)}else if(a.match.POS.test(t[0])||a.match.CHILD.test(t[0]))return!0;return t},POS:function(e){return e.unshift(!0),e}},filters:{enabled:function(e){return e.disabled===!1&&e.type!=="hidden"},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!!u(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 e.nodeName.toLowerCase()==="input"&&"text"===n&&(t===n||t===null)},radio:function(e){return e.nodeName.toLowerCase()==="input"&&"radio"===e.type},checkbox:function(e){return e.nodeName.toLowerCase()==="input"&&"checkbox"===e.type},file:function(e){return e.nodeName.toLowerCase()==="input"&&"file"===e.type},password:function(e){return e.nodeName.toLowerCase()==="input"&&"password"===e.type},submit:function(e){var t=e.nodeName.toLowerCase();return(t==="input"||t==="button")&&"submit"===e.type},image:function(e){return e.nodeName.toLowerCase()==="input"&&"image"===e.type},reset:function(e){var t=e.nodeName.toLowerCase();return(t==="input"||t==="button")&&"reset"===e.type},button:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&"button"===e.type||t==="button"},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 t===0},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],s=a.filters[i];if(s)return s(e,n,t,r);if(i==="contains")return(e.textContent||e.innerText||u.getText([e])||"").indexOf(t[3])>=0;if(i==="not"){var o=t[3];for(var f=0,l=o.length;f=0}},ID:function(e,t){return e.nodeType===1&&e.getAttribute("id")===t},TAG:function(e,t){return t==="*"&&e.nodeType===1||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=a.attrHandle[n]?a.attrHandle[n](e):e[n]!=null?e[n]:e.getAttribute(n),i=r+"",s=t[2],o=t[4];return r==null?s==="!=":s==="="?i===o:s==="*="?i.indexOf(o)>=0:s==="~="?(" "+i+" ").indexOf(o)>=0:o?s==="!="?i!==o:s==="^="?i.indexOf(o)===0:s==="$="?i.substr(i.length-o.length)===o:s==="|="?i===o||i.substr(0,o.length+1)===o+"-":!1:i&&r!==!1},POS:function(e,t,n,r){var i=t[2],s=a.setFilters[i];if(s)return s(e,n,t,r)}}},f=a.match.POS,l=function(e,t){return"\\"+(t-0+1)};for(var c in a.match)a.match[c]=new RegExp(a.match[c].source+/(?![^\[]*\])(?![^\(]*\))/.source),a.leftMatch[c]=new RegExp(/(^(?:.|\r|\n)*?)/.source+a.match[c].source.replace(/\\(\d+)/g,l));var h=function(e,t){return e=Array.prototype.slice.call(e,0),t?(t.push.apply(t,e),t):e};try{Array.prototype.slice.call(document.documentElement.childNodes,0)[0].nodeType}catch(p){h=function(e,t){var r=0,i=t||[];if(n.call(e)==="[object Array]")Array.prototype.push.apply(i,e);else if(typeof e.length=="number")for(var s=e.length;r",n.insertBefore(e,n.firstChild),document.getElementById(t)&&(a.find.ID=function(e,t,n){if(typeof t.getElementById!="undefined"&&!n){var r=t.getElementById(e[1]);return r?r.id===e[1]||typeof r.getAttributeNode!="undefined"&&r.getAttributeNode("id").nodeValue===e[1]?[r]:undefined:[]}},a.filter.ID=function(e,t){var n=typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id");return e.nodeType===1&&n&&n.nodeValue===t}),n.removeChild(e),n=e=null}(),function(){var e=document.createElement("div");e.appendChild(document.createComment("")),e.getElementsByTagName("*").length>0&&(a.find.TAG=function(e,t){var n=t.getElementsByTagName(e[1]);if(e[1]==="*"){var r=[];for(var i=0;n[i];i++)n[i].nodeType===1&&r.push(n[i]);n=r}return n}),e.innerHTML="",e.firstChild&&typeof e.firstChild.getAttribute!="undefined"&&e.firstChild.getAttribute("href")!=="#"&&(a.attrHandle.href=function(e){return e.getAttribute("href",2)}),e=null}(),document.querySelectorAll&&function(){var e=u,t=document.createElement("div"),n="__sizzle__";t.innerHTML="

";if(t.querySelectorAll&&t.querySelectorAll(".TEST").length===0)return;u=function(t,r,i,s){r=r||document;if(!s&&!u.isXML(r)){var o=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(t);if(o&&(r.nodeType===1||r.nodeType===9)){if(o[1])return h(r.getElementsByTagName(t),i);if(o[2]&&a.find.CLASS&&r.getElementsByClassName)return h(r.getElementsByClassName(o[2]),i)}if(r.nodeType===9){if(t==="body"&&r.body)return h([r.body],i);if(o&&o[3]){var f=r.getElementById(o[3]);if(!f||!f.parentNode)return h([],i);if(f.id===o[3])return h([f],i)}try{return h(r.querySelectorAll(t),i)}catch(l){}}else if(r.nodeType===1&&r.nodeName.toLowerCase()!=="object"){var c=r,p=r.getAttribute("id"),d=p||n,v=r.parentNode,m=/^\s*[+~]/.test(t);p?d=d.replace(/'/g,"\\$&"):r.setAttribute("id",d),m&&v&&(r=r.parentNode);try{if(!m||v)return h(r.querySelectorAll("[id='"+d+"'] "+t),i)}catch(g){}finally{p||c.removeAttribute("id")}}}return e(t,r,i,s)};for(var r in e)u[r]=e[r];t=null}(),function(){var e=document.documentElement,t=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(t){var n=!t.call(document.createElement("div"),"div"),r=!1;try{t.call(document.documentElement,"[test!='']:sizzle")}catch(i){r=!0}u.matchesSelector=function(e,i){i=i.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!u.isXML(e))try{if(r||!a.match.PSEUDO.test(i)&&!/!=/.test(i)){var s=t.call(e,i);if(s||!n||e.document&&e.document.nodeType!==11)return s}}catch(o){}return u(i,null,null,[e]).length>0}}}(),function(){var e=document.createElement("div");e.innerHTML="
";if(!e.getElementsByClassName||e.getElementsByClassName("e").length===0)return;e.lastChild.className="e";if(e.getElementsByClassName("e").length===1)return;a.order.splice(1,0,"CLASS"),a.find.CLASS=function(e,t,n){if(typeof t.getElementsByClassName!="undefined"&&!n)return t.getElementsByClassName(e[1])},e=null}(),document.documentElement.contains?u.contains=function(e,t){return e!==t&&(e.contains?e.contains(t):!0)}:document.documentElement.compareDocumentPosition?u.contains=function(e,t){return!!(e.compareDocumentPosition(t)&16)}:u.contains=function(){return!1},u.isXML=function(e){var t=(e?e.ownerDocument||e:0).documentElement;return t?t.nodeName!=="HTML":!1};var y=function(e,t){var n,r=[],i="",s=t.nodeType?[t]:t;while(n=a.match.PSEUDO.exec(e))i+=n[0],e=e.replace(a.match.PSEUDO,"");e=a.relative[e]?e+"*":e;for(var o=0,f=s.length;o
'}),l=t.createElement("a",{style:"width:15px;height:15px;top:24px;right:18px;position:absolute;background:url("+o+"/images/close.png) no-repeat;display:block;",href:"#",onclick:function(){var e=c.closeHandler;return e&&typeof e=="function"&&e()===!1?!1:(c.close(),!1)}}),f.appendChild(l)),f.appendChild(this._contentContainer),this._widgetContainer.appendChild(f),u&&u.appendChild(this._widgetContainer)}var e=QQWB,t=e.dom,n=e.browser,r=e.log,i=[],s={borderRadius:10,padding:10,defaultWidth:200,defaultHeight:200,startzIndex:1e3,bottomzIndex:900,margin:{top:60,right:10,bottom:10,left:10}},o="http://mat1.gtimg.com/app/openjs/widget/static/base";u.prototype={setWidth:function(e){this._width=e,this._reflow(),this._repaint()},setContentWidth:function(e){this._hasParent?this.setWidth(e):this.setWidth(e+s.margin.left+s.margin.right)},setHeight:function(e){this._height=e,this._reflow(),this._repaint()},setContentHeight:function(e){this._hasParent?this.setHeight(e):this.setHeight(e+s.margin.top+s.margin.bottom)},setDimension:function(e,t){this._width=e,this._height=t,this._reflow(),this._repaint()},setContentDimension:function(e,t){this._hasParent?this.setDimension(e,t):this.setDimension(e+s.margin.left+s.margin.right,t+s.margin.top+s.margin.bottom)},_reflow:function(){var e=this._widgetContainer,t=this.getContainer(),r=this._width,i=this._height;e.style.width=r+"px",e.style.height=i+"px";if(!this._hasParent){var o=document.documentElement.scrollTop||document.body.scrollTop;t.style.width=r-s.margin.left-s.margin.right+"px",t.style.height=i-s.margin.top-s.margin.bottom+"px",t.style.left=s.padding+s.margin.left+"px",t.style.top=s.padding+s.margin.top+"px",e.style.left=Math.max(0,n.viewport.width-(r+s.padding*2))/2+"px",e.style.top=o+Math.max(0,n.viewport.height-(i+s.padding*2))/2+"px"}else t.style.width="100%",t.style.height="100%"},_repaint:function(){var e=this.getContainer();e.style.visibility="hidden",e.style.visibility="visible",this._hasParent||(this._widgetContainer.style.zIndex=this._wzIndex+"")},show:function(){var t=this._widgetContainer;this._reflow(),t.style.display="block",this._repaint(),e.find("#"+this._wid).length<1&&document.body.appendChild(t),this._containerIsVisible=!0},hide:function(){var e=this._widgetContainer;e.style.display="none",this._containerIsVisible=!1},_remove:function(){var e=this._widgetContainer;e.nodeName==="BODY"?(document.body.removeChild(this.getContainer().parentNode),e.removeAttribute("id")):e.parentNode&&e.parentNode.removeChild(e),this._containerIsVisible=!1},isAlive:function(){return e.find("#"+this._wid).length>0},isVisible:function(){return this.isAlive()&&this._containerIsVisible},getContainer:function(){return this._contentContainer},getDimension:function(){return this._hasParent?{width:this._width,height:this._height,outerWidth:this._width,outerHeight:this._height}:{width:this._width,height:this._height,outerWidth:this._width+s.padding*2,outerHeight:this._height+s.padding*2}},getContentDimension:function(){return this._hasParent?{width:this._width,height:this._height}:{width:this._width-s.margin.left-s.margin.right,height:this._height-s.margin.top-s.margin.bottom}},close:function(){this._remove()},getWidgetWrap:function(){return this._wid},onCloseButtonClicked:function(e){this.closeHandler=e},_setzIndex:function(e){this._lastwzIndex=this._wzIndex,this._wzIndex=e,this.isAlive()&&this._repaint()},setTopMost:function(){this._setzIndex(++s.startzIndex)},setBottomMost:function(){this._setzIndex(s.bottomzIndex)},restorezIndex:function(){this._setzIndex(this._lastwzIndex)}},e.provide("widget",function(t,n,s){function g(i,f,l,m){function w(){a.main.call(g,b),g.isVisible()||g.show(),v.resolve()}var g,y,b;i?g=new u(f,l,i,"background:white;"):(f=f||320,l=l||130,g=new u(f,l,i)),g.getParams=function(){return n||{}},g.getContainer().style.background="url("+o+"/images/loading.gif) no-repeat 50% 50%",g.ready=function(){g.getContainer().style.background=""},g.sendData=function(){c&&typeof c=="function"&&c.apply(window,arguments)},g.sendSuccessData=function(){h&&typeof h=="function"&&h.apply(window,arguments)},g.sendErrorData=function(){p&&typeof p=="function"&&p.apply(window,arguments)},g.getElemtId=function(){return m||""},g.show(),a.css||a.jquery?(a.jquery&&(y=e.deferred.deferred(),e.bind("jQueryLoaded",function(e){b=e,y.resolve()})),e.task(a.css?e.loadStyle({url:a.css}):1,a.jquery?e.script({url:o+"/js/jquery.js"}):1,y?y:1).success(w).error(function(e,n){d="\u63d2\u4ef6["+t+"]"+(s?"\u7248\u672c\u4e3a["+s+"]":"")+"]\u5b58\u5728\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u63d2\u4ef6\u4f5c\u8005\u68c0\u67e5manifest\u4e2dcss,jquery\u7684\u8bbe\u7f6e\uff0c\u8be6\u7ec6\u9519\u8bef\u4fe1\u606f\uff1a"+n,r.error(d),v.reject(d),p&&typeof p=="function"&&p.apply(window,[d])})):w()}function y(t,n){a.loginRequired?e.ready(function(){var r=e.loginStatus(),i="openjs_widget_login_"+e.uid(5),s="openjs_widget_logout_"+e.uid(5),c,h;if(!r){c=new u(t?220:420,t?100:210,t),h=c.getContainer(),h.innerHTML='
'+a.name+' \u9700\u8981\u60a8\u7684\u817e\u8baf\u5fae\u535a\u6388\u6743
\u6388 \u6743
\u53d6 \u6d88
',c.onCloseButtonClicked(function(){return l&&typeof l=="function"&&!1===l()?!1:!0}),c.show(),e.find("#"+i)[0].onclick=function(){var r=e.bigtable.get("innerauth","enabled");return r&&c.setBottomMost(),e.login(function(){c._remove(),c.restorezIndex(),g(t,a.width,a.height,n)}),!1},e.find("#"+s)[0].onclick=function(){return f&&typeof f=="function"&&!1===f()?!1:(c._remove(),!1)};return}g(t,a.width,a.height,n)}):e.documentReady(function(){g(t,a.width,a.height,n)})}var a;e.Array.each(i,function(e,n){if(n.name===t)if(!s||s&&n.version===s)return a=n,!1});var f,l,c,h,p,d,v=e.deferred.deferred(),m=v.promise({onCancel:function(e){return f=e,m},onClose:function(e){return l=e,m},onData:function(e){return c=e,m},onSuccess:function(e){return h=e,m},onError:function(e){return p=e,m},show:function(e){var t;return e?(!e||!e.nodeType)&&typeof e=="string"&&(t=document.getElementById(e),t&&t.nodeType&&y(t,e)):y(),m}});return a?m:(d="\u627e\u4e0d\u5230\u540d\u4e3a["+t+"]"+(s?"\u7248\u672c\u4e3a["+s+"]":"")+"\u7684\u63d2\u4ef6\uff0c\u63d2\u4ef6\u672a\u6ce8\u518c",r.error(d),v.reject(d),p&&typeof p=="function"&&p.apply(window,[d]),m)}),e.extend("widget",{register:function(e){var t="\u5b9a\u4e49\u63d2\u4ef6\u51fa\u9519,";if(!e.hasOwnProperty("name"))throw t+="\u5fc5\u987b\u5305\u542bname\u5c5e\u6027",new Error(t);if(!e.hasOwnProperty("version"))throw t+="\u5fc5\u987b\u5305\u542bversion\u5c5e\u6027",new Error(t);e.hasOwnProperty("loginRequired")||(e.loginRequired=!1),i.push(e)},all:function(){return e.Array.forEach(i,function(e){return[e.name,e.version].join(",")})}})}(),function(){var e=QQWB,t=e.bigtable,n=e.dom,r=e.log,i=e.queryString,s=e.String,o=e.Array,u=[],a,f;f={dimension:function(t,n){return typeof t=="object"?e.extend(this.componentConfig,t,!0):e.extend(this.componentConfig,{width:t,height:n},!0),this},width:function(t){return e.extend(this.componentConfig,{width:t},!0),this},height:function(t){return e.extend(this.componentConfig,{height:t},!0),this},style:function(t){return e.extend(this.componentConfig,{style:t},!0),this},config:function(t){return e.extend(this.componentConfig,t,!0),this},renderInto:function(i){function l(e){var t,i,f,l;f=o.componentName,i=a(f);if(!i.hasOwnProperty("create"))throw u="\u521b\u5efa"+f+"\u7ec4\u4ef6\u5931\u8d25\uff0c\u672a\u5b9a\u4e49create\u65b9\u6cd5",r.error(u),new Error(u);l=i.create(o.componentConfig),i.rootStyle&&n.setProperties(e,{style:i.rootStyle});if(typeof l=="undefined"||l.nodeType!=1&&l.nodeType!=11){if(!s.isString(l))throw u="\u521b\u5efa"+o.componentName+"\u7ec4\u4ef6\u5931\u8d25\uff0c\u65e0\u6cd5\u5904\u7406\u7684create\u65b9\u6cd5\u8fd4\u56de\u7ed3\u679c",r.error(u),new Error(u);e.innerHTML=l}else e.appendChild(l)}var o=this,u,f=i;if(i&&i.nodeType==1)t.get("document","ready")?l(i):e.dom.ready(function(){l(i)});else{if(!s.isString(i))throw u="\u52a0\u8f7d"+o.componentName+"\u7ec4\u4ef6\u5931\u8d25\uff0c\u65e0\u6548\u7684\u8282\u70b9"+i,r.error(u),new Error(u);e.dom.ready(function(){i=e.dom.find(f);if(!(i.length>0))throw u="\u52a0\u8f7d"+o.componentName+"\u7ec4\u4ef6\u5931\u8d25\uff0c\u672a\u627e\u5230\u8282\u70b9"+f,r.error(u),new Error(u);i=i[0],l(i)})}},render:function(){var e,t,i=this,s=a(i.componentName);n.ready(function(){var e=document.getElementById(s.idname);if(!e||e.nodeType!=1)throw t=["\u672a\u627e\u5230",s.componentName,"\u8282\u70b9",s.idname].join(""),r.error(t),new Error(t);i.renderInto(e)})}},a=function(t){var n;return o.each(u,function(e,r){if(r.name==t)return n=r,!1}),n},e.provide("component",function(e,t){var n=QQWB,r=n.String,i=n.Object,s=n.log,o,u,l;e=r.trim(e),o=a(e);if(!o)throw u="\u65e0\u6cd5\u4f7f\u7528\u7ec4\u4ef6"+e+"\uff0c\u8be5\u7ec4\u4ef6\u4e0d\u5b58\u5728",s.error(u),new Error(u);return l=n.Object.create(f),l.componentName=e,t?l.componentConfig=t:l.componentConfig={},n.extend(l,o.methods),l}),e.extend("component",{defineComponent:function(e){var t="\u5b9a\u4e49\u7ec4\u4ef6\u9519\u8bef\uff0c",n,i;if(!e.hasOwnProperty("name"))throw i=t+"\u5fc5\u987b\u4e3a\u7ec4\u4ef6\u6307\u5b9a\u540d\u79f0",r.error(i),new Error(i);if(!e.hasOwnProperty("create"))throw i=t+"\u5fc5\u987b\u5b9e\u73b0\u521b\u5efa\u7ec4\u4ef6\u903b\u8f91create\u65b9\u6cd5",r.error(i),new Error(i);if(!e.hasOwnProperty("idname"))throw i=t+"\u7f3a\u5c11idname",r.error(i),new Error(i);if(!e.hasOwnProperty("version"))throw i=t+"\u7f3a\u5c11version",r.error(i),new Error(i);n=a(e.name);if(n&&!n.allowRedefination)throw i=t+"\u7ec4\u4ef6"+n.name+"\u5df2\u5b58\u5728\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u88ab\u91cd\u65b0\u5b9a\u4e49",r.error(i),new Error(i);u.push(e)}}),e.component.defineComponent({name:"\u5fae\u8bc4\u8bba",version:"1.0",allowRedefination:!1,idname:"qqwb_comment__",attributes:"width height style appkey title colors",create:function(t){var s,o,u="http://comment.v.t.qq.com/index.html",a=location.href,f={};if(!t.appkey)throw s="\u521b\u5efa"+this.name+"\u7ec4\u4ef6\u5931\u8d25\uff0c\u7f3a\u5c11Appkey",r.error(s),new Error(s);return location.hash&&(a=a.replace(location.hash,"")),e.extend(f,{src:[u,"#",i.encode({appkey:t.appkey,url:a,title:t.title,colorset:t.colors})].join(""),width:t.width||"100%",height:t.height||"500",frameborder:0,scrolling:"no",allowtransparency:"true"}),o=n.createElement("iframe",f),o},methods:{appkey:function(t){return e.extend(this.componentConfig,{appkey:t},!0),this},colors:function(t){return s.isString(t)&&(t=o.fromArguments(arguments)),o.isArray(t)?e.extend(this.componentConfig,{colors:t},!0):r.error("component set colors error, expect an array"),this}}}),e.component.defineComponent({name:"\u4e00\u952e\u8f6c\u64ad",version:"1.0",allowRedefination:!1,idname:"qqwb_share__",attributes:"icon counter counter_pos cto_icon cto_ui appkey content richcontent pic",rootStyle:"text-align:left;",create:function(t){function D(e){return e=Math.max(e,0),e>=0&&e<1e4?e:e>=1e4&&e<1e8?Math.floor(e/1e3)/10+"\u4e07":e>=1e8?"\u4e0a\u4ebf\u6b21":0}function P(e){var t=D(e);e>0&&(A.title="\u5df2\u5206\u4eab"+t+"\u6b21");switch(f){case 0:switch(c){case"right":dshare_count_fix.style.margin="4px 0 -30px 39px",M.style.backgroundPosition="-2px -31px",M.style.left="-4px",M.style.top="9px",M.style.height="8px",M.style.width="5px",O.innerHTML=t;break;case"top":dshare_count_fix.style.width="54px",dshare_count_fix.style.textAlign="center",dshare_count_fix.style.position="relative",dshare_count_fix.style.textAlign="center",A.style.position="static",A.style.margin="0 0 6px 0",M.style.backgroundPosition="-12px -30px",M.style.left="24px",M.style.top="23px",M.style.height="5px",M.style.width="6px",n.setProperties(L,{style:"margin-left:11px;"}),O.innerHTML=t}break;case 1:switch(c){case"right":dshare_count_fix.style.margin="0 0 -25px 68px",M.style.backgroundPosition="-2px -30px",M.style.left="-4px",M.style.top="9px",M.style.height="8px",M.style.width="5px",O.innerHTML=t;break;case"top":dshare_count_fix.style.width="62px",dshare_count_fix.style.textAlign="center",dshare_count_fix.style.position="relative",dshare_count_fix.style.textAlign="center",A.style.position="static",A.style.margin="0 0 6px 0",M.style.backgroundPosition="-12px -30px",M.style.left="28px",M.style.top="23px",M.style.height="5px",M.style.width="6px",O.innerHTML=t}}}function H(){e.jsonp({url:"http://open.t.qq.com/api/other/get_count",data:{url:o,appkey:t.appkey},dataType:"text"}).success(function(e){e.ret===0&&e.count>0?(m=e.count,m>0&&(A.title="\u5df2\u5206\u4eab"+m+"\u6b21"),P(m)):r.warn("\u83b7\u53d6\u8f6c\u64ad\u6570\u5b57\u5931\u8d25, ret="+e.ret)})}var o=location.href,u="http://share.v.t.qq.com/index.php?c=share&a=index",a="toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=yes,status=no",f=0,l=!1,c="right",h=t.pic||"",p=t.content||"",d=t.richcontent||"",v=t.cto_ui||"",m=0,g;if(!t.appkey)throw msg="\u521b\u5efa"+this.name+"\u7ec4\u4ef6\u5931\u8d25\uff0c\u7f3a\u5c11Appkey",r.error(msg),new Error(msg);location.hash&&(o=o.replace(location.hash,"")),t.icon&&(f=parseInt(t.icon,10)),t.counter&&(l=!!parseInt(t.counter,10)),d=s.splitby("|",d),t.counter_pos&&(g=s.trim(t.counter_pos),g!="top"&&g!="right"?r.warn("\u5df2\u5ffd\u7565\u7684\u8ba1\u6570\u4f4d\u7f6e\u6307\u5b9a\u9519\u8bef\uff0c\u65e0\u6cd5\u5728\u4f4d\u7f6e"+t.counter_pos+"\u663e\u793a\u8ba1\u6570"):c=g);var y=document,b=y.createElement("a"),w=y.createElement("img"),E=y.createElement("div"),S=y.createElement("span"),x=y.createElement("p"),T=y.createElement("em"),N=y.createDocumentFragment(),C=w.cloneNode(!1),k=b.cloneNode(!1),L=E.cloneNode(!1),A=S.cloneNode(!1),O=S.cloneNode(!1),M=T.cloneNode(!1);return dshare_count_fix=E.cloneNode(!1),C.src=t.cto_icon||"http://mat1.gtimg.com/app/newvt/share/images/share_icon_"+f+".png",C.style.border="0",k.href="javascript:;",k.onclick=function(){var n={url:o,appkey:t.appkey};p&&e.extend(n,{title:p}),h&&e.extend(n,{pic:h}),v&&e.extend(n,{bm:"1"+v});if(d.length>0)for(var r=0,s=d.length;r2)&&r.warn("component set icon, default icon index must be 0,1,2, you gave "+t),e.extend(this.componentConfig,{icon:t},!0)):r.error("component set icon error, expect number or string, you gave "+typeof t),this},showCounter:function(t){var n=this.componentConfig.icon;switch(t){case"left":case"top":break;default:return r.warning("component showcounter, position must be either 'left' or 'top', you gave '"+t+"'"),this}return typeof n!="number"||n!==0&&n!==1?r.warning("component showcounter, icon index must be either 0 or 1, you gave "+n):e.extend(this.componentConfig,{counter:1,counter_pos:t},!0),this}}}),r.info("scanning components ..."),n.ready(function(){var t=0;o.forEach(u,function(n){var i=n.idname,s=(n.attributes||"").split(/\s+/),u,a,f={},l=!1,c=document.getElementById(i);u=o.forEach(s,function(e,t){return"data-"+e});if(c){a=e.dom.getProperties(c,u),e.Object.forEach(a,function(e,t){e&&(t=t.replace("data-",""),f[t]=e,!l&&e!==null&&(l=!0))}),r.debug(["read configuration ",QQWB.JSON.stringify(f)].join(""));if(l){r.debug(["try render component [",n.name," ",n.version,"]"].join(""));try{e.component(n.name).config(f).render()}catch(h){r.error(["render component [",n.name,n.version,"] error exception: ",h].join(""))}t++}else r.debug(["found dom element for [",n.name," ",n.version,"], but auto render will not start"].join(""))}}),r.info("found "+t+" components")})}(),QQWB.browser.feature.localstorage?QQWB.extend("localStorage",{set:function(e,t,n){var r=QQWB,i,s;if(!e||!t)return r.log.error(["[localstorage] save error, key or value is empty [",e,"] value [",t,"]"].join("")),!1;e="k"+e,i=r.time.secondsNow()+(n||7)*24*3600,s={value:t,expire:i};try{localStorage[e]=r.JSON.stringify(s)}catch(o){r.log.error("[localstorage] save error key ["+e+"] value ["+t+"]"+o);return}return localStorage[e]},get:function(e,t){var n=QQWB,r;if(!e){n.log.error("[localstorage] get error, key is empty");return}return e="k"+e,r=localStorage[e],r&&(r=n.JSON.parse(r))&&r.value&&n.time.secondsNow()0&&e.Array.forEach(n,function(t){e.localStorage.set.apply(e.localStorage,t)}),r&&r.length>0&&e.Array.forEach(r,function(t){e.localStorage.del.apply(e.localStorage,t)})},0)}),e.extend("localStorage",{set:function(e,r,i){var s=QQWB,o,u,a;if(!e||!r)return s.log.error(["[localstorage] save error, key or value is empty [",e,"] value [",r,"]"].join("")),!1;if(!t)return o=s.bigtable.get("localstorage","writecache",[]),o.push(s.Array.fromArguments(arguments)),s.log.warning("userdata is not ready, save operation to write cache, key "+e),-1;e="k"+e,u=s.time.secondsNow()+(i||7)*24*3600,a={value:r,expire:u};try{t.load(n),t.setAttribute(e,JSON.stringify(a)),t.save(n)}catch(f){s.log.error("[localstorage] save error key ["+e+"] value ["+r+"]"+f);return}return t.getAttribute(e)},get:function(e,r){var i=QQWB,s;if(!e){i.log.error("[localstorage] get error, key is empty");return}return e="k"+e,t?(t.load(n),s=t.getAttribute(e),s&&(s=JSON.parse(s))&&s.value&&i.time.secondsNow()','','',""].join(""):i.innerHTML=['','',""].join("")},0)})},f=function(){u(!0),t.put("solution","name","html5")},l=function(){u(!1),t.put("solution","name","innerauth")},c=function(){n.info("flash player version "+i.feature.flash.version),i.feature.flash.externalinterface||n.warn("flash player too old, openjs may not work properly"),a(),t.put("solution","name","as3")},h=function(e){var n=t.get("solution","deferred");n.reject(-6,e)};if(t.get("innerauth","enabled")){l();return}if(QQWB.envs.crossdomainmethod=="auto")n.debug("detect crossdomain method"),i.feature.postmessage?f():i.feature.flash?c():(n.critical("no solution available, switch to modern browser or install latest flash player, then refresh this page"),h("no solution available, need a modern browser or install lastest flash player"));else{n.debug("load crossdomain method "+QQWB.envs.crossdomainmethod),d=r.trim(QQWB.envs.crossdomainmethod.toLowerCase());switch(d){case"html5":case"postmessage":i.feature.postmessage?f():(n.critical("can not setup crossdomain method "+QQWB.envs.crossdomainmethod+", browser not support"),h("postmessage solution can not be setted up"));break;case"flash":case"as3":i.feature.flash?c():(n.critical("can not setup crossdomain method "+QQWB.envs.crossdomainmethod+", browser not support"),h("flash as3 solution can not be setted up"))}}}),QQWB.envs.autoboot&&(QQWB.bigtable.put("boot","booting",!0),QQWB.bigtable.get("boot","solution")()),QQWB.extend("",{tokenReady:function(e){var t=QQWB,n=t.bigtable,r=n.get("boot","tokenready");return r&&r.isOpen()?e&&e():t.bind(n.get("nativeevent","tokenready"),e),t},everythingReady:function(e){var t=QQWB,n=t.bigtable,r=n.get("boot","everythingready");return r&&r.isOpen()?e&&e():t.bind(n.get("nativeevent","everythingready"),e),t}}),QQWB.ready=QQWB.everythingReady,function(){var e=QQWB.bigtable.get("openjs","asynccallbackfunctionname");typeof window[e]=="function"&&window[e](QQWB)}();/* |xGv00|940ddebbe52b895e243bbf3474e541b6 */