!function(n,u){function r(t,e){var i,s;return this instanceof r?(i=t||(n&&n.navigator&&n.navigator.userAgent?n.navigator.userAgent:""),s=e?m.extend(b,e):b,this.getBrowser=function(){var t=v.rgx.apply(this,s.browser);return t.major=m.major(t.version),t},this.getCPU=function(){return v.rgx.apply(this,s.cpu)},this.getDevice=function(){return v.rgx.apply(this,s.device)},this.getEngine=function(){return v.rgx.apply(this,s.engine)},this.getOS=function(){return v.rgx.apply(this,s.os)},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return i},this.setUA=function(t){return i=t,this},this.setUA(i),this):new r(t,e).getResult()}var d="function",g="object",t="model",e="name",i="type",s="vendor",o="version",a="architecture",l="console",c="mobile",h="tablet",f="smarttv",p="wearable",m={extend:function(t,e){for(var i in e)-1!=="browser cpu device engine os".indexOf(i)&&e[i].length%2==0&&(t[i]=e[i].concat(t[i]));return t},has:function(t,e){return"string"==typeof t&&-1!==e.toLowerCase().indexOf(t.toLowerCase())},lowerize:function(t){return t.toLowerCase()},major:function(t){return"string"==typeof t?t.split(".")[0]:u}},v={rgx:function(){for(var t,e,i,s,n,r,o,a=0,l=arguments;a<l.length&&!r;){var c=l[a],h=l[a+1];if(void 0===t)for(s in t={},h)h.hasOwnProperty(s)&&(n=h[s],typeof n==g?t[n[0]]=u:t[n]=u);for(e=i=0;e<c.length&&!r;)if(r=c[e++].exec(this.getUA()))for(s=0;s<h.length;s++)o=r[++i],typeof(n=h[s])==g&&0<n.length?2==n.length?typeof n[1]==d?t[n[0]]=n[1].call(this,o):t[n[0]]=n[1]:3==n.length?typeof n[1]!=d||n[1].exec&&n[1].test?t[n[0]]=o?o.replace(n[1],n[2]):u:t[n[0]]=o?n[1].call(this,o,n[2]):u:4==n.length&&(t[n[0]]=o?n[3].call(this,o.replace(n[1],n[2])):u):t[n]=o||u;a+=2}return t},str:function(t,e){for(var i in e)if(typeof e[i]==g&&0<e[i].length){for(var s=0;s<e[i].length;s++)if(m.has(e[i][s],t))return"?"===i?u:i}else if(m.has(e[i],t))return"?"===i?u:i;return t}},w={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},b={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[e,o],[/\s(opr)\/([\w\.]+)/i],[[e,"Opera"],o],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]+)*/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]+)*/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium)\/([\w\.-]+)/i],[e,o],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[e,"IE"],o],[/(edge)\/((\d+)?[\w\.]+)/i],[e,o],[/(yabrowser)\/([\w\.]+)/i],[[e,"Yandex"],o],[/(comodo_dragon)\/([\w\.]+)/i],[[e,/_/g," "],o],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i,/(qqbrowser)[\/\s]?([\w\.]+)/i],[e,o],[/(uc\s?browser)[\/\s]?([\w\.]+)/i,/ucweb.+(ucbrowser)[\/\s]?([\w\.]+)/i,/JUC.+(ucweb)[\/\s]?([\w\.]+)/i],[[e,"UCBrowser"],o],[/(dolfin)\/([\w\.]+)/i],[[e,"Dolphin"],o],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[e,"Chrome"],o],[/XiaoMi\/MiuiBrowser\/([\w\.]+)/i],[o,[e,"MIUI Browser"]],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)/i],[o,[e,"Android Browser"]],[/FBAV\/([\w\.]+);/i],[o,[e,"Facebook"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[o,[e,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[o,e],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[e,[o,v.str,w.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[e,o],[/(navigator|netscape)\/([\w\.-]+)/i],[[e,"Netscape"],o],[/fxios\/([\w\.-]+)/i],[o,[e,"Firefox"]],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix)\/([\w\.-]+)/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]+)*/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[e,o]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[a,"amd64"]],[/(ia32(?=;))/i],[[a,m.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[a,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[a,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[a,/ower/,"",m.lowerize]],[/(sun4\w)[;\)]/i],[[a,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[a,m.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[t,s,[i,h]],[/applecoremedia\/[\w\.]+ \((ipad)/],[t,[s,"Apple"],[i,h]],[/(apple\s{0,1}tv)/i],[[t,"Apple TV"],[s,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[s,t,[i,h]],[/(kf[A-z]+)\sbuild\/[\w\.]+.*silk\//i],[t,[s,"Amazon"],[i,h]],[/(sd|kf)[0349hijorstuw]+\sbuild\/[\w\.]+.*silk\//i],[[t,v.str,w.device.amazon.model],[s,"Amazon"],[i,c]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[t,s,[i,c]],[/\((ip[honed|\s\w*]+);/i],[t,[s,"Apple"],[i,c]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|huawei|meizu|motorola|polytron)[\s_-]?([\w-]+)*/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[s,t,[i,c]],[/\(bb10;\s(\w+)/i],[t,[s,"BlackBerry"],[i,c]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7)/i],[t,[s,"Asus"],[i,h]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[s,"Sony"],[t,"Xperia Tablet"],[i,h]],[/(?:sony)?(?:(?:(?:c|d)\d{4})|(?:so[-l].+))\sbuild\//i],[[s,"Sony"],[t,"Xperia Phone"],[i,c]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[s,t,[i,l]],[/android.+;\s(shield)\sbuild/i],[t,[s,"Nvidia"],[i,l]],[/(playstation\s[34portablevi]+)/i],[t,[s,"Sony"],[i,l]],[/(sprint\s(\w+))/i],[[s,v.str,w.device.sprint.vendor],[t,v.str,w.device.sprint.model],[i,c]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[s,t,[i,h]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w+)*/i,/(alcatel|geeksphone|huawei|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]+)*/i],[s,[t,/_/g," "],[i,c]],[/(nexus\s9)/i],[t,[s,"HTC"],[i,h]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[t,[s,"Microsoft"],[i,l]],[/(kin\.[onetw]{3})/i],[[t,/\./g," "],[s,"Microsoft"],[i,c]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?(:?\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w+)*/i,/(XT\d{3,4}) build\//i,/(nexus\s[6])/i],[t,[s,"Motorola"],[i,c]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[t,[s,"Motorola"],[i,h]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n8000|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[s,"Samsung"],t,[i,h]],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-n900))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)*/i,/sec-((sgh\w+))/i],[[s,"Samsung"],t,[i,c]],[/(samsung);smarttv/i],[s,t,[i,f]],[/\(dtv[\);].+(aquos)/i],[t,[s,"Sharp"],[i,f]],[/sie-(\w+)*/i],[t,[s,"Siemens"],[i,c]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]+)*/i],[[s,"Nokia"],t,[i,c]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[t,[s,"Acer"],[i,h]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[s,"LG"],t,[i,h]],[/(lg) netcast\.tv/i],[s,t,[i,f]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w+)*/i],[t,[s,"LG"],[i,c]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[t,[s,"Lenovo"],[i,h]],[/linux;.+((jolla));/i],[s,t,[i,c]],[/((pebble))app\/[\d\.]+\s/i],[s,t,[i,p]],[/android.+;\s(glass)\s\d/i],[t,[s,"Google"],[i,p]],[/android.+(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus)?[\s_]*(?:\d\w)?)\s+build/i],[[t,/_/g," "],[s,"Xiaomi"],[i,c]],[/(mobile|tablet);.+rv\:.+gecko\//i],[[i,m.lowerize],s,t]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[o,[e,"EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[e,o],[/rv\:([\w\.]+).*(gecko)/i],[o,e]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[e,o],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*|windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[e,[o,v.str,w.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[e,"Windows"],[o,v.str,w.os.windows.version]],[/\((bb)(10);/i],[[e,"BlackBerry"],o],[/(blackberry)\w*\/?([\w\.]+)*/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]+)*/i,/linux;.+(sailfish);/i],[e,o],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]+)*/i],[[e,"Symbian"],o],[/\((series40);/i],[e],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[e,"Firefox OS"],o],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w+)*/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?([\w\.-]+)*/i,/(hurd|linux)\s?([\w\.]+)*/i,/(gnu)\s?([\w\.]+)*/i],[e,o],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[e,"Chromium OS"],o],[/(sunos)\s?([\w\.]+\d)*/i],[[e,"Solaris"],o],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]+)*/i],[e,o],[/(ip[honead]+)(?:.*os\s*([\w]+)*\slike\smac|;\sopera)/i],[[e,"iOS"],[o,/_/g,"."]],[/(mac\sos\sx)\s?([\w\s\.]+\w)*/i,/(macintosh|mac(?=_powerpc)\s)/i],[[e,"Mac OS"],[o,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]+)*/i,/(haiku)\s(\w+)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.]*)*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]+)*/i],[e,o]]};r.BROWSER={NAME:e,MAJOR:"major",VERSION:o},r.CPU={ARCHITECTURE:a},r.DEVICE={MODEL:t,VENDOR:s,TYPE:i,CONSOLE:l,MOBILE:c,SMARTTV:f,TABLET:h,WEARABLE:p,EMBEDDED:"embedded"},r.ENGINE={NAME:e,VERSION:o},r.OS={NAME:e,VERSION:o},n.UAInfo=r}("object"==typeof window?window:this);var AvatarDebug=!1,RP={options:{debug:!1,ns:"avt_",cookieDomain:"",permanentDays:3650},state:null,cookieEnabled:null,isCookieEnabled:function(){var t;return null==RP.cookieEnabled&&(null!=navigator.cookieEnabled?RP.cookieEnabled=navigator.cookieEnabled?1:0:(t="aaaaaa=",document.cookie=t,-1==document.cookie.indexOf(t)?RP.cookieEnabled=0:(RP.cookieEnabled=1,document.cookie=t+";expires="+new Date(0).toUTCString()))),RP.cookieEnabled},getCookieDomain:function(){RP.domainSet||RP.setCookieDomain();var t=RP.options.cookieDomain||document.domain;return t=-1==t?!1:t},setCookieDomain:function(t){var e=!1;t||(t=document.domain,e=!0);"www."===(t="."===t.substr(0,1)?t.substr(1):t).substr(0,4)&&e&&(t=t.substr(4));document.domain,t.split(".").length<4&&1<t.split(".").length?t="."+t:1==t.split(".").length&&(t=-1),RP.options.cookieDomain=t,RP.domainSet=!0,RP.debug("Cookie domain is: %s",t),RP.debug("---")},initializeStateManager:function(){RP.state||(RP.debug("initializing state manager..."),RP.state=new RP.stateManager)},registerStateStore:function(t,e){return RP.state.registerStore(t,e)},setState:function(t,e,i){return RP.state.set(t,e,i)},getState:function(t,e){return RP.state.get(t,e)},clearState:function(t,e){return RP.state.clear(t,e)},debug:function(t,e){AvatarDebug&&(window.console?console.log(t):e?location.hash+=t:location.hash=t)},stateManager:function(){RP.isCookieEnabled()?(this.agency=RP.cookie,this.persist=this.persistCookie,this.retrieve=this.retrieveCookie):window.localStorage&&(this.agency=RP.storage,this.persist=this.persistStorage,this.retrieve=this.retrieveStorage)}};RP.stateManager.prototype={agency:null,stores:{},storeMeta:{},registerStore:function(t,e){this.storeMeta[t]={expiration:e}},persist:function(){},persistStorage:function(t){var e=RP.util.serializeAssoc(this.stores[t]);this.agency.set(RP.options.ns+t,e,this.isPermanent(t))},persistCookie:function(t){var e=RP.util.serializeAssoc(this.stores[t]);this.agency.set(RP.options.ns+t,e,this.getExpirationDays(t),"/")},retrieve:function(){},retrieveStorage:function(t){return this.agency.get(RP.options.ns+t,this.isPermanent(t))},retrieveCookie:function(t){t=this.agency.get(RP.options.ns+t);return t[t.length-1]},erase:function(){},eraseStorage:function(t){this.agency.erase(RP.options.ns+t,this.isPermanent(t))},eraseCookie:function(t){this.agency.erase(RP.options.ns+t)},isPermanent:function(t){return this.storeMeta[t]&&!0===this.storeMeta[t].expiration},getExpirationDays:function(t){var e;return e=this.storeMeta.hasOwnProperty(t)&&!0===(e=this.storeMeta[t].expiration)?RP.options.permanentDays:e},isPresent:function(t){return!!this.stores.hasOwnProperty(t)||void 0},set:function(t,e,i){this.isPresent(t)||this.load(t),e?this.stores[t][e]=i:this.stores[t]=i,this.agency&&this.persist(t)},replaceStore:function(t,e){t&&e&&(this.stores[t]=e,this.agency)&&this.persist(t)},get:function(t,e){return this.isPresent(t)||this.load(t),e?this.stores[t].hasOwnProperty(e)?this.stores[t][e]:void 0:this.stores[t]},load:function(t){var e,i="";(i=this.agency&&(e=this.retrieve(t))?RP.util.parseAssoc(e):i)?this.stores[t]=i:(this.stores[t]={},RP.debug("No state for store: %s was found. Nothing to Load.",t))},clear:function(t,e){var i;e?(i=this.get(t))&&i.hasOwnProperty(e)&&(delete i[e],this.replaceStore(t,i)):(delete this.stores[t],this.agency&&this.erase(RP.options.ns+t))}},RP.storage={getStorage:function(t){return window[t?"localStorage":"sessionStorage"]},set:function(t,e,i){RP.storage.getStorage(i).setItem(t,e)},get:function(t,e){return RP.storage.getStorage(e).getItem(t)},erase:function(t,e){RP.storage.getStorage(e).removeItem(t)},eraseMultiples:function(t,e){for(var i=0;i<t.length;i++)RP.storage.erase(t[i],e)}},RP.cookie={Cache:null,set:function(t,e,i,s,n){i&&(r=new Date).setTime(r.getTime()+24*i*60*60*1e3);var r,o=RP.getCookieDomain();document.cookie=t+"="+escape(e)+(i?"; expires="+r.toGMTString():"")+(s?"; path="+s:"")+(o?"; domain="+o:"")+(n?"; secure":"")},readAlls:function(){RP.debug("Reading all cookies...");var t=RP.cookie.Cache={},e=document.cookie.split(";");if(e){RP.debug(document.cookie);for(var i=0;i<e.length;i++){var s=RP.util.trim(e[i]),n=RP.util.strpos(s,"="),r=s.substring(0,n),n=s.substring(n+1,s.length);t.hasOwnProperty(r)||(t[r]=[]),t[r].push(unescape(n))}return t}},get:function(t,e){RP.debug("Attempting to read cookie: %s",t);e=e&&RP.cookie.Cache?RP.cookie.Cache:RP.cookie.readAlls();return e.hasOwnProperty(t)?e[t]:""},erase:function(t,e){var i;RP.debug(document.cookie),e=e||RP.getCookieDomain(),RP.debug("erasing cookie: "+t+" in domain: "+e),RP.cookie.set(t,"",-1,"/",e),RP.cookie.get(t)&&(i=e.substr(0,1),RP.debug("period: "+i),"."===i?(i=e.substr(1),RP.debug("erasing "+t+" in domain2: "+i),RP.cookie.set(t,"",-2,"/",i)):(RP.debug("erasing "+t+" in domain3: "+e),RP.cookie.set(t,"",-2,"/",e)))},eraseMultiples:function(t,e){for(var i=0;i<t.length;i++)RP.cookie.erase(t[i],e)}},RP.util={params:null,getUrlParam:function(){if(!RP.util.params)for(var t,e,i,s,n,r,o=RP.util.params={},a=location.href.split(/[?&]/),l=a.length,c=1;c<l;c++)if((i=a[c].match(/(.*?)(\..*?|\[.*?\])?=([^#]*)/))&&4==i.length){if(s=decodeURI(i[1]).toLowerCase(),n=o,r=decodeURI(i[3]),i[2])for(e=decodeURI(i[2]).replace(/\[\s*\]/g,"[-1]").split(/[\.\[\]]/),t=0;t<e.length;t++)n=n[s]||(n[s]=parseInt(e[t])==e[t]?[]:{}),s=e[t].replace(/^["\'](.*)["\']$/,"$1");"-1"!=s?n[s]=r:n[n.length]=r}return RP.util.params[key]},strpos:function(t,e,i){t=(t+"").indexOf(e,i||0);return-1!==t&&t},parseAssoc:function(t){var e,i,s=new Object,n=unescape(t).split("|||");for(e in n)n.hasOwnProperty(e)&&(s[(i=n[e].split("=>"))[0]]=i[1]);return s},serializeAssoc:function(t){var e,i="";for(e in t)i+=e+"=>"+t[e],i+="|||";return i=i.length?i.substr(0,i.length-3):i},stripWwwFromDomain:function(t){return"www"===t.split(".")[0]?t.substring(4):t},trim:function(t,e){var i,s=0,n=0;for(t+="",i=e?(e+="").replace(/([\[\]\(\)\.\?\/\*\{\}\+\$\^\:])/g,"$1"):" \n\r\t\f\v            ​\u2028\u2029　",s=t.length,n=0;n<s;n++)if(-1===i.indexOf(t.charAt(n))){t=t.substring(n);break}for(n=(s=t.length)-1;0<=n;n--)if(-1===i.indexOf(t.charAt(n))){t=t.substring(0,n+1);break}return-1===i.indexOf(t.charAt(0))?t:""},rand:function(t,e){var i=arguments.length;if(0===i)t=0,e=2147483647;else if(1===i)throw new Error("Warning: rand() expects exactly 2 parameters, 1 given");return Math.floor(Math.random()*(e-t+1))+t},getHost:function(t){return t.match(/^https?:\/\/([\w-.]+)(:\d+)?\//i)[1]},isLowIE:function(){var t=document.all&&RP.util.getInternetExplorerVersion()<9;return RP.util.isLowIE=function(){return t},t},getInternetExplorerVersion:function(){var t,e,i=100;return i="Microsoft Internet Explorer"==navigator.appName&&(e=navigator.userAgent,null!=(t=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})")).exec(e)&&(i=parseFloat(RegExp.$1)),e=e.match(t))?parseFloat(e[1]):i}},RP.evt=function(){this.properties={},this.set("ts",RP.util.getTimeStamp())},RP.evt.prototype={get:function(t){return this.properties.hasOwnProperty(t)?this.properties[t]:void 0},set:function(t,e){this.properties[t]=e},setEventType:function(t){this.set("evt_type",t)},getProperties:function(){return this.properties},merge:function(t){for(param in t)t.hasOwnProperty(param)&&this.set(param,t[param])},isSet:function(t){return!!this.properties.hasOwnProperty(t)||void 0}},RP.tracker=function(t){if(this.options={repeatAfterFail:0,userStoreName:"v",sessionStoreName:"s",sessionLength:1800,cookieDomain:!1,serverUrl:"",maxLengthForGet:2e3},t)for(var e in t)this.options[e]=t[e];this.startTime=RP.util.getTimeStamp(),RP.registerStateStore(this.options.userStoreName,!0),RP.registerStateStore(this.options.sessionStoreName,null),this.page=new RP.evt},RP.tracker.prototype={id:"",siteId:"",init:0,globalEventProperties:{},startTime:null,isNewSessionFlag:!1,setDebug:function(t){RP.options.debug=t},getCurrentUrl:function(){return document.URL},_assembleRequestUrl:function(t){var e=this.getLoggerEndpoint();return(e+=-1===e.indexOf("?")?"?":"&")+t},getIframeDocument:function(t){var e=null;return t.contentDocument?e=t.contentDocument:t.contentWindow&&t.contentWindow.document?e=t.contentWindow.document:t.document&&(e=t.document),null==e&&RP.debug("Document not found, append the parent element to the DOM before creating the IFrame"),e.open(),e.close(),e},inferTrafficAttribution:function(){var t,e,i=document.referrer;i&&(e=RP.util.getHost(i),document.domain!=e)&&(t=RP.util.stripWwwFromDomain(e)),RP.setState(this.options.sessionStoreName,"source",t||"direct"),this.setGlobalEventProperty("source",t||"direct"),t?(RP.setState(this.options.sessionStoreName,"pref",""),this.setGlobalEventProperty("pref","")):(e=RP.getState(this.options.sessionStoreName,"ref"),RP.setState(this.options.sessionStoreName,"pref",e),this.setGlobalEventProperty("pref",e)),RP.setState(this.options.sessionStoreName,"ref",i||""),this.setGlobalEventProperty("ref",i||""),this.setGlobalEventProperty("url",location.href)},setNumberPriorSessions:function(){RP.debug("setting number of prior sessions");var t=(t=RP.getState(this.options.userStoreName,"nps"))||"0";!0===this.isNewSessionFlag&&(t=+t,RP.setState(this.options.userStoreName,"nps",++t,!0)),this.setGlobalEventProperty("nps",t)},setVisitorId:function(){var t=RP.getState(this.options.userStoreName,"vid");t||(t=RP.util.generateRandomGuid(15),this.globalEventProperties.newv=!0,RP.setState(this.options.userStoreName,"vid",t),RP.debug("Creating new visitor id")),this.setGlobalEventProperty("vid",t)},setFirstSessionTimestamp:function(){var t=RP.getState(this.options.userStoreName,"fsts"),t=(t||(t=this.page.get("ts"),RP.debug("setting fsts value: %s",t),RP.setState(this.options.userStoreName,"fsts",t,!0)),this.setGlobalEventProperty("fsts",t),Math.round((this.page.get("ts")-t)/86400));RP.setState(this.options.userStoreName,"dsfs",t),this.setGlobalEventProperty("dsfs",t)},setLastRequestTime:function(){var t=RP.getState(this.options.sessionStoreName,"lsts");RP.debug("lsts from cookie: %s",t),RP.debug("setting lsts global property of %s",t),this.setGlobalEventProperty("lsts",t),RP.setState(this.options.sessionStoreName,"lsts",this.page.get("ts"),!0)},setSessionId:function(){var t,e="";this.isNewSession(this.page.get("ts"),this.getGlobalEventProperty("lsts"))?((t=RP.getState(this.options.sessionStoreName,"sid"))&&(this.globalEventProperties.psid=t),this.resetSessionState(),e=RP.util.generateRandomGuid10(10),this.globalEventProperties.sid=e,this.globalEventProperties.news=!0,this.isNewSessionFlag=!0,RP.setState(this.options.sessionStoreName,"sid",e,!0)):(e=RP.getState(this.options.sessionStoreName,"sid"),this.globalEventProperties.sid=e),this.getGlobalEventProperty("sid")||(this.resetSessionState(),e=RP.util.generateRandomGuid10(20),this.globalEventProperties.sid=e,this.globalEventProperties.news=!0,this.isNewSessionFlag=!0,RP.setState(this.options.sessionStoreName,"sid",e,!0))},resetSessionState:function(){var t=RP.getState(this.options.sessionStoreName,"lsts");RP.clearState(this.options.sessionStoreName),RP.setState(this.options.sessionStoreName,"lsts",t)},isNewSession:function(t,e){return((t=t||RP.util.getTimeStamp())-(e=e||0))/1e3<this.options.sessionLength?(RP.debug("This request is part of a active session."),!1):(RP.debug("This request is the start of a new session. Prior session expired."),!0)},getGlobalEventProperty:function(t){return this.globalEventProperties[t]},setGlobalEventProperty:function(t,e){this.globalEventProperties[t]=e},deleteGlobalEventProperty:function(t){this.globalEventProperties.hasOwnProperty(t)&&delete this.globalEventProperties[t]},setPageProperties:function(t){for(var e in t)t.hasOwnProperty(e)&&this.page.set(e,t[e])},addGlobalPropertiesToEvent:function(t,e){for(var i in this.globalEventProperties)this.globalEventProperties.hasOwnProperty(i)&&!t.isSet(i)&&t.set(i,this.globalEventProperties[i])}},function(u,n){function s(t,e,i,s){this.ctnr=t,this.handler=e,this.ctx=s,i.ratio&&0<i.ratio&&(1<i.ratio&&(i.ratio=1),this.minRatio=i.ratio),i.irregular&&(this.irregular=i.irregular,this.initItemHt=this.initItemHtIrg,this.getMaxIndex=this.getMaxIndexIrgOrDesc,this.initItemDimen=this.initItemDimenIrgOrDesc,this.initEffectiveHt=this.initEffectiveHtIrgOrDesc),i.subSelector&&(this.subSelector=i.subSelector,this.getMaxIndex=this.getMaxIndexIrgOrDesc,this.initItemDimen=this.initItemDimenIrgOrDesc,this.initEffectiveHt=this.initEffectiveHtIrgOrDesc,this.calcItemHt=this.calcItemHtDescReg),this.init()}var r="Avatar",o="uuid";Function.prototype.bind||(Function.prototype.bind=function(t){var e=this;return function(){e.apply(t,arguments)}}),Array.prototype.indexOf||(Array.prototype.indexOf=function(t){for(var e=0,i=this.length;e<i;e++)if(this[e]===t)return e;return-1});var a,t,l=function(t,e){(l=document.body.classList?function(t,e){return t.classList.contains(e)}:function(t,e){return new RegExp("(s|^)"+e+"(s|$)").test(t.className)})(t,e)},e=window.getComputedStyle?function(t,e){return window.getComputedStyle(t).getPropertyValue(e)}:function(t,e){-1<(i=e.indexOf("-"))&&(r=e[i+1])&&(e=e.substr(0,i)+r.toUpperCase()+e.substr(i+2));var i,s,n,r=t.currentStyle[e];return/^[+-]?(\d+\.|)\d+(?!px)[\w%]*$/.test(r)&&(e=t.style,i=t.runtimeStyle,s=e.left,(n=i&&i.left)&&(i.left=t.currentStyle.left),e.left=r,r=e.pixelLeft,e.left=s,n)&&(rsStyle.left=n),r},h=("object"==typeof u[r]&&u[r]instanceof Array&&(a=u[r].slice(),u[r]=null),{click:function(t,e,i){var s,n,r,o,i=i.throttle;(i=i||c.config.throttle.get())&&(s=t,n=e,r=i,o=0,e=function(){var t=(new Date).getTime();r<t-o&&(o=t,n.apply(s,arguments))}),RP.util.addEvent(t,"click",e)},show:function(t,e,i){document.querySelectorAll&&ScrollShow.add(t,e,i)}}),c=(ScrollShow={listening:!1,scrollHdlr:null,resizer:null,closeHdlr:null,handler:null,items:[],pollTimer:null,scrollTimer:null,maxTop:0,winHt:0,docHt:0,pollInterval:1500,listen:function(){this.scrollHdlr||(this.scrollHdlr=this.scroll.bind(this),this.closeHdlr=this.close.bind(this),this.resizer=this.resize.bind(this),this.poller=this.poll.bind(this),this.bodyMargin=parseFloat(e(document.body,"margin-top")),isNaN(this.bodyMargin)&&(this.bodyMargin=0)),this.pollTimer||(this.pollTimer=window.setInterval(this.poller,this.pollInterval)),RP.util.addEvent(window,"resize",this.resizer),this.resize(),document.all?RP.util.addEvent(window,"scroll",this.scrollHdlr):RP.util.addEvent(document,"scroll",this.scrollHdlr),this.scroll(),c.registerCloseHandler(this.closeHdlr),this.listening=!0},stopListen:function(){RP.util.detachEvent(document,"scroll",this.scrollHdlr),RP.util.detachEvent(window,"resize",this.resizer),c.removeCloseHandler(this.closeHdlr),this.listening=!1},terminate:function(){this.listening&&this.stopListen(),window.clearInterval(this.pollTimer),this.pollTimer=null},add:function(t,e,i){this.listening||this.listen();t=new s(t,e,i,this);this.items.push(t)},resize:function(t){var e=document.documentElement.clientHeight;this.winHt!=e&&(this.winHt=e,this.top=this.maxTop=document.body.scrollTop||document.documentElement.scrollTop,this.visualChanged=!0)},scroll:function(){this.top=document.body.scrollTop||document.documentElement.scrollTop,this.top>this.maxTop&&(this.maxTop=this.top,this.visualChanged=!0)},poll:function(){for(var t,e=0,i=this.items.length;e<i;e++)(n=this.items[e]).checkLive()?!t&&n.getCheckHeight()&&((t=n).height=-1):(this.items.splice(e,1),e--,i--);var s=document.body.scrollHeight;if(!i)return this.terminate();if(t){s<this.docHt&&(this.top=this.maxTop=document.body.scrollTop||document.documentElement.scrollTop);for(e=0,i=this.items.length;e<i;e++)(n=this.items[e]).getCheckTop()}this.docHt=s;for(var n,r=0,e=0,i=this.items.length;e<i;e++)((n=this.items[e]).isEmpty()||(n.checkContent()?(n.initState(),n.getCheckVisual()&&n.process()):!n.isDone()&&(t||this.visualChanged)&&n.getCheckVisual()&&n.process(),n.isDone()))&&r++;this.visualChanged=!1,r==i?this.listening&&this.stopListen():this.listening||this.listen()},close:function(){window.clearInterval(this.pollTimer),this.poll()}},{worker:null,system:null,loadHandler:null,unloadHandler:null,clickHandler:null,preloadTrackers:[],trackerList:[],occuredEvents:[],closeHandlers:[],leaving:!(s.prototype={ctnr:null,handler:null,ctx:null,doneIndex:-1,height:0,visibleHt:0,itemHt:0,itemHtMrg:0,invalidHtTop:0,topPadding:0,offsetTop:0,itemMargin:null,descendents:null,keyDisplay:"SS_DP",keyHt:"SS_HT",keyOffsetTop:"SS_TP",keyUpper:"SS_UP",keyMinUpper:"SS_MP",keyIndex:"SS_INDEX",minRatio:.5,fillList:function(){this.descendents=this.ctnr.querySelectorAll(this.subSelector)},getCount:function(){return this.descendents?this.descendents.length:this.ctnr.childElementCount||this.ctnr.children.length},getList:function(){return this.descendents||this.ctnr.children},isEmpty:function(){return!this.height||!this.getCount()},isDone:function(){return this.doneIndex+1==this.getCount()},init:function(){"static"==e(this.ctnr,"position")&&(this.ctnr.style.position="relative"),this.initState(),this.getCheckTop(),this.getCheckHeight(),this.removed=!1,this.getCount()&&this.getCheckVisual()&&this.process()},initState:function(){this.subSelector&&this.fillList(),this.getCount()&&(this.seekDoneIndex(),(this.descendents||this.irregular)&&this.initOffsetTop(),this.initItemDimen(),this.initEffectiveHt())},initOffsetTop:function(){for(var t=this.getList(),e=0,i=t.length;e<i;e++)this.setOffsetTop(t[e])},getCheckTop:function(){for(var t=this.ctnr,e=0;e+=t.offsetTop,(t=t.offsetParent)&&t!=document.body;);return(e+=this.ctx.bodyMargin)!=this.offsetTop&&(this.offsetTop=e,!0)},getCheckHeight:function(){var t=this.ctnr.clientHeight;return this.height!=t&&(this.height=t,this.descendents&&this.fillList(),!0)},initEffectiveHtIrgOrDesc:function(){var t=this.getList(),t=t[t.length-1];this.effectiveHt=t[this.keyUpper]},initEffectiveHt:function(){var t=this.getList(),t=t[t.length-1];this.effectiveHt=t.offsetTop+this.itemHt},seekDoneIndex:function(){var t=this.getCount();this.doneIndex=t-1;for(var e=this.getList(),i=0;i<t;i++)if(!e[i][this.keyDisplay]){this.doneIndex=i-1;break}},checkDoneIndex:function(){var t;return-1<this.doneIndex&&(!(t=this.getList())[this.doneIndex]||!t[this.doneIndex][this.keyDisplay])},checkLive:function(){return document.body.contains(this.ctnr)},checkContent:function(){return this.getCheckHeight()||this.checkDoneIndex()},initItemDimen:function(){null==this.itemMargin&&this.getItemMargin(),this.itemHt||this.initItemHt()},initItemDimenIrgOrDesc:function(){this.initItemHt();for(var t=this.getList(),e=0,i=t.length;e<i;e++){var s=t[e],n=this.getItemHt(s);s[this.keyMinUpper]=s[this.keyOffsetTop]+n*this.minRatio,s[this.keyUpper]=s[this.keyOffsetTop]+n}this.visibleHt=this.invalidHtTop=t[0][this.keyMinUpper]},getItemHt:function(t){return this.itemHt||t[this.keyHt]},initItemHt:function(){this.calcItemHt();for(var t=this.getList()[0],e="IMG"==t.tagName?[t]:t.getElementsByTagName("img"),i=this.calcItemHt.bind(this),s=0,n=e.length;s<n;s++)e[s].onload=i},initItemHtIrg:function(){for(var t=this.getList(),e=0,i=t.length;e<i;e++){var s=t[e];s[this.keyHt]=s.offsetHeight}},calcItemHt:function(){var t=this.ctnr.firstElementChild||this.ctnr.children[0],t=(this.itemHt=t.offsetHeight,t.offsetTop);this.topPadding=t-this.itemMargin,this.evenMinHt=this.itemHt*this.minRatio,this.evenMinHtMrg=this.evenMinHt+this.itemMargin,this.visibleHt=this.invalidHtTop=this.evenMinHt+t,this.itemHtMrg=this.itemHt+this.itemMargin},calcItemHtDescReg:function(){this.itemHt=this.getList()[0].offsetHeight},getItemMargin:function(){var t=e(this.ctnr.firstElementChild||this.ctnr.children[0],"margin-top");t&&(t=parseFloat(t),this.itemMargin=t),(t=e(this.ctnr.firstElementChild||this.ctnr.children[0],"margin-bottom"))&&(t=parseFloat(t))>this.itemMargin&&(this.itemMargin=t)},setOffsetTop:function(t){for(var e=0,i=t;e+=i.offsetTop,(i=i.offsetParent)&&i!=this.ctnr;);t[this.keyOffsetTop]=e},getMaxIndexIrgOrDesc:function(){var t=this.getList(),e=t[this.doneIndex];if(e&&this.visibleHt<=e[this.keyUpper])return this.doneIndex;for(var i=this.doneIndex+1,s=t.length;i<s;i++)if((e=t[i])[this.keyMinUpper]>=this.visibleHt)return this.visibleHt=e[this.keyMinUpper],i-1;return this.visibleHt=this.effectiveHt,s-1},getMaxIndex:function(){var t=(this.visibleHt-this.topPadding)/this.itemHtMrg,e=Math.floor(t);return this.itemHtMrg*(t-e)>this.evenMinHtMrg&&e++,e==this.getCount()?this.visibleHt=this.effectiveHt:this.visibleHt=this.itemHtMrg*e+this.evenMinHtMrg+this.topPadding,e-1},getCheckVisual:function(){var t=this.ctx.winHt+this.ctx.maxTop-this.offsetTop;return t<this.invalidHtTop?t=this.invalidHtTop:t>this.effectiveHt&&(t=this.effectiveHt),t>this.visibleHt&&(this.visibleHt=t,!0)},process:function(){var t=this.getMaxIndex();if(t>this.doneIndex){var e=this.doneIndex+1;if(document.all)for(var i=[],s=this.getList(),n=e;n<=t;n++)i.push(s[n]);else i=Array.prototype.slice.call(this.getList(),e,t+1);for(var n=0,r=i.length;n<r;n++)i[n][this.keyIndex]=e+n,i[n][this.keyDisplay]=!0;this.handler({target:i}),this.doneIndex=t}}}),setuped:!1,config:{delay:{val:100,get:function(){return this.val},set:function(t){this.val=t}},appKey:{val:"ak",get:function(){return this.val},set:function(t){this.val=t}},throttle:{val:0,get:function(){return this.val},set:function(t){this.val=t}},startTime:{val:0,get:function(){return this.val},set:function(t){this.val=t}},trackStayTime:{val:!0,get:function(){return this.val},set:function(t){this.val=t}},pageId:{get:function(){return c.config.PVInfo.val.EVENT_ACTION},set:function(t){c.config.PVInfo.val.EVENT_ACTION=t}},PVInfo:{val:{},init:function(){this.val.ref=c.getDeepRef(),this.val.ua=navigator.userAgent,this.val.EVENT_ACTION=encodeURIComponent(window.location.pathname.substring(1)).substring(0,100)||"-"},get:function(){return this.val},set:function(t){for(var e in t)this.val[e]=t[e]}},channel:{val:null,get:function(){return this.val},set:function(t){this.val=t}},versionName:{val:"-",get:function(){return this.val},set:function(t){this.val=t}},deviceId:{val:null,get:function(){return this.val},set:function(t){this.val=t}},versionCode:{val:0,get:function(){return this.val},set:function(t){this.val=t}},deviceModel:{val:null,get:function(){return this.val},set:function(t){this.val=t}},manufacturer:{val:null,get:function(){return this.val},set:function(t){this.val=t}},cookieDomain:{init:function(){this.set()},get:function(){return RP.options.cookieDomain},set:function(t){RP.setCookieDomain(t)}},serverUrl:{init:function(){this.set(("https:"==document.location.protocol?"https":"http")+"://osfsr.lenovomm.com/reaper/server/image2/_t.gif")},get:function(){return c.worker.options.serverUrl},set:function(t){c.worker.options.serverUrl=t}},session:{init:function(){this.set(1800)},get:function(){return c.worker.options.sessionLength},set:function(t){c.worker.options.sessionLength=t}},getLimit:{init:function(){this.set(2036)},get:function(){return c.worker.options.maxLengthForGet},set:function(t){c.worker.options.maxLengthForGet=t}},repeat:{init:function(){this.set(3)},get:function(){return c.worker.options.repeatAfterFail},set:function(t){c.worker.options.repeatAfterFail=t}},events:{val:null,get:function(){return this.val},set:function(t){this.val=t}},init:{val:null,get:function(){return this.val},set:function(t){this.val=t}}},dataTpl:{ak:"",di:{DEVICE_ID_TYPE:"",DEVICE_ID:"",CHANNEL:"",OS_VERSION:"",DEVICE_MODEL:"",MANUFACTURER:"",RESOLUTION:"",IMSI:"",VERSION_NAME:"",VERSION_CODE:""},wi:{USER_UUID:"vid",SESSION_ID:"sid",LOGIN_NAME:"",PAGE_TYPE:"page_type",VISIT_TIME_DIFF:"dif",LOG_TIME:"ts",RESIDENCE_TIME:"residence_time",VISIT_URI:"url",VISIT_SERIAL:"serial",SOURCE_WAY:"source",OTHERS:"extraWebInfo"},ci:null,bi:{BROWSER_NAME:"",BROWSER_VS:"",COOKIES_ENABLED:"",USER_LANGUAGE:""}},getOption:function(t){return t?this.config[t].get(this):void 0},setOption:function(t,e,i){switch(t){case"appKey":e=RP.util.zeroFill(e,12,"_"),this.dataTpl.ak=e,i||this.trackPageView();break;case"trackStayTime":i||(e?this.addLogClose():this.removeLogClose())}this.config[t]&&this.config[t].set(e,this)},setOptions:function(t,e){for(var i in t)this.setOption(i,t[i],e)},getState:function(t,e){return RP.getState(t,e)||""},getProperty:function(t){return this.worker.getGlobalEventProperty(t)||""},setup:function(t){RP.initializeStateManager(),this.worker||this.createWorker();var e,i=this.config;for(e in i)i[e].init&&i[e].init();t?this.setOptions(t,!0):RP.debug("config is not supplied"),this.system=(new UAInfo).getResult(),this.initDataGlobal();t=this.config.init.get(),t&&t(),t=this.config.startTime.get();t&&(this.worker.startTime=t,this.worker.page.set("ts",t)),this.unloadHandler=this.onClose.bind(this),RP.util.addEvent(u,"beforeunload",this.unloadHandler),this.preloadTrackers.length&&this.applyPreload(),this.setuped=!0,this.config.trackStayTime.get()&&this.addLogClose(),this.trackPageView(),t&&this.initLoadEvent(),this.handleOccuredEvents()},handleOccuredEvents:function(){var t=this.config.events.get(),e=0;if(t)for(var i in t)t[i]&&(t[i].remover&&t[i].remover(),t[i].list&&t[i].list.length?e++:delete t[i]);if(e){var s=this.trackerList;if(s.length)for(var n=0,r=s.length;n<r;n++){var o=s[n],a=o[0],l=o[1];for(i in t)if(l[i])for(var c=t[i].list,h=0,u=c.length;h<u;h++){var d=c[h];a.contains(d.target)&&l[i](d)}}}},applyPreload:function(){for(var t=this.preloadTrackers,e=0,i=t.length;e<i;e++){var s=t[e];this.apply.apply(this,s)}},createWorker:function(){var t=this.worker=new RP.tracker;t.manageState(),t.inferTrafficAttribution(),this.initEvent(t.page)},getUserId:function(){return this.worker||this.createWorker(),this.worker.setVisitorId(),this.getProperty("vid")},getDeepRef:function(){return encodeURI(location.href+"^"+this.getProperty("ref")+"^"+this.getProperty("pref"))},createCustomInfo:function(t,e){var i,e={category:null!=e.category?e.category:"",action:null!=e.action?e.action:"",label:null!=e.label?e.label:"",params:null!=e.params?e.params:{},value:null!=e.value?e.value:""},s=5,n=e.params;for(i in n)s--;for(;0<s;)n["k"+s]="",s--;t.set("ci",e)},getReferrerInfo:function(){var t,e=[["Google","q",/\.google\./],["Yahoo!","p",/search\.yahoo\./],["MSN","q",/\.msn\./],["Live","q",/\.live\./],["AlltheWeb","q",/\.alltheweb\./],["AOL","query",/\.aol\./],["Ask","q",/\.ask\./],["AltaVista","q",/\.altavista\./],["BBC","q",/\.bbc\./],["HotBot","query",/\.hotbot\./],["Lycos","query",/\.lycos\./],["Bing","q",/bing\./],["Daum","q",/\.daum\./],["Eniro","search_word",/\.eniro\./],["Naver","query",/\.naver\./],["About","terms",/\.about\./],["Mamma","query",/\.mamma\./],["Alltheweb","q",/\.alltheweb\./],["Voila","rdata",/\.voila\./],["Baidu","wd",/\.baidu\./],["Alice","qs",/\.alice\./],["Yandex","text",/\.yandex\./],["Search","q",/\.search\./],["PCHome","q",/\.pchome\./],["Ozu","q",/\.ozu\./],["Terra","query",/\.terra\./],["Mynet","q",/\.mynet\./],["Ekolay","q",/\.ekolay\./],["Rambler","words",/\.rambler\./]],i="",s="",n=window.decodeURI?window.decodeURI(document.referrer):document.referrer;if(n&&""!==n)if(n.match("://"+window.location.host+"[^w]"))n="";else for(var r=0;r<e.length;r++)n.match(e[r][2])&&((t=n.match(e[r][1]+"=([^&$]{2,})"))&&(i=t[1]),s=e[r][0]);else n="";return[s,i]},initDataGlobal:function(){var t=this.dataTpl,e=t.di,i=(e.DEVICE_ID_TYPE=o,e.DEVICE_ID=this.config.deviceId.get(),e.DEVICE_ID||(e.DEVICE_ID=this.getUserId(),e.DEVICE_ID_TYPE=o),e.RESOLUTION=u.screen.width+"x"+u.screen.height,e.OS_VERSION=this.system.os.name,this.system.os.version&&(e.OS_VERSION+=" "+this.system.os.version),e.DEVICE_MODEL=this.config.deviceModel.get(),e.DEVICE_MODEL||(this.system.device.model?(i=this.system.device.vendor||"",e.DEVICE_MODEL=i+" "+this.system.device.model):(e.DEVICE_MODEL=this.system.browser.name,this.system.browser.version&&(e.DEVICE_MODEL+=" "+this.system.browser.version))),e.DEVICE_MODEL||(e.DEVICE_MODEL="unknown"),e.CHANNEL=this.config.channel.get(),e.VERSION_NAME=this.config.versionName.get(),e.VERSION_CODE=this.config.versionCode.get(),t.diStr=this.stringifyData(e),t.bi);i.USER_LANGUAGE=navigator.language||navigator.browserLanguage||"?",i.COOKIES_ENABLED=RP.isCookieEnabled(),i.BROWSER_NAME=this.system.browser.name,i.BROWSER_VS=this.system.browser.version,t.biStr=this.stringifyData(i)},stringifyData:function(t){var e,i="";for(e in t){var s=t[e];if(s instanceof Array){for(var n="",r=0,o=s.length;r<o;r++)n+=""+(null==s[r]?"":RP.util.encodeChinese(s[r]));i+=""+(n=n.substr(1))}else if(s instanceof Object){var a,n="";for(a in s)n+=""+a+""+(null==s[a]?"":RP.util.encodeChinese(s[a]));i+=""+(n=n.substr(1))}else i+=""+(null==t[e]?"":RP.util.encodeChinese(t[e]))}return i.substr(1)},fillWebInfo:function(t){var e,i=t.wi={},s=this.dataTpl.wi;for(e in s)i[e]=t[s[e]];i.LOGIN_NAME=i.OTHERS.uid},patch:function(){for(var t in p)RP.util[t]=p[t];for(var t in f)RP.tracker.prototype[t]=f[t];var e;if(a)for(var t=0,i=a.length;t<i;t++)"[object Object]"==Object.prototype.toString.call(a[t])?(e=a[t],this.setup(e)):this.push(a[t])},push:function(e){var t,i=u[r];if(e instanceof Array)i[e[0]]&&"function"==typeof i[e[0]]?t=i:this.worker?this.worker[e[0]]&&"function"==typeof this.worker[e[0]]&&(t=this.worker):RP.debug("Please setup first."),t&&t[e[0]].apply(t,e.slice(1));else if("object"==typeof e)this.setup(e);else if("function"==typeof e)try{e()}catch(t){RP.debug("function failed: "+t+"==="+e.toString())}},destroy:function(){RP.util.detachEvent(u,"load",this.loadHandler),RP.util.detachEvent(u,"unload",this.unloadHandler),delete u.Avatar},loadTrackers:function(t){for(var e=0,i=(t=t instanceof Array?t:[t]).length;e<i;e++)this.loadTracker(t[e])},loadTracker:function(t){var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src=t,document.head.appendChild(e)},trackPageView:function(){var t=this.worker.page;t.set("page_type",2),this.worker.trackEvent(t)},initEvent:function(t){var e=this.config.PVInfo.get(),i=this.getReferrerInfo();e.username=RP.cookie.get("avatar_account"),e.uid=RP.cookie.get("avatar_name"),e.engine=i[0],e.query=i[1],t.set("extraWebInfo",e)},initLoadEvent:function(){function e(){s&&(s=!1,e=function(){},i.logLoadTime())}var t,i=this,s=!0;if(n.addEventListener){if("interactive"===n.readyState||"complete"===n.readyState||"loaded"===n.readyState)return e();n.addEventListener("DOMContentLoaded",function t(){n.removeEventListener("DOMContentLoaded",t,!1),e()},!1)}else if(n.attachEvent){if("complete"===n.readyState)return e();n.attachEvent("onreadystatechange",function t(){"complete"===n.readyState&&e(),s||n.detachEvent("onreadystatechange",t)}),n.documentElement.doScroll&&u===u.top&&(s?t=window.setInterval(function(){try{n.documentElement.doScroll("left")}catch(t){return}window.clearInterval(t),e()},100):e())}new RegExp("WebKit").test("userAgent")&&(s?t=window.setInterval(function(){/loaded|complete/.test(n.readyState)&&(window.clearInterval(t),e())},100):e()),this.loadHandler=function(){e()},RP.util.addEvent(u,"load",this.loadHandler)},onClose:function(){if(this.config.repeat.set(0),this.worker.stopTimer(),this.leaving=!0,this.closeHandlers.length)for(var t in this.closeHandlers)this.closeHandlers[t]();this.worker.stopTimer(),this.worker.send()},logLoadTime:function(){this.track(["","LOADTIME","",[RP.util.getTimeStamp()-this.worker.startTime]])},logClose:function(){this.config.delay.set(0);var t=this.worker.page,e=(t.set("page_type",3),t.set("ci",null),RP.util.getTimeStamp());t.set("ts",e),t.set("residence_time",e-this.worker.startTime),this.worker.trackEvent(t)},addLogClose:function(){this.closeHdlr||(this.closeHdlr=this.logClose.bind(this)),this.registerCloseHandler(this.closeHdlr)},removeLogClose:function(){this.removeCloseHandler(this.closeHdlr)},registerCloseHandler:function(t){-1==this.closeHandlers.indexOf(t)&&this.closeHandlers.push(t)},removeCloseHandler:function(t){-1<(t=this.closeHandlers.indexOf(t))&&this.closeHandlers.splice(t,1)},track:function(t){var e=new RP.evt;this.initEvent(e),e.set("page_type",0),this.createCustomInfo(e,{category:t[0],action:t[1],label:t[2],params:t[3],value:t[4]}),this.worker.trackEvent(e)},isElement:function(t){return window.Element?this.isElement=function(t){return t instanceof Element}:this.isElement=function(t){return"number"==typeof t.nodeType},this.isElement(t)},register:function(t,e){if(t){var i=this.isElement(t);if(i||t.length&&"string"!=typeof t){var s=Object.prototype.toString.call(e);"[object Function]"==s?e=[{selector:"",parser:e}]:"[object Object]"==s&&(e.selector||(e.selector=""),e=[e]);for(var n=0,r=(t=i?[t]:t).length;n<r;n++)this.setuped?this.apply(t[n],e):this.preloadTrackers.push([t[n],e])}}},apply:function(r,t){if(this.isElement(r)){for(var o=this,e={},i=0,s=t.length;i<s;i++){var n=this.handlers[t[i].selector.charAt(0)];n?(t[i].process=function(i,s){var n;return s?(n=i.selector.substr(1),function(t){var e=s(r,t.target,n);e&&o.readAndSend(i,e,t)}):function(t){o.readAndSend(i,r,t)}}(t[i],n.match),e[n.trigger]||(e[n.trigger]=[]),e[n.trigger].push(t[i])):RP.debug("error in selector:"+t[i].selector)}var a,l={};for(a in e){var c=1<(t=e[a]).length?function(s){return function(t){for(var e=0,i=s.length;e<i;e++)s[e].process(t)}}(t):(t=t[0]).process;h[a](r,c,t),l[a]=c}this.trackerList.push([r,l])}},readAndSend:function(t,e,i){var s;(s=t.args?(s=[i,e].concat(t.args),t.parser.apply(window,s)):t.parser(i,e))&&this.track(s)},handlers:{"":{trigger:"click"},".":{trigger:"click",match:function(t,e,i){for(;e&&e!=t;){if(l(e,i))return e;e=e.parentNode}return null}},"*":{trigger:"click",match:function(t,e,i){for(;e&&e!=t;){if(null!==e.getAttribute(i))return e;e=e.parentNode}return null}},_:{trigger:"click",match:function(t,e,i){for(;e&&e!=t;){if(e.tagName==i.toUpperCase())return e;e=e.parentNode}return null}},"|":{trigger:"show",match:function(t,e,i){return e}}},getCookie:function(t,e){return RP.cookie.get(t,e)},getURLParam:function(t){return RP.util.getUrlParam(t)}}),i=u[r]={},d=(i.push=c.push.bind(c),i.setup=c.setup.bind(c),i.destroy=c.destroy.bind(c),i.register=c.register.bind(c),i.track=c.track.bind(c),i.getUserId=c.getUserId.bind(c),i.getOption=c.getOption.bind(c),i.setOption=c.setOption.bind(c),i.setOptions=c.setOptions.bind(c),i.getProperty=c.getProperty.bind(c),i.getSearch=c.getURLParam,i.getCookie=c.getCookie,c.config),g=i.config={appKey:d.appKey,pageId:d.pageId,throttle:d.throttle,repeat:d.repeat,events:d.events,startTime:d.startTime,trackStayTime:d.trackStayTime,PVInfo:d.PVInfo,versionName:d.versionName,versionCode:d.versionCode,cookieDomain:d.cookieDomain,serverUrl:d.serverUrl,session:d.session,getLimit:d.getLimit,init:d.init,delay:d.delay};for(t in g)d[t]=g[t];var f={data:null,timer:null,div:null,send:function(){var t,e,i;this.data&&(i=!0,t="",c.leaving?u.XDomainRequest&&(this.cdPost=this.postFromIframe):(e=RP.util.formatForUrl(this.data),t=this._assembleRequestUrl(e),e=this.options.maxLengthForGet,i=t.length>e),i?this.cdPost(this.data):this.getByImage(t),this.data=null)},getByImage:function(n){var r=this.options.repeatAfterFail;!function t(e,i){RP.debug("get_"+i);var s=new Image(1,1);s.onerror=function(){RP.debug("Failed to load image %s",e),++i<=r&&t(e,i)},s.src=n}(n,0)},stopTimer:function(){this.timer&&u.clearInterval(this.timer)},trackEvent:function(t){this.addGlobalPropertiesToEvent(t);t=t.getProperties();c.fillWebInfo(t),this.timer?(u.clearInterval(this.timer),this.data.wi.push(c.stringifyData(t.wi)),this.data.ci.push(c.stringifyData(t.ci))):this.data=this.prepareRequestData(t),this.initSendTimer()},initSendTimer:function(){var t=this;c.config.delay.get()?this.timer=u.setInterval(function(){u.clearInterval(t.timer),t.timer=null,t.send()},c.config.delay.get()):(t.timer=null,t.send())},prepareRequestData:function(t){var e=c.dataTpl,i={ak:e.ak,di:e.diStr},s=(i.wi=[c.stringifyData(t.wi)],null);return t.ci&&(s=c.stringifyData(t.ci)),i.ci=[s],i.bi=e.biStr,i.ts=t.ts,i},cdPost:function(t){u.XMLHttpRequest&&"withCredentials"in new u.XMLHttpRequest?this.cdPost=function(t,e){RP.debug("post_"+e),null==e&&(e=0);var i=new u.XMLHttpRequest,s=(i.open("POST",this.getLoggerEndpoint()),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),this);i.onreadystatechange=function(){e++,4==i.readyState&&200!=i.status&&e<=c.config.repeat.get()&&s.cdPost(t,e)},i.send(RP.util.formatForUrl(t))}:this.cdPost=this.postFromIframe,this.cdPost(t)},generateHiddenIframe:function(){var t,e="rp-tracker-post-iframe";return RP.util.isLowIE()?t=n.createElement('<iframe name="'+e+'" src="about:blank" width="1" height="1"></iframe>'):((t=n.createElement("iframe")).setAttribute("name",e),t.setAttribute("src","about:blank"),t.setAttribute("width",1),t.setAttribute("height",1)),t.setAttribute("class",e),t.setAttribute("style","border: none;"),n.body.appendChild(t),t},postFromIframe:function(e){var c,h=this.generateHiddenIframe();!function t(){(c=this.getIframeDocument(h))?function(t){function e(t,e){var i;return RP.util.isLowIE()?i=c.createElement("<input type='hidden' name='"+t+"' />"):((i=c.createElement("input")).setAttribute("name",t),i.setAttribute("type","hidden")),i.setAttribute("value",e),i}var i,s,n=this.getLoggerEndpoint(),r="post_form"+Math.random();for(s in RP.util.isLowIE()?i=c.createElement('<form name="'+r+'"></form>'):(i=c.createElement("form")).setAttribute("name",r),i.setAttribute("id",r),i.setAttribute("action",n),i.setAttribute("method","POST"),t)if(t.hasOwnProperty(s)){var o=t[s];if(o instanceof Array)for(var a=0,l=o.length;a<l;a++)i.appendChild(e(s,o[a]));else i.appendChild(e(s,o))}c.body.appendChild(i),c.forms[r].submit(),c.body.removeChild(i),u.setTimeout(function(){document.body.removeChild(h)},1e3)}.call(this,e):u.setTimeout(t,10)}.call(this)},manageState:function(){this.setLastRequestTime(),this.setVisitorId(),this.setFirstSessionTimestamp(),this.setSessionId(),this.setNumberPriorSessions(),this.setTimeSinceLastSession(),this.setVisitSerial()},getLoggerEndpoint:function(){return this.options.serverUrl},setVisitSerial:function(){var t,e=1;this.isNewSessionFlag||(t=RP.getState("s","vs"))&&(e=++t),RP.setState("s","vs",e),this.setGlobalEventProperty("serial",e)},setTimeSinceLastSession:function(){RP.debug("setting days since last session.");var t,e,i="";this.getGlobalEventProperty("isnew")&&(t=this.page.get("ts"),RP.debug("ts: %s",t),e=this.getGlobalEventProperty("lsts")||t,RP.debug("lsts: %s",e),RP.setState("s","dif",i=t-e)),i=i||RP.getState("s","dif")||0,this.setGlobalEventProperty("dif",i)}},p={addEvent:function(t,e,i){t.addEventListener?RP.util.addEvent=function(t,e,i){t.addEventListener(e,i,!1)}:t.attachEvent&&(RP.util.addEvent=function(t,e,i){var s=i.avatar_handler=function(t){t.target=t.srcElement,i(t)};t.attachEvent("on"+e,s)}),RP.util.addEvent(t,e,i)},detachEvent:function(t,e,i){t.addEventListener?RP.util.detachEvent=function(t,e,i){t.removeEventListener(e,i,!1)}:t.attachEvent&&(RP.util.detachEvent=function(t,e,i){t.attachEvent("on"+e,i.avatar_handler)}),RP.util.detachEvent(t,e,i)},formatForUrl:function(t){var e,i="";for(e in t)if(t[e]instanceof Array)for(var s=0,n=t[e].length;s<n;s++)i+="&"+e+"="+m(t[e][s]);else i+="&"+e+"="+m(t[e]);return i.substr(1)},getTimeStamp:function(){return(new Date).getTime()},zeroFill:function(t,e,i){return t=t||"",e&&(0<(e=e-t.length)?t=new Array(1+e).join(i||"0")+t:e<0&&(t=t.substr(-e))),t},generateRandomGuid10:function(t){return this.generateRandomGuid(t,10)},generateRandomGuid:function(t,e){e=e||16;var i=(new Date).getTime().toString(e),s=i.length;if(isNaN(t)||t==s)return i;t<s&&(i=this.zeroFill(i,s=t/2));var n=Math.round((t-s)/2),r=Math.pow(10,n)-1,o=this.zeroFill(this.rand(0,r).toString(e),n),n=t-s-n,r=Math.pow(10,n)-1;return i+o+this.zeroFill(this.rand(0,r).toString(e),n)},encodeChinese:function(t){return"string"!=typeof t?t:(t+="").replace(/./g,function(t){return 255<t.charCodeAt(0)?encodeURIComponent(t):t})}};function m(t){return t=(t=null==t?"":t.toString())&&encodeURIComponent(t)}c.patch()}(window,document);