CINXE.COM
腾讯云定价_云产品价格_云产品购买 - 腾讯云
<!DOCTYPE html> <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=2"> <title>腾讯云定价_云产品价格_云产品购买 - 腾讯云</title> <meta name="keywords" content="腾讯云定价,云产品价格,云产品购买,腾讯云产品定价,云产品价钱,云产品选购"> <meta name="description" content="腾讯云定价帮您快速了解腾讯云云产品计费模式、价格详情和价格动态,并提供工具帮您预估和优化上云成本。目前腾讯云产品主要有:云服务器、云数据库、云存储、负载均衡、文字识别等,立即购买享多重优惠!"> <meta name="format-detection" content="telephone=no"> <meta name="baidu-site-verification" content="EmN5HW4k98" /> <meta name="referrer" content="no-referrer-when-downgrade" /> <link rel="canonical" href="https://buy.cloud.tencent.com/pricing"> <script> (function(global, name, domain){ global[name] = global[name] || {}; global[name][domain] = true; })(window, '__IDC_DOMAINS__', location.hostname); </script> <script type="text/javascript" src="//cloudcache.tencent-cloud.cn/qccomponent/_cloudcache_tencent-cloud_com_idc.js" async></script> <script type="text/javascript" src="//cloud.tencent.com/qccomponent/_cloud_tencent_com_idc.js" async></script> <script> window.speedMark = new Date(); window._enableReport = true; window.serverTimeForPlatformUsageOnly = (function(s, c) {return function(){return +new Date()+s-c;}})(1732359704713, +new Date()); window.lifeId = "1gz_tA4WkG3kf"; window.lifeRegion = "gz"; window.lifeStart = serverTimeForPlatformUsageOnly(); window._cosdp = /^(https?:)?\/\/(imgcache\.qq\.com|cloudcache\.qq\.com|cloudcache\.tencent-cloud\.com|img\.qcloud\.com|cloudcache\.tencent-cloud\.cn|cloudcache\.tencentcs\.cn)/; // 默认禁用跨域头 /** (ISO 639-1 标准语言代码) 当前为国际站时可能取 zh, en, ja, ko; 当前为国内站时可能取 zh, en (当前站点可通过 i18n.intl (boolean) 或者 window.intl (boolean) 判断) */ window.language = 'zh' // 'zh' | 'en' | 'ja' | 'ko' /** (非 ISO 639-1 标准语言代码) 当前为国际站时可能取 zh, en, jp, ko; 当前为国内站时可能取 zh, en (当前站点可通过 i18n.intl (boolean) 或者 window.intl (boolean) 判断) */ window.lang = 'zh' // 'zh' | 'en' | 'jp' | 'ko' window.intl = false window.enableBuyIntl = true /** @deprecated 应该使用 window.intl (boolean) */ window.userOriginFrom = 'normal' // 'intl' | 'normal' /** @deprecated 应该使用 window.intl (boolean) */ window.isIntlUser = false window.cdnHosts = ["cloudcache.tencent-cloud.cn","cloudcache.tencentcs.cn","cloudcache.tencent-cloud.com","imgcache.qq.com"]; window.QCLOUD_BUY_CONFIG = { isGroupCloudUser: false, ftCloudRegions: [], isAutoDrivingCloudUser: false, autoDrivingCloudRegions: [], }; window.pageComponent = 'priceHome'; window.env = 'prod'; /** 兼容控制台域名自适应相关全局变量 **/ window.QCMAIN_HOST = 'cloud.tencent.com' window.QCCDN_HOST = 'cloudcache.tencent-cloud.cn' window.QCBUY_HOST = 'buy.cloud.tencent.com' window.QCBASE_HOST = 'iaas.' + 'cloud.tencent.com' window.QCLOUD_ROOT_HOST = 'cloud.tencent.com'; window.QCCONSOLE_HOST = 'console.cloud.tencent.com' window.QC_WORKBENCH_HOST = 'workbench.' + 'cloud.tencent.com' /** 域名自适应逻辑 **/ document.addEventListener('mouseover', function (e) { for (var target = e.target; target && target != this; target = target.parentNode) { if (target.matches('a')) { var href = target.getAttribute('href'); /** * 相对路径不替换 */ if (href && !/^\/(?!\/).*$/.test(href)) { var redirectMap = []; const domesticDomainReg = /\/\/(buy\.|iaas\.|console\.)?cloud\.tencent\.(com\.)?(com|cn)+($|\/)+/; if (!window.intl || (window.intl && domesticDomainReg.test(href)) ) { // 处理国内站以及国际站使用国内站URL的情况 redirectMap = [{ match: domesticDomainReg, redirectUrl: function (url) { return url.replace(/cloud\.tencent\.(com\.)?(com|cn)+/, window.QCLOUD_ROOT_HOST); } }]; } else if (window.intl && location.host.indexOf('tencentcloud.com') > -1) { //国际站只处理tencentcloud.com的情况 redirectMap = [{ match: /\/\/(buy\.|iaas\.|console\.)?intl\.cloud\.tencent\.com($|\/)+/, redirectUrl: function (url) { return url.replace(/intl\.cloud\.tencent\.com/, window.QCLOUD_ROOT_HOST); } }]; } // 老域名替换成新域名 if (href.indexOf('qcloud.com') > -1) { href = href.replace('www.qcloud.com', 'cloud.tencent.com'); href = href.replace('buy.qcloud.com', 'buy.cloud.tencent.com'); href = href.replace('console.qcloud.com', 'console.cloud.tencent.com'); target.setAttribute('href', href); // 目标地址替换成和当前域名对应的域名 } else { try { var filters = redirectMap.filter(function (i) { return i.match.test(href); }) if (filters && filters.length > 0) { href = filters[0].redirectUrl(href); target.setAttribute('href', href); } } catch (e) { } } } break; } } }, false); /** insight hottag a标签点击自动上报 **/ document.addEventListener('click', function (event) { try { var target = event.target || event.srcElement; if (target && target.nodeName && target.nodeName.toLocaleLowerCase() === 'a') { var hottag = target.getAttribute('data-hot') if (hottag && window.shell.insight && window.shell.insight.reportHotTag) { window.shell.insight.reportHotTag(hottag) } } } catch (e) { } }, false); </script> <script> !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).assetsRetry=e()}(this,function(){"use strict";function a(t){return t}function y(){}function r(t,e){try{return"function"==typeof t[e]}catch(t){return!1}}function p(t){return Array.isArray(t)?t.reduce(function(t,e,n,r){return t[e]=r[(n+1)%r.length],t},{}):t}function h(e,t){return Object.keys(t).filter(function(t){return-1<e.indexOf(t)}).sort(function(t,e){return e.length-t.length})[0]}var e,m="retryTimes",b="succeeded",E="failed",O="maxRetryCount",j="onRetry",f="onSuccess",s="onFail",w="domain",v="_assetsRetryScript",g="_assetsRetryOnerror",l="script",A="data-assets-retry-hooked",S="data-assets-retry-ignore",k="data-retry-id",d=window,R=window.document,n=d.HTMLElement,L=d.HTMLScriptElement,c=d.HTMLStyleElement,T=d.HTMLLinkElement,x=d.HTMLImageElement,o=Object.prototype.hasOwnProperty,_=function(t,e,n){var r=t.indexOf(e);return-1===r?t:t.substring(0,r)+n+t.substring(r+e.length)},M=function(t){return[].slice.call(t)},N=function(e,t,n,r){void 0===n&&(n=y),void 0===r&&(r=!1);var o,i,c,u,a,f=r||e.defer||e.async;"loading"!==R.readyState||/Edge|MSIE|rv:/i.test(navigator.userAgent)||f?(o=R.createElement(l),Object.keys(L.prototype).forEach(function(t){if("src"!==t&&e[t]&&"object"!=typeof e[t])try{o[t]=e[t]}catch(t){}}),o.src=t,o.onload=e.onload,o.onerror=e.onerror,o.setAttribute(k,C()),(i=e.getAttribute("nonce"))&&o.setAttribute("nonce",i),R.getElementsByTagName("head")[0].appendChild(o)):(c=C(),u=e.outerHTML.replace(/data-retry-id="[^"]+"/,"").replace(/src=(?:"[^"]+"|.+)([ >])/,k+"="+c+' src="'+t+'"$1'),R.write(u),(a=R.querySelector("script["+k+'="'+c+'"]'))&&(a.onload=n))},H=function(e){try{return e.rules}catch(t){try{return e.cssRules}catch(t){return null}}},I=function(e,t,n){var r=R.createElement("link");Object.keys(T.prototype).forEach(function(t){if("href"!==t&&e[t]&&"object"!=typeof e[t])try{r[t]=e[t]}catch(t){}}),r.href=t,r.onload=n,r.setAttribute(k,C()),R.getElementsByTagName("head")[0].appendChild(r)},P=function(t){return t?t instanceof n?[t.nodeName,t.src,t.href,t.getAttribute(k)].join(";"):"not_supported":"null"},C=function(){return Math.random().toString(36).slice(2)},B=function(t){return t instanceof L||t instanceof x?t.src:t instanceof T?t.href:null},F={},$=function(t,e){var n,r=q(t,e),o=r[0],i=r[1];return o?(F[o]=F[o]||((n={})[m]=0,n[E]=[],n[b]=[],n),[i,F[o]]):[]},q=function(t,e){var n,r,o=h(t,e);return o?[(r=o,(n=t).substr(n.indexOf(r)+r.length,n.length)),o]:["",""]};try{e=function(t){for(var e=Object.getPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__},n=Object.keys(t);e(t);)n=n.concat(Object.keys(e(t))),t=e(t);return n.filter(function(t){return"constructor"!==t})}(L.prototype)}catch(t){}function i(f,t){var s=t[O],l=p(t[w]),d=t[j];return e.reduce(function(t,e){var n=r(L.prototype,e);return t[e]=n?{value:function(){return f[v][e].apply(f[v],arguments)}}:{set:function(o){return"onerror"===e?(f[g]=o,void(f[v].onerror=function(r){r.stopPropagation&&r.stopPropagation();function t(){return t=f[g],e=f[v],n=r,"function"!=typeof t?null:t.call(e,n);var t,e,n}var e=f[v].src,n=$(e,l),o=n[0],i=n[1],c=f[v].hasAttribute(S);if(!o||!i||c)return t();var u=_(e,o,l[o]),a=d(u,e,i);if(null===a)return t();if("string"!=typeof a)throw new Error("a string should be returned in `onRetry` function");i[m]<=s?N(f[v],a,y,!0):t()})):"onload"===e?(f._assetsRetryOnload=o,void(f[v].onload=function(t){var e=f[v].src,n=$(e,l),r=(n[0],n[1]);r&&-1===r[E].indexOf(e)&&r[b].push(e),o&&!o._called&&(o._called=!0,o.call(f[v],t))})):void(f[v][e]=o)},get:function(){return f[v][e]}},t},{})}var z=function(n){var r=R.createElement;R.createElement=function(t,e){return t===l?function(t,e){var n;t.setAttribute(A,"true");var r=((n={})[v]=t,n[g]=y,n),o=i(r,e);return Object.defineProperties(r,o),r}(r.call(R,l),n):r.call(R,t,e)},R.createElement.toString=function(){return"function createElement() { [native code] }"}},Z=function(n){Object.keys(n).filter(function(t){return r(n,t)}).forEach(function(t){var e=n[t];n[t]=function(){var t=[].slice.call(arguments).map(function(t){return t&&o.call(t,v)?t[v]:t});return e.apply(this,t)},/^\w+$/.test(t)&&(n[t].toString=new Function("return 'function "+t+"() { [native code] }'"))})};var D={};function G(p){function c(t){if(t){var e=t.target||t.srcElement,n=B(e);if(n){var r=$(n,g),o=r[0],i=r[1],c=e instanceof HTMLElement&&e.hasAttribute(S);if(i&&o&&!c){i[m]++,i[E].push(n);var u,a=i[m]>p[O];if(a&&(u=q(n,g)[0],v(u)),g[o]&&!a){var f=g[o],s=_(n,o,f),l=h(s,n,i);if(null!==l){if("string"!=typeof l)throw new Error("a string should be returned in `onRetry` function");var d,y=P(e);D[y]||(D[y]=!0,d=function(){i[b].push(l)},e instanceof L&&!e.getAttribute(A)&&e.src?N(e,l,d):e instanceof T&&e.href?I(e,l,d):e instanceof x&&e.src&&(e.setAttribute(k,C()),e.src=l,e.onload=d))}}}}}}var h=p[j],u=p[f],v=p[s],g=p[w];R.addEventListener("error",c,!0),R.addEventListener("load",function(t){var e,n,r,o,i;t&&(e=t.target||t.srcElement,(n=B(e))&&(e.getAttribute(k)&&(r=q(n,g)[0],u(r)),e instanceof T&&R.styleSheets&&(o=M(R.styleSheets).filter(function(t){return t.href===e.href})[0],null!==(i=H(o))&&0===i.length&&c(t))))},!0)}function u(t,e,n,r,o){var i=o[w],c=o[j],u=e.style&&e.style[t];if(u&&!/^url\(["']?data:/.test(u)){var a=u.match(/^url\(["']?(.+?)["']?\)/)||[],f=a[1];if(f){var s=h(f,i);if(s&&i[s]){var l=Object.keys(i).map(function(t){var e=_(f,s,t);return'url("'+c(e,f,null)+'")'}).join(","),d=e.selectorText+("{ "+t.replace(/([a-z])([A-Z])/g,function(t,e,n){return e+"-"+n.toLowerCase()}))+": "+l+" !important; }";try{n.insertRule(d,r.length)}catch(t){n.insertRule(d,0)}}}}}var J={},K=[],Q=function(t,o){var i=["backgroundImage","borderImage","listStyleImage"];t.forEach(function(n){var r,t=H(n);null!==t&&((r=M(t)).forEach(function(e){i.forEach(function(t){u(t,e,n,r,o)})}),n.href&&(J[n.href]=!0),n.ownerNode instanceof c&&K.push(n.ownerNode))})},U=function(t,n){return M(t).filter(function(t){if(!H(t))return!1;if(t.href)return!J[t.href]&&!!h(t.href,n);var e=t.ownerNode;return!(e instanceof c&&-1<K.indexOf(e))})};return function(t){var e,n,r,o;void 0===t&&(t={});try{if("object"!=typeof t[w])throw new Error("opts.domain cannot be non-object.");var i=[O,j,f,s,w],c=Object.keys(t).filter(function(t){return-1===i.indexOf(t)});if(0<c.length)throw new Error("option name: "+c.join(", ")+" is not valid.");var u=((e={})[O]=t[O]||3,e[j]=t[j]||a,e[f]=t[f]||y,e[s]=t[s]||y,e[w]=p(t[w]),e);return z(u),"undefined"!=typeof Node&&Z(Node.prototype),"undefined"!=typeof Element&&Z(Element.prototype),G(u),n=u,r=R.styleSheets,o=n[w],r&&setInterval(function(){var t=U(R.styleSheets,o);0<t.length&&Q(t,n)},250),F}catch(t){d.console&&console.error("[assetsRetry] error captured",t)}}}); try{ var assetsRetryReport = function(event, { originalUrl, retryTimes, totalUrl }) { var reportData = { url: originalUrl, path: location.pathname, event: event, app: 'qcbuy', lid: window.lifeId, lifeRegion: window.lifeRegion, lang: window.lang, intl: window.intl, level: 0, at: new Date().getTime(), uin: 0, times: retryTimes, message: totalUrl } var reportUrl = (window.QCMAIN_HOST) ? `https://insight.${window.QCMAIN_HOST}/buy/event` : 'https://insight.cloud.tencent.com/buy/event'; var isSupportSendBeacon = typeof navigator.sendBeacon === 'function'; if (JSON && JSON.stringify) { var reportStr = JSON.stringify(reportData); if (isSupportSendBeacon) { navigator.sendBeacon(reportUrl, reportStr); } else { reportStr = encodeURIComponent(reportStr); reportStr = btoa(reportStr); new Image().src = reportUrl + '?d=' + reportStr; } } }; var assetsDomains = window.cdnHosts || ['cloudcache.tencent-cloud.com','imgcache.qq.com']; var assetsRetryCount = assetsDomains.length; // information of assets var assetsRetryStatistics = window.assetsRetry({ // domain list, only resources in the domain list will be retried. domain: assetsDomains, // maximum retry count for each asset, default is 3 maxRetryCount: assetsRetryCount, // onRetry hook is how you can customize retry logic with, default is x => x onRetry: function(currentUrl, originalUrl, statistics) { console.warn('Retrying (assets): %s', currentUrl); return currentUrl; }, onSuccess: function(currentUrl) { var curStatic = assetsRetryStatistics[currentUrl]; if (curStatic && curStatic.succeeded && curStatic.succeeded.length) { assetsRetryReport('assets-retry-success', { originalUrl: curStatic.succeeded[0], retryTimes: curStatic.retryTimes, totalUrl: curStatic.succeeded.join(', ') }) } }, onFail: function(currentUrl) { var curStatic = assetsRetryStatistics[currentUrl]; if (curStatic && curStatic.failed && curStatic.failed.length) { assetsRetryReport('assets-retry-fail', { originalUrl: curStatic.failed[0], retryTimes: curStatic.retryTimes, totalUrl: curStatic.failed.join(', ') }) } } }) } catch (err) {} </script> <link id="qcportal-kit-style" rel="stylesheet" href="https://cloudcache.tencent-cloud.com/qcloud/portal/kit/full.f344ca603e99f2a3ac3a.css"> <link rel="stylesheet" href="https://cloudcache.tencent-cloud.cn/open_proj/proj_qcloud_v2/gateway/portal/css/global-201908071143.css?max_age=31536000" /> <link rel="stylesheet" href="https://cloudcache.tencent-cloud.cn/open_proj/proj_qcloud_v2/gateway/portal/css/global-components.css?max_age=31536000&t=20180817" /> <link href='//cloudcache.tencent-cloud.cn/qcloud/app/resource/ac/favicon.ico' rel='icon' type='image/x-icon'/> <style> @keyframes fade-in{0%{opacity:0}100%{}}@-webkit-keyframes fade-in{0%{opacity:0}100%{}}@keyframes fade-out{0%{}100%{opacity:0}}@-webkit-keyframes fade-out{0%{}100%{opacity:0}}@keyframes modal-in{0%{opacity:0;transform:scale(0.8, 0.8);-moz-transform:scale(0.8, 0.8);-webkit-transform:scale(0.8, 0.8);-ms-transform:scale(0.8, 0.8);}100%{}}@-webkit-keyframes modal-in{0%{opacity:0;transform:scale(0.8, 0.8);-moz-transform:scale(0.8, 0.8);-webkit-transform:scale(0.8, 0.8);-ms-transform:scale(0.8, 0.8);}100%{}}@keyframes modal-out{0%{}100%{transform:scale(0.8, 0.8);-moz-transform:scale(0.8, 0.8);-webkit-transform:scale(0.8, 0.8);-ms-transform:scale(0.8, 0.8);opacity:0}}@-webkit-keyframes modal-out{0%{}100%{transform:scale(0.8, 0.8);-moz-transform:scale(0.8, 0.8);-webkit-transform:scale(0.8, 0.8);-ms-transform:scale(0.8, 0.8);opacity:0}}.mask-in{animation: fade-in 0.2s;-webkit-animation: fade-in 0.2s;}.mask-out{animation: fade-out 0.2s;-webkit-animation: fade-out 0.2s;}.modal-in{animation: modal-in 0.15s;-webkit-animation: modal-in 0.15s;}.modal-out{animation: modal-out 0.15s;-webkit-animation: modal-out 0.15s;}.fade-in{animation: fade-in 0.3s;-webkit-animation: fade-in 0.3s;}.fade-out{animation: fade-out 0.3s;-webkit-animation: fade-out 0.3s;}.error-page{width:800px;text-align:center;margin: 100px auto 0;padding:50px;font-size:18px;line-height:1.5;color:#999;border: 1px solid #e0e0e0;background-color: #fff;}.error-page h2{font-size:40px; font-weight:bold} </style> <link rel="stylesheet" href="https://cloudcache.tencent-cloud.cn/open_proj/proj_qcloud_v2/gateway/portal/css/base.css" /> <link rel="stylesheet" href="https://cloudcache.tencent-cloud.cn/qcloud/ui/gateway/price/html/css/pricing-202305081616.css" /> <!-- core-js polyfill (core-js@3.6.4) --> <script crossorigin="anonymous" src="https://cloudcache.tencent-cloud.cn/qcloud/buy/tcb_buy/dist/assets/core-js.3.9.1.js?max_age=31536000"></script> <!-- regenerator-runtime@0.13.5/runtime.js for babel regenerator-compiled generator and async functions. --> <script crossorigin="anonymous" src="https://cloudcache.tencent-cloud.cn/qcloud/buy/tcb_buy/dist/assets/regenerator-runtime.0.13.5.js?max_age=31536000"></script> <!-- fetch polyfill --> <script crossorigin="anonymous" src="https://cloudcache.tencent-cloud.cn/qcloud/buy/tcb_buy/dist/assets/fetch.umd.3.0.0.js?max_age=31536000"></script> <script type="text/javascript"> //下面的 seajs 是修改过的,不要随意替换 // 获取 url 的hostsname function getUrlHost(url) { var l = document.createElement("a"); l.href = url; return l.hostname; } // 通过 XHR 重新加载资源 // type - css/js // url - 资源地址 // callback - 回调 function retryViaXhr(type, url, callback) { var URL = window.URL || window.webkitURL; var xhr = new XMLHttpRequest(); var bytes, rtt, cost, speed; var notify = function (errorMessage) { callback({ type: type, url: url, success: !errorMessage, error: errorMessage, status: +xhr.status, rurl: xhr.responseURL, bytes: bytes, rtt: rtt, cost: cost, speed: speed }); }; xhr.onerror = xhr.onload = function (evt) { if (+xhr.status !== 200) { return notify('ERR_' + xhr.status); } var memoryUrl = URL.createObjectURL( new Blob( [xhr.responseText], { type: type === 'js' ? 'text/javascript' : 'text/css' } ) ); if (type === 'js') { var script = document.createElement('script'); script.onload = script.onerror = function (evt) { try { document.body.removeChild(script); script.onload = script.onerror = null; script = null; URL.revokeObjectURL(memoryUrl); } catch (err) { } if (evt.type === 'load') { notify(null); } else { notify('Cannot load ' + memoryUrl + ' (source ' + url + ')'); } }; script.src = memoryUrl; script.setAttribute('data-assets-retry-ignore', true); document.body.appendChild(script); } else if (type === 'css') { var link = document.createElement('link'); link.rel = 'stylesheet'; link.href = memoryUrl; link.setAttribute('data-origin-href', url); document.head.appendChild(link); setTimeout(function () { notify(null); URL.revokeObjectURL(memoryUrl); }, 10); } else { URL.revokeObjectURL(memoryUrl); } } xhr.onreadystatechange = function () { switch (xhr.readyState) { case 1: { start = +new Date(); break; } case 2: { rtt = +new Date() - start; break; } case 4: { rtt = rtt || 0; cost = Math.max(1, +new Date() - start - rtt); bytes = +xhr.getResponseHeader('content-length'); if (bytes > 0) { // 单位为 bytes/s speed = cost > 0 ? Math.round(bytes / cost * 1000) : 0; } break; } } }; var addSeed = function (url) { var joiner = url.indexOf('?') > -1 ? '&' : '?'; return [url, 'r=' + Math.random()].join(joiner); } xhr.open('GET', addSeed(url), true); xhr.send(null); } // 监控require的id 把lib和jssdk的模块依赖统计上报rum function monitorRequireId(id) { try { var requireIds = "router,nmc/main/router,nmc/lib/util,nmcConfig,nmc/config/config,dataManager,nmc/main/datamanager,pageManager,nmc/main/pagemanager,nmc/sdk/sdk,lib/history,lib/manage,lib/net,lib/login,lib/util,lib/billing-sdk-importer,lib/dealprice,lib/lottery,lib/pay,lib/reporter,lib/tdReport,lib/teaHelper,config/esn-polyfill,billing/jssdk/ajaxer,billing/jssdk/config,billing/jssdk/helper,billing/jssdk/i18n,billing/jssdk/index,billing/jssdk/net,billing/jssdk/util"; if (requireIds.split(',').indexOf(id) > -1 && typeof window.aegis !== 'undefined' && window.pageConfig) { var eventName = 'require 控制台依赖' if (id.indexOf('billing/jssdk/') === 0) { eventName = 'require jssdk模块' } if (id.indexOf('lib/') === 0) { eventName = 'require lib模块' } window.aegis.reportEvent({ name: eventName, ext1: id, ext2: window.pageConfig.goodsName, ext3: window.pageComponent, }); } } catch (error) { } } // ------------------------------------ Sea.js begin !(function (a, b) { function e(a) { return function (b) { return Object.prototype.toString.call(b) === '[object ' + a + ']' } } function k() { return j++ } function q(a) { return a.match(n)[0] } function r(a) { for (a = a.replace(o, '/'); a.match(p);) a = a.replace(p, '/') return a } function s(a) { var b = a.length - 1, c = a.charAt(b) return '#' === c ? a.substring(0, b) : '.js' === a.substring(b - 2) || a.indexOf('?') > 0 || '.css' === a.substring(b - 3) || '/' === c ? a : a + '.js' } function v(a) { var b = d.alias return b && g(b[a]) ? b[a] : a } function w(a) { var c, b = d.paths return b && (c = a.match(t)) && g(b[c[1]]) && (a = b[c[1]] + c[2]), a } function x(a) { var b = d.vars return ( b && a.indexOf('{') > -1 && (a = a.replace(u, function (a, c) { return g(b[c]) ? b[c] : a })), a ) } function y(a) { var e, f, g, b = d.map, c = a if (b) for (e = 0, f = b.length; f > e && ((g = b[e]), (c = i(g) ? g(a) || a : a.replace(g[0], g[1])), c === a); e++); return c } function B(a, b) { var c, f, e = a.charAt(0) return z.test(a) ? (c = a) : '.' === e ? (c = r((b ? q(b) : d.cwd) + a)) : '/' === e ? ((f = d.cwd.match(A)), (c = f ? f[0] + a.substring(1) : a)) : (c = d.base + a), c } function C(a, b) { if (!a) return '' ; (a = v(a)), (a = w(a)), (a = x(a)), (a = s(a)) var c = B(a, b) return (c = y(c)) } function J(a) { return a.hasAttribute ? a.src : a.getAttribute('src', 4) } // R - 加载资源 // a - url // b - callback // c - charset // t - 重试次数(20180926 新增重试机制) function R(a, b, c, t) { t = t || 0; var f, d = M.test(a), e = D.createElement(d ? 'link' : 'script'); if (!d) { e.setAttribute('data-assets-retry-ignore', true); } c && ((f = i(c) ? c(a) : c), f && (e.charset = f)), S(e, b, d, t), d ? ((e.rel = 'stylesheet'), (e.href = a)) : ((e.async = !0), (e.crossOrigin = _cosdp.test(a) && (Math.floor(t / window.cdnHosts.length) === 0) ? 'anonymous' : null), (e.src = a)), (O = e), L ? K.insertBefore(e, L) : K.appendChild(e), (O = null) } // S - 处理回调 // a - ScriptElement | LinkElement // b - callback // C - isCss // t - 重试次数(20180926 新增重试机制) function S(a, b, C, t) { t = t || 0; var e = C && (Q || !("onload" in a)); return e ? (setTimeout(function () { T(a, b); }, 1), void 0) : ((a.onload = a.onerror = a.onreadystatechange = function (e) { var url = C ? a.href : a.src; var eventType = e && e.type; if (eventType === 'error') { var clean = function () { a.onload = a.onerror = a.onreadystatechange = null; K.removeChild(a); a = null; }; var charset = a.charset; var len = 1; var enableMultiHost = window.cdnHosts.includes(getUrlHost(url)); // 只有在指定域名列表的资源才进行多域名重试 if (enableMultiHost) { len = window.cdnHosts.length; } // cdnHosts 的每个域名,按照以下步骤进行重试: // 1、附带跨域头轮流重试一次, // 2、移除跨域头轮流重试一次 if (t <= len * 2) { // 3、使用 xhr 轮流重试一次 if (t === len * 2) { retryXhrHandle(C, url, t, b, c, len, enableMultiHost); clean(); return; } else { ++t; setTimeout(function () { try { url = enableMultiHost ? url.replace(getUrlHost(url), window.cdnHosts[(t - 1) % len]) : url; } catch (err) { } R(url, b, charset, t); console.warn('Retrying %d (seajs-classic): %s', t, url); }, 500); clean(); } return; } } if (eventType) { c.emit("resource-" + eventType, { type: C ? 'css' : 'js', url: url, retry: t }); } N.test(a.readyState) && ( (a.onload = a.onerror = a.onreadystatechange = null), C || d.debug || K.removeChild(a), (a = null), b() ); } ), void 0); } // xhr 多次重试的逻辑 function retryXhrHandle(C, url, t, b, c, len, enableMultiHost) { // 这个时候的 t 初始值为 len * 2 if (t < len * 3) { ++t; setTimeout(function () { try { url = enableMultiHost ? url.replace(getUrlHost(url), window.cdnHosts[(t - 1) % len]) : url; } catch (err) { } retryViaXhr(C ? 'css' : 'js', url, function (result, xhr) { result.retry = t; c.emit(result.success ? "resource-load" : "resource-error", result); if (!result.success) { if (t === len * 3) { b(); } retryXhrHandle(C, url, t, b, c, len, enableMultiHost); } else { b(); } }); console.warn('Retrying %d (seajs-xhr): %s', t, url); }, 500); } } function T(a, b) { var d, c = a.sheet if (Q) c && (d = !0) else if (c) try { c.cssRules && (d = !0) } catch (e) { 'NS_ERROR_DOM_SECURITY_ERR' === e.name && (d = !0) } setTimeout(function () { d ? b() : T(a, b) }, 20) } function U() { var a, b, c if (O) return O if (P && 'interactive' === P.readyState) return P for (a = K.getElementsByTagName('script'), b = a.length - 1; b >= 0; b--) if (((c = a[b]), 'interactive' === c.readyState)) return (P = c) } // 根据 V 正则分析文件所使用的 require 依赖,返回依赖数组 function X(a) { var b = [] return ( a.replace(W, '').replace(V, function (a, c, d) { d && b.push(d) }), b ) } function cb(a, b) { ; (this.uri = a), (this.dependencies = b || []), (this.exports = null), (this.status = 0), (this._waitings = {}), (this._remain = 0) } var c, d, f, g, h, i, j, l, m, n, o, p, t, u, z, A, D, E, F, G, H, I, K, L, M, N, O, P, Q, V, W, Y, Z, $, _, ab, bb, db a.seajs || ((c = a.seajs = { version: '2.1.1', }), (d = c.data = {}), (f = e('Object')), (g = e('String')), (h = Array.isArray || e('Array')), (i = e('Function')), (j = 0), (l = d.events = {}), (c.on = function (a, b) { var d = l[a] || (l[a] = []) return d.push(b), c }), (c.off = function (a, b) { var e, f if (!a && !b) return (l = d.events = {}), c if ((e = l[a])) if (b) for (f = e.length - 1; f >= 0; f--) e[f] === b && e.splice(f, 1) else delete l[a] return c }), (m = c.emit = function (a, b) { var e, d = l[a] if (d) for (d = d.slice(); (e = d.shift());) e(b) return c }), (n = /[^?#]*\//), (o = /\/\.\//g), (p = /\/[^/]+\/\.\.\//), (t = /^([^/:]+)(\/.+)$/), (u = /{([^{]+)}/g), (z = /^\/\/.|:\//), (A = /^.*?\/\/.*?\//), (D = document), (E = location), (F = q(E.href)), (G = D.getElementsByTagName('script')), (H = D.getElementById('seajsnode') || G[G.length - 1]), (I = q(J(H) || F)), (K = D.getElementsByTagName('head')[0] || D.documentElement), (L = K.getElementsByTagName('base')[0]), (M = /\.css(?:\?|$)/i), (N = /^(?:loaded|complete|undefined)$/), (Q = 1 * navigator.userAgent.replace(/.*AppleWebKit\/(\d+)\..*/, '$1') < 536), (V = /"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|\/\*[\S\s]*?\*\/|\/(?:\\\/|[^\/\r\n])+\/(?=[^\/])|\/\/.*|\.\s*require|(?:^|[^$])\brequire\s*\(\s*(["'])(.+?)\1\s*\)/g), (W = /\\\\/g), (Y = c.cache = {}), ($ = {}), (_ = {}), (ab = {}), (bb = cb.STATUS = { FETCHING: 1, SAVED: 2, LOADING: 3, LOADED: 4, EXECUTING: 5, EXECUTED: 6, }), (cb.prototype.resolve = function () { var d, e, a = this, b = a.dependencies, c = [] for (d = 0, e = b.length; e > d; d++) c[d] = cb.resolve(b[d], a.uri) return c }), (cb.prototype.load = function () { var b, c, d, e, f, g, a = this if (!(a.status >= bb.LOADING)) { for (a.status = bb.LOADING, b = a.resolve(), m('load', b), c = a._remain = b.length, e = 0; c > e; e++) (d = cb.get(b[e])), d.status < bb.LOADED ? (d._waitings[a.uri] = (d._waitings[a.uri] || 0) + 1) : a._remain-- if (0 === a._remain) return a.onload(), void 0 for (f = {}, e = 0; c > e; e++) (d = Y[b[e]]), d.status < bb.FETCHING ? d.fetch(f) : d.status === bb.SAVED && d.load() for (g in f) f.hasOwnProperty(g) && f[g]() } }), (cb.prototype.onload = function () { var b, c, d, a = this ; (a.status = bb.LOADED), a.callback && a.callback(), (b = a._waitings) for (c in b) b.hasOwnProperty(c) && ((d = Y[c]), (d._remain -= b[c]), 0 === d._remain && d.onload()) delete a._waitings, delete a._remain }), (cb.prototype.fetch = function (a) { function g() { R(e.requestUri, e.onRequest, e.charset) } function h() { delete $[f], (_[f] = !0), Z && (cb.save(c, Z), (Z = null)) var a, b = ab[f] for (delete ab[f]; (a = b.shift());) a.load() } var e, f, b = this, c = b.uri return ( (b.status = bb.FETCHING), (e = { uri: c, }), m('fetch', e), (f = e.requestUri || c), !f || _[f] ? (b.load(), void 0) : $[f] ? (ab[f].push(b), void 0) : (($[f] = !0), (ab[f] = [b]), m( 'request', (e = { uri: c, requestUri: f, onRequest: h, charset: d.charset, }) ), e.requested || (a ? (a[e.requestUri] = g) : g()), void 0) ) }), (cb.prototype.exec = function () { function d(a) { return cb.get(d.resolve(a)).exec() } var c, e, f, a = this return a.status >= bb.EXECUTING ? a.exports : ((a.status = bb.EXECUTING), (c = a.uri), (d.resolve = function (a) { return cb.resolve(a, c) }), (d.async = function (a, b) { return cb.use(a, b, c + '_async_' + k()), d }), (e = a.factory), (f = i(e) ? e(d, (a.exports = {}), a) : e), f === b && (f = a.exports), null !== f || M.test(c) || m('error', a), delete a.factory, (a.exports = f), (a.status = bb.EXECUTED), m('exec', a), f) }), (cb.resolve = function (a, b) { var c = { id: a, refUri: b, } return m('resolve', c), c.uri || C(c.id, b) }), (c.ownCode = arguments.callee.toString()), (c.modules = {}), (c.hasDefined = {}), (cb.define = function (a, d, e) { var g, j, k, f = arguments.length 1 === f ? ((e = a), (a = b)) : 2 === f && ((e = d), h(a) ? ((d = a), (a = b)) : (d = b)), !h(d) && i(e) && ((g = e.toString()), (d = X(g))), (j = { id: a, uri: cb.resolve(a), deps: d, factory: e, }), !j.uri && D.attachEvent && ((k = U()), k && (j.uri = k.src)), m('define', j), j.uri ? cb.save(j.uri, j) : (Z = j), g || (g = e.toString()), (c.hasDefined[a] = c.modules[a] = g) }), (cb.save = function (a, b) { var c = cb.get(a) c.status < bb.SAVED && ((c.id = b.id || a), (c.dependencies = b.deps || []), (c.factory = b.factory), (c.status = bb.SAVED)) }), (cb.get = function (a, b) { return Y[a] || (Y[a] = new cb(a, b)) }), (cb.use = function (b, c, d) { var e = cb.get(d, h(b) ? b : [b]) ; (e.callback = function () { var f, g, b = [], d = e.resolve() for (f = 0, g = d.length; g > f; f++) b[f] = Y[d[f]].exec() c && c.apply(a, b), delete e.callback }), e.load() }), (cb.preload = function (a) { var b = d.preload, c = b.length c ? cb.use( b, function () { b.splice(0, c), cb.preload(a) }, d.cwd + '_preload_' + k() ) : a() }), (c.use = function (a, b) { return ( cb.preload(function () { cb.use(a, b, d.cwd + '_use_' + k()) }), c ) }), (cb.define.cmd = {}), (a.define = cb.define), (c.Module = cb), (d.fetchedList = _), (d.cid = k), (c.resolve = C), (c.require = function (id) { // 监控require的id 把控制台的模块上报rum monitorRequireId(id) var mod = Y[cb.resolve(id)] || {} if (mod.status < 5) { mod.onload() mod.exec() } return mod.exports }), (db = /^(.+?\/)(\?\?)?(seajs\/)+/), (d.base = (I.match(db) || ['', I])[1]), (d.dir = I), (d.cwd = F), (d.charset = 'utf-8'), (d.preload = (function () { var a = [], b = E.search.replace(/(seajs-\w+)(&|$)/g, '$1=1$2') return ( (b += ' ' + D.cookie), b.replace(/(seajs-\w+)=1/g, function (b, c) { a.push(c) }), a ) })()), (c.config = function (a) { var b, e, g, i for (b in a) if (((e = a[b]), (g = d[b]), g && f(g))) for (i in e) g[i] = e[i] else h(g) ? (e = g.concat(e)) : 'base' === b && ('/' === e.slice(-1) || (e += '/'), (e = B(e))), (d[b] = e) return m('config', a), c })) })(this) // ------------------------------------ Sea.js end // stack parser start var StackParser = (function () { "use strict"; var e = /(^|@)\S+\:\d+/, r = /^\s*at .*(\S+\:\d+|\(native\))/m, t = /^(eval@)?(\[native code\])?$/; return { parse: function (e) { if (void 0 !== e.stacktrace || void 0 !== e["opera#sourceloc"]) return this.parseOpera(e); if (e.stack && e.stack.match(r)) return this.parseV8OrIE(e); if (e.stack) return this.parseFFOrSafari(e); throw new Error("Cannot parse given Error object") }, extractLocation: function (e) { if (-1 === e.indexOf(":")) return [e]; var r = /(.+?)(?:\:(\d+))?(?:\:(\d+))?$/.exec(e.replace(/[\(\)]/g, "")); return [r[1], r[2] || void 0, r[3] || void 0] }, parseV8OrIE: function (e) { return e.stack.split("\n").filter(function (e) { return !!e.match(r) }, this).map(function (e) { e.indexOf("(eval ") > -1 && (e = e.replace(/eval code/g, "eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g, "")); var r = e.replace(/^\s+/, "").replace(/\(eval code/g, "(").split(/\s+/).slice(1), t = this.extractLocation(r.pop()); return { functionName: r.join(" ") || void 0, fileName: ["eval", "<anonymous>"].indexOf(t[0]) > -1 ? void 0 : t[0], lineNumber: t[1], columnNumber: t[2], source: e } }, this) }, parseFFOrSafari: function (e) { return e.stack.split("\n").filter(function (e) { return !e.match(t) }, this).map(function (e) { if (e.indexOf(" > eval") > -1 && (e = e.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g, ":$1")), -1 === e.indexOf("@") && -1 === e.indexOf(":")) return { functionName: e }; var r = /((.*".+"[^@]*)?[^@]*)(?:@)/, t = e.match(r), a = t && t[1] ? t[1] : void 0, n = this.extractLocation(e.replace(r, "")); return { functionName: a, fileName: n[0], lineNumber: n[1], columnNumber: n[2], source: e } }, this) }, parseOpera: function (e) { return !e.stacktrace || e.message.indexOf("\n") > -1 && e.message.split("\n").length > e.stacktrace.split("\n").length ? this.parseOpera9(e) : e.stack ? this.parseOpera11(e) : this.parseOpera10(e) }, parseOpera9: function (e) { for (var r = /Line (\d+).*script (?:in )?(\S+)/i, t = e.message.split("\n"), a = [], n = 2, i = t.length; n < i; n += 2) { var c = r.exec(t[n]); c && a.push({ fileName: c[2], lineNumber: c[1], source: t[n] }) } return a }, parseOpera10: function (e) { for (var r = /Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i, t = e.stacktrace.split("\n"), a = [], n = 0, i = t.length; n < i; n += 2) { var c = r.exec(t[n]); c && a.push({ functionName: c[3] || void 0, fileName: c[2], lineNumber: c[1], source: t[n] }) } return a }, parseOpera11: function (r) { return r.stack.split("\n").filter(function (r) { return !!r.match(e) && !r.match(/^Error created at/) }, this).map(function (e) { var r, t = e.split("@"), a = this.extractLocation(t.pop()), n = t.shift() || "", i = n.replace(/<anonymous function(: (\w+))?>/, "$2").replace(/\([^\)]*\)/g, "") || void 0; return n.match(/\(([^\)]*)\)/) && (r = n.replace(/^[^\(]+\(([^\)]*)\)$/, "$1")), { functionName: i, args: void 0 === r || "[arguments not available]" === r ? void 0 : r.split(","), fileName: a[0], lineNumber: a[1], columnNumber: a[2], source: e } }, this) } } })(); // stack parser end (function (g) { // 通过观测 seajs 的 define 方法,来收集业务定义所在的 JS function watchDefine(defineOriginal) { var bes = g.BUSINESS_ENTRYS = {}; var nonBusinssFile = /\/qcloud\/app\/tea\/tea\.js/; function resolveBusiness(id) { return typeof id === 'string' && /^modules\/(\w+)\/(\w+)\/\2(\/|$)/.test(id) ? RegExp.$1 : null; } function resolveJsUrl(err) { try { var frames = StackParser.parse(err); frames.shift(); // skip throw position while (frames[0] && nonBusinssFile.test(frames[0].fileName)) frames.shift(); // skip non business files var frame = frames.shift(); if (frame) { return frame.fileName; } } catch (err) { } return null; } var defineWrap = function define(id) { var business = resolveBusiness(id); if (business && !bes[business]) { try { throw new Error(id); } catch (err) { var url = resolveJsUrl(err); if (url) { bes[business] = url.split('?').shift(); } } } return defineOriginal.apply(this, arguments); }; for (var p in defineOriginal) { if (defineOriginal.hasOwnProperty(p)) { defineWrap[p] = defineOriginal[p]; } }; return defineWrap; } g.define = g.seajs.Module.define = watchDefine(g.define); })(window); window.seajs._task = Promise.resolve() /** 异步按序加载模块:多次调用 useAsync 也会保证先前调用的模块已被加载;也可传入一个数组,会依次加载数组中的 id,返回模块/模块数组的 Promise 设置了 crossorigin 属性可以监控到脚本错误,并在脚本加载失败是重试加载 (最多 3 次) ```ts // 1. 假设已有如下 id 为 xxx 的 Sea.js 模块定义 define('xxx', (require: RequireFunction, exports: any, module: any) => { exports.bar = 123 }) // 可通过 useAsync 执行 (eval) xxx 模块的模块定义函数,得到 exports const xxx = await useAsync('xxx') assert(xxx === { bar: 123 }) // 能确保模块已经被 define 时也可使用 seajs.require('xxx') 同步获取模块 const xxx = seajs.require('xxx') // 2. 通过 url 加载 .js script,如果 url 是相对路径,则在前面自动加上配置的 base await useAsync('https://imgcache.qq.com/qcloud/vendors/react/react16.development.js') // seajs.config({ base: basePath }) // basePath == https://imgcache.qq.com/qcloud/buy/platform/build/ await useAsync('buy.f50fec6946d14045608e54f46cd5704f.js') await useAsync(window.jsVersion['buy.js']) // 注:如果加载的 .js 文件中包含的是 Sea.js 模块定义(见 1),使用模块前仍需要通过模块 id 加载模块,还可以通过 alias 配置模块 id 缩写 // seajs.config({ alias: { tips: 'nmc/widget/tips' } }) await useAsync('https://imgcache.qq.com/qcloud/app/qcconsole_web/dest/platform.8df2fbbc1fe8ea09d67f2e749f97e803.js') seajs.require('tips') // 3. 通过 url 加载 .css stylesheet,在页面上应用 await useAsync('https://.../xxx.css') // 4. 多次调用 useAsync 会保证先前调用的模块已被加载;也可传入一个数组,会依次加载数组中的 id useAsync('url-a.js') useAsync('url-b.js') const [c, d] = await useAsync(['url-c.js', 'url-d.js']) // 实际加载顺序为 a, b, c, d ``` */ window.seajs.useAsync = function (moduleIds) { if (!moduleIds || !moduleIds.length) return if (Array.isArray(moduleIds) && moduleIds.length === 1) moduleIds = moduleIds[0] if (typeof moduleIds === 'string') return window.seajs._task = window.seajs._task.then(function () { return new Promise(function (resolve) { seajs.use(moduleIds, function (mod) { resolve(mod) }) }) }) // moduleIds.length >= 2 return Promise.all( moduleIds.map(function (mid) { return seajs.useAsync(mid) }) ) } </script> <!-- Aegis/tdbank --> <!-- aegis 上报使用 --> <!-- TAM sdk --> <script src="https://tam.cdn-go.cn/aegis-sdk/latest/aegis.f.min.js"></script> <script> var referer = ""; var _enableWebAegis = true; // TAM 初始化 if (_enableWebAegis && typeof Aegis !== 'undefined') { try { var aegisId = ''; if ('com' === 'cn') { aegisId = 'aZLQJFDjkx5aEx0QPy'; // cn项目key } else if ('com' === 'com.cn') { aegisId = 'VD37YUd7Dlxnw1oxgk'; // com.cn项目key } else if (false) { aegisId = 'RrpgOcPO6o3dYVG4v7'; // 国际站项目key } else { aegisId = 'nGLOZiKDeLo71dDead'; // com项目key } window.aegis = new Aegis({ id: aegisId, onError: true, pagePerformance: true, reportApiSpeed: true, reportAssetSpeed: true, api: { reportRequest: true, resHeaders: ['x-req-id', 'x-qcbuy-ver'], }, ext1: 'platform', beforeRequest: function (data) { if (!data) return false; if (data.logType === 'log') { if (data.logs.level === '32' && data.logs.msg.indexOf('google') > -1) return false; } if (/bot|wechatdevtools|spider/i.test(navigator.userAgent)) return false; if (data.logs.msg && data.logs.msg.indexOf('ResizeObserver') > -1) return false; if (data.logs.msg && data.logs.msg.indexOf('-extension://') > -1) return false; } }) } catch (err) {} } </script> <script> document.domain = 'cloud.tencent.com'; var basePath = 'https://cloudcache.tencent-cloud.cn/qcloud/buy/platform/build/'; seajs.config({ base: basePath }) // 白屏时间打点 window.loadHeadEnd = Date.now(); </script> <!-- feMonitor? --> <script> var feMonitor = null // 预声明监控对象 </script> <!-- TCI上报SDK --> <!-- 预加载动态语言包 --> <!-- Insight --> <script> // insight-client.4ae26e053.js !function(r){var n={};function o(e){var t;return(n[e]||(t=n[e]={i:e,l:!1,exports:{}},r[e].call(t.exports,t,t.exports,o),t.l=!0,t)).exports}o.m=r,o.c=n,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=22)}({0:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return"function"==typeof e}function i(e){return e&&"object"===n(e)}function a(e){return"number"==typeof e}function c(e){return"string"==typeof e}function u(e){return"boolean"==typeof e}r.d(t,"b",function(){return o}),r.d(t,"d",function(){return i}),r.d(t,"c",function(){return a}),r.d(t,"e",function(){return c}),r.d(t,"a",function(){return u})},1:function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r(0);function o(e){return(Object(n.b)(e)||Object(n.d)(e))&&(e.__insight_internal__=!0),e}},10:function(e,t,r){var n,o;!function(){"use strict";o=[],void 0!==(o="function"==typeof(n=function(){"use strict";function r(e){return!isNaN(parseFloat(e))&&isFinite(e)}function n(e){return e.charAt(0).toUpperCase()+e.substring(1)}function e(e){return function(){return this[e]}}var t=["isConstructor","isEval","isNative","isToplevel"],o=["columnNumber","lineNumber"],i=["fileName","functionName","source"],a,c,u=t.concat(o,i,["args"],["evalOrigin"]);function f(e){if(!e)return;for(var t=0;t<u.length;t++)if(e[u[t]]!==undefined)this["set"+n(u[t])](e[u[t]])}f.prototype={getArgs:function(){return this.args},setArgs:function(e){if(Object.prototype.toString.call(e)!=="[object Array]")throw new TypeError("Args must be an Array");this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof f)this.evalOrigin=e;else if(e instanceof Object)this.evalOrigin=new f(e);else throw new TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){var e=this.getFileName()||"";var t=this.getLineNumber()||"";var r=this.getColumnNumber()||"";var n=this.getFunctionName()||"";if(this.getIsEval()){if(e)return"[eval] ("+e+":"+t+":"+r+")";return"[eval]:"+t+":"+r}if(n)return n+" ("+e+":"+t+":"+r+")";return e+":"+t+":"+r}},f.fromString=function e(t){var r=t.indexOf("(");var n=t.lastIndexOf(")");var o=t.substring(0,r);var i=t.substring(r+1,n).split(",");var a=t.substring(n+1);if(a.indexOf("@")===0){var c=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(a,"");var u=c[1];var s=c[2];var l=c[3]}return new f({functionName:o,args:i||undefined,fileName:u,lineNumber:s||undefined,columnNumber:l||undefined})};for(var s=0;s<t.length;s++){f.prototype["get"+n(t[s])]=e(t[s]);f.prototype["set"+n(t[s])]=function(t){return function(e){this[t]=Boolean(e)}}(t[s])}for(var l=0;l<o.length;l++){f.prototype["get"+n(o[l])]=e(o[l]);f.prototype["set"+n(o[l])]=function(t){return function(e){if(!r(e))throw new TypeError(t+" must be a Number");this[t]=Number(e)}}(o[l])}for(var p=0;p<i.length;p++){f.prototype["get"+n(i[p])]=e(i[p]);f.prototype["set"+n(i[p])]=function(t){return function(e){this[t]=String(e)}}(i[p])}return f})?n.apply(t,o):n)&&(e.exports=o)}()},22:function(M,e,t){"use strict";t.r(e);var e={},r=(t.r(e),t.d(e,"config",function(){return ke}),t.d(e,"register",function(){return Ae}),t.d(e,"watch",function(){return V}),t.d(e,"care",function(){return f}),t.d(e,"fill",function(){return d}),t.d(e,"captureTrace",function(){return u}),t.d(e,"concatTrace",function(){return P}),t.d(e,"EventLevel",function(){return y}),t.d(e,"shutdown",function(){return Pe}),t.d(e,"stat",function(){return w}),t.d(e,"cgi",function(){return Ie}),t.d(e,"on",function(){return Ce}),t.d(e,"off",function(){return Ne}),t.d(e,"emit",function(){return De}),t(7)),L=t(0);function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n="object"===("undefined"==typeof crypto?"undefined":R(crypto))&&crypto.getRandomValues?function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:20,t=self.crypto,r=(e=e||21,""),n=t.getRandomValues(new Uint8Array(e));for(;0<e--;)r+="_~getRandomVsCrypwhil0214563789bcfjkquvxzABDEFGHIJKLMNOPQSTUWXYZ"[63&n[e]];return r}:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:20,t="";for(;0<e--;)t+="_~varfunctio0125634789bdegjhklmpqswxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[64*Math.random()|0];return t};function q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}}(e,t)||function(e,t){var r;if(e)return"string"==typeof e?B(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?B(e,t):void 0}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function k(e,t){t=1<arguments.length&&void 0!==t?t:"Object";if("object"===o(e))return e=Object.entries(e).filter(function(e){var e=q(e,2),t=e[0],e=e[1];return t.length<20&&!Object(L.b)(e)}).map(function(e){var e=q(e,2),t=e[0],e=e[1];return null===e||"object"!==o(e)?(e=function(e,t){return t=1<arguments.length&&void 0!==t?t:50,!Object(L.e)(e)||e.length<=t?e:e.slice(0,t-3)+"..."}(String(e))||"<empty>",[t,e=/\n/.test(e)?"<text>":e].join("=")):t}).slice(0,6).join(", "),"".concat(t,"(").concat(e,")")}var i=t(8),F=t.n(i);function U(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){var r;if(e)return"string"==typeof e?a(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function H(e){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var G=["imgcache.qq.com/qcloud/insight/insight-client"],z=/\/qcloud\/buy\/((tcb_buy\/dist\/)|(tcb-sdk\/)|(platform\/build\/))/,W=/\/qcloud\/vendors\//;function X(e){e=0<arguments.length&&void 0!==e?e:new Error("captureStack");return e&&e.stack?e.stack.split(/\r?\n/g).filter(function(t){return!G.some(function(e){return-1<t.indexOf(e)})}).join("\n"):""}function u(e,t,r){e&&"object"===H(e)?(n=e.message||e.msg||k(e,t),o=e.stack):"string"==typeof e&&(n=e),n=n||t||"[Unknown Error]";var n,o,e=function(e){var t=[];try{t=F.a.parse({stack:e})}catch(e){return!1}return!(!t||!t.length)&&((e=t[0].fileName)&&(z.test(e)||W.test(e)))}(o=o||r||X(new Error(n)));return{message:n,stack:o,fromQcbuy:e}}function P(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return{message:e.message,stack:[e.stack].concat(U(r.filter(Boolean).map(function(e){return e.stack}))).join("\n")}}function V(r,n,o){return function(){var e=arguments,t=function(){if(!o)return{};var e=arguments;try{return o.apply(this,e)}catch(e){return u(e)}}.apply(this,e);return null!==t&&(t=Object.assign(u(new Error(t&&t.message||"监听的方法被调用")),t),n.push(t)),r.apply(this,e)}}function f(o,e){if("function"!=typeof o)return o;try{if(o.__insight_internal__||o.__insight_careto__)return o;if(o.__insight_careby__)return o.__insight_careby__}catch(e){return o}function t(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Object(L.b)(a)&&a.apply(this,t);try{return t=t.map(function(e){return f(e,{capture:i})}),o.apply(this,t)}catch(e){var n=u(e);i(n,o,e)}finally{if(Object(L.b)(c))try{c.apply(this,t)}catch(e){}}}var i=e.capture,a=e.before,c=e.after;try{for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])}catch(e){}return t.prototype=o.prototype,(o.__insight_careby__=t).__insight_careto__=o,t}var y={Info:0,Warn:1,Error:2},i=t(5),K=t.n(i);function J(e){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Q(){return[location.pathname,location.hash].join("").replace(/^\/#/,"")}function Y(){return location.href}function Z(){try{return seajs.require("login").getDisplayName()}catch(e){return"<unknown>"}}function ee(){return K.a.get("qcloud_uid")}function te(){var e=[],t=window.__IDC_DOMAINS__;if("object"===J(t))for(var r in t)!0===t[r]&&e.push(r);return{idcDomains:e.join("; "),idcDomainCount:e.length}}function re(){return window.LOGIN_INFO&&window.LOGIN_INFO.area||1}function ne(){return window.LOGIN_INFO&&window.LOGIN_INFO.identity&&null!=window.LOGIN_INFO.identity.subjectType?window.LOGIN_INFO.identity.subjectType:-1}var v=t(1);"https://insight.".concat(window.QCMAIN_HOST,"/event");var oe="function"==typeof navigator.sendBeacon?function(e,t){navigator.sendBeacon(e,JSON.stringify(t))}:function(e,t){var r=XMLHttpRequest;/msie (\d+)/i.test(navigator.userAgent)&&+RegExp.$1<=9&&"function"==typeof XDomainRequest&&(r=XDomainRequest),(r=Object(v.a)(new r)).open("POST",e),r.send(JSON.stringify(t))},c=function(e){var t,r,n=Array.isArray(e)?e:[e];if(n.length)return n=n.filter(function(e){return e&&e.event}).map(function(e){return"stat"===e.event?[e.ns,e.stat].join(":"):e.event}).slice(0,5),t="".concat((t=(t=/(cloud\.tencent\.|tencentcloud\.)(com|cn|com\.cn)$/.exec(location.hostname))?t[1]+t[2]:"cloud.tencent.com",r="insight.".concat(t),-1!==location.hostname.lastIndexOf("intl.".concat(t))&&(r="insight.intl.".concat(t)),"https://".concat(r,"/buy/event")),"?e=").concat(n.join("+")),oe(t,e)};function ie(e){return(ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ae(e,t,r,n,o,i,a,c){var u,s=Object.assign({app:e,event:i,lid:t,born:r,at:n(),pageComponent:o},(e=te(),i=window.LOGIN_INFO||{},{path:Q(),href:Y(),uin:i.loginUin,ownerUin:i.ownerUin,quid:ee(),nickname:Z(),idcDomains:e.idcDomains,idcDomainCount:e.idcDomainCount,userArea:re(),userAppId:i.appId,userLang:window.VERSION||"zh",cookieLang:K.a.get("language"),authType:ne(),platformVersion:Object(L.d)(window.jsVersion)&&window.jsVersion["platform.js"],insightClientVersion:Object(L.d)(window.jsVersion)&&window.jsVersion["insight-client.js"]}),a,c),l={};for(u in s)if(Object.prototype.hasOwnProperty.call(s,u)){var f=s[u];if("object"===ie(f))try{f=JSON.stringify(f)}catch(e){f=e.message}"function"==typeof f&&(f=f.name),l[u]=f}return l}function ce(){return[[],[],[]]}var s=ce(),ue=20,se=function(){for(var e,t,r=s,n=(s=ce(),[]);e=r.pop();)for(;t=e.pop();)n.push(t);c(n)},l=[],le=(new Date).getTime(),p=function(){le=(new Date).getTime();var e=l.splice(0,20);c(e)},fe=window.setInterval(function(){var e;l.length&&(e=(new Date).getTime(),(10<=l.length||15e3<e-le)&&p())},5e3);function pe(e,t){t=JSON.stringify({type:"insight-event",payload:t});e.postMessage(t,function(e){var t;try{t=e.origin}catch(e){}return t||"https://".concat(window.QCCONSOLE_HOST||"console.cloud.tencent.com")}(e))}function d(e,t,r){try{var n,o;t in e&&(n=e[t],Object(L.b)(n)&&(n.__insight_fillby__?e[t]=n.__insight_fillby__:(((o=r(n)).__insight_fillto__=n).__insight_fillby__=o,e[t]=o)))}catch(e){}}var de,ye=["code","service","action","cost"];function he(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function ve(n){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?he(Object(o),!0).forEach(function(e){var t,r;t=n,r=o[e=e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):he(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}function me(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],0<=t.indexOf(r)||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols)for(var o=Object.getOwnPropertySymbols(e),i=0;i<o.length;i++)r=o[i],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}function ge(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}}(e,t)||function(e,t){var r;if(e)return"string"==typeof e?be(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?be(e,t):void 0}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function be(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}try{de=localStorage.getItem("debugInsight")}catch(e){}function we(e,t){return function(){try{return e.apply(void 0,arguments)}catch(e){return t.apply(void 0,arguments)}}}var h=new r.EventEmitter,Oe="qcbuy",je="",Se="on",Ee=n(),_e=+new Date,m=function(){return+new Date},xe=!1,Le=null,g=function(e){return!0},ke=function(e){var t;Object(L.d)(e)&&(Object(L.e)(e.app)&&(Oe=e.app),Object(L.e)(e.lid)&&(Ee=e.lid),Object(L.c)(e.born)&&(_e=e.born),Object(L.b)(e.time)&&(m=we(e.time,m)),Object(L.a)(e.iframeMode)&&(xe=e.iframeMode),Object(L.d)(e.iframeTarget)&&(Le=e.iframeTarget),Object(L.b)(e.shouldReportEvent)&&(g=we(e.shouldReportEvent,g)),Object(L.e)(e.reportUrl)&&(t=e.reportUrl,0),Object(L.e)(e.pageComponent)&&(je=e.pageComponent))},Pe=function(){Se="off",p(),clearInterval(fe)};var Te,b=function(e,t,r,n){if("on"===Se){var o,t=ae(Oe,Ee,_e,m,je,e,t,r);if(h.emit("eventCreate",t),de&&(r=["INFO","WARN","ERROR"][t.level],o=["skyblue","yellow","#fb7a7a"][t.level],console.groupCollapsed("%c%s%c %c%s %s %c%s %c(+%dms)","padding: 1px 4px; border-radius: 2px; background: ".concat(o),r,"background: none","font-weight: bold",t.event,"(blame ".concat(t.productId,", ").concat(t.productBlame,")"),"font-weight: normal; color: purple; background: #f0f0f0; display: inline-block; padding: 2px; border-raidus: 1px;",t.message,"font-weight: normal; color: #999",t.at-t.born),console.log(t),console.groupEnd(),t.debug=!0),g(t)){if("stat"===e)o=t,n?(l.unshift(o),p()):l.push(o);else{r=t;if(n)c(r);else{var i=s[r.level]||s[0];for(i.push(r);i.length>ue;)i.shift();r.level>=y.Warn&&se()}}e=t;if(e&&e.event&&"hottag"===e.event)try{window&&window.recordBehavior&&"function"==typeof window.recordBehavior.reportEvent&&window.recordBehavior.reportEvent(e.hottag||"insight-event",{lid:e.lid,lifeRegion:e.lifeRegion,ext1:e.event})}catch(e){console.log("postRBMessage failed",e)}}}},Ae=(Te=b,window.addEventListener("message",Object(v.a)(function(e){var t,r,n;try{t=JSON.parse(e.data)}catch(e){return}Object(L.d)(t)&&"insight-event"===t.type&&(t=(e=t.payload).name,r=e.meta,n=e.data,e=e.urgent,t&&Te(t,r,n,e))})),function(e,t){if(!t||void 0===t.level)throw new Error("Insight: 请提供注册事件的公共属性,且至少包含 level 字段");if(-1===[y.Info,y.Warn,y.Error].indexOf(t.level))throw new Error("Insight: level 取值不正确,请使用 Insight.EventLevel 中的枚举值");return{name:r=e,meta:n=t,push:function(e,t){xe?pe(Le||parent,{name:r,meta:n,data:e,urgent:t}):b(r,n,e,t)}};var r,n}),w=function(e,t,r){var n,o;if(e&&-1!==e.indexOf(":"))return o={ns:n=(e=ge(e.split(":"),2))[0],stat:e=e[1],level:y.Info},t=Object.assign({message:"统计 ".concat(n,":").concat(e)},t),b("stat",o,t,r);throw new Error("Insight: 请提供自定义事件的名称,格式如:ns:stat")},Ie=function(e){var t=e.code,r=e.service,r=void 0===r?"":r,n=e.action,o=e.cost,e=me(e,ye);void 0===t||!n||!Object(L.c)(o)||o<=0||w("console:cgi",ve({code:isNaN(parseInt(t,10))?-99999:parseInt(t,10),errorCode:String(t),service:r,action:n,cost:o},e),!1)},Ce=h.on.bind(h),Ne=h.removeListener.bind(h),De=h.emit.bind(h);function Me(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function Re(n){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Me(Object(o),!0).forEach(function(e){var t,r;t=n,r=o[e=e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):Me(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}i={install:function(e){var t=e.register,r=e.captureTrace,e=e.EventLevel;if("stackTraceLimit"in Error)try{Error.stackTraceLimit=20}catch(e){}var n=t("js-error",{level:e.Error});return window.addEventListener("error",function(e){n.push(Re({source:"window"},r(e&&e.error||e,"捕获到 window.onerror")))}),{jsErrorBus:n}}};function qe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}t={install:function(e){function t(o){var e=function(){function e(r){var n=this;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.promise=new o(function(e,t){return r(e,function(e){try{n.promise.trace=c("PromiseRejection (async)")}catch(e){}t(e)})}),this.promise.createTrace=c("Promise (async)")}var t,r,n;return t=e,n=[{key:"reject",value:function(e){e=o.reject(e);try{e.trace=c("Promise rejection (async)")}catch(e){}return e}}],(r=[{key:"then",value:function(){var e;return this.promise?(e=this.promise).then.apply(e,arguments):(console.warn("Global Promise has be changed"),this)}},{key:"catch",value:function(){var e;return this.promise?(e=this.promise).catch.apply(e,arguments):(console.warn("Global Promise has be changed"),this)}},{key:"finally",value:function(){var e;return this.promise?(e=this.promise).finally.apply(e,arguments):(console.warn("Global Promise has be changed"),this)}}])&&qe(t.prototype,r),n&&qe(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();e.__OriginPromise__=o;for(var t=0,r=["resolve","reject","all","allSettled","any","race","try","catch","finally"];t<r.length;t++){var n=r[t];!e[n]&&Object(L.b)(o[n])&&(e[n]=o[n].bind(o))}return e}function r(e){var t,r,n;n=l(t=e),t=(t=t&&t.promise)&&t.trace,r=!0,n!=o&&(r=!1,o=n),t&&t!==i&&(r=!1,i=t),clearTimeout(a),a=setTimeout(Object(v.a)(function(){o=i=void 0}),10),r||(t=(n=e)&&n.reason||n,r=function(e){e=e&&e.promise;return e&&e.trace?P(e.trace,e.createTrace):null}(e),n=c(t,"UnhandledRejection"),u.push(P(n,r)))}var o,i,a,n=e.register,c=e.captureTrace,u=n("promise-error",{level:e.EventLevel.Error}),s=(d(window,"Promise",t),window.Promise),l=(Object.defineProperty(window,"Promise",{configurable:!0,enumerable:!0,set:function(e){s=t(e)},get:function(){return s}}),function(e){return e&&e.reason||e});return Object.defineProperties?Object.defineProperties(window,{onunhandledrejection:{configurable:!1,enumerable:!0,get:function(){return r},set:function(){console.warn("注意:我们发现你的业务使用了 window.onunhandledrejection 来捕获 Promise 错误,目前控制台已统一收集这些错误。如你确实需要使用,请与平台同事联系,谢谢合作!"),console.trace("调用位置:")}}}):window.onunhandledrejection=r,{promiseErrorBus:u}}};r={install:function(e){var t=e.register,r=e.EventLevel,n=t("cookie",{level:r.Info}),o=!1;e.on("eventCreate",function(a){!o&&a.level>r.Info&&(o=!0,n.push({message:"Cookie 上报",cookie:document.cookie})),"string"==typeof a.cookie&&(a.cookie=a.cookie.replace(/(skey|p_skey|cpskey)=(.+?)(;|$)/g,function(e,t,r){var n,o,i;return(r=(n=r)&&"string"==typeof n&&(o=n.length)?(i=Math.ceil(o/6),n.slice(0,i)+"******"+n.slice(o-i)):n)?(a[t]=r,"".concat(t,"=").concat(r,";")):e}))})}};function Be(e){return(Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n={install:function(e){var t=e.register,r=e.watch,n=t("error-log",{level:e.EventLevel.Warn});"object"===("undefined"==typeof console?"undefined":Be(console))&&d(console,"error",function(e){return r(e,n,function(){for(var e,t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return 1===n.length?"string"==typeof(e=n[0])?{message:e}:(t={message:e&&e.message||k(e)},e&&e.stack&&(t.stack=e.stack),t):{message:n.join(", ")||"console.error 输出"}})})}};function O(e){for(var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:80,n=e,o=[],i=0,a=0,c=" > ".length;n&&i++<10&&!("html"===(t=function(e){var t,r,n,o,i,a=[];if(!e||!e.tagName)return"";a.push(e.tagName.toLowerCase()),e.id&&a.push("#".concat(e.id));if((t=e.className)&&"string"==typeof t)for(r=t.split(/\s+/),i=0;i<r.length;i++)a.push(".".concat(r[i]));var c=["type","name","title","alt"];for(i=0;i<c.length;i++)n=c[i],(o=e.getAttribute(n))&&a.push("[".concat(n,'="').concat(o,'"]'));return a.join("")}(n))||1<i&&a+o.length*c+t.length>=r);)o.push(t),a+=t.length,n=n.parentNode;return o.reverse().join(" > ")}var Fe={install:function(e){function o(e,t){if(i=void 0,a!==e){var r,n;a=e;try{r=O(e.target),n=O(e.target,300)}catch(e){n=r="<unknown>"}switch(e.type){case"click":c.push({message:"点击 ".concat(r),fullTarget:n,stack:t});break;case"keydown":u.push({message:"输入 ".concat(r),fullTarget:n,stack:t})}}}var i=0,a=null,c=e.register("click",{level:e.EventLevel.Info}),u=e.register("keypress",{level:e.EventLevel.Info});return document.addEventListener("click",e.reportClick,!1),document.addEventListener("keydown",e.reportKeypress,!1),{reportClick:Object(v.a)(o),reportKeypress:Object(v.a)(function(e,t){var r;try{r=e.target}catch(e){return}var n=r&&r.tagName;n&&("INPUT"===n||"TEXTAREA"===n||r.isContentEditable)&&(i||o(e,t),i&&clearTimeout(i),i=setTimeout(function(){i=void 0},3e3))})}}};function _(e,t){console.log("%c%s","background-color: #fdf0f0; color: red;","".concat(e,"\n").concat("---------------------------------------------------------","\n").concat(t.stack))}function Ue(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function He(n){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Ue(Object(o),!0).forEach(function(e){var t,r;t=n,r=o[e=e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):Ue(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}var $e={install:function(u){for(var s=u.captureTrace,l=u.jsErrorBus,e=function(e){var t=window,t=t[e]&&t[e].prototype;t&&t.hasOwnProperty&&Object.prototype.hasOwnProperty.call(t,"addEventListener")&&(d(t,"addEventListener",function(c){return function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=t[0],n=t[1];if(n){var i=s("".concat(o," (event)")),a={before:function(e){if(e){try{var t,r=e.type,n=O(t=e.target);i.message="".concat(o," (").concat(n,")")}catch(e){return}n=function(e){return t instanceof Node&&r===e};n("click")&&Object(L.b)(u.reportClick)?u.reportClick(e,i.stack):n("keydown")&&Object(L.b)(u.reportKeypress)?u.reportKeypress(e,i.stack):t instanceof XMLHttpRequest&&t.__insight_follow__&&(i=P(i,t.__insight_follow__.sendTrace))}},capture:function(e){e=P(e,i);l.push(He({source:"".concat(o,"-event")},e)),_("事件处理器 <".concat(o,"> 发生异常:"),e)}};try{n.handleEvent&&(n.handleEvent=f(n.handleEvent,a))}catch(e){}t[1]=f(n,a)}return c.call.apply(c,[this].concat(t))}}),d(t,"removeEventListener",function(o){return function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t[0];var n=t[1];"function"==typeof n&&(t[1]=n.__insight_careby__||n);try{return o.call.apply(o,[this].concat(t))}catch(e){}}}))},t=0,r=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];t<r.length;t++)e(r[t])}},Ge={install:function(e){var t=e.register,r=e.EventLevel,n=e.shutdown,o=t("unload",{level:r.Info});window.addEventListener("unload",function(){o.push({message:"用户离开"},!0),n()})}},T={speed:function(e,t){return T.bytes(e,t,["byte/s","K/s","M/s","G/s"])},bytes:function(e,t,r){for(var n=(r=r||["byte","K","M","G","T","P"]).shift();1024<e&&r.length;)e/=1024,n=r.shift();if("number"==typeof e)return e.toFixed("number"==typeof t?t:1)+n}},ze={install:function(e){var t,r,i,n,o,a,c,u;Object(L.d)(window.seajs)&&(t=e.register,r=e.EventLevel,i=t("resource-error",{level:r.Error}),n=t("resource-retry",{level:r.Info}),o=t("resource-slow",{level:r.Warn}),a=!1,c=function(e){return(e||"").split(/\//g).pop().split("?").shift()},u=function(e){var t=[];return 0<e.retry&&t.push("retry: ".concat(e.retry)),isNaN(+e.status)||t.push("status: ".concat(e.status)),0<e.rtt&&t.push("rtt: ".concat(e.rtt,"ms")),0<e.speed&&t.push("speed: ".concat(T.speed(e.speed))),0<e.bytes&&t.push("size: ".concat(T.bytes(e.bytes))),e.server&&t.push("server: ".concat(e.server)),0<t.length?" (".concat(t.join("; "),")"):""},seajs.on("resource-error",function(e){var t=e.url,r=c(t),n=e.type;switch(n){case"js":case"css":var o=n.toUpperCase(),o="".concat(o," 加载失败:").concat(r).concat(u(e));i.push(Object.assign(e,{message:o})),"js"===n&&(a=!0)}}),seajs.on("resource-load",function(e){var t;0<e.retry&&(t=e.url,t=c(t),t="重试成功:".concat(t).concat(u(e)),n.push(Object.assign(e,{message:t}),!0))}),seajs.on("resource-slow",function(e){var t="".concat(e.type," 资源加载超过 ").concat(e.second," 秒,地址:").concat(e.url);o.push(Object.assign(e,{message:t}))}),e.on("eventCreate",function(e){a&&(e.asle=!0)}))}},We={install:function(e){var t=!1;e.on("eventCreate",function(e){"logout"!==e.event||t?t&&Object.assign(e,{sessionLost:!0}):t=!0})}};function Xe(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function Ve(n){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Xe(Object(o),!0).forEach(function(e){var t,r;t=n,r=o[e=e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):Xe(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}var Ke={install:function(e){function t(a){var e=window;"function"==typeof e[a]&&d(e,a,function(i){return function(e){for(var t=u("".concat(a," (async)")),e=c(e,{capture:function(e){e=P(e,t);s.push(Ve({source:a},e)),_("<".concat(a,"> 异常:"),e)},after:function(){"setInterval"!==a&&(t=null)}}),r=arguments.length,n=new Array(1<r?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return i.call.apply(i,[this,e].concat(n))}})}var c=e.care,u=e.captureTrace,s=e.jsErrorBus;t("setTimeout"),t("setInterval"),t("requestAnimationFrame")}};function Je(e,t){return tt(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}}(e,t)||Ze(e,t)||Ye()}function Qe(e){return tt(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ze(e)||Ye()}function Ye(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ze(e,t){var r;if(e)return"string"==typeof e?et(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?et(e,t):void 0}function et(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function tt(e){if(Array.isArray(e))return e}function A(e){var e=Qe((e=(e=/^https?:\/\//.test(e)||/^\//.test(e)?e:"/"+e).split("//").pop()).split("/")),t=e[0],e=Je(e.slice(1).join("/").split("?"),2),r="/"+(r=e[0]),e=(e=e[1])&&e.split("&").filter(function(e){return!/=[\d\.]+$/.test(e)}).join("&");return{hostname:t||location.hostname,cgi:e?[r,e].join("?"):r}}function j(e,t){var r,n,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return n=!(r=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return r=e.done,e},e:function(e){n=!0,o=e},f:function(){try{r||null==a.return||a.return()}finally{if(n)throw o}}};if(Array.isArray(e)||(a=function(e,t){var r;if(e)return"string"==typeof e?rt(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?rt(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function nt(e,t,r){var n,o=ot(t),i=j(o);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a in e)return[e[a],a]}}catch(e){i.e(e)}finally{i.f()}var c,u=j(r);try{for(u.s();!(c=u.n()).done;){var s,l=ot(c.value),f=j(o);try{for(f.s();!(s=f.n()).done;){var p,d=s.value,y=j(l);try{for(y.s();!(p=y.n()).done;){var h=p.value+d;if(h in e)return[e[h],h]}}catch(e){y.e(e)}finally{y.f()}}}catch(e){f.e(e)}finally{f.f()}}}catch(e){u.e(e)}finally{u.f()}return[null,null]}function ot(e){return[e,it(e),"_"+e,"_"+it(e)].reduce(function(e,t){return-1<e.indexOf(t)?e:e.concat([t])},[])}function it(e){return e.substr(0,1).toUpperCase()+e.substr(1)}function at(e,t){var r,n,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return n=!(r=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return r=e.done,e},e:function(e){n=!0,o=e},f:function(){try{r||null==a.return||a.return()}finally{if(n)throw o}}};if(Array.isArray(e)||(a=lt(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ct(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function ut(n){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ct(Object(o),!0).forEach(function(e){var t,r;t=n,r=o[e=e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):ct(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}function st(e){return function(e){if(Array.isArray(e))return ft(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||lt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lt(e,t){var r;if(e)return"string"==typeof e?ft(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ft(e,t):void 0}function ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function pt(e){return(pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dt(e,t,r){var n,o=Ae("cgi-error",{level:y.Warn});try{n=JSON.parse(e)}catch(e){n={}}var i,a,c=at(mt);try{for(c.s();!(i=c.n()).done;){var u=i.value;if((!t.service||!t.action)&&Object(L.b)(u.resolveAction))try{u.resolveAction(n,r,t)}catch(e){}}}catch(e){c.e(e)}finally{c.f()}if(t.service=t.service||"unknown",t.action=t.action||"unknown",Object.prototype.hasOwnProperty.call(t,"code"))a={code:t.code,message:t.message};else if(n){var s,l=at(mt);try{for(l.s();!(s=l.n()).done;){u=s.value;if(Object(L.b)(u.resolveCode))try{var f=u.resolveCode(n,r,t);Object(L.d)(f)&&Object(L.e)(f.message)&&(Object(L.c)(f.code)||Object(L.e)(f.code))&&(a=f)}catch(e){}}}catch(e){l.e(e)}finally{l.f()}}var p=(e=function(e){if(!e)return bt;var t=e.code,e=e.message,r=0===t?"success":String(t);"success"===r.toLowerCase()&&(t=0);try{t=parseInt(t,10),isNaN(t)&&(t=-1)}catch(e){t=-1}return e=String(e),{code:t,message:e,errorCode:r}}(a)).code,d=e.message,e=e.errorCode;p?(d=(p={code:p,message:d,errorCode:e}).code,e=p.errorCode,p=p.message,o.push(ut({code:d,errorCode:e,message:k({code:d,message:p,cgi:t.cgi},"CGI 错误 ")},t))):(o=t.cgi,e=t.cost,delete t.stack,w("console:cgi",ut({code:0,errorCode:"success",message:"CGI <".concat(o,"> #Success (").concat(e,"ms)")},t),!1))}var yt,ht,S,vt,mt=[{resolveCode:function(e,t,r){var n=nt(e,"code",["err","error","ret","return"])[0],e=nt(e,"message",["err","error","ret","return"])[0]||nt(e,"msg",["err","error","ret","return"])[0];if(null!==n)return{code:n,message:null!==e?e:"CGI 错误 #".concat(n)}}}],E=[],gt={install:function(e){return{provideCgiTraceUrl:wt.provide,provideCgiResolve:function(e){e&&"object"===pt(e)&&(e.resolveCode||e.resolveAction)&&mt.unshift(e)},exemptHostname:function(e){Array.isArray(e)?E.push.apply(E,st(e)):"string"==typeof e&&E.push(e)}}}},bt={code:30624700,message:"无法识别接口错误码",errorCode:"Insight.CannotFindErrorCode"},wt=(yt="insight-cgi-trace-d93xK9m42pLooMc3945kxJdsIuMMd4551Scd-",ht=new RegExp("(&|\\?)".concat(yt,"(\\d+)($|&)")),S={},vt=0,{provide:function(t,e){if("string"!=typeof t)return t;try{var r=vt+=1,n=A(t).cgi,o=(S[r]={trace:u("CGI Call: ".concat(n)),options:e},-1<t.indexOf("?")?"&":"?");return"".concat(t).concat(o).concat(yt).concat(r)}catch(e){return t}},extract:function(t){try{var e,r,n,o,i=ht.exec(t);return i&&(t=t.replace(ht,function(e,t,r,n){switch(t+(n||"$")){case"?$":return"";case"?&":return"?";case"&&":return"&";case"&$":return""}}),n=i[2],(o=S[n])&&(e=o.trace,r=o.options,delete S[n])),{url:t,cgiTrace:e,cgiTraceOptions:r}}catch(e){return{url:t}}}});function Ot(e){for(var t=0;t<E.length;t++){var r=E[t];if(r===e)return 1;if(r instanceof RegExp&&r.test(e))return 1}}function jt(e){return(jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function St(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function x(n){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?St(Object(o),!0).forEach(function(e){var t,r;t=n,r=o[e=e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):St(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}var Et={install:function(j){var e,u,s,t,l,S,E,y,a,h;if("XMLHttpRequest"in window)return e=j.register,u=j.care,s=j.captureTrace,t=j.EventLevel,l=j.jsErrorBus,S=e("xhr-error",{level:t.Error}),E=e("xhr-slow",{level:t.Warn}),y=null,h=function(e,t){var r=t.method,n=t.url,o=t.sendTime,i=t.receiveTime,a=t.receiveBytes,c=t.loadTime,u=t.status,s=t.onLine,l=t.responseHeaders,f=t.response,p=t.cgiTrace,d=t.cgiTraceOptions,y=t.sendTrace,h=t.path,v=t.href,m=A(n),g=m.cgi,m=m.hostname;if(!Ot(m)){var b=+i-+o||-1,o=+c-+o||-1,c=Math.max(+c-+i,1),i=0<a?1e3*a/c:0,c={cgi:g,status:u,rtt:b,cost:o,speed:T.speed(i)},r={method:r,url:n,cgi:g,hostname:m,rtt:b,cost:o,bytes:a,speed:i,status:u,responseHeaders:l,stack:P(y,p).stack,cookie:document.cookie};if(n.includes("cgi/capi"))try{var w,O=null==(w=JSON.parse(f))?void 0:w.reqId;r.capiReqId=O}catch(e){}g=-1!==(null==l?void 0:l.indexOf("x-server-cost"))&&e&&e.getResponseHeader("x-server-cost")||null;if(g&&(r.serverCost=g),d&&Object(L.b)(d.extendReport))try{Object.assign(r,d.extendReport(e,t))}catch(e){}try{j.emit("xhrReport",r,t,e)}catch(e){}!0!==r.abandon&&(u<200||300<=u?S.push(x(x({message:k(c,"XHR 异常 ")},r),{},{onLine:s})):("string"==typeof f&&dt(f,r,t),5e3<o&&(m={path:h,href:v},E.push(x(x({message:k(c,"XHR 缓慢 ")},r),m||{})))))}},(a=function(e){d(e,"open",function(d){return function(e,t){var r,n,o,i,t=wt.extract(t),a=t.url,c=t.cgiTrace,t=t.cgiTraceOptions;if(!y){r=this,n={method:e,url:a,cgiTrace:c,cgiTraceOptions:t,onLine:!1!==window.navigator.onLine},r.__insight_internal__||(r.__insight_follow__=n,r.addEventListener("abort",f),r.addEventListener("progress",p),o=function(){return[location.pathname,location.hash].join("").replace(/^\/#/,"")},i=function(){return location.href},r.addEventListener("readystatechange",Object(v.a)(function e(){try{switch(r.readyState){case 0:break;case 1:n.path=o(),n.href=i(),j.emit("xhrOpen",n);break;case 2:n.receiveTime=new Date,n.responseHeaders=r.getAllResponseHeaders();break;case 3:break;case 4:n.loadTime||(n.loadTime=new Date,n.status=+r.status,n.response=r.response,setTimeout(function(){try{n.aborted||h(r,n)}catch(e){}finally{r.__insight_follow__=void 0,r.removeEventListener("abort",f),r.removeEventListener("readystatechange",e),r.removeEventListener("progress",p)}}))}}catch(e){}})));for(var u=arguments.length,s=new Array(2<u?u-2:0),l=2;l<u;l++)s[l-2]=arguments[l];return d.apply(this,[e,a].concat(s))}function f(){n.aborted=!0}function p(e){e&&(0<e.total||0<e.loaded)&&(n.receiveBytes=Math.max(e.total,e.loaded))}console.warn(y,e,a)}}),d(e,"setRequestHeader",function(n){return function(e,t){var r;if(!y)return(r=this.__insight_follow__)&&(r.requestHeaders=r.requestHeaders||{},r.requestHeaders[e]=t),n.call(this,e,t)}}),d(e,"send",function(c){return function(){if(!y){for(var e=this,n=e.__insight_follow__,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];if(n){n.sendTime=new Date,n.sendTrace=s("XHR Send (async)");for(var i=0,a=["onload","onabort","onerror","onprogress","onreadystatechange"];i<a.length;i++)!function(){var r=a[i];d(e,r,function(e){return u(e,{capture:function(e){var t=n.cgiTrace;e=P(e,n.sendTrace,t),l.push(x({source:"xhr-".concat(r)},e)),_("XHR <".concat(r,"> 异常:"),e)}})})}()}return c.apply(this,r)}}})})(XMLHttpRequest.prototype),{spyForignFrameXHRByJqueryAjax:function(){var i;window.$&&Object(L.b)($.ajax)&&(i=XMLHttpRequest,d($,"ajax",function(o){return function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n="object"===jt(t[0])?t[0]:t[1];return n&&Object(L.b)(n.xhr)&&d(n,"xhr",function(o){return function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=o.call(this,t);return!n||n instanceof i||a(n),n}}),o.apply(this,t)}}))},lockXhr:function(e){return y=e}}}};function _t(e){return(_t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */xt=function(){return a};var a={},e=Object.prototype,u=e.hasOwnProperty,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",r=t.asyncIterator||"@@asyncIterator",o=t.toStringTag||"@@toStringTag";function i(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{i({},"")}catch(e){i=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var o,i,a,c,t=t&&t.prototype instanceof f?t:f,t=Object.create(t.prototype),n=new w(n||[]);return t._invoke=(o=e,i=r,a=n,c="suspendedStart",function(e,t){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===e)throw t;return j()}for(a.method=e,a.arg=t;;){var r=a.delegate;if(r){r=function e(t,r){var n=t.iterator[r.method];if(void 0===n){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,e(t,r),"throw"===r.method))return l;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}n=s(n,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,l;n=n.arg;return n?n.done?(r[t.resultName]=n.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,l):n:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,l)}(r,a);if(r){if(r===l)continue;return r}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===c)throw c="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);c="executing";r=s(o,i,a);if("normal"===r.type){if(c=a.done?"completed":"suspendedYield",r.arg===l)continue;return{value:r.arg,done:a.done}}"throw"===r.type&&(c="completed",a.method="throw",a.arg=r.arg)}}),t}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}a.wrap=c;var l={};function f(){}function p(){}function d(){}var t={},y=(i(t,n,function(){return this}),Object.getPrototypeOf),y=y&&y(y(O([]))),h=(y&&y!==e&&u.call(y,n)&&(t=y),d.prototype=f.prototype=Object.create(t));function v(e){["next","throw","return"].forEach(function(t){i(e,t,function(e){return this._invoke(t,e)})})}function m(a,c){var t;this._invoke=function(r,n){function e(){return new c(function(e,t){!function t(e,r,n,o){var i,e=s(a[e],a,r);if("throw"!==e.type)return(r=(i=e.arg).value)&&"object"==_t(r)&&u.call(r,"__await")?c.resolve(r.__await).then(function(e){t("next",e,n,o)},function(e){t("throw",e,n,o)}):c.resolve(r).then(function(e){i.value=e,n(i)},function(e){return t("throw",e,n,o)});o(e.arg)}(r,n,e,t)})}return t=t?t.then(e,e):e()}}function g(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function b(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function w(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(g,this),this.reset(!0)}function O(t){if(t){var r,e=t[n];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return r=-1,(e=function e(){for(;++r<t.length;)if(u.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e}).next=e}return{next:j}}function j(){return{value:void 0,done:!0}}return i(h,"constructor",p.prototype=d),i(d,"constructor",p),p.displayName=i(d,o,"GeneratorFunction"),a.isGeneratorFunction=function(e){e="function"==typeof e&&e.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},a.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,i(e,o,"GeneratorFunction")),e.prototype=Object.create(h),e},a.awrap=function(e){return{__await:e}},v(m.prototype),i(m.prototype,r,function(){return this}),a.AsyncIterator=m,a.async=function(e,t,r,n,o){void 0===o&&(o=Promise);var i=new m(c(e,t,r,n),o);return a.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},v(h),i(h,o,"Generator"),i(h,n,function(){return this}),i(h,"toString",function(){return"[object Generator]"}),a.keys=function(r){var e,n=[];for(e in r)n.push(e);return n.reverse(),function e(){for(;n.length;){var t=n.pop();if(t in r)return e.value=t,e.done=!1,e}return e.done=!0,e}},a.values=O,w.prototype={constructor:w,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(b),!e)for(var t in this)"t"===t.charAt(0)&&u.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function e(e,t){return i.type="throw",i.arg=r,n.next=e,t&&(n.method="next",n.arg=void 0),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var o=this.tryEntries[t],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=u.call(o,"catchLoc"),c=u.call(o,"finallyLoc");if(a&&c){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&u.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}var i=(o=o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc?null:o)?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),b(r),l}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r,n,o=this.tryEntries[t];if(o.tryLoc===e)return"throw"===(r=o.completion).type&&(n=r.arg,b(o)),n}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},a}function Lt(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function I(n){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Lt(Object(o),!0).forEach(function(e){var t,r;t=n,r=o[e=e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):Lt(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}function kt(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}var Pt={install:function(u){var s;"fetch"in window&&(s=u.captureTrace,d(window,"fetch",function(c){return function(e,n){var t=null!=(t=null==e?void 0:e.url)?t:e,t=wt.extract(t),r=t.url,o=t.cgiTrace,t=t.cgiTraceOptions,i={url:r,method:((null==n?void 0:n.method)||"GET").toUpperCase(),path:[location.pathname,location.hash].join("").replace(/^\/#/,""),href:location.href,cgiTrace:o,cgiTraceOptions:t,sendTrace:s("Fetch Send (async)"),onLine:!!window.navigator.onLine},a=e,a=e instanceof Request?new Request(r,e):r;return new Promise(function(t,r){u.emit("xhrOpen",i),c(a,n).then(function(e){t(e);try{i.status=e.status,i.url=e.url,i.responseHeaders=e.headers?Object.fromEntries(e.headers):{},i.response=e.clone()}catch(e){}return e}).catch(function(e){i.failed=!0,r(e)}).finally(function(){setTimeout(function(){try{var e,t;!i.url||(t=(e=performance.getEntriesByName(i.url))[e.length-1])&&Object.assign(i,At(t)),Tt(u,i)}catch(e){}})})})}}))}},Tt=function(){c=xt().mark(function e(t,r){var n,o,i,a,c,u,s,l,f,p,d,y,h,v,m,g,b,w,O,j,S,E,_,x;return xt().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.register,a=t.EventLevel,n=i("xhr-error",{level:a.Error}),o=i("xhr-slow",{level:a.Warn}),i=r.url,a=r.rtt,a=void 0===a?-1:a,c=r.cost,c=void 0===c?-1:c,u=r.status,u=void 0===u?0:u,s=r.method,l=r.responseHeaders,f=r.speed,f=void 0===f?0:f,p=r.bodySize,p=void 0===p?0:p,d=r.onLine,y=r.sendTrace,h=r.failed,v=r.path,m=r.href,g=r.cgiTrace,b=r.cgiTraceOptions,O=A(i),w=O.cgi,O=O.hostname,Ot(O))return e.abrupt("return");e.next=7;break;case 7:if(j={cgi:w,status:u,rtt:a,cost:c,speed:T.speed(f)},S={method:s,url:i,cgi:w,hostname:O,rtt:a,cost:c,bytes:p,speed:f,status:u,responseHeaders:l,stack:P(y,g).stack,cookie:document.cookie,source:"fetch"},b&&Object(L.b)(b.extendReport))try{Object.assign(S,b.extendReport(null,r))}catch(e){}try{t.emit("xhrReport",S,r,null)}catch(e){}if(E=function(){n.push(I(I({message:k(j,"Fetch 异常 ")},S),{},{onLine:d}))},_=function(e){o.push(I(I({message:k(j,"Fetch 缓慢 ")},S),e||{}))},h)return E(),e.abrupt("return");e.next=16;break;case 16:return l["x-server-cost"]&&(S.serverCost=l["x-server-cost"]),e.next=19,r.response;case 19:return x=e.sent,e.next=22,x.text();case 22:x=e.sent,r.response=x,u<200||300<=u?E():("string"==typeof x&&dt(x,S,r),5e3<r.cost&&_({path:v,href:m}));case 25:case"end":return e.stop()}},e)});var c,r=function(){var e=this,a=arguments;return new Promise(function(t,r){var n=c.apply(e,a);function o(e){kt(n,t,r,o,i,"next",e)}function i(e){kt(n,t,r,o,i,"throw",e)}o(void 0)})};return function(e,t){return r.apply(this,arguments)}}(),At=function(e){var t=0===e.responseStart?0:e.responseStart-e.startTime,r=e.duration,n=0===e.responseStart?0:e.responseEnd-e.responseStart,o=e.encodedBodySize,e=0<e.encodedBodySize?1e3*e.encodedBodySize/n:0;return{rtt:Math.floor(t)||-1,cost:Math.floor(r)||-1,bodySize:Math.floor(o),speed:Math.floor(e)}};function C(e){return function(e){if(Array.isArray(e))return It(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){var r;if(e)return"string"==typeof e?It(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?It(e,t):void 0}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function It(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function N(e){return"number"!=typeof e?e:Math.floor(1e3*e)}function Ct(e){if("[object Array]"===Object.prototype.toString.call(e))return Math.floor(e.reduce(function(e,t){return e+t},0)/e.length)}function Nt(e){var r,n;return e&&e.length?(r=new Map,n=[],e.forEach(function(e){var t=e.name.split("?").shift().split(".").pop();"link"!==e.initiatorType&&"script"!==e.initiatorType||"js"!==t&&"css"!=t||(t=e.name.replace(/https?:\/\//,"").replace(/\/.*$/,""),e={name:e.name,duration:N(e.duration),nextHopProtocol:e.nextHopProtocol,decodedBodySize:e.decodedBodySize,encodedBodySize:e.encodedBodySize,transferSize:e.transferSize,lookupDuration:N(e.domainLookupEnd)-N(e.domainLookupStart),connectDuration:N(e.connectEnd)-N(e.connectStart),requestDuration:N(e.responseEnd)-N(e.requestStart)},r.get(t)?r.set(t,[].concat(C(r.get(t)),[e])):r.set(t,[e]))}),r.forEach(function(e,t){var r;n.push({perfResourceCount:e.length,perfResourceDomain:t,perfMinDuration:Math.min.apply(Math,C(e.map(function(e){return e.duration}))),perfMaxDuration:Math.max.apply(Math,C(e.map(function(e){return e.duration}))),perfAvgDuration:Ct(e.map(function(e){return e.duration})),perfWeightAvgDuration:(t=(t=e).filter(function(e){return 0<e.decodedBodySize}))&&t.length?(r=t.reduce(function(e,t){return e+t.duration/t.decodedBodySize},0),Math.floor(r/t.length)):-1,perfAvgLookupDuration:Ct(e.map(function(e){return e.lookupDuration})),perfMaxLookupDuration:Math.max.apply(Math,C(e.map(function(e){return e.lookupDuration}))),perfMinLookupDuration:Math.min.apply(Math,C(e.map(function(e){return e.lookupDuration}))),perfAvgConnectDuration:Ct(e.map(function(e){return e.connectDuration})),perfMaxConnectDuration:Math.max.apply(Math,C(e.map(function(e){return e.connectDuration}))),perfMinConnectDuration:Math.min.apply(Math,C(e.map(function(e){return e.connectDuration}))),perfHopProtocol:e[0].nextHopProtocol,perfAvgRequestRate:(r=(r=e).filter(function(e){return 0<e.transferSize}))&&r.length?(t=r.reduce(function(e,t){return e+t.transferSize/t.requestDuration},0),Math.floor(t/r.length*1e3*1e3/1024)):-1})}),n):null}function Dt(e,t){var r,n,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return n=!(r=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return r=e.done,e},e:function(e){n=!0,o=e},f:function(){try{r||null==a.return||a.return()}finally{if(n)throw o}}};if(Array.isArray(e)||(a=function(e,t){var r;if(e)return"string"==typeof e?Mt(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mt(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Mt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Rt=[i,t,r,We,n,Fe,$e,Ke,ze,Ge,gt,Et,Pt,{install:function(e){function t(){var e,n,t;performance&&performance.mark&&(t=performance.getEntriesByType("navigation"),e=performance.getEntriesByType("resource"),n=["bootscript-starttime","platform-asset-req-starttime","platform-asset-res-endtime","startup-starttime","startup-endtime","business-asset-req-starttime","business-asset-res-endtime","platform-validate-starttime","platform-validate-endtime","business-render-starttime","business-render-first-paint","business-content-load-end"],t&&t.length&&t.forEach(function(e){t=e,r={},["connectEnd","connectStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domainLookupEnd","domainLookupStart","duration","fetchStart","loadEventEnd","loadEventStart","redirectCount","redirectEnd","redirectStart","requestStart","responseEnd","responseStart","secureConnectionStart","startTime","unloadEventEnd","unloadEventStart","workerStart"].forEach(function(e){r["perf".concat(e.replace(/^[a-z]/,function(e){return e.toLocaleUpperCase()}))]=N(t[e])});var t,r,o=r;n.forEach(function(e){var t=o,r=performance.getEntriesByName(e);if(r=r&&r[0]){var n=e;try{n="perf".concat(e.replace(/(^[a-zA-Z]|-[a-zA-Z])/g,function(e){return e.replace("-","").toUpperCase()}).replace(/time$/,""))}catch(e){}(t||{})[n]=N(r.startTime)}}),[["perfPlatformAssetReqStart","perfPlatformAssetResEnd"],["perfStartupStart","perfStartupEnd"],["perfBusinessAssetReqStart","perfBusinessAssetResEnd"],["perfPlatformValidateStart","perfPlatformValidateEnd"],["perfBusinessRenderStart","perfBusinessContentLoadEnd"]].forEach(function(e){var t=o,r=e[0],e=e[1];if(t&&r&&e){if(!t[r]||!t[e])return void(delete t[r],delete t[e]);if(t[r]>t[e])delete t[r],delete t[e]}}),Object.keys(o).forEach(function(e){3e8<o[e]&&(o.perfTimeout=1)}),i.push(o)}),e&&e.length&&((t=Nt(e))&&t.forEach(function(e){return a.push(e)})))}function r(){s||c&&u&&(s=!0,t())}var n=e.register,o=e.EventLevel,i=n("perf-web",{level:o.Info}),a=n("perf-cdn",{level:o.Info}),c=!1,u=!1,s=!1;e.on("perf-lifecycle-complete",function(){u=!0,r()}),window.addEventListener("load",function(){setTimeout(function(){c=!0,r()},10)}),setTimeout(function(){u&&c||(c=u=!0,r())},3e5)}}],D=Object.assign({},e);D=Object.assign(D,{install:function(e){ke(e);var t,r=Dt(Rt);try{for(r.s();!(t=r.n()).done;){var n=t.value;D=Object.assign(D,n.install(D,e))}}catch(e){r.e(e)}finally{r.f()}return D}},{htmlTreeAsString:O,currentPath:Q}),window.Insight=D},5:function(e,s){s.defaults={},s.set=function(e,t,r){var r=r||{},n=s.defaults,o=r.expires||n.expires,i=r.domain||n.domain,a=void 0!==r.path?r.path:void 0!==n.path?n.path:"/",c=(void 0!==r.secure?r:n).secure,u=(void 0!==r.httponly?r:n).httponly,r=(void 0!==r.samesite?r:n).samesite,n=o?new Date("number"==typeof o?(new Date).getTime()+864e5*o:o):0;document.cookie=e.replace(/[^+#$&^`|]/g,encodeURIComponent).replace("(","%28").replace(")","%29")+"="+t.replace(/[^+#$&/:<-\[\]-}]/g,encodeURIComponent)+(n&&0<=n.getTime()?";expires="+n.toUTCString():"")+(i?";domain="+i:"")+(a?";path="+a:"")+(c?";secure":"")+(u?";httponly":"")+(r?";samesite="+r:"")},s.get=function(e){for(var t=document.cookie.split(";");t.length;){var r=t.pop(),n=(n=r.indexOf("="))<0?r.length:n;if(decodeURIComponent(r.slice(0,n).replace(/^\s+/,""))===e)return decodeURIComponent(r.slice(n+1))}return null},s.erase=function(e,t){s.set(e,"",{expires:-1,domain:t&&t.domain,path:t&&t.path,secure:0,httponly:0})},s.all=function(){for(var e={},t=document.cookie.split(";");t.length;){var r=t.pop(),n=(n=r.indexOf("="))<0?r.length:n;e[decodeURIComponent(r.slice(0,n).replace(/^\s+/,""))]=decodeURIComponent(r.slice(n+1))}return e}},7:function(e,t,r){"use strict";var n="object"==typeof Reflect?Reflect:null,u=n&&"function"==typeof n.apply?n.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};var o=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},i=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=function(c,u){return new Promise(function(e,t){function r(e){c.removeListener(u,n),t(e)}function n(){"function"==typeof c.removeListener&&c.removeListener("error",r),e([].slice.call(arguments))}var o,i,a;v(c,u,n,{once:!0}),"error"!==u&&(i=r,a={once:!0},"function"==typeof(o=c).on&&v(o,"error",i,a))})},(a.EventEmitter=a).prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var c=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function f(e,t,r,n){var o,i;return s(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener||r),o=e._events),i=o[t]),void 0===i?(i=o[t]=r,++e._eventsCount):("function"==typeof i?i=o[t]=n?[r,i]:[i,r]:n?i.unshift(r):i.push(r),0<(o=l(e))&&i.length>o&&!i.warned&&(i.warned=!0,(n=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",n.emitter=e,n.type=t,n.count=i.length,r=n,console&&console.warn&&console.warn(r))),e}function p(e,t,r){e={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},t=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(e);return t.listener=r,e.wrapFn=t}function d(e,t,r){e=e._events;if(void 0===e)return[];e=e[t];if(void 0===e)return[];if("function"==typeof e)return r?[e.listener||e]:[e];if(r){for(var n=e,o=new Array(n.length),i=0;i<o.length;++i)o[i]=n[i].listener||n[i];return o}return h(e,e.length)}function y(e){var t=this._events;if(void 0!==t){t=t[e];if("function"==typeof t)return 1;if(void 0!==t)return t.length}return 0}function h(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function v(r,n,o,i){if("function"==typeof r.on)i.once?r.once(n,o):r.on(n,o);else{if("function"!=typeof r.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof r);r.addEventListener(n,function e(t){i.once&&r.removeEventListener(n,e),o(t)})}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return l(this)},a.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return!1;if(n){if((i=0<t.length?t[0]:i)instanceof Error)throw i;n=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw n.context=i,n}var i=o[e];if(void 0===i)return!1;if("function"==typeof i)u(i,this,t);else for(var a=i.length,c=h(i,a),r=0;r<a;++r)u(c[r],this,t);return!0},a.prototype.on=a.prototype.addListener=function(e,t){return f(this,e,t,!1)},a.prototype.prependListener=function(e,t){return f(this,e,t,!0)},a.prototype.once=function(e,t){return s(t),this.on(e,p(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,p(this,e,t)),this},a.prototype.off=a.prototype.removeListener=function(e,t){var r,n,o,i,a;if(s(t),void 0!==(n=this._events)&&void 0!==(r=n[e]))if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,i=r.length-1;0<=i;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;if(0===o)r.shift();else{for(var c=r,u=o;u+1<c.length;u++)c[u]=c[u+1];c.pop()}1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},a.prototype.removeAllListeners=function(e){var t,r=this._events;if(void 0!==r)if(void 0===r.removeListener)0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]);else if(0===arguments.length){for(var n,o=Object.keys(r),i=0;i<o.length;++i)"removeListener"!==(n=o[i])&&this.removeAllListeners(n);this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0}else if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;0<=i;i--)this.removeListener(e,t[i]);return this},a.prototype.listeners=function(e){return d(this,e,!0)},a.prototype.rawListeners=function(e){return d(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):y.call(e,t)},a.prototype.listenerCount=y,a.prototype.eventNames=function(){return 0<this._eventsCount?o(this._events):[]}},8:function(t,r,n){var o,i;!function(e){"use strict";i=[n(10)],void 0!==(i="function"==typeof(o=e)?o.apply(r,i):o)&&(t.exports=i)}(function(c){"use strict";var t=/(^|@)\S+:\d+/,r=/^\s*at .*(\S+:\d+|\(native\))/m,n=/^(eval@)?(\[native code])?$/;return{parse:function(e){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(r))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw new Error("Cannot parse given Error object")},extractLocation:function(e){return-1===e.indexOf(":")?[e]:[(e=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,"")))[1],e[2]||void 0,e[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(r)},this).map(function(e){var t=(r=(e=-1<e.indexOf("(eval ")?e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""):e).replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"")).match(/ (\(.+\)$)/),r=t?r.replace(t[0],""):r,n=this.extractLocation(t?t[1]:r),t=t&&r||void 0,r=-1<["eval","<anonymous>"].indexOf(n[0])?void 0:n[0];return new c({functionName:t,fileName:r,lineNumber:n[1],columnNumber:n[2],source:e})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(e){return!e.match(n)},this).map(function(e){var t,r;return-1===(e=-1<e.indexOf(" > eval")?e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1"):e).indexOf("@")&&-1===e.indexOf(":")?new c({functionName:e}):(t=(t=e.match(r=/((.*".+"[^@]*)?[^@]*)(?:@)/))&&t[1]?t[1]:void 0,r=this.extractLocation(e.replace(r,"")),new c({functionName:t,fileName:r[0],lineNumber:r[1],columnNumber:r[2],source:e}))},this)},parseOpera:function(e){return!e.stacktrace||-1<e.message.indexOf("\n")&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],o=2,i=r.length;o<i;o+=2){var a=t.exec(r[o]);a&&n.push(new c({fileName:a[2],lineNumber:a[1],source:r[o]}))}return n},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[],o=0,i=r.length;o<i;o+=2){var a=t.exec(r[o]);a&&n.push(new c({functionName:a[3]||void 0,fileName:a[2],lineNumber:a[1],source:r[o]}))}return n},parseOpera11:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(t)&&!e.match(/^Error created at/)},this).map(function(e){var t,r=e.split("@"),n=this.extractLocation(r.pop()),r=r.shift()||"",o=r.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,r=void 0===(t=r.match(/\(([^)]*)\)/)?r.replace(/^[^(]+\(([^)]*)\)$/,"$1"):t)||"[arguments not available]"===t?void 0:t.split(",");return new c({functionName:o,args:r,fileName:n[0],lineNumber:n[1],columnNumber:n[2],source:e})},this)}}})}}); </script> </head> <body> <!-- 导航栏 HTML --> <div id="qcportal-kit-topnav"><div role="navigation" id="navigationBar" data-type="cn_zh" class="pls-nav pls-nav-air "><div class="pls-nav-mod"><div class="pls-nav-top"><a class="pls-nav-top-logo" href="https://cloud.tencent.com" hotrep="hp.header.hp"><i>腾讯云</i></a><div class="pls-nav-list-wrap"><ul class="pls-nav-list"><li class="pls-nav-item" tabindex="-1"><a role="button" hotrep="hp.header.act" href="https://cloud.tencent.com/act">最新活动<i class="pls-nav-tag hot"><span class="pls-nav-tag-text">HOT</span></i></a></li><li class="pls-nav-item" tabindex="-1"><a role="button" hotrep="hp.header.product" href="https://cloud.tencent.com/product">产品</a></li><li class="pls-nav-item" tabindex="-1"><a role="button" hotrep="hp.header.solution" href="https://cloud.tencent.com/solution">解决方案</a></li><li class="pls-nav-item" tabindex="-1"><a role="button" hotrep="hp.header.price" href="https://buy.cloud.tencent.com/pricing">定价</a></li><li class="pls-nav-item" tabindex="-1"><a role="button" hotrep="hp.header.ecenter" href="https://cloud.tencent.com/act/pro/center">企业中心</a></li><li class="pls-nav-item" tabindex="-1"><a role="button" hotrep="hp.header.market" href="https://market.cloud.tencent.com">云市场</a></li><li class="pls-nav-item" tabindex="-1"><a role="button" hotrep="hp.header.developer" href="https://cloud.tencent.com/landing/developer-ecology">开发者</a></li><li class="pls-nav-item" tabindex="-1"><a role="button" hotrep="hp.header.support" href="https://cloud.tencent.com/act/event/service-support">客户支持</a></li><li class="pls-nav-item" tabindex="-1"><a role="button" hotrep="hp.header.cooperate" href="https://cloud.tencent.com/landing/partner-ecology">合作与生态</a></li><li class="pls-nav-item" tabindex="-1"><a role="button" hotrep="hp.header.learn" href="https://cloud.tencent.com/about">了解腾讯云</a></li></ul></div><div class="pls-nav-top-operation"></div></div><section class="pls-nav-dropdown" style="visibility:hidden;height:0"><div style="height:0;transition:transform ease-in-out .2s, opacity ease-in-out .2s;opacity:0;transform:translate(0, -100%)"><a class="pls-nav-dropdown-close" hotrep="hp.header.close">关闭</a></div></section></div></div> <div id="navigationBarM" class="pls-m-nav"><div class="pls-m-nav-bar"><div class="pls-m-nav-bar-main"><a href="https://cloud.tencent.com/" class="pls-m-nav-logo"></a></div><div class="pls-m-nav-bar-extra"><a class="pls-m-nav-btn" aria-label="搜索"><i class="pls-m-nav-btn-icon search"></i></a><a class="pls-m-nav-btn profile" aria-label="用户"><i class="pls-m-nav-btn-icon user"></i></a><a class="pls-m-nav-btn" aria-label="菜单"><i class="pls-m-nav-btn-icon menu"><span></span><span></span><span></span></i></a></div></div><div class="pls-m-nav-dropdown search" style="display:none"><div class="pls-m-nav-search"><div class="pls-m-nav-search-bar"><input type="text" class="pls-m-nav-search-input" placeholder="请输入搜索的关键词" value=""/><a class="pls-m-nav-search-btn">搜索</a></div></div></div></div></div> <div id="root"></div> <!-- 页脚 HTML --> <div class="qc-footer tc-footer" id="shadowFooter" style="border-top: none"></div> <script> window.__QCPortalContext__ = { version: "0.3.0", resource: {}, $getCurrServerTime: (function(s, c) {return function(){return +new Date()+s-c;}})(1732359704710, +new Date()), } </script> <script src="https://cloudcache.tencent-cloud.com/qcloud/portal/kit/full.c9aa1f7ce.js"></script> <script> if (window.QCPortalKit) { window.QCPortalKit.init({"version":2,"topNav":{"theme":"air"},"footer":{"disable":false},"floatBar":{"disable":false}}) } </script> <!-- 注入 windows 变量、加载 React、加载 js --> <script> window.__PREFETCH_DATA__ = {}; /** 时区灰度开关 */ /** 点石会员活动灰度开关 */ </script> <script crossorigin="anonymous" src="https://cloudcache.tencent-cloud.cn/qcloud/vendors/moment/moment-2.24.0.js"></script> <script crossorigin="anonymous" src="https://cloudcache.tencent-cloud.cn/qcloud/vendors/react/react16.production.js"></script> <!-- 引入 models/api --> <script> /** * 重写云API调用,业务引入 SDK 时会打包控制台的 tea-app,依赖了 models/api 这个模块 * 待胶水层迁移完毕控制台的 platform.js 去掉之后,这段代码可以移到 tcb_buy * 目前因为顺序的原因,无法迁移 */ define('models/api', function (require, exports) { exports.request = function(body, options) { return new Promise(function (resolve, reject) { return require('lib/manage').capi({ serviceType: body.serviceType, cmd: body.cmd, version: options.version, withLanguage: options.withLanguage, withClientIP: options.withClientIP, withClientUA: options.withClientUA, enableZip: options.enableZip, json: options.json, body: { regionId: body.regionId, data: body.data } }).then(function (ret) { resolve(ret && ret.data) }).fail(function (e) { reject(e) }); }) }; }); </script> <script> window.seajs.useAsync('https://cloudcache.tencent-cloud.cn/qcloud/buy/tcb_buy/dist/price/index.0272d7be41ebe5913a39.js'); </script> <!-- 加载国际站中文字符监控脚本 --> <!-- 加载 导航栏、页脚 JS,国际站导航栏包含 polyfill --> <!-- 加载 导航栏、页脚 JS --> <script> window.jQuery || document.write('<script crossorigin="anonymous" src="//cloudcache.tencent-cloud.cn/open/qcloud/js/version/201408/jquery.201408191328.js?t=20140821&max_age=31536000"><\/script>'); </script> <!--js错误监控 Insight 等--> <script> if (typeof Insight === 'object') { try { var devmode = localStorage.getItem('buyDevMode'); Insight.install({ app: 'qcbuy', lid: window.lifeId, born: window.lifeStart, time: window.serverTimeForPlatformUsageOnly, pageComponent: window.pageComponent, shouldReportEvent: function () { return devmode !== 'on' && window._enableReport && !window.version; } }); Insight.on('eventCreate', function (event) { event.lifeRegion = window.lifeRegion }); // 上报 load-view 日志事件 const loadViewEventPage = () => { if (!window.Insight) { return; } try { const insight = window.Insight; const loadViewEvent = insight.register("load-view", { level: insight.EventLevel.Info }); loadViewEvent.push( { mode: "external", message: '加载视图' }, true ); } catch (err) { console.log(err); } }; loadViewEventPage(); } catch (err) { } } </script> <!-- 资源白屏监控 --> <!-- 统计脚本 --> <!-- 腾讯云流量追踪 SDK --> <script async type="text/javascript" src="//dscache.tencent-cloud.cn/ecache/qcstat/qcloud/qcloudStatApi.js"></script> </body> </html>