(window["webpackJsonp-ae-fe/cosmos-1"]=window["webpackJsonp-ae-fe/cosmos-1"]||[]).push([[16],{1077:function(e,t,n){"use strict";n.r(t),n.d(t,"getPageId",(function(){return $t})),n.d(t,"sendPV",(function(){return Wt})),n.d(t,"sendDetailPV",(function(){return Vt})),n.d(t,"sendInteractionObject",(function(){return Qt})),n.d(t,"sendInteractionObjects",(function(){return Jt})),n.d(t,"click",(function(){return Kt})),n.d(t,"exposure",(function(){return Yt})),n.d(t,"sendBuyNowClick",(function(){return Zt})),n.d(t,"sendAddToCartClick",(function(){return en})),n.d(t,"sendAddToWishlistClick",(function(){return tn})),n.d(t,"sendAEClick",(function(){return nn})),n.d(t,"sendAEExposure",(function(){return rn})),n.d(t,"sendPagePref",(function(){return _t})),n.d(t,"sendPagePerfCfpt",(function(){return kt})),n.d(t,"sendPagePerfDidMount",(function(){return St})),n.d(t,"sendPagePerfDataComplete",(function(){return xt})),n.d(t,"sendCustomError",(function(){return Ot})),n.d(t,"sendApiError",(function(){return Et})),n.d(t,"sendApiSuccess",(function(){return Pt})),n.d(t,"sendResourceError",(function(){return jt})),n.d(t,"sendPluginEvent",(function(){return At})),n.d(t,"sendWhitePageEvent",(function(){return Ct})),n.d(t,"initWhitePageDetectTracker",(function(){return Qn})),n.d(t,"init",(function(){return Jn}));var r,o,i,a,c=n(4),u=n.n(c),s=n(41),l=n.n(s),f=n(440),p=n.n(f),d=n(51);function v(){var e=p.a.parse(location.search)||{};return"true"===e._gep_use_debug_||!0===e._gep_use_debug_}function h(){if(v()){for(var e,t=arguments.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:20,n=arguments.length>1?arguments[1]:void 0;return n=n||"",t?e(--t,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz".charAt(Math.floor(60*Math.random()))+n):n},ee={sdk_version:"1.0.34",pv_id:Z()};function te(){if(K.length){var e=K.join("|");if(J=ee.maxUrlLength||J,e.lengthJ)break;K.shift(),t+=t?"|"+n:n}Q.send(re(t)),K.length&&te()}}function ne(e,t){!1===t?W((function(){Q.send(re(e))})):(K.push(e),W(te))}function re(e){var t=["msg="+e];for(var n in ee)-1===n.indexOf("plugin_")&&"requiredFields"!==n&&"maxUrlLength"!==n&&ee.hasOwnProperty(n)&&(ee[n]||0===ee[n])&&t.push(n+"="+encodeURIComponent(ee[n]));return t.join("&")}function oe(){return(ee.requiredFields||[]).concat(["pid"]).some((function(e){return void 0===ee[e]}))}Q.setConfig=function(e,t){var n=function(){if(void 0!==t)ee[e]=t;else for(var n in e)ee[n]=e[n]};Y.length?(n(),oe()||(Y.forEach((function(e){ne.apply(null,e)})),Y=[])):(function(){if(void 0!==t)return t!==ee[e];for(var n in e)if(e[n]!==ee[n])return!0;return!1}()&&te(),n())},Q.getConfig=function(e){return e?ee[e]:ee},Q.updatePVID=function(){Q.setConfig("pv_id",Z())},Q.log=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){t.ts=t.ts||(new Date).getTime(),t.type=e;var r=[];for(var o in t){var i=t[o],a=Object.prototype.toString.call(i);"[object String]"!==a&&"[object Number]"!==a&&"[object Boolean]"!==a&&"[object Object]"!==a&&"[object Array]"!==a||("[object Object]"!==a&&"[object Array]"!==a||(i=z()(i)),r.push("".concat(o,"=").concat(encodeURIComponent(i))))}t=encodeURIComponent(r.join("&")),oe()?Y.push([t,n.combo]):ne(t,n.combo)}},Q.before=function(e,t){return function(){var n=arguments,r=t.apply(Q,n);V(r)?r.then((function(t){e.apply(Q,t||n)})):e.apply(Q,r||n)}},Q.after=function(e,t){return function(){var n=arguments;e.apply(Q,n),t.apply(Q,n)}};var ie=Q,ae=-1!==navigator.userAgent.indexOf("WindVane"),ce=[];ie.setConfig(function(){var e=function(){if(window.goldlog&&goldlog.spm_ab)return goldlog.spm_ab;var e,t=document.querySelector('meta[name="spm-id"]')||document.querySelector('meta[name="data-spm"]');if(t&&(e=t.content)&&-1!==e.indexOf("."))return e.split(".");var n=document.body&&document.body.getAttribute("data-spm");return e&&n?[e,n]:[]}(),t={title:document.title,spm_a:e[0],spm_b:e[1],hash:location.hash,dpi:window.devicePixelRatio,sr:"".concat(window.screen.width,"x").concat(window.screen.height)},n=document.querySelector('meta[name="aes-config"]');if(n)try{var r=n.getAttribute("content");r&&r.split("&").forEach((function(e){var n=e.split("="),r=n[0],o=decodeURIComponent(n[1]);if(-1!==r.indexOf(".")){var i=r.split(".")[0],a=r.split(".")[1];t[i]||(t[i]={}),t[i][a]=o}else t[r]=o}))}catch(e){}for(var o in window.AES_CONFIG)t[o]=AES_CONFIG[o];return t}()),window.addEventListener("hashchange",(function(){ie.setConfig("hash",location.hash)}));var ue=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(ue){var se=function(){ie.setConfig({downlink:ue.downlink,net_type:ue.effectiveType}),navigator.onLine&&ce.length&&(ce.forEach((function(e){W((function(){ie.send(e)}))})),ce=[])};se(),ue.addEventListener("change",se)}try{var le=function(){var e=document.querySelector("title");e&&new MutationObserver((function(){ie.setConfig("title",document.title)})).observe(e,{childList:!0,characterData:!0,subtree:!0})};document.querySelector("title")?le():document.addEventListener("DOMContentLoaded",le)}catch(e){}ie.log=ie.before(ie.log,(function(){var e;if(window.goldlog){var t=goldlog.spm_ab;t&&(ie.getConfig("spm_a")!==t[0]&&((e||(e={})).spm_a=t[0]),ie.getConfig("spm_b")!==t[1]&&((e||(e={})).spm_b=t[1]))}var n=function(){try{if(window.xr){var e=Array.from(xr.global.recordingContexts.keys());if(e.length>0){var t=xr.global.recordingContexts.get(e[0]);if(t.appKey&&t.recordingId&&t.isRecording)return{appKey:t.appKey,recordingId:t.recordingId}}}}catch(e){}}();if(n){var r=n.appKey+","+n.recordingId;ie.getConfig("xreplay_id")!==r&&((e||(e={})).xreplay_id=r)}e&&ie.setConfig(e)})),ie.send=function(e){var t=window.goldlog&&"function"==typeof goldlog.record;if(navigator.onLine||ae&&t){var n,r=["/aes.1.1","EXP",e,window.AES_DISABLE_POST?"GET":"POST"];if(t)(n=goldlog).record.apply(n,r);else window.goldlog_queue||(window.goldlog_queue=[]),goldlog_queue.push({action:"goldlog.record",arguments:r})}else ce.length>500&&ce.shift(),ce.push(e)};["AES_QUEUE","AES_QUENE"].forEach((function(e){"[object Array]"===Object.prototype.toString.call(window[e])?window[e].forEach((function(e){"function"==typeof e?e(ie):ie[e.action].apply(ie,e.arguments)})):window[e]=[],window[e].push=function(e){"function"==typeof e?e(ie):ie[e.action].apply(ie,e.arguments)}}));var fe=ie,pe={noop:function(){},win:"object"==typeof window&&window.document?window:void 0,T:function(e,t){var n=Object.prototype.toString.call(e).substring(8).replace("]","");return t?n===t:n},on:function(e,t,n,r,o){return e.addEventListener?(o=o||!1,e.addEventListener(t,(function i(a){r&&e.removeEventListener(t,i,o),n.call(this,a)}),o)):e.attachEvent&&e.attachEvent("on"+t,(function o(i){r&&e.detachEvent("on"+t,o),n.call(this,i)})),this},off:function(e,t,n){return n?(e.removeEventListener?e.removeEventListener(t,n):e.detachEvent&&e.detachEvent(t,n),this):this}},de={};function ve(e){if(void 0!==typeof e)return de[e]}function he(e){return e?e.length<1001?e:e.substr(0,997)+"...":""}function ye(e){if(!e||"string"!=typeof e)return"";try{var t=e.split("\n").slice(1).map((function(e){return e.replace(/^\s+at\s+/,"")})).filter((function(e){return!!e}));if(t.join("^").length<=2e3)return t.join("^");for(var n=!1;t.join("^").length>2e3;)if(2===t.length)t.splice(1,1),n=!0;else if(1===t.length){var r=t[0];t[0]="".concat(r.substr(0,997),"...").concat(r.substr(-1e3,1e3))}else t.splice(t.length-2),n=!0;if(t.length>1&&n){var o=t.pop();return t.join("^")+"^...^"+o}return 1===t.length&&n?t[0]+"^...":t.join("^")}catch(e){return""}}function me(e){if("string"==typeof e.message){var t=e.message.match(/Uncaught (\w+):/);if(t&&t[1])return t[1]}return e.error_type?e.error_type:e.name?e.name:e.constructor.name}var ge=function(e){if("object"==typeof e){var t=ve("AES"),n=e.message,r=void 0===n?"":n,o=e.filename,i=e.lineno,a=e.colno,c=e.stack,u=e.error_code,s=void 0===u?"":u,l=e.error,f=(t.getConfig("plugin_jserror")||{}).ignoreList;f&&f.some((function(t){if("string"==typeof t)return t===r;if("function"==typeof t)try{return t(r,e)}catch(e){}else if(t instanceof RegExp)return t.test(r)}))||t.log("js_error",{message:r,url:he(o),lineno:i,colno:a,stack:ye(l&&l.stack||c),error_type:me(e),error_code:s})}};function be(e,t,n,r,o){try{if("string"==typeof e)return void ge({message:e,filename:t,lineno:n,colno:r,error:o});ge(e)}catch(e){}}function we(e){if(e)try{var t="",n=0,r=0,o="",i="",a="string"==typeof e?e:e.reason,c=ve("AES").getConfig("plugin_js_error_processPromiseRejectReason");if("function"==typeof c&&(!1===(a=c(a))||void 0===a||""===a||null===a))return;"string"==typeof e.message&&(t=e.message),"string"==typeof a?t=a:"object"==typeof a&&(t=a.message);try{t||(t="object"==typeof a?z()(a).substr(0,150):t)}catch(e){}if("object"==typeof a){if("number"==typeof a.column)r=a.column,n=a.line;else if(a.stack){(u=a.stack.match(/at\s+.+:(\d+):(\d+)/))&&(n=u[1],r=u[2])}if(a.sourceURL)o=a.sourceURL;else if(a.stack){var u;(u=a.stack.match(/at\s+(.+):\d+:\d+/))&&(o=u[1])}a.stack&&(i=a.stack)}ge({message:t,filename:o,lineno:n,colno:r,stack:i,error_type:e.constructor.name})}catch(e){}}var _e,ke,Se=be,xe=we;ke=fe,void 0!==typeof(_e="AES")&&(de[_e]=ke);var Oe=Se,Ee=xe;!function(){var e=fe.getConfig("plugin_jserror")||{};window&&!window.AESPluginJsError&&(pe.on(window,"error",Oe),!e.disable_unhandled_rejection&&pe.on(window,"unhandledrejection",Ee))}();function Pe(e,t){for(var n in t)e[n]=t[n];return e}function je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if("string"==typeof e)return e.length>t&&(e=e.substr(0,t-3)+"..."),e}var Ae=function(e){var t=e.url,n=e.success,r=e.msg,o=e.status,i=e.code,a=e.duration,c=e.traceId,u=e.params,s=e.body,l=e.response,f=e.headers,p=e.rtype,d=e.method,v=fe.getConfig("plugin_api")||{},h=v.ignoreList,y=v.sendResponseOnSuccess;if(!h||!h.some((function(n){if("string"==typeof n)return n===t;if("function"==typeof n)try{return n(t,e)}catch(e){}else if(n instanceof RegExp)return n.test(t)}))){var m=function(){if(!("object"==typeof my))return!1;try{var e="";try{e=navigator?navigator.userAgent||navigator.swuserAgent:""}catch(e){}if(!e)try{e=clientInformation?clientInformation.appVersion:""}catch(e){}var t=!1;try{t=!!dd}catch(e){}return t||/AliApp\(AP/.test(e)||/AliApp\(DingTalk/.test(e)||/micromessenger/.test(e)}catch(e){return!1}}();fe.log("api",{url:t,method:"string"==typeof d?d.toUpperCase():void 0,success:n,msg:r,status:o,code:i,duration:a,trace_id:c,params:u,body:je(s,m?2e3:1e4),response:!n||y?je(l,m?1e3:1e4):void 0,headers:f,rtype:p})}};function Ce(e,t){return(void 0===t||t>=200&&t<300)&&(void 0!==e.success?!0===e.success||"true"===e.success:void 0!==e.isSuccess?!0===e.isSuccess||"true"===e.isSuccess:void 0!==e.isOk?!0===e.isOk||"true"===e.isOk:void 0!==e.ok?!0===e.ok||"true"===e.ok:isNaN(e.status)?!!isNaN(e.code)||200==e.code:200==e.status)}function Re(e){return e.code}function Te(e){var t=e.msg||e.message||e.errMsg||e.errorMessage||e.errorMsg;return t&&t.length>50&&(t=t.substring(1,50)),t}function Le(e,t){if(t=t.toUpperCase(),e&&("POST"===t||"PUT"===t)){if("string"==typeof e)return e;if(window.FormData&&e instanceof FormData){var n=[];return e.forEach((function(e,t){n.push("".concat(t,"=").concat("string"==typeof e?e:Object.prototype.toString.call(e)))})),n.join("&")}return window.URLSearchParams&&e instanceof URLSearchParams?e.toString():window.Request&&e instanceof Request?e.clone().text():Object.prototype.toString.call(e)}}function Ie(e,t,n){var r,o=e;if("string"==typeof o)try{o=JSON.parse(e)}catch(e){}r="[object Object]"===Object.prototype.toString.call(o)?{msg:Te(o),code:Re(o),success:Ce(o,t)}:{success:void 0===t||t>=200&&t<300};var i=fe.getConfig("plugin_api")||{};if("function"==typeof i.parseResponse)try{var a=i.parseResponse(o,t,n)||{};for(var c in a)r[c]=a[c]}catch(e){}return r}function Fe(e){return!e||-1!==e.indexOf("api=")&&-1!==e.indexOf("v=")&&-1!==e.indexOf("jsv=")||-1!==e.indexOf(".mmstat.com")||e.match(/\.(js|css|png|jpg|gif|jpeg|webp|ico|svg)(\?.*)?$/)}function Ne(e){return"undefined"!=typeof Promise&&e instanceof Promise}function De(e){if(window.Headers&&e instanceof Headers){var t={};return e.forEach((function(e,n){t[n]=e})),t}if("[object Object]"===Object.prototype.toString.call(e))return e}function Me(e,t){if(t.originResponse)return e;if("jsonp"===t.method)return e.text();var n=e.headers&&e.headers.get?e.headers.get("content-type"):null;return n&&-1===n.toLowerCase().indexOf("json")&&-1===n.toLowerCase().indexOf("text")?"[".concat(n,"]"):e.text()}var Ue=function(){if(!("function"!=typeof window.fetch||window.fetch&&window.fetch.polyfill)){var e=window.fetch;window.fetch=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=fe.getConfig("plugin_api")||{};if("HEAD"===n.method||"no-cors"===n.mode)return e.apply(window,arguments);var o="object"==typeof t?t.url||t.href:t;if(Fe(o))return e.apply(window,arguments);var i,a,c=o.split("?"),u=c[0],s=c[1],l=n.method||t.method||"GET";try{a=De(n.headers||t.headers)}catch(e){}try{Ne(i=Le(n.body||t,l))&&i.then((function(e){i=e}))}catch(e){}var f=(new Date).getTime();return e.apply(window,arguments).then((function(e){try{if("[object Response]"!==Object.prototype.toString.call(e))return e;var t,o=(new Date).getTime()-f,c=e.clone?e.clone():e,p=c.status;c.headers.has("eagleeye-traceid")?t=c.headers.get("eagleeye-traceid"):c.headers.has("x-eagleeye-id")&&(t=c.headers.get("x-eagleeye-id"));var d=function(e){!1!==(c=Ie(e,p,{type:"fetch",params:s,url:u,body:n.body})).success&&r.disable_send_on_success||Ae(Pe({url:u,method:l,status:p,duration:o,traceId:t,params:s,headers:a,body:i,response:e,rtype:"fetch"},c))},v=Me(c,n);Ne(v)?v.then(d):d(v)}catch(e){}return e}),(function(e){var t=(new Date).getTime()-f,n=Ie("",-1,{type:"fetch",params:s,url:u});throw Ae(Pe({url:u,method:l,success:!1,msg:e.message,status:-1,duration:t,params:s,body:i,headers:a,rtype:"fetch"},n)),e}))}}};var Be=function(){if("function"==typeof window.XMLHttpRequest&&window.addEventListener){var e=window.XMLHttpRequest,t=e.prototype,n=t.open,r=t.send,o=t.setRequestHeader;e.prototype.open=function(e,t){n.apply(this,arguments),this._aesHook={method:e,url:t}},e.prototype.setRequestHeader=function(e,t){o.apply(this,arguments),this._aesHook.headers||(this._aesHook.headers={}),this._aesHook.headers[e]=t},e.prototype.send=function(e){r.apply(this,arguments);try{var t=this._aesHook,n=t.url,o=t.method,i=void 0===o?"GET":o,a=t.headers;delete this._aesHook;var c=n?n.href||n:"";if(Fe(c))return;var u,s=c.split("?"),l=this,f=0,p=s[1],d=(new Date).getTime();n=s[0];try{u=Le(e,i)}catch(e){}var v=function(){f=l.status||f;var t,r=(new Date).getTime()-d;try{var o=l.getAllResponseHeaders();-1!==o.indexOf("eagleeye-traceid")?t=l.getResponseHeader("eagleeye-traceid"):-1!==o.indexOf("x-eagleeye-id")&&(t=l.getResponseHeader("x-eagleeye-id"))}catch(e){}var c,s=l.responseType||"text";"text"===s||"json"===s?c=l.response:l.response&&(c=Object.prototype.toString.call(l.response));var v=Ie(c||"",f,{type:"xhr",params:p,url:n,body:e}),h=fe.getConfig("plugin_api")||{};v.success&&h.disable_send_on_success||Ae(Pe({url:n,method:i,status:f,duration:r,traceId:t,params:p,headers:a,body:u,response:c,rtype:"xhr"},v))};void 0!==l.onloadend?(l.addEventListener("abort",(function(e){f=-2})),l.addEventListener("timeout",(function(e){f=-3})),l.addEventListener("loadend",v)):l.addEventListener("readystatechange",(function(){4===l.readyState&&v()}))}catch(e){}}}},He=n(828),qe=n.n(He);var Ge={hookFetch:Ue,hookXHR:Be,hookMtop:function(){function e(e){var t=this.options,n=this.params,r=(new Date).getTime();return e().then((function(){var e=t.retJson.ret,o=(new Date).getTime()-r;e instanceof Array&&(e=e.join(","));var i=fe.getConfig("plugin_api")||{},a={};if("function"==typeof i.parseResponse)try{a=i.parseResponse(t.retJson,"",{type:"mtop",params:n.data,url:n.api})||{}}catch(e){}var c=void 0===a.success?-1===e.indexOf("SUCCESS"):!a.success;if(c||!i.disable_send_on_success){var u,s,l,f=t.retJson.code||200,p=t.retJson.responseHeaders;if("string"==typeof p){var d=p.match(/(x-eagleeye-id|eagleeye-traceid):\s*([a-z0-9]+)/);d&&(u=d[2]);var v=p.match(/status:\s*(\d+)/);v&&(f=v[1])}if(e){var h=e.split("::");s=h[0],l=h[1]}Ae(Pe({url:n.api,success:!c,method:n.type||"GET",msg:l,status:f,code:s,duration:o,traceId:u,params:n.data,response:z()(t.retJson),rtype:"mtop"},a))}}))}var t;window.lib||(window.lib={}),lib.mtop?lib.mtop.middlewares&&lib.mtop.middlewares.push(e):qe()(lib,"mtop",{configurable:!0,set:function(n){var r;(t=n).middlewares?-1===t.middlewares.indexOf(e)&&t.middlewares.push(e):qe()(t,"middlewares",{configurable:!0,set:function(t){-1===(r=t).indexOf(e)&&r.push(e)},get:function(){return r}})},get:function(){return t}})}};!function(){if(!window.__AES_PLUGIN_API__){window.__AES_PLUGIN_API__=!0;var e=fe.getConfig("plugin_api")||{},t=e.disableHook,n=e.disableHookFetch,r=e.disableHookXHR,o=e.disableHookMtop;if(!0!==t){var i=Ge.hookXHR,a=Ge.hookMtop;!0!==n&&(0,Ge.hookFetch)(),!0!==r&&i(),!0!==o&&a()}}}();n(832);var ze={},Xe=null,$e=0,We=function(){Xe&&Ye(Xe),($e||Xe)&&fe.log("paint",ze)},Ve=function(e){var t=e.entryType,n=e.name,r={p1:e.startTime,p2:e.duration,p3:t,p4:n,c1:e.c1,c2:e.c2,c3:e.c3,c4:e.c4,c5:e.c5,c6:e.c6};fe.log("usertiming",r)},Qe=function(e){var t=function(e){return"string"==typeof e||"number"==typeof e?e:"object"==typeof e&&e instanceof HTMLElement?e.tagName:void 0},n={startTime:"p1",identifier:"p2",name:"p3",url:"p4",element:"p5",naturalHeight:"p6",naturalWidth:"p7"},r={};for(var o in n)void 0!==e[o]&&(r[n[o]]=t(e[o]));fe.log("elementtiming",r)},Je=function(){var e,t,n,r,o=fe.getConfig("plugin_perf_resourceTimingSampling")||.01;if(!(Math.random()>=o)&&"function"==typeof window.fetch&&null!==(e=window)&&void 0!==e&&null!==(t=e.performance)&&void 0!==t&&t.getEntries&&null!==(n=window)&&void 0!==n&&null!==(r=n.performance)&&void 0!==r&&r.getEntriesByType){var i=fe.getConfig("plugin_perf_resourceTimingThreshhold")||8e3,a=performance.getEntriesByType("navigation")[0]||window.performance.timing;if(a)if(a.loadEventStart-a.fetchStart0){var r={};for(var o in performance.timing)"number"==typeof performance.timing[o]&&performance.timing[o]>0&&(r[o]=Math.max(performance.timing[o]-performance.timing.navigationStart,0));return r}}();e&&e.responseStart&&e.responseEnd&&e.responseEnd>=e.responseStart&&fe.log("perf",e),fe.getConfig("plugin_perf_enableResourceTiming")&&setTimeout(Je,5e3)},"complete"===document.readyState?setTimeout(Ze):window.addEventListener("load",(function(){return setTimeout(Ze)}));!function(){if(window.PerformanceObserver){var e=[];fe.getConfig("plugin_perf_enableUserTimingObserve")&&(window.PerformanceMark&&e.push("mark"),window.PerformanceMeasure&&e.push("measure")),window.PerformancePaintTiming&&e.push("paint"),window.PerformanceElementTiming&&e.push("element"),window.LargestContentfulPaint&&(e.push("largest-contentful-paint"),document.addEventListener("visibilitychange",(function e(){document.hidden&&(document.removeEventListener("visibilitychange",e,!0),We())}),!0));try{!function(){for(var t={},n=0;nn?e.slice(0,n-3)+"...":e}},ft=null===(et=document)||void 0===et?void 0:et.referrer,pt=function(){return{p1:window.parent!==window,p2:lt(ft)}},dt=function(){try{fe.log("leave",pt())}catch(e){}},vt=!0;function ht(){vt?vt=!1:fe.updatePVID&&fe.updatePVID(),function(){try{fe.log("pv",pt())}catch(e){}}(),ft=location.href}(it&&setTimeout((function(){ht()}),10),ut&&it?function(e){var t,n,r,o;window.addEventListener("popstate",(function(t){e(t.state)}));var i=null===(t=window)||void 0===t||null===(n=t.history)||void 0===n?void 0:n.pushState;i&&(history.pushState=function(t){i.apply(this,arguments),e(t)});var a=null===(r=window)||void 0===r||null===(o=r.history)||void 0===o?void 0:o.replaceState;a&&(history.replaceState=function(t){a.apply(this,arguments),e(t)})}((function(e){ht()})):st&&it&&function(e){window.addEventListener("hashchange",(function(){e({page_id:location.hash||"#"})}))}(ht),ct)&&(tt=function(){dt()},null===(nt=window)||void 0===nt||nt.addEventListener("beforeunload",tt));var yt=["ec","ea","el","et"];var mt,gt=function(e,t){var n=function(e){var n=e.ec,r=e.ea,o=e.el,i=e.et,a=void 0===i?"CLK":i,c=e.xpath;delete e.ec,delete e.ea,delete e.el,delete e.et,delete e.xpath,e.p1=n,e.p2=r,e.p3=o,e.p4=a,e.p5=c;try{t.log("event",e)}catch(e){}};return function(){var t=arguments,r={};if(0!==t.length){for(var o=0;o3?l-3:0),p=3;p=0&&l.left>=0&&l.width>0&&l.height>0&&s.push(u()({},qt(l),{type:"text"}))}Array.from(r.getElementsByTagName("img")).forEach((function(e){var t=e.getBoundingClientRect();t.top>=0&&t.left>=0&&t.width>0&&t.height>0&&s.push(u()({},qt(t),{type:"img"}))})),Array.from(r.getElementsByTagName("svg")).forEach((function(e){var t=e.getBoundingClientRect();t.top>=0&&t.left>=0&&t.width>0&&t.height>0&&s.push(u()({},qt(t),{type:"svg"}))})),Array.from(r.getElementsByTagName("canvas")).forEach((function(e){var t=e.getBoundingClientRect();t.top>=0&&t.left>=0&&t.width>0&&t.height>0&&s.push(u()({},qt(t),{type:"canvas"}))}));var f=JSON.stringify({title:e,width:null==r||null===(t=r.getBoundingClientRect())||void 0===t?void 0:t.width,height:null==r||null===(n=r.getBoundingClientRect())||void 0===n?void 0:n.height,pagePortrait:s.map((function(e){var t,n;return u()({},e,{x:e.x-(null==r||null===(t=r.getBoundingClientRect())||void 0===t?void 0:t.left),y:e.y-(null==r||null===(n=r.getBoundingClientRect())||void 0===n?void 0:n.top)})}))});return Ht.compressToEncodedURIComponent(f)}function zt(e){var t,n,r,o=u()({},{"spm-pre":(r=(null===(t=window.goldlog)||void 0===t||null===(n=t._$)||void 0===n?void 0:n.spm)||{}).spm_pre||"","spm-url":r.spm_url||"","spm-cnt":r.spm_cnt||""},e.params),i=Object.keys(o).map((function(e){return e+"="+function(e){return null===e?"":"object"==typeof e?JSON.stringify(e):void 0===e?"":e.toString()}(o[e])})).join("&"),a=window.GEP_CONFIG||{},c=a.site,s=a.pid;c||h("站点类型未配置,请确认SDK文档"),s||h("pid未配置,请确认SDK文档");var l=("allylikes"===c?null===d.cookie||void 0===d.cookie?void 0:d.cookie.getMemberId():"")||"";window.goldlog&&window.goldlog.record("/"+c+"."+e.path,e.event,"pageid="+window.dmtrack_pageid+"&_p_uid="+l+"&pid="+s+"&"+i+"&_from=gep","POST")}function Xt(e){try{window.goldlog?e():(window.goldlog_queue||(window.goldlog_queue=[])).push({action:"goldlog.aplus_pubsub.subscribe",arguments:["goldlogReady",function(){e()}]})}catch(e){h("黄金令箭上报时出现异常:"+(null==e?void 0:e.message),e)}}function $t(){return new Promise((function(e){Xt((function(){e()}))})).then((function(){return window.dmtrack_pageid}))}function Wt(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Xt((function(){window.goldlog&&window.goldlog.sendPV(u()({},e),u()({},t,{pageid:window.dmtrack_pageid}))}))}function Vt(e,t){void 0===t&&(t={}),Xt((function(){Wt({},u()({},t,{product_id:e,pageid:window.dmtrack_pageid}))}))}function Qt(e){e.interaction_type&&e.object_type&&(e["spm-cnt"]||e["spm-cnt-cd"])&&e.biz_type||h("interaction object事件异常,必填参数interaction_type、object_type、biz_type或spm-cnt、spm-cnt-cd不存在,请检查。当前参数为:",JSON.stringify(e)),Xt((function(){var t,n=e["spm-cnt"];if(!e["spm-cnt"]){var r,o=(null===(r=window.goldlog)||void 0===r?void 0:r.spm_ab)||[],i=o[0],a=o[1];n=e["spm-cnt-cd"]?i+"."+a+"."+e["spm-cnt-cd"]:i+"."+a+".0.0"}zt({path:(e.interaction_type+"_"+e.object_type+"."+e.biz_type).toLocaleLowerCase(),event:e.interaction_type.toUpperCase(),params:u()({},e,(t={},t["spm-cnt"]=n,t))})}))}function Jt(e,t){var n=null==t?void 0:t.map((function(e){var n;e.interaction_type&&e.object_type&&(e["spm-cnt"]||e["spm-cnt-cd"])&&e.biz_type||h("interaction object事件异常,必填参数interaction_type、object_type、biz_type或spm-cnt、spm-cnt-cd不存在,请检查。当前参数为:",JSON.stringify(e));var r=e["spm-cnt"];if(!e["spm-cnt"]&&e["spm-cnt-cd"]){var o,i=(null===(o=window.goldlog)||void 0===o?void 0:o.spm_ab)||[];r=i[0]+"."+i[1]+"."+e["spm-cnt-cd"]}return u()({},t,((n={})["spm-cnt"]=r,n))})),r=t.find((function(e){return e.object_type&&e.biz_type}));Xt((function(){zt({path:(e+"_"+(null==r?void 0:r.object_type)+"."+(null==r?void 0:r.biz_type)).toLocaleLowerCase(),event:e.toUpperCase(),params:{interaction_type:e,interact_objs:n}})}))}function Kt(e){var t;Qt(((t={interaction_type:"EXP",object_type:e.ae_object_type,object_value:e.ae_object_value,biz_type:e.ae_button_type})["spm-cnt"]=e["spm-cnt"],t.ext_params=u()({},e),t))}function Yt(e){var t;Qt(((t={interaction_type:"EXP",object_type:e.object_type,object_value:e.object_type,biz_type:e.exp_type})["spm-cnt"]=e["spm-cnt"],t.ext_params=u()({},e),t))}function Zt(e){var t;Qt(((t={interaction_type:"CLK",object_type:e.object_type,object_value:e.object_type,biz_type:"buy_now"})["spm-cnt"]=e["spm-cnt"],t.ext_params=u()({},e),t))}function en(e){var t;Qt(((t={interaction_type:"CLK",object_type:e.object_type,object_value:e.object_type,biz_type:"add_to_cart"})["spm-cnt"]=e["spm-cnt"],t.ext_params=u()({},e),t))}function tn(e){var t;Qt(((t={interaction_type:"CLK",object_type:e.object_type,object_value:e.object_type,biz_type:"wishlist"})["spm-cnt"]=e["spm-cnt"],t.ext_params=u()({},e),t))}function nn(e){Xt((function(){zt({path:"pc_click.statweb_ae_click",event:"CLK",params:e})}))}function rn(e){Xt((function(){zt({path:"pc_ctr.statweb_ae_ctr",event:"EXP",params:e})}))}var on,an,cn,un,sn,ln,fn,pn,dn=function(e){if(!(e instanceof ErrorEvent)){var t,n,r,o,i=(null==e||null===(t=e.target)||void 0===t?void 0:t.src)||(null==e||null===(n=e.target)||void 0===n?void 0:n.href);if(i)return void(window.AES_QUEUE&&window.AES_QUEUE.push({action:"log",arguments:["resource_error",{p1:i.substring(0,1e3),p2:null==e||null===(r=e.target)||void 0===r||null===(o=r.tagName)||void 0===o?void 0:o.toLowerCase(),ts:(new Date).getTime()}]}))}var a=e.message,c=e.url,u=e.lineno,s=e.colno,l=e.stack;window.AES_QUEUE&&window.AES_QUEUE.push({action:"log",arguments:["js_error",{message:a,url:c,lineno:u,colno:s,stack:l}]})},vn=function(e){try{var t=e.action,n=e.arguments,r=void 0===n?[]:n;switch(t||h("处理埋点队列日志异常,action不存在, 日志为:",e),t){case"setConfig":var o=r[0];fe.setConfig(o);break;case"sendInteractionObject":Qt(r[0]);break;case"sendInteractionObjects":Jt(r[0],r[1]);break;case"sendAEClick":nn(r[0]);break;case"sendAEExposure":rn(r[0]);break;case"sendPV":Wt(r[0],r[1]);break;case"handleError":var i=r[0];dn(i);break;case"unhandledrejection":var a=r[0];dn(a);break;case"sendPluginEvent":var c=r[0],u=r[1],s=r[2],l=r.slice(3);At.apply(void 0,[c,u,s].concat(l));break;case"sendPagePref":var f=r[0];_t(f);break;case"sendCustomError":var p=r[0],d=r.slice(1);Ot.apply(void 0,[p].concat(d));break;case"sendApiError":var v=r[0],y=r[1],m=r.slice(2);Et.apply(void 0,[v,y].concat(m));break;case"sendApiSuccess":var g=r[0],b=r[1],w=r.slice(2);Pt.apply(void 0,[g,b].concat(w));break;case"sendResourceError":var _=r[0],k=r[1];jt(_,k);break;case"sendWhitePageEvent":var S=r[0],x=r[1];Ct(S,x);break;default:h("处理埋点队列日志异常, action错误:, 日志为:",e)}}catch(e){h("处理埋点队列日志异常,异常为: ",e)}},hn=n(13),yn=n.n(hn),mn=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v2-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},gn=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},bn=function(e,t){var n=function n(r){"pagehide"!==r.type&&"hidden"!==document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},wn=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},_n=function(e,t,n){var r;return function(o){t.value>=0&&(o||n)&&(t.delta=t.value-(r||0),(t.delta||void 0===r)&&(r=t.value,e(t)))}},kn=-1,Sn=function(){return"hidden"===document.visibilityState?0:1/0},xn=function(){bn((function(e){var t=e.timeStamp;kn=t}),!0)},On=function(){return kn<0&&(kn=Sn(),xn(),wn((function(){setTimeout((function(){kn=Sn(),xn()}),0)}))),{get firstHiddenTime(){return kn}}},En=!1,Pn=-1,jn=function(e,t){En||(function(e,t){var n,r=On(),o=mn("FCP"),i=function(e){"first-contentful-paint"===e.name&&(c&&c.disconnect(),e.startTime-1&&e(t)},o=mn("CLS",0),i=0,a=[],c=function(e){if(!e.hadRecentInput){var t=a[0],r=a[a.length-1];i&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,a.push(e)):(i=e.value,a=[e]),i>o.value&&(o.value=i,o.entries=a,n())}},u=gn("layout-shift",c);u&&(n=_n(r,o,t),bn((function(){u.takeRecords().map(c),n(!0)})),wn((function(){i=0,Pn=-1,o=mn("CLS",0),n=_n(r,o,t)})))},An={passive:!0,capture:!0},Cn=new Date,Rn=function(e,t){on||(on=t,an=e,cn=new Date,In(removeEventListener),Tn())},Tn=function(){if(an>=0&&an1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){Rn(e,t),o()},r=function(){o()},o=function(){removeEventListener("pointerup",n,An),removeEventListener("pointercancel",r,An)};addEventListener("pointerup",n,An),addEventListener("pointercancel",r,An)}(t,e):Rn(t,e)}},In=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,Ln,An)}))},Fn={},Nn=["ec","ea","el","et"],Dn={spm_a:(pn=function(){if(window.goldlog&&window.goldlog.spm_ab)return window.goldlog.spm_ab;var e,t=document.querySelector('meta[name="spm-id"]')||document.querySelector('meta[name="data-spm"]');if(t&&(e=t.content)&&-1!==e.indexOf("."))return e.split(".");var n=document.body&&document.body.getAttribute("data-spm");return e&&n?[e,n]:[]}())[0],spm_b:pn[1],hash:location.hash,is_top:window.top===window,nav_t:null===(sn=window.performance)||void 0===sn||null===(ln=sn.navigation)||void 0===ln?void 0:ln.type,visible:!0!==document.hidden,memory:null===(fn=navigator)||void 0===fn?void 0:fn.deviceMemory,cpu:navigator.hardwareConcurrency,dpi:window.devicePixelRatio,sr:window.screen.width+"x"+window.screen.height,title:document.title,sdk_version:fe.getConfig("sdk_version")||"0.0.0",pv_id:fe.getConfig("pv_id")};function Mn(e){var t,n=["msg="+e],r=u()({},Dn,null===(t=window)||void 0===t?void 0:t.AES_CONFIG);for(var o in r)-1===o.indexOf("plugin_")&&"requiredFields"!==o&&"maxUrlLength"!==o&&r.hasOwnProperty(o)&&(r[o]||0===r[o])&&n.push(o+"="+encodeURIComponent(r[o]));return n.join("&")}var Un=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),e){t.ts=t.ts||(new Date).getTime(),t.type=e;var r=[];for(var o in t){var i=t[o],a=Object.prototype.toString.call(i);"[object String]"!==a&&"[object Number]"!==a&&"[object Boolean]"!==a&&"[object Object]"!==a&&"[object Array]"!==a||("[object Object]"!==a&&"[object Array]"!==a||(i=JSON.stringify(i)),r.push(o+"="+encodeURIComponent(i)))}return t=encodeURIComponent(r.join("&"))}};function Bn(e,t,n){function r(){var t,n,r={};if(0!==arguments.length){for(var o=0;o35e3)break;n.shift(),o+=o?"|"+i:i}t.send(Mn(o)),n.length&&e(n)}}(e.map((function(e){return r.apply(void 0,e)})).filter((function(e){return!!e})))}catch(e){console.error(e)}}:function(){try{var e=r.apply(void 0,arguments);e&&t.send(Mn(e))}catch(e){console.error(e)}}}var Hn=Bn(window,fe,!1),qn=Bn(window,fe,!0),Gn=["type","c1","c2","c3"],zn=-1!==window.location.href.indexOf("_gep_sdk_dev_=true"),Xn=function(){if(zn){for(var e,t,n=arguments.length,r=new Array(n),o=0;o.3)){var r=t.entries;if(null!=r&&r.length){var o=r.filter((function(e){return(null==e?void 0:e.value)>.001})).map((function(e){return function(e){var t;if(e&&e.sources&&(t=e.sources.slice(0,5)),t){var n=t.map((function(e){var t=e.node;if(t){if(1===t.nodeType)return t.nodeName+","+(t.className||"")+","+(t.getAttribute("id")||"");var n;if(3===t.nodeType)return t.nodeName+","+(t.className||"")+","+((null===(n=t.textContent)||void 0===n?void 0:n.substr(0,10))||"")}}));return{type:"CLS-item",c1:$n(e.value),c2:n.join("/")}}}(e)})).filter(Boolean);o&&o.length&&qn(o.map((function(t){return e(t)})))}}})),function(e,t){var n,r=On(),o=mn("FID"),i=function(e){e.startTime=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return c=e.done,e},e:function(e){u=!0,a=e},f:function(){try{c||null==n.return||n.return()}finally{if(u)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;a(this,e),this._args=t,this.name=n,this.taps=[],this.interceptors=[],this._call=s,this.call=s,this._callAsync=l,this.callAsync=l,this._promise=f,this.promise=f,this._x=void 0,this.compile=this.compile,this.tap=this.tap,this.tapAsync=this.tapAsync,this.tapPromise=this.tapPromise}var t,n,o;return t=e,(n=[{key:"compile",value:function(e){throw new Error("Abstract: should be overridden")}},{key:"_createCall",value:function(e){return this.compile({taps:this.taps,interceptors:this.interceptors,args:this._args,type:e})}},{key:"_tap",value:function(e,t,n){if("string"==typeof t)t={name:t.trim()};else if("object"!==i(t)||null===t)throw new Error("Invalid tap options");if("string"!=typeof t.name||""===t.name)throw new Error("Missing name for tap");void 0!==t.context&&u(),t=Object.assign({type:e,fn:n},t),t=this._runRegisterInterceptors(t),this._insert(t)}},{key:"tap",value:function(e,t){this._tap("sync",e,t)}},{key:"tapAsync",value:function(e,t){this._tap("async",e,t)}},{key:"tapPromise",value:function(e,t){this._tap("promise",e,t)}},{key:"_runRegisterInterceptors",value:function(e){var t,n=r(this.interceptors);try{for(n.s();!(t=n.n()).done;){var o=t.value;if(o.register){var i=o.register(e);void 0!==i&&(e=i)}}}catch(e){n.e(e)}finally{n.f()}return e}},{key:"withOptions",value:function(e){var t=this,n=function(t){return Object.assign({},e,"string"==typeof t?{name:t}:t)};return{name:this.name,tap:function(e,r){return t.tap(n(e),r)},tapAsync:function(e,r){return t.tapAsync(n(e),r)},tapPromise:function(e,r){return t.tapPromise(n(e),r)},intercept:function(e){return t.intercept(e)},isUsed:function(){return t.isUsed()},withOptions:function(e){return t.withOptions(n(e))}}}},{key:"isUsed",value:function(){return this.taps.length>0||this.interceptors.length>0}},{key:"intercept",value:function(e){if(this._resetCompilation(),this.interceptors.push(Object.assign({},e)),e.register)for(var t=0;t0;){r--;var o=this.taps[r];this.taps[r+1]=o;var i=o.stage||0;if(t){if(t.has(o.name)){t.delete(o.name);continue}if(t.size>0)continue}if(!(i>n)){r++;break}}this.taps[r]=e}}])&&c(t.prototype,n),o&&c(t,o),e}();Object.setPrototypeOf(p.prototype,null),e.exports=p},116:function(e,t,n){"use strict";function r(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return c=e.done,e},e:function(e){u=!0,a=e},f:function(){try{c||null==n.return||n.return()}finally{if(u)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0){for(var n=e.onError,r=e.onResult,o=e.onDone,i="",a=0;a0&&(e+="var _taps = this.taps;\n",e+="var _interceptors = this.interceptors;\n"),e}},{key:"needContext",value:function(){var e,t=r(this.options.taps);try{for(t.s();!(e=t.n()).done;)if(e.value.context)return!0}catch(e){t.e(e)}finally{t.f()}return!1}},{key:"callTap",value:function(e,t){for(var n=t.onError,r=t.onResult,o=t.onDone,i=t.rethrowIfPossible,a="",c=!1,u=0;u20)&&(p=0,l+="function _next".concat(o,"() {\n"),l+=f(),l+="}\n",f=function(){return"".concat(s?"return ":"","_next").concat(o,"();\n")});var a=f,d=function(e){return e?"":i()},v=t.callTap(o,{onError:function(e){return n(o,e,a,d)},onResult:r&&function(e){return r(o,e,a,d)},onDone:!r&&a,rethrowIfPossible:c&&(u<0||o=0;v--)d(v);return l+=f()}},{key:"callTapsLooping",value:function(e){var t=e.onError,n=e.onDone,r=e.rethrowIfPossible;if(0===this.options.taps.length)return n();var o=this.options.taps.every((function(e){return"sync"===e.type})),i="";o||(i+="var _looper = (function() {\n",i+="var _loopAsync = false;\n"),i+="var _loop;\n",i+="do {\n",i+="_loop = false;\n";for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:{},t=e.before,n=e.after,r=this._args;return t&&(r=[t].concat(r)),n&&(r=r.concat(n)),0===r.length?"":r.join(", ")}},{key:"getTapFn",value:function(e){return"_x[".concat(e,"]")}},{key:"getTap",value:function(e){return"_taps[".concat(e,"]")}},{key:"getInterceptor",value:function(e){return"_interceptors[".concat(e,"]")}}])&&i(t.prototype,n),o&&i(t,o),e}();e.exports=a},140:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},141:function(e,t,n){e.exports=!n(213)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},159:function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},160:function(e,t,n){var r=n(243),o=n(442),i=n(365),a=Object.defineProperty;t.f=n(141)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},161:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},172:function(e,t,n){var r=n(160),o=n(244);e.exports=n(141)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},173:function(e,t,n){var r=n(445),o=n(366);e.exports=function(e){return r(o(e))}},174:function(e,t,n){var r=n(369)("wks"),o=n(247),i=n(140).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},212:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},213:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},241:function(e,t,n){e.exports=n(827)},242:function(e,t,n){var r=n(140),o=n(159),i=n(830),a=n(172),c=n(161),u=function(e,t,n){var s,l,f,p=e&u.F,d=e&u.G,v=e&u.S,h=e&u.P,y=e&u.B,m=e&u.W,g=d?o:o[t]||(o[t]={}),b=g.prototype,w=d?r:v?r[t]:(r[t]||{}).prototype;for(s in d&&(n=t),n)(l=!p&&w&&void 0!==w[s])&&c(g,s)||(f=l?w[s]:n[s],g[s]=d&&"function"!=typeof w[s]?n[s]:y&&l?i(f,r):m&&w[s]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):h&&"function"==typeof f?i(Function.call,f):f,h&&((g.virtual||(g.virtual={}))[s]=f,e&u.R&&b&&!b[s]&&a(b,s,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},243:function(e,t,n){var r=n(212);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},244:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},245:function(e,t,n){var r=n(444),o=n(370);e.exports=Object.keys||function(e){return r(e,o)}},246:function(e,t){e.exports=!0},247:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},248:function(e,t){t.f={}.propertyIsEnumerable},249:function(e,t,n){t.f=n(174)},365:function(e,t,n){var r=n(212);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},366:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},367:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},368:function(e,t,n){var r=n(369)("keys"),o=n(247);e.exports=function(e){return r[e]||(r[e]=o(e))}},369:function(e,t,n){var r=n(159),o=n(140),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(246)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},370:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},371:function(e,t){t.f=Object.getOwnPropertySymbols},372:function(e,t,n){var r=n(366);e.exports=function(e){return Object(r(e))}},373:function(e,t,n){var r=n(160).f,o=n(161),i=n(174)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},374:function(e,t,n){var r=n(140),o=n(159),i=n(246),a=n(249),c=n(160).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||c(t,e,{value:a.f(e)})}},375:function(e,t){e.exports={}},41:function(e,t,n){"use strict";var r=n(42).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(43)),i=r(n(44)),a=r(n(48)),c=n(49),u=new(function(){function e(){(0,o.default)(this,e),this.siteFormat=/^[a-z]{3}(_[a-z]{1})?$/,this.x_localeFormat=/^[a-z]{2}_[A-Z]{2}$/,this.s_localeFormat=/^[a-z]{2}_[A-Z]{2}$/,this.b_localeFormat=/^[a-z]{2}_[A-Z]{2}$/,this.c_tpFormat=/^[A-Z]{3}$/,this.regionFormat=/^[A-Z]{2,3}$/,this.provinceFormat=/^[0-9]{18}$/,this.cityFormat=/^[0-9]{18}$/,this.siFormat=/^(glo|rus|bra|esp|idn|fra|deu|ita)$/,this.signFormat=/^(y|n)$/,this.rmb_ppFormat=/^.*$/,this.x_userFormat=/^.*$/,this.issFormat=/^(y)$/,this.isbFormat=/^(y)$/,this.ispmFormat=/^(y)$/,this.isksFormat=/^(y)$/,this.isgclFormat=/^(y)$/,this.reg_verFormat=/^(new|old)$/,this.x_lFormat=/^[01]{1}$/,this.ber_lFormat=/^A\d$/,this.zero_orderFormat=/^(y)$/,this.ae_u_p_sFormat=/^[012]{1}$/,this.ups_dFormat=/^[01\|]{7,}$/,this.ups_u_tFormat=/^[0-9]{13,}$/,this.re_snsFormat=/^.*$/,this.x_csrfFormat=/^.*$/,this.x_c_chgFormat=/^[01]{1}$/,this.x_c_syncedFormat=/^[01]{1}$/,this.acs_rtFormat=/^[A-Za-z0-9]+$/,this.alimidFormat=/^[0-9]+$/,this.x_as_iFormat=/^([A-Za-z0-9]|(%))+/,this.x_lidFormat=/^[A-Za-z0-9]+$/}return(0,i.default)(e,[{key:"get",value:function(e,t){return a.default.get(e,t)}},{key:"_setcookie",value:function(e,t,n){if(n&&!this.validate(t,n))return!1;var r=a.default.get(e,{domain:(0,c.getFixedDomainUrl)(),path:"/",raw:!0})||"";r=new RegExp("(.*&?"+t+"=)(.*?)(&.*|$)").test(r)?RegExp.$1+n+RegExp.$3:(r?r+"&":"")+t+"="+n,a.default.set(e,r,{domain:(0,c.getFixedDomainUrl)(),path:"/",expires:3650,raw:!0})}},{key:"_getCookie",value:function(e,t){var n=a.default.get(e,{domain:(0,c.getFixedDomainUrl)(),path:"/",raw:!0})||"",r=new RegExp("(.*&?"+t+"=)(.*?)(&.*|$)");n.match(r);var o=RegExp.$2;return r.test(n)&&this.validate(t,o)?o:""}},{key:"validate",value:function(e,t){return!/(&|=)/.test(t)&&!!(t&&this[e+"Format"]&&this[e+"Format"].test(t))}},{key:"getMSite",value:function(e,t){var n=a.default.get(e,{domain:"m.aliexpress.com",path:"/",raw:!0})||"",r=new RegExp("(.*&?"+t+"=)(.*?)(&.*|$)");n.match(r);var o=RegExp.$2;return r.test(n)&&this.validate(t,o)?o:""}},{key:"setSite",value:function(e){this._setcookie("aep_usuc_f","site",e)}},{key:"getSite",value:function(){return this._getCookie("aep_usuc_f","site")}},{key:"setRegion",value:function(e){this._setcookie("aep_usuc_f","region",e)}},{key:"getRegion",value:function(){return this._getCookie("aep_usuc_f","region")}},{key:"setProvince",value:function(e){this._setcookie("aep_usuc_f","province",e)}},{key:"getProvince",value:function(){return this._getCookie("aep_usuc_f","province")}},{key:"setCity",value:function(e){this._setcookie("aep_usuc_f","city",e)}},{key:"getCity",value:function(){return this._getCookie("aep_usuc_f","city")}},{key:"getAlimid",value:function(){return this._getCookie("aep_usuc_f","alimid")}},{key:"getMsiteProvince",value:function(){return a.default.get("ae-msite-province",{domain:(0,c.getFixedDomainUrl)(),path:"/",raw:!0})||""}},{key:"getMsiteCity",value:function(){return a.default.get("ae-msite-city",{domain:(0,c.getFixedDomainUrl)(),path:"/",raw:!0})||""}},{key:"setCurrency",value:function(e){this._setcookie("aep_usuc_f","c_tp",e)}},{key:"getCurrency",value:function(){return this._getCookie("aep_usuc_f","c_tp")}},{key:"setLocale",value:function(e){this._setcookie("xman_us_f","x_locale",e)}},{key:"getLocale",value:function(){return this._getCookie("xman_us_f","x_locale")}},{key:"setSellerLocale",value:function(e){a.default.set("intl_locale",e,{domain:(0,c.getFixedDomainUrl)(),path:"/",expires:365,raw:!0}),this.setLocale(e),this._setcookie("aep_usuc_f","s_locale",e)}},{key:"getSellerLocale",value:function(){return this._getCookie("aep_usuc_f","s_locale")}},{key:"setBuyerLocale",value:function(e){this.setLocale(e),this._setcookie("aep_usuc_f","b_locale",e)}},{key:"getBuyerLocale",value:function(){return this._getCookie("aep_usuc_f","b_locale")}},{key:"getSign",value:function(){return this._getCookie("xman_us_t","sign")}},{key:"isLoggedIn",value:function(){return"y"==this.getSign()}},{key:"getLoginId",value:function(){return this._getCookie("xman_us_t","rmb_pp")}},{key:"getIss",value:function(){return this._getCookie("aep_usuc_f","iss")}},{key:"isSeller",value:function(){return"y"===this.getIss()}},{key:"getIsb",value:function(){return this._getCookie("aep_usuc_f","isb")}},{key:"isBuyer",value:function(){return"y"===this.getIsb()}},{key:"getIsks",value:function(){return this._getCookie("aep_usuc_f","isks")}},{key:"isKaSeller",value:function(){return"y"===this.getIsks()}},{key:"getIsgcl",value:function(){return this._getCookie("aep_usuc_f","isgcl")}},{key:"isGreenChannel",value:function(){return"y"===this.getIsgcl()}},{key:"getIspm",value:function(){return this._getCookie("aep_usuc_f","ispm")}},{key:"isPremiumMember",value:function(){return"y"===this.getIspm()}},{key:"getIsfm",value:function(){return this._getCookie("aep_usuc_f","isfm")}},{key:"isFreeMember",value:function(){return"y"===this.getIsfm()}},{key:"getRegVer",value:function(){return this._getCookie("aep_usuc_f","reg_ver")}},{key:"getOversea",value:function(){return this._getCookie("xman_us_f","x_l")}},{key:"isOversea",value:function(){return"1"!==this.getOversea()}},{key:"_getXUserRaw",value:function(){return this._getCookie("xman_us_f","x_user")}},{key:"getXUserObj",value:function(){var e={country:"",firstName:"",lastName:"",memberSeq:""},t=(this._getXUserRaw()||"").split("|");return t.length>=5&&(e.country=t[0],e.firstName=t[1].replace(//g,">"),e.lastName=t[2].replace(//g,">"),e.memberSeq=t[4]),e}},{key:"getMemberSeq",value:function(){return this.getXUserObj().memberSeq}},{key:"isNewUser",value:function(){return""===this.getXUserObj().memberSeq}},{key:"setAETest",value:function(){}},{key:"getAETest",value:function(){return""}},{key:"getBerL",value:function(){return this._getCookie("aep_usuc_t","ber_l")}},{key:"getZeroOrder",value:function(){return this._getCookie("xman_us_f","zero_order")}},{key:"isZeroOrderUser",value:function(){return"y"===this.getZeroOrder()}},{key:"getAeUps",value:function(){return this._getCookie("aep_usuc_f","ae_u_p_s")}},{key:"setAeUps",value:function(e){return this._setcookie("aep_usuc_f","ae_u_p_s",e)}},{key:"getAeUpsDetail",value:function(){return this._getCookie("aep_usuc_f","ups_d")}},{key:"setAeUpsDetail",value:function(e){return this._setcookie("aep_usuc_f","ups_d",e)}},{key:"getAeUpsTime",value:function(){return this._getCookie("aep_usuc_f","ups_u_t")}},{key:"setAeUpsTime",value:function(e){return this._setcookie("aep_usuc_f","ups_u_t",e)}},{key:"getReSns",value:function(){return this._getCookie("aep_usuc_f","re_sns")}},{key:"getCsrfToken",value:function(){var e=this._getCookie("acs_usuc_t","x_csrf");return e||(window.__bl&&window.__bl.api?window.__bl.error(new Error("Cookie.getCsrfToken error")):window.__bl&&(window.__bl.pipe=window.__bl.pipe||[],window.__bl.pipe.push(["error",new Error("Cookie.getCsrfToken error")]))),e}},{key:"getXmanCookieChanged",value:function(){return this._getCookie("xman_us_f","x_c_chg")}},{key:"setXmanCookieChanged",value:function(e){return this._setcookie("xman_us_f","x_c_chg",""+e)}},{key:"getXmanCookieSynced",value:function(){return this._getCookie("xman_us_f","x_c_synced")}},{key:"setXmanCookieSynced",value:function(e){return this._setcookie("xman_us_f","x_c_synced",""+e)}},{key:"getACS_RT",value:function(){return this._getCookie("xman_us_f","acs_rt")}},{key:"getX_AS_I",value:function(){return this._getCookie("xman_us_f","x_as_i")}},{key:"getCNA",value:function(){return a.default.get("cna",{domain:(0,c.getFixedDomainUrl)(),path:"/",raw:!0})||""}},{key:"getAliApacheId",value:function(){return a.default.get("ali_apache_id",{domain:(0,c.getFixedDomainUrl)(),path:"/",raw:!0})||""}},{key:"getAeucid",value:function(){return a.default.get("aeu_cid",{domain:(0,c.getFixedDomainUrl)(),path:"/",raw:!0})||""}}]),e}());window.lib=window.lib||{},window.lib.cookie=u;var s=u;t.default=s},42:function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},43:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},439:function(e,t){},44:function(e,t,n){var r=n(46);function o(e,t){for(var n=0;nu;)r(c,n=t[u++])&&(~i(s,n)||s.push(n));return s}},445:function(e,t,n){var r=n(446);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},446:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},447:function(e,t,n){e.exports=n(172)},448:function(e,t,n){var r=n(243),o=n(844),i=n(370),a=n(368)("IE_PROTO"),c=function(){},u=function(){var e,t=n(443)("iframe"),r=i.length;for(t.style.display="none",n(845).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("