Authored by huangyi

当前线上版本1.1.0

!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.yo_sdk=n():e.yo_sdk=n()}(window,function(){return function(e){var n={};function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:o})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)t.d(o,r,function(n){return e[n]}.bind(null,r));return o},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=13)}([function(e,n){var t=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=t)},function(e,n,t){"use strict";var o=function(e){return e&&e.__esModule?e:{default:e}}(t(18));var r=function(e){var n=decodeURIComponent(document.location.href);e&&(n=decodeURIComponent(e));var t="",o=[],r=[];n.indexOf("?")>0&&(t=n.split("?")[1]),t.length>0&&(o=t.split("#")[0].split("&"));for(var i=0;i<o.length;i++){var u={};if(u.name=o[i].split("=")[0],u.value=o[i].split("=")[1],o[i].split("=").length>2)for(var c=2;c<o[i].split("=").length;c++)u.value+="="+o[i].split("=")[c];r.push(u)}var a={};for(i=0;i<r.length;i++)a[r[i].name]=r[i].value;return a};e.exports={invokeMethod:function(e){window.yohoInterface?window.yohoInterface.triggerEvent(e.success||function(){},e.fail||function(){},{method:e.method,arguments:e.args}):e.fail&&e.fail()},getQueryObj:r,linkToMiniApp:function(e,n){var t=e||"";if(t&&t.indexOf("http")<0&&"other"===n&&(t=document.location.protocol+"//"+document.location.host+t),t){var i;if("product"===n||"brand"===n)i=t;else{var u=decodeURIComponent(t).split("?")[0],c=r(t),a="";(0,o.default)(c).forEach(function(e){a+=""===a?"?"+e+"="+c[e]:"&"+e+"="+c[e]}),i="/pages/webview/webview?url="+u+encodeURIComponent(a)}return wx.miniProgram.navigateTo({url:i}),!1}return!0},createLinkButton:function(e,n){var t=document.createElement("a");return t.style.position="fixed",t.style.top=0,t.style.left=0,t.style.border="none",t.style.outline="none",t.style.resize="none",t.style.background="transparent",t.style.color="transparent",t.setAttribute("id",n),t.setAttribute("href",e),document.body.appendChild(t),t}}},function(e,n){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},function(e,n){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,n,t){e.exports=!t(5)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,n){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,n,t){"use strict";var o=function(e){return e&&e.__esModule?e:{default:e}}(t(15));var r=t(7),i=t(17),u=t(1),c=t(8),a=u.getQueryObj,s="";e.exports={env:function(){var e=window.__wxjs_environment;return!e&&navigator.userAgent.match(/yohobuy/i)?(s="app",document.addEventListener("deviceready",function(){})):s=!e&&navigator.userAgent.match(/miniProgram/i)||"miniprogram"===e?"miniprogram":"https://www.yohobuy.com"===location.origin?"pc":"h5",s},loginUrl:function(){var e,n=location.href;return"app"===s?(e="http://m.yohobuy.com/signin.html?refer="+encodeURIComponent(n),n=function(e){var n,t,o,r={};if((n=((e=(e||"").split("?"))[1]||"").split("&"))&&n.length)for(o=0;o<n.length;o++)r[(t=n[o].split("="))[0]]=t[1];return{path:e[0],query:r}}(n),/Android/i.test(navigator.userAgent||"")?(e.indexOf("?")<0&&(e+="?appLogin=1"),location.href.indexOf("&openby")>=0&&(e=e.substring(0,e.indexOf("&openby"))),e+="&"):(location.href.indexOf("#openby")>=0&&(e=e.substring(0,e.indexOf("#openby"))),e+="#"),e+="openby:yohobuy="+(0,o.default)({action:"go.weblogin",params:{priority:"N",jumpurl:{url:n.path,param:n.query},needlogout:"Y"}})):"pc"===s?e="https://www.yoho/signin.html?refer="+encodeURIComponent(location.href):"miniprogram"===s?e="/pages/userCenter/userCenter":(n.indexOf("?")<0?n+="?skcall=1":n+="&skcall=1",e="http://m.yohobuy.com/signin.html?refer="+encodeURIComponent(n)),e},getUser:function(){return new c(function(e){var n={sessionType:i.cookie("app_client_type")||a().app_client_type||"",appVersion:i.cookie("app_version")||a().app_version||""};"h5"===s||"pc"===s?r({url:"//m.yohobuy.com/passport/login/user",jsonp:"callback"}).then(function(t){n.uid=0,200===t.code&&(n.uid=Number(t.data)),n.sessionKey=i.cookie("app_session_key")||a().session_key||"",e(n)}):"app"===s?document.addEventListener("deviceready",function(){return c.all([new c(function(e){u.invokeMethod({method:"get.uid",arguments:{},success:function(n){e(parseInt(n))},fail:function(){var n=Number(i.cookie("app_uid"))||Number(a().uid)||0;e(n)}})}),new c(function(e){u.invokeMethod({method:"get.sessionId",arguments:{},success:function(n){e(n)},fail:function(){var n=i.cookie("app_session_key")||a().session_key||"";e(n)}})})]).then(function(t){n.uid=t[0],n.sessionKey=t[1],e(n)})}):(n.uid=Number(i.cookie("app_uid"))||Number(a().uid)||0,n.sessionKey=i.cookie("app_session_key")||a().session_key||"",e(n))})}}},function(e,n,t){"use strict";var o=t(8);e.exports=function(e){return new o(function(n,t){(e=e||{}).data=e.data||{};var o=e.jsonp;e.data.callback=o;var r=function(e){var n=[];for(var t in e)n.push(encodeURIComponent(t)+"="+encodeURIComponent(e[t]));var o=new Date;return n.push("v="+o.getTime()),n.join("&")}(e.data),i=document.createElement("script");document.body.appendChild(i),window[o]=function(e){return document.body.removeChild(i),clearTimeout(i.timer),window[o]=null,n(e)},i.src=e.url+"?"+r,e.time&&(i.timer=setTimeout(function(){window[o]=null,document.body.removeChild(i),t({message:"超时"})},time))})}},function(e,n,t){"use strict";function o(e){var n=this;n._value=null,n._reason=function(){},n._resolves=[],n._rejects=[],n._status="PENDING",this.then=function(e,t){return new o(function(o,r){function i(n){var t="function"==typeof e&&e(n)||n;t&&"function"==typeof t.then?t.then(function(e){o(e)},function(e){r(e)}):o(t)}function u(e){e="function"==typeof t&&t(e)||e,r(e)}"PENDING"===n._status?(n._resolves.push(i),n._rejects.push(u)):"FULFILLED"===n._status?i(n._value):"REJECTED"===n._status&&u(n._reason)})},e(function(e){setTimeout(function(){n._status="FULFILLED",n._resolves.forEach(function(t){n._value=t(e)})},0)},function(e){setTimeout(function(){n._status="REJECTED",n._rejects.forEach(function(t){n._reason=t(e)})},0)})}o.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to all.");return new o(function(n,t){var o=0,r=[],i=e.length,u=i;function c(e){return function(t){!function(e,t){r[e]=t,0==--u&&n(r)}(e,t)}}function a(e){t(e)}for(;o<i;o++)e[o].then(c(o),a)})},o.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to race.");return new o(function(n,t){var o=0,r=e.length;function i(e){n(e)}function u(e){t(e)}for(;o<r;o++)e[o].then(i,u)})},e.exports=o},function(e,n){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,n){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},function(e,n,t){var o=t(24),r=t(9);e.exports=function(e){return o(r(e))}},function(e,n){var t=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:t)(e)}},function(e,n,t){e.exports=t(14)},function(e,n,t){"use strict";var o=t(6),r=t(45),i=t(46),u=t(47),c=t(1),a=o.env(),s=new r({loginUrl:o.loginUrl(),env:a}),p=new i(a),f=new u;e.exports={auth:s.auth.bind(s),goLogin:s.goLogin.bind(s),getUser:o.getUser,env:a,link:p.link.bind(p),goBack:p.goBack.bind(p),wxShare:f.wxShare.bind(f),wxSignature:f.wxSignature,getQueryObj:c.getQueryObj,invokeMethod:c.invokeMethod}},function(e,n,t){e.exports={default:t(16),__esModule:!0}},function(e,n,t){var o=t(0),r=o.JSON||(o.JSON={stringify:JSON.stringify});e.exports=function(e){return r.stringify.apply(r,arguments)}},function(e,n,t){"use strict";e.exports={cookie:function(e){return new RegExp(e+"=([^;$]*)","i").test(decodeURIComponent(document.cookie))?RegExp.$1:""},setCookie:function(e,n,t){var o,r,i,u,c="";void 0!==n&&(t=t||{},null===n&&(n="",t.expires=-1),t.expires&&("number"==typeof t.expires||t.expires.toUTCString)&&("number"==typeof t.expires?(u=new Date).setTime(u.getTime()+24*t.expires*60*60*1e3):u=t.expires,c="; expires="+u.toUTCString()),o=t.path?"; path="+t.path:"",r=t.domain?"; domain="+t.domain:"",i=t.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(n),c,o,r,i].join(""))}}},function(e,n,t){e.exports={default:t(19),__esModule:!0}},function(e,n,t){t(20),e.exports=t(0).Object.keys},function(e,n,t){var o=t(21),r=t(22);t(34)("keys",function(){return function(e){return r(o(e))}})},function(e,n,t){var o=t(9);e.exports=function(e){return Object(o(e))}},function(e,n,t){var o=t(23),r=t(33);e.exports=Object.keys||function(e){return o(e,r)}},function(e,n,t){var o=t(10),r=t(11),i=t(26)(!1),u=t(29)("IE_PROTO");e.exports=function(e,n){var t,c=r(e),a=0,s=[];for(t in c)t!=u&&o(c,t)&&s.push(t);for(;n.length>a;)o(c,t=n[a++])&&(~i(s,t)||s.push(t));return s}},function(e,n,t){var o=t(25);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,n){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},function(e,n,t){var o=t(11),r=t(27),i=t(28);e.exports=function(e){return function(n,t,u){var c,a=o(n),s=r(a.length),p=i(u,s);if(e&&t!=t){for(;s>p;)if((c=a[p++])!=c)return!0}else for(;s>p;p++)if((e||p in a)&&a[p]===t)return e||p||0;return!e&&-1}}},function(e,n,t){var o=t(12),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,n,t){var o=t(12),r=Math.max,i=Math.min;e.exports=function(e,n){return(e=o(e))<0?r(e+n,0):i(e,n)}},function(e,n,t){var o=t(30)("keys"),r=t(32);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,n,t){var o=t(0),r=t(2),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(e.exports=function(e,n){return i[e]||(i[e]=void 0!==n?n:{})})("versions",[]).push({version:o.version,mode:t(31)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,n){e.exports=!0},function(e,n){var t=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+o).toString(36))}},function(e,n){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,n,t){var o=t(35),r=t(0),i=t(5);e.exports=function(e,n){var t=(r.Object||{})[e]||Object[e],u={};u[e]=n(t),o(o.S+o.F*i(function(){t(1)}),"Object",u)}},function(e,n,t){var o=t(2),r=t(0),i=t(36),u=t(38),c=t(10),a=function(e,n,t){var s,p,f,l=e&a.F,d=e&a.G,h=e&a.S,m=e&a.P,y=e&a.B,g=e&a.W,v=d?r:r[n]||(r[n]={}),b=v.prototype,w=d?o:h?o[n]:(o[n]||{}).prototype;for(s in d&&(t=n),t)(p=!l&&w&&void 0!==w[s])&&c(v,s)||(f=p?w[s]:t[s],v[s]=d&&"function"!=typeof w[s]?t[s]:y&&p?i(f,o):g&&w[s]==f?function(e){var n=function(n,t,o){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,t)}return new e(n,t,o)}return e.apply(this,arguments)};return n.prototype=e.prototype,n}(f):m&&"function"==typeof f?i(Function.call,f):f,m&&((v.virtual||(v.virtual={}))[s]=f,e&a.R&&b&&!b[s]&&u(b,s,f)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,e.exports=a},function(e,n,t){var o=t(37);e.exports=function(e,n,t){if(o(e),void 0===n)return e;switch(t){case 1:return function(t){return e.call(n,t)};case 2:return function(t,o){return e.call(n,t,o)};case 3:return function(t,o,r){return e.call(n,t,o,r)}}return function(){return e.apply(n,arguments)}}},function(e,n){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,n,t){var o=t(39),r=t(44);e.exports=t(4)?function(e,n,t){return o.f(e,n,r(1,t))}:function(e,n,t){return e[n]=t,e}},function(e,n,t){var o=t(40),r=t(41),i=t(43),u=Object.defineProperty;n.f=t(4)?Object.defineProperty:function(e,n,t){if(o(e),n=i(n,!0),o(t),r)try{return u(e,n,t)}catch(e){}if("get"in t||"set"in t)throw TypeError("Accessors not supported!");return"value"in t&&(e[n]=t.value),e}},function(e,n,t){var o=t(3);e.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},function(e,n,t){e.exports=!t(4)&&!t(5)(function(){return 7!=Object.defineProperty(t(42)("div"),"a",{get:function(){return 7}}).a})},function(e,n,t){var o=t(3),r=t(2).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,n,t){var o=t(3);e.exports=function(e,n){if(!o(e))return e;var t,r;if(n&&"function"==typeof(t=e.toString)&&!o(r=t.call(e)))return r;if("function"==typeof(t=e.valueOf)&&!o(r=t.call(e)))return r;if(!n&&"function"==typeof(t=e.toString)&&!o(r=t.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,n){e.exports=function(e,n){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:n}}},function(e,n,t){"use strict";var o=t(1),r=t(6);e.exports=function(e){var n=this;n.env=e.env,n.url=e.loginUrl,n.goLogin=function(){if("miniprogram"===n.env)wx.miniProgram.switchTab({url:n.url});else if("app"===n.env){var e=document.getElementById("yosdk-login");e||(e=o.createLinkButton(n.url,"yosdk-login")),e.click()}else window.location.href=n.url;return!1},n.auth=function(){r.getUser().then(function(e){if(!e.uid){var t=document.querySelectorAll(".auth");if(t.length)return t.forEach(function(e){e.onclick=function(e){e.preventDefault(),n.goLogin()}}),!0}})}}},function(e,n,t){"use strict";var o=t(1);function r(e){this.env=e}r.prototype.link=function(e){var n=e.currentTarget,t=n.getAttribute("data-type")||"other",r=n.getAttribute("data-id")||"",i=n.getAttribute("data-url")||"",u=n.getAttribute("data-name")||"",c="";if("miniprogram"===this.env)return c="product"===t?"/pages/goodsDetail/goodsDetail?productSkn="+r+"&page_name=goodsList&page_param=5":"brand"===t?"/pages/goodsList/brandStore?shop_id="+r+"&shop_name="+u:i,o.linkToMiniApp(c,t);if(c="pc"===this.env?"product"===t?"https://www.yohobuy.com/product/"+r+".html":"brand"===t?"https://www.yohobuy.com/shop/"+u+"-"+r+".html":i:"product"===t?"//m.yohobuy.com/product/"+r+'.html?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":'+r+"}}":"brand"===t?"//m.yohobuy.com/product/index/brand?shop_id="+r+'&openby:yohobuy={"action":"go.shop","params":{"shop_id":"'+r+'","shop_template_type":"1","shop_name":"'+u+'","is_red_shop":"1"}}':i,"app"===this.env){var a=document.getElementById("yosdk-goto");return a?a.setAttribute("href",c):a=o.createLinkButton(c,"yosdk-goto"),a.click()}window.location.href=c},r.prototype.goBack=function(){"app"===this.env?o.invokeMethod({method:"go.back"}):"miniprogram"===this.env?wx.miniProgram.navigateBack():history.go(-1)},e.exports=r},function(e,n,t){"use strict";var o=t(7);function r(){}r.prototype.wxSignature=function(e){o("//action.yoho.cn/api/share/getSignPackage?pageurl="+encodeURIComponent(location.href.split("#")[0])).then(function(n){if(n.appId){var t=n.appId.toString(),o=n.timestamp,i=n.nonceStr.toString(),u=n.signature.toString();return r.config({debug:!1,appId:t,timestamp:o,nonceStr:i,signature:u,jsApiList:["checkJsApi","onMenuShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareWeibo","hideMenuItems","showMenuItems","hideAllNonBaseMenuItem","showAllNonBaseMenuItem","translateVoice","startRecord","stopRecord","onVoiceRecordEnd","playVoice","pauseVoice","stopVoice","uploadVoice","onVoicePlayEnd","downloadVoice","chooseImage","previewImage","uploadImage","downloadImage","getNetworkType","openLocation","getLocation","hideOptionMenu","showOptionMenu","closeWindow","scanQRCode","chooseWXPay","openProductSpecificView","addCard","chooseCard","openCard"]}),e&&setTimeout(e,500),!0}return!1})},r.prototype.wxShare=function(e){this.wxSignature(function(){var n=e||{title:"",imgUrl:"",desc:"",link:document.location.href,success:function(){}};r.ready(function(){r.onMenuShareAppMessage(n),r.onMenuShareTimeline(n),r.onMenuShareQQ(n),r.onMenuShareWeibo(n)})})},e.exports=r}])});
\ No newline at end of file
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.yo_sdk=e():t.yo_sdk=e()}(window,function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=17)}([function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}}(n(22));var r=function(t){var e=decodeURIComponent(document.location.href);t&&(e=decodeURIComponent(t));var n="",o=[],r=[];e.indexOf("?")>0&&(n=e.split("?")[1]),n.length>0&&(o=n.split("#")[0].split("&"));for(var i=0;i<o.length;i++){var s={};if(s.name=o[i].split("=")[0],s.value=o[i].split("=")[1],o[i].split("=").length>2)for(var u=2;u<o[i].split("=").length;u++)s.value+="="+o[i].split("=")[u];r.push(s)}var c={};for(i=0;i<r.length;i++)c[r[i].name]=r[i].value;return c};t.exports={invokeMethod:function(t){window.yohoInterface?window.yohoInterface.triggerEvent(t.success||function(){},t.fail||function(){},{method:t.method,arguments:t.args}):t.fail&&t.fail()},getQueryObj:r,linkToMiniApp:function(t,e){var n=t||"";if(n&&n.indexOf("http")<0&&"other"===e&&(n=document.location.protocol+"//"+document.location.host+n),n){var i;if("product"===e||"brand"===e)i=n;else{var s=decodeURIComponent(n).split("?")[0],u=r(n),c="";(0,o.default)(u).forEach(function(t){c+=""===c?"?"+t+"="+u[t]:"&"+t+"="+u[t]}),i="/pages/webview/webview?url="+s+encodeURIComponent(c)}return wx.miniProgram.navigateTo({url:i}),!1}return!0},createLinkButton:function(t,e){var n=document.createElement("a");return n.style.position="fixed",n.style.top=0,n.style.left=0,n.style.border="none",n.style.outline="none",n.style.resize="none",n.style.background="transparent",n.style.color="transparent",n.setAttribute("id",e),n.setAttribute("href",t),document.body.appendChild(n),n}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(2)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}}(n(19));var r=n(7),i=n(21),s=n(1),u=n(8),c=s.getQueryObj,a="";t.exports={env:function(){var t=window.__wxjs_environment;return!t&&navigator.userAgent.match(/yohobuy/i)?(a="app",document.addEventListener("deviceready",function(){})):a=!t&&navigator.userAgent.match(/miniProgram/i)||"miniprogram"===t?"miniprogram":"https://www.yohobuy.com"===location.origin?"pc":"h5",a},loginUrl:function(){var t,e=location.href;return"app"===a?(t="http://m.yohobuy.com/signin.html?refer="+encodeURIComponent(e),e=function(t){var e,n,o,r={};if((e=((t=(t||"").split("?"))[1]||"").split("&"))&&e.length)for(o=0;o<e.length;o++)r[(n=e[o].split("="))[0]]=n[1];return{path:t[0],query:r}}(e),/Android/i.test(navigator.userAgent||"")?(t.indexOf("?")<0&&(t+="?appLogin=1"),location.href.indexOf("&openby")>=0&&(t=t.substring(0,t.indexOf("&openby"))),t+="&"):(location.href.indexOf("#openby")>=0&&(t=t.substring(0,t.indexOf("#openby"))),t+="#"),t+="openby:yohobuy="+(0,o.default)({action:"go.weblogin",params:{priority:"N",jumpurl:{url:e.path,param:e.query},needlogout:"Y"}})):"pc"===a?t="https://www.yoho/signin.html?refer="+encodeURIComponent(location.href):"miniprogram"===a?t="/pages/userCenter/userCenter":(e.indexOf("?")<0?e+="?skcall=1":e+="&skcall=1",t="http://m.yohobuy.com/signin.html?refer="+encodeURIComponent(e)),t},getUser:function(){return new u(function(t){var e={sessionType:i.cookie("app_client_type")||c().app_client_type||"",appVersion:i.cookie("app_version")||c().app_version||""};"h5"===a||"pc"===a?r({url:"//m.yohobuy.com/passport/login/user",jsonp:"callback"}).then(function(n){e.uid=0,200===n.code&&(e.uid=Number(n.data)),e.sessionKey=i.cookie("app_session_key")||c().session_key||"",t(e)}):"app"===a?document.addEventListener("deviceready",function(){return u.all([new u(function(t){s.invokeMethod({method:"get.uid",arguments:{},success:function(e){t(parseInt(e))},fail:function(){var e=Number(i.cookie("app_uid"))||Number(c().uid)||0;t(e)}})}),new u(function(t){s.invokeMethod({method:"get.sessionId",arguments:{},success:function(e){t(e)},fail:function(){var e=i.cookie("app_session_key")||c().session_key||"";t(e)}})})]).then(function(n){e.uid=n[0],e.sessionKey=n[1],t(e)})}):(e.uid=Number(i.cookie("app_uid"))||Number(c().uid)||0,e.sessionKey=i.cookie("app_session_key")||c().session_key||"",t(e))})}}},function(t,e,n){"use strict";var o=n(8);t.exports=function(t){return new o(function(e,n){(t=t||{}).data=t.data||{};var o=t.jsonp;t.data.callback=o;var r=function(t){var e=[];for(var n in t)e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));var o=new Date;return e.push("v="+o.getTime()),e.join("&")}(t.data),i=document.createElement("script");document.body.appendChild(i),window[o]=function(t){return document.body.removeChild(i),clearTimeout(i.timer),window[o]=null,e(t)},i.src=t.url+"?"+r,t.time&&(i.timer=setTimeout(function(){window[o]=null,document.body.removeChild(i),n({message:"超时"})},time))})}},function(t,e,n){"use strict";function o(t){var e=this;e._value=null,e._reason=function(){},e._resolves=[],e._rejects=[],e._status="PENDING",this.then=function(t,n){return new o(function(o,r){function i(e){var n="function"==typeof t&&t(e)||e;n&&"function"==typeof n.then?n.then(function(t){o(t)},function(t){r(t)}):o(n)}function s(t){t="function"==typeof n&&n(t)||t,r(t)}"PENDING"===e._status?(e._resolves.push(i),e._rejects.push(s)):"FULFILLED"===e._status?i(e._value):"REJECTED"===e._status&&s(e._reason)})},t(function(t){setTimeout(function(){e._status="FULFILLED",e._resolves.forEach(function(n){e._value=n(t)})},0)},function(t){setTimeout(function(){e._status="REJECTED",e._rejects.forEach(function(n){e._reason=n(t)})},0)})}o.all=function(t){if(!Array.isArray(t))throw new TypeError("You must pass an array to all.");return new o(function(e,n){var o=0,r=[],i=t.length,s=i;function u(t){return function(n){!function(t,n){r[t]=n,0==--s&&e(r)}(t,n)}}function c(t){n(t)}for(;o<i;o++)t[o].then(u(o),c)})},o.race=function(t){if(!Array.isArray(t))throw new TypeError("You must pass an array to race.");return new o(function(e,n){var o=0,r=t.length;function i(t){e(t)}function s(t){n(t)}for(;o<r;o++)t[o].then(i,s)})},t.exports=o},function(t,e,n){var o=n(10);t.exports=function(t){return Object(o(t))}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var o=n(25),r=n(34);t.exports=Object.keys||function(t){return o(t,r)}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var o=n(14),r=n(10);t.exports=function(t){return o(r(t))}},function(t,e,n){var o=n(26);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==o(t)?t.split(""):Object(t)}},function(t,e){var n=Math.ceil,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?o:n)(t)}},function(t,e,n){var o=n(3),r=n(0),i=n(36),s=n(38),u=n(12),c=function(t,e,n){var a,p,f,l=t&c.F,h=t&c.G,d=t&c.S,g=t&c.P,m=t&c.B,v=t&c.W,y=h?r:r[e]||(r[e]={}),b=y.prototype,_=h?o:d?o[e]:(o[e]||{}).prototype;for(a in h&&(n=e),n)(p=!l&&_&&void 0!==_[a])&&u(y,a)||(f=p?_[a]:n[a],y[a]=h&&"function"!=typeof _[a]?n[a]:m&&p?i(f,o):v&&_[a]==f?function(t){var e=function(e,n,o){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,o)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):g&&"function"==typeof f?i(Function.call,f):f,g&&((y.virtual||(y.virtual={}))[a]=f,t&c.R&&b&&!b[a]&&s(b,a,f)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){t.exports=n(18)},function(t,e,n){"use strict";var o=n(6),r=n(45),i=n(46),s=n(47),u=n(48),c=n(1),a=o.env(),p=new r({loginUrl:o.loginUrl(),env:a}),f=new i(a),l=new s;t.exports={auth:p.auth.bind(p),goLogin:p.goLogin.bind(p),getUser:o.getUser,env:a,link:f.link.bind(f),goBack:f.goBack.bind(f),wxShare:l.wxShare.bind(l),wxSignature:l.wxSignature,getQueryObj:c.getQueryObj,invokeMethod:c.invokeMethod,lazyload:u}},function(t,e,n){t.exports={default:n(20),__esModule:!0}},function(t,e,n){var o=n(0),r=o.JSON||(o.JSON={stringify:JSON.stringify});t.exports=function(t){return r.stringify.apply(r,arguments)}},function(t,e,n){"use strict";t.exports={cookie:function(t){return new RegExp(t+"=([^;$]*)","i").test(decodeURIComponent(document.cookie))?RegExp.$1:""},setCookie:function(t,e,n){var o,r,i,s,u="";void 0!==e&&(n=n||{},null===e&&(e="",n.expires=-1),n.expires&&("number"==typeof n.expires||n.expires.toUTCString)&&("number"==typeof n.expires?(s=new Date).setTime(s.getTime()+24*n.expires*60*60*1e3):s=n.expires,u="; expires="+s.toUTCString()),o=n.path?"; path="+n.path:"",r=n.domain?"; domain="+n.domain:"",i=n.secure?"; secure":"",document.cookie=[t,"=",encodeURIComponent(e),u,o,r,i].join(""))}}},function(t,e,n){t.exports={default:n(23),__esModule:!0}},function(t,e,n){n(24),t.exports=n(0).Object.keys},function(t,e,n){var o=n(9),r=n(11);n(35)("keys",function(){return function(t){return r(o(t))}})},function(t,e,n){var o=n(12),r=n(13),i=n(27)(!1),s=n(30)("IE_PROTO");t.exports=function(t,e){var n,u=r(t),c=0,a=[];for(n in u)n!=s&&o(u,n)&&a.push(n);for(;e.length>c;)o(u,n=e[c++])&&(~i(a,n)||a.push(n));return a}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var o=n(13),r=n(28),i=n(29);t.exports=function(t){return function(e,n,s){var u,c=o(e),a=r(c.length),p=i(s,a);if(t&&n!=n){for(;a>p;)if((u=c[p++])!=u)return!0}else for(;a>p;p++)if((t||p in c)&&c[p]===n)return t||p||0;return!t&&-1}}},function(t,e,n){var o=n(15),r=Math.min;t.exports=function(t){return t>0?r(o(t),9007199254740991):0}},function(t,e,n){var o=n(15),r=Math.max,i=Math.min;t.exports=function(t,e){return(t=o(t))<0?r(t+e,0):i(t,e)}},function(t,e,n){var o=n(31)("keys"),r=n(33);t.exports=function(t){return o[t]||(o[t]=r(t))}},function(t,e,n){var o=n(0),r=n(3),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:o.version,mode:n(32)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=!0},function(t,e){var n=0,o=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+o).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var o=n(16),r=n(0),i=n(2);t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],s={};s[t]=e(n),o(o.S+o.F*i(function(){n(1)}),"Object",s)}},function(t,e,n){var o=n(37);t.exports=function(t,e,n){if(o(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,o){return t.call(e,n,o)};case 3:return function(n,o,r){return t.call(e,n,o,r)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var o=n(39),r=n(44);t.exports=n(5)?function(t,e,n){return o.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var o=n(40),r=n(41),i=n(43),s=Object.defineProperty;e.f=n(5)?Object.defineProperty:function(t,e,n){if(o(t),e=i(e,!0),o(n),r)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var o=n(4);t.exports=function(t){if(!o(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(5)&&!n(2)(function(){return 7!=Object.defineProperty(n(42)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var o=n(4),r=n(3).document,i=o(r)&&o(r.createElement);t.exports=function(t){return i?r.createElement(t):{}}},function(t,e,n){var o=n(4);t.exports=function(t,e){if(!o(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!o(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";var o=n(1),r=n(6);t.exports=function(t){var e=this;e.env=t.env,e.url=t.loginUrl,e.goLogin=function(){if("miniprogram"===e.env)wx.miniProgram.switchTab({url:e.url});else if("app"===e.env){var t=document.getElementById("yosdk-login");t||(t=o.createLinkButton(e.url,"yosdk-login")),t.click()}else window.location.href=e.url;return!1},e.auth=function(){r.getUser().then(function(t){if(!t.uid){var n=document.querySelectorAll(".auth");if(n.length)return n.forEach(function(t){t.onclick=function(t){t.preventDefault(),e.goLogin()}}),!0}})}}},function(t,e,n){"use strict";var o=n(1);function r(t){this.env=t}r.prototype.link=function(t){var e=t.currentTarget,n=e.getAttribute("data-type")||"other",r=e.getAttribute("data-id")||"",i=e.getAttribute("data-url")||"",s=e.getAttribute("data-name")||"",u="";if("miniprogram"===this.env)return u="product"===n?"/pages/goodsDetail/goodsDetail?productSkn="+r+"&page_name=goodsList&page_param=5":"brand"===n?"/pages/goodsList/brandStore?shop_id="+r+"&shop_name="+s:i,o.linkToMiniApp(u,n);if(u="pc"===this.env?"product"===n?"https://www.yohobuy.com/product/"+r+".html":"brand"===n?"https://www.yohobuy.com/shop/"+s+"-"+r+".html":i:"product"===n?"//m.yohobuy.com/product/"+r+'.html?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":'+r+"}}":"brand"===n?"//m.yohobuy.com/product/index/brand?shop_id="+r+'&openby:yohobuy={"action":"go.shop","params":{"shop_id":"'+r+'","shop_template_type":"1","shop_name":"'+s+'","is_red_shop":"1"}}':i,"app"===this.env){var c=document.getElementById("yosdk-goto");return c?c.setAttribute("href",u):c=o.createLinkButton(u,"yosdk-goto"),c.click()}window.location.href=u},r.prototype.goBack=function(){"app"===this.env?o.invokeMethod({method:"go.back"}):"miniprogram"===this.env?wx.miniProgram.navigateBack():history.go(-1)},t.exports=r},function(t,e,n){"use strict";var o=n(7);function r(){}r.prototype.wxSignature=function(t){o("//action.yoho.cn/api/share/getSignPackage?pageurl="+encodeURIComponent(location.href.split("#")[0])).then(function(e){if(e.appId){var n=e.appId.toString(),o=e.timestamp,i=e.nonceStr.toString(),s=e.signature.toString();return r.config({debug:!1,appId:n,timestamp:o,nonceStr:i,signature:s,jsApiList:["checkJsApi","onMenuShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareWeibo","hideMenuItems","showMenuItems","hideAllNonBaseMenuItem","showAllNonBaseMenuItem","translateVoice","startRecord","stopRecord","onVoiceRecordEnd","playVoice","pauseVoice","stopVoice","uploadVoice","onVoicePlayEnd","downloadVoice","chooseImage","previewImage","uploadImage","downloadImage","getNetworkType","openLocation","getLocation","hideOptionMenu","showOptionMenu","closeWindow","scanQRCode","chooseWXPay","openProductSpecificView","addCard","chooseCard","openCard"]}),t&&setTimeout(t,500),!0}return!1})},r.prototype.wxShare=function(t){this.wxSignature(function(){var e=t||{title:"",imgUrl:"",desc:"",link:document.location.href,success:function(){}};r.ready(function(){r.onMenuShareAppMessage(e),r.onMenuShareTimeline(e),r.onMenuShareQQ(e),r.onMenuShareWeibo(e)})})},t.exports=r},function(t,e,n){"use strict";n(49);var o=n(50);t.exports=function(t){var e=new function(t){var e=this;this.conf={srcTarget:t&&t.srcTarget||"data-src",selector:t&&t.selector||".yo-lazy"},this.io=new IntersectionObserver(function(t){t.forEach(function(t){if(t.intersectionRatio>0){e.io.unobserve(t.target);var n=t.target.getAttribute(e.conf.srcTarget);"img"===t.target.tagName.toLowerCase()?n&&(t.target.src=n):t.target.style.backgroundImage="url("+o(n)+")",t.target.setAttribute("data-load","false")}})},{root:null,rootMargin:"0px",threshold:[0]});var n=document.querySelectorAll(this.conf.selector);this.loading=function(){n.forEach(function(t){e.io.observe(t)})}}(t);void 0!==window.supportWebp?e.loading():document.addEventListener("supportWebp",e.loading)}},function(t,e){!function(t,e){"use strict";if("IntersectionObserver"in t&&"IntersectionObserverEntry"in t&&"intersectionRatio"in t.IntersectionObserverEntry.prototype)"isIntersecting"in t.IntersectionObserverEntry.prototype||Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var n=[];r.prototype.THROTTLE_TIMEOUT=100,r.prototype.POLL_INTERVAL=null,r.prototype.USE_MUTATION_OBSERVER=!0,r.prototype.observe=function(t){if(!this._observationTargets.some(function(e){return e.element==t})){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},r.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},r.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},r.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},r.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]})},r.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},r.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(i(t,"resize",this._checkForIntersections,!0),i(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in t&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},r.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,s(t,"resize",this._checkForIntersections,!0),s(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},r.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),n=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(r){var i=r.element,s=c(i),u=this._rootContainsTarget(i),a=r.entry,p=e&&u&&this._computeTargetAndRootIntersection(i,n),f=r.entry=new o({time:t.performance&&performance.now&&performance.now(),target:i,boundingClientRect:s,rootBounds:n,intersectionRect:p});a?e&&u?this._hasCrossedThreshold(a,f)&&this._queuedEntries.push(f):a&&a.isIntersecting&&this._queuedEntries.push(f):this._queuedEntries.push(f)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},r.prototype._computeTargetAndRootIntersection=function(n,o){if("none"!=t.getComputedStyle(n).display){for(var r=c(n),i=p(n),s=!1;!s;){var a=null,f=1==i.nodeType?t.getComputedStyle(i):{};if("none"==f.display)return;if(i==this.root||i==e?(s=!0,a=o):i!=e.body&&i!=e.documentElement&&"visible"!=f.overflow&&(a=c(i)),a&&!(r=u(a,r)))break;i=p(i)}return r}},r.prototype._getRootRect=function(){var t;if(this.root)t=c(this.root);else{var n=e.documentElement,o=e.body;t={top:0,left:0,right:n.clientWidth||o.clientWidth,width:n.clientWidth||o.clientWidth,bottom:n.clientHeight||o.clientHeight,height:n.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(t)},r.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100}),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},r.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,o=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==o)for(var r=0;r<this.thresholds.length;r++){var i=this.thresholds[r];if(i==n||i==o||i<n!=i<o)return!0}},r.prototype._rootIsInDom=function(){return!this.root||a(e,this.root)},r.prototype._rootContainsTarget=function(t){return a(this.root||e,t)},r.prototype._registerInstance=function(){n.indexOf(this)<0&&n.push(this)},r.prototype._unregisterInstance=function(){var t=n.indexOf(this);-1!=t&&n.splice(t,1)},t.IntersectionObserver=r,t.IntersectionObserverEntry=o}function o(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0},this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,o=this.intersectionRect,r=o.width*o.height;this.intersectionRatio=n?Number((r/n).toFixed(4)):this.isIntersecting?1:0}function r(t,e){var n=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=function(t,e){var n=null;return function(){n||(n=setTimeout(function(){t(),n=null},e))}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map(function(t){return t.value+t.unit}).join(" ")}function i(t,e,n,o){"function"==typeof t.addEventListener?t.addEventListener(e,n,o||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function s(t,e,n,o){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,o||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function u(t,e){var n=Math.max(t.top,e.top),o=Math.min(t.bottom,e.bottom),r=Math.max(t.left,e.left),i=Math.min(t.right,e.right),s=i-r,u=o-n;return s>=0&&u>=0&&{top:n,bottom:o,left:r,right:i,width:s,height:u}}function c(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function a(t,e){for(var n=e;n;){if(n==t)return!0;n=p(n)}return!1}function p(t){var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e}}(window,document)},function(t,e,n){"use strict";var o=function(t){return t&&t.__esModule?t:{default:t}}(n(51));n(57);t.exports=function(t,e){if(!t)return t;e=(0,o.default)({q:60},e);var n=t.split("?"),r=n[0],i=n[1]||"";return i&&"imageslim"!==i?/imageView/.test(i)?(/\/q\/\d+/.test(i)?t=t.replace(/\/q\/\d+/g,"/q/"+e.q):t+="/q/"+e.q,window.supportWebp&&!/format\//i.test(i)&&(t+="/format/webp"),window.supportWebp&&(/format\/png/i.test(i)||/format\/jpg/i.test(i))&&(t=t.replace(/format\/png/i,"format/webp").replace(/format\/jpg/i,"format/webp"))):/imageMogr/.test(i)&&(/\/quality\/\d+/.test(i)?t=t.replace(/\/quality\/\d+/g,"/quality/"+e.q):t+="/quality/"+e.q,window.supportWebp&&!/format\//.test(i)&&(t+="/format/webp"),window.supportWebp&&(/format\/png/i.test(i)||/format\/jpg/i.test(i))&&(t=t.replace(/format\/png/i,"format/webp").replace(/format\/jpg/i,"format/webp"))):(window.supportWebp?r+="?imageView2/0/interlace/1/format/webp/q/"+e.q:r+=60===e.q?"?imageslim":"?imageView2/0/interlace/1/q/"+e.q,t=r),t}},function(t,e,n){t.exports={default:n(52),__esModule:!0}},function(t,e,n){n(53),t.exports=n(0).Object.assign},function(t,e,n){var o=n(16);o(o.S+o.F,"Object",{assign:n(54)})},function(t,e,n){"use strict";var o=n(11),r=n(55),i=n(56),s=n(9),u=n(14),c=Object.assign;t.exports=!c||n(2)(function(){var t={},e={},n=Symbol(),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=o})?function(t,e){for(var n=s(t),c=arguments.length,a=1,p=r.f,f=i.f;c>a;)for(var l,h=u(arguments[a++]),d=p?o(h).concat(p(h)):o(h),g=d.length,m=0;g>m;)f.call(h,l=d[m++])&&(n[l]=h[l]);return n}:c},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){"use strict";!function(t){if(/yoho/i.test(navigator.userAgent)&&/supportWebp/i.test(navigator.userAgent))window.supportWebp=!0;else{var e=new Image;e.onload=function(){var t=e.width>0&&e.height>0;window.supportWebp=t||!1;var n=document.createEvent("HTMLEvents");n.initEvent("supportWebp",!0,!0),document.dispatchEvent(n)},e.onerror=function(){var t=document.createEvent("HTMLEvents");t.initEvent("supportWebp",!0,!0),document.dispatchEvent(t)},e.src="data:image/webp;base64,"+{lossy:"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA"}[t]}}("lossy")}])});
\ No newline at end of file
... ...