1 2(function(){ 3 var passport=passport||window.passport||{},baidu=passport.tangramInst||baidu||window.baidu;!function(t){function p(t){var p=a[t];if(!p)return"";if("string"==typeof p)return p;try{var s=location.hostname;for(var o in p)if(s===o||s.endsWith("."+o))return p[o]}catch(r){}return""}var s,o=document.location.protocol.toLowerCase();s=passport&&passport.ieVersion&&passport.ieVersion()<=8?"https:"===o?"https://passport.baidu.com":"http://passport.baidu.com":"https:"===o?"https://ppui-static-pc.cdn.bcebos.com":"http://ppui-static-pc.cdn.bcebos.com",t.apiDomain={staticDomain:s};var a={yiyan_intl:"https://passport.ideachat.com",mcpworld:"https://passport.mcpworld.com",ares_efficiency:"https://passport.mcpworld.com",callcrab:"https://passport.callcrab.com",genflowtwo:{"kukukuku.cn":"https://passport.kukukuku.cn","kukuai.cn":"https://passport.kukuai.cn","genflow.cn":"https://passport.genflow.cn"}};t.requestDomain||(t.requestDomain=p(passport.tpl)||"https://passport.baidu.com")}(passport);; 4 var phoenix=baidu&&baidu.phoenix;var T,baidu=T=function(a,b){return baidu.dom?baidu.dom(a,b):null};baidu.phoenix=phoenix;baidu.version="2.0.1.2";baidu.guid="$BAIDU$";baidu.key="tangram_guid";var _=window[baidu.guid]=window[baidu.guid]||{};(_.versions||(_.versions=[])).push(baidu.version);baidu.check=baidu.check||function(){};baidu.merge=function(e,c){var d=e.length,b=0;if(typeof c.length==="number"){for(var a=c.length;b<a;b++){e[d++]=c[b]}}else{while(c[b]!==undefined){e[d++]=c[b++]}}e.length=d;return e};baidu.forEach=function(a,e,d){var c,f,b;if(typeof e=="function"&&a){f=typeof a.length=="number"?a.length:a.byteLength;if(typeof f=="number"){if(Object.prototype.toString.call(a)==="[object Function]"){return a}for(c=0;c<f;c++){b=a[c]||(a.charAt&&a.charAt(c));e.call(d||null,b,c,a)}}else{if(typeof a=="number"){for(c=0;c<a;c++){e.call(d||null,c,c,c)}}else{if(typeof a=="object"){for(c in a){if(a.hasOwnProperty(c)){e.call(d||null,a[c],c,a)}}}}}}return a};baidu.lang=baidu.lang||{};baidu.type=(function(){var b={},a=[,"HTMLElement","Attribute","Text",,,,,"Comment","Document",,"DocumentFragment",],e="Array Boolean Date Error Function Number RegExp String",c={"object":1,"function":"1"},d=b.toString;baidu.forEach(e.split(" "),function(f){b["[object "+f+"]"]=f.toLowerCase();baidu["is"+f]=function(g){return baidu.type(g)==f.toLowerCase()}});return function(g){var f=typeof g;return !c[f]?f:g==null?"null":g._type_||b[d.call(g)]||a[g.nodeType]||(g==g.window?"Window":"")||"object"}})();baidu.isDate=function(a){return baidu.type(a)=="date"&&a.toString()!="Invalid Date"&&!isNaN(a)};baidu.isElement=function(a){return baidu.type(a)=="HTMLElement"};baidu.isEnumerable=function(a){return a!=null&&(typeof a=="object"||~Object.prototype.toString.call(a).indexOf("NodeList"))&&(typeof a.length=="number"||typeof a.byteLength=="number"||typeof a[0]!="undefined")};baidu.isNumber=function(a){return baidu.type(a)=="number"&&isFinite(a)};baidu.isPlainObject=function(c){var a,b=Object.prototype.hasOwnProperty;if(baidu.type(c)!="object"){return false}if(c.constructor&&!b.call(c,"constructor")&&!b.call(c.constructor.prototype,"isPrototypeOf")){return false}for(a in c){}return a===undefined||b.call(c,a)};baidu.isObject=function(a){return typeof a==="function"||(typeof a==="object"&&a!=null)};baidu.extend=function(c,f){var d,m,k,a,b,g=1,e=arguments.length,l=c||{},h,j;baidu.isBoolean(c)&&(g=2)&&(l=f||{});!baidu.isObject(l)&&(l={});for(;g<e;g++){m=arguments[g];if(baidu.isObject(m)){for(k in m){a=l[k];b=m[k];if(a===b){continue}if(baidu.isBoolean(c)&&c&&b&&(baidu.isPlainObject(b)||(h=baidu.isArray(b)))){if(h){h=false;j=a&&baidu.isArray(a)?a:[]}else{j=a&&baidu.isPlainObject(a)?a:{}}l[k]=baidu.extend(c,j,b)}else{if(b!==undefined){l[k]=b}}}}}return l};baidu.createChain=function(f,d,c){var b=f=="dom"?"$DOM":"$"+f.charAt(0).toUpperCase()+f.substr(1);var e=Array.prototype.slice;var a=baidu[f]=baidu[f]||d||function(g){return baidu.extend(g,baidu[f].fn)};a.extend=function(g){var h;for(h in g){if(h!="splice"){a[h]=function(){var k=arguments[0];f=="dom"&&baidu.type(k)=="string"&&(k="#"+k);var j=a(k);
4var i=j[h].apply(j,e.call(arguments,1));return baidu.type(i)=="$DOM"?i.get(0):i}}}return baidu.extend(baidu[f].fn,g)};baidu[f][b]=baidu[f][b]||c||function(){};a.fn=baidu[f][b].prototype;return a};baidu.overwrite=function(a,d,c){for(var b=d.length-1;b>-1;b--){a.prototype[d[b]]=c(d[b])}return a};baidu.createChain("array",function(d){var c=baidu.array.$Array.prototype,b=Array.prototype,a;baidu.type(d)!="array"&&(d=[]);for(a in c){b[a]||(d[a]=c[a])}return d});baidu.overwrite(baidu.array.$Array,"concat slice".split(" "),function(a){return function(){return baidu.array(Array.prototype[a].apply(this,arguments))}});baidu.array.extend({unique:function(e){var b=this.length,a=this.slice(0),d,c;if("function"!=typeof e){e=function(g,f){return g===f}}while(--b>0){c=a[b];d=b;while(d--){if(e(c,a[d])){a.splice(b,1);break}}}b=this.length=a.length;for(d=0;d<b;d++){this[d]=a[d]}return this}});baidu.query=baidu.query||function(){var a=/^(\w*)#([\w\-\$]+)$/,c=/^#([\w\-\$]+)$/,d=/^\w+$/,b=/^(\w*)\.([\w\-\$]+)$/,e=/^(\.[\w\-\$]+)+$/,g=/\s*,\s*/,i=/\s+/g,j=Array.prototype.slice;function f(n,l){var v,u,k,o,m,s,p,r,q=[];if(a.test(n)){k=RegExp.$2;m=RegExp.$1||"*";baidu.forEach(l.getElementsByTagName(m),function(t){t.id==k&&q.push(t)})}else{if(d.test(n)||n=="*"){baidu.merge(q,l.getElementsByTagName(n))}else{if(b.test(n)){p=[];m=RegExp.$1;s=RegExp.$2;v=" "+s+" ";if(l.getElementsByClassName){p=l.getElementsByClassName(s)}else{baidu.forEach(l.getElementsByTagName("*"),function(t){t.className&&~(" "+t.className+" ").indexOf(v)&&(p.push(t))})}if(m&&(m=m.toUpperCase())){baidu.forEach(p,function(t){t.tagName.toUpperCase()===m&&q.push(t)})}else{baidu.merge(q,p)}}else{if(e.test(n)){r=n.substr(1).split(".");baidu.forEach(l.getElementsByTagName("*"),function(t){if(t.className){v=" "+t.className+" ";u=true;baidu.forEach(r,function(w){~v.indexOf(" "+w+" ")||(u=false)});u&&q.push(t)}})}}}}return q}function h(k,m){var l,n=k,p="__tangram__",o=[];if(!m&&c.test(n)&&(l=document.getElementById(n.substr(1)))){return[l]}m=m||document;if(m.querySelectorAll){if(m.nodeType==1&&!m.id){m.id=p;l=m.querySelectorAll("#"+p+" "+n);m.id=""}else{l=m.querySelectorAll(n)}return l}else{if(!~n.indexOf(" ")){return f(n,m)}baidu.forEach(f(n.substr(0,n.indexOf(" ")),m),function(q){baidu.merge(o,h(n.substr(n.indexOf(" ")+1),q))})}return o}return function(l,n,m){if(!l||typeof l!="string"){return m||[]}var k=[];l=l.replace(i," ");m&&baidu.merge(k,m)&&(m.length=0);baidu.forEach(l.indexOf(",")>0?l.split(g):[l],function(o){baidu.merge(k,h(o,n))});return baidu.merge(m||[],baidu.array(k).unique())}}();baidu.createChain("dom",function(a,b){var d,c=new baidu.dom.$DOM(b);if(!a){return c}if(a._type_=="$DOM"){return a}else{if(a.nodeType||a==a.window){c[0]=a;c.length=1;return c}else{if(a.length&&c.toString.call(a)!="[object String]"){return baidu.merge(c,a)}else{if(typeof a=="string"){if(a.charAt(0)=="<"&&a.charAt(a.length-1)==">"&&a.length>2){if(baidu.dom.createElements){baidu.merge(c,baidu.dom.createElements(a))}}else{baidu.query(a,b,c)}}else{if(typeof a=="function"){return c.ready?c.ready(a):c}}}}}return c},function(a){this.length=0;this._type_="$DOM";this.context=a||document}).extend({size:function(){return this.length},splice:function(){},get:function(a){if(typeof a=="number"){return a<0?this[this.length+a]:this[a]}return Array.prototype.slice.call(this,0)},toArray:function(){return this.get()}});baidu.dom.extend({each:function(c){baidu.check("function","baidu.dom.each");var b,a,d=this.length;for(b=0;b<d;b++){a=c.call(this[b],b,this[b],this);if(a===false||a=="break"){break}}return this}});baidu.dom.extend({html:function(j){var d=baidu.dom,k=baidu._util_,g=this,h=false,m;if(this.size()<=0){switch(typeof j){case"undefined":return undefined;break;default:return g;break}}var c="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|"+"header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",i=/<(?:script|style|link)/i,b=new RegExp("<(?:"+c+")[\\s/>]","i"),f=/^\s+/,a=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,e=/<([\w:]+)/,l={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};l.optgroup=l.option;l.tbody=l.tfoot=l.colgroup=l.caption=l.thead;l.th=l.td;if(!baidu.support.htmlSerialize){l._default=[1,"X<div>","</div>"]}baidu.forEach(g,function(o,n){if(m){return}var q=d(o);switch(typeof j){case"undefined":m=(o.nodeType===1?o.innerHTML:undefined);return m;break;case"number":j=String(j);case"string":h=true;if(!i.test(j)&&(baidu.support.htmlSerialize||!b.test(j))&&(baidu.support.leadingWhitespace||!f.test(j))&&!l[(e.exec(j)||["",""])[1].toLowerCase()]){j=j.replace(a,"<$1></$2>");try{if(o.nodeType===1){q.empty();o.innerHTML=j}o=0}catch(p){}}if(o){g.empty().append(j)}break;case"function":h=true;q.html(j.call(o,n,q.html()));break}});return h?g:m}});baidu.support=baidu.support||function(){var e=document.createElement("div"),d,b,c;e.innerHTML='<a href="/a" style="top:1px; float: left; opacity: .55">Tangram</a><input type="checkbox">';b=e.getElementsByTagName("A")[0];c=e.getElementsByTagName("input")[0];c.checked=true;d={opacity:b.style.opacity==="0.55",cssFloat:!!b.style.cssFloat,noCloneChecked:c.cloneNode(true).checked,noCloneEvent:true};if(!e.addEventListener&&e.attachEvent&&e.fireEvent){e.attachEvent("onclick",function(){d.noCloneEvent=false});e.cloneNode(true).fireEvent("onclick")}baidu(function(){var h=document.getElementsByTagName("body")[0],f=document.createElement("div"),a=document.createElement("div"),n="padding: 0; margin: 0; border: ",m="left: 0; top: 0; width: 0px; height: 0px; ",j=m+n+"0; visibility: hidden;",o=m+n+"5px solid #000; position: absolute;",q,r,l,g,p;f.style.cssText="position: static;"+j;h.insertBefore(f,h.firstChild);f.appendChild(a);a.style.cssText="position: absolute;"+j;a.innerHTML='<div style="'+o+'display: bloack;"><div style="'+n+'0; display: block; overflow: hidden;"></div></div><table style="'+o+'" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';q=a.firstChild;r=q.firstChild;p=q.nextSibling;d.hasBorderWidth=r.offsetTop>=5;d.hasTableCellBorderWidth=p.rows[0].cells[0].offsetTop>=5;r.style.position="fixed";r.style.top="20px";d.fixedPosition=r.offsetTop===20||r.offsetTop===15;d.deleteExpando=true;try{delete a.test}catch(i){d.deleteExpando=false}l=document.createElement("select");g=l.appendChild(document.createElement("option"));l.disabled=true;d.optDisabled=!g.disabled;d.optSelected=g.selected;a.setAttribute("className","t");a.innerHTML=" <link/><table></table><a href='/a'>a</a>
4<input type='checkbox'/>";var k=a.getElementsByTagName("input")[0];d.checkOn=(k.value==="on");d.htmlSerialize=!!a.getElementsByTagName("link").length;d.leadingWhitespace=(a.firstChild.nodeType===3);d.getSetAttribute=a.className!=="t";d.pixelMargin=true;a.innerHTML="";a.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;";if(window.getComputedStyle){d.pixelMargin=(window.getComputedStyle(a,null)||{}).marginTop!=="1%"}var k=document.createElement("input");k.value="t";k.setAttribute("type","radio");d.radioValue=k.value==="t";d.hrefNormalized=(b.getAttribute("href")==="/a");d.style=/top/.test(b.getAttribute("style"));d.enctype=!!document.createElement("form").enctype;h.removeChild(f);f=a=q=r=p=null});return d}();baidu.global=baidu.global||(function(){var b=baidu._global_=window[baidu.guid],a=b._=b._||{};return function(d,e,c){if(typeof e!="undefined"){c||(e=typeof a[d]=="undefined"?e:a[d]);a[d]=e}else{if(d&&typeof a[d]=="undefined"){a[d]={}}}return a[d]}})();baidu._util_=baidu._util_||{};baidu._util_.propFixer={tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className","classname":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable",rboolean:/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i};!document.createElement("form").enctype&&(baidu._util_.propFixer.enctype="encoding");baidu._util_.support=baidu._util_.support||function(){var g=document.createElement("div"),f,c,d,b,e;g.setAttribute("className","t");g.innerHTML=' <link/><table></table><a href="/a">a</a><input type="checkbox"/>';c=g.getElementsByTagName("A")[0];c.style.cssText="top:1px;float:left;opacity:.5";b=document.createElement("select");e=b.appendChild(document.createElement("option"));d=g.getElementsByTagName("input")[0];d.checked=true;f={dom:{div:g,a:c,select:b,opt:e,input:d}};return f}();baidu._util_.support.getSetAttribute=baidu._util_.support.dom.div.className!=="t";baidu._util_.removeAttr=function(){var b=baidu._util_.propFixer,a=/\s+/,c=baidu._util_.support.getSetAttribute;return function(j,g){if(!g||j.nodeType!==1){return}var k=g.split(a),h,d;for(var f=0,e;e=k[f];f++){h=b[e]||e;d=b.rboolean.test(e);!d&&baidu._util_.attr(j,e,"");j.removeAttribute(c?e:h);d&&(h in j)&&(j[h]=false)}}}();baidu.dom.extend({removeAttr:function(a){this.each(function(b,c){baidu._util_.removeAttr(c,a)});return this}});baidu._util_.access=function(e,b,d,f,c){if(e.size()<=0){return e}switch(baidu.type(b)){case"string":if(d===undefined){return f.call(e,e[0],b)}else{e.each(function(g,h){f.call(e,h,b,(baidu.type(d)==="function"?d.call(h,g,f.call(e,h,b)):d),c)})}break;case"object":for(var a in b){baidu._util_.access(e,a,b[a],f,d)}break}return e};baidu._util_.isXML=function(b){var a=(b?b.ownerDocument||b:0).documentElement;return a?a.nodeName!=="HTML":false};baidu.browser=baidu.browser||function(){var b=navigator.userAgent;var a={isStrict:document.compatMode=="CSS1Compat",isGecko:/gecko/i.test(b)&&!/like gecko/i.test(b),isWebkit:/webkit/i.test(b)};try{/(\d+\.\d+)/.test(external.max_version)&&(a.maxthon=+RegExp["\x241"])}catch(c){}switch(true){case /msie (\d+\.\d+)/i.test(b):a.ie=document.documentMode||+RegExp["\x241"];break;case /chrome\/(\d+\.\d+)/i.test(b):a.chrome=+RegExp["\x241"];break;case /(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(b)&&!/chrome/i.test(b):a.safari=+(RegExp["\x241"]||RegExp["\x242"]);break;case /firefox\/(\d+\.\d+)/i.test(b):a.firefox=+RegExp["\x241"];break;case /opera(?:\/| )(\d+(?:\.\d+)?)(.+?(version\/(\d+(?:\.\d+)?)))?/i.test(b):a.opera=+(RegExp["\x244"]||RegExp["\x241"]);break}baidu.extend(baidu,a);return a}();baidu.id=function(){var b=baidu.global("_maps_id"),a=baidu.key;window[baidu.guid]._counter=window[baidu.guid]._counter||1;return function(d,h){var g,f=baidu.isString(d),c=baidu.isObject(d),i=c?d[a]:f?d:"";if(baidu.isString(h)){switch(h){case"get":return c?i:b[i];case"remove":case"delete":if(g=b[i]){if(baidu.isElement(g)&&baidu.browser.ie<8){g.removeAttribute(a)}else{delete g[a]}delete b[i]}return i;default:if(f){(g=b[i])&&delete b[i];g&&(b[g[a]=h]=g)}else{if(c){i&&delete b[i];b[d[a]=h]=d}}return h}}if(c){!i&&(b[d[a]=i=baidu.id()]=d);return i}else{if(f){return b[d]}}
4return"TANGRAM__PSP_"+baidu._global_._counter++}}();baidu.id.key="tangram_guid";baidu.createChain("string",function(a){var b=baidu.type(a),d=new String(~"string|number".indexOf(b)?a:b),c=String.prototype;baidu.forEach(baidu.string.$String.prototype,function(f,e){c[e]||(d[e]=f)});return d});baidu.string.extend({getByteLength:function(){return this.replace(/[^\x00-\xff]/g,"ci").length}});baidu.string.extend({trim:function(){var a=new RegExp("(^[\\s\\t\\xa0\\u3000]+)|([\\u3000\\xa0\\s\\t]+\x24)","g");return function(){return this.replace(a,"")}}()});baidu.dom.extend({addClass:function(e){if(!arguments.length){return this}var d=typeof e,c=" ";if(d=="string"){e=baidu.string.trim(e);var a=e.split(" ");baidu.forEach(this,function(g,b){var h=g.className;for(var f=0;f<a.length;f++){if(!~(c+h+c).indexOf(c+a[f]+c)){h+=" "+a[f]}}g.className=h.replace(/^\s+/g,"")})}else{if(d=="function"){baidu.forEach(this,function(f,b){baidu.dom(f).addClass(e.call(f,b,f.className))})}}return this}});baidu.dom.extend({removeClass:function(e){var d=typeof e,c=" ";if(!arguments.length){baidu.forEach(this,function(b){b.className=""})}if(d=="string"){e=baidu.string.trim(e);var a=e.split(" ");baidu.forEach(this,function(f){var g=f.className;for(var b=0;b<a.length;b++){while(~(c+g+c).indexOf(c+a[b]+c)){g=(c+g+c).replace(c+a[b]+c,c)}}f.className=baidu.string.trim(g)})}else{if(d=="function"){baidu.forEach(this,function(g,b,f){baidu.dom(g).removeClass(e.call(g,b,g.className))})}}return this}});baidu.dom.extend({getComputedStyle:function(b){var c=this[0].ownerDocument.defaultView,a=c&&c.getComputedStyle&&c.getComputedStyle(this[0],null),d=a?(a.getPropertyValue(b)||a[b]):"";return d||this[0].style[b]}});baidu.dom.extend({getCurrentStyle:function(){var a=document.documentElement.currentStyle?function(b){return this[0].currentStyle?this[0].currentStyle[b]:this[0].style[b]}:function(b){return this.getComputedStyle(b)};return function(b){return a.call(this,b)}}()});baidu.dom.extend({getDocument:function(){if(this.size()<=0){return undefined}var a=this[0];return a.nodeType==9?a:a.ownerDocument||a.document}});baidu._util_.contains=document.compareDocumentPosition?function(a,b){return !!(a.compareDocumentPosition(b)&16)}:function(a,b){if(a===b){return false}if(a.contains&&b.contains){return a.contains(b)}else{while(b=b.parentNode){if(b===a){return true}}return false}};baidu.dom.extend({show:function(){var a={};function b(d){if(a[d]){return a[d]}var e=document.createElement(d),g,f,c;document.body.appendChild(e);g=baidu.dom(e).getCurrentStyle("display");document.body.removeChild(e);if(g===""||g==="none"){f=document.body.appendChild(document.createElement("iframe"));f.frameBorder=f.width=f.height=0;c=(f.contentWindow||f.contentDocument).document;c.writeln("<!DOCTYPE html><html><body>");c.close();e=c.appendChild(c.createElement(d));g=baidu.dom(e).getCurrentStyle("display");document.body.removeChild(f);f=null}e=null;return a[d]=g}return function(){var c;this.each(function(d,e){if(!e.style){return}e.style.display="";c=baidu.dom(e);if(c.getCurrentStyle("display")==="none"||!baidu._util_.contains(c.getDocument(),e)){e.style.display=a[e.nodeName]||b(e.nodeName)}});return this}}()});baidu.dom.extend({hide:function(){return this.each(function(a,b){if(!b.style){return}b.style.display="none"})}});baidu.dom.extend({toggle:function(){return this.each(function(a,b){if(b.style&&b.style.display=="none"){baidu.dom(b).show()}else{baidu.dom(b).hide()}})}});baidu.dom.extend({find:function(b){var c=[],d,f="__tangram__find__",e=baidu.dom();switch(baidu.type(b)){case"string":this.each(function(){baidu.merge(e,baidu.query(b,this))});break;case"HTMLElement":d=b.tagName+"#"+(b.id?b.id:(b.id=f));this.each(function(){if(baidu.query(d,this).length>0){c.push(b)}});b.id==f&&(b.id="");if(c.length>0){baidu.merge(e,c)}break;case"$DOM":c=b.get();this.each(function(){baidu.forEach(baidu.query("*",this),function(g){for(var a=0,h=c.length;a<h;a++){g===c[a]&&(e[e.length++]=c[a])}})});break}return e}});baidu.dom.extend({attr:function(b,e){if(arguments.length<=0||typeof b==="function"){return this}var a,d=this,c=false;if(this.size()<=0){if(b&&e){return d}else{if(b&&!e){return undefined}else{return d}}}baidu.forEach(this,function(n,j){if(a){return}var k,m,g,i=baidu.dom,l=baidu._util_,h=n.nodeType;if(!n||h===3||h===8||h===2){return}if(typeof n.getAttribute==="undefined"){var o=i(n);a=o.prop(b,e)}switch(typeof b){case"string":g=h!==1||!baidu._util_.isXML(n);if(g){b=b.toLowerCase();m=l.attrHooks[b]||(l.rboolean.test(b)?l.boolHook:l.nodeHook)}if(typeof e==="undefined"){if(m&&"get" in m&&g&&(k=m.get(n,b))!==null){a=k}else{k=n.getAttribute(b);a=k===null?undefined:k}}else{if(typeof e==="function"){c=true;var o=i(n);o.attr(b,e.call(n,j,o.attr(b)))}else{c=true;var f={val:true,css:true,html:true,text:true,width:true,height:true,offset:true};if(b in f){a=i(n)[b](e);return}if(e===null){i(n).removeAttr(b);return}else{if(m&&"set" in m&&g&&(k=m.set(n,e,b))!==undefined){return k}else{n.setAttribute(b,""+e);return e}}}}break;case"object":c=true;var o=i(n);for(key in b){o.attr(key,b[key])}break;default:a=d;break}});return c?this:a}});
4baidu.dom.g=function(a){if(!a){return null}if("string"==typeof a||a instanceof String){return document.getElementById(a)}else{if(a.nodeName&&(a.nodeType==1||a.nodeType==9)){return a}}return null};baidu.dom.toggle=function(a){a=baidu.dom.g(a);a.style.display=a.style.display=="none"?"":"none";return a};baidu.dom.extend({hasClass:function(c){if(arguments.length<=0||typeof c==="function"){return this}if(this.size()<=0){return false}c=c.replace(/^\s+/g,"").replace(/\s+$/g,"").replace(/\s+/g," ");var b=c.split(" ");var a;baidu.forEach(this,function(e){var f=e.className;for(var d=0;d<b.length;d++){if(!~(" "+f+" ").indexOf(" "+b[d]+" ")){a=false;return}}if(a!==false){a=true;return}});return a}});baidu._util_.getWidthOrHeight=function(){var a={},d={position:"absolute",visibility:"hidden",display:"block"},b=/^(none|table(?!-c[ea]).+)/;function c(g,e){var h={};for(var f in e){h[f]=g.style[f];g.style[f]=e[f]}return h}baidu.forEach(["Width","Height"],function(e){var f={Width:["Right","Left"],Height:["Top","Bottom"]}[e];a["get"+e]=function(l,g){var k=baidu.dom(l),h=l.offsetWidth===0&&b.test(k.getCurrentStyle("display"))&&(c(l,d)),j=l["offset"+e]||parseInt(k.getCurrentStyle(e.toLowerCase())),i="padding|border";g&&baidu.forEach(g.split("|"),function(m){if(!~i.indexOf(m)){j+=parseFloat(k.getCurrentStyle(m+f[0]))||0;j+=parseFloat(k.getCurrentStyle(m+f[1]))||0}else{i=i.replace(new RegExp("\\|?"+m+"\\|?"),"")}});i&&baidu.forEach(i.split("|"),function(m){j-=parseFloat(k.getCurrentStyle(m+f[0]+(m==="border"?"Width":"")))||0;j-=parseFloat(k.getCurrentStyle(m+f[1]+(m==="border"?"Width":"")))||0});h&&c(l,h);return j}});return function(g,f,e){return a[f==="width"?"getWidth":"getHeight"](g,e)}}();baidu.string.extend({toCamelCase:function(){var a=this.valueOf();if(a.indexOf("-")<0&&a.indexOf("_")<0){return a}return a.replace(/[-_][^-_]/g,function(b){return b.charAt(1).toUpperCase()})}});baidu.dom.styleFixer=function(){var f=/alpha\s*\(\s*opacity\s*=\s*(\d{1,3})/i,a=/^-?(?:\d*\.)?\d+(?!px)[^\d\s]+$/i,g="fillOpacity,fontWeight,opacity,orphans,widows,zIndex,zoom",c=baidu._util_.support.dom.a,h={"float":!!c.style.cssFloat?"cssFloat":"styleFloat"},b={fontWeight:{normal:400,bold:700,bolder:700,lighter:100}},e={opacity:{},width:{},height:{},fontWeight:{get:function(k,j){var i=d.get(k,j);return b.fontWeight[i]||i}}},d={set:function(j,i,k){j.style[i]=k}};baidu.extend(e.opacity,/^0.5/.test(c.style.opacity)?{get:function(k,j){var i=baidu.dom(k).getCurrentStyle(j);return i===""?"1":i}}:{get:function(i){return f.test((i.currentStyle||i.style).filter||"")?parseFloat(RegExp.$1)/100:"1"},set:function(m,j,l){var k=(m.currentStyle||m.style).filter||"",i=l*100;m.style.zoom=1;m.style.filter=f.test(k)?k.replace(f,"Alpha(opacity="+i):k+" progid:dximagetransform.microsoft.Alpha(opacity="+i+")"}});baidu.forEach(["width","height"],function(i){e[i]={get:function(j){return baidu._util_.getWidthOrHeight(j,i)+"px"},set:function(k,j,l){baidu.type(l)==="number"&&l<0&&(l=0);d.set(k,j,l)}}});baidu.extend(d,document.documentElement.currentStyle?{get:function(k,j){var l=baidu.dom(k).getCurrentStyle(j),i;if(a.test(l)){i=k.style.left;k.style.left=j==="fontSize"?"1em":l;l=k.style.pixelLeft+"px";k.style.left=i}return l}}:{get:function(j,i){return baidu.dom(j).getCurrentStyle(i)}});return function(m,k,n){var l=baidu.string(k).toCamelCase(),o=n===undefined?"get":"set",j,i;l=h[l]||l;j=baidu.type(n)==="number"&&!~g.indexOf(l)?n+"px":n;i=e.hasOwnProperty(l)&&e[l][o]||d[o];return i(m,l,j)}}();baidu.dom.extend({css:function(a,b){baidu.check("^(?:(?:string(?:,(?:number|string|function))?)|object)$","baidu.dom.css");return baidu._util_.access(this,a,b,function(d,c,f){var e=baidu.dom.styleFixer;return e?e(d,c,f):(f===undefined?this.getCurrentStyle(c):d.style[c]=f)})}});baidu.dom.createElements=function(){var c=/<(\w+)/i,b=/<|&#?\w+;/,d={area:[1,"<map>","</map>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],legend:[1,"<fieldset>","</fieldset>"],option:[1,"<select multiple='multiple'>","</select>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],_default:[0,"",""]};d.optgroup=d.option;d.tbody=d.tfoot=d.colgroup=d.caption=d.thead;d.th=d.td;function a(h,k){var j=h.getElementsByTagName("SCRIPT"),f,e,g;for(f=j.length-1;f>=0;f--){g=j[f];e=k.createElement("SCRIPT");g.id&&(e.id=g.id);g.src&&(e.src=g.src);g.type&&(e.type=g.type);e[g.text?"text":"textContent"]=g.text||g.textContent;g.parentNode.replaceChild(e,g)}}return function(i,l){baidu.isNumber(i)&&(i=i.toString());l=l||document;var f,h,j,m=i,g=m.length,e=l.createElement("div"),k=l.createDocumentFragment(),o=[];if(baidu.isString(m)){if(!b.test(m)){o.push(l.createTextNode(m))}else{f=d[m.match(c)[1].toLowerCase()]||d._default;e.innerHTML="<i>mz</i>"+f[1]+m+f[2];e.removeChild(e.firstChild);a(e,l);h=f[0];j=e;while(h--){j=j.firstChild}baidu.merge(o,j.childNodes);baidu.forEach(o,function(n){k.appendChild(n)});e=j=null}}e=null;return o}}();baidu.createChain("event",function(){var a={};return function(c,b){switch(baidu.type(c)){case"object":return a.originalEvent===c?a:a=new baidu.event.$Event(c);case"$Event":return c;case"string":var d=new baidu.event.$Event(c);if(typeof b=="object"){baidu.forEach(d,b)}return d}}}(),function(g){var j,c,h;var d=this;this._type_="$Event";if(typeof g=="object"&&g.type){d.originalEvent=j=g;
4for(var b in j){if(typeof j[b]!="function"){d[b]=j[b]}}if(j.extraData){baidu.extend(d,j.extraData)}d.target=d.srcElement=j.srcElement||((c=j.target)&&(c.nodeType==3?c.parentNode:c));d.relatedTarget=j.relatedTarget||((c=j.fromElement)&&(c===d.target?j.toElement:c));d.keyCode=d.which=j.keyCode||j.which;if(!d.which&&j.button!==undefined){d.which=j.button&1?1:(j.button&2?3:(j.button&4?2:0))}var i=document.documentElement,a=document.body;d.pageX=j.pageX||(j.clientX+(i&&i.scrollLeft||a&&a.scrollLeft||0)-(i&&i.clientLeft||a&&a.clientLeft||0));d.pageY=j.pageY||(j.clientY+(i&&i.scrollTop||a&&a.scrollTop||0)-(i&&i.clientTop||a&&a.clientTop||0));d.data}if(typeof g=="string"){this.type=g}this.timeStamp=new Date().getTime()}).extend({stopPropagation:function(){var a=this.originalEvent;a&&(a.stopPropagation?a.stopPropagation():a.cancelBubble=true)},preventDefault:function(){var a=this.originalEvent;a&&(a.preventDefault?a.preventDefault():a.returnValue=false)}});baidu._util_.eventBase={};void function(b,a){a=b.listener={};if(window.addEventListener){a.add=function(e,c,d){e.addEventListener(c,d,false)}}else{if(window.attachEvent){a.add=function(e,c,d){e.attachEvent("on"+c,d)}}}}(baidu._util_.eventBase);void function(e,c){var b=baidu.id;var a=e.queue={};var f=a.attaCache=baidu.global("eventQueueCache");var d=e.listener;a.get=function(j,h,i,g){var l=b(j),k;if(!f[l]){f[l]={}}k=f[l];if(h){if(!k[h]){this.setupCall(j,h,i,k[h]=[],g)}return k[h]}else{return k}};a.add=function(k,h,j,i,g){this.get(k,h,j,g).push(i)};a.remove=function(l,k,j){var g,m;if(k){var g=this.get(l,k);if(j){for(var h=g.length-1;h>=0;h--){if(g[h].orig==j){g.splice(h,1)}}}else{g.length=0}}else{var m=this.get(l);for(var h in m){m[h].length=0}}};a.call=function(m,q,o,n){if(o){if(!o.length){return}var p=[].slice.call(arguments,1),k=[];p.unshift(n=baidu.event(n||q));n.type=q;if(!n.currentTarget){n.currentTarget=m}for(var j=0,g,h=o.length;j<h;j++){if(g=o[j]){g.pkg.apply(m,p);if(g.one){k.unshift(j)}}}if(k.length){for(var j=0,h=k.length;j<h;j++){this.remove(m,q,o[j].fn)}}}else{o=this.get(m,q);this.call(m,q,o,n)}};a.setupCall=function(){var g=function(k,h,i,j){d.add(k,i,function(l){a.call(k,h,j,l)})};return function(p,m,n,o,j){if(!j){g(p,m,n,o)}else{p=baidu.dom(j,p);for(var k=0,h=p.length;k<h;k++){g(p[k],m,n,o)}}}}()}(baidu._util_.eventBase,baidu.event);baidu._util_.cleanData=function(d){var a;for(var b=0,c;c=d[b];b++){a=baidu.id(c,"get");if(!a){continue}baidu._util_.eventBase.queue.remove(c);baidu.id(c,"remove")}};baidu.dom.extend({empty:function(){for(var a=0,b;b=this[a];a++){b.nodeType===1&&baidu._util_.cleanData(b.getElementsByTagName("*"));while(b.firstChild){b.removeChild(b.firstChild)}}return this}});baidu._util_.smartInsert=function(a,e,k){if(e.length<=0||a.size()<=0){return}if(baidu.type(e[0])==="function"){var g=e[0],j;return baidu.forEach(a,function(m,i){j=baidu.dom(m);e[0]=g.call(m,i,j.html());baidu._util_.smartInsert(j,e,k)})}var h=a.getDocument()||document,d=h.createDocumentFragment(),c=a.length-1,f;for(var b=0,l;l=e[b];b++){if(l.nodeType){d.appendChild(l)}else{baidu.forEach(~"string|number".indexOf(baidu.type(l))?baidu.dom.createElements(l,h):l,function(i){d.appendChild(i)})}}if(!(f=d.firstChild)){return}baidu.forEach(a,function(m,i){k.call(m.nodeName.toLowerCase()==="table"&&f.nodeName.toLowerCase()==="tr"?m.tBodies[0]||m.appendChild(m.ownerDocument.createElement("tbody")):m,i<c?d.cloneNode(true):d)})};baidu.dom.extend({append:function(){baidu.check("^(?:string|function|HTMLElement|\\$DOM)(?:,(?:string|array|HTMLElement|\\$DOM))*$","baidu.dom.append");baidu._util_.smartInsert(this,arguments,function(a){this.nodeType===1&&this.appendChild(a)});return this}});baidu.dom.extend({prepend:function(){baidu.check("^(?:string|function|HTMLElement|\\$DOM)(?:,(?:string|array|HTMLElement|\\$DOM))*$","baidu.dom.prepend");baidu._util_.smartInsert(this,arguments,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)});return this}});baidu.dom.extend({map:function(a){baidu.check("function","baidu.dom.map");var b=this,c=baidu.dom();baidu.forEach(this,function(e,d){c[c.length++]=a.call(e,d,e,e)});return c}});void function(f,e){var a=f.queue;var b=f.core={};var d=e.special={};var c=[].push;var g=function(m,j){for(var k=0,h=j.length;k<h;k++){if(j.get(k).contains(m)){return j[k]}}};b.build=function(m,j,k,h,l){var i;if(h){i=baidu.dom(h,m)}if((j in d)&&d[j].pack){k=d[j].pack(k)}return function(r){var q=baidu.dom(r.target),o=[r],n;if(l&&!r.data){r.data=l}if(r.triggerData){c.apply(o,r.triggerData)}if(!i){return r.result=k.apply(m,o)}for(var p=0;p<2;
4p++){if(n=g(r.target,i)){return r.result=k.apply(n,o)}i=baidu.dom(h,m)}}};b.add=function(m,o,p,i,j,l){var n=this.build(m,o,p,i,j),h,k;k=o;if(o in d){h=d[o].attachElements,k=d[o].bindType||o}a.add(m,o,k,{type:o,pkg:n,orig:p,one:l},h)};b.remove=function(k,j,i,h){a.remove(k,j,i,h)}}(baidu._util_.eventBase,baidu.event);baidu.dom.extend({clone:function(){var d=baidu._util_,g=d.eventBase.core,j=d.eventBase.queue,a=d.support.dom.div,i=d.support.dom.input.cloneNode(true).checked,b=true;if(!a.addEventListener&&a.attachEvent&&a.fireEvent){a.attachEvent("onclick",function(){b=false});a.cloneNode(true).fireEvent("onclick")}function c(k){return k.getElementsByTagName?k.getElementsByTagName("*"):(k.querySelectorAll?k.querySelectorAll("*"):[])}function e(l,k){k.clearAttributes&&k.clearAttributes();k.mergeAttributes&&k.mergeAttributes(l);switch(k.nodeName.toLowerCase()){case"object":k.outerHTML=l.outerHTML;break;case"textarea":case"input":if(~"checked|radio".indexOf(l.type)){l.checked&&(k.defaultChecked=k.checked=l.checked);k.value!==l.value&&(k.value=l.value)}k.defaultValue=l.defaultValue;break;case"options":k.selected=l.defaultSelected;break;case"script":k.text!==l.text&&(k.text=l.text);break}k[baidu.key]&&k.removeAttribute(baidu.key)}function h(p,m){if(m.nodeType!==1||!baidu.id(p,"get")){return}var k=j.get(p);for(var n in k){for(var l=0,o;o=k[n][l];l++){g.add(m,n,o)}}}function f(q,r,o){var n=q.cloneNode(true),l,m,k;if((!b||!i)&&(q.nodeType===1||q.nodeType===11)&&!baidu._util_.isXML(q)){e(q,n);l=c(q);m=c(n);k=l.length;for(var p=0;p<k;p++){m[p]&&e(l[p],m[p])}}if(r){h(q,n);if(o){l=c(q);m=c(n);k=l.length;for(var p=0;p<k;p++){h(l[p],m[p])}}}return n}return function(l,k){l=!!l;k=!!k;return this.map(function(){return f(this,l,k)})}}()});baidu.dom.extend({contains:function(b){var a=this[0];b=baidu.dom(b)[0];if(!a||!b){return false}return baidu._util_.contains(a,b)}});baidu.dom._g=function(a){return baidu.type(a)==="string"?document.getElementById(a):a};baidu.dom.contains=function(a,b){var c=baidu.dom._g;return baidu._util_.contains(c(a),c(b))};baidu._util_.smartInsertTo=function(a,d,f,h){var g=baidu.dom(d),c=g[0],e;if(h&&c&&(!c.parentNode||c.parentNode.nodeType===11)){h=h==="before";e=baidu.merge(h?a:g,!h?a:g);if(a!==e){a.length=0;baidu.merge(a,e)}}else{for(var b=0,j;j=g[b];b++){baidu._util_.smartInsert(baidu.dom(j),b>0?a.clone(true):a,f)}}};baidu.dom.extend({appendTo:function(a){baidu.check("^(?:string|HTMLElement|\\$DOM)$","baidu.dom.appendTo");baidu._util_.smartInsertTo(this,a,function(b){this.appendChild(b)});return this}});baidu.dom.extend({prependTo:function(a){baidu.check("^(?:string|HTMLElement|\\$DOM)$","baidu.dom.prependTo");baidu._util_.smartInsertTo(this,a,function(b){this.insertBefore(b,this.firstChild)});return this}});baidu.dom.extend({after:function(){baidu.check("^(?:string|function|HTMLElement|\\$DOM)(?:,(?:string|array|HTMLElement|\\$DOM))*$","baidu.dom.after");var a=this[0]&&this[0].parentNode,b=!a&&[];baidu._util_.smartInsert(this,arguments,function(c){a?a.insertBefore(c,this.nextSibling):baidu.merge(b,c.childNodes)});b&&baidu.merge(this,b);return this}});baidu.dom.extend({before:function(){baidu.check("^(?:string|function|HTMLElement|\\$DOM)(?:,(?:string|array|HTMLElement|\\$DOM))*$","baidu.dom.before");var a=this[0]&&this[0].parentNode,c=!a&&[],b;baidu._util_.smartInsert(this,arguments,function(d){a?a.insertBefore(d,this):baidu.merge(c,d.childNodes)});if(c){c=baidu.merge(c,this);this.length=0;baidu.merge(this,c)}return this}});baidu.dom.extend({insertAfter:function(a){baidu.check("^(?:string|HTMLElement|\\$DOM)$","baidu.dom.insertAfter");baidu._util_.smartInsertTo(this,a,function(b){this.parentNode.insertBefore(b,this.nextSibling)},"after");return this}});baidu.dom.insertAfter=function(c,b){var a=baidu.dom._g;return baidu.dom(a(c)).insertAfter(a(b))[0]};baidu.dom.extend({insertBefore:function(a){baidu.check("^(?:string|HTMLElement|\\$DOM)$","baidu.dom.insertBefore");baidu._util_.smartInsertTo(this,a,function(b){this.parentNode.insertBefore(b,this)},"before");return this}});baidu.dom.insertBefore=function(c,b){var a=baidu.dom._g;return baidu.dom(a(c)).insertBefore(a(b))[0]};baidu.dom.match=function(){var b=/^[\w\#\-\$\.\*]+$/,c=document.createElement("DIV");c.id="__tangram__";return function(k,e,i){var f,h=baidu.array();switch(baidu.type(e)){case"$DOM":for(var d=k.length-1;d>-1;d--){for(var j=e.length-1;j>-1;j--){k[d]===e[j]&&h.push(k[d])}}break;case"function":baidu.forEach(k,function(m,l){e.call(m,l)&&h.push(m)});break;case"HTMLElement":baidu.forEach(k,function(l){l==e&&h.push(l)});break;case"string":var g=baidu.query(e,i||document);
4baidu.forEach(k,function(o){if(f=a(o)){var m=f.nodeType==1?baidu.query(e,f):g;for(var l=0,p=m.length;l<p;l++){if(m[l]===o){h.push(o);break}}}});h=h.unique();break;default:h=baidu.array(k).unique();break}return h};function a(f){var d=[],e;while(f=f.parentNode){f.nodeType&&d.push(f)}for(var e=d.length-1;e>-1;e--){if(d[e].nodeType==1||d[e].nodeType==9){return d[e]}}return null}}();baidu.dom.extend({filter:function(a){return baidu.dom(baidu.dom.match(this,a))}});baidu.dom.extend({remove:function(a,d){arguments.length>0&&baidu.check("^string(?:,boolean)?$","baidu.dom.remove");var e=a?this.filter(a):this;for(var b=0,c;c=e[b];b++){if(!d&&c.nodeType===1){baidu._util_.cleanData(c.getElementsByTagName("*"));baidu._util_.cleanData([c])}c.parentNode&&c.parentNode.removeChild(c)}return this}});baidu.dom.extend({getWindow:function(){var a=this.getDocument();return(this.size()<=0)?undefined:(a.parentWindow||a.defaultView)}});baidu._util_.nodeName=function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()};baidu._util_.inArray=function(d,e,b){if(!e){return -1}var c=Array.prototype.indexOf,a;if(c){return c.call(e,d,b)}a=e.length;b=b?b<0?Math.max(0,a+b):b:0;for(;b<a;b++){if(b in e&&e[b]===d){return b}}return -1};baidu.makeArray=function(c,b){var a=b||[];if(!c){return a}c.length==null||~"string|function|regexp".indexOf(baidu.type(c))?[].push.call(a,c):baidu.merge(a,c);return a};baidu._util_.nodeHook=function(){if(baidu._util_.support.getSetAttribute){return}var a={};a.name=a.id=a.coords=true;return{get:function(d,c){var b=d.getAttributeNode(c);return b&&(a[c]?b.value!=="":b.specified)?b.value:undefined},set:function(d,c,e){var b=d.getAttributeNode(c);if(!b){b=document.createAttribute(c);d.setAttributeNode(b)}return(b.value=e+"")}}}();baidu.extend(baidu._util_,{rfocusable:/^(?:button|input|object|select|textarea)$/i,rtype:/^(?:button|input)$/i,rclickable:/^a(?:rea)?$/i,rboolean:/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,attrHooks:{type:{set:function(b,c){var a=baidu._util_;if(a.rtype.test(b.nodeName)&&b.parentNode){baidu._error("type property can't be changed")}else{if(!baidu.support.radioValue&&c==="radio"&&baidu._nodeName(b,"input")){var d=b.value;b.setAttribute("type",c);if(d){b.value=d}return c}}}},value:{get:function(c,b){var a=baidu._util_;if(a.nodeHook&&baidu._nodeName(c,"button")){return a.nodeHook.get(c,b)}return b in c?c.value:null},set:function(b,c,a){if(bu.nodeHook&&baidu._nodeName(b,"button")){return bu.nodeHook.set(b,c,a)}b.value=c}}},nodeHook:{},boolHook:{get:function(b,a){var d,c=baidu(b).prop(a);return c===true||typeof c!=="boolean"&&(d=b.getAttributeNode(a))&&d.nodeValue!==false?a.toLowerCase():undefined},set:function(b,d,a){var c;if(d===false){baidu(b).removeAttr(a)}else{c=baidu._util_.propFix[a]||a;if(c in b){b[c]=true}b.setAttribute(a,a.toLowerCase())}return a}}});Array.prototype.map=function(c,b){baidu.check("function(,.+)?","baidu.array.map");var a,e,d=baidu.array([]);for(a=0,e=this.length;a<e;a++){d[a]=c.call(b||this,this[a],a,this)}return d};baidu.array.map=function(c,b,a){return baidu.isArray(c)?c.map(b,a):c};baidu.dom.extend({insertHTML:function(a,d){var b,e,c=this[0];if(c.insertAdjacentHTML&&!baidu.browser.opera){c.insertAdjacentHTML(a,d)}else{b=c.ownerDocument.createRange();a=a.toUpperCase();if(a=="AFTERBEGIN"||a=="BEFOREEND"){b.selectNodeContents(c);b.collapse(a=="AFTERBEGIN")}else{e=a=="BEFOREBEGIN";b[e?"setStartBefore":"setEndAfter"](c);b.collapse(e)}b.insertNode(b.createContextualFragment(d))}return c}});baidu.dom.extend({offsetParent:function(){return this.map(function(){var b=this.offsetParent||document.body,a=/^(?:body|html)$/i;while(b&&baidu.dom(b).getCurrentStyle("position")==="static"&&!a.test(b.nodeName)){b=b.offsetParent}return b})}});baidu.dom.extend({position:function(){if(this.size()<=0){return 0}var a=/^(?:body|html)$/i,d=this.offset(),b=this.offsetParent(),c=a.test(b[0].nodeName)?{left:0,top:0}:b.offset();d.left-=parseFloat(this.getCurrentStyle("marginLeft"))||0;d.top-=parseFloat(this.getCurrentStyle("marginTop"))||0;c.left+=parseFloat(b.getCurrentStyle("borderLeftWidth"))||0;c.top+=parseFloat(b.getCurrentStyle("borderTopWidth"))||0;return{left:d.left-c.left,top:d.top-c.top}}});baidu.dom.extend({offset:function(){var a={setOffset:function(j,k,g){var b=b=baidu.dom(j),e=b.getCurrentStyle("position");e==="static"&&(j.style.position="relative");var c=b.offset(),d=b.getCurrentStyle("left"),h=b.getCurrentStyle("top"),i=(~"absolute|fixed".
4indexOf(e))&&~(""+d+h).indexOf("auto"),f=i&&b.position();d=f&&f.left||parseFloat(d)||0;h=f&&f.top||parseFloat(h)||0;baidu.type("options")==="function"&&(k=k.call(j,g,c));k.left!=undefined&&(j.style.left=k.left-c.left+d+"px");k.top!=undefined&&(j.style.top=k.top-c.top+h+"px")},bodyOffset:function(b){var c=baidu.dom(b);return{left:b.offsetLeft+parseFloat(c.getCurrentStyle("marginLeft"))||0,top:b.offsetTop+parseFloat(c.getCurrentStyle("marginTop"))||0}}};return function(k){if(!k){var j=this[0],g=this.getDocument(),d={left:0,top:0},f,b,e;if(j===g.body){return a.bodyOffset(j,g)}if(typeof j.getBoundingClientRect!=="undefined"){d=j.getBoundingClientRect()}f=this.getWindow();b=g.documentElement;e=g.body;return{left:d.left+(f.pageXOffset||Math.max(b.scrollLeft,e.scrollLeft))-(b.clientLeft||e.clientLeft),top:d.top+(f.pageYOffset||Math.max(b.scrollTop,e.scrollTop))-(b.clientTop||e.clientTop)}}else{baidu.check("^(?:object|function)$","baidu.dom.offset");for(var c=0,h;h=this[c];c++){a.setOffset(h,k,c)}return this}}}()});baidu._util_.smartScroll=function(d){var a={scrollLeft:"pageXOffset",scrollTop:"pageYOffset"}[d],e=d==="scrollLeft",b={};function f(g){return g&&g.nodeType===9}function c(g){return baidu.type(g)=="Window"?g:f(g)?g.defaultView||g.parentWindow:false}return{get:function(g){var h=c(g);return h?(a in h)?h[a]:baidu.browser.isStrict&&h.document.documentElement[d]||h.document.body[d]:g[d]},set:function(g,i){if(!g){return}var h=c(g);h?h.scrollTo(e?i:this.get(g),!e?i:this.get(g)):g[d]=i}}};baidu.dom.extend({scrollLeft:function(){var a=baidu._util_.smartScroll("scrollLeft");return function(b){b&&baidu.check("^(?:number|string)$","baidu.dom.scrollLeft");if(this.size()<=0){return b===undefined?0:this}return b===undefined?a.get(this[0]):a.set(this[0],b)||this}}()});baidu.dom.extend({scrollTop:function(){var a=baidu._util_.smartScroll("scrollTop");return function(b){b&&baidu.check("^(?:number|string)$","baidu.dom.scrollTop");if(this.size()<=0){return b===undefined?0:this}return b===undefined?a.get(this[0]):a.set(this[0],b)||this}}()});baidu._util_.getWindowOrDocumentWidthOrHeight=baidu._util_.getWindowOrDocumentWidthOrHeight||function(){var a={"window":{},"document":{}};baidu.forEach(["Width","Height"],function(d){var c="client"+d,e="offset"+d,b="scroll"+d;a["window"]["get"+d]=function(f){var h=f.document,g=h.documentElement[c];return baidu.browser.isStrict&&g||h.body&&h.body[c]||g};a["document"]["get"+d]=function(f){var g=f.documentElement;return g[c]>=g[b]?g[c]:Math.max(f.body[b],g[b],f.body[e],g[e])}});return function(d,c,b){return a[c][b==="width"?"getWidth":"getHeight"](d)}}();baidu.dom.extend({width:function(a){return baidu._util_.access(this,"width",a,function(f,d,g){var c=g!==undefined,b=c&&parseFloat(g),e=f!=null&&f==f.window?"window":(f.nodeType===9?"document":false);if(c&&b<0||isNaN(b)){return}c&&/^(?:\d*\.)?\d+$/.test(g+="")&&(g+="px");return e?baidu._util_.getWindowOrDocumentWidthOrHeight(f,e,d):(c?f.style.width=g:baidu._util_.getWidthOrHeight(f,d))})}});baidu.dom.extend({height:function(a){return baidu._util_.access(this,"height",a,function(f,d,g){var c=g!==undefined,b=c&&parseFloat(g),e=f!=null&&f==f.window?"window":(f.nodeType===9?"document":false);if(c&&b<0||isNaN(b)){return}c&&/^(?:\d*\.)?\d+$/.test(g+="")&&(g+="px");return e?baidu._util_.getWindowOrDocumentWidthOrHeight(f,e,d):(c?f.style.height=g:baidu._util_.getWidthOrHeight(f,d))})}});baidu.dom.extend({innerWidth:function(){if(this.size()<=0){return 0}var b=this[0],a=b!=null&&b===b.window?"window":(b.nodeType===9?"document":false);return a?baidu._util_.getWindowOrDocumentWidthOrHeight(b,a,"width"):baidu._util_.getWidthOrHeight(b,"width","padding")}});baidu.dom.extend({innerHeight:function(){if(this.size()<=0){return 0}var b=this[0],a=b!=null&&b===b.window?"window":(b.nodeType===9?"document":false);return a?baidu._util_.getWindowOrDocumentWidthOrHeight(b,a,"height"):baidu._util_.getWidthOrHeight(b,"height","padding")}});baidu.dom.extend({outerWidth:function(c){if(this.size()<=0){return 0}var b=this[0],a=b!=null&&b===b.window?"window":(b.nodeType===9?"document":false);
4return a?baidu._util_.getWindowOrDocumentWidthOrHeight(b,a,"width"):baidu._util_.getWidthOrHeight(b,"width","padding|border"+(c?"|margin":""))}});baidu.dom.extend({outerHeight:function(c){if(this.size()<=0){return 0}var b=this[0],a=b!=null&&b===b.window?"window":(b.nodeType===9?"document":false);return a?baidu._util_.getWindowOrDocumentWidthOrHeight(b,a,"height"):baidu._util_.getWidthOrHeight(b,"height","padding|border"+(c?"|margin":""))}});baidu.dom.extend({on:function(c,a,f,e,d){var b=baidu._util_.eventBase.core;if(typeof a=="object"&&a){e=f,f=a,a=null}else{if(typeof f=="function"){e=f,f=null}else{if(typeof a=="function"){e=a,a=f=null}}}if(typeof c=="string"){c=c.split(/[ ,]+/);this.each(function(){baidu.forEach(c,function(g){b.add(this,g,e,a,f,d)},this)})}else{if(typeof c=="object"){if(e){e=null}baidu.forEach(c,function(h,g){this.on(g,a,f,h,d)},this)}}return this}});baidu.event.on=baidu.on=function(a,c,b){if(typeof a=="string"){a=baidu.dom.g(a)}baidu.dom(a).on(c.replace(/^\s*on/,""),b);return a};baidu.dom.extend({off:function(c,a,d){var b=baidu._util_.eventBase.core,e=this;if(!c){baidu.forEach(this,function(f){b.remove(f)})}else{if(typeof c=="string"){if(typeof a=="function"){d=a,a=null}c=c.split(/[ ,]/);baidu.forEach(this,function(f){baidu.forEach(c,function(g){b.remove(f,g,d,a)})})}else{if(typeof c=="object"){baidu.forEach(c,function(f,g){e.off(g,a,f)})}}}return this}});baidu.event.un=baidu.un=function(a,c,b){a=baidu.dom.g(a);baidu.dom(a).off(c.replace(/^\s*on/,""),b);return a};baidu.dom.extend({bind:function(b,c,a){return this.on(b,undefined,c,a)}});baidu.dom.extend({unbind:function(b,a){return this.off(b,a)}});baidu.each=function(b,f,e){var d,g,c,a;if(typeof f=="function"&&b){g=typeof b.length=="number"?b.length:b.byteLength;if(typeof g=="number"){if(Object.prototype.toString.call(b)==="[object Function]"){return b}for(d=0;d<g;d++){c=b[d]||(b.charAt&&b.charAt(d));a=f.call(e||c,d,c,b);if(a===false||a=="break"){break}}}else{if(typeof b=="number"){for(d=0;d<b;d++){a=f.call(e||d,d,d,d);if(a===false||a=="break"){break}}}else{if(typeof b=="object"){for(d in b){if(b.hasOwnProperty(d)){a=f.call(e||b[d],d,b[d],b);if(a===false||a=="break"){break}}}}}}}return b};void function(b){var a=/firefox/i.test(navigator.userAgent);
4baidu.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(d,c){b[d]={bindType:c,pack:function(f){var e=baidu.dom.contains;return function(h){var g=h.relatedTarget;h.type=d;if(!g||(g!==this&&!e(this,g))){return f.apply(this,arguments)}}}}});if(a){baidu.each({focusin:"focus",focusout:"blur"},function(d,c){b[d]={bindType:c,attachElements:"textarea,select,input,button,a"}})}b.mousewheel={bindType:a?"DOMMouseScroll":"mousewheel",pack:function(c){return function(d){var f=d.originalEvent;d.type="mousewheel";d.wheelDelta=d.wheelDelta||(a?f.detail*-40:f.wheelDelta)||0;return c.apply(this,arguments)}}}}(baidu.event.special);void function(b){var a=b.queue;baidu.dom.extend({triggerHandler:function(e,d,c){if(c&&!c.triggerData){c.triggerData=d}baidu.forEach(this,function(f){a.call(f,e,undefined,c)});return this}})}(baidu._util_.eventBase);void function(a,d){var h=d.special;var e=a.queue;var c=baidu.dom;var f={submit:1};var j=function(m,n){var p;if(document.createEvent){p=document.createEvent("HTMLEvents"),p.initEvent(m,true,true)}else{if(document.createEventObject){p=document.createEventObject(),p.type=m}}var l={};if(n){for(var k in n){try{p[k]=n[k]}catch(o){if(!p.extraData){p.extraData=l}l[k]=n[k]}}}return p};var i=function(k,l,m){if(k.dispatchEvent){return k.dispatchEvent(m)}else{if(k.fireEvent){return k.fireEvent("on"+l,m)}}};var g=function(k){return k.replace(/^\w/,function(l){return l.toUpperCase()})};var b=function(n,p,o,l,k){var r,m;if(r=j(p,l)){if(o){r.triggerData=o}if(k){e.call(n,p,null,r)}else{try{m=i(n,p,r)}catch(q){c(n).triggerHandler(p,o,r)}}if(m!==false&&f[p]){try{if(n[p]){n[p]()}else{if(p=g(p),n[p]){n[p]()}}}catch(q){}}}};baidu.dom.extend({trigger:function(m,l,k){var n;if(m in h){n=h[m]}this.each(function(){b(this,m,l,k,n)});return this}})}(baidu._util_.eventBase,baidu.event);baidu.array.extend({indexOf:function(b,c){baidu.check(".+(,number)?","baidu.array.indexOf");var a=this.length;(c=c|0)<0&&(c=Math.max(0,a+c));for(;c<a;c++){if(c in this&&this[c]===b){return c}}return -1}});baidu.dom.extend({ready:function(){var d=this,f,b=window.document;baidu._util_.isDomReady=false;baidu._util_._readyWait=1;baidu.dom.holdReady=function(g){if(g){baidu._util_.readyWait++}else{a(true)}};var a=function(g){if(g===true?--baidu._util_.readyWait:baidu._util_.isDomReady){return}if(!b.body){return setTimeout(a,1)}baidu._util_.isReady=true;if(g!==true&&--baidu._util_.readyWait>0){return}f.resolveWith(b);if(baidu.dom.trigger){baidu.dom(b).trigger("ready").off("ready")}};var c=function(){if(b.addEventListener){b.removeEventListener("DOMContentLoaded",c,false);a()}else{if(b.readyState==="complete"){b.detachEvent("onreadystatechange",c);a()}}};var e=function(j){if(!f){f=baidu.Deferred();if(b.readyState==="complete"){setTimeout(a,1)}else{if(b.addEventListener){b.addEventListener("DOMContentLoaded",c,false);window.addEventListener("load",a,false)}else{b.attachEvent("onreadystatechange",c);window.attachEvent("onload",a);var i=false;try{i=window.frameElement==null&&b.documentElement}catch(h){}if(i&&i.doScroll){(function g(){if(!baidu._util_.isDomReady){try{i.doScroll("left")}catch(k){return setTimeout(g,50)}a()}})()}}}}return f.promise(j)};return function(g){e().done(g);return d}}()});baidu.dom.ready=baidu.dom.fn.ready;baidu.dom.extend({one:function(b,a,d,c){return this.on(b,a,d,c,1)}});baidu.dom.extend({delegate:function(a,c,d,b){if(typeof d=="function"){b=d,d=null}return this.on(c,a,d,b)}});baidu.dom.extend({undelegate:function(a,c,b){return this.off(c,a,b)}});void function(){var a=("blur focus focusin focusout load resize scroll unload click dblclick "+"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave mousewheel "+"change select submit keydown keypress keyup error contextmenu").split(" ");var c={};var e=function(f){c[f]=function(h,g){if(g==null){g=h,h=null}return arguments.length>0?this.on(f,null,h,g):this.trigger(f)}};for(var d=0,b=a.length;d<b;d++){e(a[d])}baidu.dom.extend(c)}();baidu.dom.extend({eq:function(a){baidu.check("number","baidu.dom.eq");return baidu.dom(this.get(a))}});baidu.dom.extend({is:function(a){return baidu.dom.match(this,a).length>0}});baidu.dom.extend({children:function(c){var b,d=[];this.each(function(a){baidu.forEach(this.children||this.childNodes,function(e){e.nodeType==1&&d.push(e)})});return baidu.dom(baidu.dom.match(d,c))}});baidu.dom.children=function(a){baidu.check("string|HTMLElement","baidu.dom.children");return baidu.dom(baidu.isString(a)?"#"+a:a).children().toArray()};baidu.dom.extend({first:function(){return baidu.dom(this[0])}});
4baidu.dom.first=function(a){baidu.isString(a)&&(a="#"+a);return baidu.dom(a).children()[0]};baidu.dom.extend({slice:function(){var a=Array.prototype.slice;return function(c,b){baidu.check("number(,number)?","baidu.dom.slice");return baidu.dom(a.apply(this,arguments))}}()});baidu.dom.extend({closest:function(a,c){var b=baidu.array();baidu.forEach(this,function(e){var d=[e];while(e=e.parentNode){e.nodeType&&d.push(e)}d=baidu.dom.match(d,a,c);d.length&&b.push(d[0])});return baidu.dom(b.unique())}});baidu.dom.extend({next:function(a){var b=baidu.dom();baidu.forEach(this,function(c){while((c=c.nextSibling)&&c&&c.nodeType!=1){}c&&(b[b.length++]=c)});return a?b.filter(a):b}});baidu.dom.extend({parent:function(a){var b=[];baidu.forEach(this,function(c){(c=c.parentNode)&&c.nodeType==1&&b.push(c)});return baidu.dom(baidu.dom.match(b,a))}});baidu.dom.extend({parents:function(a){var b=[];baidu.forEach(this,function(d){var c=[];while((d=d.parentNode)&&d.nodeType==1){c.push(d)}baidu.merge(b,c)});return baidu.dom(baidu.dom.match(b,a))}});baidu.dom.extend({prev:function(a){var b=[];baidu.forEach(this,function(c){while(c=c.previousSibling){if(c.nodeType==1){b.push(c);break}}});return baidu.dom(baidu.dom.match(b,a))}});baidu.platform=baidu.platform||function(){var b=navigator.userAgent,a=function(){};baidu.forEach("Android iPad iPhone Linux Macintosh Windows X11".split(" "),function(d){var c=d.charAt(0).toUpperCase()+d.toLowerCase().substr(1);baidu["is"+c]=a["is"+c]=!!~b.indexOf(d)});return a}();baidu.createChain("sio",function(a){switch(typeof a){case"string":return new baidu.sio.$Sio(a);break}},function(a){this.url=a});baidu.sio._createScriptTag=function(b,a,c){b.setAttribute("type","text/javascript");c&&b.setAttribute("charset",c);b.setAttribute("src",a);document.getElementsByTagName("head")[0].appendChild(b)};baidu.sio._removeScriptTag=function(b){if(b.clearAttributes){b.clearAttributes()}else{for(var a in b){if(b.hasOwnProperty(a)){delete b[a]}}}if(b&&b.parentNode){b.parentNode.removeChild(b)}b=null};baidu.sio.extend({callByBrowser:function(g,i){var a=this.url;var d=document.createElement("SCRIPT"),e=0,j=i||{},c=j["charset"],h=g||function(){},f=j["timeOut"]||0,b;d.onload=d.onreadystatechange=function(){if(e){return}var k=d.readyState;if("undefined"==typeof k||k=="loaded"||k=="complete"){e=1;try{h();clearTimeout(b)}finally{d.onload=d.onreadystatechange=null;baidu.sio._removeScriptTag(d)}}};if(f){b=setTimeout(function(){d.onload=d.onreadystatechange=null;baidu.sio._removeScriptTag(d);j.onfailure&&j.onfailure()},f)}baidu.sio._createScriptTag(d,a,c)}});baidu.sio.extend({callByServer:function(m,n){var a=this.url;var i=document.createElement("SCRIPT"),h="bd__cbs__",k,e,o=n||{},d=o["charset"],f=o["queryField"]||"callback",l=o["timeOut"]||0,b,c=new RegExp("(\\?|&)"+f+"=([^&]*)"),g;if(baidu.lang.isFunction(m)){k=h+Math.floor(Math.random()*2147483648).toString(36);window[k]=j(0)}else{if(baidu.lang.isString(m)){k=m}else{if(g=c.exec(a)){k=g[2]}}}if(l){b=setTimeout(j(1),l)}a=a.replace(c,"\x241"+f+"="+k);if(a.search(c)<0){a+=(a.indexOf("?")<0?"?":"&")+f+"="+k}baidu.sio._createScriptTag(i,a,d);function j(p){return function(){try{if(p){o.onfailure&&o.onfailure()}else{m.apply(window,arguments);clearTimeout(b)}window[k]=null;delete window[k]}catch(q){}finally{baidu.sio._removeScriptTag(i)}}}}});baidu.object=baidu.object||{};baidu.lang.isArray=baidu.isArray;baidu.object.isPlain=baidu.isPlainObject;baidu.object.extend=baidu.extend;baidu.lang.isObject=baidu.isObject;baidu.lang.isFunction=baidu.isFunction;baidu.lang.Class=(function(){var a=(baidu._global_=window[baidu.guid])._instances_;a||(a=baidu._global_._instances_={});return function(){this.guid=baidu.id();this._decontrol_||(a[this.guid]=this)}})();baidu.lang.Class.prototype.dispose=function(){delete baidu._global_._instances_[this.guid];for(var a in this){typeof this[a]!="function"&&delete this[a]}this.disposed=true};baidu.lang.Class.prototype.toString=function(){return"[object "+(this._type_||this.__type||this._className||"Object")+"]"};var baiduInstance=function(a){return baidu._global_._instances_[a]};baidu.baiduInstance=baiduInstance;baidu.lang.guid=function(){return baidu.id()};baidu.lang.isString=baidu.isString;baidu.lang.Event=function(a,b){this.type=a;this.returnValue=true;this.target=b||null;this.currentTarget=null};baidu.lang.Class.prototype.fire=baidu.lang.Class.prototype.dispatchEvent=function(e,a){baidu.lang.isString(e)&&(e=new baidu.lang.Event(e));!this.__listeners&&(this.__listeners={});a=a||{};for(var c in a){e[c]=a[c]}var c,g,d=this,b=d.__listeners,f=e.type;e.target=e.target||(e.currentTarget=d);f.indexOf("on")&&(f="on"+f);typeof d[f]=="function"&&d[f].apply(d,arguments);if(typeof b[f]=="object"){for(c=0,g=b[f].length;c<g;c++){b[f][c]&&b[f][c].apply(d,arguments)}}return e.returnValue};baidu.lang.Class.prototype.on=baidu.lang.Class.prototype.addEventListener=function(e,d,c){if(typeof d!="function"){return}!this.__listeners&&(this.__listeners={});var b,a=this.__listeners;e.indexOf("on")&&(e="on"+e);typeof a[e]!="object"&&(a[e]=[]);for(b=a[e].length-1;b>=0;b--){if(a[e][b]===d){return d}}a[e].push(d);c&&typeof c=="string"&&(a[e][c]=d);return d};baidu.page=baidu.page||{};baidu.global.get=function(a){return baidu.global(a)};baidu.global.set=function(b,c,a){return baidu.global(b,c,!a)};baidu.lang.instance=function(a){return baidu._global_._instances_[a]||null};baidu.lang.inherits=function(g,e,d){var c,f,a=g.prototype,b=new Function();b.prototype=e.prototype;f=g.prototype=new b();for(c in a){f[c]=a[c]}g.prototype.constructor=g;g.superClass=e.prototype;
4typeof d=="string"&&(f.__type=d);g.extend=function(j){for(var h in j){f[h]=j[h]}return g};return g};baidu.dom.getStyle=function(b,a){return baidu.dom(baidu.dom.g(b)).css(a)};baidu.page.getScrollTop=function(){var a=document;return window.pageYOffset||a.documentElement.scrollTop||a.body.scrollTop};baidu.page.getScrollLeft=function(){var a=document;return window.pageXOffset||a.documentElement.scrollLeft||a.body.scrollLeft};(function(){baidu.page.getMousePosition=function(){return{x:baidu.page.getScrollLeft()+a.x,y:baidu.page.getScrollTop()+a.y}};var a={x:0,y:0};baidu.event.on(document,"onmousemove",function(b){b=window.event||b;a.x=b.clientX;a.y=b.clientY})})();baidu.event.preventDefault=function(a){return new baidu.event(a).preventDefault()};baidu.lang.createClass=function(b,j){j=j||{};var g=j.superClass||baidu.lang.Class;var h=function(){var m=this;j.decontrolled&&(m.__decontrolled=true);g.apply(m,arguments);for(k in h.options){m[k]=h.options[k]}b.apply(m,arguments);for(var k=0,l=h["\x06r"];l&&k<l.length;k++){l[k].apply(m,arguments)}};h.options=j.options||{};var a=function(){},f=b.prototype;a.prototype=g.prototype;var d=h.prototype=new a();for(var c in f){d[c]=f[c]}var e=j.className||j.type;typeof e=="string"&&(d.__type=e);d.constructor=f.constructor;h.extend=function(l){for(var k in l){h.prototype[k]=l[k]}return h};return h};baidu.dom.setPixel=function(b,a,c){typeof c!="undefined"&&(baidu.dom.g(b).style[a]=c+(!isNaN(c)?"px":""))};baidu.page.getViewHeight=function(){var e=document,h=baidu.browser.ie||1,b=e.compatMode==="BackCompat"&&h<9?e.body:e.documentElement;var g=b.clientHeight;var c=navigator.userAgent;var f=!navigator.userAgent.match(/OS [1-8]_\d[_\d]* like Mac OS X/i);var a=!!navigator.userAgent.toString().match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);var d=navigator.userAgent.toString().indexOf("iPad");if(f&&a&&d!=null){g=Math.max(b.clientHeight,b.scrollHeight)}return g};baidu.global.getZIndex=function(a,c){var b=baidu.global.get("zIndex");if(a){b[a]=b[a]+(c||1)}return b[a]};baidu.global.set("zIndex",{popup:50000,dialog:1000},true);baidu.string.extend({format:function(a){var c=this.valueOf(),b=Array.prototype.slice.call(arguments,0),d=Object.prototype.toString;if(b.length){b=b.length==1?(a!==null&&(/\[object Array\]|\[object Object\]/.test(d.call(a)))?a:b):b;return c.replace(/#\{(.+?)\}/g,function(e,g){var f=b[g];if("[object Function]"==d.call(f)){f=f(g)}return("undefined"==typeof f?"":f)})}return c}});baidu.string.extend({encodeHTML:function(){return this.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}});baidu.lang.isElement=baidu.isElement;baidu.createChain("fn",function(a){return new baidu.fn.$Fn(~"function|string".indexOf(baidu.type(a))?a:function(){})},function(a){this.fn=a});baidu.fn.extend({bind:function(a){var b=this.fn,c=arguments.length>1?Array.prototype.slice.call(arguments,1):null;return function(){var e=baidu.type(b)==="string"?a[b]:b,d=c?c.concat(Array.prototype.slice.call(arguments,0)):arguments;return e.apply(a||e,d)}}});baidu.fn.bind=function(c,b){var a=baidu.fn(c);return a.bind.apply(a,Array.prototype.slice.call(arguments,1))};baidu.lang.register=function(b,d,a){var c=b["\x06r"]||(b["\x06r"]=[]);c[c.length]=d;for(var e in a){b.prototype[e]=a[e]}};baidu.lang.isDate=baidu.isDate;baidu.page.getWidth=function(){var d=document,a=d.body,c=d.documentElement,b=d.compatMode=="BackCompat"?a:d.documentElement;return Math.max(c.scrollWidth,a.scrollWidth,b.clientWidth)};baidu.page.getHeight=function(){var d=document,a=d.body,c=d.documentElement,b=d.compatMode=="BackCompat"?a:d.documentElement;return Math.max(c.scrollHeight,a.scrollHeight,b.clientHeight)};(function(){var m=false,i,h,e,d,c,f,l,a,k,n;baidu.dom.drag=function(p,o){if(!(i=baidu.dom.g(p))){return false}h=baidu.object.extend({autoStop:true,capture:true,interval:16},o);a=f=parseInt(baidu.dom.getStyle(i,"left"))||0;k=l=parseInt(baidu.dom.getStyle(i,"top"))||0;m=true;setTimeout(function(){var r=baidu.page.getMousePosition();e=h.mouseEvent?(baidu.page.getScrollLeft()+h.mouseEvent.clientX):r.x;d=h.mouseEvent?(baidu.page.getScrollTop()+h.mouseEvent.clientY):r.y;clearInterval(c);c=setInterval(b,h.interval)},1);var q=baidu.dom(document);h.autoStop&&q.on("mouseup",j);q.on("selectstart",g);if(h.capture&&i.setCapture){i.setCapture()}else{if(h.capture&&window.captureEvents){window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP)}}n=document.body.style.MozUserSelect;document.body.style.MozUserSelect="none";baidu.isFunction(h.ondragstart)&&h.ondragstart(i,h);return{stop:j,dispose:j,update:function(r){baidu.object.extend(h,r)}}};function j(){m=false;clearInterval(c);if(h.capture&&i.releaseCapture){i.releaseCapture()}else{if(h.capture&&window.captureEvents){window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP)}}document.body.style.MozUserSelect=n;var o=baidu.dom(document);o.off("selectstart",g);h.autoStop&&o.off("mouseup",j);baidu.isFunction(h.ondragend)&&h.ondragend(i,h,{left:a,top:k})}function b(s){if(!m){clearInterval(c);return}var p=h.range||[],o=baidu.page.getMousePosition(),q=f+o.x-e,r=l+o.y-d;if(baidu.isObject(p)&&p.length==4){q=Math.max(p[3],q);
4q=Math.min(p[1]-i.offsetWidth,q);r=Math.max(p[0],r);r=Math.min(p[2]-i.offsetHeight,r)}i.style.left=q+"px";i.style.top=r+"px";a=q;k=r;baidu.isFunction(h.ondrag)&&h.ondrag(i,h,{left:a,top:k})}function g(o){return baidu.event.preventDefault(o,false)}})();baidu.page.getViewWidth=function(){var f=document,b=f.compatMode=="BackCompat"?f.body:f.documentElement;var e=b.clientWidth;var c=navigator.userAgent;var g=!navigator.userAgent.match(/OS [1-8]_\d[_\d]* like Mac OS X/i);var a=!!navigator.userAgent.toString().match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);var d=navigator.userAgent.toString().indexOf("iPad");if(g&&a&&d!=null){e=Math.max(b.clientWidth,b.scrollWidth)}return e};baidu.array.extend({contains:function(a){return !!~this.indexOf(a)}});baidu.array.extend({remove:function(a){var b=this.length;while(b--){if(this[b]===a){this.splice(b,1)}}return this}});baidu.lang.Class.prototype.un=baidu.lang.Class.prototype.removeEventListener=function(d,c){var b,a=this.__listeners;if(!a){return}if(typeof d=="undefined"){for(b in a){delete a[b]}return}d.indexOf("on")&&(d="on"+d);if(typeof c=="undefined"){delete a[d]}else{if(a[d]){typeof c=="string"&&(c=a[d][c])&&delete a[d][c];for(b=a[d].length-1;b>=0;b--){if(a[d][b]===c){a[d].splice(b,1)}}}}};baidu.array=baidu.array||{};baidu.dom=baidu.dom||{};baidu.addClass=baidu.dom.addClass||{};baidu.g=baidu.G=baidu.dom.g||{};baidu.getAttr=baidu.dom.getAttr||{};baidu.getStyle=baidu.dom.getStyle||{};baidu.hide=baidu.dom.hide||{};baidu.insertHTML=baidu.dom.insertHTML||{};baidu.q=baidu.Q=baidu.dom.q||{};baidu.removeClass=baidu.dom.removeClass||{};baidu.setAttr=baidu.dom.setAttr||{};baidu.setAttrs=baidu.dom.setAttrs||{};baidu.dom.setOuterHeight=baidu.dom.setBorderBoxHeight||{};baidu.dom.setOuterWidth=baidu.dom.setBorderBoxWidth||{};baidu.setStyle=baidu.dom.setStyle||{};baidu.setStyles=baidu.dom.setStyles||{};baidu.show=baidu.dom.show||{};baidu.e=baidu.element=baidu.element||{};baidu.event=baidu.event||{};baidu.on=baidu.event.on||{};baidu.un=baidu.event.un||{};baidu.lang=baidu.lang||{};baidu.inherits=baidu.lang.inherits||{};baidu.object=baidu.object||{};baidu.string=baidu.string||{};baidu.decodeHTML=baidu.string.decodeHTML||{};baidu.encodeHTML=baidu.string.encodeHTML||{};baidu.format=baidu.string.format||{};baidu.trim=baidu.string.trim||{};; 5 var magic=null;if("function"!=typeof magic)var magic=function(){};magic.resourcePath="",magic.skinName="default",magic.version="1.0.2.2",/msie 6/i.test(navigator.userAgent)&&document.execCommand("BackgroundImageCache",!1,!0),magic.Base=function(){baidu.lang.Class.call(this),this._ids={},this._eid=this.guid+"__"},baidu.lang.inherits(magic.Base,baidu.lang.Class,"magic.Base").extend({getElement:function(t){return document.getElementById(this.$getId(t))},getElements:function(){var t={},e=this._ids;for(var i in e)t[i]=this.getElement(i);return t},$getId:function(t){return t=baidu.lang.isString(t)?t:"",this._ids[t]||(this._ids[t]=this._eid+t)},$mappingDom:function(t,e){return baidu.lang.isString(e)?this._ids[t]=e:e&&e.nodeType&&(e.id?this._ids[t]=e.id:e.id=this.$getId(t)),this},$dispose:function(){this.fire("ondispose")&&baidu.lang.Class.prototype.dispose.call(this)}}),magic.control=magic.control||{},magic.control.Layer=baidu.lang.createClass(function(t){this.width="auto",this.height="auto",baidu.object.extend(this,t||{})},{type:"magic.control.Layer",superClass:magic.Base}).extend({show:function(){this.fire("onbeforeshow")&&(this.getElement().style.display="",this.fire("onshow"))},hide:function(){this.fire("onbeforehide")&&(this.getElement().style.display="none",this.fire("onhide"))},setWidth:function(t){baidu.dom.setPixel(this.getElement(),"width",this.width=t)},setHeight:function(t){baidu.dom.setPixel(this.getElement(),"height",this.height=t)},setSize:function(t){this.setWidth(t.width||t[0]),this.setHeight(t.height||t[1])}}),magic.control.Dialog=baidu.lang.createClass(function(t){var e=this;t=baidu.object.extend({width:400,height:300,left:0,top:0,contentType:"html",draggable:!0},t||{}),baidu.object.extend(e._options||(e._options={}),t),e._footerHeight=0,t.width<100&&(t.width=100),t.height<100&&(t.height=100),this.zIndex=60001,this.disposeProcess=[],this.on("load",function(){var t=this.getElement(),e=this,i=e._options;("number"==typeof i.left||"number"==typeof i.top)&&this.setPosition(i),("number"==typeof i.width||"number"==typeof i.height)&&this.setSize(this._options),this._isShown=!0,this.focus();var o=function(t){e.focus(t)};if(baidu(document).on("mousedown",o),this.disposeProcess.unshift(function(){baidu(document).off("mousedown",o)}),i.draggable){var s,n=this.getElement("title"),a=baidu.fn.bind,e=this,r=t.parentNode,d=baidu(r).position();n.className+=" tang-title-dragable";var h={top:function(){var t=baidu(r).css("borderTopWidth");return t=/px/.test(t)?parseInt(t):0,r==document.body?0-t:0-(d.top+t)},right:function(){var e=baidu(".tang-background-inner",t)[0],i="auto"==baidu(e).css("marginLeft")?e.offsetLeft+"px":baidu(e).css("marginLeft");return baidu.page.getWidth()+h.left()-parseInt(i)},bottom:function(){var e=baidu(".tang-background-inner",t)[0],i="auto"==baidu(e).css("marginTop")?e.offsetTop+"px":baidu(e).css("marginTop");return baidu.page.getHeight()+h.top()-parseInt(i)},left:function(){var t=baidu(r).css("borderLeftWidth");return t=/px/.test(t)?parseInt(t):0,r==document.body?0-t:0-(d.top+t)}};baidu(n).on("mousedown",s=a(function(e){e.preventDefault(),baidu.dom.drag(t,{ondragstart:a(function(){this.fire("dragstart")},this),ondrag:a(function(){this.fire("drag")},this),ondragend:a(function(){this.fire("dragstop")},this),range:[h.top(),h.right(),h.bottom(),h.left()]})},this)),this.disposeProcess.unshift(function(){baidu(n).off("mousedown",s)})}}),this.on("resize",function(){this.getElement("titleText"),this.getElement("titleButtons")})},{type:"magic.control.Dialog",superClass:magic.Base}),magic.control.Dialog.extend({isShowing:function(){return this._isShown},show:function(){return this.fire("beforeshow")===!1?this:(this.getElement().style.display="",this._isShown=!0,void this.fire("show"))},hide:function(t){return this.fire("beforehide")===!1?this:(this._isShown=!1,this.getElement().style.display="none","unHide"==t?(this.hideMask(),this):void this.fire("hide"))},setTitleText:function(t){var e=this.getElement("titleText");return e.innerHTML=baidu.string.encodeHTML(t)||" ",this},setContent:function(t,e){var i,o,s,n=this.getElement("content");
5if(i=this._lastDom){if(s=i.parent,i.content===t)return this;i.target?s.insertBefore(i.content,i.target):s.appendChild(i.content),this._lastDom=null}switch(e){case"text":n.innerHTML=baidu.string.encodeHTML(t),baidu(n).removeClass("contentFrame");break;case"element":s=t.parentNode,s&&(s.insertBefore(o=document.createTextNode(""),t),this._lastDom={content:t,parent:t.parentNode,target:o}),n.innerHTML="",n.appendChild(t);break;case"frame":baidu(n).css("height",baidu(this.getElement("body")).css("height")),n.innerHTML="<iframe frameborder='no' src='"+t+"'></iframe>",baidu(n).hasClass("contentFrame")||baidu(n).addClass("contentFrame");break;default:n.innerHTML=t,baidu(n).removeClass("contentFrame")}return this},focus:function(t){var e=baidu.global.get("dialogFocused").map,i=this.$getId()+"focus",o=function(){for(var t in e)t!=i&&(e[t]=!1)};if(e||(baidu.global.get("dialogFocused").map=e={}),arguments.length){var s=t.target;baidu(s).closest(this.getElement()).size()>0?(baidu(this.getElement()).css("zIndex",this.zIndex=60001),1!=e[i]&&(this.fire("focus"),o(),e[i]=!0)):e[i]=!1}else baidu(this.getElement()).css("zIndex",this.zIndex=60001),e[i]=!0,o(),this.fire("focus")},setSize:function(t){var e=this.getElement("foreground");if("number"==typeof t.width&&baidu(e).css("width",(this._options.width=t.width)+"px"),"number"==typeof t.height){baidu(e).css("height",(this._options.height=t.height)+"px");var i=Math.max(0,this._options.height-this._titleHeight-this._footerHeight)+"px";baidu(this.getElement("body")).css("height",i)}this.fire("resize",t)},getSize:function(){return{width:this._options.width,height:this._options.height}},setPosition:function(t){"number"==typeof t.left&&baidu(this.getElement()).css("left",(this._options.left=t.left)+"px"),"number"==typeof t.top&&baidu(this.getElement()).css("top",(this._options.top=t.top)+"px"),this.fire("move",t)},getPosition:function(){return{left:this._options.left,top:this._options.top}},center:function(){var t=document[baidu.browser.isStrict?"documentElement":"body"],e=t.clientWidth,i=t.clientHeight,o=((e-this._options.width)/2|0)+baidu.page.getScrollLeft(),s=((i-this._options.height)/2|0)+baidu.page.getScrollTop();this.setPosition({left:o,top:s})},$dispose:function(){var t=baidu.global.get("dialogFocused").map;t&&delete t[this.$getId()+"focus"];for(var e=0,i=this.disposeProcess.length;i>e;e++)this.disposeProcess[e].call(this);magic.Base.prototype.$dispose.call(this)}}),magic.Background=baidu.lang.createClass(function(t){var e=t||{},i=this;i.coverable=e.coverable||!1,i.styleBox=e.styleBox,i.tagName="div";var o="filter:progid:DXImageTransform.Microsoft.Alpha(opacity:0);position:absolute;z-index:-1;top:0;left:0;width:100%;height:100%;";i._coverDom="<div style='"+o+"opacity:0;background-color:#FFFFFF'></div>";var s=baidu.browser;s.ie<7&&(i._coverDom="<iframe frameborder='0' style='"+o+"' src='"+("https:"==(window.location?window.location.protocol.toLowerCase():document.location.protocol.toLowerCase())?"https://passport.baidu.com/passApi/html/_blank.html":"about:blank")+"'></iframe>"),s.ie&&(!s.isStrict||s.ie<8)&&(i.size=[0,0],i.timer=setInterval(function(){i._forIE()},80)),this._innerHTML="<div class='tang-background-inner' style='width:100%;height:100%;' id='"+this.$getId("inner")+"'></div>"},{type:"magic.Background",superClass:magic.Base}).extend({render:function(t){var e=baidu.dom(t).get(0);e!=document.body&&"static"==baidu.dom(e).css("position"),baidu.dom(e).insertHTML("afterbegin",this.toHTMLString()),baidu(this.getElement())&&baidu(this.getElement()).on("selectstart",function(){return!1})},$dispose:function(){var t=this.getElement();t.parentNode.removeChild(t),clearInterval(this.timer)},toHTMLString:function(t){return["<",t||this.tagName," class='tang-background",baidu.browser.ie<7?" ie6__":"","' id='",this.$getId(),"' style='position:absolute; top:0px; left:0px;",this.timer?"width:10px;height:10px;":"width:100%;height:100%;","z-index:-9; -webkit-user-select:none; -moz-user-select:none;' ",">",this._innerHTML,this.coverable?this._coverDom||"":"","</",t||this.tagName,">"].join("")},setContent:function(t){this.getElement("inner").innerHTML=t},_forIE:function(){if(this.guid&&this.layer||(this.layer=this.getElement())&&this.layer.offsetHeight){var t=this.layer,e=this.container||t.parentNode;
5if(e&&e.style){var i=e.style,o=parseInt(i.borderTopWidth)||0,s=parseInt(i.borderRightWidth)||0,n=parseInt(i.borderBottomWidth)||0,a=parseInt(i.borderLeftWidth)||0,r=e.offsetWidth-s-a,d=e.offsetHeight-o-n;if((this.size[0]!=r||this.size[1]!=d)&&(t.style.width=(this.size[0]=r)+"px",t.style.height=(this.size[1]=d)+"px"),this.styleBox&&this.table||(this.table=this.getElement("table"))){var h,l;h=h||parseInt(baidu.dom(this.table.rows[0]).getCurrentStyle("height")),l=l||parseInt(baidu.dom(this.table.rows[2]).getCurrentStyle("height")),this.table.rows[0].style.height=h+"px",this.table.rows[2].style.height=l+"px",this.table.rows[1].style.height=this.layer.offsetHeight-h-l+"px"}}}}}),magic.Dialog=baidu.lang.createClass(function(){},{type:"magic.Dialog",superClass:magic.control.Dialog}),magic.Dialog.extend({render:function(t){"string"===baidu.type(t)&&(t="#"+t),t=baidu(t)[0],t||document.body.appendChild(t=document.createElement("div"));var e=magic.Dialog.template.join(""),i=this._options;baidu(t).addClass(i.className||"tang-pass-pop-login"),baidu(t).insertHTML("beforeEnd",baidu.string.format(e,{content:"",titleId:this.$getId("title"),bodyId:this.$getId("body"),contentId:this.$getId("content"),foregroundId:this.$getId("foreground"),footerId:this.$getId("footer"),footerContainerId:this.$getId("footerContainer")})),this._background=new magic.Background({coverable:!0}),this._background.render(t),this.$mappingDom("",t),this._renderHeader(),this._titleHeight=this.getElement("title").offsetHeight||30,baidu(this.getElement("footer")).hide(),this.fire("footer"),this.setSize(i),this.setPosition(i),i.content&&this.setContent(i.content,i.contentType),this.fire("load"),this.show(),this.disposeProcess.push(function(){baidu(this.getElement("closeBtn")).off("click",this._closeBtnFn),this._background.$dispose(),t.innerHTML="",baidu(t).removeClass("tang-ui tang-dialog")})},_renderHeader:function(){var t=["<div class='buttons' id='",this.$getId("titleButtons"),"'>","<a id='",this.$getId("closeBtn"),"' class='close-btn'></a>","</div>","<span id='",this.$getId("titleText"),"'>",baidu.string.encodeHTML(this._options.titleText||"")||" ","</span>"];baidu(this.getElement("title")).insertHTML("beforeEnd",t.join("")),baidu(this.getElement("closeBtn")).on("click",this._closeBtnFn=baidu.fn.bind(this.hide,this)),baidu(this.getElement("closeBtn")).on("mousedown",function(t){return t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0,!1})}}),magic.Dialog.template=["<div class='tang-foreground' id='#{foregroundId}'>","<div class='tang-title' id='#{titleId}'>","</div>","<div class='tang-body' id='#{bodyId}'>","<div class='tang-content' id='#{contentId}'>#{content}</div>","</div>","<div class='tang-footer' id='#{footerId}'>","<div id='#{footerContainerId}'></div>","</div>","</div>"],baidu.lang.register(magic.control.Dialog,function(t){t&&t.buttons&&t.buttons.enable&&this.on("footer",function(){this.buttons=null,baidu(this.getElement("footer")).show(),this._createButton(t.buttons),baidu(this.getElement("footerContainer")).addClass("tang-footerContainer");var e=this.getElement("footer").offsetHeight;(!this.buttons||0==this.buttons.length)&&(e=30)&&baidu(this.getElement("footer")).css("height",30),this._footerHeight=e})},{_createButton:function(){var t=this,e=arguments.length>0?arguments[0]:{},i=baidu(t.getElement("footerContainer")),o=t.buttons||(t.buttons=[]),s=!1,n=function(){var t=['<a class="tang-dialog-button ',"",'">','<span class="tang-dialog-button-s">','<span class="tang-dialog-button-s-space"> </span>','<span class="tang-dialog-button-s-text">',"","</span>","</span>","</a>"];return function(e,i){return t[1]=e.disabled?"tang-dialog-button-disabled":"",t[6]=e.text||" ",baidu(i).insertHTML("beforeEnd",t.join("")),baidu(i).children().get(0)}}();baidu.forEach(e.items||[],function(e,a){var r,d;i.append(d=baidu('<span class="tang-dialog-button-carrier"></span>')[0]),d="object"==typeof e?(e.builder||n).call(this,e,d,t,a):e,!s&&e.focused&&!e.disabled&&(s=!0)&&d.focus(),o.push(d),e.disabled||e.click&&baidu(d).on("click",r=function(){e.click.call(this,t)}
5),r&&this.disposeProcess.push(function(){baidu(d).off("click",r)})},t),i.addClass("tang-button-"+(e.align||"right"))}}),magic.Mask=function(t){function e(){if(s.container===document.body){var t=s.getElement().style;t.display="none",s.setSize([baidu.page.getViewWidth(),baidu.page.getViewHeight()]),t.display=""}}function i(){if(s.container==document.body){var t=s.getElement().style;t.display="none",t.top=baidu.page.getScrollTop()+"px",t.left=baidu.page.getScrollLeft()+"px",t.display=""}}function o(t){for(var e,i=document.getElementsByTagName("object"),o=t?"visible":"hidden",s=0,n=i.length;n>s;s++)e=i[s],e.style.visibility=o}var s=this;magic.control.Layer.call(this),s.zIndex=999,s.opacity=.3,s.bgColor="#000000",s.coverable=!1,s.container=document.body,baidu.object.extend(s,t||{});var n=baidu.browser.safari,a=baidu.browser.ie;baidu.dom(s.container).insertHTML("afterBegin",s.toHTMLString()),6==a&&(s.getElement().style.position="absolute"),s.on("show",function(){e(),6==a&&i(),baidu.dom(window).on("resize",e),6==a&&baidu.dom(window).on("scroll",i);var t=s.getElement().style;t.opacity=s.opacity,t.zIndex=s.zIndex,t.filter="alpha(opacity="+100*s.opacity+")",t.backgroundColor=s.bgColor,n&&o(!1)}),s.on("hide",function(){baidu.dom(window).off("resize",e),6==a&&baidu.dom(window).off("scroll",i),n&&o(!0)})},baidu.lang.inherits(magic.Mask,magic.control.Layer,"magic.Mask").extend({toHTMLString:function(){return"<div id='"+this.$getId()+"' class='pop-mask' style='top:0px; left:0px; position:fixed; display:none;'>"+("<iframe frameborder='0' style='filter:progid:DXImageTransform.Microsoft.Alpha(opacity:0);position:absolute;top:0px;left:0px;width:100%;height:100%;z-index:-1' src='"+("https:"==(window.location?window.location.protocol.toLowerCase():document.location.protocol.toLowerCase())?"https://passport.baidu.com/passApi/html/_blank.html":"about:blank")+"'></iframe><div style='position:absolute;top:0px;left:0px;width:100%;height:100%;z-index:-1;'> </div>")+"</div>"}}),baidu.lang.register(magic.control.Dialog,function(t){t&&t.mask&&t.mask.enable&&(this.renderMask(),this.on("load",function(){this._options.left||this.center()}),this.on("show",function(){this.showMask()}),this.on("hide",function(){this.hideMask()}))},{renderMask:function(){if(this._mask)return this;var t=this._options.mask;this._mask=new magic.Mask({opacity:t.opacity||.15,bgColor:t.bgColor||"#000",zIndex:this.zIndex-1});var e=this;return this.disposeProcess.push(function(){baidu(e._mask.getElement()).remove()}),this},showMask:function(){return this._mask.show(),this},hideMask:function(){return this._mask.hide(),this}});; 6 var passport=passport||window.passport||{};passport._modulePool=passport._modulePool||{},passport._define=passport._define||function(s,a){passport._modulePool[s]=a&&a()},passport._getModule=passport._getModule||function(s){return passport._modulePool[s]},window.upsmsStore={reg_upsms:"106929130003000002",verify_upsms:"106929130003000004",verify_text_upsms:"1069 2913 0003 000 004"},window.YY_TPL_CONFIG="yylive,yyliveserver,yyanchor,pcyy,yyudbsec,bdgameassist,yoyuyin,yygac,yy_game,yy_gth,";try{if(window.localStorage&&window.localStorage.getItem("upsms-pcApi"))try{window.upsmsStore=JSON.parse(window.localStorage.getItem("upsms-pcApi"))}catch(e){}}catch(e){}var passport=window.passport||{};passport._load=passport._load||function(s,a,e){var t=document,n=t.createElement("SCRIPT");if(a){n.type="text/javascript",n.charset="UTF-8";var p=s.split("?")[0],o=Math.round(1e3*Math.random()),i=(new Date).getTime();n.readyState?n.onreadystatechange=function(){if("loaded"===n.readyState||"complete"===n.readyState){if(n.onreadystatechange=null,100===o){var s=(new Date).getTime()-i;(new Image).src=document.location.protocol+"//nsclick.baidu.com/v.gif?pid=111&type=1023&url="+encodeURIComponent(p)+"&time="+s}e&&e()}}:n.onload=function(){if(100===o){var s=(new Date).getTime()-i;(new Image).src=document.location.protocol+"//nsclick.baidu.com/v.gif?pid=111&type=1023&url="+encodeURIComponent(p)+"&time="+s}e&&e()},n.src=100===o?p+"?t="+Math.random():s,t.getElementsByTagName("head")[0].appendChild(n)}else n.type="text/javascript",n.charset="UTF-8",n.src=s,t.getElementsByTagName("head")[0].appendChild(n),n.readyState?n.onreadystatechange=function(){("loaded"===n.readyState||"complete"===n.readyState)&&(n.onreadystatechange=null,e&&e())}:n.onload=function(){e&&e()}},passport.ieVersion=function(){var s;try{var a=navigator.userAgent.toLowerCase(),e=a.indexOf("msie")>-1;e&&a.match(/msie ([\d.]+)/)&&(s=a.match(/msie ([\d.]+)/)[1])}catch(t){s=0}return s},passport.getDomain=function(){var s={"http:":"http://ppui-static-pc.cdn.bcebos.com","https:":"https://ppui-static-pc.cdn.bcebos.com"};passport.ieVersion()<=8&&(s={"http:":"http://passport.baidu.com","https:":"https://passport.baidu.com"});var a;return a=passport&&"https"===passport._protocol?"https:":window.location?window.location.protocol.toLowerCase():document.location.protocol.toLowerCase(),s[a]||s["https:"]},passport._use=passport._use||function(s,a,e){function t(){passport._load("https://wappass.baidu.com/static/waplib/moonshad.js?tt="+(new Date).getTime(),!0,function(){var s=passport._getModule(p);if(!s)throw new Error("load "+p+"module script error.");e&&e(s)})}var n=passport.getDomain()+a,p=s+".js",o=passport._getModule(p);o?e&&e(o):passport._load(n,!0,t)},passport.loadPass=function(s,a){var e=passport.getDomain()+s,t=document.createElement("link");t.rel="stylesheet",t.type="text/css",t.href=e,document.getElementsByTagName("head")[0].appendChild(t),t.readyState?t.onreadystatechange=function(){("loaded"==t.readyState||"complete"==t.readyState)&&(t.onreadystatechange=null,a&&a())}:t.onload=function(){a&&a()}},passport.use=passport.use||function(s,a,e){var t=a&&a.tangram===!1?"":"_tangram";a&&a.protocol&&(passport._protocol=a.protocol),"reg"===s&&a&&a.regPhoneOnly&&(s="regPhone");var n,p,o,i="login"===s&&a&&a.loginVersion&&"v4"===a.loginVersion,r="login"===s&&a&&a.loginVersion&&"v5"===a.loginVersion;r?(o="/passApi/css/loginv5_c9af7d5.css",p="/passApi/js/loginv5_tangram_661886f.js",n="/passApi/js/loginv5_bf939ca.js"):i?(o="/passApi/css/loginv4_2841879.css",p="/passApi/js/loginv4_tangram_4e0e15d.js",n="/passApi/js/loginv4_64dd56e.js"):(o="/passApi/css/uni_login_merge_70e98b6.css",p="/passApi/js/login_tangram_fd5131e.js",n="/passApi/js/login_0b52f3c.js");var c={login:n,login_tangram:p,smsloginEn:"/passApi/js/smsloginEn_f23b080.js",smsloginEn_tangram:"/passApi/js/smsloginEn_tangram_8446f6c.js",loginWLtoPC:"/passApi/js/loginWLtoPC_0912598.js",accConnect:"/passApi/js/accConnect_d664620.js",accConnect_tangram:"/passApi/js/accConnect_tangram_4351217.js",accRealName:"/passApi/js/accRealName_76ad05f.js",accRealName_tangram:"/passApi/js/accRealName_tangram_c31c94c.js",checkPhone:"/passApi/js/checkPhone_072433d.js",checkPhone_tangram:"/passApi/js/checkPhone_tangram_9ca11e3.js",checkIDcard:"/passApi/js/checkIDcard_93611ca.js",checkIDcard_tangram:"/passApi/js/checkIDcard_tangram_7b52c3a.js",travelComplete:"/passApi/js/travelComplete_838510c.js",travelComplete_tangram:"/passApi/js/travelComplete_tangram_2518046.js",bindGuide:"/passApi/js/bindGuide_f80be0c.js",bindGuide_tangram:"/passApi/js/bindGuide_tangram_7d43ba9.js",accSetPwd:"/passApi/js/accSetPwd_186c928.js",accSetPwd_tangram:"/passApi/js/accSetPwd_tangram_b0faa5d.js",IDCertify:"/passApi/js/
6IDCertify_ff41a85.js",IDCertify_tangram:"/passApi/js/IDCertify_tangram_18a299c.js",secondCardList:"/passApi/js/secondCardList_ef70d54.js",secondCardList_tangram:"/passApi/js/secondCardList_tangram_639502d.js",secondCardVerify:"/passApi/js/secondCardVerify_9c47ec8.js",secondCardVerify_tangram:"/passApi/js/secondCardVerify_tangram_92a0874.js",IDCertifyQrcode:"/passApi/js/IDCertifyQrcode_b5c9aaa.js",IDCertifyQrcode_tangram:"/passApi/js/IDCertifyQrcode_tangram_0512364.js",loadingApi:"/passApi/js/loadingApi_ebe5699.js",loadingApi_tangram:"/passApi/js/loadingApi_tangram_f3f2dc0.js",loginWap:"/passApi/js/loginWap_ee77317.js",reg:"/passApi/js/reg_04dd386.js",reg_tangram:"/passApi/js/reg_tangram_7537955.js",regPhone:"/passApi/js/regPhone_fb11497.js",regPhone_tangram:"/passApi/js/regPhone_tangram_22d75ce.js",fillUserName:"/passApi/js/fillUserName_4c23e26.js",fillUserName_tangram:"/passApi/js/fillUserName_tangram_b05a5d9.js",qrcode:"/passApi/js/qrcode_416cda5.js",qrcode_tangram:"/passApi/js/qrcode_tangram_db346e7.js",realUserTag:"/passApi/js/realUserTag_58b6800.js",realUserTag_tangram:"/passApi/js/realUserTag_tangram_a8cb289.js",bind:"/passApi/js/bind_de05cdc.js",bind_tangram:"/passApi/js/bind_tangram_6564981.js",multiBind:"/passApi/js/multiBind_ac43193.js",multiBind_tangram:"/passApi/js/multiBind_tangram_09ef3af.js",multiUnbind:"/passApi/js/multiUnbind_a30f681.js",multiUnbind_tangram:"/passApi/js/multiUnbind_tangram_ae73334.js",changeUser:"/passApi/js/changeUser_666c9aa.js",changeUser_tangram:"/passApi/js/changeUser_tangram_43282c4.js",loginMultichoice:"/passApi/js/loginMultichoice_9b3a532.js",loginMultichoice_tangram:"/passApi/js/loginMultichoice_tangram_65f2117.js",confirmWidget:"/passApi/js/confirmWidget_7eb9dae.js",confirmWidget_tangram:"/passApi/js/confirmWidget_tangram_8b725b1.js",uni_rebindGuide:"/passApi/js/uni_rebindGuide_ebf33f6.js",uni_rebindGuide_tangram:"/passApi/js/uni_rebindGuide_tangram_18b338c.js",ucTravelComplete:"/passApi/js//ucTravelComplete.js",ucTravelComplete_tangram:"/passApi/js/ucTravelComplete_tangram_322345d.js"},d={login:o,ucTravelComplete:"/passApi/css/ucTravelComplete_329b943.css"},g=s+t;2===arguments.length&&(e=a),a&&a.tangramInst&&(passport.tangramInst=a.tangramInst),a&&a.defaultCss&&d[s]?passport.loadPass(d[s],function(){passport._use(g,c[g],e)}):passport._use(g,c[g],e)};; 7 passport.pop=passport.pop||{},passport.pop.multiBind=passport.pop.multiBind||function(i,n,t){function e(){var t=u.dialog,e=u.multiBind;n.show=function(){return n.reset(),t.show.call(t),i&&i.hunter&&window.Hunt&&window.Hunt.start("29680",{}),n},n.hide=function(){return t.hide.call(t),n},n.center=function(){return t._center.call(t),n},n.reset=function(){return e._validateSuccess({field:"userName"}),e._validateSuccess({field:"password"}),e._validateSuccess({field:"verifyCode"}),e.suggestionDom&&(e.suggestionDom.style.display="none"),n.center(),n},n.destroy=function(){for(var n=0,o=p.length;o>n;n++){var d=p[n];d.el.off(d.event,d.handler)}e.$dispose(),t.$dispose(),i&&i.onDestroy&&i.onDestroy()}}function o(){var n=u.dialog,t=u.multiBind;i&&i.onShow&&n.on("show",i.onShow),i&&i.onHide&&n.on("hide",function(){i.onHide&&i.onHide()}),i&&i.onSubmitStart&&t.on("beforeSubmit",i.onSubmitStart),i&&i.onMultiBindSuccess&&t.on("multiBindSuccess",i.onMultiBindSuccess),i&&i.onMultiBindEnd&&t.on("multiBindEnd",i.onMultiBindEnd),i&&i.onSubmitedErr&&t.on("multiBindError",i.onSubmitedErr),i&&i.onSystemErr&&t.on("onSystemErr",i.onSystemErr),i&&i.hunter&&window.Hunt&&n.on("hide",function(){window.Hunt.stop()})}function d(){passport.use("multiBind",{tangram:!1,tangramInst:i.tangram?baidu:null},function(n){i.apiOpt=i.apiOpt||{},g.init(n),e(),o(),t&&t()})}n._id=baidu.id()+"__";var a={pop:n._id+"pop",api:n._id+"api",dialog:n._id+"dialog"},s=function(i,n){var t=document.createElement("div");return t.id=i,n?t:document.body.appendChild(t)},u={},l={main:s(a.pop),dialog:s(a.dialog)},p=[],r=function(i,n,t){i.on(n,t),p.push({el:i,event:n,handler:t})},c={step_1:"<li>å¡«åä¸åå¨çç¨æ·åå°ä¸ºæ¨å¿«éæ³¨åæ°è´¦å·ï¼ä¸å½åææºè¿è¡å ³è</li>",step_2:'<li>å¿è®°å¯ç <a href="http://passport.baidu.com/?getpassindex" target="_blank">
7ç¹å»æ¤å¤</a>æ¾å</li><li>å ³èæååï¼æ¨çææå ³èè´¦å·å¯ç å°èªå¨ä¸å½åææºè´¦å·çå¯ç ç»ä¸</li>',step_3:"<li>å ³èæååï¼æ¨çææå ³èè´¦å·å¯ç å°èªå¨ä¸å½åææºè´¦å·çå¯ç ç»ä¸</li>",step_4:"<li>ææå ³èè´¦å·å¯ç ä¸è´ï¼éè¿ææºå³å¯ç´æ¥ç»å½</li>"},m=function(){var n=[];return n.push('<div class="clearfix">'),n.push('<div class="pass-multiBind-pop-content">'),n.push('<div class="pass-multiBind-pop-form">'),n.push('<div class="pass-multiBind-pop-info">'+(i.msg||"")+"</div>"),n.push('<div id="'+a.api+'"></div></div>'),n.push('<div class="pass-multiBind-pop-footer"><h4 class="footer-title">温馨æç¤ºï¼</h4><ul class="tips-content">'+c.step_1+"</ul></div>"),n.push("</div>"),n.push("</div>"),n.join("")},g={template:function(){l.dialog.innerHTML=m()},dialog:function(){u.dialog=new magic.Dialog({draggable:!0,className:"tang-pass-pop-multiBind",titleText:"å ³èè´¦å·",content:l.dialog,contentType:"element",width:393,height:"auto",mask:{enable:!0}}),u.dialog.render(l.main),u.dialog.hide(),u.dialog._center=function(){u.dialog.center(),u.dialog.setPosition({top:(baidu(window).height()-baidu(u.dialog.getElement()).height())/2+baidu(window).scrollTop()})},r(baidu(window),"resize",function(){u.dialog._center()})},multiBind:function(){function t(i){if(8==(/msie (\d+\.\d+)/i.test(navigator.userAgent)?document.documentMode||+RegExp.$1:void 0)){var n=i.keyCode;13==n&&(i.type="submit",e._eventHandler.entrance.apply(e,[i]))}}var e=u.multiBind=new this.apiMagic.passport.multiBind(i.apiOpt);e.on("needPassword",function(){baidu("#"+a.pop+" .tips-content").get(0).innerHTML=c.step_2}),e.on("newAccount",function(){baidu("#"+a.pop+" .tips-content").get(0).innerHTML=c.step_3}),e.on("warning",function(){baidu("#"+a.pop+" .pass-multiBind-pop-info").get(0).style.display="none"}),e.on("multiBindSuccess",function(){n.multiBindResult=!0,baidu("#"+a.pop+" .tips-content").get(0).innerHTML=c.step_4}),e.on("multiBindBeforeend",function(){baidu("#"+a.pop+" .pass-multiBind-pop-info").get(0).style.display="none"}),e.on("multiBindEnd",function(){u.dialog.hide()}),baidu(e.getElement("preBtn")).on("click",function(){baidu("#"+a.pop+" .pass-multiBind-pop-info").get(0).style.display="block"}),e.render(a.api),u.dialog._center(),e._ownerDialog=u.dialog,baidu(e.getElement("userName")).on("keydown",t),baidu(e.getElement("password")).on("keydown",t),baidu(e.getElement("verifyCode")).on("keydown",t)},init:function(i){this.apiMagic=i,this.template(),this.dialog(),this.multiBind()}};return d(),n};; 8})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.