var sufeiUtils=function(e){"use strict";var t=location,n=document,o=function(e,o,a,c){void 0===o&&(o=1),function(e,t){var n=[];for(var o in e)n.push(o+"="+encodeURIComponent(e[o]));(new Image).src=t+n.join("&")}({code:o,msg:e+"",pid:"sufeiPunish",page:t.href.split(/[#?]/)[0],query:t.search.substr(1),hash:t.hash,referrer:n.referrer,title:n.title,ua:navigator.userAgent,c1:a,c2:c},"//gm.mmstat.com/fsp.1.1?")};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===n&&o.firstChild?o.insertBefore(a,o.firstChild):o.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}("#bx-pu-qrcode-wrap {\n position: absolute;\n left: 0;\n right: 0;\n bottom: 10px;\n width: auto !important;\n text-align: center;\n margin: auto;\n padding: 0;\n z-index: 999;\n}\n#bx-pu-qrcode-wrap img {\n margin: auto;\n}\n#bx-pu-qrcode-wrap.pc-ajax img {\n width: 60px;\n height: 60px;\n}\n#bx-pu-qrcode-wrap.pc-ajax .hide {\n top: 20px;\n margin-left: 40px;\n}\n#bx-pu-qrcode-wrap.mobile .hide {\n top: 30px;\n margin-left: 50px;\n}\n#bx-pu-qrcode-wrap .hide {\n display: flex;\n width: 20px;\n height: 20px;\n cursor: pointer;\n background: #cbcbcb;\n border-radius: 20px;\n -webkit-box-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n align-items: center;\n position: absolute;\n top: 30px;\n left: 50%;\n margin-left: 50px;\n}\n#bx-pu-qrcode-wrap .hide .hide-text {\n width: 6px;\n height: 2px;\n background: #ffffff;\n border-radius: 4px;\n}\n#bx-pu-qrcode-wrap .hide:hover {\n background: #f40;\n}\n.feedback-show {\n width: 20px;\n height: 20px;\n cursor: pointer;\n background: #cbcbcb;\n border-radius: 20px;\n display: none;\n -webkit-box-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n align-items: center;\n position: fixed;\n bottom: 20px;\n right: 20px;\n z-index: 2147483647;\n}\n.feedback-show:hover {\n background: #f40;\n}\n");var a={captcharecaptcha:11,captchaeleshake:13,captchaworknet:15,captchaworknet2:15},c=window,i=c.parent,r=location.search,s=location.protocol+"//"+location.host+location.pathname.split("/_____tmd_____")[0];c._config_&&c._config_.HOST&&(s="https://"+c._config_.HOST+c._config_.PATH);var d=navigator.language,l=location.search.match(/ncLanguage=([^&]+)/);(l=l&&l[1])&&(d=l.replace("_","-")),d={cn:"cn","zh-CN":"cn","zh-TW":"cn"}[d]||"en";var p=location.href.match(/redirectURL=([^&]+)/)&&decodeURIComponent(location.href.match(/redirectURL=([^&]+)/)[1]);if(p)try{s="https:"!==(s=new URL(p)).protocol&&"http:"!==s.protocol?null:(s=s.href).split("/_____tmd_____")[0]}catch(O){s="string"!=typeof p||0!==p.indexOf("http")?null:(s=p.replace(/&/g,"").replace(/>/g,"").replace(/-1||r.indexOf("tmd_nc=1")>-1,u=c.navigator.userAgent.match(/WindVane/i),h=navigator.userAgent.match(/.*(iPhone|iPad|Android|ios|SymbianOS|wins Phone).*/i)||f,m=document.documentElement||"",g=document.body||"",_=320===(m.clientHeight||g.clientHeight)||480===(m.clientHeight||g.clientHeight)||c.frames.length!==parent.frames.length,x=0===document.createElement("canvas").toDataURL("image/webp",0).indexOf("data:image/webp");function w(e){var t=new Date;t.setTime(t.getTime()+-100);var n="x5secdata=;maxAge=-100;expires="+t.toUTCString()+";path=/;domain="+e+";";document.cookie=n,document.cookie=n+"Secure;SameSite=None"}function y(e){try{var t=JSON.parse(e.data),n=t.type;"bxScreenshot"===n?k(t.content):"bxClose"===n?function(){if(f){var t=c._custom_config_&&c._custom_config_.sleepSubmit||c._config_&&c._config_.sleepSubmit;if(t){var n=c._custom_config_&&c._custom_config_.sleepTime||2;return void function(e,t){setTimeout(function(){var n=document.cookie.match(/x5sec=([^;]+)/);if(n&&n[1]){var o=new Date;o.setTime(o.getTime()+18e5),document.cookie="x5sec="+n[1]+";expires="+o.toGMTString()+";path=/;max-age=1800"}setTimeout(function(){e&&e()},t)},t=Math.floor(1e3*t/2))}(function(){location.href=b()},n)}return void(location.href=b())}if(_&&(location.href.indexOf("_____tmd_____")>-1&&0>location.search.indexOf("x5step=1")||location.host.indexOf("bixi.alicdn")>-1)){try{c.parent.postMessage(JSON.stringify({type:"child",content:'{"smToken":"token","queryToken":"sm","sm":"sm"}'}),"*")}catch(e){c.parent.postMessage('{"type":"child","content":"{\\"smToken\\":\\"token\\",\\"queryToken\\":\\"sm\\",\\"sm\\":\\"sm\\"}"}')}try{c.pointman.require(["m/messenger"],function(e){e.initListener({currentWin:c,originWin:c.parent,msgTransfer:"fromParent"}),e.send({type:"msg:validateSuccess@sufei",content:"smToken=xxxx"})})}catch(e){console.log("not messenger")}}else sessionStorage&&sessionStorage.x5referer!==location.href?(location.replace(sessionStorage.x5referer||v()),sessionStorage.x5referer=""):sessionStorage&&sessionStorage.x5referer?(sessionStorage.x5referer="",location.reload()):location.href=v()}():"bxHideQrCode"===n?q():"bxShowQrCode"===n&&E()}catch(e){}}function b(){return location.href.indexOf("https://sec.taobao1111.com/")>-1?"https://sec.taobao1111.com/":"https://sec.taobao.com/"}!function(){try{if(location.href.indexOf("_____tmd_____")>-1)return;sessionStorage.x5referer=window.location.href}catch(O){console.log("err")}}();var v=function(){var e="https://www.taobao.com",t={"taobao.com":"https://www.taobao.com/","tmall.com":"https://www.tmall.com/","aliyun.com":"https://www.aliyun.com/","1688.com":"https://www.1688.com/","lazada.co.id":"https://www.lazada.co.id/","lazada.co.th":"https://www.lazada.co.th/","lazada.vn":"https://www.lazada.vn/","lazada.com.my":"https://www.lazada.com.my/","lazada.sg":"https://www.lazada.sg/","lazada.com.ph":"https://www.lazada.com.ph/","youku.com":"https://www.youku.com/","aliexpress.com":"https://www.aliexpress.com/","aliexpress.ru":"https://www.aliexpress.ru/","aliexpress.us":"https://www.aliexpress.us/","miravia.es":"https://www.miravia.es/"};for(var n in t)if(location.host.indexOf(n)>=0){e=t[n];break}return o("Jump to front page,url: "+e,23,c._config_.NCTOKENSTR,c._config_.NCAPPKEY),e};function S(){var e=location.href.match(/uuid=([^&]+)/)&&location.href.match(/uuid=([^&]+)/)[1],t=c._config_&&c._config_.NCTOKENSTR;return e?encodeURIComponent(e):t&&"###NCTOKENSTR###"!==t?encodeURIComponent(t):""}function k(e){var t;try{if(!c.html2canvas)return void(c.bxScreenshoting=!1);var n={useCORS:!0,scale:1};h||_||document.body.offsetWidth>1024&&(n.scale=1024/document.body.offsetWidth),"captcha"===e.action&&(t=document.getElementsByClassName("nc-lang-cnt")[0])&&(t.style.background="transparent"),(f||u)&&c.feedbackLinkStr&&setTimeout(function(){c.bxScreenshoting=!1,location.href=c.feedbackLinkStr},1500),c.html2canvas(document.body,n).then(function(n){t&&(t.style.background=""),e.HOST&&(s="https://"+e.HOST+e.PATH),T({url:s+"/_____tmd_____/report",type:"POST",data:{result:n.toDataURL(x?"image/webp":"image/jpeg",x?.2:.15),x5secdata:e.SECDATA,type:"screenshotSuccess",msg:"Screenshot success",uuid:e.NCTOKENSTR},success:function(){(f||u)&&c.feedbackLinkStr&&(c.bxScreenshoting=!1,location.href=c.feedbackLinkStr)},error:function(){(f||u)&&c.feedbackLinkStr&&(c.bxScreenshoting=!1,location.href=c.feedbackLinkStr)}})})["catch"](function(n){t&&(t.style.background="");var a=e.NCTOKENSTR;o(JSON.stringify(n),19,a),(f||u)&&c.feedbackLinkStr&&(c.bxScreenshoting=!1,location.href=c.feedbackLinkStr)})}catch(O){t&&(t.style.background="");var a=e.NCTOKENSTR;o(JSON.stringify(O),19,a),(f||u)&&c.feedbackLinkStr&&(location.href=c.feedbackLinkStr)}}function T(e){e=e||{};var t=[];for(var n in e.data)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e.data[n]));t.push(("v="+Math.random()).replace(".",""));var o=t.join("&"),a=new XMLHttpRequest;a.onreadystatechange=function(){if(4===a.readyState){var t=a.status;t>=200&&300>t?e.success&&e.success(a.responseText,a.responseXML,a):e.error&&e.error(t)}},"GET"===e.type?(a.open("GET",e.url+"?"+o,!0),a.send(null)):"POST"===e.type&&(a.open("POST",e.url,!0),a.setRequestHeader("Content-Type","json"===e.dataType?"application/json":"application/x-www-form-urlencoded"),a.send("json"===e.dataType?JSON.stringify(e.data):o))}function C(e,t,n,o){if(void 0===o&&(o=!1),t.addEventListener)t.addEventListener(e,n,o);else if(t.attachEvent)return t.attachEvent("on"+e,n),!1}function q(){var e=document.getElementById("bx-pu-qrcode-wrap"),t=document.querySelector(".feedback-show");e.style.display="none",t.style.display="flex"}function E(){var e=document.getElementById("bx-pu-qrcode-wrap"),t=document.querySelector(".feedback-show");e.style.display="block",t.style.display="none"}return e.clearX5SecData=function(){try{if(-1>=document.cookie.indexOf("x5secdata"))return;var e=location.host,t=e.split("."),n=t.length>5?5:t.length;1!==n&&2!==n||w(e),location.href.indexOf("_____tmd_____")>-1&&w("."+e),e="."+t.pop();for(var o=2;n>o;o++)w(e="."+t.pop()+e);w(e=(t.pop()||"")+e)}catch(O){console.log("x5secdata clear error")}},e.handleHideQrCode=q,e.handleShowQrCode=E,e.hideQrCode=function(e){if(void 0===e&&(e=!1),e)document.querySelector("iframe").contentWindow.postMessage(JSON.stringify({type:"bxHideQrCode"}),"*");else if(i&&i.sufeiUtils)i.sufeiUtils.handleHideQrCode();else{var t=document.getElementById("bx-pu-qrcode-wrap"),n=document.querySelector(".feedback-show");t.style.display="none",n.style.display="flex"}},e.initListener=function(){c.addEventListener?c.addEventListener("message",y,!1):c.attachEvent&&c.attachEvent("onmessage",y)},e.renderFeedbackLink=function(e,t){void 0===t&&(t=!1);var n=e.id,i=e.content,r=e.x5secdata,l=e.uuid,h=e.type,m=e.canHide,g=void 0===m||m;i||(i="cn"===d?"点我反馈 >":"Click to feedback >");var _=document.getElementById(n);if(_){r||(r=location.href.match(/x5secdata=([^&]+)/)&&location.href.match(/x5secdata=([^&]+)/)[1]||p&&p.match(/x5secdata=([^&]+)/)&&p.match(/x5secdata=([^&]+)/)[1]||c._config_&&c._config_.SECDATA),h||(h=location.href.match(/type=([^&]+)/)&&location.href.match(/type=([^&]+)/)[1]),l||(l=S())||(l=p&&p.match(/uuid=([^&]+)/)&&p.match(/uuid=([^&]+)/)[1]);var x=s+"/_____tmd_____/page/feedback?rand=S3WxGHAgAt756EpznwfNzJq2AFA2qBNla3j6EINUS8We9dazM_iKElp8DwVSHZUevpC41Bx7RzivXIj9RnZgdg";r&&(x+="&x5secdata="+r),l&&(x+="&uuid="+l),"thirdValidate"===h&&(h=a[c._config_.action]),h&&(x+="&type="+h);var w="_blank";(f||u)&&(w="_self",c.feedbackLinkStr=x,x="javascript:void(0)");var y=''+i+"";if(g){var b=document.createElement("div");b.innerHTML='',b.className="feedback-show",document.body.appendChild(b),_.innerHTML='
'+y;var v=document.getElementById("bx-pu-qrcode-wrap"),T=v&&v.querySelector(".hide"),q=document.querySelector(".feedback-show");T&&q&&(C("click",T,function(){v.style.display="none",q.style.display="flex"}),C("click",q,function(){v.style.display="block",q.style.display="none"}))}else _.innerHTML=y;o("Feedback init success",18,l),function(e,t){var n;void 0===t&&(t=!1);try{C("click",e,function(){if(t)document.querySelector("iframe").contentWindow.postMessage(JSON.stringify({type:"bxScreenshot",content:c._config_}),"*");else{if(f||u){if(c.bxScreenshoting)return!1;c.bxScreenshoting=!0}c.html2canvas&&k(c._config_||{})}})}catch(O){o(JSON.stringify(O),19,null===(n=c._config_)||void 0===n?void 0:n.NCTOKENSTR)}}(_,t)}},e.renderQRCode=function(e){var t=e.qrcode,n=document.getElementById(e.id);if(n){if(_&&!h){var a=n.parentNode;a&&(a.className+=h?" mobile":_?" pc-ajax":" pc")}var i;if((t=t||function(){var e=location.href.match(/qrcode=([^&]+)/)&&location.href.match(/qrcode=([^&]+)/)[1],t=c._config_&&c._config_.qrcode;return t&&"###REQUEST_COMPOSITE_INFO###"!==t&&(e=t),e&&(e.indexOf("%7C")>0&&(e=e.replace(/%7C/g,"|")),e=(e=encodeURIComponent(e)).replace(/%7C/g,"|")),e}())||(i=S()),t||i){if(!c.QRCode)return void(n.innerHTML=t||i);new c.QRCode(n,{text:t||i,width:80,colorDark:"#999",height:80}),o("QRCode init success",17,i,t)}}},e.report=function(e){void 0===e&&(e={type:"loadPageSuccss",x5secdata:"",uuid:""});var t=e.type,n=e.x5secdata,o=e.uuid;n||(n=location.href.match(/x5secdata=([^&]+)/)&&location.href.match(/x5secdata=([^&]+)/)[1]||p&&p.match(/x5secdata=([^&]+)/)&&p.match(/x5secdata=([^&]+)/)[1]||c._config_&&c._config_.SECDATA),o||(o=S())||(o=p&&p.match(/uuid=([^&]+)/)&&p.match(/uuid=([^&]+)/)[1]),T({url:s+"/_____tmd_____/report",type:"GET",data:{x5secdata:n,type:t,msg:"Third page "+t,uuid:o},uuid:o})},e.screenshot=k,e.showQrCode=function(e){if(void 0===e&&(e=!1),e)document.querySelector("iframe").contentWindow.postMessage(JSON.stringify({type:"bxShowQrCode"}),"*");else if(i&&i.sufeiUtils)i.sufeiUtils.handleShowQrCode();else{var t=document.getElementById("bx-pu-qrcode-wrap"),n=document.querySelector(".feedback-show");t.style.display="block",n.style.display="none"}},e}({});