/** * ================================================================= * aegis-web-sdk@1.37.5 (c) 2023 TencentCloud Real User Monitoring. * Author pumpkincai. * Last Release Time Mon Jun 26 2023 14:20:23 GMT+0800 (中国标准时间). * Released under the MIT License. * Thanks for supporting RUM & Aegis! * ================================================================= **/ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Aegis=t()}(this,function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t,n){return e(n={path:t,exports:{},require:function(e,t){throw t!==undefined&&null!==t||n.path,new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},n.exports),n.exports}var _,M,B,d,q,P=(B=function(e){return e&&e.Math==Math&&e})("object"==typeof globalThis&&globalThis)||B("object"==typeof window&&window)||B("object"==typeof self&&self)||B("object"==typeof e&&e)||function(){return this}()||Function("return this")(),I=!(d=function(e){try{return!!e()}catch(t){return!0}})(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),F=!d(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),D=Function.prototype.call,L=F?D.bind(D):function(){return D.apply(D,arguments)},e={}.propertyIsEnumerable,H={f:(q=Object.getOwnPropertyDescriptor)&&!e.call({1:2},1)?function(e){e=q(this,e);return!!e&&e.enumerable}:e},W=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},e=Function.prototype,V=e.call,e=F&&e.bind.bind(V,V),p=F?e:function(e){return function(){return V.apply(e,arguments)}},G=p({}.toString),$=p("".slice),X=function(e){return $(G(e),8,-1)},z=Object,Y=p("".split),J=d(function(){return!z("z").propertyIsEnumerable(0)})?function(e){return"String"==X(e)?Y(e,""):z(e)}:z,K=function(e){return null===e||e===undefined},Q=TypeError,Z=function(e){if(K(e))throw Q("Can't call method on "+e);return e},ee=function(e){return J(Z(e))},e="object"==typeof document&&document.all,e={all:e,IS_HTMLDDA:void 0===e&&e!==undefined},te=e.all,R=e.IS_HTMLDDA?function(e){return"function"==typeof e||e===te}:function(e){return"function"==typeof e},ne=e.all,k=e.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:R(e)||e===ne}:function(e){return"object"==typeof e?null!==e:R(e)},re=function(e,t){return arguments.length<2?(n=P[e],R(n)?n:undefined):P[e]&&P[e][t];var n},oe=p({}.isPrototypeOf),e="undefined"!=typeof navigator&&String(navigator.userAgent)||"",n=P.process,r=P.Deno,n=n&&n.versions||r&&r.version,r=n&&n.v8,ie=M=!(M=r?0<(_=r.split("."))[0]&&_[0]<4?1:+(_[0]+_[1]):M)&&e&&(!(_=e.match(/Edge\/(\d+)/))||74<=_[1])&&(_=e.match(/Chrome\/(\d+)/))?+_[1]:M,ae=!!Object.getOwnPropertySymbols&&!d(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ie&&ie<41}),n=ae&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ue=Object,se=n?function(e){return"symbol"==typeof e}:function(e){var t=re("Symbol");return R(t)&&oe(t.prototype,ue(e))},ce=String,fe=function(e){try{return ce(e)}catch(t){return"Object"}},le=TypeError,de=function(e){if(R(e))return e;throw le(fe(e)+" is not a function")},pe=function(e,t){t=e[t];return K(t)?undefined:de(t)},he=TypeError,ge=Object.defineProperty,ye=function(e,t){try{ge(P,e,{value:t,configurable:!0,writable:!0})}catch(_){P[e]=t}return t},ve=P["__core-js_shared__"]||ye("__core-js_shared__",{}),r=t(function(e){(e.exports=function(e,t){return ve[e]||(ve[e]=t!==undefined?t:{})})("versions",[]).push({version:"3.27.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE",source:"https://github.com/zloirock/core-js"})}),me=Object,be=function(e){return me(Z(e))},we=p({}.hasOwnProperty),C=Object.hasOwn||function(e,t){return we(be(e),t)},Ee=0,Re=Math.random(),Oe=p(1..toString),Se=function(e){return"Symbol("+(e===undefined?"":e)+")_"+Oe(++Ee+Re,36)},Te=P.Symbol,xe=r("wks"),Ae=n?Te["for"]||Te:Te&&Te.withoutSetter||Se,s=function(e){return C(xe,e)||(xe[e]=ae&&C(Te,e)?Te[e]:Ae("Symbol."+e)),xe[e]},Pe=TypeError,Ie=s("toPrimitive"),Le=function(e,t){if(!k(e)||se(e))return e;var n,r,o=pe(e,Ie);if(o){if(t===undefined&&(t="default"),o=L(o,e,t),!k(o)||se(o))return o;throw Pe("Can't convert object to primitive value")}t===undefined&&(t="number");o=e,e=t;if("string"===e&&R(n=o.toString)&&!k(r=L(n,o)))return r;if(R(n=o.valueOf)&&!k(r=L(n,o)))return r;if("string"!==e&&R(n=o.toString)&&!k(r=L(n,o)))return r;throw he("Can't convert object to primitive value")},ke=function(e){e=Le(e,"string");return se(e)?e:e+""},Ce=P.document,je=k(Ce)&&k(Ce.createElement),Ue=function(e){return je?Ce.createElement(e):{}},Ne=!I&&!d(function(){return 7!=Object.defineProperty(Ue("div"),"a",{get:function(){return 7}}).a}),_e=Object.getOwnPropertyDescriptor,Me={f:I?_e:function(e,t){if(e=ee(e),t=ke(t),Ne)try{return _e(e,t)}catch(_){}if(C(e,t))return W(!L(H.f,e,t),e[t])}},n=I&&d(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Be=String,qe=TypeError,O=function(e){if(k(e))return e;throw qe(Be(e)+" is not an object")},Fe=TypeError,De=Object.defineProperty,He=Object.getOwnPropertyDescriptor,We={f:I?n?function(e,t,n){var r;return O(e),t=ke(t),O(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable&&(r=He(e,t))&&r.writable&&(e[t]=n.value,n={configurable:("configurable"in n?n:r).configurable,enumerable:("enumerable"in n?n:r).enumerable,writable:!1}),De(e,t,n)}:De:function(e,t,n){if(O(e),t=ke(t),O(n),Ne)try{return De(e,t,n)}catch(M){}if("get"in n||"set"in n)throw Fe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Ve=I?function(e,t,n){return We.f(e,t,W(1,n))}:function(e,t,n){return e[t]=n,e},o=Function.prototype,Ge=I&&Object.getOwnPropertyDescriptor,$e=C(o,"name"),Xe={EXISTS:$e,PROPER:$e&&"something"===function(){}.name,CONFIGURABLE:$e&&(!I||Ge(o,"name").configurable)},ze=p(Function.toString);R(ve.inspectSource)||(ve.inspectSource=function(e){return ze(e)});var Ye,Je,Ke,Qe,Ze=ve.inspectSource,$e=P.WeakMap,o=R($e)&&/native code/.test(String($e)),et=r("keys"),Ge=function(e){return et[e]||(et[e]=Se(e))},tt={},nt=P.TypeError,$e=P.WeakMap,rt=o||ve.state?((Ke=ve.state||(ve.state=new $e)).get=Ke.get,Ke.has=Ke.has,Ke.set=Ke.set,Ye=function(e,t){if(Ke.has(e))throw nt("Object already initialized");return t.facade=e,Ke.set(e,t),t},Je=function(e){return Ke.get(e)||{}},function(e){return Ke.has(e)}):(Qe=Ge("state"),tt[Qe]=!0,Ye=function(e,t){if(C(e,Qe))throw nt("Object already initialized");return t.facade=e,Ve(e,Qe,t),t},Je=function(e){return C(e,Qe)?e[Qe]:{}},function(e){return C(e,Qe)}),j={set:Ye,get:Je,has:rt,enforce:function(e){return rt(e)?Je(e):Ye(e,{})},getterFor:function(t){return function(e){if(k(e)&&(e=Je(e)).type===t)return e;throw nt("Incompatible receiver, "+t+" required")}}},ot=t(function(e){var r=Xe.CONFIGURABLE,o=j.enforce,t=j.get,i=String,a=Object.defineProperty,u=p("".slice),s=p("".replace),c=p([].join),f=I&&!d(function(){return 8!==a(function(){},"length",{value:8}).length}),l=String(String).split("String"),e=e.exports=function(e,t,n){"Symbol("===u(i(t),0,7)&&(t="["+s(i(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!C(e,"name")||r&&e.name!==t)&&(I?a(e,"name",{value:t,configurable:!0}):e.name=t),f&&n&&C(n,"arity")&&e.length!==n.arity&&a(e,"length",{value:n.arity});try{n&&C(n,"constructor")&&n.constructor?I&&a(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=undefined)}catch(W){}n=o(e);return C(n,"source")||(n.source=c(l,"string"==typeof t?t:"")),e};Function.prototype.toString=e(function(){return R(this)&&t(this).source||Ze(this)},"toString")}),v=function(e,t,n,r){var o=(r=r||{}).enumerable,i=r.name!==undefined?r.name:t;if(R(n)&&ot(n,i,r),r.global)o?e[t]=n:ye(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(d){}o?e[t]=n:We.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},it=Math.ceil,at=Math.floor,ut=Math.trunc||function(e){e=+e;return(0o;)!C(r,n=t[o++])||~gt(i,n)||yt(i,n);return i},mt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bt=mt.concat("length","prototype"),wt={f:Object.getOwnPropertyNames||function(e){return vt(e,bt)}},Et={f:Object.getOwnPropertySymbols},Rt=p([].concat),Ot=re("Reflect","ownKeys")||function(e){var t=wt.f(O(e)),n=Et.f;return n?Rt(t,n(e)):t},St=/#|\.prototype\./,o=function(e,t){e=xt[Tt(e)];return e==Pt||e!=At&&(R(t)?d(t):!!t)},Tt=o.normalize=function(e){return String(e).replace(St,".").toLowerCase()},xt=o.data={},At=o.NATIVE="N",Pt=o.POLYFILL="P",It=o,Lt=Me.f,U=function(e,t){var n,r,o,i,a=e.target,u=e.global,s=e.stat;if(n=u?P:s?P[a]||ye(a,{}):(P[a]||{}).prototype)for(r in t){if(o=t[r],i=e.dontCallGetSet?(i=Lt(n,r))&&i.value:n[r],!It(u?r:a+(s?".":"#")+r,e.forced)&&i!==undefined){if(typeof o==typeof i)continue;for(var c=o,f=i,l=y=g=h=p=d=void 0,d=Ot(f),p=We.f,h=Me.f,g=0;g"+e+"<\/script>"},an=function(e){e.write(on("")),e.close();var t=e.parentWindow.Object;return e=null,t},un=function(){try{$t=new ActiveXObject("htmlfile")}catch(M){}var e;un="undefined"==typeof document||document.domain&&$t?an($t):((e=Ue("iframe")).style.display="none",tn.appendChild(e),e.src=String("javascript:"),(e=e.contentWindow.document).open(),e.write(on("document.F=Object")),e.close(),e.F);for(var t=mt.length;t--;)delete un.prototype[mt[t]];return un()},sn=(tt[nn]=!0,Object.create||function(e,t){var n;return null!==e?(rn.prototype=O(e),n=new rn,rn.prototype=null,n[nn]=e):n=un(),t===undefined?n:en.f(n,t)}),i=We.f,cn=s("unscopables"),fn=Array.prototype,n=(fn[cn]==undefined&&i(fn,cn,{configurable:!0,value:sn(null)}),function(e){fn[cn][e]=!0}),ln=Qt.find,dn=!0,i=("find"in[]&&Array(1).find(function(){dn=!1}),U({target:"Array",proto:!0,forced:dn},{find:function(e){return ln(this,e,1=t.length?(e.target=undefined,Nn(undefined,!0)):Nn("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)},"values"),a=hn.Arguments=hn.Array;if(n("keys"),n("values"),n("entries"),I&&"values"!==a.name)try{Ge(a,"name",{value:"values"})}catch(x){}var qn=String,S=function(e){if("Symbol"===Bt(e))throw TypeError("Cannot convert a Symbol value to a string");return qn(e)},Fn=p("".charAt),Dn=p("".charCodeAt),Hn=p("".slice),a=function(o){return function(e,t){var n,e=S(Z(e)),t=st(t),r=e.length;return t<0||r<=t?o?"":undefined:(n=Dn(e,t))<55296||56319=t.length?Nn(undefined,!0):(t=Wn(t,n),e.index+=t.length,Nn(t,!1))}),function(e,t,n){t=ke(t);t in e?We.f(e,t,W(0,n)):e[t]=n}),Xn=Array,zn=Math.max,Yn=function(e,t,n){for(var r=ht(e),o=lt(t,r),i=lt(n===undefined?r:n,r),a=Xn(zn(i-o,0)),u=0;o>>0)+Jr+"__",null!=e&&e.forEach(this.add,this),Jr+=1}so(Vr),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{configurable:!0,writable:!0,value:function(e){if(null===this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],o=0;ou;)(n=o(r,t=i[u++]))!==undefined&&$n(a,t,n);return a}}),Function.prototype),yo=f.apply,vo=f.call,mo="object"==typeof Reflect&&Reflect.apply||(F?vo.bind(yo):function(){return vo.apply(yo,arguments)}),bo=p([].slice),wo=re("JSON","stringify"),Eo=p(/./.exec),Ro=p("".charAt),Oo=p("".charCodeAt),So=p("".replace),To=p(1..toString),xo=/[\uD800-\uDFFF]/g,Ao=/^[\uD800-\uDBFF]$/,Po=/^[\uDC00-\uDFFF]$/,Io=!ae||d(function(){var e=re("Symbol")();return"[null]"!=wo([e])||"{}"!=wo({a:e})||"{}"!=wo(Object(e))}),Lo=d(function(){return'"\\udf06\\ud834"'!==wo("\udf06\ud834")||'"\\udead"'!==wo("\udead")}),ko=function(e,t){var n=bo(arguments),r=t;if((k(t)||e!==undefined)&&!se(e))return Ut(t)||(t=function(e,t){if(R(r)&&(t=L(r,this,e,t)),!se(t))return t}),n[1]=t,mo(wo,null,n)},Co=function(e,t,n){var r=Ro(n,t-1),n=Ro(n,t+1);return Eo(Ao,e)&&!Eo(Po,n)||Eo(Po,e)&&!Eo(Ao,r)?"\\u"+To(Oo(e,0),16):e},jo=(wo&&U({target:"JSON",stat:!0,arity:3,forced:Io||Lo},{stringify:function(e,t,n){var r=bo(arguments),r=mo(Io?ko:wo,null,r);return Lo&&"string"==typeof r?So(r,xo,Co):r}}),s("species")),u=function(t){return 51<=ie||!d(function(){var e=[];return(e.constructor={})[jo]=function(){return{foo:1}},1!==e[t](Boolean).foo})},Uo=Qt.filter,c=u("filter"),f=(U({target:"Array",proto:!0,forced:!c},{filter:function(e){return Uo(this,e,1b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}),ci=j.get,fi=r("native-string-replace",String.prototype.replace),li=RegExp.prototype.exec,di=li,pi=p("".charAt),hi=p("".indexOf),gi=p("".replace),yi=p("".slice),vi=(r=/b*/g,L(li,Oi=/a/,"a"),L(li,r,"a"),0!==Oi.lastIndex||0!==r.lastIndex),mi=i.BROKEN_CARET,bi=/()??/.exec("")[1]!==undefined,wi=di=vi||bi||mi||c||f?function(e){var t,n,r,o,i,a,u=this,s=ci(u),e=S(e),c=s.raw;if(c)return c.lastIndex=u.lastIndex,l=L(di,c,e),u.lastIndex=c.lastIndex,l;var f=s.groups,c=mi&&u.sticky,l=L(ii,u),s=u.source,d=0,p=e;if(c&&(l=gi(l,"y",""),-1===hi(l,"g")&&(l+="g"),p=yi(e,u.lastIndex),0]*>)/g,ki=/\$([$&'`]|\d{1,2})/g,Ci=TypeError,ji=function(e,t){var n=e.exec;if(R(n))return null!==(n=L(n,e,t))&&O(n),n;if("RegExp"===X(e))return L(wi,e,t);throw Ci("RegExp#exec called on incompatible receiver")},Ui=s("replace"),Ni=Math.max,_i=Math.min,Mi=p([].concat),Bi=p([].push),qi=p("".indexOf),Fi=p("".slice),r="$0"==="a".replace(/./,"$0"),Di=!!/./[Ui]&&""===/./[Ui]("a","$0");Oi("replace",function(e,b,w){var E=Di?"$":"$0";return[function(e,t){var n=Z(this),r=K(e)?undefined:pe(e,Ui);return r?L(r,e,n,t):L(b,S(n),e,t)},function(e,t){var n=O(this),r=S(e);if("string"==typeof t&&-1===qi(t,E)&&-1===qi(t,"$<")){e=w(b,n,r,t);if(e.done)return e.value}var o,i=R(t),a=(i||(t=S(t)),n.global);a&&(o=n.unicode,n.lastIndex=0);for(var u=[];;){var s=ji(n,r);if(null===s)break;if(Bi(u,s),!a)break;""===S(s[0])&&(n.lastIndex=Ti(r,pt(n.lastIndex),o))}for(var c,f="",l=0,d=0;d")})||!r||Di);Hi=!1,(i=/[ac]/).exec=function(){return Hi=!0,/./.exec.apply(this,arguments)};var Hi,c=!0===i.test("abc")&&Hi,Wi=/./.test,Vi=(U({target:"RegExp",proto:!0,forced:!c},{test:function(e){var t=O(this),e=S(e),n=t.exec;return R(n)?null!==(n=L(n,t,e))&&(O(n),!0):L(Wi,t,e)}}),RegExp.prototype),f=Xe.PROPER,Gi=RegExp.prototype.toString,r=d(function(){return"/a/b"!=Gi.call({source:"a",flags:"b"})}),i=f&&"toString"!=Gi.name,$i=((r||i)&&v(RegExp.prototype,"toString",function(){var e,t=O(this);return"/"+S(t.source)+"/"+S((e=(t=t).flags)!==undefined||"flags"in Vi||C(t,"flags")||!oe(Vi,t)?e:L(ii,t))},{unsafe:!0}),Qt.some),c=io("some"),Xi=(U({target:"Array",proto:!0,forced:!c},{some:function(e){return $i(this,e,1u,r=R(e)?e:Oa(e),o=n?bo(arguments,u):[],e=n?function(){mo(r,this,o)}:r;return a?i(e,t):i(e)}:i},c=r(P.setInterval,!0),f=(U({global:!0,bind:!0,forced:P.setInterval!==c},{setInterval:c}),r(P.setTimeout,!0)),Ta=(U({global:!0,bind:!0,forced:P.setTimeout!==f},{setTimeout:f}),function(e){return e.filter(function(n,r){return"static"!==n.type||!e.find(function(e,t){return n.url===e.url&&200===n.status&&r=r||n.sendNow&&0>>=1)&&(t+=t))1&r&&(n+=t);return n},La=(U({target:"String",proto:!0},{repeat:u}),{}),ka={},Ca=function(e){return La[e]||(La[e]=setTimeout(function(){ka[e]={},La[e]=null},6e4)),La[e]},ja=function(e){return(Array.isArray(e)?e:[e]).map(function(n){return Object.getOwnPropertyNames(n).reduce(function(e,t){return"ctx"!==t&&(e[t]=n[t]),e},{level:A.INFO,msg:""})})},Ua=function(r){return function(e){return r.sendPipeline([function(e,n){return n({url:r.config.url||"",data:Ji(ja(e)),method:"post",contentType:"application/json",type:T.LOG,log:e,requestConfig:{timeout:5e3},success:function(){var t=r.config.onReport;"function"==typeof t&&e.forEach(function(e){t(e)}),"function"==typeof n&&n([])}})}],T.LOG)(e)}},Na=function(s,c){return function(e,t){var n,r,o,i=Array.isArray(e),a=i?e:[e],u=(s.lifeCycle.emit("beforeRequest",e),s.config.beforeRequest);(a="function"==typeof u?a.map(function(e){try{var t=u({logs:e,logType:c});return(null==t?void 0:t.logType)===c&&null!=t&&t.logs?t.logs:!1!==t&&e}catch(x){return e}}).filter(function(e){return!1!==e}):a).length&&(n=a,e=ri,!Array.isArray(n)||n.length<=1||(r=[],o=[],!(o="string"==typeof e?[e]:e))||o.length<=0||(o.forEach(function(t){n.forEach(function(e){null!=e&&e[t]&&r.push(t)})}),0n)return La[r]||Ca(r),!1;o[e]=1+~~o[e],ka[r]=o}return!0}))}),(d=this.lifeCycle.emit,p=this.config,function(e,t){var n,r=p.logCreated;return"function"==typeof r?(n=e.filter(function(e){return!1!==r(e)}),d("beforeWrite",n),t(n)):(d("beforeWrite",e),t(e))}),(l=this,setTimeout(function(){var e=l.config,t=e.pvUrl,n=void 0===t?"":t,t=e.spa,e=-1<["web-sdk","mp-sdk"].indexOf("web-sdk");n&&(e&&!t||!e)&&l.sendPipeline([function(e,t){t({url:n,type:T.PV})}],T.PV)(null)},100),function(e,t){t(e)}),(c=s=u=!1,f=[],(a=this).lifeCycle.on("onConfigChange",function(){i&&clearTimeout(i),i=setTimeout(function(){var e,n;!c&&a.config&&(c=!0,e=a.config.whiteListUrl,(n=void 0===e?"":e)&&a.sendPipeline([function(e,t){t({url:n,type:T.WHITE_LIST,success:function(e){s=!0;try{var t=e.data||JSON.parse(e),n=t.retcode,r=t.result,o=void 0===r?{}:r,i=(0===n&&(u=o.is_in_white_list,a.isWhiteList=u,0<=o.rate)&&o.rate<=1&&(a.config.random=o.rate,a.isGetSample=!1),a.isWhiteList&&f.length?Ua(a)(f.splice(0),function(){}):!a.isWhiteList&&f.length&&(f.length=0),a.config.onWhitelist);"function"==typeof i&&i(u)}catch(L){}},fail:function(){s=!0}})}],T.WHITE_LIST)(null),c=!1)},a.config.uin?50:500)}),a.lifeCycle.on("destroy",function(){f.length=0}),function(e,t){var n;u||null!=(n=null==(n=a.config)?void 0:n.api)&&n.reportRequest?t(e.concat(f.splice(0)).map(function(e){return Pa(e),e})):(n=e.filter(function(e){return e.level!==A.INFO&&e.level!==A.API_RESPONSE?(Pa(e),!0):(s||(f.push(e),200<=f.length&&(f.length=200)),!1)})).length&&t(n)}),function(e,t){try{var n=JSON.parse(JSON.stringify(e)),r=(g.lifeCycle.emit("beforeReport",n),g.config.beforeReport);(e="function"==typeof r?e.filter(function(e){return!1!==r(e)}):e).length&&t(e)}catch(P){}},Ua(this)]),this.eventPipeline=qa([xa(this,10),(o=this,function(e){o.sendPipeline([function(e,t){var n=e.map(function(e){return{name:e.name,ext1:e.ext1||o.config.ext1||"",ext2:e.ext2||o.config.ext2||"",ext3:e.ext3||o.config.ext3||""}});t({url:o.config.eventUrl+"?payload="+encodeURIComponent(JSON.stringify(n)),type:T.EVENT,log:e})}],T.EVENT)(e)})]),this.timeMap={},this.failRequestCount=0,this.customTimePipeline=qa([xa(this,10),(r=this,function(e){return r.sendPipeline([function(e,t){t({url:r.config.customTimeUrl+"?payload="+encodeURIComponent(JSON.stringify({custom:e})),type:T.CUSTOM,log:e})}],T.CUSTOM)(e)})]),this.config=(t=this.config,void 0===(e=e.hostUrl)&&(e="https://aegis.qq.com"),t.url=t.url||e+"/collect",t.offlineUrl=t.offlineUrl||e+"/offline",t.whiteListUrl=t.whiteListUrl||e+"/collect/whitelist",t.pvUrl=t.pvUrl||e+"/collect/pv",t.eventUrl=t.eventUrl||e+"/collect/events",t.speedUrl=t.speedUrl||e+"/speed",t.customTimeUrl=t.customTimeUrl||e+"/speed/custom",t.performanceUrl=t.performanceUrl||e+"/speed/performance",t.webVitalsUrl=t.webVitalsUrl||e+"/speed/webvitals",t.setDataReportUrl=t.SetDataReportUrl||e+"/speed/miniProgramData",t),y.instances.push(this)}U({target:"Function",proto:!0,forced:Function.bind!==r},{bind:r});tu.prototype.patch=function(e){this.canUse(e)&&this.exist(e)&&(this.instances.push(e),this.triggerInit(e),this.triggerOnNewAegis(e))},tu.prototype.unpatch=function(e){var t=this.instances.indexOf(e);-1!==t&&(this.instances.splice(t,1),0===this.instances.length)&&this.uninstall(e)},tu.prototype.countInstance=function(){return this.instances.length},tu.prototype.uninstall=function(e){var t;null!=(t=null==(t=this.option)?void 0:t.destroy)&&t.apply(this,[e])},tu.prototype.walk=function(n){var r=this;this.instances.forEach(function(e){var t=r.canUse(e);t&&n(e,t)})},tu.prototype.canUse=function(e){e=this.getConfig(e);return!(!e||"object"!==go(e))||!!e},tu.prototype.getConfig=function(e){return null==(e=e.config)?void 0:e[this.name]},tu.prototype.exist=function(e){return-1===this.instances.indexOf(e)},tu.prototype.triggerInit=function(e){var t;this.inited||(this.inited=!0,null==(t=null==(t=this.option)?void 0:t.init))||t.call(this.option,this.getConfig(e))},tu.prototype.triggerOnNewAegis=function(e){var t;null!=(t=null==(t=this.option)?void 0:t.onNewAegis)&&t.call(this.option,e,this.getConfig(e))};var l=tu,f=new l({name:"aid",aid:"",init:function(e){try{var t=!0!==e&&e||window.localStorage.getItem("AEGIS_ID");t||(t=ga(),window.localStorage.setItem("AEGIS_ID",t)),this.aid=t}catch(_){}},onNewAegis:function(e){e.bean.aid=this.aid,e.config.aid=this.aid}}),r=P,Ga=p(1..valueOf),$a="\t\n\x0B\f\r                 \u2028\u2029\ufeff",Xa=p("".replace),za="["+$a+"]",Ya=RegExp("^"+za+za+"*"),Ja=RegExp(za+za+"*$"),za=function(t){return function(e){e=S(Z(e));return 1&t&&(e=Xa(e,Ya,"")),e=2&t?Xa(e,Ja,""):e}},za={start:za(1),end:za(2),trim:za(3)},h=wt.f,Ka=Me.f,Qa=We.f,Za=za.trim,eu=P.Number;function tu(e){this.aegisPlugin=!0,this.name="",this.instances=[],this.inited=!1,e.$walk=this.walk.bind(this),e.$getConfig=this.getConfig.bind(this),this.option=e,this.name=e.name}r.Number;var nu=eu.prototype,ru=P.TypeError,ou=p("".slice),iu=p("".charCodeAt),au=function(e){var t,n,r,o,i,a,u,s=Le(e,"number");if(se(s))throw ru("Cannot convert a Symbol value to a number");if("string"==typeof s&&2du;du++)C(cu,fu=lu[du])&&!C(su,fu)&&Qa(su,fu,Ka(cu,fu));var pu=RangeError,hu=String,gu=Math.floor,yu=p(u),vu=p("".slice),mu=p(1..toFixed),bu=function(e,t,n){return 0===t?n:t%2==1?bu(e,t-1,n*e):bu(e*e,t/2,n)},wu=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=gu(o/1e7)},Eu=function(e,t){for(var n=6,r=0;0<=--n;)r+=e[n],e[n]=gu(r/t),r=r%t*1e7},Ru=function(e){for(var t,n=6,r="";0<=--n;)""===r&&0!==n&&0===e[n]||(t=hu(e[n]),r=""===r?t:r+yu("0",7-t.length)+t);return r},g=d(function(){return"0.000"!==mu(8e-5,3)||"1"!==mu(.9,0)||"1.25"!==mu(1.255,2)||"1000000000000000128"!==mu(0xde0b6b3a7640080,0)})||!d(function(){mu({})}),Ou=(U({target:"Number",proto:!0,forced:g},{toFixed:function(e){var t,n,r,o=Ga(this),e=st(e),i=[0,0,0,0,0,0],a="",u="0";if(e<0||20=o&&tKs((2147483647-i)/l))throw Ys(zs);for(i+=(c-o)*l,o=c,f=0;f>1,e+=Ks(e/t);455t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,n=lc(this).entries,r=jt(e,1?@[\\\]^|]/,mf=/[\0\t\n\r #/:<>?@[\\\]^|]/,bf=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,wf=/[\t\n\r]/g,Ef=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)cf(t,e%256),e=Yc(e/256);return Zc(t,".")}if("object"!=typeof e)return e;for(t="",r=function(e){for(var t=null,n=1,r=null,o=0,i=0;i<8;i++)0!==e[i]?(n":1,"`":1}),Sf=a({},Of,{"#":1,"?":1,"{":1,"}":1}),Tf=a({},Sf,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),xf=function(e,t){var n=Hc(e,0);return 32=Jc(256,5-t))return null}else if(255>e/4).toString(16)})}I&&($u(Zf,"href",g("serialize","setHref")),$u(Zf,"origin",g("getOrigin")),$u(Zf,"protocol",g("getProtocol","setProtocol")),$u(Zf,"username",g("getUsername","setUsername")),$u(Zf,"password",g("getPassword","setPassword")),$u(Zf,"host",g("getHost","setHost")),$u(Zf,"hostname",g("getHostname","setHostname")),$u(Zf,"port",g("getPort","setPort")),$u(Zf,"pathname",g("getPathname","setPathname")),$u(Zf,"search",g("getSearch","setSearch")),$u(Zf,"searchParams",g("getSearchParams")),$u(Zf,"hash",g("getHash","setHash"))),v(Zf,"toJSON",function(){return Vc(this).serialize()},{enumerable:!0}),v(Zf,"toString",function(){return Vc(this).serialize()},{enumerable:!0}),u&&(n=u.createObjectURL,Gu=u.revokeObjectURL,n&&v(Qf,"createObjectURL",jt(n,u)),Gu)&&v(Qf,"revokeObjectURL",jt(Gu,u)),Rn(Qf,"URL"),U({global:!0,constructor:!0,forced:!h,sham:!I},{URL:Qf}),Oi("match",function(r,u,s){return[function(e){var t=Z(this),n=K(e)?undefined:pe(e,r);return n?L(n,e,t):new RegExp(e)[r](S(t))},function(e){var t=O(this),n=S(e),e=s(u,t,n);if(e.done)return e.value;if(!t.global)return ji(t,n);for(var r=t.unicode,o=[],i=t.lastIndex=0;null!==(a=ji(t,n));){var a=S(a[0]);""===(o[i]=a)&&(t.lastIndex=Ti(n,pt(t.lastIndex),r)),i++}return 0===i?null:o}]});var tl={generateTraceId:rl(16),generateSpanId:rl(8)},nl=Array(32);function rl(t){return function(){for(var e=0;e<2*t;e++)nl[e]=Math.floor(16*Math.random())+48,58<=nl[e]&&(nl[e]+=39);return String.fromCharCode.apply(null,nl.slice(0,2*t))}}var ol,il,al,ul,sl,cl,fl,ll={sw8:function(e){e=e.split("-")[1];return e?atob(e):""},traceparent:function(e){return e.split("-")[1]},b3:function(e){return e.split("-")[0]},"sentry-trace":function(e){return e.split("-")[0]}},dl=function(e){var t,n="";return n="object"===go(e)&&(t=(e=function(e,t){for(var n=0;n>1,c=23===t?vd(2,-24)-vd(2,-77):0,f=e<0||0===e&&1/e<0?1:0,l=0;for((e=yd(e))!=e||e===Infinity?(o=e!=e?1:0,r=n):(r=md(bd(e)/wd),e*(i=vd(2,-r))<1&&(r--,i*=2),2<=(e+=1<=r+s?c/i:c*vd(2,1-s))*i&&(r++,i/=2),n<=r+s?(o=0,r=n):1<=r+s?(o=(e*i-1)*vd(2,t),r+=s):(o=e*vd(2,s-1)*vd(2,t),r=0));8<=t;)a[l++]=255&o,o/=256,t-=8;for(r=r<>1,u=o-7,s=r-1,o=e[s--],c=127&o;for(o>>=7;0>=-u,u+=t;0>8&255]},Fd=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Dd=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Hd=function(e){return _d(e,23,4)},Wd=function(e){return _d(e,52,8)},Vd=function(e,t){Rd(e.prototype,t,{get:function(){return Sd(this)[t]}})},Gd=function(e,t,n,r){n=hd(n),e=Sd(e);if(n+t>e.byteLength)throw jd("Wrong index");var o=Sd(e.buffer).bytes,n=n+e.byteOffset,e=Yn(o,n,n+t);return r?e:Nd(e)},$d=function(e,t,n,r,o,i){n=hd(n),e=Sd(e);if(n+t>e.byteLength)throw jd("Wrong index");for(var a=Sd(e.buffer).bytes,u=n+e.byteOffset,s=r(+o),c=0;cJd;)(zd=Yd[Jd++])in Ad||Ve(Ad,zd,xd[zd]);Pd.constructor=Ad}Pn&&mn(Ld)!==kd&&Pn(Ld,kd);var c=new Id(new Ad(2)),Kd=p(Ld.setInt8);c.setInt8(0,2147483648),c.setInt8(1,2147483649),!c.getInt8(0)&&c.getInt8(1)||Lr(Ld,{setInt8:function(e,t){Kd(this,e,t<<24>>24)},setUint8:function(e,t){Kd(this,e,t<<24>>24)}},{unsafe:!0})}else Pd=(Ad=function(e){yr(this,Pd);e=hd(e);Td(this,{bytes:Ud(Cd(e),0),byteLength:e}),I||(this.byteLength=e)}).prototype,Ld=(Id=function(e,t,n){yr(this,Ld),yr(e,Pd);var r=Sd(e).byteLength,t=st(t);if(t<0||rr)throw jd("Wrong length");Td(this,{buffer:e,byteLength:n,byteOffset:t}),I||(this.buffer=e,this.byteLength=n,this.byteOffset=t)}).prototype,I&&(Vd(Ad,"byteLength"),Vd(Id,"buffer"),Vd(Id,"byteLength"),Vd(Id,"byteOffset")),Lr(Ld,{getInt8:function(e){return Gd(this,1,e)[0]<<24>>24},getUint8:function(e){return Gd(this,1,e)[0]},getInt16:function(e){e=Gd(this,2,e,1>16},getUint16:function(e){e=Gd(this,2,e,1>>0},getFloat32:function(e){return Md(Gd(this,4,e,1n)throw m("Wrong length");i=o/c}else i=hd(t),s=new b(o=i*c);for(h(e,{buffer:s,byteOffset:u,byteLength:o,length:i,view:new w(s)});a>>0||($h(Gh,e)?16:10))}:Wh;return U({global:!0,forced:parseInt!=e},{parseInt:e}),new l({name:"aid"}),Wl.use(n),Wl.use(Xu),Wl.use(r),Wl.use(Gu),Wl.use(f),Wl.use($u),Wl.use(Oi),Wl.use(m),Wl.use(a),Wl.use(g),Wl.use(Ge),Wl});