UNPKG

@zoom/cobrowsesdk

Version:
1 lines 203 kB
var e='function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,t){var r=_superPropBase(e,n);if(r){var o=Object.getOwnPropertyDescriptor(r,n);return o.get?o.get.call(arguments.length<3?e:t):o.value}},_get.apply(null,arguments)}function _superPropBase(e,n){for(;!{}.hasOwnProperty.call(e,n)&&null!==(e=_getPrototypeOf(e)););return e}function _createForOfIteratorHelper(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(s)throw i}}}}function _wrapNativeSuper(e){var n="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(t,e)},_wrapNativeSuper(e)}function _construct(e,n,t){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,n);var o=new(e.bind.apply(e,r));return t&&_setPrototypeOf(o,t.prototype),o}function _isNativeFunction(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(n){return"function"==typeof e}}function _defineProperty(e,n,t){return(n=_toPropertyKey(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function _inherits(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&_setPrototypeOf(e,n)}function _setPrototypeOf(e,n){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},_setPrototypeOf(e,n)}function _createSuper(e){var n=_isNativeReflectConstruct();return function(){var t,r=_getPrototypeOf(e);if(n){var o=_getPrototypeOf(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return _possibleConstructorReturn(this,t)}}function _possibleConstructorReturn(e,n){if(n&&("object"==_typeof(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */_regeneratorRuntime=function(){return n};var e,n={},t=Object.prototype,r=t.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,n,t,r){return Object.defineProperty(e,n,{value:t,enumerable:!r,configurable:!r,writable:!r})}try{u({},"")}catch(e){u=function(e,n,t){return e[n]=t}}function c(n,t,r,o){var i=t&&t.prototype instanceof l?t:l,a=Object.create(i.prototype);return u(a,"_invoke",function(n,t,r){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var u=T(s,r);if(u){if(u===E)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===o)throw o=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;var c=_(n,t,r);if("normal"===c.type){if(o=r.done?4:2,c.arg===E)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=4,r.method="throw",r.arg=c.arg)}}}(n,r,new h(o||[])),!0),a}function _(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}n.wrap=c;var E={};function l(){}function d(){}function f(){}var S={};u(S,i,(function(){return this}));var R=Object.getPrototypeOf,I=R&&R(R(A([])));I&&I!==t&&r.call(I,i)&&(S=I);var g=f.prototype=l.prototype=Object.create(S);function p(e){["next","throw","return"].forEach((function(n){u(e,n,(function(e){return this._invoke(n,e)}))}))}function O(e,n){function t(o,i,a,s){var u=_(e[o],e,i);if("throw"!==u.type){var c=u.arg,E=c.value;return E&&"object"==_typeof(E)&&r.call(E,"__await")?n.resolve(E.__await).then((function(e){t("next",e,a,s)}),(function(e){t("throw",e,a,s)})):n.resolve(E).then((function(e){c.value=e,a(c)}),(function(e){return t("throw",e,a,s)}))}s(u.arg)}var o;u(this,"_invoke",(function(e,r){function i(){return new n((function(n,o){t(e,r,n,o)}))}return o=o?o.then(i,i):i()}),!0)}function T(n,t){var r=t.method,o=n.i[r];if(o===e)return t.delegate=null,"throw"===r&&n.i.return&&(t.method="return",t.arg=e,T(n,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a \'"+r+"\' method")),E;var i=_(o,n.i,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,E;var a=i.arg;return a?a.done?(t[n.r]=a.value,t.next=n.n,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,E):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,E)}function C(e){this.tryEntries.push(e)}function N(n){var t=n[4]||{};t.type="normal",t.arg=e,n[4]=t}function h(e){this.tryEntries=[[-1]],e.forEach(C,this),this.reset(!0)}function A(n){if(null!=n){var t=n[i];if(t)return t.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var o=-1,a=function t(){for(;++o<n.length;)if(r.call(n,o))return t.value=n[o],t.done=!1,t;return t.value=e,t.done=!0,t};return a.next=a}}throw new TypeError(_typeof(n)+" is not iterable")}return d.prototype=f,u(g,"constructor",f),u(f,"constructor",d),d.displayName=u(f,s,"GeneratorFunction"),n.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===d||"GeneratorFunction"===(n.displayName||n.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,u(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},n.awrap=function(e){return{__await:e}},p(O.prototype),u(O.prototype,a,(function(){return this})),n.AsyncIterator=O,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new O(c(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},p(g),u(g,s,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var n=Object(e),t=[];for(var r in n)t.unshift(r);return function e(){for(;t.length;)if((r=t.pop())in n)return e.value=r,e.done=!1,e;return e.done=!0,e}},n.values=A,h.prototype={constructor:h,reset:function(n){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(N),!n)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var t=this;function r(e){a.type="throw",a.arg=n,t.next=e}for(var o=t.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,u=i[1],c=i[2];if(-1===i[0])return r("end"),!1;if(!u&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<u)return this.method="next",this.arg=e,r(u),!0;if(s<c)return r(c),!1}}},abrupt:function(e,n){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var o=r;break}}o&&("break"===e||"continue"===e)&&o[0]<=n&&n<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=n,o?(this.method="next",this.next=o[2],E):this.complete(i)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),E},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t[2]===e)return this.complete(t[4],t[3]),N(t),E}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t[0]===e){var r=t[4];if("throw"===r.type){var o=r.arg;N(t)}return o}}throw Error("illegal catch attempt")},delegateYield:function(n,t,r){return this.delegate={i:A(n),r:t,n:r},"next"===this.method&&(this.arg=e),E}},n}function _slicedToArray(e,n){return _arrayWithHoles(e)||_iterableToArrayLimit(e,n)||_unsupportedIterableToArray(e,n)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,n){if(e){if("string"==typeof e)return _arrayLikeToArray(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,n):void 0}}function _arrayLikeToArray(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function _iterableToArrayLimit(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;u=!1}else for(;!(u=(r=i.call(t)).done)&&(s.push(r.value),s.length!==n);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _defineProperties(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_toPropertyKey(r.key),r)}}function _createClass(e,n,t){return n&&_defineProperties(e.prototype,n),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var n=_toPrimitive(e,"string");return"symbol"==_typeof(n)?n:n+""}function _toPrimitive(e,n){if("object"!=_typeof(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function _classCallCheck(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}var ZoomCobrowseAgentSDK=function(e,n,t){"use strict";function r(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t}function o(e,n,t,r){return new(t||(t=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}u((r=r.apply(e,n||[])).next())}))}var i,a;!function(e){e[e.info=0]="info",e[e.debug=1]="debug",e[e.log=2]="log",e[e.warn=3]="warn",e[e.error=4]="error"}(i||(i={})),function(e){e.afterInit="afterInit",e.beforeLog="beforeLog",e.afterLog="afterLog",e.beforeReport="beforeReport",e.afterReport="afterReport"}(a||(a={}));var s=_createClass((function e(){_classCallCheck(this,e)})),u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(e){if(e.__esModule)return e;var n=e.default;if("function"==typeof n){var t=function e(){if(this instanceof e){var t=[null];return t.push.apply(t,arguments),new(Function.bind.apply(n,t))}return n.apply(this,arguments)};t.prototype=n.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}var _={},E={get exports(){return _},set exports(e){_=e}};var l,d={},f={get exports(){return d},set exports(e){d=e}},S=c(Object.freeze({__proto__:null,default:{}}));function R(){return l||(l=1,f.exports=(e=e||function(e,n){var t;if("undefined"!=typeof window&&window.crypto&&(t=window.crypto),"undefined"!=typeof self&&self.crypto&&(t=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(t=globalThis.crypto),!t&&"undefined"!=typeof window&&window.msCrypto&&(t=window.msCrypto),!t&&void 0!==u&&u.crypto&&(t=u.crypto),!t)try{t=S}catch(e){}var r=function(){if(t){if("function"==typeof t.getRandomValues)try{return t.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof t.randomBytes)try{return t.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(n){var t;return e.prototype=n,t=new e,e.prototype=null,t}}(),i={},a=i.lib={},s=a.Base={extend:function(e){var n=o(this);return e&&n.mixIn(e),n.hasOwnProperty("init")&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=a.WordArray=s.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=t!=n?t:4*e.length},toString:function(e){return(e||E).stringify(this)},concat:function(e){var n=this.words,t=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i<o;i++){var a=t[i>>>2]>>>24-i%4*8&255;n[r+i>>>2]|=a<<24-(r+i)%4*8}else for(var s=0;s<o;s+=4)n[r+s>>>2]=t[s>>>2];return this.sigBytes+=o,this},clamp:function(){var n=this.words,t=this.sigBytes;n[t>>>2]&=4294967295<<32-t%4*8,n.length=e.ceil(t/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var n=[],t=0;t<e;t+=4)n.push(r());return new c.init(n,e)}}),_=i.enc={},E=_.Hex={stringify:function(e){for(var n=e.words,t=e.sigBytes,r=[],o=0;o<t;o++){var i=n[o>>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var n=e.length,t=[],r=0;r<n;r+=2)t[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(t,n/2)}},l=_.Latin1={stringify:function(e){for(var n=e.words,t=e.sigBytes,r=[],o=0;o<t;o++){var i=n[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var n=e.length,t=[],r=0;r<n;r++)t[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(t,n)}},d=_.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},f=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(n){var t,r=this._data,o=r.words,i=r.sigBytes,a=this.blockSize,s=i/(4*a),u=(s=n?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,_=e.min(4*u,i);if(u){for(var E=0;E<u;E+=a)this._doProcessBlock(o,E);t=o.splice(0,u),r.sigBytes-=_}return new c.init(t,_)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=f.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(n,t){return new e.init(t).finalize(n)}},_createHmacHelper:function(e){return function(n,t){return new R.HMAC.init(e,t).finalize(n)}}});var R=i.algo={};return i}(Math),e)),d;var e}E.exports=R().enc.Utf8;var I,g={},p={get exports(){return g},set exports(e){g=e}};function O(){return I||(I=1,function(e,n){var t;e.exports=(t=R(),function(){var e=t,n=e.lib.WordArray;function r(e,t,r){for(var o=[],i=0,a=0;a<t;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2|r[e.charCodeAt(a)]>>>6-a%4*2;o[i>>>2]|=s<<24-i%4*8,i++}return n.create(o,i)}e.enc.Base64={stringify:function(e){var n=e.words,t=e.sigBytes,r=this._map;e.clamp();for(var o=[],i=0;i<t;i+=3)for(var a=(n[i>>>2]>>>24-i%4*8&255)<<16|(n[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|n[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s<t;s++)o.push(r.charAt(a>>>6*(3-s)&63));var u=r.charAt(64);if(u)for(;o.length%4;)o.push(u);return o.join("")},parse:function(e){var n=e.length,t=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<t.length;i++)o[t.charCodeAt(i)]=i}var a=t.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(n=s)}return r(e,n,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),t.enc.Base64)}(p)),g}O();var T=function(e){try{return JSON.stringify(e)}catch(e){return"json stringify failed"}};var C,N,h,A=(C=(new Date).getTime(),N=performance&&performance.now&&1e3*performance.now()||0,"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var n=16*Math.random();return C>0?(n=(C+n)%16|0,C=Math.floor(C/16)):(n=(N+n)%16|0,N=Math.floor(N/16)),("x"===e?n:3&n|8).toString(16)}))),D=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t},v=function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t="".concat(e);t.length<n;)t="0".concat(t);return t},m=function(e){var n=new Date(e),t=n.getUTCFullYear(),r=v(n.getUTCMonth()+1),o=v(n.getUTCDate()),i=v(n.getUTCHours()),a=v(n.getUTCMinutes()),s=v(n.getUTCSeconds()),u=v(n.getUTCMilliseconds(),3);return"".concat(t,"-").concat(r,"-").concat(o," ").concat(i,":").concat(a,":").concat(s,".").concat(u)},y={version:"000001",flag:"0"},P=function(e){return e.reduce((function(e,n){var t,r,o,a,s,u,c,_=(r=(t=n).message,o=t.logLevel,a=t.tags,s=t.timestamp,t.id,u=D(t,["message","logLevel","tags","timestamp","id"]),c=Object.assign({time:m(s),logLevel:i[o],message:r,tags:a,laplaceSessionId:A},u),T(c)),E=function(e){for(var n=e.length,t=e.length-1;t>=0;t--){var r=e.charCodeAt(t);r>127&&r<=2047?n++:r>2047&&r<=65535&&(n+=2),r>=56320&&r<=57343&&t--}return n}(_),l=e[e.length-1];return l.currentSize+E>30720?e.push({messages:[_],ids:[n.id],currentSize:E}):(l.messages.push(_),l.ids.push(n.id),l.currentSize+=E),e}),[{messages:[],ids:[],currentSize:0}]).filter((function(e){return e.currentSize>0})).map((function(e){return{messages:e.messages.join("\\n"),ids:e.ids,meta:y}}))};function L(e){return new Promise((function(n,t){e.oncomplete=e.onsuccess=function(){return n(e.result)},e.onabort=e.onerror=function(){return t(e.error)}}))}function b(e,n){var t=indexedDB.open(e);t.onupgradeneeded=function(){return t.result.createObjectStore(n)};var r=L(t);return function(e,t){return r.then((function(r){return t(r.transaction(n,e).objectStore(n))}))}}function w(){return h||(h=b("keyval-store","keyval")),h}function M(e,n){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:w())("readwrite",(function(t){return t.put(n,e),L(t.transaction)}))}function F(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:w())("readwrite",(function(n){return e.forEach((function(e){return n.delete(e)})),L(n.transaction)}))}function U(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:w())("readwrite",(function(e){return e.clear(),L(e.transaction)}))}function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w();return e("readonly",(function(n){if(n.getAll&&n.getAllKeys)return Promise.all([L(n.getAllKeys()),L(n.getAll())]).then((function(e){var n=_slicedToArray(e,2),t=n[0],r=n[1];return t.map((function(e,n){return[e,r[n]]}))}));var t=[];return e("readonly",(function(e){return function(e,n){return e.openCursor().onsuccess=function(){this.result&&(n(this.result),this.result.continue())},L(e.transaction)}(e,(function(e){return t.push([e.key,e.value])})).then((function(){return t}))}))}))}var B=function(e,n,t,r){return new(t||(t=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}u((r=r.apply(e,n||[])).next())}))},x=new(function(){function e(){_classCallCheck(this,e),this.queue=[],this.processing=!1}return _createClass(e,[{key:"enqueue",value:function(e){var n=this;return new Promise((function(t,r){n.queue.push((function(){return B(n,void 0,void 0,_regeneratorRuntime().mark((function n(){var o;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,e();case 3:o=n.sent,t(o),n.next=10;break;case 7:n.prev=7,n.t0=n.catch(0),r(n.t0);case 10:case"end":return n.stop()}}),n,null,[[0,7]])})))})),n.processing||n.processNext()}))}},{key:"processNext",value:function(){return B(this,void 0,void 0,_regeneratorRuntime().mark((function e(){var n;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this.queue.length){e.next=3;break}return this.processing=!1,e.abrupt("return");case 3:return this.processing=!0,n=this.queue.shift(),e.prev=5,e.next=8,n();case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(5),console.error("Task error:",e.t0);case 13:this.processNext();case 14:case"end":return e.stop()}}),e,this,[[5,10]])})))}}]),e}()),V=function(e,n,t,r){return new(t||(t=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}u((r=r.apply(e,n||[])).next())}))},W=_createClass((function e(n){var t=this;_classCallCheck(this,e),this.set=function(e,n){try{return!t.disableDB&&x.enqueue((function(){return V(t,void 0,void 0,_regeneratorRuntime().mark((function t(){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",M(e,n,this.store));case 1:case"end":return t.stop()}}),t,this)})))}))}catch(e){t.disableDB=!0}},this.makeNextId=function(){return t.nextId+=1,t.nextId},this.addLog=function(e){t.addToMemory(e);var n=e.id;return Number.isNaN(n),t.set("".concat(n),e)},this.addToMemory=function(e,n){t.memoryStoreData=n?[].concat(e):t.memoryStoreData.concat(e)},this.syncFromIDB=function(){return V(t,void 0,void 0,_regeneratorRuntime().mark((function e(){var n,t,r,o,i,a=this;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x.enqueue((function(){return V(a,void 0,void 0,_regeneratorRuntime().mark((function e(){return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",k(this.store));case 1:case"end":return e.stop()}}),e,this)})))}));case 2:if(t=e.sent,r=t.filter((function(e){var n=_slicedToArray(e,2),t=n[0],r=n[1];return!(null==r?void 0:r.id)&&0!==(null==r?void 0:r.id)||!Number.isInteger(Number(t))})),o=r.map((function(e){return e[0]})),i=t.filter((function(e){var n=_slicedToArray(e,1)[0];return!o.includes(n)})).sort((function(e,n){var t,r;return(null===(t=e[1])||void 0===t?void 0:t.id)-(null===(r=n[1])||void 0===r?void 0:r.id)})).map((function(e){return _slicedToArray(e,2)[1]})),this.addToMemory(i,!0),!(o.length>0)){e.next=10;break}return e.next=10,this.deleteLogs(o);case 10:return this.nextId=0===this.memoryStoreData.length?0:null===(n=this.memoryStoreData[this.memoryStoreData.length-1])||void 0===n?void 0:n.id,e.abrupt("return",this.memoryStoreData);case 12:case"end":return e.stop()}}),e,this)})))},this.getStore=function(){return t.memoryStoreData},this.filterStore=function(e){var n=[e].flatMap((function(e){return e}));return e?t.memoryStoreData.filter((function(e){return n.some((function(n){return"string"==typeof n?e.tags.some((function(e){return n===e})):"function"==typeof n&&n(e)}))})):t.memoryStoreData},this.deleteLogs=function(e){return V(t,void 0,void 0,_regeneratorRuntime().mark((function n(){var t=this;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.deleteMemoryLogs(e),n.abrupt("return",x.enqueue((function(){return V(t,void 0,void 0,_regeneratorRuntime().mark((function n(){return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",F(e.map((function(e){return"".concat(e)})),this.store));case 1:case"end":return n.stop()}}),n,this)})))})));case 2:case"end":return n.stop()}}),n,this)})))},this.deleteLogsAfterReport=function(e){return V(t,void 0,void 0,_regeneratorRuntime().mark((function n(){return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.deleteMemoryLogs(e),n.abrupt("return",F(e.map((function(e){return"".concat(e)})),this.store));case 2:case"end":return n.stop()}}),n,this)})))},this.deleteMemoryLogs=function(e){t.memoryStoreData=t.memoryStoreData.filter((function(n){var t;return!(null===(t=e.includes)||void 0===t?void 0:t.call(e,n.id))}))},this.reset=function(){t.memoryStoreData=[],x.enqueue((function(){return V(t,void 0,void 0,_regeneratorRuntime().mark((function e(){return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",U(this.store));case 1:case"end":return e.stop()}}),e,this)})))}))},this.nextId=0,this.memoryStoreData=[],this.disableDB=!1,x.enqueue((function(){return V(t,void 0,void 0,_regeneratorRuntime().mark((function e(){return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",b(n,n+"-store"));case 1:case"end":return e.stop()}}),e)})))})).then((function(e){t.store=e}))}));function G(e,n,t){var r=e.plugins;return Array.isArray(r)?r.map((function(e){return e[n]})).reduce((function(n,t){var r=null==t?void 0:t(e,n);return null!=r?r:n}),t):t}var H=function(e){return new Promise((function(n){var t=new XMLHttpRequest;t.open(e.type||"GET",e.url,!0),t.withCredentials=e.withCredentials,t.onerror=function(t){n({error:t,report:e.reportItem})},t.onreadystatechange=function(){if(4===t.readyState){var r=t.status;n(r>=200&&r<300?{report:e.reportItem}:{error:"Request failed, status: ".concat(r,", responseText: ").concat(t.responseText),report:e.reportItem})}},Object.entries(e.headers).forEach((function(e){var n=_slicedToArray(e,2),r=n[0],o=n[1];o&&r&&t.setRequestHeader(r,o)})),t.send(e.data)}))},J="Expected a function",Y=NaN,j="[object Symbol]",K=/^\\s+|\\s+$/g,z=/^[-+]0x[0-9a-f]+$/i,Z=/^0b[01]+$/i,X=/^0o[0-7]+$/i,q=parseInt,Q="object"==_typeof(u)&&u&&u.Object===Object&&u,$="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self&&self.Object===Object&&self,ee=Q||$||Function("return this")(),ne=Object.prototype.toString,te=Math.max,re=Math.min,oe=function(){return ee.Date.now()};function ie(e,n,t){var r,o,i,a,s,u,c=0,_=!1,E=!1,l=!0;if("function"!=typeof e)throw new TypeError(J);function d(n){var t=r,i=o;return r=o=void 0,c=n,a=e.apply(i,t)}function f(e){var t=e-u;return void 0===u||t>=n||t<0||E&&e-c>=i}function S(){var e=oe();if(f(e))return R(e);s=setTimeout(S,function(e){var t=n-(e-u);return E?re(t,i-(e-c)):t}(e))}function R(e){return s=void 0,l&&r?d(e):(r=o=void 0,a)}function I(){var e=oe(),t=f(e);if(r=arguments,o=this,u=e,t){if(void 0===s)return function(e){return c=e,s=setTimeout(S,n),_?d(e):a}(u);if(E)return s=setTimeout(S,n),d(u)}return void 0===s&&(s=setTimeout(S,n)),a}return n=ue(n)||0,ae(t)&&(_=!!t.leading,i=(E="maxWait"in t)?te(ue(t.maxWait)||0,n):i,l="trailing"in t?!!t.trailing:l),I.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=u=o=s=void 0},I.flush=function(){return void 0===s?a:R(oe())},I}function ae(e){var n=_typeof(e);return!!e&&("object"==n||"function"==n)}function se(e){return"symbol"==_typeof(e)||function(e){return!!e&&"object"==_typeof(e)}(e)&&ne.call(e)==j}function ue(e){if("number"==typeof e)return e;if(se(e))return Y;if(ae(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=ae(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(K,"");var t=Z.test(e);return t||X.test(e)?q(e.slice(2),t?2:8):z.test(e)?Y:+e}var ce=function(e,n,t){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError(J);return ae(t)&&(r="leading"in t?!!t.leading:r,o="trailing"in t?!!t.trailing:o),ie(e,n,{leading:r,maxWait:n,trailing:o})},_e=function(e,n,t,r){return new(t||(t=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}u((r=r.apply(e,n||[])).next())}))},Ee={databaseName:"laplace-default-db"},le=function(e,n,t,r){var o=Date.now();return Object.assign({message:e,logLevel:t,tags:n,timestamp:o},r)},de=_createClass((function e(n){var t=this;_classCallCheck(this,e),this.cacheFilter=[],this.log=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.log,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return _e(t,void 0,void 0,_regeneratorRuntime().mark((function t(){var i,s,u;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=[n,this.publicTags].flatMap((function(e){return e})),s=le(e,i,r,Object.assign(Object.assign({},this.publicAttributes),o)),(u=G(this,a.beforeLog,s)).id=this.idbManager.makeNextId(),this.idbManager.addLog(u),G(this,a.afterLog,u);case 6:case"end":return t.stop()}}),t,this)})))},this.deleteLog=function(e,n){if(!Array.isArray(n)||(t.idbManager.deleteLogs(n),e)){var r=t.idbManager.filterStore(e).map((function(e){return e.id}));t.idbManager.deleteLogs(r)}},this.deleteAll=function(){t.idbManager.reset()},this.getLogs=function(e){return t.idbManager.filterStore(e)},this.setReportUrl=function(e){t.reportUrl=e},this.throttleReport=ce((function(e){t.reportByHttps(e),t.cacheFilter=[]}),5e3,{leading:!0,trailing:!0}),this.reportByFilter=function(e){t.cacheFilter=t.cacheFilter.concat(e),t.throttleReport(t.cacheFilter)},this.reportByHttps=function(e){return _e(t,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,r=this;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t=function(){return _e(r,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,r,o;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if((t=this.idbManager.filterStore(e))&&0!==t.length){n.next=3;break}return n.abrupt("return");case 3:return r=G(this,a.beforeReport,t),o=P(r),n.abrupt("return",this.commonReport(o));case 6:case"end":return n.stop()}}),n,this)})))},x.enqueue(t);case 2:case"end":return n.stop()}}),n)})))},this.directReport=function(e,n){var r,o,a,s,u=null!==(r=n.sampleRate)&&void 0!==r?r:1;if(!(Math.random()>u))return s=n.useRawData?e:Object.assign({message:e,time:m(Date.now()),tags:[].concat(_toConsumableArray(null!==(o=null==n?void 0:n.tags)&&void 0!==o?o:[]),_toConsumableArray(t.publicTags)),logLevel:null!==(a=null==n?void 0:n.logLevel)&&void 0!==a?a:i.log,laplaceSessionId:A},t.publicAttributes),t.commonReport([{messages:s,meta:y}],!1)},this.commonReport=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t.reportUrl)return Promise.all(e.map((function(e){return{url:t.reportUrl,type:"POST",withCredentials:!1,headers:{},data:T({messages:e.messages,meta:e.meta}),reportItem:e}})).map(H)).then((function(e){var r=e.filter((function(e){return!e.error})).flatMap((function(e){return e.report.ids}));if(G(t,a.afterReport,{removeIds:r}),n)return t.idbManager.deleteLogsAfterReport(r)}))};var r=n.databaseName,o=n.reportUrl,s=void 0===o?"":o,u=n.plugins,c=void 0===u?[]:u,_=n.idbManager,E=n.publicTags,l=void 0===E?[]:E,d=n.publicAttributes,f=void 0===d?{}:d;this.databaseName=r,this.reportUrl=s,this.plugins=c,this.idbManager=_,this.publicTags=l,this.publicAttributes=f,G(this,a.afterInit)}));de.init=function(e){return _e(void 0,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,r;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.databaseName,r=new W(void 0===t?"laplace-default-db":t),n.next=4,r.syncFromIDB();case 4:return n.abrupt("return",new de(Object.assign(Object.assign(Object.assign({},Ee),e),{idbManager:r})));case 5:case"end":return n.stop()}}),n)})))};var fe,Se,Re={enable:!0,gatewayEndPoint:"",logLevel:{debug:!1,log:!0,info:!1,print:!1,warn:!0,error:!0},logLevelAutoReport:{debug:!0,log:!0,info:!0,warn:!0,error:!0}},Ie=(null===window||void 0===window?void 0:window.ZMCoBrowsingConfig)||{},ge={enable:Ie.enableZCBClientLog,gatewayEndPoint:Ie.gatewayEndPoint},pe=function(){var e,n=null!==(e=ge.gatewayEndPoint)&&void 0!==e?e:Re.gatewayEndPoint;return n||""}(),Oe=Re,Te=(fe="",Se=void 0,{setDynamicReportUrl:function(e){fe=e},getDynamicReportUrl:function(){return fe},getCurrentReportUrl:function(){return fe||pe},setDynamicLaplaceEnabled:function(e){Se=e},getDynamicLaplaceEnabled:function(){return Se}}),Ce=function(){return void 0!==Te.getDynamicLaplaceEnabled()?Te.getDynamicLaplaceEnabled():!!(null!==(e=ge.enable)&&void 0!==e?e:null==Re?void 0:Re.enable);var e},Ne=function(e){_inherits(t,e);var n=_createSuper(t);function t(e){var r;return _classCallCheck(this,t),(r=n.call(this)).config={debug:!1},r.debugLog=function(e){r.config.debug&&console.log("[AutoCleanLogPlugin]: ".concat(e))},r.afterInit=function(e){var n=r.config.expireBefore;if(n){var t=e.idbManager.getStore(),o=("function"==typeof n?t.filter(n):t.filter((function(e){return e.timestamp<n}))).map((function(e){return e.id}));e.deleteLog(void 0,o),r.debugLog("afterInit, clean log id: ".concat(o))}else r.debugLog("early return on beforeInit because expireBefore is falsy")},e&&(r.config=e),r}return _createClass(t)}(s),he=["RESOURCE_ERROR","JS_ERROR","UNHANDLED_PROMISE_REJECTION"],Ae=function(e){_inherits(t,e);var n=_createSuper(t);function t(e){var r;return _classCallCheck(this,t),(r=n.call(this)).config={debug:!1,publicTags:[]},r.errorCount=0,r.hashErrors={},r.addPublicTags=function(e){var n;return null===(n=r.config.publicTags)||void 0===n?void 0:n.concat(e).filter((function(e){return e}))},r.debugLog=function(e){r.config.debug&&console.log("[AutoLogErrorPlugin]:",e)},r.ignore=function(e){var n,t,o,i,a;return void 0!==(null===(n=r.config)||void 0===n?void 0:n.maxErrorCount)&&r.errorCount>=(null===(t=r.config)||void 0===t?void 0:t.maxErrorCount)||!!(null===(o=r.config)||void 0===o?void 0:o.ignoredErrorMsgKeywords)&&(e&&(null===(a=null===(i=r.config)||void 0===i?void 0:i.ignoredErrorMsgKeywords)||void 0===a?void 0:a.some((function(n){return null==e?void 0:e.includes(n)}))))},r.report=ce((function(e){}),600,{trailing:!0,leading:!1}),r.afterInit=function(e){if(self.addEventListener){var n=function(n,t,o,a){r.debugLog(o),r.errorCount+=1;try{return(s=n,u=(new TextEncoder).encode(s),crypto.subtle.digest("SHA-1",u).then((function(e){return Array.from(new Uint8Array(e)).map((function(e){return e.toString(16).padStart(2,"0")})).join("")}))).then((function(o){return r.hashErrors[o]?"dismissed":(r.hashErrors[o]=!0,e.log(n,r.addPublicTags([].concat(t)),null!=a?a:i.error,{extraProperties:{messageHash:o}}).then((function(){return e.reportByFilter(he)})))})).catch(console.error)}catch(e){return console.error(e),Promise.resolve(e)}var s,u};try{self.addEventListener("error",(function(e){var t,o,i,a,s,u,c;if(!r.ignore(null==e?void 0:e.message)){if("function"==typeof r.config.onError){var _=r.config.onError(e),E=_.message,l=_.tags,d=_.logLevel;return n(E,["JS_ERROR"].concat(_toConsumableArray(l)),e,d)}if((null==e?void 0:e.target)&&((null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.src)||(null===(o=null==e?void 0:e.target)||void 0===o?void 0:o.href))){var f="Load Resource Error in ".concat(null===(i=null==e?void 0:e.target)||void 0===i?void 0:i.tagName," element: ").concat((null===(a=null==e?void 0:e.target)||void 0===a?void 0:a.src)||(null===(s=null==e?void 0:e.target)||void 0===s?void 0:s.href));return n(f,"RESOURCE_ERROR",e)}var S="Javascript Runtime Error in ".concat(null==e?void 0:e.filename," (").concat(null==e?void 0:e.lineno,":").concat(null==e?void 0:e.colno,"): ").concat(null==e?void 0:e.message,"\\nStack: ").concat(null!==(c=null===(u=null==e?void 0:e.error)||void 0===u?void 0:u.stack)&&void 0!==c?c:null==e?void 0:e.stack);return n(S,"JS_ERROR",e)}})),self.addEventListener("unhandledrejection",(function(e){var t;if(!r.ignore(null===(t=null==e?void 0:e.reason)||void 0===t?void 0:t.message)){if("function"==typeof r.config.onError){var o=r.config.onError(e),i=o.message,a=o.tags,s=o.logLevel;return n(i,["UNHANDLED_PROMISE_REJECTION"].concat(_toConsumableArray(a)),e,s)}var u,c=null==e?void 0:e.reason;return u="string"==typeof c?"Promise Error: ".concat(c):c instanceof Error?"Promise Error: ".concat(c.message," ").concat(c.name," ").concat(c.stack):"object"===_typeof(c)?"Promise Error with reason: ".concat(T(c)):"Promise Error with unrecognized reason: ".concat(c),n(u,"UNHANDLED_PROMISE_REJECTION",e)}}))}catch(e){console.error(e)}r.debugLog("afterInit, add listener")}},e&&(r.config=e),r.config.publicTags=[].concat(null==e?void 0:e.publicTags),r}return _createClass(t)}(s),De="__lodash_hash_undefined__",ve=9007199254740991,me="[object Arguments]",ye="[object Function]",Pe="[object GeneratorFunction]",Le="[object Symbol]",be=/^\\[object .+?Constructor\\]$/,we=/^(?:0|[1-9]\\d*)$/,Me="object"==_typeof(u)&&u&&u.Object===Object&&u,Fe="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self&&self.Object===Object&&self,Ue=Me||Fe||Function("return this")();function ke(e,n){return!!(e?e.length:0)&&function(e,n,t){if(n!=n)return function(e,n,t,r){var o=e.length,i=t+(r?1:-1);for(;r?i--:++i<o;)if(n(e[i],i,e))return i;return-1}(e,We,t);var r=t-1,o=e.length;for(;++r<o;)if(e[r]===n)return r;return-1}(e,n,0)>-1}function Be(e,n,t){for(var r=-1,o=e?e.length:0;++r<o;)if(t(n,e[r]))return!0;return!1}function xe(e,n){for(var t=-1,r=e?e.length:0,o=Array(r);++t<r;)o[t]=n(e[t],t,e);return o}function Ve(e,n){for(var t=-1,r=n.length,o=e.length;++t<r;)e[o+t]=n[t];return e}function We(e){return e!=e}function Ge(e,n){return e.has(n)}function He(e,n){return function(t){return e(n(t))}}var Je,Ye=Array.prototype,je=Function.prototype,Ke=Object.prototype,ze=Ue["__core-js_shared__"],Ze=(Je=/[^.]+$/.exec(ze&&ze.keys&&ze.keys.IE_PROTO||""))?"Symbol(src)_1."+Je:"",Xe=je.toString,qe=Ke.hasOwnProperty,Qe=Ke.toString,$e=RegExp("^"+Xe.call(qe).replace(/[\\\\^$.*+?()[\\]{}|]/g,"\\\\$&").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,"$1.*?")+"$"),en=Ue.Symbol,nn=He(Object.getPrototypeOf,Object),tn=Ke.propertyIsEnumerable,rn=Ye.splice,on=en?en.isConcatSpreadable:void 0,an=Object.getOwnPropertySymbols,sn=Math.max,un=Tn(Ue,"Map"),cn=Tn(Object,"create");function _n(e){var n=-1,t=e?e.length:0;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}function En(e){var n=-1,t=e?e.length:0;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}function ln(e){var n=-1,t=e?e.length:0;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}function dn(e){var n=-1,t=e?e.length:0;for(this.__data__=new ln;++n<t;)this.add(e[n])}function fn(e,n){var t=mn(e)||vn(e)?function(e,n){for(var t=-1,r=Array(e);++t<e;)r[t]=n(t);return r}(e.length,String):[],r=t.length,o=!!r;for(var i in e)!n&&!qe.call(e,i)||o&&("length"==i||An(i,r))||t.push(i);return t}function Sn(e,n){for(var t,r,o=e.length;o--;)if((t=e[o][0])===(r=n)||t!=t&&r!=r)return o;return-1}function Rn(e,n,t,r,o){var i=-1,a=e.length;for(t||(t=hn),o||(o=[]);++i<a;){var s=e[i];n>0&&t(s)?n>1?Rn(s,n-1,t,r,o):Ve(o,s):r||(o[o.length]=s)}return o}function In(e){if(!Ln(e)||(n=e,Ze&&Ze in n))return!1;var n,t=Pn(e)||function(e){var n=!1;if(null!=e&&"function"!=typeof e.toString)try{n=!!(e+"")}catch(e){}return n}(e)?$e:be;return t.test(function(e){if(null!=e){try{return Xe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function gn(e){if(!Ln(e))return function(e){var n=[];if(null!=e)for(var t in Object(e))n.push(t);return n}(e);var n,t,r,o=(t=(n=e)&&n.constructor,r="function"==typeof t&&t.prototype||Ke,n===r),i=[];for(var a in e)("constructor"!=a||!o&&qe.call(e,a))&&i.push(a);return i}function pn(e){return function(e,n,t){var r=n(e);return mn(e)?r:Ve(r,t(e))}(e,wn,Nn)}function On(e,n){var t,r,o=e.__data__;return("string"==(r=_typeof(t=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?o["string"==typeof n?"string":"hash"]:o.map}function Tn(e,n){var t=function(e,n){return null==e?void 0:e[n]}(e,n);return In(t)?t:void 0}_n.prototype.clear=function(){this.__data__=cn?cn(null):{}},_n.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},_n.prototype.get=function(e){var n=this.__data__;if(cn){var t=n[e];return t===De?void 0:t}return qe.call(n,e)?n[e]:void 0},_n.prototype.has=function(e){var n=this.__data__;return cn?void 0!==n[e]:qe.call(n,e)},_n.prototype.set=function(e,n){return this.__data__[e]=cn&&void 0===n?De:n,this},En.prototype.clear=function(){this.__data__=[]},En.prototype.delete=function(e){var n=this.__data__,t=Sn(n,e);return!(t<0)&&(t==n.length-1?n.pop():rn.call(n,t,1),!0)},En.prototype.get=function(e){var n=this.__data__,t=Sn(n,e);return t<0?void 0:n[t][1]},En.prototype.has=function(e){return Sn(this.__data__,e)>-1},En.prototype.set=function(e,n){var t=this.__data__,r=Sn(t,e);return r<0?t.push([e,n]):t[r][1]=n,this},ln.prototype.clear=function(){this.__data__={hash:new _n,map:new(un||En),string:new _n}},ln.prototype.delete=function(e){return On(this,e).delete(e)},ln.prototype.get=function(e){return On(this,e).get(e)},ln.prototype.has=function(e){return On(this,e).has(e)},ln.prototype.set=function(e,n){return On(this,e).set(e,n),this},dn.prototype.add=dn.prototype.push=function(e){return this.__data__.set(e,De),this},dn.prototype.has=function(e){return this.__data__.has(e)};var Cn=an?He(an,Object):kn,Nn=an?function(e){for(var n=[];e;)Ve(n,Cn(e)),e=nn(e);return n}:kn;function hn(e){return mn(e)||vn(e)||!!(on&&e&&e[on])}function An(e,n){return!!(n=null==n?ve:n)&&("number"==typeof e||we.test(e))&&e>-1&&e%1==0&&e<n}function Dn(e){if("string"==typeof e||function(e){return"symbol"==_typeof(e)||bn(e)&&Qe.call(e)==Le}(e))return e;var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n}function vn(e){return function(e){return bn(e)&&yn(e)}(e)&&qe.call(e,"callee")&&(!tn.call(e,"callee")||Qe.call(e)==me)}var mn=Array.isArray;function yn(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=ve}(e.length)&&!Pn(e)}function Pn(e){var n=Ln(e)?Qe.call(e):"";return n==ye||n==Pe}function Ln(e){var n=_typeof(e);return!!e&&("object"==n||"function"==n)}function bn(e){return!!e&&"object"==_typeof(e)}function wn(e){return yn(e)?fn(e,!0):gn(e)}var Mn,Fn,Un=(Mn=function(e,n){return null==e?{}:(n=xe(Rn(n,1),Dn),function(e,n){return function(e,n,t){for(var r=-1,o=n.length,i={};++r<o;){var a=n[r],s=e[a];t(s,a)&&(i[a]=s)}return i}(e=Object(e),n,(function(n,t){return t in e}))}(e,function(e,n,t,r){var o,i=-1,a=ke,s=!0,u=e.length,c=[],_=n.length;if(!u)return c;t&&(n=xe(n,(o=t,function(e){return o(e)}))),r?(a=Be,s=!1):n.length>=200&&(a=Ge,s=!1,n=new dn(n));e:for(;++i<u;){var E=e[i],l=t?t(E):E;if(E=r||0!==E?E:0,s&&l==l){for(var d=_;d--;)if(n[d]===l)continue e;c.push(E)}else a(n,l,r)||c.push(E)}return c}(pn(e),n)))},Fn=sn(void 0===Fn?Mn.length-1:Fn,0),function(){for(var e=arguments,n=-1,t=sn(e.length-Fn,0),r=Array(t);++n<t;)r[n]=e[Fn+n];n=-1;for(var o=Array(Fn+1);++n<Fn;)o[n]=e[n];return o[Fn]=r,function(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}(Mn,this,o)});function kn(){return[]}var Bn=Un,xn=function(e,n,t,r){return new(t||(t=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}u((r=r.apply(e,n||[])).next())}))},Vn=["STATIC_RESOURCE_TIMING"],Wn=function(e,n){if(!n)return!0;for(var t=0;t<n.length;t++)if(e.includes(n[t]))return!0;return!1};var Gn=function(e){_inherits(t,e);var n=_createSuper(t);function t(e){var r;return _classCallCheck(this,t),(r=n.call(this)).config={debug:!1,publicTags:[],excludeResourceTimingKeys:[],userRegion:"",enable:!1},r.entryList=[],r.debugLog=function(e){r.config.debug&&console.log("[AutoLogStaticResourcePlugin]:",e)},r.addPublicTags=function(e){var n;return null===(n=r.config.publicTags)||void 0===n?void 0:n.concat(e).filter((function(e){return e}))},r.pickEntryProperties=function(e){var n,t=e.domainLookupEnd,o=e.domainLookupStart,i=e.redirectStart,a=e.redirectEnd,s=e.connectStart,u=e.connectEnd,c=e.secureConnectionStart,_=e.responseEnd,E=e.responseStart,l=e.requestStart,d=0!==o,f=d?Math.round(t-o):-1,S=d?Math.round(E-l):-1,R=d?Math.round(a-i):-1,I=d?Math.round(u-s):-1;c&&d&&(I=Math.round(u-c));var g,p,O=d?Math.round(_-E):-1,T=navigator.connection?navigator.connection.effectiveType:"Unknown",C=Bn(e,r.config.excludeResourceTimingKeys.concat("toJSON","Symbol(Symbol.toStringTag)","serverTiming")),N=(g=null!==(n=C.name)&&void 0!==n?n:"",(p=(g=g.replace(/\\/+$/,"")).match(/[^/]+$/))?p[0]:null);return Object.assign(Object.assign({},C),{name:N,url:C.name,dns:f,ttfb:S,redirect:R,connect:I,download:O,network:T,duration:Math.round(e.duration),userRegion:r.config.userRegion})},r.afterInit=function(e){var n=r.addPublicTags(["STATIC_RESOURCE_TIMING"]),t=Boolean(r.config.enable);new PerformanceObserver((function(o){o.getEntries().forEach((function(o){return xn(_assertThisInitialized(r),void 0,void 0,_regeneratorRuntime().mark((function r(){var a,s;return _regeneratorRuntime().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=o.name,!Wn(a,this.config.includeResourceList)){r.next=11;break}if(s=this.pickEntryProperties(o),!t){r.next=9;break}return r.next=6,e.log(s,n,i.info);case 6:t&&e.reportByFilter(Vn),r.next=11;break;case 9:return r.next=11,e.log(s,n,i.info);case 11:case"end":return r.stop()}}),r,this)})))}))})).observe({type:"resource",buffered:!0})},e&&(r.config=Object.assign({},r.config,e)),r}return _createClass(t)}(s),Hn=function(){function e(){_classCallCheck(this,e),window.ZCB_CoBrowseConfigController=this,this.requestNpmModeAgentConfig()}return _createClass(e,[{key:"getCoBrowsingConfig",value:function(e){var n;return e?window.ZMCoBrowsingConfig?window.ZMCoBrowsingConfig[e]:null===(n=this.coBrowsingConfig)||void 0===n?void 0:n[e]:window.ZMCoBrowsingConfig||this.coBrowsingConfig}},{key:"setCoBrowsingConfig",value:function(e){this.coBrowsingConfig=Object.assign(Object.assign({},this.coBrowsingConfig),e)}},{key:"requestNpmModeAgentConfig",value:function(){var e,n,t;(null===(e=window.ZCB_NPM_SDK_AGENT_MAIN)||void 0===e?void 0:e.isInnerFrame(document))&&window.ZCB_CoBrowseConfigController.setCoBrowsingConfig(Object.assign({isViewer:null===(n=window.ZCB_NPM_SDK_AGENT_SESSION_CONTEXT)||void 0===n?void 0:n.isViewer,appKey:null===(t=window.ZCB_NPM_SDK_AGENT_SESSION_CONTEXT)||void 0===t?void 0:t.appKey},window.parent.ZCB_CoBrowseConfigController.coBrowsingConfig))}}],[{key:"create",value:function(){return window.ZCB_CoBrowseConfigController||new e}}]),e}().create(),Jn=function(e,n){return"".concat(e).concat(n)};!function e(n,t){var r={},o=function(){var o=n[i];"string"==typeof o?r[i]=Jn(t,o):"function"==typeof o?r[i]=function(){return Jn(t,o.apply(void 0,arguments))}:"object"===_typeof(o)&&(o instanceof RegExp||(r[i]=e(o,t)))};for(var i in n)o();return r}({log:{report:"/report-log"},blob:{uploadBlob:"/upload-blob",getB