var itraceJserrorPlugin=function(){"use strict";function r(e,n){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,e){return r.__proto__=e,r},r(e,n)}var e;(e={}).ZH="cn",e.QUARK="quark",e.INTL="intl";var n=function(r){return r[r.JSERR=1]="JSERR",r[r.API=2]="API",r[r.PERF=3]="PERF",r[r.RESERR=4]="RESERR",r[r.PVUV=5]="PVUV",r[r.BKPG=6]="BKPG",r[r.LONGTASK=8]="LONGTASK",r[r.INPD=15]="INPD",r[r.NODERES=16]="NODERES",r[r.PGERROR=17]="PGERROR",r[r.BLOCK=18]="BLOCK",r[r.PERFNEXT=1e3]="PERFNEXT",r[r.MAINDOC=1e5]="MAINDOC",r[r.RESTIMING=100001]="RESTIMING",r}({});!function(r){r.JSERR="jserr",r.API="api",r.PERF="jsfsperf",r.RESERR="resloadfail",r.PVUV="flow",r.BKPG="bkpg",r.CUSTOM="jssdkidx",r.INPD="inputdelay",r.LONGTASK="longtask",r.NODERES="nodres",r.PGERROR="pgerror",r.BLOCK="h5block"}({});var t=function(r){r=r||{},this.id=r.id,this.sampleRate=r.sampleRate,this.forceEnable=r.forceEnable};function o(){for(var r=arguments.length<=0?void 0:arguments[0],e=1,n=arguments.length;e<n;e++){var t=e<0||arguments.length<=e?void 0:arguments[e];for(var o in t)l(t,o)&&(r[o]=t[o])}return r}function i(r,e,n,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1),r.addEventListener?r.addEventListener(e,function i(a){o&&r.removeEventListener(e,i,t),n.call(this,a)},t):r.attachEvent&&r.attachEvent("on"+e,function i(a){o&&r.detachEvent(e,i,t),n.call(this,a)})}function a(){return"undefined"!=typeof window?window:"object"==typeof self&&self instanceof WorkerGlobalScope?self:null}!function(r){r.ZH="cn",r.QUARK="quark",r.INTL="intl"}({}),function(r){r[r.JSERR=1]="JSERR",r[r.API=2]="API",r[r.PERF=3]="PERF",r[r.RESERR=4]="RESERR",r[r.PVUV=5]="PVUV",r[r.BKPG=6]="BKPG",r[r.LONGTASK=8]="LONGTASK",r[r.INPD=15]="INPD",r[r.NODERES=16]="NODERES",r[r.PGERROR=17]="PGERROR",r[r.BLOCK=18]="BLOCK",r[r.PERFNEXT=1e3]="PERFNEXT",r[r.MAINDOC=1e5]="MAINDOC",r[r.RESTIMING=100001]="RESTIMING"}({}),function(r){r.JSERR="jserr",r.API="api",r.PERF="jsfsperf",r.RESERR="resloadfail",r.PVUV="flow",r.BKPG="bkpg",r.CUSTOM="jssdkidx",r.INPD="inputdelay",r.LONGTASK="longtask",r.NODERES="nodres",r.PGERROR="pgerror",r.BLOCK="h5block"}({}),"undefined"!=typeof navigator&&(navigator.userAgent||"").toLowerCase();var l=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},s=function(e){function t(r){var n;return(n=e.call(this,r)||this).reporter=null,n.pluginVer="2.0.10",n.ignoreScriptError=!1!==r.ignoreScriptError,n}!function(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,r(e,n)}(t,e);var l=t.prototype;return l.init=function(r){this.reporter=r,this.listenError(),this.listenUnHandleRejection()},l.listenError=function(){var r=this,e=a();null!==e?i(e,"error",function(e){if(function(r){var e=r.target;return!(e&&e.tagName)||r.message||r.filename||r.lineno||r.colno}(e)){var n=e.message||"unknown",t=e.error||{};if("script error."===n.toLowerCase()){if(r.ignoreScriptError)return;n="Script error",t={}}r.reportError(n,e.filename,e.lineno,e.colno,t)}}):this.reporter.print("global this is null ignore jserror plugin")},l.listenUnHandleRejection=function(){var r=this,e=a();null!==e?i(e,"unhandledrejection",function(e){var n=e.type;"string"==typeof e.reason?n=e.reason:e.reason&&"object"==typeof e.reason&&e.reason.message&&(n=e.reason.message),r.reportError(n,null,null,null,e.reason||e.type,{evtType:"unhandledrejection"})}):this.reporter.print("global this is null ignore jserror plugin")},l.reportError=function(r,e,t,i,a,l){if(null!=a){var s=(a.stack||"").split("\n");s.shift();var R={w_msg:r,w_file:e,w_col:i,w_line:t,stack:s.join("\n"),error:a};l&&o(R,l),o(R,{category:n.JSERR,sampleRate:this.sampleRate,pluginVer:this.pluginVer}),this.reporter.report(R)}},t}(t);return s.pluginId="iTraceJSErrorPlugin",s}();
var itraceInterfacePlugin=function(){"use strict";function e(t,r){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e(t,r)}var t;(t={}).ZH="cn",t.QUARK="quark",t.INTL="intl";var r=function(e){return e[e.JSERR=1]="JSERR",e[e.API=2]="API",e[e.PERF=3]="PERF",e[e.RESERR=4]="RESERR",e[e.PVUV=5]="PVUV",e[e.BKPG=6]="BKPG",e[e.LONGTASK=8]="LONGTASK",e[e.INPD=15]="INPD",e[e.NODERES=16]="NODERES",e[e.PGERROR=17]="PGERROR",e[e.BLOCK=18]="BLOCK",e[e.PERFNEXT=1e3]="PERFNEXT",e[e.MAINDOC=1e5]="MAINDOC",e[e.RESTIMING=100001]="RESTIMING",e}({});!function(e){e.JSERR="jserr",e.API="api",e.PERF="jsfsperf",e.RESERR="resloadfail",e.PVUV="flow",e.BKPG="bkpg",e.CUSTOM="jssdkidx",e.INPD="inputdelay",e.LONGTASK="longtask",e.NODERES="nodres",e.PGERROR="pgerror",e.BLOCK="h5block"}({});var n=function(e){e=e||{},this.id=e.id,this.sampleRate=e.sampleRate,this.forceEnable=e.forceEnable};function o(){for(var e=arguments.length<=0?void 0:arguments[0],t=1,r=arguments.length;t<r;t++){var n=t<0||arguments.length<=t?void 0:arguments[t];for(var o in n)a(n,o)&&(e[o]=n[o])}return e}function s(e,t){for(var r,n=e.length,o=0;o<n;o++)r=e[o],t.call(this,r,o,e)}!function(e){e.ZH="cn",e.QUARK="quark",e.INTL="intl"}({}),function(e){e[e.JSERR=1]="JSERR",e[e.API=2]="API",e[e.PERF=3]="PERF",e[e.RESERR=4]="RESERR",e[e.PVUV=5]="PVUV",e[e.BKPG=6]="BKPG",e[e.LONGTASK=8]="LONGTASK",e[e.INPD=15]="INPD",e[e.NODERES=16]="NODERES",e[e.PGERROR=17]="PGERROR",e[e.BLOCK=18]="BLOCK",e[e.PERFNEXT=1e3]="PERFNEXT",e[e.MAINDOC=1e5]="MAINDOC",e[e.RESTIMING=100001]="RESTIMING"}({}),function(e){e.JSERR="jserr",e.API="api",e.PERF="jsfsperf",e.RESERR="resloadfail",e.PVUV="flow",e.BKPG="bkpg",e.CUSTOM="jssdkidx",e.INPD="inputdelay",e.LONGTASK="longtask",e.NODERES="nodres",e.PGERROR="pgerror",e.BLOCK="h5block"}({}),"undefined"!=typeof navigator&&(navigator.userAgent||"").toLowerCase();var a=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return p(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var c=/(text)|(json)|(xml)/,d=location.origin,l=function(e){return!e||(0===e.indexOf(d)||!/^(\/\/|http:|https:).*/.test(e))},u=function(t){function n(e){var r;return(r=t.call(this,e)||this).pluginVer="2.1.13",r.opts=e,r.opts.enableXHR=!1!==e.enableXHR,r.opts.enableFetch=!1!==e.enableFetch,r.opts.enableMtop=!0===e.enableMtop,r.opts.enableTrace=!0===e.enableTrace,r}!function(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,e(t,r)}(n,t);var a=n.prototype;return a.init=function(e){this.reporter=e,this.opts.enableXHR&&this.hookXHR(),this.opts.enableFetch&&this.hookFetch(),this.opts.enableMtop&&this.hookMtop(),this.opts.enableCorsTrace=this.opts.enableCorsTrace||function(){return!1},this.opts.requestHeaders=o(this.opts.requestHeaders||{},{"x-wpk-reqid":function(){return function(e){var t=Date.now();"undefined"!=typeof window&&window.performance&&"function"==typeof window.performance.now&&(t+=performance.now());var r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var r=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?r:11&r).toString(16)});return!1===e?r.replace(/-/g,""):r}(!1)},"x-wpk-bid":function(){return e.bid}})},a.hookXHR=function(){var e=this,t=window.XMLHttpRequest.prototype,r=t.open,n=t.send,o=t.setRequestHeader;t.open=function(t,n){this.__reqCtx__={method:t||"GET",url:n||"",start:Date.now(),headers:{}};var o=[].slice.call(arguments);r.apply(this,o);var a=this;e.opts.enableTrace&&(l(n)||e.opts.enableCorsTrace&&e.opts.enableCorsTrace(n))?(e.reporter.print("shoot the trace rule, setting req header",n),s(Object.getOwnPropertyNames(e.opts.requestHeaders),function(t){var r=e.opts.requestHeaders[t]();a.setRequestHeader(t,r)})):e.reporter.print("not shoot the trace rule, setting req header",n)},t.setRequestHeader=function(e,t){var r=[].slice.call(arguments);o.apply(this,r),this.__reqCtx__&&(this.__reqCtx__.headers||(this.__reqCtx__.headers={}),this.__reqCtx__.headers[e]=t)},t.send=function(t){var r=this;function o(){if(!r.__reqCtx__||4===r.readyState)try{var n=Date.now(),o=(r.responseURL||e.transReqUrl(r.__reqCtx__.url)).split("?"),s=o[0],a=o[1]||"",i=e.opts.withReqBody&&"GET"!==r.__reqCtx__.method.toUpperCase()&&t?JSON.stringify(t):void 0,p=e.opts.withReqHeader&&(r.__reqCtx__.headers||{}),d=e.transferXhrRspHeader(r.getAllResponseHeaders())||{},l=r.getResponseHeader("Content-Type")||"",u=e.opts.withRespBody&&c.test(l)?e._readXhrResponseAsStr(r):void 0,h=n-r.__reqCtx__.start;e.sendData({w_res:s,w_param:a,w_method:r.__reqCtx__.method,w_rc:r.status,w_rt:h,w_body:i,w_resp:u,w_hd:JSON.stringify(p),w_trace_reqid:d&&d["x-wpk-reqid"]||p&&p["x-wpk-reqid"]||void 0,w_rshd:e.opts.withRespHeader?JSON.stringify(d):null,w_trace_serverid:d["x-wpk-serverid"]||void 0,w_type:16,msg:e.isReqSuccess(r.status)?void 0:r.statusText})}catch(t){e.reportPluginError(t)}}if("onreadystatechange"in r&&"function"==typeof r.onreadystatechange){var s=r.onreadystatechange;r.onreadystatechange=function(){var e=[].slice.call(arguments);o.apply(this,e),s.apply(this,e)}}else r.onreadystatechange=o;var a=[].slice.call(arguments);return n.apply(this,a)}},a._readXhrResponseAsStr=function(e){try{if(["text",""].includes(e.responseType))return e.responseText;if("arraybuffer"===e.responseType)return new TextDecoder("utf-8").decode(e.response)}catch(e){this.reporter.print("response as string error",e)}},a.hookFetch=function(){var e=this,t="undefined"!=typeof window?window:"object"==typeof self&&self instanceof WorkerGlobalScope?self:null;if(null!==t){var r=t.fetch;t.fetch=function(n,o){var a,i,p,d,u,h=Date.now(),f=!1;if("string"==typeof n)p=n,i=(null==(u=o)||null==(u=u.method)?void 0:u.toUpperCase())||"GET";else if(n instanceof URL){var R;p=n.toString(),i=(null==(R=o)||null==(R=R.method)?void 0:R.toUpperCase())||"GET"}else{var w;p=n.url||"",i=(null==(w=n.method)?void 0:w.toUpperCase())||"GET",f=!0}e.opts.enableTrace&&(l(p)||e.opts.enableCorsTrace&&e.opts.enableCorsTrace(p))?(e.reporter.print("shoot the trace rule, setting req header",p),f?d=n.headers:(void 0===o?o={headers:new Headers}:void 0===o.headers&&(o.headers=new Headers),d=o.headers),s(Object.getOwnPropertyNames(e.opts.requestHeaders),function(t){"function"==typeof d.set?d.set(t,e.opts.requestHeaders[t]()):d[t]=e.opts.requestHeaders[t]()})):e.reporter.print("not shoot the trace rule, setting req header",p),e.opts.withReqHeader&&!d&&(d=f?n.headers:"object"==typeof o?o.headers:void 0);var y={};try{if(d instanceof Headers)d.forEach(function(e,t){y[t]=e});else if(d&&"object"==typeof d)for(var g=0,_=Object.entries(d);g<_.length;g++){var v=_[g];y[v[0]]=v[1]}}catch(t){e.reporter.print(t),e.reporter.reportJSError(t,{bid:"itrace-next",msg:"fetch api header error"})}var x=e.opts.withReqBody&&null!=(a=o)&&a.body?JSON.stringify(o.body):void 0;return r.call(t,n,o).then(function(t){try{var r=e.transferFetchRespHeaders(t.headers)||{},n=e.buildFetchBaseLog(t.url||p,i,t.status,h,y,x,t.statusText,r),o=(t.headers.get("content-type")||"").toLowerCase();c.test(o)&&e.opts.withRespBody?t.clone().text().then(function(t){n.w_resp=t||"",e.sendData(n)}):e.sendData(n)}catch(t){e.reportPluginError(t)}return t}).catch(function(t){var r=e.buildFetchBaseLog(p,i,-1,h,y,x,t.message,void 0);throw e.sendData(r),t})}}else this.reporter.print("global this is null ignore hook fetch")},a.buildFetchBaseLog=function(e,t,r,n,o,s,a,i){var p=Date.now(),c=this.transReqUrl(e).split("?"),d=c.length>1?c[1]:"",l=c[0],u=this.opts.withReqHeader?o:void 0;return{w_res:l,w_param:d,w_body:s,w_method:t,w_rc:r,w_rt:p-n,w_hd:JSON.stringify(u),w_trace_reqid:i&&i["x-wpk-reqid"]||o&&o["x-wpk-reqid"]||void 0,w_rshd:this.opts.withRespHeader?JSON.stringify(i):void 0,w_trace_serverid:i&&i["x-wpk-serverid"]||void 0,w_type:17,msg:a}},a.transReqUrl=function(e){try{if(e.startsWith("/"))return new URL(e,location.href).href}catch(e){}return e},a.hookMtop=function(){var e,t=this;null!=(e=window)&&null!=(e=e.lib)&&null!=(e=e.mtop)&&e.middlewares&&(this.reporter.print("init mtop middlewares"),window.lib.mtop.middlewares.push(function(e){var r=this.params,n=this.options,o=Date.now();return e().then(function(){try{if(t.opts.enableXHR&&n.H5Request&&(n.getJSON||n.postJSON))return;var e=n.retJson||{},s=Date.now()-o,a=e.code||200,i=r.type,p=r.api,c=function(e){var t=[];for(var r in e)t.push(r+"="+e[r]);return t.join("&")}(n.querystring),d=t.opts.withReqBody&&n.postdata&&n.postdata.data?JSON.stringify(n.postdata.data):null,l=t.opts.withRespBody?JSON.stringify(e.data||{}):void 0,u="",h=e.ret;h instanceof Array&&(h=h.join(",")),-1===h.indexOf("SUCCESS")&&(u=h);var f={w_res:p,w_param:c,w_body:d,w_method:i,w_rc:a,w_rt:s,w_resp:l,w_type:100,msg:u};t.sendData(f)}catch(e){t.reportPluginError(e)}})}))},a.sendData=function(e){var t=e.w_res||"",n=e.w_rt||0;!0!==this.opts.onlyForTrace?this.whiteList(t)&&n<121e3?(o(e,{category:r.API,sampleRate:this.opts.sampleRate,pluginVer:this.pluginVer}),this.reporter.report(e)):this.reporter.print("api addr in black list or rt over limit ignore this log item"):this.reporter.print("in uccore. ignore this interface log item")},a.transferXhrRspHeader=function(e){try{var t=function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}(e||"").split(/[\r\n]+/);if(t.length>0){var r={};return s(t,function(e){var t=e.split(": "),n=t.shift()||"";r[n]=t.join(": ")}),r}}catch(e){}},a.transferFetchRespHeaders=function(e){try{if(!e)return{};for(var t,r={},n=i(e);!(t=n()).done;){var o=t.value;r[o[0]]=o[1]}return r}catch(e){return{}}},a.isReqSuccess=function(e){return e>=200&&e<=299},a.reportPluginError=function(e){},a.whiteList=function(e){return-1===e.indexOf("//arms-retcode")&&-1===e.indexOf("//retcode.taobao.com")&&-1===e.indexOf("aliyuncs.com/r.png")&&-1===e.indexOf("//mdap.alipay.com/loggw")&&-1===e.indexOf("//wpk-gateway")&&-1===e.indexOf("//px.wpk.quark.cn")&&-1===e.indexOf("//px.ucweb.com")&&-1===e.indexOf("//px.effirst.com")&&-1===e.indexOf("//px-intl.ucweb.com")&&-1===e.indexOf("//gm.mmstat.com/arms.1.1")&&-1===e.indexOf("//gm.mmstat.com/arms.1.2")&&-1===e.indexOf("//g.alicdn.com/alilog")&&-1===e.indexOf("//log.m.sm.cn/0.gif")},n}(n);return u.pluginId="iTraceInterfacePlugin",u}();
var itracePerfPlugin=function(){"use strict";function e(t,n){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e(t,n)}!function(e){e.ZH="cn",e.QUARK="quark",e.INTL="intl"}({});var t=function(e){return e[e.JSERR=1]="JSERR",e[e.API=2]="API",e[e.PERF=3]="PERF",e[e.RESERR=4]="RESERR",e[e.PVUV=5]="PVUV",e[e.BKPG=6]="BKPG",e[e.LONGTASK=8]="LONGTASK",e[e.INPD=15]="INPD",e[e.NODERES=16]="NODERES",e[e.PGERROR=17]="PGERROR",e[e.BLOCK=18]="BLOCK",e[e.PERFNEXT=1e3]="PERFNEXT",e[e.MAINDOC=1e5]="MAINDOC",e[e.RESTIMING=100001]="RESTIMING",e}({});!function(e){e.JSERR="jserr",e.API="api",e.PERF="jsfsperf",e.RESERR="resloadfail",e.PVUV="flow",e.BKPG="bkpg",e.CUSTOM="jssdkidx",e.INPD="inputdelay",e.LONGTASK="longtask",e.NODERES="nodres",e.PGERROR="pgerror",e.BLOCK="h5block"}({});var n=function(e){e=e||{},this.id=e.id,this.sampleRate=e.sampleRate,this.forceEnable=e.forceEnable};function r(e){return"[object Array]"==={}.toString.call(e)}function i(){for(var e=arguments.length<=0?void 0:arguments[0],t=1,n=arguments.length;t<n;t++){var r=t<0||arguments.length<=t?void 0:arguments[t];for(var i in r)p(r,i)&&(e[i]=r[i])}return e}function o(e,t,n,r,i){void 0===r&&(r=!1),void 0===i&&(i=!1),e.addEventListener?e.addEventListener(t,function o(a){i&&e.removeEventListener(t,o,r),n.call(this,a)},r):e.attachEvent&&e.attachEvent("on"+t,function o(a){i&&e.detachEvent(t,o,r),n.call(this,a)})}!function(e){e.ZH="cn",e.QUARK="quark",e.INTL="intl"}({}),function(e){e[e.JSERR=1]="JSERR",e[e.API=2]="API",e[e.PERF=3]="PERF",e[e.RESERR=4]="RESERR",e[e.PVUV=5]="PVUV",e[e.BKPG=6]="BKPG",e[e.LONGTASK=8]="LONGTASK",e[e.INPD=15]="INPD",e[e.NODERES=16]="NODERES",e[e.PGERROR=17]="PGERROR",e[e.BLOCK=18]="BLOCK",e[e.PERFNEXT=1e3]="PERFNEXT",e[e.MAINDOC=1e5]="MAINDOC",e[e.RESTIMING=100001]="RESTIMING"}({}),function(e){e.JSERR="jserr",e.API="api",e.PERF="jsfsperf",e.RESERR="resloadfail",e.PVUV="flow",e.BKPG="bkpg",e.CUSTOM="jssdkidx",e.INPD="inputdelay",e.LONGTASK="longtask",e.NODERES="nodres",e.PGERROR="pgerror",e.BLOCK="h5block"}({});var a="undefined"!=typeof navigator?(navigator.userAgent||"").toLowerCase():"";function s(){return a.indexOf("quark/")>-1}var c,l,u,f,p=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},d=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},v=function(e,t){var n="";try{for(;e&&9!==e.nodeType;){var r=e,i=r.id?"#"+r.id:d(r)+(r.className&&r.className.trim().length?"."+r.className.trim().replace(/\s+/g,"."):"");if(n.length+i.length>(t||100)-1)return n||i;if(n=n?i+">"+n:i,r.id)break;e=r.parentNode}}catch(e){}return n},h=-1,m=function(e){addEventListener("pageshow",function(t){t.persisted&&(h=t.timeStamp,e(t))},!0)},g=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},b=function(){var e=g();return e&&e.activationStart||0},w=function(e,t){var n=g(),r="navigate";return h>=0?r="back-forward-cache":n&&(document.prerendering||b()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},E=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver(function(e){Promise.resolve().then(function(){t(e.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},y=function(e,t,n,r){var i,o;return function(a){t.value>=0&&(a||r)&&((o=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=o,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t))}},_=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},P=function(e){var t=function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||e(t)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},S=function(e){var t=!1;return function(n){t||(e(n),t=!0)}},T=-1,R=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},L=function(e){"hidden"===document.visibilityState&&T>-1&&(T="visibilitychange"===e.type?e.timeStamp:0,V())},C=function(){addEventListener("visibilitychange",L,!0),addEventListener("prerenderingchange",L,!0)},V=function(){removeEventListener("visibilitychange",L,!0),removeEventListener("prerenderingchange",L,!0)},O=function(){return T<0&&(T=R(),C(),m(function(){setTimeout(function(){T=R(),C()},0)})),{get firstHiddenTime(){return T}}},I=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},N=[1800,3e3],k=function(e,t){t=t||{},I(function(){var n,r=O(),i=w("FCP"),o=E("paint",function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime<r.firstHiddenTime&&(i.value=Math.max(e.startTime-b(),0),i.entries.push(e),n(!0)))})});o&&(n=y(e,i,N,t.reportAllChanges),m(function(r){i=w("FCP"),n=y(e,i,N,t.reportAllChanges),_(function(){i.value=performance.now()-r.timeStamp,n(!0)})}))})},F={passive:!0,capture:!0},A=new Date,D=function(e,t){c||(c=t,l=e,u=new Date,j(removeEventListener),B())},B=function(){if(l>=0&&l<u-A){var e={entryType:"first-input",name:c.type,target:c.target,cancelable:c.cancelable,startTime:c.timeStamp,processingStart:c.timeStamp+l};f.forEach(function(t){t(e)}),f=[]}},G=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){D(e,t),i()},r=function(){i()},i=function(){removeEventListener("pointerup",n,F),removeEventListener("pointercancel",r,F)};addEventListener("pointerup",n,F),addEventListener("pointercancel",r,F)}(t,e):D(t,e)}},j=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,G,F)})},K=[100,300],x=function(e){var t=e;if(!t)return!1;for(;t;){if("true"===t.getAttribute("ignore-lcp"))return!0;t=t.parentElement}return!1};function M(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}var W=function(){function e(){var t,n,r,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,r=void 0,(n=M(n="debug"))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this.debug=i}var t,n;return t=e,n=[{key:"info",value:function(){var e;this.debug&&(e=console).info.apply(e,arguments)}},{key:"warn",value:function(){var e;this.debug&&(e=console).warn.apply(e,arguments)}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,M(r.key),r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),U=[2500,4e3],q={},H=function(e,t){var n=!1,r=!1;k(function(){if(!n){n=!0;var t,i,o={name:"CLS",value:0,entries:[],rating:"good",id:"",delta:0,navigationType:"navigate"},a=0,s=[],c=function(e){e.forEach(function(e){if(!e.hadRecentInput){var t=s[0],n=s[s.length-1];a&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(a+=e.value,s.push(e)):(a=e.value,s=[e])}}),a>o.value&&(o.value=a,o.entries=s)},l=function(e,t){if("function"==typeof PerformanceObserver){var n=new PerformanceObserver(function(e){Promise.resolve().then(function(){t(e.getEntries())})});return n.observe({type:e,buffered:!0}),n}}("layout-shift",c),u=function(){r||(r=!0,function(e){if(e.entries.length){var t=e.entries.reduce(function(e,t){return e&&e.value>t.value?e:t});if(t&&t.sources&&t.sources.length){var n=(r=t.sources).find(function(e){return e.node&&1===e.node.nodeType})||r[0];if(n)return void(e.attribution={largestShiftTarget:v(n.node),largestShiftTime:t.startTime,largestShiftValue:t.value,largestShiftSource:n,largestShiftEntry:t})}}var r;e.attribution={}}(o),e(o))};l&&(t=function(){c(l.takeRecords()),u(),l.disconnect()},i=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||t(e)},addEventListener("visibilitychange",i,!0),addEventListener("pagehide",i,!0),["keydown","click"].forEach(function(e){window.addEventListener(e,function(){r||(c(l.takeRecords()),u(),l.disconnect())},{once:!0,capture:!0})}))}})};function J(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return z(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?z(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}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 z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Q=["navigationStart","unloadEventStart","unloadEventEnd","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","secureConnectionStart","connectEnd","requestStart","responseStart","responseEnd","domLoading","domInteractive","domContentLoadedEventStart","domContentLoadedEventEnd","domComplete","loadEventStart","loadEventEnd","msFirstPaint"],X=["navigate","reload","back_forward"],Z=function(n){function u(e){var t;(t=n.call(this,e)||this).reporter=null,t.autoCollecting=!1,t.pluginVer="2.1.16",t.webVitals={};return t.opts=i({collectResTiming:!1,manual:!1,minLoadTiming:3e3,maxLoadTiming:8e3,minLoadSpr:.05,maxLoadSpr:1,enableLCP:!1},e),t}!function(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,e(t,n)}(u,n);var p=u.prototype;return p.init=function(e){var t=this,n=this;n.reporter=e,n.reporter.print("perf manual option",n.opts.manual),this._initQuarkPCBV(),n.opts.manual&&!e.__customPerfCache__?(n.reporter.print("overwrite reportPerf"),e.reportPerf=function(t){return n.reportPerf(t),e}):(n.reporter.print("auto collect perfData maunal = "+n.opts.manual+" perCache = ",e.__customPerfCache__),n.autoCollectTimingData()),this.opts.enableLCP&&(this.initWebVitalsCollect(),o(window,"pagehide",function(){t._reportPerfLog(!0)}))},p._initQuarkPCBV=function(){var e=this;try{var t;"object"==typeof window.chrome&&"function"==typeof(null==(t=window.chrome.quarkAppPrivate)?void 0:t.isFirstUserVisibleWebContents)&&window.chrome.quarkAppPrivate.isFirstUserVisibleWebContents(function(t){e._qkPCFirstWebPage=t?1:0})}catch(e){}},p._hadCollectedWebVitals=function(){var e=this;if(!this.opts.enableLCP)return!0;var t=function(t){return!e.webVitals["has"+t]||void 0!==e.webVitals[""+t.toLocaleLowerCase()]};return t("Fcp")&&t("Lcp")&&t("Cls")&&t("Fid")},p.initWebVitalsCollect=function(){var e=this;if(this.webVitals.hasFcp=this._browserSupportsEnty("paint"),this.webVitals.hasLcp=this._browserSupportsEnty("largest-contentful-paint"),this.webVitals.hasCls=this._browserSupportsEnty("layout-shift"),this.webVitals.hasFid=this._browserSupportsEnty("first-input"),this.webVitals.hasFcp){for(var t,n=J(performance.getEntriesByType("paint"));!(t=n()).done;){var i=t.value;if("first-contentful-paint"===i.name){this.webVitals.fcp=i.startTime,this._reportPerfLog();break}}k(function(t){e.webVitals.fcp=t.delta,e._reportPerfLog()})}if(this.webVitals.hasFid&&function(e,t){t=t||{},I(function(){var n,r=O(),i=w("FID"),o=function(e){e.startTime<r.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),n(!0))},a=function(e){e.forEach(o)},s=E("first-input",a);n=y(e,i,K,t.reportAllChanges),s&&P(S(function(){a(s.takeRecords()),s.disconnect()})),s&&m(function(){var r;i=w("FID"),n=y(e,i,K,t.reportAllChanges),f=[],l=-1,c=null,j(addEventListener),r=o,f.push(r),B()})})}(function(t){e.webVitals.fid=t.delta,e._reportPerfLog()}),this.webVitals.hasLcp){var o=!1;try{o="function"==typeof this.opts.enableLcpNodeIgnore?this.opts.enableLcpNodeIgnore():this.opts.enableLcpNodeIgnore}catch(e){}!function(e,t){var n,r=new W(null===(n=t=t||{})||void 0===n?void 0:n.debug);I(function(){var n,i=O(),o=w("LCP"),a=function(e){var a;if(null!==(a=t)&&void 0!==a&&a.enableFilter){r.warn("the ignore lcp option is true");for(var s=e.length;s>0;s--){var c=e[s-1];if(!x(c.element)){c.startTime<i.firstHiddenTime&&(o.value=c.startTime-b(),o.entries=[c],n());break}r.warn("hit rules,this lcp entry will be ignored",c)}}else{var l=e[e.length-1];l&&l.startTime<i.firstHiddenTime&&(o.value=Math.max(l.startTime-b(),0),o.entries=[l],n())}},s=E("largest-contentful-paint",a);if(s){n=y(e,o,U,t.reportAllChanges);var c=S(function(){q[o.id]||(a(s.takeRecords()),s.disconnect(),q[o.id]=!0,n(!0))});["keydown","click"].forEach(function(e){addEventListener(e,function(){return setTimeout(c,0)},{once:!0,capture:!0})}),P(c),m(function(r){o=w("LCP"),n=y(e,o,U,t.reportAllChanges),_(function(){o.value=performance.now()-r.timeStamp,q[o.id]=!0,n(!0)})})}})}(function(t){if(e.webVitals.lcp=t.delta,r(t.entries)&&t.entries.length>0){var n=t.entries[t.entries.length-1];e.webVitals.lcpElement=v(n.element),e.webVitals.lcpNav=t.navigationType}e._reportPerfLog()},{enableFilter:o,debug:this.reporter.debug})}this.webVitals.hasCls&&H(function(t){e.webVitals.cls=t.value,e.webVitals.clsElement=t.attribution.largestShiftTarget,e._reportPerfLog()})},p._getWebVitals=function(){return{wl_fcp:this._getIndFromWebVitals("fcp"),wl_fid:this._getIndFromWebVitals("fid"),wl_lcp:this._getIndFromWebVitals("lcp"),wl_cls:this._getIndFromWebVitals("cls"),w_lcp_ele:this.webVitals.lcpElement,w_lcp_navt:this.webVitals.lcpNav,w_cls_ele:this.webVitals.clsElement}},p._getIndFromWebVitals=function(e){var t=this.webVitals[e];if(t&&!(t>6e4))return["fid","cls"].includes(e)?parseFloat(t.toFixed(4)):Math.floor(t)},p.reportPerf=function(e){this.reporter._hasReportPerfData?this.reporter.print("do not repeat report performance data"):(this.reporter.print("manual performance data"),this.reporter.__customPerfCache__=e,this.autoCollectTimingData())},p.autoCollectTimingData=function(){var e,t=this;if(!this.autoCollecting){this.autoCollecting=!0;var n=function(){var e=setTimeout(function(){t.collectNavigationTimingData(),clearTimeout(e)},0)},r=null==(e=this.reporter._sdkEnv)?void 0:e.isPrerender;!function(e){var t;return void 0===e&&(e={}),e.isPrerender?"compass"===e.prerenderType?"object"==typeof(null==(t=window)?void 0:t.prerenderCommitEvent)&&"prerendercommit"===window.prerenderCommitEvent.type:e.hasPrerenderCommit:"complete"===document.readyState}(this.reporter._sdkEnv)?function(e,t){o(window,t?"wpkpageforeground":"load",function(n){t&&"complete"!==document.readyState?o(window,"load",function(t){e.call(null,t)},!1,!0):e.call(null,n)},!1,!0)}(n,r):n()}},p.collectNavigationTimingData=function(){var e=window.performance;if(e){var n,o=e.getEntriesByType?e.getEntriesByType("navigation"):[];if(r(o)&&o.length>0?(n=o[0])._ver=2:(n=e.timing)&&(n._ver=1),n&&function(e){return"object"==typeof e}(n)){var c=i(this.calcNormalStageTime(n),this.calcKeyStageTime(n));for(var l in c)if(void 0===c[l]||null===c[l]||c[l]<0||c[l]>6e4)return void this.reporter.print(l+" 指标无效或超过临界值，本次性能数据丢弃");var u=i(c,this.calcExtData(n,e),{category:t.PERF,sampleRate:this.sampleRate,pluginVer:this.pluginVer});this.opts.manual&&this.reporter.__customPerfCache__&&(u=i(u,this.reporter.__customPerfCache__),this.reporter.__customPerfCache__=null),this.webVitals.oldPerf=u,this._reportPerfLog(),(this.opts.collectResTiming||s()||a.indexOf("ucbrowser/")>-1)&&!this.reporter._hasCollectResTiming&&this._handleBadPerfTiming(u)}else this.reporter.print("没有timing对象,本次不采集性能数据")}},p._reportPerfLog=function(e){if(void 0===e&&(e=!1),this.webVitals.oldPerf)if(e||this._hadCollectedWebVitals()){var t=i(this.webVitals.oldPerf,this._getWebVitals());if(a.indexOf("quarkpc/")>-1)t.w_bv=this._qkPCFirstWebPage;else if(s()&&/(iphone|ipad|ipod|ios)/i.test(a)){var n;t.w_bv=(null==(n=window)||null==(n=n.__quark)?void 0:n.app_w_first_render)||0}this.reporter._hasReportPerfData=!0,this.reporter.report(i(this.webVitals.oldPerf,this._getWebVitals())),this.webVitals={}}else this.reporter.print("no lcp fcp yet");else this.reporter.print("no perf log yet")},p.calcNormalStageTime=function(e){return this.calculateInd(e,{w_unload:[1,2],w_redirect:[3,4],w_appcache:[5,6],w_dns:[6,7],w_tcp:[8,10],w_ssl:[9,10],w_ttfb:[5,12],w_n_rve:[5,13],w_contentdownload:[12,13],w_domparsing:[13,15],w_res:[17,19]})},p.calcKeyStageTime=function(e){return this.calculateInd(e,{w_firstbyte:[5,12],w_tti:[5,15],w_domready:[5,17],w_load:[5,19],w_total:[5,20]})},p.calculateInd=function(e,t){var n,r,i={},o=e._ver||1;for(var a in t){n=e[Q[t[a][0]]],r=e[Q[t[a][1]]],(2===o?n>=0:n>0)&&r>0&&(i[a]=parseFloat((r-n).toFixed(2)))}return i},p.calcExtData=function(e,t){var n,r=t.navigation||{},i=null,o=null,a=null;return 1===e._ver?n=X[r.type]||"other":2===e._ver&&(i=e.encodedBodySize,o=e.decodedBodySize,a=e.transferSize,n=e.type),{w_enbdsize:i,w_debdsize:o,w_transize:a,w_navtype:n}},p._handleBadPerfTiming=function(e){var n=0;e.w_load&&e.w_load>=(this.opts.minLoadTiming||3e3)&&e.w_load<=(this.opts.maxLoadTiming||8e3)?n=this.opts.minLoadSpr||.05:e.w_load&&e.w_load>(this.opts.maxLoadTiming||8e3)&&(n=this.opts.maxLoadSpr||1),n&&performance&&"function"==typeof performance.getEntriesByType&&(this.reporter.report({category:t.RESTIMING,sampleRate:n,bl1:JSON.stringify(performance.getEntriesByType("resource")),bl2:performance.timeOrigin||performance.timing.fetchStart,_forcePost:!0}),this.reporter._hasCollectResTiming=!0)},p._browserSupportsEnty=function(e){var t;return("first-input"!==e||"PerformanceEventTiming"in window)&&(("event"!==e||!self.PerformanceEventTiming||"interactionId"in PerformanceEventTiming.prototype)&&(null==(t=window.PerformanceObserver)||null==(t=t.supportedEntryTypes)?void 0:t.includes(e)))},u}(n);return Z.pluginId="iTracePerfPlugin",Z}();
var itraceFlowPlugin=function(){"use strict";function t(e,n){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t(e,n)}var e;(e={}).ZH="cn",e.QUARK="quark",e.INTL="intl",function(t){t[t.JSERR=1]="JSERR",t[t.API=2]="API",t[t.PERF=3]="PERF",t[t.RESERR=4]="RESERR",t[t.PVUV=5]="PVUV",t[t.BKPG=6]="BKPG",t[t.LONGTASK=8]="LONGTASK",t[t.INPD=15]="INPD",t[t.NODERES=16]="NODERES",t[t.PGERROR=17]="PGERROR",t[t.BLOCK=18]="BLOCK",t[t.PERFNEXT=1e3]="PERFNEXT",t[t.MAINDOC=1e5]="MAINDOC",t[t.RESTIMING=100001]="RESTIMING"}({}),function(t){t.JSERR="jserr",t.API="api",t.PERF="jsfsperf",t.RESERR="resloadfail",t.PVUV="flow",t.BKPG="bkpg",t.CUSTOM="jssdkidx",t.INPD="inputdelay",t.LONGTASK="longtask",t.NODERES="nodres",t.PGERROR="pgerror",t.BLOCK="h5block"}({});var n=function(t){t=t||{},this.id=t.id,this.sampleRate=t.sampleRate,this.forceEnable=t.forceEnable},o=window.history||{},i=window.document,r="historystatechange",a=function(t,e){var n;void 0!==window.CustomEvent?n=new CustomEvent(t,{detail:e}):((n=i.createEvent("HTMLEvents")).initEvent(t,!1,!0),n.detail=e),window.dispatchEvent(n)};function c(t){return"string"==typeof t?t.replace(/^(https?:)?\/\//,"").replace(/\?.*$/,""):""}function s(t){return(t?c(t.replace(/^#\/?/,"")):"")||"[index]"}function u(t,e,n,o){return t.addEventListener?t.addEventListener(e,function i(r){o&&t.removeEventListener(e,i,!1),n.call(t,r)},!1):t.attachEvent&&t.attachEvent("on"+e,function i(r){o&&t.detachEvent("on"+e,i),n.call(t,r)}),this}function E(t,e,n){return n?(t.removeEventListener?t.removeEventListener(e,n):t.detachEvent&&t.detachEvent(e,n),this):this}function l(t){var e=o[t];"function"==typeof e&&(o[t]=function(t,n,i){var s=location.href,u=e.call(o,t,n,i);if("string"!=typeof i)return u;if(i===s)return u;try{var E=s.split("#"),l=i.split("#"),p=c(E[0]),d=c(l[0]),f=E[1]&&E[1].replace(/^\/?(.*)/,"$1"),R=l[1]&&l[1].replace(/^\/?(.*)/,"$1");p!==d?a(r,d):f!==R&&a(r,R)}catch(t){}return u},o[t].toString=t+"() { [native code] }")}var p=function(e){function n(t){return e.call(this,t)||this}return function(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,t(e,n)}(n,e),n.prototype.init=function(t){var e,n;t.immediatePV||t.reportFlow(),t.spa&&(e=function(){s(location.hash)&&(t.resetSession(),t.reportFlow(),a("wpkpgchange",void 0))},n=function(e){s(e.detail)&&(t.resetSession(),t.reportFlow(),a("wpkpgchange",void 0))},u(window,"hashchange",e),u(window,"historystatechange",n),l("pushState"),l("replaceState")),u(window,"beforeunload",function(){E(window,"load"),E(window,"hashchange"),E(window,"historystatechange"),e=n=null})},n}(n);return p.pluginId="iTraceFlowPlugin",p}();
var itraceBlankPlugin=function(){"use strict";function e(){return e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.apply(null,arguments)}function t(e,r){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},t(e,r)}var r;(r={}).ZH="cn",r.QUARK="quark",r.INTL="intl";var n=function(e){return e[e.JSERR=1]="JSERR",e[e.API=2]="API",e[e.PERF=3]="PERF",e[e.RESERR=4]="RESERR",e[e.PVUV=5]="PVUV",e[e.BKPG=6]="BKPG",e[e.LONGTASK=8]="LONGTASK",e[e.INPD=15]="INPD",e[e.NODERES=16]="NODERES",e[e.PGERROR=17]="PGERROR",e[e.BLOCK=18]="BLOCK",e[e.PERFNEXT=1e3]="PERFNEXT",e[e.MAINDOC=1e5]="MAINDOC",e[e.RESTIMING=100001]="RESTIMING",e}({});!function(e){e.JSERR="jserr",e.API="api",e.PERF="jsfsperf",e.RESERR="resloadfail",e.PVUV="flow",e.BKPG="bkpg",e.CUSTOM="jssdkidx",e.INPD="inputdelay",e.LONGTASK="longtask",e.NODERES="nodres",e.PGERROR="pgerror",e.BLOCK="h5block"}({});var o=function(e){e=e||{},this.id=e.id,this.sampleRate=e.sampleRate,this.forceEnable=e.forceEnable};function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(null,arguments)}function a(e){return"function"==typeof e}function c(){for(var e=arguments.length<=0?void 0:arguments[0],t=1,r=arguments.length;t<r;t++){var n=t<0||arguments.length<=t?void 0:arguments[t];for(var o in n)s(n,o)&&(e[o]=n[o])}return e}function l(e,t,r,n,o){void 0===n&&(n=!1),void 0===o&&(o=!1),e.addEventListener?e.addEventListener(t,function i(a){o&&e.removeEventListener(t,i,n),r.call(this,a)},n):e.attachEvent&&e.attachEvent("on"+t,function i(a){o&&e.detachEvent(t,i,n),r.call(this,a)})}!function(e){e.ZH="cn",e.QUARK="quark",e.INTL="intl"}({}),function(e){e[e.JSERR=1]="JSERR",e[e.API=2]="API",e[e.PERF=3]="PERF",e[e.RESERR=4]="RESERR",e[e.PVUV=5]="PVUV",e[e.BKPG=6]="BKPG",e[e.LONGTASK=8]="LONGTASK",e[e.INPD=15]="INPD",e[e.NODERES=16]="NODERES",e[e.PGERROR=17]="PGERROR",e[e.BLOCK=18]="BLOCK",e[e.PERFNEXT=1e3]="PERFNEXT",e[e.MAINDOC=1e5]="MAINDOC",e[e.RESTIMING=100001]="RESTIMING"}({}),function(e){e.JSERR="jserr",e.API="api",e.PERF="jsfsperf",e.RESERR="resloadfail",e.PVUV="flow",e.BKPG="bkpg",e.CUSTOM="jssdkidx",e.INPD="inputdelay",e.LONGTASK="longtask",e.NODERES="nodres",e.PGERROR="pgerror",e.BLOCK="h5block"}({}),"undefined"!=typeof navigator&&(navigator.userAgent||"").toLowerCase();var s=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},p=function(e,t){if(!e)return"e";var r=window.getComputedStyle(e);return"0px"===r.width||"0px"===r.height||"none"===r.display||"hidden"===r.visibility||"0"===r.opacity||e.getBoundingClientRect().top>t?"e":-1!==["VIDEO","AUDIO","IMG","BUTTON","TEXTAREA","RADIO","CHECKBOX","SELECT","IFRAME","CANVAS","SVG"].indexOf(e.nodeName)||"none"!==r.backgroundImage?"v":"rgba(0, 0, 0, 0)"!==r.backgroundColor||"0px"!==r.borderWidth||"none"!==r.boxShadow?"ve":"oc"};var u=function(r){function o(e){var t;(t=r.call(this,e)||this).reporter=null,t.pluginVer="2.3.0";return t.opts=c({maxDepth:8,minElements:10,startCheckingTime:5e3},e),t}!function(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,t(e,r)}(o,r);var s=o.prototype;return s.init=function(e){var t,r,n,o=this,c=this;c.reporter=e;try{if(c.opts.ignorePageUrls&&a(c.opts.ignorePageUrls)&&c.opts.ignorePageUrls(location))return void c.reporter.print("current url is in ignore list, skip blank check");this.reporter.detectBlank=function(e){o._checkBlank(e)}}catch(e){this.reporter.print(e)}if(null!=(t=this.reporter._sdkEnv)&&t.iOSNBCheck)return function(e,t,r,n){var o;if("function"==typeof(null==(o=window)||null==(o=o.ucapi)?void 0:o.invoke)){var a=i({},t,{success:r,fail:n});window.ucapi.invoke(e,a)}else n&&n("ucapi is not exist")}("webMonitor.setConfig",{startCheckingTime:this.opts.startCheckingTime,frmId:this.reporter._frmId,sampleRate:this.opts.sampleRate,w_rel:this.reporter.rel,uid:this.reporter.uid}),void this.reporter.print("blank check will be performed by client");var s=null==(r=this.reporter._sdkEnv)?void 0:r.isPrerender;!function(e){var t;return void 0===e&&(e={}),e.isPrerender?"compass"===e.prerenderType?"object"==typeof(null==(t=window)?void 0:t.prerenderCommitEvent)&&"prerendercommit"===window.prerenderCommitEvent.type:e.hasPrerenderCommit:"complete"===document.readyState}(this.reporter._sdkEnv)?function(e,t){l(window,t?"wpkpageforeground":"load",function(r){t&&"complete"!==document.readyState?l(window,"load",function(t){e.call(null,t)},!1,!0):e.call(null,r)},!1,!0)}(function(){c._onloadBlankCheck()},s):c._onloadBlankCheck(),null!=(n=this.opts.spaOption)&&n.enable&&l(window,"wpkpgchange",function(){o.reporter.print("spa page change blank detect"),c._routeChangeBlankCheck()})},s._onloadBlankCheck=function(){var e=this;this.onLoadDetectTimer=setTimeout(function(){try{e._checkBlank()}catch(t){e.reporter.print("bkpg checking oops: ",t)}e.onLoadDetectTimer=null},e.opts.startCheckingTime)},s._routeChangeBlankCheck=function(){var t,r=this;this.onLoadDetectTimer&&(clearTimeout(this.onLoadDetectTimer),r.reporter.print("page changed cancel the blank detect after onload")),this.pageChangeDetectTimer&&clearTimeout(this.pageChangeDetectTimer),this.pageChangeDetectTimer=setTimeout(function(){try{var t,n=e({},r.opts);n.rootDom=(null==(t=n.spaOption)?void 0:t.rootDom)||n.rootDom,r._checkBlank(n)}catch(e){r.reporter.print("bkpg checking oops: ",e)}r.pageChangeDetectTimer=null},(null==(t=r.opts.spaOption)?void 0:t.startCheckingTime)||3e3)},s._checkBlank=function(t){var r=this,o=t||r.opts,i=document.body;o.rootNode?i=o.rootNode:o.rootDom&&(i="function"==typeof o.rootDom?o.rootDom():o.rootDom);var c,l,s,u,d,h,f,E,g={deepestLayer:0,hasAtLeastOneVisibleNode:!1,total:0,invisible:0,visibleEmpty:0,occupy:0,domDSL:[]},m={},R=-1,v=Date.now();if(i){var k=function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}(i.innerText);if(k)c=o.minTextLength||0,l=k,c&&c>0&&l&&c>l.split("").length?R=105:function(e,t){return function(e,t){for(var r,n=0,o=e.length;n<o;n++)if(r=e[n],t.call(this,r))return!0;return!1}(e,function(e){return e===t})}(o.keyNoteText||[],k)&&(R=102);else{var y=function(e,t){var r=[];try{for(var n=0,o=e.length;n<o;n++)t.call(this,e[n],n,e)&&r.push(e[n]);return r}catch(e){}return e}(Array.prototype.slice.call(i.children),function(e){return-1===["STYLE","SCRIPT","LINK"].indexOf(e.nodeName)});s=y,u=o.maxDepth||8,d=o.minElements||4,f=!0,E=function(e,t){var r=Array.prototype.slice.call(e),n=window.innerHeight;for(t>h.deepestLayer&&(h.deepestLayer=t);r.length&&f;){var o=r.shift();h.total++;var i=p(o,n);if(h.domDSL.push({tag:o.tagName,layer:t,cls:o.className,isEmpty:"e"===i||"oc"===i}),"e"!==i){if("v"===i){h.hasAtLeastOneVisibleNode=!0,f=!1;break}if("ve"===i&&(h.visibleEmpty++,d&&h.visibleEmpty>d)){f=!1;break}"oc"===i&&h.occupy++,t<=u&&o.children.length&&E(o.children,t+1)}else h.invisible++}},(h={deepestLayer:0,hasAtLeastOneVisibleNode:!1,total:0,invisible:0,visibleEmpty:0,occupy:0,domDSL:[]}).deepestLayer=1,E(s,1),!(g=h).hasAtLeastOneVisibleNode&&g.visibleEmpty<(o.minElements||4)&&(R=101,m={wl_ven:g.visibleEmpty,wl_ocn:g.occupy})}}else R=103;var O=Date.now()-v;r.reporter.print("节点总数："+g.total+", 最大层深："+g.deepestLayer+", 耗时："+O);var b={w_fp:-1};if(R>=0){r.reporter.print("检测到白屏，白屏类型："+R),b=e({w_fp:R,w_dsl:JSON.stringify(g.domDSL),w_depth:g.deepestLayer,w_domcnt:g.total,wl_dcost:O},m),r.sendData(b);var P=document.documentElement.innerHTML||"";P.length<=1e5&&r.reporter.report({category:n.MAINDOC,sampleRate:1,bl1:P,_forcePost:!0}),r.reporter._hasCollectResTiming||(r.reporter.report({category:n.RESTIMING,bl1:JSON.stringify(performance.getEntriesByType("resource")),bl2:performance.timeOrigin||performance.timing.fetchStart,_forcePost:!0}),r.reporter._hasCollectResTiming=!0)}try{o.callback&&a(o.callback)&&o.callback(b)}catch(e){this.reporter.print("blank callback error",e)}},s.sendData=function(e){c(e,{category:n.BKPG,sampleRate:this.sampleRate,pluginVer:this.pluginVer}),this.reporter.report(e)},o}(o);return u.pluginId="iTraceBlankPlugin",u}();
var itraceResourcePlugin=function(){"use strict";function e(t,r){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e(t,r)}var t;(t={}).ZH="cn",t.QUARK="quark",t.INTL="intl";var r=function(e){return e[e.JSERR=1]="JSERR",e[e.API=2]="API",e[e.PERF=3]="PERF",e[e.RESERR=4]="RESERR",e[e.PVUV=5]="PVUV",e[e.BKPG=6]="BKPG",e[e.LONGTASK=8]="LONGTASK",e[e.INPD=15]="INPD",e[e.NODERES=16]="NODERES",e[e.PGERROR=17]="PGERROR",e[e.BLOCK=18]="BLOCK",e[e.PERFNEXT=1e3]="PERFNEXT",e[e.MAINDOC=1e5]="MAINDOC",e[e.RESTIMING=100001]="RESTIMING",e}({});!function(e){e.JSERR="jserr",e.API="api",e.PERF="jsfsperf",e.RESERR="resloadfail",e.PVUV="flow",e.BKPG="bkpg",e.CUSTOM="jssdkidx",e.INPD="inputdelay",e.LONGTASK="longtask",e.NODERES="nodres",e.PGERROR="pgerror",e.BLOCK="h5block"}({});var n=function(e){e=e||{},this.id=e.id,this.sampleRate=e.sampleRate,this.forceEnable=e.forceEnable};!function(e){e.ZH="cn",e.QUARK="quark",e.INTL="intl"}({}),function(e){e[e.JSERR=1]="JSERR",e[e.API=2]="API",e[e.PERF=3]="PERF",e[e.RESERR=4]="RESERR",e[e.PVUV=5]="PVUV",e[e.BKPG=6]="BKPG",e[e.LONGTASK=8]="LONGTASK",e[e.INPD=15]="INPD",e[e.NODERES=16]="NODERES",e[e.PGERROR=17]="PGERROR",e[e.BLOCK=18]="BLOCK",e[e.PERFNEXT=1e3]="PERFNEXT",e[e.MAINDOC=1e5]="MAINDOC",e[e.RESTIMING=100001]="RESTIMING"}({}),function(e){e.JSERR="jserr",e.API="api",e.PERF="jsfsperf",e.RESERR="resloadfail",e.PVUV="flow",e.BKPG="bkpg",e.CUSTOM="jssdkidx",e.INPD="inputdelay",e.LONGTASK="longtask",e.NODERES="nodres",e.PGERROR="pgerror",e.BLOCK="h5block"}({}),"undefined"!=typeof navigator&&(navigator.userAgent||"").toLowerCase();var a=function(t){function n(e){var r;return(r=t.call(this,e)||this).reporter=null,r.pluginVer="2.0.4",r}!function(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,e(t,r)}(n,t);var a=n.prototype;return a.init=function(e){this.listenResourceError(),this.reporter=e},a.getDomPath=function(e,t){var r=e.id?"#"+e.id:"",n="";e.className&&"string"==typeof e.className&&(n="."+e.className.split(" ").join("."));var a=e.tagName.toLowerCase();return e.parentNode&&e.parentNode.tagName&&t-1!=0?this.getDomPath(e.parentNode,t-1)+" > "+a.toLowerCase()+r+n:a+r+n},a.tagNameToType=function(e){var t=-1;switch(e.tagName.toLowerCase()){case"img":t=1;break;case"link":e.rel&&"stylesheet"===e.rel.toLowerCase()&&(t=2);break;case"script":t=3;break;case"video":t=11}return t},a.listenResourceError=function(){var e=this;!function(e,t,r,n,a){void 0===n&&(n=!1),void 0===a&&(a=!1),e.addEventListener?e.addEventListener(t,function o(i){a&&e.removeEventListener(t,o,n),r.call(this,i)},n):e.attachEvent&&e.attachEvent("on"+t,function o(i){a&&e.detachEvent(t,o,n),r.call(this,i)})}(window,"error",function(t){if(!function(e){var t=e.target;return!(t&&t.tagName)||e.message||e.filename||e.lineno||e.colno}(t)){var n=t.target.src||t.target.href;n===window.location.href&&(n="empty src");var a,o=e.tagNameToType(t.target);11===o&&t.target.error&&(a=t.target.error.code);var i={msg:n+" 加载失败",w_res:n,w_type:o,w_err:a,w_xpath:e.getDomPath(t.target,5),category:r.RESERR,sampleRate:e.sampleRate,pluginVer:e.pluginVer};e.reporter.report(i)}},!0,!1)},n}(n);return a.pluginId="iTraceResourcePlugin",a}();
var itraceNext=function(t){"use strict";function e(t,r){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},e(t,r)}var r=function(t){return t.ZH="cn",t.QUARK="quark",t.INTL="intl",t}({});!function(t){t[t.JSERR=1]="JSERR",t[t.API=2]="API",t[t.PERF=3]="PERF",t[t.RESERR=4]="RESERR",t[t.PVUV=5]="PVUV",t[t.BKPG=6]="BKPG",t[t.LONGTASK=8]="LONGTASK",t[t.INPD=15]="INPD",t[t.NODERES=16]="NODERES",t[t.PGERROR=17]="PGERROR",t[t.BLOCK=18]="BLOCK",t[t.PERFNEXT=1e3]="PERFNEXT",t[t.MAINDOC=1e5]="MAINDOC",t[t.RESTIMING=100001]="RESTIMING"}({});var n=function(t){return t.JSERR="jserr",t.API="api",t.PERF="jsfsperf",t.RESERR="resloadfail",t.PVUV="flow",t.BKPG="bkpg",t.CUSTOM="jssdkidx",t.INPD="inputdelay",t.LONGTASK="longtask",t.NODERES="nodres",t.PGERROR="pgerror",t.BLOCK="h5block",t}({});function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i.apply(null,arguments)}var o=[-6,-7],s=[-5,-4,-3,-2,-1],a=["fr","rom","model","bver","sver","net"];function c(t){if(p(console)&&f(console.warn)){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];(e=console).warn.apply(e,["[itrace says] "+t].concat(n))}}function u(t){return void 0!==t}function d(t){var e=Date.now();"undefined"!=typeof window&&window.performance&&"function"==typeof window.performance.now&&(e+=performance.now());var r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var r=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?r:11&r).toString(16)});return!1===t?r.replace(/-/g,""):r}function p(t){return"object"==typeof t}function l(t){return"[object Array]"==={}.toString.call(t)}function f(t){return"function"==typeof t}function h(t){var e;switch(t){case 1:e=n.JSERR;break;case 2:e=n.API;break;case 3:e=n.PERF;break;case 4:e=n.RESERR;break;case 5:e=n.PVUV;break;case 6:e=n.BKPG;break;case 8:e=n.LONGTASK;break;case 15:e=n.INPD;break;case 16:e=n.NODERES;break;case 17:e=n.PGERROR;break;case 18:e=n.BLOCK;break;default:e=n.CUSTOM}return e}function g(t){var e=+new Date;return!0===t&&(e=Math.floor(e/1e3)),e}function v(t){var e=[];for(var r in t)e.push(r+"="+t[r]);return e.join("&")}function _(t){return!!t&&(t>=1||"100%"===t||(/^\d+(\.\d+)?%$/.test(t)?Math.random()<parseFloat(t)/100:t>0&&t<1&&Math.random()<t))}function y(){for(var t=arguments.length<=0?void 0:arguments[0],e=1,r=arguments.length;e<r;e++){var n=e<0||arguments.length<=e?void 0:arguments[e];for(var i in n)x(n,i)&&(t[i]=n[i])}return t}function m(t,e){if(-1===e)t();else var r=setTimeout(function(){t(),clearTimeout(r)},e||0)}function w(t,e,r,n,i){void 0===n&&(n=!1),void 0===i&&(i=!1),t.addEventListener?t.addEventListener(e,function o(s){i&&t.removeEventListener(e,o,n),r.call(this,s)},n):t.attachEvent&&t.attachEvent("on"+e,function o(s){i&&t.detachEvent(e,o,n),r.call(this,s)})}function b(t){for(var e in t)0===e.indexOf("_")&&delete t[e];for(var r,n=1;n<=15;n++)x(t,r="bl"+n)&&(t["w_"+r]=t[r],delete t[r]);r=null,function(t,e,r){for(var n,i=e.length,o=0;o<i;o++)"string"==typeof(n=t[e[o]])?t[e[o]]=n.substring(0,r):"object"==typeof n&&(n=JSON.stringify(n),t[e[o]]=n.substring(0,r))}(t,["c1","c2","c3","c4","c5","c6","c7","c8","c9","c10"],128)}var R="undefined"!=typeof navigator?(navigator.userAgent||"").toLowerCase():"";function k(){return R.indexOf("quark/")>-1}function E(){return R.indexOf("quarkpc/")>-1}function S(t,e,r,n){var o;if("function"==typeof(null==(o=window)||null==(o=o.ucapi)?void 0:o.invoke)){var s=i({},e,{success:r,fail:n});window.ucapi.invoke(t,s)}else n&&n("ucapi is not exist")}var L=function(t){return 0===t?0:o.indexOf(t)>-1?1:s.indexOf(t)>-1?2:0},P=function(t){for(var e={},r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];void 0===t[i]||null===t[i]||a.includes(i)?(e[i]=t[i],delete t[i]):("object"==typeof t[i]&&(t[i]=JSON.stringify(t[i])),"string"!=typeof t[i]&&(t[i]=""+t[i]))}return e},x=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},O=function(t){if(!t)return 0;try{return"function"==typeof TextEncoder?(new TextEncoder).encode(t).length:function(t){for(var e=0,r=0,n=t.length;r<n;r++){var i=t.charCodeAt(r);e+=i<128?1:i<2048?2:i<55296?3:i<56320?4:3}return e}(t)}catch(e){return t.length}},I=function(){function t(t){this.logSrc="jssdk",this.sdkCode="default",t=t||{},this.bid=t.bid||"",this.cid=t.cid||"",this.uid=t.uid||"",this.rel=t.rel||"",this.utdid=t.utdid||void 0,this.debug=t.debug||!1,this.delay=!1!==t.delay,this.cluster=t.cluster||r.ZH,this.sampleRate=t.sampleRate,this.ready=!1,this.plugins=t.plugins||[],this.gateway=t.gateway||""}var e=t.prototype;return e.print=function(){this.debug&&c.apply(void 0,arguments)},e.isReady=function(){return this.ready},e.setReady=function(){this.ready=!0},e.setConfig=function(t){var e=this;if(p(t)){var r=function(r){var n;(function(t,e){for(var r,n=0,i=t.length;n<i;n++)if(r=t[n],e.call(this,r))return!0;return!1})(["plugins"],function(t){return t===r})||y(e,((n={})[r]=t[r],n))};for(var n in t)r(n)}},t}(),C=function(){function t(){this.logList=[],this.preLogList=[]}var e=t.prototype;return e.getLogList=function(){return this.logList},e.takeLogList=function(){var t=this.logList;return this.logList=[],t},e.getPreLogList=function(){return this.preLogList},e._updateLogQueue=function(t){var e=this.logList.length,r=!0;if(1!==t.category||0===e)this.logList.push(t);else{for(var n,i=0;i<e;i++)if((n=this.logList[i])._hash===t._hash){n.w_cnt=n.w_cnt?++n.w_cnt:1,r=!1;break}r&&this.logList.push(t)}return r},e.popLog=function(){return this.logList.shift()},e.popPreLog=function(){return this.preLogList.shift()},e.pushLog=function(t){return this._updateLogQueue(t)},e.hasLog=function(){return this.logList&&this.logList.length>0},e.pushPreLog=function(t){this.preLogList.push(t)},e.hasPreLog=function(){return this.preLogList&&this.preLogList.length>0},e.setPreLogList=function(t){void 0===t&&(t=[]),this.preLogList=this.preLogList.concat(t)},e.clearLogList=function(){this.logList=[]},t}(),j=function(t){return t.ZH="cn",t.QUARK="quark",t.INTL="intl",t}({}),A=function(){function t(){}return t.getAddr=function(e,r){return r?""+r+t.uploadPath:""+t.hosts[e.valueOf()]+t.uploadPath},t.getConfAddr=function(e,r){return r?""+r+t.jconfigPath:""+t.hosts[e.valueOf()]+t.jconfigPath},t.getHosts=function(e){return t.hosts[e]},t}();A.hosts={cn:"https://px.effirst.com",intl:"https://px-intl.ucweb.com",quark:"https://px.wpk.quark.cn",er:"https://erpx.effirst.com"},A.uploadPath="/api/v1/jssdk/upload",A.jconfigPath="/api/v1/jconfig";var N=function(t){return t[t.JSERR=1]="JSERR",t[t.API=2]="API",t[t.PERF=3]="PERF",t[t.RESERR=4]="RESERR",t[t.PVUV=5]="PVUV",t[t.BKPG=6]="BKPG",t[t.LONGTASK=8]="LONGTASK",t[t.INPD=15]="INPD",t[t.NODERES=16]="NODERES",t[t.PGERROR=17]="PGERROR",t[t.BLOCK=18]="BLOCK",t[t.PERFNEXT=1e3]="PERFNEXT",t[t.MAINDOC=1e5]="MAINDOC",t[t.RESTIMING=100001]="RESTIMING",t}({});!function(t){t.JSERR="jserr",t.API="api",t.PERF="jsfsperf",t.RESERR="resloadfail",t.PVUV="flow",t.BKPG="bkpg",t.CUSTOM="jssdkidx",t.INPD="inputdelay",t.LONGTASK="longtask",t.NODERES="nodres",t.PGERROR="pgerror",t.BLOCK="h5block"}({});var T=0,B=2;function U(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return q(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?q(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}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 q(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var D,M=window,G=document,V=navigator,K=location,J=void 0!==M.devicePixelRatio?M.devicePixelRatio:1,F="__itrace",H="__itrace_conf",Q="__itrace_wid",W="__wpkreporterwid_";function X(t,e){for(var r,n,i=t.split("."),o=e.split("."),s=i.length,a=0;a<s;a++)if((r=parseInt(i[a]))!==(n=parseInt(o[a])))return r>n;return!0}function z(){var t=[],e=function(){for(var t=navigator.userAgent.split(" "),e=0;e<t.length;e++)if(t[e].toLowerCase().indexOf("quarkpc/")>-1)return t[e].split("/")[1]}();return e&&(X(e,"1.0.0.0")&&t.push.apply(t,["flow","blank"]),X(e,"2.0.0.0")&&t.push.apply(t,["perf","jserror"])),t}function Z(t){try{if(u(window)&&window.ucweb&&window.ucweb.window||u(t)){for(var e=(t||V.userAgent).split(" "),r=e.length,n=!1,i=0;i<r;i++)if(-1!==e[i].indexOf("UWS/")){n=X(e[i].split("/")[1],"2.13.2.37");break}return n||R.indexOf("ucbrowser/")>-1||k()||R.indexOf("tongyi/")>-1||R.indexOf("@TongYi_")>-1}}catch(t){console.error(t)}return!1}var $=function(){var t,e;return 3===(null==(t=window.ucweb)||null==(t=t.window)||null==(t=t.performance)?void 0:t.pt)||(null==(e=window.compass)||null==(e=e.env)?void 0:e.isPrerender)};function Y(t){try{var e="__wpktestingls__";return t().setItem(e,e),t().removeItem(e),!0}catch(t){return!1}}function tt(){return localStorage}var et={get:function(t){if(Y(tt)){var e=tt().getItem(t);if(e){if(e=JSON.parse(e),Date.now()<e.expireAt)return e;this.rm(t)}}return null},set:function(t,e){Y(tt)&&t&&e&&(e.expireAt=Date.now()+18e5,tt().setItem(t,JSON.stringify(e)))},rm:function(t){Y(tt)&&tt().removeItem(t)}};function rt(){return sessionStorage}var nt=function(t,e){if(!e)return!0;if(!l(e))return!1;if(1===e.length)return t===e[0];if(2===e.length){var r=e[0],n=e[1];return r&&!n?i(t,r):r&&n?i(t,r)&&i(n,t):i(n,t)}return!1;function i(t,e){var r=t.split("."),n=e.split(".");return!(parseInt(r[0])<parseInt(n[0]))&&(parseInt(r[0])>parseInt(n[0])||!(parseInt(r[1])<parseInt(n[1]))&&(parseInt(r[1])>parseInt(n[1])||parseInt(r[2])>=parseInt(n[2])))}};function it(t,e,r,n){var i="itracereporter:dynamicConf:"+t,o=et.get(i);if(o)f(n)&&n(o);else{var s=v({app:t,tm:g(!0),ud:d(),sver:e,sign:"c41e43c828c16c16a6eb1c9c1e68e8ce"});!function(t,e){if("undefined"==typeof XMLHttpRequest)e();else{var r=new XMLHttpRequest;r.onreadystatechange=function(){if(4===r.readyState){var t;if(200===r.status&&r.response)try{var n=JSON.parse(r.response);0===n.code&&(t=n.config||[])}catch(t){}e(t)}};try{r.open("GET",t,!0),r.timeout=3e3,r.send()}catch(t){}}}(r+"?wpk-header="+encodeURIComponent(s),function(t){if(o={},void 0!==t){for(var r=t.length,s=0;s<r;s++){var a=t[s],c=a.sdkver;if(nt(e,c)){if(a.common&&void 0!==a.common.sampleRate&&(o.all=a.common.sampleRate),a.config)for(var u=a.config.length,d=0;d<u;d++){var p=a.config[d];if(p.type){if(p.category_rate)for(var l in p.category_rate)o[p.type+"@"+l]=p.category_rate[l];p.sampleRate&&(o[p.type]=p.sampleRate)}}break}}try{et.set(i,o)}catch(t){}}f(n)&&n(o)})}}function ot(){return M.cookieStore}var st=function(t,e){var r;null==(r=ot())||r.get(t).then(function(t){e(null==t?void 0:t.value)}).catch(function(t){console.error(t),e(null)})},at=function(t){var e;Object.assign(t,{sameSite:"none"}),null==(e=ot())||e.set(t).catch(function(t){return console.error(t)})},ct=function(t){var e;null==(e=ot())||e.delete(t).catch(function(t){return console.error(t)})},ut={},dt=function(t,e,r,n,i){if(void 0===e){if(!ut[t]){var o=null,s=new RegExp(t+"=([^;]+)");try{o=s.exec(G.cookie)}catch(t){return null}o&&(ut[t]=o[1])}return ut[t]}var a=t+"="+e;n&&(a+="; domain="+n),i&&(a+="; path="+i),r&&(a+="; max-age="+r);try{G.cookie=a}catch(t){return null}return a},pt=null;function lt(t,e){var r,n;(n=ot())&&"function"==typeof n.get?(console.warn("[itrace says] using cookieStore"),t?(ct(Q),ct(W),(r=pt)||(r=d(),pt=r),e&&e(r)):st(Q,function(t){t||(t=d(),pt=t),at({name:Q,value:t,expires:Date.now()+15552e6}),e&&e(t)})):(console.warn("[itrace says] using document.cookie"),t?(!function(){var t=dt(Q);t&&dt(Q,"",-1),(t=dt(W))&&dt(W,"",-1)}(),r=pt):r=dt(Q),r||(r=d(),t?pt=r:dt(Q,r,15552e3)),e&&e(r))}var ft=function(t){return"itrace"+(t.replace(/^\S/g,function(t){return t.toUpperCase()})+"Plugin")},ht=function(t,e){try{var r=ft(e.id),n=window[r];if(f(n))new n(e).init(t),t.print(e.id+" plugin init success");else t.print(e.id+" plugin's constructor is not exist")}catch(r){t.print(e.id+" plugin init fail: ",r)}},gt=function(t,e){try{new(0,e.plugin)(e).init(t),t.print(e.id+" plugin init success by option.plugin")}catch(r){t.print(e.id+" plugin init fail: ",r)}};function vt(t,e){var r=t._sdkEnv.useU4Monitor,n=["flow","interface","jserror","perf","resource","blank"],i=[],o=[];t._sdkEnv.isQuarkPC&&(n=z());for(var s,a=U(e);!(s=a()).done;){var c=s.value,u="string"==typeof c?{id:c,plugin:null}:c;if(u.id){if(r&&n.includes(u.id)&&!u.forceEnable){if(t.print("uccore monitor has been enabled, so ["+u.id+"] plugin will be ignore. you can set the plugin option [ forceEnable ] as true to enable it."),"interface"!==u.id||!u.enableTrace)continue;u.onlyForTrace=!0}if(u.plugin&&f(u.plugin))gt(t,u);else{var d=ft(u.id);f(window[d])?(t.print(u.id+" plugin already exists in window, init it immediately"),ht(t,u)):(i.push(u),o.push("itrace-"+u.id+".iife.js"))}}else t.print("plugin options has no id, base sdk will ignore it")}!function(t,e,r){if(r.length<=0)t.print("no plugins need load from cdn");else{var n=(t.cdn||"https://g.alicdn.com/woodpeckerx/itrace-next")+"/??",i=document.getElementsByTagName("script")[0],o=document.createElement("script");if(o.type="text/javascript",o.crossOrigin="anonymous",o.async=!0,i&&i.parentNode)i.parentNode.insertBefore(o,i);else{var s=document.head;null==s||s.appendChild(o)}o.src=n+r.join(","),o.onload=function(){for(var r,n=U(e);!(r=n()).done;){var i=r.value;ht(t,i)}}}}(t,i,o)}function _t(){var t;if(!G)return{};var e=G.referrer;e&&-1!==e.indexOf('"')&&(e=encodeURIComponent(G.referrer));var r,n=function(){if(void 0===D){var t=(V?V.userAgent:"").toLowerCase();D=t.indexOf("electron/")>-1}return D}()?"renderer":void 0,i=null==(t=M.__itracecfg__)?void 0:t.wv_traceid,o=V.deviceMemory||-1;return{w_url:(K.origin?K.origin:K.protocol+"//"+K.host)+K.pathname,w_query:K.search,w_ref:K.hash.substring(1),w_title:G.title,ua:V.userAgent,referrer:e,dsp_dpi:J||1,dsp_w:M.screen.width,dsp_h:M.screen.height,w_wv_traceid:i,wk_proc_type:n,wl_devmem:o,net:(r=V.connection,r&&r.type?"none"===r.type?"disconnected":"cellular"===r.type?"slow-2g"===r.effectiveType?"2g":r.effectiveType:r.type:"")}}var yt=function(t,e,r){if("function"==typeof XMLHttpRequest){var n=new XMLHttpRequest;n.open("POST",e,!0),n.setRequestHeader("Content-Type","text/plain"),n.timeout=5e3,n.send(r)}else t.print("xhr is not supported")},mt=function(t,e){S("webMonitor.reportWpkLog",e,function(e){t.print("report success by jsapi",e)},function(e){t.print("report failed by jsapi",e)})};function wt(){return V&&!!V.sendBeacon&&M.Blob}var bt=function(t){try{return 1===((null==M?void 0:M.nativeWpkReport)||{})[t]}catch(t){return!1}};function Rt(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return kt(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?kt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}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 kt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}!function(){if(!p(window)||!u(window.navigator))throw new Error("iTrace sdk only support")}();var Et=function(t){function r(e){var r;return(r=t.call(this,e)||this).uc_param_str="",r.cdn="",r._sdkEnv={},r._wid="",r._begin=0,r._sid="",r._frmId="",r.__sn=0,r._dyStart=0,r._hasWidTimer=!1,r.spa=e.spa||!1,r.ignoreU4HA=!0===e.ignoreU4HA,r.checkHidden=!1!==e.checkHidden,r.disableCookie=!0===e.disableCookie,r.supportBeaconBody=!1!==e.supportBeaconBody,r.maxSessDuration=e.maxSessDuration||288e5,r.immediatePV=!1!==e.immediatePV,r.uc_param_str=e.uc_param_str||"prveosfrnwutmisvbditcu",r.sdkVer="2.3.34",r.sdkCode="browser",r.beforeSend=e.beforeSend,r.clearBeforeunload=!1!==e.clearBeforeunload,r.cdn=e.cdn||"",r._logq=new C,r._dying=!1,r._prerender=e.prerender,r.useNativeCH=!1!==e.useNativeCH,!e.cluster&&k()&&(r.cluster=j.QUARK),r}!function(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,e(t,r)}(r,t);var n=r.prototype;return n.prerenderCommit=function(){if(this._sdkEnv.hasPrerenderCommit)this.print("prerenderCommit can only call once");else{this.print("prerender commit event"),this._sdkEnv.hasPrerenderCommit=!0;var t=new Event("wpkpageforeground");window.dispatchEvent(t),this.reportImmediatePV(!0)}},n._listenCompassPrerenderEvt=function(){var t=this;$()&&(this._sdkEnv.prerenderType="compass",w(document,"prerendercommit",function(){t.prerenderCommit()},!1,!0),w(document,"touchstart",function(){t.prerenderCommit()},!1,!0))},n._loadPlugins=function(){if(l(this.plugins)&&this.plugins.length>0)try{vt(this,this.plugins)}catch(t){this._reportToSelf(t,{c1:"插件初始化异常"})}},n._normalizeLog=function(t){var e=t.uid||this.uid||this._wid,r=t.rel||this.rel,n=_t(),i=h(t.category),o=++this.__sn,s=y({uid:e,utdid:t.utdid||this.utdid,wid:this._wid,type:i,category:t.category,w_cnt:1,w_rel:r,w_bid:t.bid||this.bid,w_cid:t.cid||this.cid||void 0,w_spa:this.spa,w_frmid:this._frmId,w_tm:g(),log_src:this.logSrc,sdk_ver:this.sdkVer,crver:this.sdkVer,uc_param:this.uc_param,wl_wpk_sn:o},n,t),a=this._genReportUrl(s,!0);return s._url=a,s._hash=function(t){var e="";switch(t.category){case 1:e=[t.category,t.uid,t.w_url,t.w_ref,t.w_msg||"",t.w_line||"",t.w_col||""].join("");break;case 2:e=[t.category,t.uid,t.w_res,t.w_method,t.w_rc].join("");break;case 4:e=[t.category,t.uid,t.w_url,t.w_ref,t.w_res,t.w_type].join("")}return e}(s),s},n._genReportUrl=function(t,e){var r={app:t.w_bid||this.bid,cp:"none",de:e?4:1,seq:""+Math.floor(+new Date/1e3)+Math.floor(1e4*Math.random()),tm:g(!0),ud:encodeURIComponent(t.uid||this.uid||this._wid),ver:t.rel||this.rel,type:t.type||h(t.category),sver:this.sdkVer,sign:"9bf8a190ef82c5049df7b199c599c45b"};return A.getAddr(this.cluster,this.gateway)+"?wpk-header="+encodeURIComponent(v(r))+(this.uc_param_str?"&uc_param_str="+this.uc_param_str:"")},n.send=function(t,e,r){if(r)yt(this,t,e);else if(u(e)){navigator.sendBeacon(t,e)||(this.print("beacon send fail, retry by xhr"),yt(this,t,e))}else this._sdkEnv.supportBeacon?navigator.sendBeacon(t):(n=t,i="itraceimgreporter_"+g()+".r"+Math.floor(1e3*Math.random()),(o=M[i]=new Image).onload=o.onerror=function(){M[i]=null},o.src=n);var n,i,o;this.print("log is sent: ",t)},n.setReady=function(){var e=this;t.prototype.setReady.call(this),m(function(){e._sendQueuingLogs()},0)},n._updateSpecialFields=function(t){return t._dirty?y(t,{w_bid:this.bid,w_cid:this.cid,w_rel:this.rel,uid:this.uid,utdid:this.utdid}):t},n._enhanceLog=function(t){t.wid=this._wid,void 0!==t.uid&&null!==t.uid&&""!==t.uid||(t.uid=this._wid,t.regenurl=!0),b(t)},n._isWidReady=function(){return!(!this._wid||""===this._wid)},n._sendQueuingLogs=function(){var t=this;if(this._logq.hasLog()){if(!this._isWidReady())return this._hasWidTimer||(this._hasWidTimer=!0,lt(this.disableCookie,function(e){t._wid=e}),m(function(){t._sendQueuingLogs()},500)),void this.print("wid is not ready, will retry after 500ms.");var e=this._logq.takeLogList(),r=e.length;if(this.useNativeCH&&this._sdkEnv.quantumApiEnable){this.print("use quantum api upload log");for(var n=!1,i=0;i<r;i++)try{var o=e[i];o.w_send_mode="quantum.api",o._url=void 0,o.net=void 0,this._updateSpecialFields(o),this._enhanceLog(o);var s=P(o),a=window.quantum.wpk._jsonLog(o.type,o);this.print("quantum api report ret: ",a);var c=L(a);if(c!==T){n=!0,c===B&&(this._sdkEnv.quantumApiEnable=!1,Object.assign(o,s)),r=(e=e.slice(i)).length;break}}catch(t){this.print(t)}if(!n)return;this.print("log report fallback")}if(this._sdkEnv.sendByJsapi)for(var u=0;u<r;u++)try{var d=e[u];d.w_send_mode="jsapi",d._url=void 0,this._updateSpecialFields(d),this._enhanceLog(d),mt(this,{type:d.type,immediate:"jsfsperf"===d.type?0:1,args:d})}catch(t){this.print(t)}else if(this._sdkEnv.supportBeaconBody&&this.supportBeaconBody)for(var p,l=function(t){for(var e=[],r=[],n=t.length,i=0;i<n;i++){var o=t[i].category;-1===r.indexOf(o)&&r.push(o)}for(var s=r.length,a=0;a<s;a++){for(var c=r[a],u=[],d=0;d<n;d++){var p=t[d];p.category===c&&u.push(p)}e[a]=u}return e}(e),f=Rt(l);!(p=f()).done;){var h=p.value;try{for(var g,v=[],_=0,y=Rt(h);!(g=y()).done;){var w=g.value;this._updateSpecialFields(w),this._enhanceLog(w),w.w_send_mode="beacon";var b=JSON.stringify(w),R=O(b);R>6e4?(this.send(this._genReportUrl(w,!1),b,!0),this.print("single log oversize 60k, send by xhr")):((_+=R)>6e4&&(this.send(this._genReportUrl(w,!1),v.join("\n")),this.print("group log length is "+v.length+" size is "+_+" oversize 60k, send now"),v.splice(0,v.length),_=R),v.push(b))}if(v.length>0){var k=this._genReportUrl(h[0],!1);this.send(k,v.join("\n"))}}catch(t){this.print(t)}}else for(var E=0;E<r;E++){var S=e[E],x=S._url||"",I=S._forcePost||!1;this._updateSpecialFields(S),this._enhanceLog(S),S.w_send_mode=I?"fetch":wt()?"beacon":"img";try{var C=JSON.stringify(S);(I=I||O(C)>7500)?(x=this._genReportUrl(S,!1),this.send(x,C,I)):(S.regenurl&&(this.print("regen report url"),x=this._genReportUrl(S,!1)),x+="&data="+encodeURIComponent(C),this.send(x))}catch(t){this.print(t)}}}else this.print("logq is empty.")},n._handlePreReporting=function(){var t=window.__iTraceLogQueue;if(l(t)&&t.length>0&&(this._logq.setPreLogList(t),window.__iTraceLogQueue=[],this.print("preLogList is updated")),this._logq.hasPreLog()){this.print("handling logq for pre-reporting");for(var e=this._logq.getPreLogList();e.length;){var r=e.shift(),n=null==r?void 0:r.shift();f(this[n])&&(this[n].apply(this,r),this.print(n+" is called by pre-reporting."))}}},n.resetSession=function(){var t;this._sid=(t=d(),Y(rt)&&rt().setItem("wpkreporter:frmid",t),t),this._begin=Date.now(),this._frmId=this._sid},n._useU4Monitor=function(){return!this.ignoreU4HA&&(Z()||E())&&function(t){if(u(document)&&document.getElementsByTagName)for(var e=document.getElementsByTagName("meta"),r=e.length,n=0;n<r;n++){var i=e[n];if(i.name===t)return i.content}return""}("wpk-bid")===this.bid},n.init=function(){this._syncDyConf(),this.resetSession(),this.initSdkEnv(),this._loadPlugins(),this._listenCompassPrerenderEvt();var t=this;m(function(){t.reportImmediatePV(),function(t,e){try{S("biz.ucparams",{params:t},function(t){e.uc_param=t,e.print("get uc_param success",t)},function(t){e.print("get uc_param_str error: ",t)})}catch(t){e.print("get uc_param_str error: ",t)}}(t.uc_param_str,t)},0);var e=this._sdkEnv.isIOS?"pagehide":"beforeunload";w(window,e,function(){(t.isReady()||t.clearBeforeunload)&&(t._sendQueuingLogs(),t.print("do clearing jobs on page unload~"))},!0),this._sdkEnv.isPrerender&&this.print("预渲染场景下，白屏、性能检测时机为webview上屏之后")},n.initSdkEnv=function(){try{this._sdkEnv.useU4Monitor=this._useU4Monitor(),this._sdkEnv.isPrerender=$()||this._prerender,this._sdkEnv.iOSNBCheck=this.useNativeCH&&bt("enableBlankReport"),this._sdkEnv.sendByJsapi=this.useNativeCH&&bt("enablePerformanceReport"),this._sdkEnv.isIOS=/(iphone|ipad|ipod|ios)/i.test(R),this._sdkEnv.supportBeacon=!!wt(),this._sdkEnv.supportBeaconBody=this._sdkEnv.supportBeacon&&!this._sdkEnv.isIOS,this._sdkEnv.isQuarkPC=E(),this._sdkEnv.quantumApiEnable=function(){try{if(window.quantum&&"function"==typeof window.quantum.wpk._jsonLog)return!0}catch(t){}return!1}(),this.print("sdk env:",this._sdkEnv)}catch(t){this.print("init sdk env error",t)}},n.reportImmediatePV=function(t){void 0===t&&(t=!1),this._sdkEnv.useU4Monitor||this._sdkEnv.isPrerender&&!t||!this.immediatePV||this.reportFlow()},n.report=function(t){var e=this;if(this.print("reporting data:",t.category,t),!t||!t.category)return this;var r=t.sampleRate||this.sampleRate;if(r||0===r||(r=1),!_(r))return this.print("log is rejected by sampling rate, type: %s category: %s, rate: %s log: %o",t.type,t.category,r,t),this;Date.now()-this._begin>=this.maxSessDuration&&this.resetSession();try{var n=this._normalizeLog(t);if(this._dyConf&&Date.now()<this._dyConf.expireAt){var i=n.type+"@"+n.category,o=this._dyConf[i];if(u(o)||(i=n.type||"undefined",o=this._dyConf[i]),o=u(o)?o:this._dyConf.all,u(o)&&!_(o))return this.print("log is rejected by dynamic sampling rate, type: %s, category: %s, rate: %s log: %o",n.type,n.category,o,n),this}else!this._dying&&Date.now()-this._dyStart>=18e5&&(this.print("syncing dynamic config"),this._syncDyConf());if(this._handlePreReporting(),f(this.beforeSend))try{if(!1===this.beforeSend(n))return this.print("the beforeSend hook rejects this log"),this}catch(t){this.print("beforeSend hook error",t)}n.category===N.JSERR&&delete n.error;var s=this.isReady();if(n._dirty=!s,!this._logq.pushLog(n))return this.print("log merged: ",n),this;if(s)m(function(){e._sendQueuingLogs()},!n._reportNow&&this.delay&&-1!==[1,2,4,8,15,18].indexOf(n.category||0)?1e3:-1);else this.print("sdk is not ready, you should call setReady to trigger reporting.")}catch(e){this.print("report failed: ",t,e),this._reportToSelf(e)}return this},n.reportFlow=function(t){var e=t||{};return e.category=N.PVUV,this.report(e),this},n.reportJSError=function(t,e){return!function(t){var e={}.toString.call(t);return("[object Error]"===e||"[object Exception]"===e||"[object DOMException]"===e||e instanceof Error)&&p(t)}(t)?this.print("the input is not a real JSError"):((e=e||{}).category=N.JSERR,e.w_msg=t.toString(),e.stack=function(t){if(t.stack){var e=t.stack.split("\n");return e.shift(),e.join("\n")}return""}(t),e.w_file=t.filename||"",e.w_line=t.lineno,e.w_col=t.colno,this.report(e)),this},n.reportApi=function(t){if(t){p(t.queryString)&&(t.queryString=v(t.queryString));var e=y(t,{category:N.API,w_type:16,w_res:t.url,w_method:t.method,w_param:t.queryString,w_body:"object"==typeof t.body?JSON.stringify(t.body):t.body,w_resp:t.response,w_rc:t.status,w_rt:t.spent||0},{url:void 0,queryString:void 0,response:void 0,body:void 0,status:void 0,spent:void 0});this.report(e)}return this},n.reportBlankPage=function(t){var e=t||{};return x(t,"w_fp")||(e=y(t,{w_fp:999})),e=y(e,{category:N.BKPG}),this.report(e),this},n.reportPerf=function(t){return this._hasReportPerfData?(this.print("do not repeat report performance data"),this):(this.print("manual report performance data"),this.__customPerfCache__=t,this)},n.detectBlank=function(t){return this.print("need itrace-blank plugin"),this},n.detectBlock=function(t,e){return this.print("need itrace-fluency plugin"),this},n._syncDyConf=function(){var t=A.getConfAddr(this.cluster,this.gateway),e=this;e._dyStart=Date.now(),e._dying=!0,it(e.bid,e.sdkVer,t,function(t){e._dying=!1,e._dyConf=t,e.print("jconfig come back")})},n._reportToSelf=function(t,e){void 0===e&&(e={});this.reportJSError(t,y({bid:"itrace-next"},e))},r}(I),St=window;function Lt(t){var e=t||St[H]||{},r=new Et(e);return r.init(),r}return St[H]&&p(St[H])&&!u(St[F])&&(St[F]=new Et(St[H]),St[F].init()),St.__getItraceInstance||(St.__getItraceInstance=Lt),t.getItraceInstance=Lt,t.getItraceSingleton=function(t){if(St[F])return St[F];var e=t||St[H]||{};return St[F]=new Et(e),St[F].init(),St[F]},t.iTraceReporter=Et,Object.defineProperty(t,"__esModule",{value:!0}),t}({});
