vendor: 4,159 bytes, line 1
1!function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){"use strict";function t(t,e,r,n,o,i,s){try{var a=t[i](s),c=a.value}catch(t){return void r(t)}a.done?e(c):Promise.resolve(c).then(n,o)}function e(e){return function(){var r=this,n=arguments;return new Promise((function(o,i){var s=e.apply(r,n);function a(e){t(s,o,i,a,c,"next",e)}function c(e){t(s,o,i,a,c,"throw",e)}a(void 0)}))}}function r(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(){o=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},a=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,s=Object.create(o.prototype),a=new B(n||[]);return i(s,"_invoke",{value:P(t,r,a)}),s}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var d="suspendedStart",h="suspendedYield",y="executing",g="completed",m={};function b(){}function w(){}function v(){}var _={};l(_,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(K([])));E&&E!==r&&n.call(E,a)&&(_=E);var O=v.prototype=b.prototype=Object.create(_);function A(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,s,a){var c=f(t[o],t,i);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,s,a)}),(function(t){r("throw",t,s,a)})):e.resolve(l).then((function(t){u.value=t,s(u)}),(function(t){return r("throw",t,s,a)}))}a(c.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}})}function P(e,r,n){var o=d;return function(i,s){if(o===y)throw Error("Generator is already running");if(o===g){if("throw"===i)throw s;return{value:t,done:!0}}for(n.method=i,n.arg=s;;){var a=n.delegate;if(a){var c=T(a,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?g:h,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=g,n.method="throw",n.arg=u.arg)}}}function T(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,T(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var s=i.arg;return s?s.done?(r[e.resultName]=s.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):s:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function B(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function K(e){if(e||""===e){var r=e[a];if(r)return r.call(e);
1if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(typeof e+" is not iterable")}return w.prototype=v,i(O,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:w,configurable:!0}),w.displayName=l(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},A(C.prototype),l(C.prototype,c,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var s=new C(p(t,r,n,o),i);return e.isGeneratorFunction(r)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},A(O),l(O,u,"Generator"),l(O,a,(function(){return this})),l(O,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=K,B.prototype={constructor:B,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var s=this.tryEntries[i],a=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var c=n.call(s,"catchLoc"),u=n.call(s,"finallyLoc");if(c&&u){if(this.prev<s.catchLoc)return o(s.catchLoc,!0);if(this.prev<s.finallyLoc)return o(s.finallyLoc)}else if(c){if(this.prev<s.catchLoc)return o(s.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return o(s.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=t,s.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:K(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}!function(){const t={};try{if(process)return process.env=Object.assign({},process.env),void Object.assign(process.env,t)}catch(t){}globalThis.process={env:t}}();var s="tbpc-global-notification-permission-fatigue",a="tbpc-global-notification-permission-permission",c="https://hudong.alicdn.com/api/online/data/v3/c45746794e4a4de99af2b9fb4f65e0d2.js",u="H5_5hqB1Pf0y62rs1",l="H5_5V06SHN0y63vy1";function p(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var f,d,h={exports:{}};f=h,d=h.exports,function(){function t(e,r){var n;r=r||{},this._id=t._generateUUID(),this._promise=r.promise||Promise,this._frameId=r.frameId||"CrossStorageClient-"+this._id,this._origin=t._getOrigin(e),this._requests={},this._connected=!1,this._closed=!1,this._count=0,this._timeout=r.timeout||5e3,this._listener=null,this._installListener(),r.frameId&&(n=document.getElementById(r.frameId)),n&&this._poll(),n=n||this._createFrame(e),this._hub=n.contentWindow}t.frameStyle={display:"none",position:"absolute",top:"-999px",left:"-999px"},t._getOrigin=function(t){var e;return(e=document.createElement("a")).href=t,e.host||(e=window.location),((e.protocol&&":"!==e.protocol?e.protocol:window.location.protocol)+"//"+e.host).replace(/:80$|:443$/,"")},t._generateUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))},t.prototype.onConnect=function(){var t=this;return this._connected?this._promise.resolve():this._closed?this._promise.reject(new Error("CrossStorageClient has closed")):(this._requests.connect||(this._requests.connect=[]),new this._promise((function(e,r){var n=setTimeout((function(){r(new Error("CrossStorageClient could not connect"))}),t._timeout);t._requests.connect.push((function(t){if(clearTimeout(n),t)return r(t);e()}))})))},t.prototype.set=function(t,e){return this._request("set",{key:t,value:e})},t.prototype.get=function(t){var e=Array.prototype.slice.call(arguments);return this._request("get",{keys:e})},t.prototype.getNotificationPermission=function(){return this._request("getNotificationPermission")},t.prototype.del=function(){var t=Array.prototype.slice.call(arguments);return this._request("del",{keys:t})},t.prototype.clear=function(){return this._request("clear")},t.prototype.getKeys=function(){return this._request("getKeys")},t.prototype.close=function(){var t=document.getElementById(this._frameId);t&&t.parentNode.removeChild(t),window.removeEventListener?window.removeEventListener("message",this._listener,!1):window.detachEvent("onmessage",this._listener),this._connected=!1,this._closed=!0},t.prototype._installListener=function(){var t=this;this._listener=function(e){var r,n,o;if(!t._closed&&e.data&&"string"==typeof e.data&&("null"===e.origin?"file://":e.origin)===t._origin)if("cross-storage:unavailable"!==e.data){if(-1!==e.data.indexOf("cross-storage:")&&!t._connected){if(t._connected=!0,!t._requests.connect)return;for(r=0;r<t._requests.connect.length;r++)t._requests.connect[r](n);delete t._requests.connect}if("cross-storage:ready"!==e.data){try{o=JSON.parse(e.data)}catch(t){return}o.id&&t._requests[o.id]&&t._requests[o.id](o.error,o.result)}}else{if(t._closed||t.close(),!t._requests.connect)return;for(n=new Error("Closing client. Could not access localStorage in hub."),r=0;r<t._requests.connect.length;r++)t._requests.connect[r](n)}},window.addEventListener?window.addEventListener("message",this._listener,!1):window.attachEvent("onmessage",this._listener)},t.prototype._poll=function(){var t,e,r;r="file://"===(t=this)._origin?"*":t._origin,e=setInterval((function(){if(t._connected)return clearInterval(e);t._hub&&t._hub.postMessage("cross-storage:poll",r)}),1e3)},t.prototype._createFrame=function(e){var r,n;for(n in(r=window.document.createElement("iframe")).id=this._frameId,t.frameStyle)t.frameStyle.hasOwnProperty(n)&&(r.style[n]=t.frameStyle[n]);return window.document.body.appendChild(r),r.src=e,r},t.prototype._request=function(t,e){var r,n;return this._closed?this._promise.reject(new Error("CrossStorageClient has closed")):((n=this)._count++,r={id:this._id+":"+n._count,method:"cross-storage:"+t,params:e},new this._promise((function(t,e){var o,i,s;o=setTimeout((function(){n._requests[r.id]&&(delete n._requests[r.id],e(new Error("Timeout: could not perform "+r.method)))}),n._timeout),n._requests[r.id]=function(i,s){if(clearTimeout(o),delete n._requests[r.id],i)return e(new Error(i));t(s)},Array.prototype.toJSON&&(i=Array.prototype.toJSON,Array.prototype.toJSON=null),s="file://"===n._origin?"*":n._origin,n._hub.postMessage(JSON.stringify(r),s),i&&(Array.prototype.toJSON=i)})))}
1,f.exports?f.exports=t:d.CrossStorageClient=t}();var y={CrossStorageClient:h.exports},g=function(t){return!(!0!==t&&"true"!==t&&"1"!==t&&1!==t)},m=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"&",n=[];for(var o in t)e?n.push("".concat(encodeURIComponent(o),"=").concat(encodeURIComponent(t[o]))):n.push("".concat(o,"=").concat(t[o]));return n.join(r)},b=function(t){return new Promise((function(e){setTimeout((function(){e()}),t)}))},w=function(){var t,e=(null===(t=window)||void 0===t||null===(t=t.navigator)||void 0===t?void 0:t.userAgent)||"";return/NEW_PC_TAOBAO_Client/.test(e)},v="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},_="URLSearchParams"in v,x="Symbol"in v&&"iterator"in Symbol,E="FileReader"in v&&"Blob"in v&&function(){try{return new Blob,!0}catch(t){return!1}}(),O="FormData"in v,A="ArrayBuffer"in v;if(A)var C=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],P=ArrayBuffer.isView||function(t){return t&&C.indexOf(Object.prototype.toString.call(t))>-1};function T(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function L(t){return"string"!=typeof t&&(t=String(t)),t}function S(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return x&&(e[Symbol.iterator]=function(){return e}),e}function B(t){this.map={},t instanceof B?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){if(2!=t.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function K(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function j(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function N(t){var e=new FileReader,r=j(e);return e.readAsArrayBuffer(t),r}function k(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function I(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:E&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:O&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:_&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():A&&E&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=k(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):A&&(ArrayBuffer.prototype.isPrototypeOf(t)||P(t))?this._bodyArrayBuffer=k(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):_&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},E&&(this.blob=function(){var t=K(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=K(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(E)return this.blob().then(N);throw new Error("could not read as ArrayBuffer")},this.text=function(){var t,e,r,n,o,i=K(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=j(e),n=/charset=([A-Za-z0-9_-]+)/.exec(t.type),o=n?n[1]:"utf-8",e.readAsText(t,o),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},O&&(this.formData=function(){return this.text().then(q)}),this.json=function(){return this.text().then(JSON.parse)},this}B.prototype.append=function(t,e){t=T(t),e=L(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},B.prototype.delete=function(t){delete this.map[T(t)]},B.prototype.get=function(t){return t=T(t),this.has(t)?this.map[t]:null},B.prototype.has=function(t){return this.map.hasOwnProperty(T(t))},B.prototype.set=function(t,e){this.map[T(t)]=L(e)},B.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},B.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),S(t)},B.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),S(t)},B.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),S(t)},x&&(B.prototype[Symbol.iterator]=B.prototype.entries);var D=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function U(t,e){if(!(this instanceof U))throw new TypeError('Please use the "new" operator, this DOM object c
1onstructor cannot be called as a function.');var r,n,o=(e=e||{}).body;if(t instanceof U){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new B(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new B(e.headers)),this.method=(r=e.method||this.method||"GET",n=r.toUpperCase(),D.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in v)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function q(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function R(t,e){if(!(this instanceof R))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new B(e.headers),this.url=e.url||"",this._initBody(t)}U.prototype.clone=function(){return new U(this,{body:this._bodyInit})},I.call(U.prototype),I.call(R.prototype),R.prototype.clone=function(){return new R(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new B(this.headers),url:this.url})},R.error=function(){var t=new R(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var F=[301,302,303,307,308];R.redirect=function(t,e){if(-1===F.indexOf(e))throw new RangeError("Invalid status code");return new R(null,{status:e,headers:{location:t}})};var H=v.DOMException;try{new H}catch(t){(H=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),H.prototype.constructor=H}function W(t,e){return new Promise((function(r,n){var o=new U(t,e);if(o.signal&&o.signal.aborted)return n(new H("Aborted","AbortError"));var s=new XMLHttpRequest;function a(){s.abort()}if(s.onload=function(){var t,e,n={statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new B,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();try{e.append(n,o)}catch(t){console.warn("Response "+t.message)}}})),e)};0===o.url.indexOf("file://")&&(s.status<200||s.status>599)?n.status=200:n.status=s.status,n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;setTimeout((function(){r(new R(i,n))}),0)},s.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},s.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request timed out"))}),0)},s.onabort=function(){setTimeout((function(){n(new H("Aborted","AbortError"))}),0)},s.open(o.method,function(t){try{return""===t&&v.location.href?v.location.href:t}catch(e){return t}}(o.url),!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&(E?s.responseType="blob":A&&(s.responseType="arraybuffer")),e&&"object"===i(e.headers)&&!(e.headers instanceof B||v.Headers&&e.headers instanceof v.Headers)){var c=[];
1Object.getOwnPropertyNames(e.headers).forEach((function(t){c.push(T(t)),s.setRequestHeader(t,L(e.headers[t]))})),o.headers.forEach((function(t,e){-1===c.indexOf(e)&&s.setRequestHeader(e,t)}))}else o.headers.forEach((function(t,e){s.setRequestHeader(e,t)}));o.signal&&(o.signal.addEventListener("abort",a),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",a)}),s.send(void 0===o._bodyInit?null:o._bodyInit)}))}W.polyfill=!0,v.fetch||(v.fetch=W,v.Headers=B,v.Request=U,v.Response=R);var X=function(t,e){if(e=e||{},"function"!=typeof t)throw new G("fetch must be a function");if("object"!==i(e))throw new G("defaults must be an object");if(void 0!==e.retries&&!M(e.retries))throw new G("retries must be a positive integer");if(void 0!==e.retryDelay&&!M(e.retryDelay)&&"function"!=typeof e.retryDelay)throw new G("retryDelay must be a positive integer or a function returning a positive integer");if(void 0!==e.retryOn&&!Array.isArray(e.retryOn)&&"function"!=typeof e.retryOn)throw new G("retryOn property expects an array or function");return e=Object.assign({retries:3,retryDelay:1e3,retryOn:[]},e),function(r,n){var o=e.retries,i=e.retryDelay,s=e.retryOn;if(n&&void 0!==n.retries){if(!M(n.retries))throw new G("retries must be a positive integer");o=n.retries}if(n&&void 0!==n.retryDelay){if(!M(n.retryDelay)&&"function"!=typeof n.retryDelay)throw new G("retryDelay must be a positive integer or a function returning a positive integer");i=n.retryDelay}if(n&&n.retryOn){if(!Array.isArray(n.retryOn)&&"function"!=typeof n.retryOn)throw new G("retryOn property expects an array or function");s=n.retryOn}return new Promise((function(e,a){var c=function(i){var c="undefined"!=typeof Request&&r instanceof Request?r.clone():r;t(c,n).then((function(t){if(Array.isArray(s)&&-1===s.indexOf(t.status))e(t);else if("function"==typeof s)try{return Promise.resolve(s(i,null,t)).then((function(r){r?u(i,null,t):e(t)})).catch(a)}catch(t){a(t)}else i<o?u(i,null,t):e(t)})).catch((function(t){if("function"==typeof s)try{Promise.resolve(s(i,t,null)).then((function(e){e?u(i,t,null):a(t)})).catch((function(t){a(t)}))}catch(t){a(t)}else i<o?u(i,t,null):a(t)}))};function u(t,e,r){var n="function"==typeof i?i(t,e,r):i;setTimeout((function(){c(++t)}),n)}c(0)}))}};function M(t){return Number.isInteger(t)&&t>=0}function G(t){this.name="ArgumentError",this.message=t}var z=p(X)(window.fetch);function J(t){return V.apply(this,arguments)}function V(){return(V=e(o().mark((function t(e){var r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,e){t.next=3;break}return t.abrupt("return",null);case 3:return t.next=5,z(e,{retries:3,retryDelay:1e3});case 5:return r=t.sent,t.next=8,r.json();case 8:return t.abrupt("return",t.sent);case 11:return t.prev=11,t.t0=t.catch(0),t.abrupt("return",null);case 14:case"end":return t.stop()}}),t,null,[[0,11]])})))).apply(this,arguments)}function $(t){var e,o=t||{},i=o.logKey,s=o.gmKey,a=o.goKey;if(i){var c="EXP"===String(s).toUpperCase()?"EXP":"CLK",u=m(function(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?n(Object(o),!0).forEach((function(e){r(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({},a||{}));null===(e=window)||void 0===e||null===(e=e.goldlog)||void 0===e||e.record(i,c,u,"POST")}}var Y={spmA:"",spmB:""};function Z(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Y.spmA&&Y.spmB||function(){if(Y.spmA&&Y.spmB)return"".concat(Y.spmA,".").concat(Y.spmB);if(window&&window.goldlog&&window.goldlog.spm_ab&&2===window.goldlog.spm_ab.length)Y.spmA=window.goldlog.spm_ab[0],Y.spmB=window.goldlog.spm_ab[1];else if(document&&document.querySelector('meta[name="spm-id"]')){var t=document.querySelector('meta[name="spm-id"]').getAttribute("content");t&&2===t.split(".").length&&(Y.spmA=t.split(".")[0],Y.spmB=t.split(".")[1])}"".concat(Y.spmA,".").concat(Y.spmB)}(),"".concat(Y.spmA,".").concat(Y.spmB,".").concat(t,".").concat(e)}var Q=560,tt=560;function et(t){var e;return null===(e=document.cookie.split(";").find((function(e){return new RegExp("".concat(t,"=")).test(e)})))||void 0===e?void 0:e.split("=").pop()}function rt(){var t=et("dnk")||et("_nk_"),e=et("lgc"),r=t||e;return r&&(r=function(t){return t.replace(/\\u([a-f\d]{4})/gi,(function(t,e){return String.fromCharCode(parseInt(e,16))}))}(r).replace(/[<>%&;\\'"]/g,"")),r}function nt(){return ot.apply(this,arguments)}function ot(){return(ot=e(o().mark((function t(){var e,r,n,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,J(c);case 2:if(null!=(n=t.sent)&&null!==(e=n.commonCfg)&&void 0!==e&&e.length){t.next=5;break}return t.abrupt("return",{});case 5:if(!g(null===(r=n.commonCfg[0])||void 0===r?void 0:r.disable)){t.next=9;break}return t.abrupt("return",{disabled:!0});case 9:return t.abrupt("return",{fatigueConfig:null===(i=n.fatigueCfg)||void 0===i?void 0:i[0],hostConfig:n.hostCfg,browserConfig:n.browserCfg,siteMsgHostCfg:n.siteMsgHostCfg});case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function it(t){var e,r=!1;return null!=t&&t.length&&t.forEach((function(t){var n;t.bizCode?t.bizCode===(null===(n=window.g_config)||void 0===n?void 0:n.bizCode)&&(r=!0,e=t):t.hostname&&t.hostname===window.location.hostname&&(r=!0,e=t)})),{isInHostWhiteList:r,currentHostConfig:e}}function st(t){var e,r=!1;return null!=t&&t.length&&t.forEach((function(t){var n;t.browserName&&window.__UA_PARSER_RESULT__&&(t.browserName===(null===(n=window.__UA_PARSER_RESULT__.browser)||void 0===n?void 0:n.name)&&(r=!0,e=t))})),{isInBrowserWhiteList:r,currentBrowserConfig:e}}function at(t,e,r){return ct.apply(this,arguments)}function ct(){return(ct=e(o().mark((function t(e,r,n){var i,a,c,u;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=!1,!r.isInHostWhiteList||!n.isInBrowserWhiteList){t.next=7;break}
1return i=new y.CrossStorageClient("https://www.taobao.com/wow/z/tbhome/taobao/web_push_storage",{timeout:5e3}),t.next=5,i.onConnect().then((function(){return i.get(s)})).catch((function(t){c=t}));case 5:(!(u=t.sent)&&null!=e&&e.days||u>0&&null!=e&&e.days&&u+864e5*e.days<(new Date).getTime())&&(a=!0);case 7:return t.abrupt("return",{storage:i,isFatigueAllowed:a,storageConnectError:c});case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ut(t,r,n){return new Promise(function(){var i=e(o().mark((function e(i,c){var u,l,p,f,d,h,y,g,m;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(m=function(){y.style.opacity=0,setTimeout((function(){y.remove()}),400)},g=function(){$({logKey:"/3280.tbpc_web_push.first_dialog_show",gmKey:"EXP",goKey:{spm:Z("web_push_permission","permission_dialog")}}),document.body.appendChild(y),setTimeout((function(){y.className+=" tbpc-global-notification-user-allowed-popup-appear"}),16)},t.isInHostWhiteList&&r.isInBrowserWhiteList){e.next=4;break}return e.abrupt("return",i("denied"));case 4:return e.next=6,null===(u=n.storage)||void 0===u?void 0:u.onConnect().then((function(){return n.storage.get(a).catch((function(){return"default"}))})).catch((function(t){return n.storageConnectError=t,"default"}));case 6:if(e.t0=e.sent,e.t0){e.next=9;break}e.t0="default";case 9:return d=e.t0,e.next=12,null===(l=n.storage)||void 0===l?void 0:l.onConnect().then((function(){var t;return null===(t=n.storage)||void 0===t?void 0:t.getNotificationPermission().catch((function(){return"denied"}))})).catch((function(t){return n.storageConnectError=t,"denied"}));case 12:if(e.t1=e.sent,e.t1){e.next=15;break}e.t1="denied";case 15:if(h=e.t1,d!==h&&$({logKey:"/3280.tbpc_web_push.permission_not_same",gmKey:"EXP",goKey:{firstP:d,secondP:h,spm:Z("web_push_permission","permission_dialog")}}),n.isFatigueAllowed&&"default"===d&&"granted"!==h){e.next=19;break}return e.abrupt("return",i(h));case 19:lt(),(y=document.createElement("div")).className="tbpc-global-notification-user-allowed-popup",y.innerHTML='\n <div class="tbpc-global-notification-user-allowed-popup-icon"><img src="https://www.taobao.com/favicon.ico" alt=""></div>\n <div class="tbpc-global-notification-user-allowed-popup-content">\n <div class="tbpc-global-notification-user-allowed-popup-title">订é
æ·å®éç¥</div>\n <div class="tbpc-global-notification-user-allowed-popup-infomation">'.concat((null===(p=t.currentHostConfig)||void 0===p?void 0:p.text)||"åæ¶è·åæ¨çæ·å®ç½ææ°æ¶æ¯",'</div>\n <div class="tbpc-global-notification-user-allowed-popup-buttons">\n <button class="tbpc-global-notification-user-allowed-popup-deny" id="nua-deny">åæ¶</button>\n <button class="tbpc-global-notification-user-allowed-popup-agree" id="nua-agree">订é
</button>\n </div>\n </div>\n '),y.getElementsByClassName("tbpc-global-notification-user-allowed-popup-deny")["nua-deny"].addEventListener("click",(function(t){m(),$({logKey:"/3280.tbpc_web_push.first_dialog_deny",gmKey:"CLK",goKey:{spm:Z("web_push_permission","permission_dialog")}}),i("denied")})),y.getElementsByClassName("tbpc-global-notification-user-allowed-popup-agree")["nua-agree"].addEventListener("click",(function(t){m(),$({logKey:"/3280.tbpc_web_push.first_dialog_agree",gmKey:"CLK",goKey:{spm:Z("web_push_permission","permission_dialog")}}),"www.taobao.com"===window.location.hostname?(Notification.requestPermission().then((function(t){var e;"granted"===t?$({logKey:"/3280.tbpc_web_push.second_dialog_agree",gmKey:"CLK",goKey:{spm:Z("web_push_permission","permission_dialog")}}):"denied"===t&&$({logKey:"/3280.tbpc_web_push.second_dialog_deny",gmKey:"CLK",goKey:{spm:Z("web_push_permission","permission_dialog")}}),null===(e=n.storage)||void 0===e||e.set(a,t),i(t)})).catch((function(t){c(t)})),$({logKey:"/3280.tbpc_web_push.second_dialog_show",gmKey:"EXP",goKey:{spm:Z("web_push_permission","permission_dialog")}})):(window.open("https://www.taobao.com/wow/z/tbhome/taobao/web_push","_blank","popup,width=".concat(Q,",height=").concat(tt,",top=").concat(window.screen.height/2-tt/2,",left=").concat(window.screen.width/2-Q/2)),i("default"))})),g(),null===(f=n.storage)||void 0===f||f.set(s,(new Date).getTime());case 27:case"end":return e.stop()}}),e)})));return function(t,e){return i.apply(this,arguments)}}())}function lt(){var t=document.createElement("style");t.innerHTML="\n .tbpc-global-notification-user-allowed-popup {\n position: fixed;\n z-index: 1000000;\n left: 80px;\n top: 16px;\n background-color: white;\n display: flex;\n padding: 24px;\n border-radius: 10px;\n max-width: 400px;\n opacity: 0;\n transition: opacity ease .4s;\n gap: 12px;\n box-shadow: 0px 4px 24px 0px rgba(10, 10, 51, 0.16);\n }
1\n .tbpc-global-notification-user-allowed-popup-icon img {\n width: 40px;\n height: 40px;\n object-fit: contain;\n }\n .tbpc-global-notification-user-allowed-popup-content {\n display: flex;\n flex-direction: column;\n font-size: 14px;\n min-width: 280px;\n }\n .tbpc-global-notification-user-allowed-popup-title {\n font-weight: bold;\n padding-bottom: 8px;\n font-size: 16px;\n }\n .tbpc-global-notification-user-allowed-popup-infomation {\n padding-bottom: 8px;\n font-size: 14px;\n }\n .tbpc-global-notification-user-allowed-popup-buttons {\n display: flex;\n justify-content: end;\n gap: 12px;\n padding-top: 16px;\n }\n .tbpc-global-notification-user-allowed-popup-buttons button {\n cursor: pointer;\n padding: 8px 24px;\n font-weight: bold;\n border-radius: 1000px;\n border: 1px solid #EBEBEB;\n background: white;\n font-size: 16px;\n transition: all ease .2s;\n }\n .tbpc-global-notification-user-allowed-popup-buttons button:hover {\n background-color: #F5F5F5;\n border: 1px solid #EBEBEB;\n } \n .tbpc-global-notification-user-allowed-popup-appear {\n opacity: 1;\n transition: opacity ease .4s;\n }\n ",document.body.appendChild(t)}function pt(t){return $({logKey:"/3280.tbpc_web_push.unreachable_user",gmKey:"EXP",goKey:{reason:t}})}function ft(t){$({logKey:"/3280.tbpc_web_push.load",gmKey:"EXP",goKey:{from:t,url:window.location.href}});var e=document.createElement("iframe");e.src="development"===process.env.NODE_ENV?"/index.html?webpush=true&originUrl=".concat(encodeURIComponent(window.location.origin),"&appKey=").concat(w()?l:u):"https://www.taobao.com/pushiframe.html?originUrl=".concat(encodeURIComponent(window.location.origin),"&appKey=").concat(w()?l:u),e.style.display="none",document.body.appendChild(e)}function dt(){return ht.apply(this,arguments)}function ht(){return(ht=e(o().mark((function t(){var e,r,n,i,s,c,u,l,p,f,d,h,y,g;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if($({logKey:"/3280.tbpc_web_push.script_exposure",gmKey:"EXP",goKey:{href:location.href}}),e="development"===process.env.NODE_ENV?"developer":rt(),r=!navigator.serviceWorker,e){t.next=6;break}return pt("logout"),t.abrupt("return");case 6:if(!r){t.next=9;break}return pt("compabilityServiceWorker"),t.abrupt("return");case 9:return t.next=11,b(2e3);case 11:return $({logKey:"/3280.tbpc_web_push.script_not_interrupt",gmKey:"EXP",goKey:{href:location.href}}),(n="function"!=typeof Notification||!Notification)&&pt("compabilityNotification"),i={},s={},c={},u={},t.prev=15,t.next=18,nt();case 18:if(l=t.sent,p=l.disabled,f=l.fatigueConfig,d=l.hostConfig,h=l.browserConfig,y=l.siteMsgHostCfg,!p){t.next=27;break}return"www.taobao.com"===window.location.hostname&&"serviceWorker"in window.navigator&&window.navigator.serviceWorker.getRegistrations().then((function(t){t&&t.length&&t.forEach((function(t){t.unregister().then((function(){$({logKey:"/3280.tbpc_web_push.sw_unregister_success",gmKey:"EXP",goKey:{spm:Z("web_push_permission","sw_unregister")}})})).catch((function(t){$({logKey:"/3280.tbpc_web_push.sw_unregister_failed",gmKey:"EXP",goKey:{spm:Z("web_push_permission","sw_unregister"),reason:JSON.stringify(t)}})}))}))})).catch((function(t){$({logKey:"/3280.tbpc_web_push.sw_unregister_failed",gmKey:"EXP",goKey:{spm:Z("web_push_permission","sw_unregister"),reason:JSON.stringify(t)}})})),t.abrupt("return");case 27:return i=it(d),s=st(h),t.next=31,at(f,i,s);case 31:c=t.sent,u=it(y),t.next=38;break;
1case 35:t.prev=35,t.t0=t.catch(15),$({logKey:"/3280.tbpc_web_push.init_failed",gmKey:"EXP",goKey:{reason:JSON.stringify(t.t0),spm:Z("web_push_permission","permission_dialog")}});case 38:g=!1,n||(i.isInHostWhiteList?s.isInBrowserWhiteList?ut(i,s,c).then((function(t){var e;"granted"!==t?null===(e=c.storage)||void 0===e||e.get(a).then((function(e){pt(JSON.stringify({authModal:e,permission:t,notification:Notification.permission,storageConnectError:c.storageConnectError,isFatigueAllowed:c.isFatigueAllowed}))})):g||(ft("notification"),g=!0)})).catch((function(t){$({logKey:"/3280.tbpc_web_push.permission_failed",gmKey:"EXP",goKey:{storageConnectError:c.storageConnectError,reason:JSON.stringify(t),spm:Z("web_push_permission","permission_dialog")}})})):pt("disallowed browser"):pt("disallowed host")),("development"===process.env.NODE_ENV?!g:!g&&u.isInHostWhiteList)?(ft("sitepush"),g=!0):$({logKey:"/3280.tbpc_web_push.load_fail",gmKey:"EXP",goKey:{hasInit:g,hostWhiteList:u.isInHostWhiteList,url:window.location.href}});case 42:case"end":return t.stop()}}),t,null,[[15,35]])})))).apply(this,arguments)}/loaded|complete/.test(document.readyState)?dt():window.addEventListener("load",dt)}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.