/*! pacakge version: 3.12.2 */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Logger=t():e.Logger=t()}(self,(()=>(()=>{var e={7:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&e.expireTimen.version?(r=t.transaction(l,"readwrite"),o=r.objectStore(l),a={dbName:e.name,tableList:e.tableList,version:e.version},o.put(g({item:a,tableName:l})),[4,r.complete]):[3,4];case 3:i.sent(),t.close(),i.label=4;case 4:return[2]}}))}))}function m(e){return o(this,void 0,void 0,(function(){var t,n;return i(this,(function(r){switch(r.label){case 0:return[4,_()];case 1:return t=r.sent(),n=t.transaction(l,"readwrite"),n.objectStore(l).delete(e),[4,n.complete];case 2:return r.sent(),t.close(),[2]}}))}))}function b(e){return o(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,v(e)];case 1:return t.sent(),[4,s.open(e.name,e.version,(function(t){N(t,e.tableList)}))];case 2:return[2,t.sent()]}}))}))}function _(){return o(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,s.open(u,c,(function(e){!function(e){e.createObjectStore(l,{keyPath:f})}(e)}))];case 1:return[2,e.sent()]}}))}))}function w(e){return o(this,void 0,void 0,(function(){var t,n;return i(this,(function(r){switch(r.label){case 0:return[4,_()];case 1:return[4,I(t=r.sent(),l,e)];case 2:return n=r.sent(),t.close(),n?[4,s.open(n.dbName,n.version,(function(e){N(e,n.tableList||[])}))]:[3,4];case 3:return[2,r.sent()];case 4:return[2,null]}}))}))}function I(e,t,n){return o(this,void 0,void 0,(function(){var r;return i(this,(function(o){switch(o.label){case 0:if(!e.objectStoreNames.contains(t))return[3,8];r=e.transaction(t,"readonly"),o.label=1;case 1:return o.trys.push([1,,3,7]),[4,r.objectStore(t).get(n)];case 2:return[2,y(o.sent())];case 3:return o.trys.push([3,5,,6]),[4,r.complete];case 4:return o.sent(),[3,6];case 5:return o.sent(),[3,6];case 6:return[7];case 7:return[3,9];case 8:return[2,null];case 9:return[2]}}))}))}function N(e,t){try{t.forEach((function(t){if(e.objectStoreNames.contains(t.tableName)){var n=e.transaction(t.tableName).objectStore(t.tableName);(t.indexList||[]).forEach((function(e){n.indexNames.contains(e.indexName)||n.createIndex(e.indexName,e.indexName,{unique:e.unique})}))}else{var o=t.primaryKey||"id",i=e.createObjectStore(t.tableName,r({keyPath:o},"id"===o?{autoIncrement:!0}:{}));i.createIndex(o,o,{unique:!0}),(t.indexList||[]).forEach((function(e){i.createIndex(e.indexName,e.indexName,{unique:e.unique})})),i.createIndex(p,p,{unique:!1}),i.createIndex(d,d,{unique:!1})}}))}catch(t){e.close()}}function S(e,t,n){return o(this,void 0,void 0,(function(){var r;return i(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,8,9]),[4,n()];case 1:return o.sent(),[4,e.complete];case 2:return o.sent(),[3,9];case 3:r=o.sent();try{e.abort()}catch(e){}o.label=4;case 4:return o.trys.push([4,6,,7]),[4,e.complete];case 5:return o.sent(),[3,7];case 6:return o.sent(),[3,7];case 7:throw r;case 8:return t.close(),[7];case 9:return[2]}}))}))}function T(e,t){return o(this,void 0,void 0,(function(){var n,r,s,c=this;return i(this,(function(u){switch(u.label){case 0:return n=t.filter((function(t){return e.objectStoreNames.contains(t.tableName)})),r=a.deduplicateList(n.map((function(e){return e.tableName}))),[4,S(s=e.transaction(r,"readwrite"),e,(function(){return o(c,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,Promise.all(n.map((function(e){var t=e.tableName,n=e.indexRange,r=s.objectStore(t);return n?new Promise((function(e){r.index(n.indexName).iterateCursor(h(n),(function(t){t?(r.delete(t.primaryKey),t.continue()):e()}))})):r.clear()})))];case 1:return e.sent(),[2]}}))}))}))];case 1:return u.sent(),[2]}}))}))}function R(e,t){return o(this,void 0,void 0,(function(){var n,r,s,c=this;return i(this,(function(u){switch(u.label){case 0:return n=a.deduplicateList(t.map((function(e){return e.tableName}))),[4,O(e.name,n.map((function(e){return{tableName:e,indexRange:{indexName:d,upperIndex:+new Date,upperExclusive:!1}}})))];case 1:return u.sent(),[4,b(e)];case 2:return r=u.sent(),[4,S(s=r.transaction(n,"readwrite"),r,(function(){return o(c,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,Promise.all(t.map((function(e){return s.objectStore(e.tableName).put(g(e))})))];case 1:return e.sent(),[2]}}))}))}))];case 3:return u.sent(),[2]}}))}))}function E(e,t,n){return o(this,void 0,void 0,(function(){var r;return i(this,(function(o){switch(o.label){case 0:return[4,w(e)];case 1:if(!(r=o.sent()))return[3,7];o.label=2;case 2:return o.trys.push([2,4,5,6]),[4,I(r,t,n)];case 3:return[2,o.sent()];case 4:throw o.sent();case 5:return r.close(),[7];case 6:return[3,8];case 7:return[2,null];case 8:return[2]}}))}))}function x(e,t){return o(this,void 0,void 0,(function(){var n,r,o,a,s,c,u;return i(this,(function(i){switch(i.label){case 0:return n=t.tableName,r=t.indexRange,[4,w(e)];case 1:if(!(o=i.sent()))return[3,17];i.label=2;case 2:return i.trys.push([2,14,15,16]),a=[],o.objectStoreNames.contains(n)?[3,3]:[3,13];case 3:s=o.transaction(n,"readonly"),i.label=4;case 4:return i.trys.push([4,,9,13]),c=s.objectStore(n),r?[3,6]:[4,c.getAll()];case 5:return u=i.sent(),a=(u||[]).map(y).filter((function(e){return null!==e})),[3,8];case 6:return[4,new Promise((function(e){c.index(r.indexName).iterateCursor(h(r),(function(t){if(t){var n=y(t.value);n&&a.push(n),t.continue()}else e()}))}))];case 7:i.sent(),i.label=8;case 8:return[3,13];case 9:return i.trys.push([9,11,,12]),[4,s.complete];case 10:return i.sent(),[3,12];case 11:return i.sent(),[3,12];case 12:return[7];case 13:return[2,a];case 14:throw i.sent();case 15:return o.close(),[7];case 16:return[3,18];case 17:return[2,[]];case 18:return[2]}}))}))}function C(e){return o(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,m(e)];case 1:return t.sent(),[4,s.delete(e)];case 2:return t.sent(),[2]}}))}))}function O(e,t){return o(this,void 0,void 0,(function(){var n;return i(this,(function(r){switch(r.label){case 0:return[4,w(e)];case 1:return(n=r.sent())?[4,T(n,t)]:[3,3];case 2:return r.sent(),[3,4];case 3:case 4:return[2]}}))}))}t.addItems=R,t.getItem=E,t.getItemsInRange=x,t.deleteDB=C,t.deleteItems=O,t.default={addItems:R,getItem:E,getItemsInRange:x,deleteDB:C,deleteItems:O}},861:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=i)throw new Error("lowerIndex should be less than upperIndex");o&&i&&c.paramChecker(a,c.ParamCheckerEnum.Boolean,"indexRange's lowerExclusive",u),c.paramChecker(s,c.ParamCheckerEnum.Boolean,"indexRange's upperExclusive",u)}}function f(){try{return a.default(),!0}catch(e){return!1}}t.idbIsSupported=f;var p=function(){function e(e){a.default(),function(e){c.paramChecker(e,c.ParamCheckerEnum.NotNullObject,"dbConfig",!u),c.paramChecker(e.dbName,c.ParamCheckerEnum.String,"dbName",!u),c.paramChecker(e.dbVersion,c.ParamCheckerEnum.NonNegativeInteger,"dbVersion",u),c.paramChecker(e.itemDuration,c.ParamCheckerEnum.NonNegativeInteger,"itemDuration of dbConfig",u),c.paramChecker(e.tables,c.ParamCheckerEnum.NotNullObject,"tables",u),Object.keys(e.tables||{}).forEach((function(t){var n=e.tables[t];c.paramChecker(n.primaryKey,c.ParamCheckerEnum.String,"primaryKey",u),c.paramChecker(n.itemDuration,c.ParamCheckerEnum.NonNegativeInteger,"itemDuration of table",u),c.paramChecker(n.indexList,c.ParamCheckerEnum.Array,"indexList",u),(n.indexList||[]).forEach((function(e){c.paramChecker(e.indexName,c.ParamCheckerEnum.String,"indexName",!u),c.paramChecker(e.unique,c.ParamCheckerEnum.Boolean,"unique",u)}))}))}(e),this.name=e.dbName,this.version=c.optionWithBackup(e.dbVersion,1),this.tableList=Object.keys(e.tables||{}).map((function(t){return r({tableName:t},e.tables[t])})),this.itemDuration=e.itemDuration}return e.prototype.addItems=function(e){return o(this,void 0,void 0,(function(){var t,n,o=this;return i(this,(function(i){switch(i.label){case 0:return t=function(e,t,n){return void 0!==n?n:void 0!==t?t:e},a=e,l=this.tableList,c.paramChecker(a,c.ParamCheckerEnum.Array,"items",!u),a.forEach((function(e){c.paramChecker(e.tableName,c.ParamCheckerEnum.String,"item's tableName",!u),c.paramChecker(e.itemDuration,c.ParamCheckerEnum.NonNegativeInteger,"item's itemDuration",u);var t=l.filter((function(t){return t.tableName===e.tableName}))[0];if(!t)throw new Error("Table "+e.tableName+" does not exist");if(void 0!==t.primaryKey&&Object.getOwnPropertyNames(e.item).indexOf(t.primaryKey)<0)throw new Error("primaryKey is needed for item in table "+e.tableName)})),n=e.map((function(e){var n=o.tableList.filter((function(t){return t.tableName===e.tableName}))[0];return r({itemDuration:t(o.itemDuration,n.itemDuration,e.itemDuration)},e)})),[4,s.default.addItems({name:this.name,tableList:this.tableList,version:this.version},n)];case 1:return i.sent(),[2]}var a,l}))}))},e.prototype.getItem=function(e,t){return o(this,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:return[4,h(this.name,e,t)];case 1:return[2,n.sent()]}}))}))},e.prototype.getItemsInRange=function(e){return o(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,g(this.name,e)];case 1:return[2,t.sent()]}}))}))},e.prototype.deleteItemsInRange=function(e){return o(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return c.paramChecker(e,c.ParamCheckerEnum.Array,"tableIndexRanges",!u),e.forEach((function(e){l(e)})),[4,s.default.deleteItems(this.name,e)];case 1:return t.sent(),[2]}}))}))},e}();function d(e){return o(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return a.default(),c.paramChecker(e,c.ParamCheckerEnum.String,"dbName",!u),[4,s.default.deleteDB(e)];case 1:return t.sent(),[2]}}))}))}function h(e,t,n){return o(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return c.paramChecker(e,c.ParamCheckerEnum.String,"dbName",!u),c.paramChecker(t,c.ParamCheckerEnum.String,"tableName",!u),[4,s.default.getItem(e,t,n)];case 1:return[2,r.sent()]}}))}))}function g(e,t){return o(this,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:return c.paramChecker(e,c.ParamCheckerEnum.String,"dbName",!u),l(t),[4,s.default.getItemsInRange(e,t)];case 1:return[2,n.sent()]}}))}))}t.CustomDB=p,t.deleteDB=d,t.getItemFromDB=h,t.getItemsInRangeFromDB=g,t.default={idbIsSupported:f,CustomDB:p,deleteDB:d,getItemFromDB:h,getItemsInRangeFromDB:g}},939:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!window)throw new Error("idb-managed can not run in non-browser environment");for(var e=0,t=["indexedDB","IDBDatabase","IDBObjectStore","IDBTransaction","IDBIndex","IDBCursor","IDBKeyRange","IDBRequest"];e{function t(e){return new Promise((function(t,n){e.onsuccess=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function n(e,n,r){var o,i=new Promise((function(i,a){t(o=e[n].apply(e,r)).then(i,a)}));return i.request=o,i}function r(e,t,n){n.forEach((function(n){Object.defineProperty(e.prototype,n,{get:function(){return this[t][n]},set:function(e){this[t][n]=e}})}))}function o(e,t,r,o){o.forEach((function(o){o in r.prototype&&(e.prototype[o]=function(){return n(this[t],o,arguments)})}))}function i(e,t,n,r){r.forEach((function(r){r in n.prototype&&(e.prototype[r]=function(){return this[t][r].apply(this[t],arguments)})}))}function a(e,t,r,o){o.forEach((function(o){o in r.prototype&&(e.prototype[o]=function(){return e=this[t],(r=n(e,o,arguments)).then((function(e){if(e)return new c(e,r.request)}));var e,r})}))}function s(e){this._index=e}function c(e,t){this._cursor=e,this._request=t}function u(e){this._store=e}function l(e){this._tx=e,this.complete=new Promise((function(t,n){e.oncomplete=function(){t()},e.onerror=function(){n(e.error)},e.onabort=function(){n(e.error)}}))}function f(e,t,n){this._db=e,this.oldVersion=t,this.transaction=new l(n)}function p(e){this._db=e}var d;if(u.prototype.createIndex=function(){return new s(this._store.createIndex.apply(this._store,arguments))},u.prototype.index=function(){return new s(this._store.index.apply(this._store,arguments))},l.prototype.objectStore=function(){return new u(this._tx.objectStore.apply(this._tx,arguments))},f.prototype.createObjectStore=function(){return new u(this._db.createObjectStore.apply(this._db,arguments))},p.prototype.transaction=function(){return new l(this._db.transaction.apply(this._db,arguments))},function(){try{return["IDBIndex","IDBCursor","IDBObjectStore","IDBTransaction","IDBDatabase"].forEach((function(e){if(window&&(!window[e]||!window.hasOwnProperty(e)))throw new Error(e)})),!0}catch(e){return!1}}())r(s,"_index",["name","keyPath","multiEntry","unique"]),o(s,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]),a(s,"_index",IDBIndex,["openCursor","openKeyCursor"]),r(c,"_cursor",["direction","key","primaryKey","value"]),o(c,"_cursor",IDBCursor,["update","delete"]),["advance","continue","continuePrimaryKey"].forEach((function(e){e in IDBCursor.prototype&&(c.prototype[e]=function(){var n=this,r=arguments;return Promise.resolve().then((function(){return n._cursor[e].apply(n._cursor,r),t(n._request).then((function(e){if(e)return new c(e,n._request)}))}))})})),r(u,"_store",["name","keyPath","indexNames","autoIncrement"]),o(u,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]),a(u,"_store",IDBObjectStore,["openCursor","openKeyCursor"]),i(u,"_store",IDBObjectStore,["deleteIndex"]),r(l,"_tx",["objectStoreNames","mode"]),i(l,"_tx",IDBTransaction,["abort"]),r(f,"_db",["name","version","objectStoreNames"]),i(f,"_db",IDBDatabase,["deleteObjectStore","close"]),r(p,"_db",["name","version","objectStoreNames"]),i(p,"_db",IDBDatabase,["close"]),["openCursor","openKeyCursor"].forEach((function(e){[u,s].forEach((function(t){e in t.prototype&&(t.prototype[e.replace("open","iterate")]=function(){var t,n=(t=arguments,Array.prototype.slice.call(t)),r=n[n.length-1],o=this._store||this._index,i=o[e].apply(o,n.slice(0,-1));i.onsuccess=function(){r(i.result)}})}))})),[s,u].forEach((function(e){e.prototype.getAll||(e.prototype.getAll=function(e,t){var n=this,r=[];return new Promise((function(o){n.iterateCursor(e,(function(e){e?(r.push(e.value),void 0===t||r.length!=t?e.continue():o(r)):o(r)}))}))})})),d={open:function(e,t,r){var o=n(indexedDB,"open",[e,t]),i=o.request;return i&&(i.onupgradeneeded=function(e){if(r){var t=new f(i.result,e.oldVersion,i.transaction);t.transaction.complete.catch((function(){})),r(t)}}),o.then((function(e){return new p(e)}))},delete:function(e){return n(indexedDB,"deleteDatabase",[e])}};else{var h="indexedDB is not supported";d={open:function(){return Promise.reject(new Error(h))},delete:function(){return Promise.reject(new Error(h))}}}e.exports=d},720:(e,t)=>{"use strict";function n(e){return!isNaN(e)&&e>=0}Object.defineProperty(t,"__esModule",{value:!0}),t.ParamCheckerEnum={NonNegativeInteger:{rule:n,desc:"needs to be a non-negative integer"},NotNullObject:{rule:function(e){return e&&"object"==typeof e},desc:"needs to be a not-null object"},String:{rule:function(e){return"string"==typeof e},desc:"needs to be a string"},Array:{rule:function(e){return e instanceof Array},desc:"needs to be an Array"},Boolean:{rule:function(e){return"boolean"==typeof e},desc:"needs to be a boolean"}},t.isNonNegativeInteger=n,t.optionWithBackup=function(e,t){return void 0!==e?e:t},t.paramChecker=function(e,t,n,r){var o=n+" "+t.desc;if(r){if(void 0!==e&&!t.rule(e))throw new Error(o+" if defined")}else if(!t.rule(e))throw new Error(o)},t.deduplicateList=function(e){return e.reduce((function(e,t){return e.indexOf(t)<0?e.concat(t):e}),[])}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";var e,t,o,i,a,s;n.r(r),n.d(r,{APP_KEY:()=>i,BAINA_API:()=>s,LogEncryptMode:()=>t,LogType:()=>o,ResultMsg:()=>e,SOURCE_TO_APP_KEY:()=>a,destroy:()=>tn,immediateSend:()=>Wt,initConfig:()=>Vt,log:()=>Xt,pid:()=>Kt,report:()=>Zt,reportAll:()=>Qt,resume:()=>en,setConfig:()=>Jt,setConfigByKey:()=>zt,stop:()=>$t,track:()=>Yt}),function(e){e.DB_NOT_SUPPORT="IndexedDB is not supported",e.NO_LOG="No log exists",e.REPORT_LOG_SUCC="Report succ",e.REPORT_LOG_FAIL="Report fail",e.DELETE_LOG_FAIL="delete log fail",e.EXCEED_TRY_TIMES="Exceed try times",e.EXCEED_LOG_SIZE_LIMIT="Exceed log size day limit",e.EXCEED_SINGLE_LOG_SIZE_LIMIT="Single log is too large"}(e||(e={})),function(e){e[e.PLAIN=0]="PLAIN",e[e.RSA=1]="RSA"}(t||(t={})),function(e){e[e.LEVEL1=1]="LEVEL1",e[e.LEVEL2=2]="LEVEL2",e[e.LEVEL3=3]="LEVEL3",e[e.LEVEL4=4]="LEVEL4",e[e.LEVEL5=5]="LEVEL5",e[e.TRACK=6]="TRACK",e[e.XHR=7]="XHR",e[e.FETCH=8]="FETCH",e[e.HISTORY=9]="HISTORY",e[e.DOM=10]="DOM",e[e.INIT=11]="INIT",e[e.CONSOLE=12]="CONSOLE",e[e.CRASH=13]="CRASH",e[e.NATIVEAPI=14]="NATIVEAPI",e[e.UNHANDLEDREJECTION=15]="UNHANDLEDREJECTION",e[e.ERROR=16]="ERROR"}(o||(o={})),function(e){e.likee="likee",e.pay="pay",e.helloyo="helloyo",e.hello="hello",e.imo="imo",e.bigolive="bigolive",e.tiki="tiki"}(i||(i={})),function(e){e["^likee"]="likee",e["^(pay|casher)"]="pay",e["^helloyo"]="helloyo",e["^hello"]="hello",e["^imo"]="imo",e["^(bigolive|funkie|agent-oss)"]="bigolive",e["^tiki"]="tiki"}(a||(a={})),function(e){e.likee="//support-json.like.video/json",e.pay="//support-json.bdesk.tech/json",e.helloyo="//support-json.helloyo.sg/json",e.hello="//support-json.ppx520.com/json",e.imo="//support-json.imoim.net/json",e.bigolive="//support-json.ukyuh.tech/json",e.tiki="//bflow.tiki.video/json"}(s||(s={}));var c=function(){return c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&n<=12&&r>0&&r<=31&&"Invalid Date"!==new Date(e).toString()}function v(e){var t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return"".concat(t,"-").concat(n<10?"0"+n:n,"-").concat(r<10?"0"+r:r)}function m(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()}function b(e){var t=(e.match(/(\d+)/g)||[]).map((function(e){return parseInt(e)})),n=t[0],r=t[1],o=t[2];if(n<1e3)throw new Error("Invalid dayString: ".concat(e));return new Date(n,r-1,o)}var _=864e5;function w(e,t){return{t,c:e,d:Date.now()}}function I(e){if(0===e.length)return Promise.resolve([]);var t=e.map((function(e){return e instanceof Promise?e:Promise.resolve(e)}));return new Promise((function(e,n){var r=[],o=t.length;t.forEach((function(t,n){t.then((function(t){r[n]={status:"fulfilled",value:t},0===(o-=1)&&e(r)}),(function(t){r[n]={status:"rejected",reason:t},0===(o-=1)&&e(r)}))}))}))}function N(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=(new Date).getTime().toString(),n="",r=0;r<5;r++){var o=Math.floor(62*Math.random());n+=e.charAt(o)}return n+t}function S(e){if(e instanceof Error){var t={};return Object.getOwnPropertyNames(e).forEach((function(n){return t[n]=e[n]})),JSON.stringify(g({name:"error"},t))}return"string"==typeof e?e:JSON.stringify(e)}var T={counter:1,addCounter:function(){return this.counter++},initCounter:function(){this.counter=1}},R=h.get("logTryTimes");const E={errorTrigger:function(){R>0&&R--},canSave:function(){return R>0},resetQuota:function(){R=h.get("logTryTimes")}};function x(e){return"[object String]"===Object.prototype.toString.call(e)}function C(e,t){try{return e instanceof t}catch(e){return!1}}function O(e,t){try{for(var n=e,r=[],o=0,i=0,a=void 0;n&&o++<5&&!("html"===(a=D(n,t))||o>1&&i+3*r.length+a.length>=80);)r.push(a),i+=a.length,n=n.parentNode;return r.reverse().join(" > ")}catch(e){return""}}function D(e,t){var n,r,o,i,a,s=e,c=[];if(!s||!s.tagName)return"";c.push(s.tagName.toLowerCase());var u=t&&t.length?t.filter((function(e){return s.getAttribute(e)})).map((function(e){return[e,s.getAttribute(e)]})):null;if(u&&u.length)u.forEach((function(e){c.push("[".concat(e[0],'="').concat(e[1],'"]'))}));else if(s.id&&c.push("#".concat(s.id)),(n=s.className)&&x(n))for(r=n.split(/\s+/),a=0;a2?t[2]:void 0;if(r){var o=X,i=String(r);X=i,K("history",{from:o,to:i})}return e.apply(this,t)}}function n(){if("onhashchange"in window){var e=U.onhashchange;U.onhashchange=function(){for(var t=[],n=0;n0}var ae=function(){return ae=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"}0!==n.length&&this._options.logHandler("target: ".concat(n,", category: ").concat(e.name,", "),o.DOM)}},e.prototype._historyHandler=function(e){h.get("stop")||this._options.logHandler("".concat(e.from," -> ").concat(e.to),o.HISTORY)},e.prototype._consoleHandler=function(e){h.get("stop")||this._options.logHandler({content:e.args,level:e.level},o.CONSOLE)},e.prototype._nativeapiHandler=function(e){h.get("stop")||this._options.logHandler(e,o.NATIVEAPI)},e.prototype._unhandledrejectionHandler=function(e){var t=e;try{"reason"in e?t=e.reason:"detail"in e&&"reason"in e.detail&&(t=e.detail.reason)}catch(e){}this._options.errorHandler(t,o.UNHANDLEDREJECTION)},e.prototype._errorHandler=function(e){this._options.errorHandler(JSON.stringify(e),o.ERROR)},e.id="GlobalHandlers",e}(),pe=n(861),de=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},he=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]0)||ye)return[3,5];e=ge.shift(),ye=!0,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,e.asyncF()];case 2:return t=r.sent(),e.resolution(t),[3,4];case 3:return n=r.sent(),e.rejection(n),[3,4];case 4:return ye=!1,ve(),[3,0];case 5:return[2]}}))}))}function me(e){return new Promise((function(t,n){ge.push({asyncF:e,resolution:t,rejection:n}),ve()}))}var be,_e=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},we=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]30720?[4,h.get("errorHandler")(new Error(e.EXCEED_SINGLE_LOG_SIZE_LIMIT))]:[3,2];case 1:case 4:return T.sent(),[2];case 2:return r=new Date,o=v(r),[4,this.getLogDayInfo(o)];case 3:if((i=T.sent()||((I={})[ke]=o,I.totalSize=0,I.reportPagesInfo={pageSizes:[0],pageIds:[qe],failTimes:[0]},I)).totalSize+n>7340032)throw new Error(e.EXCEED_LOG_SIZE_LIMIT);return i.reportPagesInfo&&i.reportPagesInfo.pageSizes||(i.reportPagesInfo={pageSizes:[0],pageIds:[qe],failTimes:[0]}),a=i.reportPagesInfo.pageSizes,s=i.reportPagesInfo.pageIds,c=i.reportPagesInfo.failTimes||[],u=a.length-1,l=s[s.length-1],f=a[u],p=l!==qe||f>0&&f+n>30720,R=a.slice(),p?R.push(n):R[u]+=n,d=R,g=function(){var e=s.slice();return p&&e.push(qe),e}(),y=function(){var e=c.slice();return p&&e.push(0),e}(),(N={})[Ce]=this.logReportNameFormatter(o,p?u+1:u),N[Oe]=+r,N.logSize=n,N.logString=t,b=N,(S={})[ke]=o,S.totalSize=i.totalSize+n,S.reportPagesInfo={pageSizes:d,pageIds:g,failTimes:y},_=S,w=Pe-(+new Date-m(new Date)),[4,this.DB.addItems([{tableName:De,item:_,itemDuration:w},{tableName:xe,item:b,itemDuration:w}])]}var R}))}))},n.prototype.incrementalDelete=function(e,n){return Te(this,void 0,void 0,(function(){var r,o,i,a,s,c,u,l,f,p,d,h,g,y;return Re(this,(function(v){switch(v.label){case 0:return[4,this.getLogDayInfo(e)];case 1:return(r=v.sent())&&r.reportPagesInfo&&r.reportPagesInfo.pageSizes instanceof Array?(o=r.reportPagesInfo.pageIds,i=r.reportPagesInfo.pageSizes,a=r.reportPagesInfo.failTimes||[],s=r.totalSize,c=i.reduce((function(e,t,r){return n.indexOf(r)>=0?e+t:e}),0),u=[],l=[],f=i.reduce((function(e,r,i){return n.indexOf(i)>=0?(l.push(i),e.concat([0])):a[i]>=2?(l.push(i),Ne({pid:qe,logContent:w("[bigo-log]: reported fail, currentpageId: ".concat(o[i],", currentSize: ").concat(r),2),encryptVersion:t.PLAIN}),e.concat([0])):(r>0&&u.push(i),e.concat([r]))}),[]),p={},p=u.length>0?Se(Se({},r),{reportPagesInfo:{pageSizes:f,pageIds:o,failTimes:f.map((function(e,t){var n=a[t]||0;return u.includes(t)?n+1:n}))},totalSize:Math.max(s-c,0)}):Se(Se({},r),{reportPagesInfo:{pageSizes:[],pageIds:[],failTimes:[]},totalSize:Math.max(s-c,0)}),d=Pe-(+new Date-m(new Date))-(m(new Date)-b(e).getTime()),[4,this.DB.addItems([{tableName:De,item:p,itemDuration:d}])]):[3,6];case 2:v.sent(),h=0,g=l,v.label=3;case 3:return h-1)return null;var o={},i=n;if(ze){var a=window.performance.getEntriesByName(r);a.length&&(i=(o=He(a[a.length-1])).duration)}return{url:r,success:t,cost_time:i,resource_type:Be(e),page_url:window.location.href,success_performance:Ue(o||{})}}(e,t,n);if(s){if(s.resource_type===Ge.IMG&&s.url.includes("data:image/png;base64"))return;if(s.resource_type!==Ge.XHR&&Ye.includes(s.url))return;Ye.push(s.url),s.resource_type===Ge.XHR&&(s.error_type=r||0,s.error_msg=o||"",s.status_code=i||"",s=Ke(Ke({},s),a||{})),Qe||Ze.push(s)}}catch(e){console.error(e)}}function $e(){if(Xe){var e={attributes:!1,childList:!0,subtree:!1},t=new MutationObserver((function(e){Array.from(e).forEach((function(e){"childList"===e.type&&Array.from(e.addedNodes).forEach((function(e){var t=e.tagName;t&&Ae.includes(t.toLowerCase())&&function(e){e.addEventListener("load",(function(){return We(e,Je.SUCCESS)})),e.addEventListener("error",(function(){return We(e,Je.FAILED)}))}(e)}))}))}));t.observe(document.head,e),document.onreadystatechange=function(){"interactive"===document.readyState&&t.observe(document.body,e)}}}function et(){if(!ze)return{};var e=Array.from(performance.getEntriesByType("paint")),t=e.length?e:[{},{}],n=t[0],r=t[1],o={FP:n?parseInt(n.duration+n.startTime,10):null,FCP:r?parseInt(r.duration+r.startTime,10):null},i={},a=performance.getEntriesByType("navigation");if(a&&a.length)i=He(a[0]);else{var s=window.performance.timing;for(var c in s)i[c]=Math.max(+s[c]-s.navigationStart,0)}var u,l=i.connectEnd-i.domainLookupStart,f=i.responseEnd-i.requestStart,p=i.loadEventEnd||i.loadEventStart||i.domComplete||i.domInteractive;return{dns_cost_time:l,html_cost_time:f,js_cost_time:(u=Ze.map((function(e){return e.resource_type===Ge.JS?e.cost_time:0})),Math.max.apply(Math,Ve(Ve([],u,!1),[0],!1))),load_cost_time:p,paint_time:o,performance:i}}function tt(e){try{ze&&$e();var t=function(){setTimeout((function(){(function e(t){var n=1;if(n>=10)return 0;if(t.hasChildNodes())for(var r=t.childNodes,o=0;o=10);o++)1===r.item(o).nodeType&&(n+=e(r.item(o)));return n})(document.body)<10&&Wt({type:2,log_type:o.CRASH})}),3e3);setTimeout((function(){var t={};ze&&(document.body&&Array.from(document.body.childNodes).forEach((function(e){var t=e.tagName;if(t&&Ae.includes(t.toLowerCase())){var n=Me(e);ze&&We(e,!!window.performance.getEntriesByName(n)[0])}})),t=et()),Wt(Ke(Ke({},e),{type:2,log_type:o.INIT,extra:{performaceDataObj:Ue(t)}}))}))};!document.readyState||document.readyState&&"complete"===document.readyState?t():window.addEventListener("load",t),window.addEventListener("beforeunload",Qt)}catch(e){console.error(e)}}var nt=function(){};var rt,ot=(rt=function(e,t){return rt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},rt(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}rt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),it=function(e){function t(t){var n=e.call(this,t)||this;return n._bigo_ignore_error=!0,n}return ot(t,e),t}(Error),at=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},st=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]=200?e.success&&e.success(n.responseText):e.fail&&e.fail("Request failed, status: ".concat(t,", responseText: ").concat(n.responseText))}},"POST"===e.type){if(e.headers&&!t)for(var r in e.headers)n.setRequestHeader(r,e.headers[r]);n.send(e.data)}else n.send()}({url:e,type:r||"GET",data:t,withCredentials:!!n,headers:o,success:function(e){i(e)},fail:function(e){a(new it(e||"Request failed"))}})}))]}))}))};var ut,lt;function ft(e){return"[object Array]"===Object.prototype.toString.call(e)}!function(e){e[e.UINT8=1]="UINT8",e[e.UINT16=2]="UINT16",e[e.UINT32=3]="UINT32",e[e.UINT64=4]="UINT64",e[e.STRING=5]="STRING",e[e.VECTOR_STRING=6]="VECTOR_STRING",e[e.MAP_STRING=7]="MAP_STRING",e[e.VECTOR_STRUCT=8]="VECTOR_STRUCT"}(lt||(lt={}));var pt=((ut={})[lt.UINT8]=0,ut[lt.UINT16]=0,ut[lt.UINT32]=0,ut[lt.UINT64]=0,ut[lt.STRING]="",ut[lt.VECTOR_STRING]="",ut[lt.MAP_STRING]="",ut[lt.VECTOR_STRUCT]=[],ut),dt=function(){function e(e,t){var n=e.uri,r=e.aid,o=e.model;this.reportUrl="",this.params={},this.uri=String(n),this.aid=String(r),this.model=o,this.setUrl(t)}return e.prototype.processVal=function(e,t,n){var r=this;switch(t){case lt.UINT8:case lt.UINT16:case lt.UINT32:case lt.UINT64:e=parseInt(e,10);break;case lt.STRING:e=""+e;break;case lt.VECTOR_STRING:var o=[];if(!ft(e))throw new Error("invalid data type of array");for(var i=0,a=e.length;i0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]0))return[3,12];g.label=3;case 3:return g.trys.push([3,10,,11]),[4,I(r[c].map((function(n){var r=n.split("_");return function(t,n){var r,o;return Dt(this,void 0,void 0,(function(){var i,a,s,c,u,l,f,p;return kt(this,(function(d){switch(d.label){case 0:return[4,Ct.getLogsByReportName(t)];case 1:return(i=d.sent()).length>0?(a=Ct.logReportNameParser(t).pageIndex,s=i.map((function(e){return e.logString})),c=Ct.logReportNameParser(t),u="function"==typeof n.xhrOptsFormatter?n.xhrOptsFormatter(s,c.pageIndex+1,c.logDay):{},l=(null===(r=i[0])||void 0===r?void 0:r.logString)&&JSON.parse(i[0].logString).p,f=jt(i),p=xt(),[4,ct(u.reportUrl||h.get("reportUrl")||p.getUrl(),JSON.stringify(p.format(u.data||Ot(Ot({os:navigator.platform,country_code:navigator.language},n),{events:f,pid:l,url:window.location.href,extra:Ot(Ot({},n.extra),{version:Pt}),time:(new Date).getTime()}))),null!==(o=u.withCredentials)&&void 0!==o&&o,"POST",u.headers||{"Content-Type":"application/json",Accept:"application/json,text/javascript"}).then((function(t){if("function"==typeof u.responseDealer){var n=u.responseDealer(t);if(n.resultMsg===e.REPORT_LOG_SUCC)return a;throw new it(n.desc)}var r=void 0;try{r=JSON.parse(t)}catch(e){throw new it("Try to parse response failed, responseText: ".concat(t))}if(console.log("response",r),void 0===(null==r?void 0:r.code)||200===(null==r?void 0:r.code))return a;throw new it("Server error, code: ".concat(null==r?void 0:r.code))}))]):[3,3];case 2:return[2,d.sent()];case 3:return[2,Promise.resolve(null)]}}))}))}(Ct.logReportNameFormatter(r[0],+r[1]),t)})))];case 4:u=g.sent(),(l=u.filter((function(e){return"rejected"===e.status}))).length>0?o[c]={msg:e.REPORT_LOG_FAIL,desc:S(l[0].reason)}:o[c]={msg:e.REPORT_LOG_SUCC},g.label=5;case 5:return g.trys.push([5,8,,9]),(f=u.filter((function(e){return null!==e.value})).map((function(e){return e.value}))).length>0&&h.get("incrementalReport")?[4,Ct.incrementalDelete(c,f)]:[3,7];case 6:g.sent(),g.label=7;case 7:return[3,9];case 8:return p=g.sent(),o[c]={msg:e.DELETE_LOG_FAIL,desc:p.message||p.stack||JSON.stringify(p)},[3,9];case 9:return[3,11];case 10:return d=g.sent(),o[c]={msg:e.REPORT_LOG_FAIL,desc:d.message||d.stack||JSON.stringify(d)},[3,11];case 11:return[3,13];case 12:o[c]={msg:e.NO_LOG},g.label=13;case 13:return s+=_,[3,2];case 14:return[2,o]}}))}))}))];case 2:return[2,r.sent()]}}))}))}var Gt=function(){return Gt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]=h.get("autoReportCount")?[4,Qt()]:[3,5];case 4:r.sent(),r.label=5;case 5:return[3,8];case 6:return n=r.sent(),E.errorTrigger(),[4,h.get("errorHandler")(n)];case 7:return r.sent(),[3,8];case 8:return[3,11];case 9:return[4,h.get("errorHandler")(new Error(e.EXCEED_TRY_TIMES))];case 10:r.sent(),r.label=11;case 11:return[2]}}))}))}function Ft(e,t,n){if(!h.get("stop")){var r;h.get("_devSend");0,r={logContent:w(e,t),pid:Le.pageId,encryptVersion:n},(!document.readyState||document.readyState&&"complete"===document.readyState)&&Bt?Mt(r):Ht.push(r)}}T.initCounter(),window.addEventListener("load",(function e(){Ht.forEach((function(e){Mt(e)})),Ht=[],window.removeEventListener("load",e)}));var Kt=Le.pageId;function Vt(e){e.globalReportConfig&&(e.globalReportConfig=Object.assign({langCode:navigator.language,environment:navigator&&navigator.userAgent},e.globalReportConfig),e.globalReportConfig.userId||("string"==typeof e.globalReportConfig.uid?(e.globalReportConfig.userId=e.globalReportConfig.uid,e.globalReportConfig.uid=0):e.globalReportConfig.userId=String(e.globalReportConfig.uid))),h.set(e);var t=h.get("hooks");new fe({onxhr:t.xhr,onfetch:t.fetch,ondom:t.dom,onconsole:t.console,onhistory:t.history,onnativeapi:t.nativeapi,onerror:t.error,onunhandledrejection:t.unhandledrejection,logHandler:Xt,errorHandler:function(e,t){h.get("_devSend");Wt({log_type:t,log_content:S(e),type:2}),Qt()}}).setupOnce(),Qt();var n=h.get("globalReportConfig");if((null==n?void 0:n.device_id)||(null==n?void 0:n.userId)){h.get("_devSend");0,tt(n)}Bt=!0}function Jt(e){h.set(e)}function zt(e,t,n){h.setKey(e,t,n)}function Xt(e,n){void 0===n&&(n=1),h.get("stop")||Ft(e,n,t.PLAIN)}function Yt(e){return At(this,void 0,void 0,(function(){return Ut(this,(function(t){switch(t.label){case 0:return h.get("stop")?[2]:h.get("globalReportConfig").act_id||e.act_id?(e.isCN&&h.setKey("isCN",e.isCN),"number"==typeof e.log_action&&(e.log_action=String(e.log_action)),h.get("_devSend"),[4,Wt(Gt({log_type:o.TRACK,type:2},e))]):(console.error("%cbigo-log","border:1px solid #aaa;padding: 10px 5px;color: #f99418;font-weight: 500;","请在initConfig的globalReportConfig中传入act_id 或 track中传入act_id"),[2]);case 1:return[2,t.sent()]}}))}))}function Qt(){return At(this,void 0,void 0,(function(){var e;return Ut(this,(function(t){switch(t.label){case 0:return e=new Date,[4,Zt({fromDayString:v(new Date(+e-5184e5)),toDayString:v(e)})];case 1:return[2,t.sent()]}}))}))}function Zt(e){return At(this,void 0,void 0,(function(){var t;return Ut(this,(function(n){switch(n.label){case 0:if(h.get("stop"))return[2];!function(e){if(!e)throw new Error("reportConfig needs to be an object");var t="is not valid, needs to be YYYY-MM-DD format";if(!y(e.fromDayString))throw new Error("fromDayString ".concat(t));if(!y(e.toDayString))throw new Error("toDayString ".concat(t));if(e.fromDayString>e.toDayString)throw new Error("fromDayString needs to be no bigger than toDayString")}(e),n.label=1;case 1:return n.trys.push([1,3,,5]),[4,Lt(Gt(Gt({},h.get("globalReportConfig")),e))];case 2:return[2,n.sent()];case 3:return t=n.sent(),[4,h.get("errorHandler")(t)];case 4:return n.sent(),[3,5];case 5:return[2]}}))}))}function Wt(e){return At(this,void 0,void 0,(function(){var t;return Ut(this,(function(n){switch(n.label){case 0:return t=h.get("globalReportConfig"),[4,qt(Gt(Gt({},t),e))];case 1:return[2,n.sent()]}}))}))}function $t(){zt("stop",!0)}function en(){zt("stop",!1)}function tn(){return At(this,void 0,void 0,(function(){return Ut(this,(function(e){switch(e.label){case 0:return $t(),[4,Le.deleteAll()];case 1:return e.sent(),[2]}}))}))}})(),r})()));