@zoom/cobrowsesdk 2.9.2 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/esm/agent.js +1 -1
- package/esm/customer.js +1 -1
- package/esm/sdk-channel.js +1 -1
- package/esm/sdk-client-agent.js +1 -1
- package/esm/sdk-client.js +1 -1
- package/esm/sdk-controller.js +1 -1
- package/esm/sdk-core.js +1 -1
- package/esm/sdk-portal-agent.js +1 -1
- package/esm/sdk-portal-customer.js +1 -1
- package/package.json +1 -1
- package/types/agent-umd.d.ts +82 -14
- package/types/agent.d.ts +82 -14
- package/types/customer-umd.d.ts +76 -18
- package/types/customer.d.ts +76 -18
- package/umd/agent.js +1 -1
- package/umd/customer.js +1 -1
package/esm/sdk-client-agent.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
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 d?t:d,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===_)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=l(n,t,r);if("normal"===c.type){if(o=r.done?4:2,c.arg===_)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=4,r.method="throw",r.arg=c.arg)}}}(n,r,new v(o||[])),!0),a}function l(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}n.wrap=c;var _={};function d(){}function E(){}function f(){}var g={};u(g,i,(function(){return this}));var S=Object.getPrototypeOf,p=S&&S(S(m([])));p&&p!==t&&r.call(p,i)&&(g=p);var I=f.prototype=d.prototype=Object.create(g);function R(e){["next","throw","return"].forEach((function(n){u(e,n,(function(e){return this._invoke(n,e)}))}))}function C(e,n){function t(o,i,a,s){var u=l(e[o],e,i);if("throw"!==u.type){var c=u.arg,_=c.value;return _&&"object"==_typeof(_)&&r.call(_,"__await")?n.resolve(_.__await).then((function(e){t("next",e,a,s)}),(function(e){t("throw",e,a,s)})):n.resolve(_).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")),_;var i=l(o,n.i,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,_;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,_):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,_)}function h(e){this.tryEntries.push(e)}function O(n){var t=n[4]||{};t.type="normal",t.arg=e,n[4]=t}function v(e){this.tryEntries=[[-1]],e.forEach(h,this),this.reset(!0)}function m(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 E.prototype=f,u(I,"constructor",f),u(f,"constructor",E),E.displayName=u(f,s,"GeneratorFunction"),n.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===E||"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(I),e},n.awrap=function(e){return{__await:e}},R(C.prototype),u(C.prototype,a,(function(){return this})),n.AsyncIterator=C,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new C(c(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},R(I),u(I,s,"Generator"),u(I,i,(function(){return this})),u(I,"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=m,v.prototype={constructor:v,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(O),!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],_):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),_},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]),O(t),_}},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;O(t)}return o}}throw Error("illegal catch attempt")},delegateYield:function(n,t,r){return this.delegate={i:m(n),r:t,n:r},"next"===this.method&&(this.arg=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){"use strict";function t(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 r(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 o,i;!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"}(o||(o={})),function(e){e.afterInit="afterInit",e.beforeLog="beforeLog",e.afterLog="afterLog",e.beforeReport="beforeReport",e.afterReport="afterReport"}(i||(i={}));var a=_createClass((function e(){_classCallCheck(this,e)})),s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u(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 c={},l={get exports(){return c},set exports(e){c=e}};var _,d={},E={get exports(){return d},set exports(e){d=e}},f=u(Object.freeze({__proto__:null,default:{}}));function g(){return _||(_=1,E.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!==s&&s.crypto&&(t=s.crypto),!t)try{t=f}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={},u=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=u.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=t!=n?t:4*e.length},toString:function(e){return(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=u.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)}}),l=i.enc={},_=l.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)}},d=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)}},E=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},g=a.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=E.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,l=e.min(4*u,i);if(u){for(var _=0;_<u;_+=a)this._doProcessBlock(o,_);t=o.splice(0,u),r.sigBytes-=l}return new c.init(t,l)},clone:function(){var e=u.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=g.extend({cfg:u.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){g.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 S.HMAC.init(e,t).finalize(n)}}});var S=i.algo={};return i}(Math),e)),d;var e}l.exports=g().enc.Utf8;var S,p={},I={get exports(){return p},set exports(e){p=e}};function R(){return S||(S=1,function(e,n){var t;e.exports=(t=g(),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)}(I)),p}R();var C=function(e){try{return JSON.stringify(e)}catch(e){return"json stringify failed"}};var T,h,O,v=(T=(new Date).getTime(),h=performance&&performance.now&&1e3*performance.now()||0,"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var n=16*Math.random();return T>0?(n=(T+n)%16|0,T=Math.floor(T/16)):(n=(h+n)%16|0,h=Math.floor(h/16)),("x"===e?n:3&n|8).toString(16)}))),m=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},A=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},D=function(e){var n=new Date(e),t=n.getUTCFullYear(),r=A(n.getUTCMonth()+1),o=A(n.getUTCDate()),i=A(n.getUTCHours()),a=A(n.getUTCMinutes()),s=A(n.getUTCSeconds()),u=A(n.getUTCMilliseconds(),3);return"".concat(t,"-").concat(r,"-").concat(o," ").concat(i,":").concat(a,":").concat(s,".").concat(u)},N={version:"000001",flag:"0"},y=function(e){return e.reduce((function(e,n){var t,r,i,a,s,u,c,l=(r=(t=n).message,i=t.logLevel,a=t.tags,s=t.timestamp,t.id,u=m(t,["message","logLevel","tags","timestamp","id"]),c=Object.assign({time:D(s),logLevel:o[i],message:r,tags:a,laplaceSessionId:v},u),C(c)),_=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),d=e[e.length-1];return d.currentSize+_>30720?e.push({messages:[l],ids:[n.id],currentSize:_}):(d.messages.push(l),d.ids.push(n.id),d.currentSize+=_),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:N}}))};function b(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 P(e,n){var t=indexedDB.open(e);t.onupgradeneeded=function(){return t.result.createObjectStore(n)};var r=b(t);return function(e,t){return r.then((function(r){return t(r.transaction(n,e).objectStore(n))}))}}function w(){return O||(O=P("keyval-store","keyval")),O}function L(e,n){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:w())("readwrite",(function(t){return t.put(n,e),b(t.transaction)}))}function M(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:w())("readwrite",(function(n){return e.forEach((function(e){return n.delete(e)})),b(n.transaction)}))}function F(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:w())("readwrite",(function(e){return e.clear(),b(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([b(n.getAllKeys()),b(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())},b(e.transaction)}(e,(function(e){return t.push([e.key,e.value])})).then((function(){return t}))}))}))}var x=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())}))},B=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 x(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 x(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}()),U=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())}))},V=_createClass((function e(n){var t=this;_classCallCheck(this,e),this.set=function(e,n){try{return!t.disableDB&&B.enqueue((function(){return U(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",L(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 U(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,B.enqueue((function(){return U(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 U(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",B.enqueue((function(){return U(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",M(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 U(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",M(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=[],B.enqueue((function(){return U(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",F(this.store));case 1:case"end":return e.stop()}}),e,this)})))}))},this.nextId=0,this.memoryStoreData=[],this.disableDB=!1,B.enqueue((function(){return U(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",P(n,n+"-store"));case 1:case"end":return e.stop()}}),e)})))})).then((function(e){t.store=e}))}));function W(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)}))},G="Expected a function",J=NaN,j="[object Symbol]",z=/^\\s+|\\s+$/g,K=/^[-+]0x[0-9a-f]+$/i,Y=/^0b[01]+$/i,Z=/^0o[0-7]+$/i,q=parseInt,X="object"==_typeof(s)&&s&&s.Object===Object&&s,Q="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self&&self.Object===Object&&self,$=X||Q||Function("return this")(),ee=Object.prototype.toString,ne=Math.max,te=Math.min,re=function(){return $.Date.now()};function oe(e,n,t){var r,o,i,a,s,u,c=0,l=!1,_=!1,d=!0;if("function"!=typeof e)throw new TypeError(G);function E(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-c>=i}function g(){var e=re();if(f(e))return S(e);s=setTimeout(g,function(e){var t=n-(e-u);return _?te(t,i-(e-c)):t}(e))}function S(e){return s=void 0,d&&r?E(e):(r=o=void 0,a)}function p(){var e=re(),t=f(e);if(r=arguments,o=this,u=e,t){if(void 0===s)return function(e){return c=e,s=setTimeout(g,n),l?E(e):a}(u);if(_)return s=setTimeout(g,n),E(u)}return void 0===s&&(s=setTimeout(g,n)),a}return n=se(n)||0,ie(t)&&(l=!!t.leading,i=(_="maxWait"in t)?ne(se(t.maxWait)||0,n):i,d="trailing"in t?!!t.trailing:d),p.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=u=o=s=void 0},p.flush=function(){return void 0===s?a:S(re())},p}function ie(e){var n=_typeof(e);return!!e&&("object"==n||"function"==n)}function ae(e){return"symbol"==_typeof(e)||function(e){return!!e&&"object"==_typeof(e)}(e)&&ee.call(e)==j}function se(e){if("number"==typeof e)return e;if(ae(e))return J;if(ie(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=ie(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(z,"");var t=Y.test(e);return t||Z.test(e)?q(e.slice(2),t?2:8):K.test(e)?J:+e}var ue=function(e,n,t){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError(G);return ie(t)&&(r="leading"in t?!!t.leading:r,o="trailing"in t?!!t.trailing:o),oe(e,n,{leading:r,maxWait:n,trailing:o})},ce=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())}))},le={databaseName:"laplace-default-db"},_e=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]:o.log,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return ce(t,void 0,void 0,_regeneratorRuntime().mark((function t(){var o,s,u;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=[n,this.publicTags].flatMap((function(e){return e})),s=_e(e,o,r,Object.assign(Object.assign({},this.publicAttributes),a)),(u=W(this,i.beforeLog,s)).id=this.idbManager.makeNextId(),this.idbManager.addLog(u),W(this,i.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=ue((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 ce(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 ce(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=W(this,i.beforeReport,t),o=y(r),n.abrupt("return",this.commonReport(o));case 6:case"end":return n.stop()}}),n,this)})))},B.enqueue(t);case 2:case"end":return n.stop()}}),n)})))},this.directReport=function(e,n){var r,i,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:D(Date.now()),tags:[].concat(_toConsumableArray(null!==(i=null==n?void 0:n.tags)&&void 0!==i?i:[]),_toConsumableArray(t.publicTags)),logLevel:null!==(a=null==n?void 0:n.logLevel)&&void 0!==a?a:o.log,laplaceSessionId:v},t.publicAttributes),t.commonReport([{messages:s,meta:N}],!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:C({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(W(t,i.afterReport,{removeIds:r}),n)return t.idbManager.deleteLogsAfterReport(r)}))};var r=n.databaseName,a=n.reportUrl,s=void 0===a?"":a,u=n.plugins,c=void 0===u?[]:u,l=n.idbManager,_=n.publicTags,d=void 0===_?[]:_,E=n.publicAttributes,f=void 0===E?{}:E;this.databaseName=r,this.reportUrl=s,this.plugins=c,this.idbManager=l,this.publicTags=d,this.publicAttributes=f,W(this,i.afterInit)}));de.init=function(e){return ce(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 V(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({},le),e),{idbManager:r})));case 5:case"end":return n.stop()}}),n)})))};var Ee,fe,ge={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}},Se=(null===window||void 0===window?void 0:window.ZMCoBrowsingConfig)||{},pe={enable:Se.enableZCBClientLog,gatewayEndPoint:Se.gatewayEndPoint},Ie=function(){var e,n=null!==(e=pe.gatewayEndPoint)&&void 0!==e?e:ge.gatewayEndPoint;return n||""}(),Re=ge,Ce=(Ee="",fe=void 0,{setDynamicReportUrl:function(e){Ee=e},getDynamicReportUrl:function(){return Ee},getCurrentReportUrl:function(){return Ee||Ie},setDynamicLaplaceEnabled:function(e){fe=e},getDynamicLaplaceEnabled:function(){return fe}}),Te=function(){return void 0!==Ce.getDynamicLaplaceEnabled()?Ce.getDynamicLaplaceEnabled():!!(null!==(e=pe.enable)&&void 0!==e?e:null==ge?void 0:ge.enable);var e},he=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)}(a),Oe=["RESOURCE_ERROR","JS_ERROR","UNHANDLED_PROMISE_REJECTION"],ve=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=ue((function(e){}),600,{trailing:!0,leading:!1}),r.afterInit=function(e){if(self.addEventListener){var n=function(n,t,i,a){r.debugLog(i),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(i){return r.hashErrors[i]?"dismissed":(r.hashErrors[i]=!0,e.log(n,r.addPublicTags([].concat(t)),null!=a?a:o.error,{extraProperties:{messageHash:i}}).then((function(){return e.reportByFilter(Oe)})))})).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 l=r.config.onError(e),_=l.message,d=l.tags,E=l.logLevel;return n(_,["JS_ERROR"].concat(_toConsumableArray(d)),e,E)}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 g="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(g,"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(C(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)}(a),me="__lodash_hash_undefined__",Ae=9007199254740991,De="[object Arguments]",Ne="[object Function]",ye="[object GeneratorFunction]",be="[object Symbol]",Pe=/^\\[object .+?Constructor\\]$/,we=/^(?:0|[1-9]\\d*)$/,Le="object"==_typeof(s)&&s&&s.Object===Object&&s,Me="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self&&self.Object===Object&&self,Fe=Le||Me||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,Ve,t);var r=t-1,o=e.length;for(;++r<o;)if(e[r]===n)return r;return-1}(e,n,0)>-1}function xe(e,n,t){for(var r=-1,o=e?e.length:0;++r<o;)if(t(n,e[r]))return!0;return!1}function Be(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 Ue(e,n){for(var t=-1,r=n.length,o=e.length;++t<r;)e[o+t]=n[t];return e}function Ve(e){return e!=e}function We(e,n){return e.has(n)}function He(e,n){return function(t){return e(n(t))}}var Ge,Je=Array.prototype,je=Function.prototype,ze=Object.prototype,Ke=Fe["__core-js_shared__"],Ye=(Ge=/[^.]+$/.exec(Ke&&Ke.keys&&Ke.keys.IE_PROTO||""))?"Symbol(src)_1."+Ge:"",Ze=je.toString,qe=ze.hasOwnProperty,Xe=ze.toString,Qe=RegExp("^"+Ze.call(qe).replace(/[\\\\^$.*+?()[\\]{}|]/g,"\\\\$&").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,"$1.*?")+"$"),$e=Fe.Symbol,en=He(Object.getPrototypeOf,Object),nn=ze.propertyIsEnumerable,tn=Je.splice,rn=$e?$e.isConcatSpreadable:void 0,on=Object.getOwnPropertySymbols,an=Math.max,sn=Cn(Fe,"Map"),un=Cn(Object,"create");function cn(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 _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 dn(e){var n=-1,t=e?e.length:0;for(this.__data__=new _n;++n<t;)this.add(e[n])}function En(e,n){var t=Dn(e)||An(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||vn(i,r))||t.push(i);return t}function fn(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 gn(e,n,t,r,o){var i=-1,a=e.length;for(t||(t=On),o||(o=[]);++i<a;){var s=e[i];n>0&&t(s)?n>1?gn(s,n-1,t,r,o):Ue(o,s):r||(o[o.length]=s)}return o}function Sn(e){if(!bn(e)||(n=e,Ye&&Ye in n))return!1;var n,t=yn(e)||function(e){var n=!1;if(null!=e&&"function"!=typeof e.toString)try{n=!!(e+"")}catch(e){}return n}(e)?Qe:Pe;return t.test(function(e){if(null!=e){try{return Ze.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function pn(e){if(!bn(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||ze,n===r),i=[];for(var a in e)("constructor"!=a||!o&&qe.call(e,a))&&i.push(a);return i}function In(e){return function(e,n,t){var r=n(e);return Dn(e)?r:Ue(r,t(e))}(e,wn,hn)}function Rn(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 Cn(e,n){var t=function(e,n){return null==e?void 0:e[n]}(e,n);return Sn(t)?t:void 0}cn.prototype.clear=function(){this.__data__=un?un(null):{}},cn.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},cn.prototype.get=function(e){var n=this.__data__;if(un){var t=n[e];return t===me?void 0:t}return qe.call(n,e)?n[e]:void 0},cn.prototype.has=function(e){var n=this.__data__;return un?void 0!==n[e]:qe.call(n,e)},cn.prototype.set=function(e,n){return this.__data__[e]=un&&void 0===n?me:n,this},ln.prototype.clear=function(){this.__data__=[]},ln.prototype.delete=function(e){var n=this.__data__,t=fn(n,e);return!(t<0)&&(t==n.length-1?n.pop():tn.call(n,t,1),!0)},ln.prototype.get=function(e){var n=this.__data__,t=fn(n,e);return t<0?void 0:n[t][1]},ln.prototype.has=function(e){return fn(this.__data__,e)>-1},ln.prototype.set=function(e,n){var t=this.__data__,r=fn(t,e);return r<0?t.push([e,n]):t[r][1]=n,this},_n.prototype.clear=function(){this.__data__={hash:new cn,map:new(sn||ln),string:new cn}},_n.prototype.delete=function(e){return Rn(this,e).delete(e)},_n.prototype.get=function(e){return Rn(this,e).get(e)},_n.prototype.has=function(e){return Rn(this,e).has(e)},_n.prototype.set=function(e,n){return Rn(this,e).set(e,n),this},dn.prototype.add=dn.prototype.push=function(e){return this.__data__.set(e,me),this},dn.prototype.has=function(e){return this.__data__.has(e)};var Tn=on?He(on,Object):kn,hn=on?function(e){for(var n=[];e;)Ue(n,Tn(e)),e=en(e);return n}:kn;function On(e){return Dn(e)||An(e)||!!(rn&&e&&e[rn])}function vn(e,n){return!!(n=null==n?Ae:n)&&("number"==typeof e||we.test(e))&&e>-1&&e%1==0&&e<n}function mn(e){if("string"==typeof e||function(e){return"symbol"==_typeof(e)||Pn(e)&&Xe.call(e)==be}(e))return e;var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n}function An(e){return function(e){return Pn(e)&&Nn(e)}(e)&&qe.call(e,"callee")&&(!nn.call(e,"callee")||Xe.call(e)==De)}var Dn=Array.isArray;function Nn(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Ae}(e.length)&&!yn(e)}function yn(e){var n=bn(e)?Xe.call(e):"";return n==Ne||n==ye}function bn(e){var n=_typeof(e);return!!e&&("object"==n||"function"==n)}function Pn(e){return!!e&&"object"==_typeof(e)}function wn(e){return Nn(e)?En(e,!0):pn(e)}var Ln,Mn,Fn=(Ln=function(e,n){return null==e?{}:(n=Be(gn(n,1),mn),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=[],l=n.length;if(!u)return c;t&&(n=Be(n,(o=t,function(e){return o(e)}))),r?(a=xe,s=!1):n.length>=200&&(a=We,s=!1,n=new dn(n));e:for(;++i<u;){var _=e[i],d=t?t(_):_;if(_=r||0!==_?_:0,s&&d==d){for(var E=l;E--;)if(n[E]===d)continue e;c.push(_)}else a(n,d,r)||c.push(_)}return c}(In(e),n)))},Mn=an(void 0===Mn?Ln.length-1:Mn,0),function(){for(var e=arguments,n=-1,t=an(e.length-Mn,0),r=Array(t);++n<t;)r[n]=e[Mn+n];n=-1;for(var o=Array(Mn+1);++n<Mn;)o[n]=e[n];return o[Mn]=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)}(Ln,this,o)});function kn(){return[]}var xn=Fn,Bn=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())}))},Un=["STATIC_RESOURCE_TIMING"],Vn=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 Wn=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,l=e.responseEnd,_=e.responseStart,d=e.requestStart,E=0!==o,f=E?Math.round(t-o):-1,g=E?Math.round(_-d):-1,S=E?Math.round(a-i):-1,p=E?Math.round(u-s):-1;c&&E&&(p=Math.round(u-c));var I,R,C=E?Math.round(l-_):-1,T=navigator.connection?navigator.connection.effectiveType:"Unknown",h=xn(e,r.config.excludeResourceTimingKeys.concat("toJSON","Symbol(Symbol.toStringTag)","serverTiming")),O=(I=null!==(n=h.name)&&void 0!==n?n:"",(R=(I=I.replace(/\\/+$/,"")).match(/[^/]+$/))?R[0]:null);return Object.assign(Object.assign({},h),{name:O,url:h.name,dns:f,ttfb:g,redirect:S,connect:p,download:C,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(i){i.getEntries().forEach((function(i){return Bn(_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=i.name,!Vn(a,this.config.includeResourceList)){r.next=11;break}if(s=this.pickEntryProperties(i),!t){r.next=9;break}return r.next=6,e.log(s,n,o.info);case 6:t&&e.reportByFilter(Un),r.next=11;break;case 9:return r.next=11,e.log(s,n,o.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)}(a),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(),Gn=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]=Gn(t,o):"function"==typeof o?r[i]=function(){return Gn(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",getBlobUrl:function(e){return"/cps-blob-".concat(e)},getBlobUrlReg:/cps-blob-([^?#\\/]+)/}},"/co-browsing");var Jn,jn,zn,Kn={get createSession(){return"/sdkapi/zcb/sessions"},get getSessionStatus(){return"/sdkapi/zcb/sessions"},get refreshZCBToken(){return"/sdkapi/zcb/refresh-tokens"},get joinSession(){return"/sdkapi/zcb/cobrowse-codes/{pinCode}/session"},get reportSessionStatusLog(){return"/sdkapi/zcb/cbs/{appKey}/session-status"}};!function(e){e.LOCAL="local",e.PROD="prod"}(Jn||(Jn={})),function(e){e.LEADER="1",e.FOLLOWER="2",e.RECORDER="11"}(jn||(jn={})),function(e){e.IMG="IMG",e.SOURCE="SOURCE",e.LINK="LINK",e.A="A",e.AUDIO="AUDIO",e.IFRAME="IFRAME",e.FORM="FORM",e.SCRIPT="SCRIPT",e.STYLE="STYLE"}(zn||(zn={}));var Yn,Zn;!function(e){e.LEADER="HR",e.FOLLOWER="VR"}(Yn||(Yn={})),new RegExp("(.+)(HTTPS?)/(.+)/".concat("CPS-SEP-FLAG","/(").concat(Yn.FOLLOWER,"|").concat(Yn.LEADER,")")),function(e){e[e.TYPE_UNKNOWN=-1]="TYPE_UNKNOWN",e[e.TYPE_TOP=1]="TYPE_TOP",e[e.TYPE_FRAME=2]="TYPE_FRAME",e[e.TYPE_AUX=3]="TYPE_AUX",e[e.TYPE_SCRIPT=4]="TYPE_SCRIPT",e[e.TYPE_MODULE=5]="TYPE_MODULE",e[e.TYPE_LINK=6]="TYPE_LINK",e[e.TYPE_XHR=7]="TYPE_XHR",e[e.TYPE_RESOURCE=8]="TYPE_RESOURCE",e[e.TYPE_WORKER=9]="TYPE_WORKER",e[e.TYPE_WORKER_SCOPE=10]="TYPE_WORKER_SCOPE",e[e.TYPE_REDIRECT=11]="TYPE_REDIRECT",e[e.TYPE_PAWS=12]="TYPE_PAWS",e[e.TYPE_CONTINUATION=13]="TYPE_CONTINUATION"}(Zn||(Zn={}));var qn,Xn=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),Qn=(qn={},Xn.forEach((function(e,n){return qn[e]=n})),qn),$n=/^(?:[A-Za-z\\d+\\/]{4})*?(?:[A-Za-z\\d+\\/]{2}(?:==)?|[A-Za-z\\d+\\/]{3}=?)?$/,et=String.fromCharCode.bind(String),nt=function(e){if(e.length<2){var n=e.charCodeAt(0);return n<128?e:n<2048?et(192|n>>>6)+et(128|63&n):et(224|n>>>12&15)+et(128|n>>>6&63)+et(128|63&n)}var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return et(240|t>>>18&7)+et(128|t>>>12&63)+et(128|t>>>6&63)+et(128|63&t)},tt=/[\\uD800-\\uDBFF][\\uDC00-\\uDFFFF]|[^\\x00-\\x7F]/g,rt=/[\\xC0-\\xDF][\\x80-\\xBF]|[\\xE0-\\xEF][\\x80-\\xBF]{2}|[\\xF0-\\xF7][\\x80-\\xBF]{3}/g,ot=function(e){switch(e.length){case 4:var n=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return et(55296+(n>>>10))+et(56320+(1023&n));case 3:return et((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return et((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},it=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=function(e){for(var n,t,r,o,i="",a=e.length%3,s=0;s<e.length;){if((t=e.charCodeAt(s++))>255||(r=e.charCodeAt(s++))>255||(o=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");i+=Xn[(n=t<<16|r<<8|o)>>18&63]+Xn[n>>12&63]+Xn[n>>6&63]+Xn[63&n]}return a?i.slice(0,a-3)+"===".substring(a):i}(e.replace(tt,nt));return n?t.replace(/=/g,"").replace(/[+\\/]/g,(function(e){return"+"==e?"-":"_"})):t},at=function(e){return n=function(e){if(e=e.replace(/\\s+/g,""),!$n.test(e))throw new TypeError("malformed base64.");var n;e+="==".slice(2-(3&e.length));for(var t,r,o="",i=0;i<e.length;)n=Qn[e.charAt(i++)]<<18|Qn[e.charAt(i++)]<<12|(t=Qn[e.charAt(i++)])<<6|(r=Qn[e.charAt(i++)]),o+=64===t?et(n>>16&255):64===r?et(n>>16&255,n>>8&255):et(n>>16&255,n>>8&255,255&n);return o}(function(e){return e.replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\\+\\/]/g,"")}(e)),n.replace(rt,ot);var n};function st(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{return it(e,n)}catch(e){}return e}var ut,ct,lt,_t,dt,Et,ft,gt,St,pt,It,Rt,Ct,Tt,ht,Ot,vt,mt,At,Dt,Nt,yt,bt,Pt,wt,Lt,Mt,Ft,kt,xt,Bt,Ut,Vt=function(){return!!window.ZCB_NPM_SDK_AGENT_MAIN||window.ZCB_NPM_SDK_CUSTOMER_MAIN},Wt=function(){return window.ZCB_NPM_SDK_AGENT_SESSION_CONTEXT},Ht=function(){return Hn.getCoBrowsingConfig("sdkVersion")},Gt=function(){return!!Hn.getCoBrowsingConfig("originalSdkVersion")},Jt=function(){return Hn.getCoBrowsingConfig("originalSdkVersion")};!function(e){e.USER_ROSTER="msg_user_roster",e.ROOM_ROSTER="msg_room_roster",e.SESSION_CLOSED="msg_session_closed",e.SESSION_STARTED="msg_session_started",e.SESSION_PERSISTED="msg_session_persisted",e.ERROR="msg_error",e.SESSION_CONNECTING="msg_session_connecting",e.SESSION_RECONNECTING="msg_session_reconnecting",e.RECORD_APPROVE_REQUEST="msg_record_approve_request",e.START_RECORD_RESPONSE="msg_record_started_response",e.STOP_RECORD_RESPONSE="msg_record_stopped_response",e.PAUSE_RECORD_RESPONSE="msg_record_paused_response",e.RESUME_RECORD_RESPONSE="msg_record_resumed_response",e.SOCKET_OPEN="msg_socket_open",e.RECORD_APPROVE_RESPONSE="msg_record_approve_response",e.USER_BE_HOLD_STATUS_CHANGE="msg_user_be_hold_status_change",e.REMOTE_CONTROL_REQUEST="msg_remote_control_request",e.REMOTE_CONTROL_RESPONSE="msg_remote_control_response",e.REMOTE_CONTROL_GIVE_UP="msg_remote_control_give_up",e.REMOTE_CONTROL_TAKE_BACK="msg_remote_control_take_back",e.REMOTE_CONTROL_REJECT="msg_remote_control_reject",e.REMOTE_CONTROL_CANCEL="msg_remote_control_cancel",e.LEADER_PAGE_VISIBILITY="msg_leader_page_visibility"}(ut||(ut={})),function(e){e.SESSION_STARTED="session_started",e.SESSION_INITED="session_inited",e.SESSION_PAUSED="session_paused",e.SESSION_RESUMED="session_resumed",e.SESSION_ENDED="session_ended",e.SESSION_LEFT="session_left",e.SESSION_CANCELING="session_canceling",e.SESSION_CONNECTING="session_connecting",e.SESSION_RECONNECTING="session_reconnecting",e.SESSION_PERSISTING="session_persisting",e.PARTICIPANT_CHANGED="participant_changed",e.AGENT_JOINED="agent_joined",e.AGENT_LEFT="agent_left",e.AGENT_DISCONNECTED="agent_disconnected",e.CUSTOMER_JOINED="customer_joined",e.CUSTOMER_LEFT="customer_left",e.CUSTOMER_DISCONNECTED="customer_disconnected",e.SESSION_ERROR="session_error",e.REMOTE_CONTROL_STATUS="remote_control_status",e.REMOTE_CONTROL_REQUEST="remote_control_request",e.REMOTE_CONTROL_RESPONSE="remote_control_response",e.REMOTE_CONTROL_GIVE_UP="remote_control_give_up",e.REMOTE_CONTROL_TAKE_BACK="remote_control_take_back",e.REMOTE_CONTROL_REJECT="remote_control_reject",e.REMOTE_CONTROL_CANCEL="remote_control_cancel",e.REMOTE_ASSIST_REQUESTED="remote_assist_requested",e.REMOTE_ASSIST_CANCELLED="remote_assist_cancelled",e.REMOTE_ASSIST_ACCEPTED="remote_assist_accepted",e.REMOTE_ASSIST_REJECTED="remote_assist_rejected",e.REMOTE_ASSIST_STARTED="remote_assist_started",e.REMOTE_ASSIST_STOPPED="remote_assist_stopped",e.PINCODE_UPDATED="pincode_updated",e.RECORD_STARTED="record_started",e.RECORD_STOPPED="record_stopped",e.RECORD_PAUSED="record_paused",e.RECORD_RESUMED="record_resumed",e.ORIGIN_UPDATED="origin_updated",e.START_REPLAY="start_replay",e.CURRENT_USER_TRANSFER="current_user_transfer",e.CUSTOMER_FOCUS_LOST="customer_focus_lost",e.CUSTOMER_TRANSFERRED="customer_transferred"}(ct||(ct={})),function(e){e.COM_DESK="com-desk",e.COM_VIEWER="com-viewer",e.COM_BYOP_DESK="com_byop_desk"}(lt||(lt={})),function(e){e[e.Normal=0]="Normal",e[e.AgentReconnectFailed=1]="AgentReconnectFailed",e[e.CustomerReconnectFailed=2]="CustomerReconnectFailed",e[e.CustomerEnded=3]="CustomerEnded"}(_t||(_t={})),function(e){e[e.Voice=1]="Voice",e[e.Chat=2]="Chat",e[e.VideoInbound=3]="VideoInbound",e[e.VideoOutbound=4]="VideoOutbound"}(dt||(dt={})),function(e){e.tabFollowingWaitTransferringCustomer="tabFollowingWaitTransferringCustomer",e.tabFollowingTransferringFailedCustomer="tabFollowingTransferringFailedCustomer",e.tabFollowingTransferringFailedAgent="tabFollowingTransferringFailedAgent"}(Et||(Et={})),function(e){e.NOT_CREATED="session_not_created",e.RECOVERABLE="session_recoverable",e.STARTED="session_started",e.CONNECT_FAILED="connect_failed",e.CONNECTING="session_connecting",e.CANCELING="session_canceling",e.RECONNECTING="session_reconnecting",e.CAN_PERSIST="session_can_persist",e.PERSISTING="session_persisting"}(ft||(ft={})),function(e){e.UNKNOWN="unknown"}(gt||(gt={})),function(e){e.UNKNOWN="unknown",e.NO_ROOT_DOM="no_root_dom"}(St||(St={})),function(e){e.START="START",e.JOIN="JOIN",e.AUTO="AUTO",e.PERSIST="persist"}(pt||(pt={})),function(e){e.zcc="zcc",e.common="common"}(It||(It={})),function(e){e[e.NoAction=0]="NoAction",e[e.Accept=1]="Accept",e[e.Decline=2]="Decline",e[e.Leave=3]="Leave"}(Rt||(Rt={})),function(e){e[e.END_ROOM=41e3]="END_ROOM",e[e.DESTROY_DEACTIVE_ROOM=41001]="DESTROY_DEACTIVE_ROOM",e[e.DESTROY_SLEEP_ROOM=41002]="DESTROY_SLEEP_ROOM",e[e.END_DEACTIVE_ROOM=10001]="END_DEACTIVE_ROOM"}(Ct||(Ct={})),function(e){e.END_SESSION="end_session",e.DEACTIVE_SESSION="deactive_session",e.CANCEL_SESSION="cancel_session"}(Tt||(Tt={})),_defineProperty(_defineProperty(_defineProperty(_defineProperty({},Ct.END_ROOM,Tt.END_SESSION),Ct.DESTROY_DEACTIVE_ROOM,Tt.DEACTIVE_SESSION),Ct.DESTROY_SLEEP_ROOM,Tt.DEACTIVE_SESSION),Ct.END_DEACTIVE_ROOM,Tt.DEACTIVE_SESSION),function(e){e[e.LEAVE_ROOM=4e4]="LEAVE_ROOM",e[e.DISCONNECTED=40001]="DISCONNECTED"}(ht||(ht={})),function(e){e.LEAVE_SESSION="leave_session",e.DISCONNECT_SESSION="disconnect_session"}(Ot||(Ot={})),_defineProperty(_defineProperty({},ht.LEAVE_ROOM,Ot.LEAVE_SESSION),ht.DISCONNECTED,Ot.DISCONNECT_SESSION),function(e){e.CUSTOMER_END_COBROWSE="Customer has left the Cobrowse session.",e.AGENT_END_COBROWSE="Agent has left the Cobrowse session.",e.END_COBROWSE_CC="THE_COBROWSE_SESSION_HAS_BEEN_ENDED"}(vt||(vt={})),function(e){e[e.DEFAULT=0]="DEFAULT",e[e.CC_UI_SESSION_END=1]="CC_UI_SESSION_END"}(mt||(mt={})),function(e){e.RECONNECTING_SESSION="Reconnecting Cobrowse session. Please wait....",e.CONNECTING_SESSION="Joining Cobrowse session...",e.UNABLE_JOIN_SESSION_TITLE="Unable to join the Cobrowse session",e.FAILED_RECONNECT_SESSION_TITLE="Failed to reconnect to the Cobrowse session",e.FAILED_RECONNECT_SESSION_CONTENT="The Cobrowse session has ended automatically due to failed reconnection. Please check your network connection and restart the session.",e.ENDED_RECONNECT_SESSION_TITLE="Cobrowse session has ended",e.RECONNECTING_SESSION_CC="RECONNECTING_COBROWSE",e.CONNECTING_SESSION_CC="JOINING_COBROWSE_SESSION",e.UNABLE_JOIN_SESSION_TITLE_CC="UNABLE_JOIN_SESSION_TITLE",e.FAILED_RECONNECT_SESSION_TITLE_CC="FAILED_RECONNECT_SESSION_TITLE",e.FAILED_RECONNECT_SESSION_CONTENT_CC="FAILED_RECONNECT_SESSION_CONTENT",e.ENDED_RECONNECT_SESSION_TITLE_CC="ENDED_RECONNECT_SESSION_TITLE",e.TRANSFER_FAILED_ERROR_TITLE="Failed to transfer to new tab"}(At||(At={})),function(e){e.TRANSFER_FAILED_ERROR_TIPS="Failed to transfer to new tab,Please return to the previous tab and have a try again."}(Dt||(Dt={})),function(e){e.RECONNECTING_SESSION="Reconnecting Cobrowse session...",e.CONNECTING_SESSION="Connecting to Cobrowse session...",e.GIVE_CONSUMER_CODE="Give the pairing code to your consumer to join:",e.COBROWSE_PIN_CODE="Cobrowse code",e.COBROWSE_PIN_CODE_TIPS="Please inform the following pin code to your support agent, your agent and you will browse this page together.",e.COBROWSE_PIN_CODE_TIPS_MOBILE="Please give this code to your agent.",e.GIVE_CONSUMER_CODE_CC="GIVE_CONSUMER_CODE",e.COBROWSE_PIN_CODE_ERROR_TITLE="Unable to generate pin code",e.COBROWSE_PIN_CODE_ERROR_TIPS="Unable to generate pin code. Please try again later."}(Nt||(Nt={})),function(e){e.WAIT_CONSUMER="WAIT_CONSUMER"}(yt||(yt={})),function(e){e.SESSION_TIMER="SESSION_TIMER",e.AUTO_END_SESSION="AUTO_END_SESSION",e.RECONNECTING_SESSION_CC="RECONNECTING_COBROWSE",e.CONNECTING_SESSION_CC="CONNECTING_TO_COBROWSE_SESSION",e.CAN_NOT_RECEIVE_INVITE_SESSION_CC="CAN_NOT_RECEIVE_INVITE_SESSION",e.JOIN_WITH_PAIRING_CODE="JOIN_WITH_PAIRING_CODE"}(bt||(bt={})),function(e){e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e[e.RemoteControl=7]="RemoteControl"}(Pt||(Pt={})),function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet"}(wt||(wt={})),function(e){e[e.FullSnapshot=-1]="FullSnapshot",e[e.Annotation=16]="Annotation"}(Lt||(Lt={})),function(e){e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel"}(Mt||(Mt={})),function(e){e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2"}(Ft||(Ft={})),function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(kt||(kt={})),function(e){e.CBS="CBS",e.CBS_SUB="CBS_SUB",e.IFRAME_ANOTATION="IFRAME_ANOTATION",e.REMOTE_ASSIST_FLYING_CURSOR="REMOTE_ASSIST_FLYING_CURSOR"}(xt||(xt={})),function(e){e.TRANSFERRING="transferring_in",e.SUCCESS="transfer_in_success",e.FAIL="transfer_in_failed",e.CANCEL="transfer_in_cancelled",e.TRANSFER_OUT_SUCCESS="transfer_out_success"}(Bt||(Bt={})),function(e){e.RegisterUser="register-user",e.UnregisterUser="unregister-user",e.Position="position",e.RegisterCustomerCursorDOM="register-customer-dom",e.RegisterOtherAgentCursorDOM="register-other-agent-dom",e.UpdateCursorPositionLocal="update-cursor-position-local"}(Ut||(Ut={}));var jt,zt={},Kt={},Yt={get exports(){return Kt},set exports(e){Kt=e}};function Zt(){return jt||(jt=1,function(e,n){var t;e.exports=(t=g(),function(e){var n=t,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.algo,s=[];!function(){for(var n=0;n<64;n++)s[n]=4294967296*e.abs(e.sin(n+1))|0}();var u=a.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,n){for(var t=0;t<16;t++){var r=n+t,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,a=e[n+0],u=e[n+1],E=e[n+2],f=e[n+3],g=e[n+4],S=e[n+5],p=e[n+6],I=e[n+7],R=e[n+8],C=e[n+9],T=e[n+10],h=e[n+11],O=e[n+12],v=e[n+13],m=e[n+14],A=e[n+15],D=i[0],N=i[1],y=i[2],b=i[3];D=c(D,N,y,b,a,7,s[0]),b=c(b,D,N,y,u,12,s[1]),y=c(y,b,D,N,E,17,s[2]),N=c(N,y,b,D,f,22,s[3]),D=c(D,N,y,b,g,7,s[4]),b=c(b,D,N,y,S,12,s[5]),y=c(y,b,D,N,p,17,s[6]),N=c(N,y,b,D,I,22,s[7]),D=c(D,N,y,b,R,7,s[8]),b=c(b,D,N,y,C,12,s[9]),y=c(y,b,D,N,T,17,s[10]),N=c(N,y,b,D,h,22,s[11]),D=c(D,N,y,b,O,7,s[12]),b=c(b,D,N,y,v,12,s[13]),y=c(y,b,D,N,m,17,s[14]),D=l(D,N=c(N,y,b,D,A,22,s[15]),y,b,u,5,s[16]),b=l(b,D,N,y,p,9,s[17]),y=l(y,b,D,N,h,14,s[18]),N=l(N,y,b,D,a,20,s[19]),D=l(D,N,y,b,S,5,s[20]),b=l(b,D,N,y,T,9,s[21]),y=l(y,b,D,N,A,14,s[22]),N=l(N,y,b,D,g,20,s[23]),D=l(D,N,y,b,C,5,s[24]),b=l(b,D,N,y,m,9,s[25]),y=l(y,b,D,N,f,14,s[26]),N=l(N,y,b,D,R,20,s[27]),D=l(D,N,y,b,v,5,s[28]),b=l(b,D,N,y,E,9,s[29]),y=l(y,b,D,N,I,14,s[30]),D=_(D,N=l(N,y,b,D,O,20,s[31]),y,b,S,4,s[32]),b=_(b,D,N,y,R,11,s[33]),y=_(y,b,D,N,h,16,s[34]),N=_(N,y,b,D,m,23,s[35]),D=_(D,N,y,b,u,4,s[36]),b=_(b,D,N,y,g,11,s[37]),y=_(y,b,D,N,I,16,s[38]),N=_(N,y,b,D,T,23,s[39]),D=_(D,N,y,b,v,4,s[40]),b=_(b,D,N,y,a,11,s[41]),y=_(y,b,D,N,f,16,s[42]),N=_(N,y,b,D,p,23,s[43]),D=_(D,N,y,b,C,4,s[44]),b=_(b,D,N,y,O,11,s[45]),y=_(y,b,D,N,A,16,s[46]),D=d(D,N=_(N,y,b,D,E,23,s[47]),y,b,a,6,s[48]),b=d(b,D,N,y,I,10,s[49]),y=d(y,b,D,N,m,15,s[50]),N=d(N,y,b,D,S,21,s[51]),D=d(D,N,y,b,O,6,s[52]),b=d(b,D,N,y,f,10,s[53]),y=d(y,b,D,N,T,15,s[54]),N=d(N,y,b,D,u,21,s[55]),D=d(D,N,y,b,R,6,s[56]),b=d(b,D,N,y,A,10,s[57]),y=d(y,b,D,N,p,15,s[58]),N=d(N,y,b,D,v,21,s[59]),D=d(D,N,y,b,g,6,s[60]),b=d(b,D,N,y,h,10,s[61]),y=d(y,b,D,N,E,15,s[62]),N=d(N,y,b,D,C,21,s[63]),i[0]=i[0]+D|0,i[1]=i[1]+N|0,i[2]=i[2]+y|0,i[3]=i[3]+b|0},_doFinalize:function(){var n=this._data,t=n.words,r=8*this._nDataBytes,o=8*n.sigBytes;t[o>>>5]|=128<<24-o%32;var i=e.floor(r/4294967296),a=r;t[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n.sigBytes=4*(t.length+1),this._process();for(var s=this._hash,u=s.words,c=0;c<4;c++){var l=u[c];u[c]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,n,t,r,o,i,a){var s=e+(n&t|~n&r)+o+a;return(s<<i|s>>>32-i)+n}function l(e,n,t,r,o,i,a){var s=e+(n&r|t&~r)+o+a;return(s<<i|s>>>32-i)+n}function _(e,n,t,r,o,i,a){var s=e+(n^t^r)+o+a;return(s<<i|s>>>32-i)+n}function d(e,n,t,r,o,i,a){var s=e+(t^(n|~r))+o+a;return(s<<i|s>>>32-i)+n}n.MD5=i._createHelper(u),n.HmacMD5=i._createHmacHelper(u)}(Math),t.MD5)}(Yt)),Kt}var qt,Xt={},Qt={get exports(){return Xt},set exports(e){Xt=e}},$t={},er={get exports(){return $t},set exports(e){$t=e}};function nr(){return qt||(qt=1,function(e,n){var t,r,o,i,a,s,u,c;e.exports=(c=g(),r=(t=c).lib,o=r.WordArray,i=r.Hasher,a=t.algo,s=[],u=a.SHA1=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,n){for(var t=this._hash.words,r=t[0],o=t[1],i=t[2],a=t[3],u=t[4],c=0;c<80;c++){if(c<16)s[c]=0|e[n+c];else{var l=s[c-3]^s[c-8]^s[c-14]^s[c-16];s[c]=l<<1|l>>>31}var _=(r<<5|r>>>27)+u+s[c];_+=c<20?1518500249+(o&i|~o&a):c<40?1859775393+(o^i^a):c<60?(o&i|o&a|i&a)-1894007588:(o^i^a)-899497514,u=a,a=i,i=o<<30|o>>>2,o=r,r=_}t[0]=t[0]+r|0,t[1]=t[1]+o|0,t[2]=t[2]+i|0,t[3]=t[3]+a|0,t[4]=t[4]+u|0},_doFinalize:function(){var e=this._data,n=e.words,t=8*this._nDataBytes,r=8*e.sigBytes;return n[r>>>5]|=128<<24-r%32,n[14+(r+64>>>9<<4)]=Math.floor(t/4294967296),n[15+(r+64>>>9<<4)]=t,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA1=i._createHelper(u),t.HmacSHA1=i._createHmacHelper(u),c.SHA1)}(er)),$t}var tr,rr,or={},ir={get exports(){return or},set exports(e){or=e}};function ar(){return rr||(rr=1,function(e,n){var t,r,o,i,a,s,u,c;e.exports=(c=g(),nr(),tr||(tr=1,function(e,n){var t,r,o;e.exports=(r=(t=g()).lib.Base,o=t.enc.Utf8,void(t.algo.HMAC=r.extend({init:function(e,n){e=this._hasher=new e.init,"string"==typeof n&&(n=o.parse(n));var t=e.blockSize,r=4*t;n.sigBytes>r&&(n=e.finalize(n)),n.clamp();for(var i=this._oKey=n.clone(),a=this._iKey=n.clone(),s=i.words,u=a.words,c=0;c<t;c++)s[c]^=1549556828,u[c]^=909522486;i.sigBytes=a.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var n=this._hasher,t=n.finalize(e);return n.reset(),n.finalize(this._oKey.clone().concat(t))}})))}(ir)),r=(t=c).lib,o=r.Base,i=r.WordArray,a=t.algo,s=a.MD5,u=a.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:s,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,n){for(var t,r=this.cfg,o=r.hasher.create(),a=i.create(),s=a.words,u=r.keySize,c=r.iterations;s.length<u;){t&&o.update(t),t=o.update(e).finalize(n),o.reset();for(var l=1;l<c;l++)t=o.finalize(t),o.reset();a.concat(t)}return a.sigBytes=4*u,a}}),t.EvpKDF=function(e,n,t){return u.create(t).compute(e,n)},c.EvpKDF)}(Qt)),Xt}var sr,ur,cr={},lr={get exports(){return cr},set exports(e){cr=e}};!function(e,n){var t;e.exports=(t=g(),R(),Zt(),ar(),sr||(sr=1,function(e,n){var t;e.exports=(t=g(),ar(),void(t.lib.Cipher||function(e){var n=t,r=n.lib,o=r.Base,i=r.WordArray,a=r.BufferedBlockAlgorithm,s=n.enc;s.Utf8;var u=s.Base64,c=n.algo.EvpKDF,l=r.Cipher=a.extend({cfg:o.extend(),createEncryptor:function(e,n){return this.create(this._ENC_XFORM_MODE,e,n)},createDecryptor:function(e,n){return this.create(this._DEC_XFORM_MODE,e,n)},init:function(e,n,t){this.cfg=this.cfg.extend(t),this._xformMode=e,this._key=n,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?R:p}return function(n){return{encrypt:function(t,r,o){return e(r).encrypt(n,t,r,o)},decrypt:function(t,r,o){return e(r).decrypt(n,t,r,o)}}}}()});r.StreamCipher=l.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var _=n.mode={},d=r.BlockCipherMode=o.extend({createEncryptor:function(e,n){return this.Encryptor.create(e,n)},createDecryptor:function(e,n){return this.Decryptor.create(e,n)},init:function(e,n){this._cipher=e,this._iv=n}}),E=_.CBC=function(){var n=d.extend();function t(n,t,r){var o,i=this._iv;i?(o=i,this._iv=e):o=this._prevBlock;for(var a=0;a<r;a++)n[t+a]^=o[a]}return n.Encryptor=n.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize;t.call(this,e,n,o),r.encryptBlock(e,n),this._prevBlock=e.slice(n,n+o)}}),n.Decryptor=n.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize,i=e.slice(n,n+o);r.decryptBlock(e,n),t.call(this,e,n,o),this._prevBlock=i}}),n}(),f=(n.pad={}).Pkcs7={pad:function(e,n){for(var t=4*n,r=t-e.sigBytes%t,o=r<<24|r<<16|r<<8|r,a=[],s=0;s<r;s+=4)a.push(o);var u=i.create(a,r);e.concat(u)},unpad:function(e){var n=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=n}};r.BlockCipher=l.extend({cfg:l.cfg.extend({mode:E,padding:f}),reset:function(){var e;l.reset.call(this);var n=this.cfg,t=n.iv,r=n.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,t&&t.words):(this._mode=e.call(r,this,t&&t.words),this._mode.__creator=e)},_doProcessBlock:function(e,n){this._mode.processBlock(e,n)},_doFinalize:function(){var e,n=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(n.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),n.unpad(e)),e},blockSize:4});var g=r.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),S=(n.format={}).OpenSSL={stringify:function(e){var n=e.ciphertext,t=e.salt;return(t?i.create([1398893684,1701076831]).concat(t).concat(n):n).toString(u)},parse:function(e){var n,t=u.parse(e),r=t.words;return 1398893684==r[0]&&1701076831==r[1]&&(n=i.create(r.slice(2,4)),r.splice(0,4),t.sigBytes-=16),g.create({ciphertext:t,salt:n})}},p=r.SerializableCipher=o.extend({cfg:o.extend({format:S}),encrypt:function(e,n,t,r){r=this.cfg.extend(r);var o=e.createEncryptor(t,r),i=o.finalize(n),a=o.cfg;return g.create({ciphertext:i,key:t,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,n,t,r){return r=this.cfg.extend(r),n=this._parse(n,r.format),e.createDecryptor(t,r).finalize(n.ciphertext)},_parse:function(e,n){return"string"==typeof e?n.parse(e,this):e}}),I=(n.kdf={}).OpenSSL={execute:function(e,n,t,r,o){if(r||(r=i.random(8)),o)a=c.create({keySize:n+t,hasher:o}).compute(e,r);else var a=c.create({keySize:n+t}).compute(e,r);var s=i.create(a.words.slice(n),4*t);return a.sigBytes=4*n,g.create({key:a,iv:s,salt:r})}},R=r.PasswordBasedCipher=p.extend({cfg:p.cfg.extend({kdf:I}),encrypt:function(e,n,t,r){var o=(r=this.cfg.extend(r)).kdf.execute(t,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=o.iv;var i=p.encrypt.call(this,e,n,o.key,r);return i.mixIn(o),i},decrypt:function(e,n,t,r){r=this.cfg.extend(r),n=this._parse(n,r.format);var o=r.kdf.execute(t,e.keySize,e.ivSize,n.salt,r.hasher);return r.iv=o.iv,p.decrypt.call(this,e,n,o.key,r)}})}()))}(lr)),function(){var e=t,n=e.lib.BlockCipher,r=e.algo,o=[],i=[],a=[],s=[],u=[],c=[],l=[],_=[],d=[],E=[];!function(){for(var e=[],n=0;n<256;n++)e[n]=n<128?n<<1:n<<1^283;var t=0,r=0;for(n=0;n<256;n++){var f=r^r<<1^r<<2^r<<3^r<<4;f=f>>>8^255&f^99,o[t]=f,i[f]=t;var g=e[t],S=e[g],p=e[S],I=257*e[f]^16843008*f;a[t]=I<<24|I>>>8,s[t]=I<<16|I>>>16,u[t]=I<<8|I>>>24,c[t]=I,I=16843009*p^65537*S^257*g^16843008*t,l[f]=I<<24|I>>>8,_[f]=I<<16|I>>>16,d[f]=I<<8|I>>>24,E[f]=I,t?(t=g^e[e[e[p^g]]],r^=e[e[r]]):t=r=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,n=e.words,t=e.sigBytes/4,r=4*((this._nRounds=t+6)+1),i=this._keySchedule=[],a=0;a<r;a++)a<t?i[a]=n[a]:(c=i[a-1],a%t?t>6&&a%t==4&&(c=o[c>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c]):(c=o[(c=c<<8|c>>>24)>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c],c^=f[a/t|0]<<24),i[a]=i[a-t]^c);for(var s=this._invKeySchedule=[],u=0;u<r;u++){if(a=r-u,u%4)var c=i[a];else c=i[a-4];s[u]=u<4||a<=4?c:l[o[c>>>24]]^_[o[c>>>16&255]]^d[o[c>>>8&255]]^E[o[255&c]]}}},encryptBlock:function(e,n){this._doCryptBlock(e,n,this._keySchedule,a,s,u,c,o)},decryptBlock:function(e,n){var t=e[n+1];e[n+1]=e[n+3],e[n+3]=t,this._doCryptBlock(e,n,this._invKeySchedule,l,_,d,E,i),t=e[n+1],e[n+1]=e[n+3],e[n+3]=t},_doCryptBlock:function(e,n,t,r,o,i,a,s){for(var u=this._nRounds,c=e[n]^t[0],l=e[n+1]^t[1],_=e[n+2]^t[2],d=e[n+3]^t[3],E=4,f=1;f<u;f++){var g=r[c>>>24]^o[l>>>16&255]^i[_>>>8&255]^a[255&d]^t[E++],S=r[l>>>24]^o[_>>>16&255]^i[d>>>8&255]^a[255&c]^t[E++],p=r[_>>>24]^o[d>>>16&255]^i[c>>>8&255]^a[255&l]^t[E++],I=r[d>>>24]^o[c>>>16&255]^i[l>>>8&255]^a[255&_]^t[E++];c=g,l=S,_=p,d=I}g=(s[c>>>24]<<24|s[l>>>16&255]<<16|s[_>>>8&255]<<8|s[255&d])^t[E++],S=(s[l>>>24]<<24|s[_>>>16&255]<<16|s[d>>>8&255]<<8|s[255&c])^t[E++],p=(s[_>>>24]<<24|s[d>>>16&255]<<16|s[c>>>8&255]<<8|s[255&l])^t[E++],I=(s[d>>>24]<<24|s[c>>>16&255]<<16|s[l>>>8&255]<<8|s[255&_])^t[E++],e[n]=g,e[n+1]=S,e[n+2]=p,e[n+3]=I},keySize:8});e.AES=n._createHelper(g)}(),t.AES)}({get exports(){return zt},set exports(e){zt=e}});var _r=new Uint8Array(16);function dr(){if(!ur&&!(ur="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ur(_r)}for(var Er=[],fr=0;fr<256;++fr)Er.push((fr+256).toString(16).slice(1));var gr,Sr,pr={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Ir(e,n,t){if(pr.randomUUID&&!n&&!e)return pr.randomUUID();var r=(e=e||{}).random||(e.rng||dr)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,n){t=t||0;for(var o=0;o<16;++o)n[t+o]=r[o];return n}return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Er[e[n+0]]+Er[e[n+1]]+Er[e[n+2]]+Er[e[n+3]]+"-"+Er[e[n+4]]+Er[e[n+5]]+"-"+Er[e[n+6]]+Er[e[n+7]]+"-"+Er[e[n+8]]+Er[e[n+9]]+"-"+Er[e[n+10]]+Er[e[n+11]]+Er[e[n+12]]+Er[e[n+13]]+Er[e[n+14]]+Er[e[n+15]]}(r)}!function(e){e[e.PENDING=0]="PENDING",e[e.READY=1]="READY",e[e.CLOSE=2]="CLOSE"}(gr||(gr={})),function(e){e[e.RECORD_NOT_ENABLED=2e4]="RECORD_NOT_ENABLED",e[e.START_RECORD_UNAVAILABLE=20001]="START_RECORD_UNAVAILABLE",e[e.START_RECORD_INVALID_BODY=20002]="START_RECORD_INVALID_BODY",e[e.EXIST_RECORD_CONFLICT=20003]="EXIST_RECORD_CONFLICT",e[e.RECORD_OVERHEAD_CAPACITY=20004]="RECORD_OVERHEAD_CAPACITY",e[e.LEADER_NOT_JOINED=20005]="LEADER_NOT_JOINED",e[e.LEADER_DENIED=20006]="LEADER_DENIED",e[e.RECORD_ABORTED=20007]="RECORD_ABORTED",e[e.END_RECORD_UNAVAILABLE=21e3]="END_RECORD_UNAVAILABLE",e[e.END_RECORD_INVALID_BODY=21001]="END_RECORD_INVALID_BODY",e[e.RECORD_ALREADY_PAUSED=22e3]="RECORD_ALREADY_PAUSED",e[e.RECORD_ALREADY_RESUMED=23e3]="RECORD_ALREADY_RESUMED",e[e.NO_ACTIVE_RECORD=24e3]="NO_ACTIVE_RECORD",e[e.RECORD_IN_START_PROGRESS=24001]="RECORD_IN_START_PROGRESS",e[e.RECORD_IN_STOP_PROGRESS=24002]="RECORD_IN_STOP_PROGRESS",e[e.CHS_JWT_MISSING=25100]="CHS_JWT_MISSING",e[e.CHS_JWT_DECODE_FAILED=25101]="CHS_JWT_DECODE_FAILED",e[e.CHS_JWT_INVALID_PAYLOAD=25102]="CHS_JWT_INVALID_PAYLOAD",e[e.CHS_JWT_ISS_AUD_MISSING=25103]="CHS_JWT_ISS_AUD_MISSING",e[e.CHS_JWT_ISS_AUD_DENIED=25104]="CHS_JWT_ISS_AUD_DENIED",e[e.CHS_JWT_VERIFY_FAILED=25105]="CHS_JWT_VERIFY_FAILED",e[e.SESSION_ID_NOT_MATCH=25200]="SESSION_ID_NOT_MATCH",e[e.AID_IN_JWT_MISSING=25201]="AID_IN_JWT_MISSING",e[e.UID_IN_JWT_MISSING=25202]="UID_IN_JWT_MISSING",e[e.RECORD_ID_MISSING=25203]="RECORD_ID_MISSING",e[e.RECORD_TASK_NOT_EXIST=25204]="RECORD_TASK_NOT_EXIST",e[e.PAGE_CONTEXT_BOOTSTRAP_FAILED=26100]="PAGE_CONTEXT_BOOTSTRAP_FAILED",e[e.PAGE_CONTROLLER_INIT_FAILED=26101]="PAGE_CONTROLLER_INIT_FAILED",e[e.PAGE_LOAD_HTML_FAILED=26102]="PAGE_LOAD_HTML_FAILED",e[e.PAGE_INJECT_INIT_FAILED=26103]="PAGE_INJECT_INIT_FAILED",e[e.PAGE_INJECT_CONTEXT_FAILED=26104]="PAGE_INJECT_CONTEXT_FAILED",e[e.PAGE_START_FAILED=26105]="PAGE_START_FAILED",e[e.PAGE_STOP_FAILED=26106]="PAGE_STOP_FAILED",e[e.RECORDER_INIT_FAILED=26200]="RECORDER_INIT_FAILED",e[e.RECORDER_CDP_SESSION_START_FAILED=26201]="RECORDER_CDP_SESSION_START_FAILED",e[e.RECORDER_CDP_SESSION_STOP_FAILED=26202]="RECORDER_CDP_SESSION_STOP_FAILED",e[e.RECORDER_CDP_SESSION_ALREADY_DESTROYED=26203]="RECORDER_CDP_SESSION_ALREADY_DESTROYED",e[e.DISK_USAGE_FULL=26204]="DISK_USAGE_FULL",e[e.CONNECT_CHS_FAILED=26301]="CONNECT_CHS_FAILED",e[e.CONNECT_CHS_FAILOVER=26302]="CONNECT_CHS_FAILOVER",e[e.CONNECT_CHS_DESTROYED=26303]="CONNECT_CHS_DESTROYED",e[e.CONNECT_CHS_DISCONNECTED=26304]="CONNECT_CHS_DISCONNECTED",e[e.CONNECT_CHS_TIMEOUT=26305]="CONNECT_CHS_TIMEOUT",e[e.UDS_INIT_FAILED=26400]="UDS_INIT_FAILED",e[e.UDS_SUB_PROCESS_INIT_FAILED=26401]="UDS_SUB_PROCESS_INIT_FAILED",e[e.UDS_SUB_PROCESS_INIT_TIMEOUT=26402]="UDS_SUB_PROCESS_INIT_TIMEOUT",e[e.UDS_CLINET_INIT_FAILED=26403]="UDS_CLINET_INIT_FAILED",e[e.UDS_SERVER_INIT_FAILED=26404]="UDS_SERVER_INIT_FAILED",e[e.UDS_SERVER_LISTEN_FAILED=26405]="UDS_SERVER_LISTEN_FAILED",e[e.FILE_INIT_FAILED=26500]="FILE_INIT_FAILED",e[e.FILE_META_INIT_FAILED=26501]="FILE_META_INIT_FAILED",e[e.FILE_META_CLIP_INIT_FAILED=26502]="FILE_META_CLIP_INIT_FAILED",e[e.FILE_META_OPEN_FAILED=26503]="FILE_META_OPEN_FAILED",e[e.FILE_META_LOCK_FAILED=26504]="FILE_META_LOCK_FAILED",e[e.FILE_META_RELEASE_FAILED=26505]="FILE_META_RELEASE_FAILED",e[e.FILE_META_WRITE_FAILED=26506]="FILE_META_WRITE_FAILED",e[e.ZCB_WEB_NOT_AVAILABLE=26600]="ZCB_WEB_NOT_AVAILABLE",e[e.ZCB_CRS_NOT_AVAILABLE=26601]="ZCB_CRS_NOT_AVAILABLE",e[e.REDIS_GET_CLIP_SIZE_FAILED=26700]="REDIS_GET_CLIP_SIZE_FAILED",e[e.REDIS_SET_CLIP_SIZE_FAILED=26701]="REDIS_SET_CLIP_SIZE_FAILED",e[e.REDIS_GET_START_TIME_FAILED=26702]="REDIS_GET_START_TIME_FAILED",e[e.REDIS_SET_START_TIME_FAILED=26703]="REDIS_SET_START_TIME_FAILED",e[e.ASSETS_FETCH_FAILED=26800]="ASSETS_FETCH_FAILED",e[e.ASSETS_WRITE_FAILED=26801]="ASSETS_WRITE_FAILED"}(Sr||(Sr={})),Sr.RECORD_OVERHEAD_CAPACITY,Sr.RECORD_OVERHEAD_CAPACITY;var Rr,Cr={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Cr,Sr.START_RECORD_UNAVAILABLE,"start record api not available"),Sr.START_RECORD_INVALID_BODY,"start record response body invalid"),Sr.END_RECORD_UNAVAILABLE,"end record api not available"),Sr.END_RECORD_INVALID_BODY,"end record response body invalid"),Sr.EXIST_RECORD_CONFLICT,"already has an existed recording"),Sr.NO_ACTIVE_RECORD,"no existed recording"),Sr.RECORD_IN_START_PROGRESS,"recording is in start progress"),Sr.RECORD_IN_STOP_PROGRESS,"recording is in stop progress"),Sr.RECORD_ALREADY_PAUSED,"recording already paused"),Sr.RECORD_ALREADY_RESUMED,"recording already resumed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Cr,Sr.RECORD_NOT_ENABLED,"recording not enabled"),Sr.RECORD_OVERHEAD_CAPACITY,"recording capacity is overhead"),Sr.LEADER_NOT_JOINED,"leader not joined room"),Sr.LEADER_DENIED,"leader denied recording"),Sr.RECORD_ABORTED,"recording aborted"),Sr.CHS_JWT_MISSING,"CHS JWT is empty"),Sr.CHS_JWT_DECODE_FAILED,"CHS JWT decode error"),Sr.CHS_JWT_INVALID_PAYLOAD,"CHS JWT payload invalid"),Sr.CHS_JWT_ISS_AUD_MISSING,"CHS JWT iss or aud empty"),Sr.CHS_JWT_ISS_AUD_DENIED,"invalid iss and aud"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Cr,Sr.CHS_JWT_VERIFY_FAILED,"token verify failed"),Sr.SESSION_ID_NOT_MATCH,"sessionId in header is not match in jwt payload"),Sr.AID_IN_JWT_MISSING,"aid in token is required"),Sr.UID_IN_JWT_MISSING,"uid in token is required"),Sr.RECORD_ID_MISSING,"recordId is empty"),Sr.RECORD_TASK_NOT_EXIST,"record task not exist"),Sr.PAGE_CONTEXT_BOOTSTRAP_FAILED,"bootstrap playwright failed"),Sr.PAGE_CONTROLLER_INIT_FAILED,"PageController init failed"),Sr.PAGE_LOAD_HTML_FAILED,"page load html failed"),Sr.PAGE_INJECT_INIT_FAILED,"PageInjector init failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Cr,Sr.PAGE_INJECT_CONTEXT_FAILED,"injectPageContext failed"),Sr.PAGE_START_FAILED,"page start record failed"),Sr.PAGE_STOP_FAILED,"page start stop failed"),Sr.RECORDER_INIT_FAILED,"PageRecorder init failed"),Sr.RECORDER_CDP_SESSION_START_FAILED,"record start cdp session failed"),Sr.RECORDER_CDP_SESSION_STOP_FAILED,"record stop cdp session failed"),Sr.RECORDER_CDP_SESSION_ALREADY_DESTROYED,"PageRecorder has already been destroyed"),Sr.DISK_USAGE_FULL,"Server disk is full"),Sr.CONNECT_CHS_FAILED,"CHS is not available"),Sr.CONNECT_CHS_FAILOVER,"CHS connection is failover now"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Cr,Sr.CONNECT_CHS_DESTROYED,"CHS connection is destroyed by client"),Sr.CONNECT_CHS_DISCONNECTED,"CHS connection is disconnected"),Sr.CONNECT_CHS_TIMEOUT,"wait for CHS connection timeout"),Sr.UDS_INIT_FAILED,"UDSManager init failed"),Sr.UDS_SUB_PROCESS_INIT_FAILED,"uds sub process init failed"),Sr.UDS_SUB_PROCESS_INIT_TIMEOUT,"uds sub process init timeout"),Sr.UDS_CLINET_INIT_FAILED,"UDSClient init failed"),Sr.UDS_SERVER_INIT_FAILED,"UDSServer init failed"),Sr.UDS_SERVER_LISTEN_FAILED,"UDSServer listen failed"),Sr.FILE_INIT_FAILED,"FileManager init failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Cr,Sr.FILE_META_INIT_FAILED,"MetaDataManager init failed"),Sr.FILE_META_CLIP_INIT_FAILED,"SubClipManager init failed"),Sr.FILE_META_OPEN_FAILED,"open metadata failed"),Sr.FILE_META_LOCK_FAILED,"metadata lock failed"),Sr.FILE_META_RELEASE_FAILED,"metadata release failed"),Sr.FILE_META_WRITE_FAILED,"metadata write failed"),Sr.ZCB_WEB_NOT_AVAILABLE,"web is not available"),Sr.ZCB_CRS_NOT_AVAILABLE,"crs is not available"),Sr.REDIS_GET_CLIP_SIZE_FAILED,"get clip size failed"),Sr.REDIS_SET_CLIP_SIZE_FAILED,"set clip size failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(Cr,Sr.REDIS_GET_START_TIME_FAILED,"get record start time failed"),Sr.REDIS_SET_START_TIME_FAILED,"set record start time failed"),Sr.ASSETS_FETCH_FAILED,"fetch assets from cdn failed"),Sr.ASSETS_WRITE_FAILED,"write assets to local disk failed"),function(e){e[e.INIT=0]="INIT",e[e.RUNNING=1]="RUNNING",e[e.PAUSE=2]="PAUSE",e[e.FINISH=3]="FINISH"}(Rr||(Rr={}));var Tr,hr;!function(e){e[e.WS_CONN_KEEPALIVE=0]="WS_CONN_KEEPALIVE",e[e.WS_CONN_VECTOR_DATA=1]="WS_CONN_VECTOR_DATA",e[e.WS_DOC_JSON_JOIN_RES=8194]="WS_DOC_JSON_JOIN_RES"}(Tr||(Tr={})),function(e){e.CONNECTED="CONNECTED",e.DISCONNECTED="DISCONNECTED",e.END_ROOM="END_ROOM",e.LEAVE_ROOM="LEAVE_ROOM",e.INTERACTION_BINARY="INTERACTION_BINARY",e.INTERACTION="INTERACTION",e.FULL_SNAPSHOT_REQUEST="FULL_SNAPSHOT_REQUEST",e.GET_BINARY="GET_BINARY",e.USER_BE_HOLD_STATUS_CHANGE="USER_BE_HOLD_STATUS_CHANGE",e.USER_ROSTER="USER_ROSTER",e.ROOM_ROSTER="ROOM_ROSTER",e.REMOTE_CONTROL_STATUS="REMOTE_CONTROL_STATUS",e.REMOTE_CONTROL_REQUEST="REMOTE_CONTROL_REQUEST",e.REMOTE_CONTROL_RESPONSE="REMOTE_CONTROL_RESPONSE",e.REMOTE_CONTROL_GIVE_UP="REMOTE_CONTROL_GIVE_UP",e.REMOTE_CONTROL_TAKE_BACK="REMOTE_CONTROL_TAKE_BACK",e.REMOTE_CONTROL_REJECT="REMOTE_CONTROL_REJECT",e.REMOTE_CONTROL_CANCEL="REMOTE_CONTROL_CANCEL",e.START_RECORD="START_RECORD",e.STOP_RECORD="STOP_RECORD",e.PAUSE_RECORD="PAUSE_RECORD",e.RESUME_RECORD="RESUME_RECORD",e.START_RECORD_RESPONSE="START_RECORD_RESPONSE",e.STOP_RECORD_RESPONSE="STOP_RECORD_RESPONSE",e.PAUSE_RECORD_RESPONSE="PAUSE_RECORD_RESPONSE",e.RESUME_RECORD_RESPONSE="RESUME_RECORD_RESPONSE",e.RECORD_APPROVE_REQUEST="RECORD_APPROVE_REQUEST",e.RECORD_APPROVE_RESPONSE="RECORD_APPROVE_RESPONSE",e.ANNOTATION="ANNOTATION",e.FLYING_CURSOR="FLYING_CURSOR",e.LEADER_PAGE_VISIBILITY="LEADER_PAGE_VISIBILITY",e.RTT="RTT",e.NTP="NTP"}(hr||(hr={})),_defineProperty(_defineProperty(_defineProperty(_defineProperty({},hr.ANNOTATION,!0),hr.INTERACTION,!0),hr.INTERACTION_BINARY,!0),hr.FLYING_CURSOR,!0),_defineProperty({},hr.RTT,!0);var Or={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Or,hr.INTERACTION,!0),hr.INTERACTION_BINARY,!0),hr.FULL_SNAPSHOT_REQUEST,!0),hr.REMOTE_CONTROL_STATUS,!0),hr.REMOTE_CONTROL_REQUEST,!0),hr.REMOTE_CONTROL_RESPONSE,!0),hr.REMOTE_CONTROL_GIVE_UP,!0),hr.REMOTE_CONTROL_TAKE_BACK,!0),hr.REMOTE_CONTROL_REJECT,!0),hr.REMOTE_CONTROL_CANCEL,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Or,hr.START_RECORD,!0),hr.RESUME_RECORD,!0),hr.PAUSE_RECORD,!0),hr.STOP_RECORD,!0),hr.ANNOTATION,!0),hr.FLYING_CURSOR,!0);var vr,mr,Ar={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Ar,hr.INTERACTION,!0),hr.INTERACTION_BINARY,!0),hr.FULL_SNAPSHOT_REQUEST,!0),hr.USER_ROSTER,!0),hr.ROOM_ROSTER,!0),hr.REMOTE_CONTROL_STATUS,!0),hr.REMOTE_CONTROL_REQUEST,!0),hr.REMOTE_CONTROL_RESPONSE,!0),hr.REMOTE_CONTROL_GIVE_UP,!0),hr.REMOTE_CONTROL_TAKE_BACK,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Ar,hr.REMOTE_CONTROL_REJECT,!0),hr.REMOTE_CONTROL_CANCEL,!0),hr.START_RECORD,!0),hr.RESUME_RECORD,!0),hr.PAUSE_RECORD,!0),hr.STOP_RECORD,!0),hr.START_RECORD_RESPONSE,!0),hr.STOP_RECORD_RESPONSE,!0),hr.PAUSE_RECORD_RESPONSE,!0),hr.RESUME_RECORD_RESPONSE,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty(Ar,hr.RECORD_APPROVE_REQUEST,!0),hr.RECORD_APPROVE_RESPONSE,!0),hr.ANNOTATION,!0),hr.FLYING_CURSOR,!0),_defineProperty(_defineProperty(_defineProperty({},hr.RECORD_APPROVE_RESPONSE,!0),hr.LEAVE_ROOM,!0),hr.FLYING_CURSOR,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty({},Ut.RegisterCustomerCursorDOM,!0),Ut.UnregisterUser,!0),Ut.RegisterOtherAgentCursorDOM,!0),Ut.UpdateCursorPositionLocal,!0),function(e){e[e.IN_PROGRESS=4e4]="IN_PROGRESS",e[e.OPPOSITE_REJECT=40001]="OPPOSITE_REJECT"}(vr||(vr={})),_defineProperty(_defineProperty({},vr.IN_PROGRESS,"remote control is in progress"),vr.OPPOSITE_REJECT,"the opposite side refuses to be controlled"),function(e){e[e.LEAVE_ROOM=4e4]="LEAVE_ROOM",e[e.DISCONNECTED=40001]="DISCONNECTED",e[e.WEB_REPORT_REGION_FAILED=40100]="WEB_REPORT_REGION_FAILED",e[e.WEB_REPORT_REGION_NOT_MATCH=40101]="WEB_REPORT_REGION_NOT_MATCH",e[e.WEB_REPORT_USER_JOIN_FAILED=40102]="WEB_REPORT_USER_JOIN_FAILED",e[e.WEB_REPORT_USER_JOIN_EMPTY=40103]="WEB_REPORT_USER_JOIN_EMPTY",e[e.WEB_REPORT_USER_JOIN_EMPTY_USER=40104]="WEB_REPORT_USER_JOIN_EMPTY_USER",e[e.AUTH_CONFLICT=40200]="AUTH_CONFLICT",e[e.AUTH_VERIFY_FAILED=40201]="AUTH_VERIFY_FAILED",e[e.AUTH_DB_QUERY_ERROR=40202]="AUTH_DB_QUERY_ERROR",e[e.AUTH_USER_ID_VERIFY_FAILED=40203]="AUTH_USER_ID_VERIFY_FAILED",e[e.AUTH_USER_ID_NO_EXIST=40204]="AUTH_USER_ID_NO_EXIST",e[e.ROOM_NOT_EXIST=40210]="ROOM_NOT_EXIST",e[e.ROOM_ADD_USER_FAILED=40211]="ROOM_ADD_USER_FAILED",e[e.LEADER_CONFLICT=40212]="LEADER_CONFLICT",e[e.USER_CONFLICT=40213]="USER_CONFLICT",e[e.SESSION_ALREADY_ENDED=40214]="SESSION_ALREADY_ENDED",e[e.FOLLOWER_CONFLICT=40215]="FOLLOWER_CONFLICT",e[e.ROOM_DEPRECATED=40216]="ROOM_DEPRECATED",e[e.REACHED_LEADER_LIMIT=40217]="REACHED_LEADER_LIMIT",e[e.REACHED_FOLLOWER_LIMIT=40218]="REACHED_FOLLOWER_LIMIT",e[e.SAME_LEADER_JOINED=40219]="SAME_LEADER_JOINED",e[e.ROOM_ID_MISSING=40300]="ROOM_ID_MISSING",e[e.AUTH_PAYLOAD_MISSING=40301]="AUTH_PAYLOAD_MISSING",e[e.START_URL_INVALID=40302]="START_URL_INVALID",e[e.SERVER_RESTARTED=40400]="SERVER_RESTARTED",e[e.WSSGW_REMOVE_NODE=40401]="WSSGW_REMOVE_NODE",e[e.META_DATA_INVALID=40402]="META_DATA_INVALID",e[e.WSSGW_INSTANCE_NOT_FOUND=40403]="WSSGW_INSTANCE_NOT_FOUND",e[e.END_ROOM=41e3]="END_ROOM",e[e.DESTROY_DEACTIVE_ROOM=41001]="DESTROY_DEACTIVE_ROOM",e[e.DESTROY_SLEEP_ROOM=41002]="DESTROY_SLEEP_ROOM",e[e.NO_OTHER_ACTIVE_USER=42e3]="NO_OTHER_ACTIVE_USER",e[e.RECORD_ALREADY_ENDED=42001]="RECORD_ALREADY_ENDED",e[e.RECORD_START_FAILED=42002]="RECORD_START_FAILED"}(mr||(mr={})),mr.LEAVE_ROOM,mr.WEB_REPORT_USER_JOIN_FAILED,mr.AUTH_CONFLICT,mr.AUTH_VERIFY_FAILED,mr.LEADER_CONFLICT,mr.FOLLOWER_CONFLICT,mr.USER_CONFLICT,mr.SESSION_ALREADY_ENDED,mr.ROOM_ID_MISSING,mr.AUTH_PAYLOAD_MISSING,mr.START_URL_INVALID,mr.END_ROOM,mr.DESTROY_DEACTIVE_ROOM,mr.DESTROY_SLEEP_ROOM,mr.NO_OTHER_ACTIVE_USER,mr.RECORD_ALREADY_ENDED,mr.REACHED_LEADER_LIMIT,mr.REACHED_FOLLOWER_LIMIT,mr.SESSION_ALREADY_ENDED,mr.END_ROOM,mr.DESTROY_DEACTIVE_ROOM;var Dr,Nr,yr,br,Pr={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Pr,mr.LEAVE_ROOM,"normal leave"),mr.DISCONNECTED,"user disconnected"),mr.WEB_REPORT_REGION_FAILED,"call web report zone region api failed"),mr.WEB_REPORT_REGION_NOT_MATCH,"report zone region mismatch with session hosting region"),mr.WEB_REPORT_USER_JOIN_EMPTY,"call web user join api return empty response"),mr.WEB_REPORT_USER_JOIN_FAILED,"call web user join api failed"),mr.WEB_REPORT_USER_JOIN_EMPTY_USER,"call web user join api return empty user info"),mr.AUTH_CONFLICT,"auth is already consumed once"),mr.AUTH_VERIFY_FAILED,"auth payload is denyed"),mr.AUTH_DB_QUERY_ERROR,"get auth from redis failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Pr,mr.AUTH_USER_ID_VERIFY_FAILED,"sub channel user_id verify failed"),mr.AUTH_USER_ID_NO_EXIST,"main channel user_id not exist"),mr.ROOM_NOT_EXIST,"room not exist or create failed"),mr.ROOM_ADD_USER_FAILED,"room add new user failed"),mr.LEADER_CONFLICT,"leader already exist"),mr.FOLLOWER_CONFLICT,"follower already exist"),mr.ROOM_DEPRECATED,"room is deprecated"),mr.SAME_LEADER_JOINED,"leader with the same user_id joined the room"),mr.USER_CONFLICT,"user conflict"),mr.SESSION_ALREADY_ENDED,"room is already ended"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Pr,mr.ROOM_ID_MISSING,"room id is required"),mr.AUTH_PAYLOAD_MISSING,"auth payload is required"),mr.START_URL_INVALID,"startUrl is invalid"),mr.SERVER_RESTARTED,"server restarted"),mr.WSSGW_REMOVE_NODE,"wssgw node instance removed"),mr.META_DATA_INVALID,"message meta data invalid"),mr.WSSGW_INSTANCE_NOT_FOUND,"wssgw instance not found"),mr.END_ROOM,"The user actively clicked \'end\'."),mr.DESTROY_DEACTIVE_ROOM,"The session ended automatically because there was only 1 user present for 3 minutes."),mr.DESTROY_SLEEP_ROOM,"The session ended automatically due to no user activity in the session for 5 minutes."),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Pr,mr.NO_OTHER_ACTIVE_USER,"no other active user in this meeting except record virtual user"),mr.RECORD_ALREADY_ENDED,"record already ended"),mr.RECORD_START_FAILED,"record start failed"),mr.REACHED_LEADER_LIMIT,"the number of leaders has reached the limit"),mr.REACHED_FOLLOWER_LIMIT,"the number of followers has reached the limit"),function(e){e[e.RECORD_LEGAL_CONSENT=0]="RECORD_LEGAL_CONSENT"}(Dr||(Dr={})),function(e){e[e.ACTIVE=0]="ACTIVE",e[e.PASSIVE=1]="PASSIVE",e[e.REJECT=2]="REJECT"}(Nr||(Nr={})),function(e){e[e.ALL_PING_FAILED=10001]="ALL_PING_FAILED",e[e.REFRESH_PIN_CODE_FAILED=10002]="REFRESH_PIN_CODE_FAILED",e[e.EMPTY_PING_LIST=10003]="EMPTY_PING_LIST",e[e.SESSION_START_FAILED=10004]="SESSION_START_FAILED",e[e.SESSION_END_FAILED=10005]="SESSION_END_FAILED",e[e.SESSION_CREATE_FAILED=10006]="SESSION_CREATE_FAILED",e[e.PARTICIPANT_TYPE_ERROR=10007]="PARTICIPANT_TYPE_ERROR",e[e.CONNECT_SERVER_FAILED=10008]="CONNECT_SERVER_FAILED",e[e.CREATE_CHANNEL_FAILED=10009]="CREATE_CHANNEL_FAILED",e[e.SESSION_CONNECTING=10010]="SESSION_CONNECTING",e[e.SESSION_ID_NOT_FOUND=10011]="SESSION_ID_NOT_FOUND",e[e.SESSION_PERSISTING=10014]="SESSION_PERSISTING",e[e.SOCKET_RECONNECT_FAILED=10020]="SOCKET_RECONNECT_FAILED",e[e.SOCKET_FAIL_OVER_FAILED=10021]="SOCKET_FAIL_OVER_FAILED",e[e.DUPLICATE_SESSION=10023]="DUPLICATE_SESSION",e[e.FRAME_LEVEL_NOT_READY=10025]="FRAME_LEVEL_NOT_READY",e[e.SDK_VERSION_NOT_MATCH=10026]="SDK_VERSION_NOT_MATCH",e[e.SESSION_CANCELING=10027]="SESSION_CANCELING",e[e.UNKNOWN_SERVICE_EXCEPTION=19999]="UNKNOWN_SERVICE_EXCEPTION",e[e.DUPLICATE_LAUNCH_SESSION=10024]="DUPLICATE_LAUNCH_SESSION"}(yr||(yr={})),function(e){e[e.CONNECT_TIMEOUT_FAILED=10012]="CONNECT_TIMEOUT_FAILED",e[e.OTHER_SIDE_RECONNECT_TIMEOUT_FAILED=10013]="OTHER_SIDE_RECONNECT_TIMEOUT_FAILED",e[e.USER_EXIT_BEFORE_SESSION=10022]="USER_EXIT_BEFORE_SESSION"}(br||(br={}));var wr="Create channel failed.",Lr="Create session failed.",Mr="End session failed.",Fr="Pin code update failed",kr="Start session failed.",xr="Session connecting.",Br="Session persisting.",Ur="Session canceling.",Vr="Session id not found.",Wr="Session connect timeout.",Hr="Session already exists.",Gr="Unknown Service Exception.",Jr="SDK version not match.",jr={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(jr,yr.ALL_PING_FAILED,Lr),yr.EMPTY_PING_LIST,Lr),yr.SESSION_CREATE_FAILED,Lr),yr.FRAME_LEVEL_NOT_READY,Lr),yr.PARTICIPANT_TYPE_ERROR,kr),yr.REFRESH_PIN_CODE_FAILED,Fr),yr.SESSION_START_FAILED,kr),yr.SESSION_END_FAILED,Mr),yr.SESSION_ID_NOT_FOUND,Vr),yr.CONNECT_SERVER_FAILED,wr),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(jr,yr.CREATE_CHANNEL_FAILED,wr),yr.SESSION_CONNECTING,xr),yr.SESSION_PERSISTING,Br),yr.SESSION_CANCELING,Ur),yr.UNKNOWN_SERVICE_EXCEPTION,Gr),yr.SOCKET_RECONNECT_FAILED,wr),yr.SOCKET_FAIL_OVER_FAILED,wr),yr.DUPLICATE_SESSION,Hr),yr.DUPLICATE_LAUNCH_SESSION,Hr),yr.SDK_VERSION_NOT_MATCH,Jr),_defineProperty({},br.CONNECT_TIMEOUT_FAILED,Wr);var zr,Kr="The user actively clicked \'end\'.",Yr="normal",Zr="user disconnected",qr="customer already exist",Xr="agent already exist",Qr="get auth from redis failed",$r="auth payload is denyed",eo="auth is already used",no="room id is invalid",to="room not exist or create failed",ro="room add new user failed",oo="server restarted",io="wssgw node instance removed",ao="The session ended automatically because there was only 1 user present for 3 minutes.",so="The session ended automatically due to no user activity in the session for 5 minutes.",uo="user conflict",co="meta data invalid",lo="wssgw instance not found",_o="the number of customers has reached the limit",Eo="the number of agents has reached the limit",fo={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(fo,mr.DISCONNECTED,Zr),mr.END_ROOM,Kr),mr.LEAVE_ROOM,Yr),mr.LEADER_CONFLICT,qr),mr.FOLLOWER_CONFLICT,Xr),mr.AUTH_DB_QUERY_ERROR,Qr),mr.AUTH_VERIFY_FAILED,$r),mr.AUTH_CONFLICT,eo),mr.ROOM_ID_MISSING,no),mr.ROOM_NOT_EXIST,to),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(fo,mr.ROOM_ADD_USER_FAILED,ro),mr.SERVER_RESTARTED,oo),mr.WSSGW_REMOVE_NODE,io),mr.DESTROY_DEACTIVE_ROOM,ao),mr.DESTROY_SLEEP_ROOM,so),mr.USER_CONFLICT,uo),mr.META_DATA_INVALID,co),mr.WSSGW_INSTANCE_NOT_FOUND,lo),mr.REACHED_LEADER_LIMIT,_o),mr.REACHED_FOLLOWER_LIMIT,Eo),function(e){e[e.UNKNOWN=-1]="UNKNOWN",e[e.INVALID_TOKEN=124]="INVALID_TOKEN",e[e.NO_PERMISSION=125]="NO_PERMISSION",e[e.LOCKED=126]="LOCKED",e[e.INVALID_TOKEN_MAX=127]="INVALID_TOKEN_MAX",e[e.INVALID_TOKEN_3=129]="INVALID_TOKEN_3",e[e.INVALID_TOKEN_4=401]="INVALID_TOKEN_4",e[e.NETWORK_ERROR=10016]="NETWORK_ERROR",e[e.PROVIDE_DATA=30100]="PROVIDE_DATA",e[e.TOKEN_EXPIRED=30101]="TOKEN_EXPIRED",e[e.INVALID_BUSINESS_TYPE=30102]="INVALID_BUSINESS_TYPE",e[e.INVALID_RECORDING_ID=30103]="INVALID_RECORDING_ID",e[e.MISSING_FIELD=30104]="MISSING_FIELD",e[e.INVALID_SDK_CDN_URL=30108]="INVALID_SDK_CDN_URL",e[e.INACTIVE_SDK_VERSION=30109]="INACTIVE_SDK_VERSION",e[e.SEARCH_ERROR=30200]="SEARCH_ERROR",e[e.INVALID_BUSINESS_TYPE2=30201]="INVALID_BUSINESS_TYPE2",e[e.APPKEY_NOT_FOUND=30202]="APPKEY_NOT_FOUND",e[e.FILE_SERVER_ERROR=30203]="FILE_SERVER_ERROR",e[e.FILE_SERVICE_ERROR=30204]="FILE_SERVICE_ERROR",e[e.FILE_SERVICE_ERROR2=30205]="FILE_SERVICE_ERROR2",e[e.SESSION_NOT_FOUND=30300]="SESSION_NOT_FOUND",e[e.INVALID_START_TIME=30301]="INVALID_START_TIME",e[e.INVALID_ACTION=30302]="INVALID_ACTION",e[e.INVALID_REGION=30303]="INVALID_REGION",e[e.INVALID_TOKEN2=30304]="INVALID_TOKEN2",e[e.EXCEEDED_FAILED=30305]="EXCEEDED_FAILED",e[e.INVALID_END_TIME=30306]="INVALID_END_TIME",e[e.PIN_CODE_ERROR=30307]="PIN_CODE_ERROR",e[e.PIN_CODE_NOT_FOUND=30308]="PIN_CODE_NOT_FOUND",e[e.PIN_CODE_EXPIRED=30309]="PIN_CODE_EXPIRED",e[e.PIN_CODE_NOT_READY=30310]="PIN_CODE_NOT_READY",e[e.PIN_CODE_INVALID=30311]="PIN_CODE_INVALID",e[e.PIN_CODE_IS_REQUIRED=30315]="PIN_CODE_IS_REQUIRED",e[e.PIN_CODE_HAS_BEEN_USED=30316]="PIN_CODE_HAS_BEEN_USED",e[e.SERVER_ERROR1=30400]="SERVER_ERROR1",e[e.SERVER_ERROR2=30401]="SERVER_ERROR2",e[e.SERVER_ERROR3=30402]="SERVER_ERROR3",e[e.SERVER_ERROR4=30403]="SERVER_ERROR4",e[e.INVALID_URL=30105]="INVALID_URL",e[e.SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_DISABLE=30600]="SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_DISABLE",e[e.SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_NO_CREDIT=30601]="SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_NO_CREDIT"}(zr||(zr={}));var go,So="Service exception.",po="Invalid token.",Io="Invalid pincode.",Ro="No permission.",Co="Invalid business type.",To="App Key not found.",ho="Session not found.",Oo="Pincode is required.",vo="Pincode has been used.",mo="Network error.",Ao="Invalid sdk cdn url.",Do="Inactive sdk version.",No="Invalid url.",yo="SDK universal credit free trial plan disable.",bo="SDK universal credit free trial account no available credit.",Po=(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(n={},zr.INVALID_TOKEN,po),zr.INVALID_TOKEN_MAX,po),zr.TOKEN_EXPIRED,po),zr.INVALID_TOKEN2,po),zr.INVALID_TOKEN_3,po),zr.INVALID_TOKEN_4,po),zr.PIN_CODE_ERROR,Io),zr.PIN_CODE_NOT_FOUND,Io),zr.PIN_CODE_EXPIRED,Io),zr.PIN_CODE_NOT_READY,Io),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(n,zr.PIN_CODE_INVALID,Io),zr.NO_PERMISSION,Ro),zr.APPKEY_NOT_FOUND,To),zr.SESSION_NOT_FOUND,ho),zr.PIN_CODE_IS_REQUIRED,Oo),zr.PIN_CODE_HAS_BEEN_USED,vo),zr.INVALID_BUSINESS_TYPE2,Co),zr.INVALID_BUSINESS_TYPE,Co),zr.UNKNOWN,So),zr.LOCKED,So),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(n,zr.PROVIDE_DATA,So),zr.INVALID_RECORDING_ID,So),zr.MISSING_FIELD,So),zr.INVALID_SDK_CDN_URL,Ao),zr.INACTIVE_SDK_VERSION,Do),zr.SEARCH_ERROR,So),zr.FILE_SERVER_ERROR,So),zr.FILE_SERVICE_ERROR,So),zr.FILE_SERVICE_ERROR2,So),zr.INVALID_START_TIME,So),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(n,zr.INVALID_ACTION,So),zr.INVALID_REGION,So),zr.EXCEEDED_FAILED,So),zr.INVALID_END_TIME,So),zr.SERVER_ERROR1,So),zr.SERVER_ERROR2,So),zr.SERVER_ERROR3,So),zr.SERVER_ERROR4,So),zr.NETWORK_ERROR,mo),zr.INVALID_URL,No),_defineProperty(_defineProperty(n,zr.SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_DISABLE,yo),zr.SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_NO_CREDIT,bo));!function(e){e[e.CANCEL_END_ROOM=1]="CANCEL_END_ROOM",e[e.CANCEL_LEAVE_ROOM=2]="CANCEL_LEAVE_ROOM"}(go||(go={}));var wo,Lo="Canceled and ended session.",Mo="Canceled and left session.";_defineProperty(_defineProperty({},go.CANCEL_END_ROOM,Lo),go.CANCEL_LEAVE_ROOM,Mo),function(e){e.Cookies="cookie",e.LocalStorage="localStorage",e.SessionStorage="sessionStorage",e.All="all"}(wo||(wo={}));var Fo,ko,xo="/sdkapi/zcb/frame-templates/desk",Bo="/sdkapi/zcb/frame-templates/viewer";!function(e){e.CustomerFloatingToolbar="customerFloatingToolbar",e.CustomerFloatingToolbarIcon="customerFloatingToolbarIcon",e.CustomerFloatingToolbarText="customerFloatingToolbarText",e.CustomerFloatingToolbarButton="customerFloatingToolbarButton",e.CustomerFloatingToolbarButtonPrefixIcon="customerFloatingToolbarButtonPrefixIcon",e.CustomerScreenBorder="customerScreenBorder",e.CustomerAnnotationToolbarMouseButton="customerAnnotationToolbarMouseButton",e.CustomerAnnotationToolbarVanishingPenButton="customerAnnotationToolbarVanishingPenButton",e.CustomerAnnotationToolbarPenButton="customerAnnotationToolbarPenButton",e.CustomerAnnotationToolbarVanishingRectangleButton="customerAnnotationToolbarVanishingRectangleButton",e.CustomerAnnotationToolbarRectangleButton="customerAnnotationToolbarRectangleButton",e.CustomerAnnotationToolbarEraserButton="customerAnnotationToolbarEraserButton",e.CustomerAnnotationToolbarColorButton="customerAnnotationToolbarColorButton",e.CustomerAnnotationToolbarClearButton="customerAnnotationToolbarClearButton",e.CustomerAnnotationToolbarCloseButton="customerAnnotationToolbarCloseButton",e.CustomerAnnotationToolbarOpenButton="customerAnnotationToolbarOpenButton",e.CustomerJoinSessionDialogOverall="customerJoinSessionDialogOverall",e.CustomerJoinSessionDialogTitle="customerJoinSessionDialogTitle",e.CustomerJoinSessionDialogTitleContent="customerJoinSessionDialogTitleContent",e.CustomerJoinSessionDialogTitleIcon="customerJoinSessionDialogTitleIcon",e.CustomerJoinSessionDialogTopRightCloseButton="customerJoinSessionDialogTopRightCloseButton",e.CustomerJoinSessionDialogLoadingPinCodeIcon="customerJoinSessionDialogLoadingPinCodeIcon",e.CustomerJoinSessionDialogPinCodeTipText="customerJoinSessionDialogPinCodeTipText",e.CustomerJoinSessionDialogPinCodeContent="customerJoinSessionDialogPinCodeContent",e.CustomerJoinSessionDialogFooterContainer="customerJoinSessionDialogFooterContainer",e.CustomerJoinSessionDialogCancelButton="customerJoinSessionDialogCancelButton",e.CustomerEndSessionDialogOverall="customerEndSessionDialogOverall",e.CustomerEndSessionDialogTitleContainer="customerEndSessionDialogTitleContainer",e.CustomerEndSessionDialogContentContainer="customerEndSessionDialogContentContainer",e.CustomerEndSessionDialogFooterContainer="customerEndSessionDialogFooterContainer",e.CustomerEndSessionDialogTitleContent="customerEndSessionDialogTitleContent",e.CustomerEndSessionDialogTitleIcon="customerEndSessionDialogTitleIcon",e.CustomerEndSessionDialogTextContent="customerEndSessionDialogTextContent",e.CustomerEndSessionDialogTopRightCloseButton="customerEndSessionDialogTopRightCloseButton",e.CustomerEndSessionDialogCancelButton="customerEndSessionDialogCancelButton",e.CustomerEndSessionDialogEndSessionButton="customerEndSessionDialogEndSessionButton",e.CustomerReconnectDialogOverall="customerReconnectDialogOverall",e.CustomerReconnectDialogContentContainer="customerReconnectDialogContentContainer",e.CustomerReconnectDialogFooterContainer="customerReconnectDialogFooterContainer",e.CustomerReconnectDialogLoadingIcon="customerReconnectDialogLoadingIcon",e.CustomerReconnectDialogTextContent="customerReconnectDialogTextContent",e.CustomerReconnectDialogCloseButton="customerReconnectDialogCloseButton",e.CustomerReconnectDialogCloseButtonPrefixIcon="customerReconnectDialogCloseButtonPrefixIcon",e.CustomerConnectDialogOverall="customerConnectDialogOverall",e.CustomerConnectDialogContentContainer="customerConnectDialogContentContainer",e.CustomerConnectDialogFooterContainer="customerConnectDialogFooterContainer",e.CustomerConnectDialogLoadingIcon="customerConnectDialogLoadingIcon",e.CustomerConnectDialogTextContent="customerConnectDialogTextContent",e.CustomerConnectDialogCloseButton="customerConnectDialogCloseButton",e.CustomerConnectDialogCloseButtonPrefixIcon="customerConnectDialogCloseButtonPrefixIcon",e.CustomerJoinFailedDialogOverall="customerJoinFailedDialogOverall",e.CustomerJoinFailedDialogTitleContainer="customerJoinFailedDialogTitleContainer",e.CustomerJoinFailedDialogContentContainer="customerJoinFailedDialogContentContainer",e.CustomerJoinFailedDialogFooterContainer="customerJoinFailedDialogFooterContainer",e.CustomerJoinFailedDialogTitleContent="customerJoinFailedDialogTitleContent",e.CustomerJoinFailedDialogTitleIcon="customerJoinFailedDialogTitleIcon",e.CustomerJoinFailedDialogTextContent="customerJoinFailedDialogTextContent",e.CustomerJoinFailedDialogTextSecondaryContent="customerJoinFailedDialogTextSecondaryContent",e.CustomerJoinFailedDialogOkButton="customerJoinFailedDialogOkButton",e.CustomerTransferFailedTitleContent="CustomerTransferFailedTitleContent",e.CustomerTransferFailedTextSecondaryContent="CustomerTransferFailedTextSecondaryContent",e.CustomerTransferFailedOkButton="CustomerTransferFailedOkButton",e.CustomerReconnectFailedDialogOverall="customerReconnectFailedDialogOverall",e.CustomerReconnectFailedDialogTitleContainer="customerReconnectFailedDialogTitleContainer",e.CustomerReconnectFailedDialogContentContainer="customerReconnectFailedDialogContentContainer",e.CustomerReconnectFailedDialogFooterContainer="customerReconnectFailedDialogFooterContainer",e.CustomerReconnectFailedDialogTitleContent="customerReconnectFailedDialogTitleContent",e.CustomerReconnectFailedDialogTitleIcon="customerReconnectFailedDialogTitleIcon",e.CustomerReconnectFailedDialogTextContent="customerReconnectFailedDialogTextContent",e.CustomerReconnectFailedDialogTextSecondaryContent="customerReconnectFailedDialogTextSecondaryContent",e.CustomerReconnectFailedDialogOkButton="customerReconnectFailedDialogOkButton",e.CustomerReconnectTimeoutDialogOverall="customerReconnectTimeoutDialogOverall",e.CustomerReconnectTimeoutDialogTitleContainer="customerReconnectTimeoutDialogTitleContainer",e.CustomerReconnectTimeoutDialogContentContainer="customerReconnectTimeoutDialogContentContainer",e.CustomerReconnectTimeoutDialogFooterContainer="customerReconnectTimeoutDialogFooterContainer",e.CustomerReconnectTimeoutDialogTitleContent="customerReconnectTimeoutDialogTitleContent",e.CustomerReconnectTimeoutDialogTitleIcon="customerReconnectTimeoutDialogTitleIcon",e.CustomerReconnectTimeoutDialogTextContent="customerReconnectTimeoutDialogTextContent",e.CustomerReconnectTimeoutDialogTextSecondaryContent="customerReconnectTimeoutDialogTextSecondaryContent",e.CustomerReconnectTimeoutDialogOkButton="customerReconnectTimeoutDialogOkButton",e.CustomerReconnectTimeoutDialogTopRightCloseButton="customerReconnectTimeoutDialogTopRightCloseButton",e.CustomerDisconnectDialogOverall="customerDisconnectDialogOverall",e.CustomerDisconnectDialogContentContainer="customerDisconnectDialogContentContainer",e.CustomerDisconnectDialogFooterContainer="customerDisconnectDialogFooterContainer",e.CustomerDisconnectDialogLoadingIcon="customerDisconnectDialogLoadingIcon",e.CustomerDisconnectDialogFirstLineTextContent="customerDisconnectDialogFirstLineTextContent",e.CustomerDisconnectDialogSecondLineTextContent="customerDisconnectDialogSecondLineTextContent",e.CustomerDisconnectDialogPinCode="customerDisconnectDialogPinCode",e.CustomerDisconnectDialogEndButton="customerDisconnectDialogCloseButton",e.CustomerDisconnectDialogEndButtonPrefixIcon="customerDisconnectDialogCloseButtonPrefixIcon",e.CustomerToastSuccessPrefixIcon="customerToastSuccessPrefixIcon",e.CustomerToastSuccessWrapper="customerToastSuccessWrapper",e.CustomerToastErrorPrefixIcon="customerToastErrorPrefixIcon",e.CustomerToastErrorWrapper="customerToastErrorWrapper",e.CustomerToastWarningPrefixIcon="customerToastWarningPrefixIcon",e.CustomerToastWarningWrapper="customerToastWarningWrapper",e.CustomerToastDefaultPrefixIcon="customerToastDefaultPrefixIcon",e.CustomerToastDefaultWrapper="customerToastDefaultWrapper",e.CustomerToastInfoPrefixIcon="customerToastInfoPrefixIcon",e.CustomerToastInfoWrapper="customerToastInfoWrapper",e.AgentToolbarVerticalWrapper="agentToolbarVerticalWrapper",e.AgentToolbarHorizontalWrapper="agentToolbarHorizontalWrapper",e.AgentToolbarAllowRotation="agentToolbarAllowRotation",e.AgentToolbarDefaultVertical="agentToolbarDefaultVertical",e.AgentToolbarVerticalNormalBtnsWrapper="agentToolbarVerticalNormalBtnsWrapper",e.AgentToolbarHorizontalNormalBtnsWrapper="agentToolbarHorizontalNormalBtnsWrapper",e.AgentToolbarButtonCommon="agentToolbarButtonCommon",e.AgentToolbarButtonActiveCommon="agentToolbarButtonActiveCommon",e.AgentToolbarTooltipCommon="agentToolbarTooltipCommon",e.AgentToolbarVerticalDivider="agentToolbarVerticalDivider",e.AgentToolbarHorizontalDivider="agentToolbarHorizontalDivider",e.AgentToolbarZoomInButton="agentToolbarZoomInButton",e.AgentToolbarZoomInIcon="agentToolbarZoomInIcon",e.AgentToolbarZoomOutButton="agentToolbarZoomOutButton",e.AgentToolbarZoomOutIcon="agentToolbarZoomOutIcon",e.AgentToolbarZoomMenuButton="agentToolbarZoomMenuButton",e.AgentToolbarZoomMenuIcon="agentToolbarZoomMenuIcon",e.AgentToolbarFullScreenButton="agentToolbarFullScreenButton",e.AgentToolbarFullScreenIcon="agentToolbarFullScreenIcon",e.AgentToolbarExitFullScreenButton="agentToolbarExitFullScreenButton",e.AgentToolbarExitFullScreenIcon="agentToolbarExitFullScreenIcon",e.AgentToolbarVanishingPenButton="agentToolbarVanishingPenButton",e.AgentToolbarVanishingPenIcon="agentToolbarVanishingPenIcon",e.AgentToolbarPenButton="agentToolbarPenButton",e.AgentToolbarPenIcon="agentToolbarPenIcon",e.AgentToolbarEndSessionButton="agentToolbarEndSessionButton",e.AgentToolbarEndSessionIcon="agentToolbarEndSessionIcon",e.AgentToolbarRemoteAssistIcon="agentToolbarRemoteAssistIcon",e.AgentVanishingPenSubMenuVerticalWrapper="agentVanishingPenSubMenuVerticalWrapper",e.AgentVanishingPenSubMenuHorizontalWrapper="agentVanishingPenSubMenuHorizontalWrapper",e.AgentVanishingPenSubMenuButtonCommon="agentVanishingPenSubMenuButtonCommon",e.AgentVanishingPenMenuButtonActiveCommon="agentVanishingPenSubMenuButtonActiveCommon",e.AgentVanishingPenSubMenuMouseButton="agentVanishingPenSubMenuMouseButton",e.AgentVanishingPenSubMenuMouseIcon="agentVanishingPenSubMenuMouseIcon",e.AgentVanishingPenSubMenuVanishingPenButton="agentVanishingPenSubMenuVanishingPenButton",e.AgentVanishingPenSubMenuVanishingPenIcon="agentVanishingPenSubMenuVanishingPenIcon",e.AgentVanishingPenSubMenuVanishingRectangleButton="agentVanishingPenSubMenuVanishingRectangleButton",e.AgentVanishingPenSubMenuVanishingRectangleIcon="agentVanishingPenSubMenuVanishingRectangleIcon",e.AgentVanishingPenSubMenuVanishingColorButton="agentVanishingPenSubMenuVanishingColorButton",e.AgentVanishingPenSubMenuVanishingColorIcon="agentVanishingPenSubMenuVanishingColorIcon",e.AgentPenAnnotationSubMenuVerticalWrapper="agentPenAnnotationSubMenuVerticalWrapper",e.AgentPenAnnotationSubMenuHorizontalWrapper="agentPenAnnotationSubMenuHorizontalWrapper",e.AgentPenAnnotationSubMenuButtonCommon="agentPenAnnotationSubMenuButtonCommon",e.AgentPenAnnotationSubMenuButtonActiveCommon="agentPenAnnotationSubMenuButtonActiveCommon",e.AgentPenAnnotationSubMenuMouseButton="agentPenAnnotationSubMenuMouseButton",e.AgentPenAnnotationSubMenuMouseIcon="agentPenAnnotationSubMenuMouseIcon",e.AgentPenAnnotationSubMenuPenButton="agentPenAnnotationSubMenuPenButton",e.AgentPenAnnotationSubMenuPenIcon="agentPenAnnotationSubMenuPenIcon",e.AgentPenAnnotationSubMenuRectangleButton="agentPenAnnotationSubMenuRectangleButton",e.AgentPenAnnotationSubMenuRectangleIcon="agentPenAnnotationSubMenuRectangleIcon",e.AgentPenAnnotationSubMenuEraserButton="agentPenAnnotationSubMenuEraserButton",e.AgentPenAnnotationSubMenuEraserIcon="agentPenAnnotationSubMenuEraserIcon",e.AgentPenAnnotationSubMenuColorButton="agentPenAnnotationSubMenuColorButton",e.AgentPenAnnotationSubMenuColorIcon="agentPenAnnotationSubMenuColorIcon",e.AgentPenAnnotationSubMenuUndoButton="agentPenAnnotationSubMenuUndoButton",e.AgentPenAnnotationSubMenuUndoIcon="agentPenAnnotationSubMenuUndoIcon",e.AgentPenAnnotationSubMenuRedoButton="agentPenAnnotationSubMenuRedoButton",e.AgentPenAnnotationSubMenuRedoIcon="agentPenAnnotationSubMenuRedoIcon",e.AgentPenAnnotationSubMenuClearButton="agentPenAnnotationSubMenuClearButton",e.AgentPenAnnotationSubMenuClearIcon="agentPenAnnotationSubMenuClearIcon",e.AgentPenSubMenuVerticalWrapper="agentPenSubMenuVerticalWrapper",e.AgentPenSubMenuHorizontalWrapper="agentPenSubMenuHorizontalWrapper",e.AgentPenSubMenuButtonCommon="agentPenSubMenuButtonCommon",e.AgentPenSubMenuButtonActiveCommon="agentPenSubMenuButtonActiveCommon",e.AgentPenSubMenuDrawText="agentPenSubMenuDrawText",e.AgentPenSubMenuLineWidthText="agentPenSubMenuLineWidthText",e.AgentColorSubMenuVerticalWrapper="agentColorSubMenuVerticalWrapper",e.AgentColorSubMenuHorizontalWrapper="agentColorSubMenuHorizontalWrapper",e.AgentColorSubMenuButtonCommon="agentColorSubMenuButtonCommon",e.AgentColorSubMenuActiveButtonCommon="agentColorSubMenuActiveButtonCommon",e.AgentZoomInOutMenuVerticalWrapper="agentZoomInOutMenuVerticalWrapper",e.AgentZoomInOutMenuHorizontalWrapper="agentZoomInOutMenuHorizontalWrapper",e.AgentZoomInOutMenuRoot="agentZoomInOutMenuRoot",e.AgentZoomInOutMenuItem="agentZoomInOutMenuItem",e.AgentZoomInOutMenuItemFitToWindow="agentZoomInOutMenuItemFitToWindow",e.AgentZoomInOutMenuItemActualSize="agentZoomInOutMenuItemActualSize",e.AgentSingleAgentEndSessionDialogOverall="agentSingleAgentEndSessionDialogOverall",e.AgentSingleAgentEndSessionDialogTitleContainer="agentSingleAgentEndSessionDialogTitleContainer",e.AgentSingleAgentEndSessionDialogContentContainer="agentSingleAgentEndSessionDialogContentContainer",e.AgentSingleAgentEndSessionDialogFooterContainer="agentSingleAgentEndSessionDialogFooterContainer",e.AgentSingleAgentEndSessionDialogTitleIcon="agentSingleAgentEndSessionDialogTitleIcon",e.AgentSingleAgentEndSessionDialogTitleContent="agentSingleAgentEndSessionDialogTitleContent",e.AgentSingleAgentEndSessionDialogTextContent="agentSingleAgentEndSessionDialogTextContent",e.AgentSingleAgentEndSessionDialogTopRightCloseButton="agentSingleAgentEndSessionDialogTopRightCloseButton",e.AgentSingleAgentEndSessionDialogCancelButton="agentSingleAgentEndSessionDialogCancelButton",e.AgentSingleAgentEndSessionDialogEndSessionButton="agentSingleAgentEndSessionDialogEndSessionButton",e.AgentMultiAgentsEndSessionDialogOverall="agentMultiAgentsEndSessionDialogOverall",e.AgentMultiAgentsEndSessionDialogTitleContainer="agentMultiAgentsEndSessionDialogTitleContainer",e.AgentMultiAgentsEndSessionDialogContentContainer="agentMultiAgentsEndSessionDialogContentContainer",e.AgentMultiAgentsEndSessionDialogFooterContainer="agentMultiAgentsEndSessionDialogFooterContainer",e.AgentMultiAgentsEndSessionDialogTitleIcon="agentMultiAgentsEndSessionDialogTitleIcon",e.AgentMultiAgentsEndSessionDialogTitleContent="agentMultiAgentsEndSessionDialogTitleContent",e.AgentMultiAgentsEndSessionDialogTextContent="agentMultiAgentsEndSessionDialogTextContent",e.AgentMultiAgentsEndSessionDialogTopRightCloseButton="agentMultiAgentsEndSessionDialogTopRightCloseButton",e.AgentMultiAgentsEndSessionDialogCancelButton="agentMultiAgentsEndSessionDialogCancelButton",e.AgentMultiAgentsEndSessionDialogLeaveSessionButton="agentMultiAgentsEndSessionDialogLeaveSessionButton",e.AgentMultiAgentsEndSessionDialogEndSessionButton="agentMultiAgentsEndSessionDialogEndSessionButton",e.AgentJoinFailedDialogOverall="agentJoinFailedDialogOverall",e.AgentJoinFailedDialogTitleContainer="agentJoinFailedDialogTitleContainer",e.AgentJoinFailedDialogContentContainer="agentJoinFailedDialogContentContainer",e.AgentJoinFailedDialogFooterContainer="agentJoinFailedDialogFooterContainer",e.AgentJoinFailedDialogTitleIcon="agentJoinFailedDialogTitleIcon",e.AgentJoinFailedDialogTitleContent="agentJoinFailedDialogTitleContent",e.AgentJoinFailedDialogTextContent="agentJoinFailedDialogTextContent",e.AgentJoinFailedDialogTopRightCloseButton="agentJoinFailedDialogTopRightCloseButton",e.AgentJoinFailedDialogOkButton="agentJoinFailedDialogOkButton",e.AgentFloatingPinToolbarWrapper="agentFloatingPinToolbarWrapper",e.AgentFloatingPinToolbarPrefixIcon="agentFloatingPinToolbarPrefixIcon",e.AgentFloatingPinToolbarContentText="agentFloatingPinToolbarContentText",e.AgentFloatingPinToolbarCopyIcon="agentFloatingPinToolbarCopyIcon",e.AgentToastSuccessPrefixIcon="agentToastSuccessPrefixIcon",e.AgentToastSuccessWrapper="agentToastSuccessWrapper",e.AgentToastErrorPrefixIcon="agentToastErrorPrefixIcon",e.AgentToastErrorWrapper="agentToastErrorWrapper",e.AgentToastWarningPrefixIcon="agentToastWarningPrefixIcon",e.AgentToastWarningWrapper="agentToastWarningWrapper",e.AgentToastDefaultPrefixIcon="agentToastDefaultPrefixIcon",e.AgentToastDefaultWrapper="agentToastDefaultWrapper",e.AgentToastInfoPrefixIcon="agentToastInfoPrefixIcon",e.AgentToastInfoWrapper="agentToastInfoWrapper"}(Fo||(Fo={})),function(e){e.SESSION_PRE_INIT="session_pre_init",e.SESSION_JOINED="session_joined",e.SESSION_LEFT="session_left",e.SESSION_ENDED="session_ended",e.SESSION_ERROR="session_error",e.REMOTE_ASSIST_ACCEPTED="remote_assist_accepted",e.REMOTE_ASSIST_REJECTED="remote_assist_rejected",e.REMOTE_ASSIST_STARTED="remote_assist_started",e.REMOTE_ASSIST_STOPPED="remote_assist_stopped"}(ko||(ko={}));var Uo,Vo=[ko.SESSION_PRE_INIT,ko.SESSION_JOINED,ko.SESSION_LEFT,ko.SESSION_ENDED,ko.SESSION_ERROR,ko.REMOTE_ASSIST_ACCEPTED,ko.REMOTE_ASSIST_REJECTED,ko.REMOTE_ASSIST_STARTED,ko.REMOTE_ASSIST_STOPPED];!function(e){e.SEND_SESSION_OPTIONS="send_session_options",e.START_REMOTE_ASSIST="start_remote_assist",e.STOP_REMOTE_ASSIST="stop_remote_assist"}(Uo||(Uo={})),Uo.SEND_SESSION_OPTIONS,Uo.START_REMOTE_ASSIST,Uo.STOP_REMOTE_ASSIST;function Wo(){var e=navigator.userAgent;return/iPhone|iPad|iPod/.test(e)}function Ho(){return Wo()||navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/Windows Phone/i)}function Go(){return"MacIntel"===(window.navigator.platform||"")&&((window.navigator.maxTouchPoints||0)>1&&"ontouchstart"in window)}function Jo(){return Go()||function(){var e=window.navigator,n=e.userAgent,t=e.platform;if(/Android/.test(n)||!/Linux/.test(t))return!1;var r="ontouchstart"in window&&("orientation"in window||"screen"in window&&window.screen&&"orientation"in window.screen)&&window.navigator.maxTouchPoints>0,o="standalone"in window.navigator||"share"in window.navigator||"vibrate"in window.navigator;return r&&o}()}Object.assign(Object.assign({},{createLinearGradient:!0,createRadialGradient:!0,createConicGradient:!0}),{createPattern:!0});var jo,zo,Ko,Yo=(jo=null,zo=null,Ko=null,{get isIOS(){return null===jo&&(jo=Wo()),jo},get isIOSDevice(){return null===zo&&(zo=Wo()||Go()),zo},get isMobileDeviceOrDesktopUA(){return null===Ko&&(Ko=!(!Ho()&&!Jo())),Ko}}),Zo=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"calculateWidth",value:function(){var e,n,t=window.visualViewport;if(!ti(t))return Xo();if(t.scale>1){var r=t.width*t.scale;return Math.min(r,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.width)&&void 0!==n?n:r)}return t.width}},{key:"calculateHeight",value:function(){var e,n,t=window.visualViewport;if(!ti(t))return Qo();if(t.scale>1){var r=t.height*t.scale;return Math.min(r,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.height)&&void 0!==n?n:r)}return t.height}}]),e}(),qo=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"calculateWidth",value:function(){var e,n,t=window.visualViewport;if(!ti(t))return Xo();if(t.scale>1){var r=Math.max(t.width*t.scale,window.innerWidth);return Math.min(r,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.width)&&void 0!==n?n:r)}return Math.max(t.width,window.innerWidth)}},{key:"calculateHeight",value:function(){var e,n,t=window.visualViewport;if(!ti(t))return Qo();if(t.scale>1){var r=Math.max(t.height*t.scale,window.innerHeight);return Math.min(r,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.height)&&void 0!==n?n:r)}return Math.max(t.height,window.innerHeight)}}]),e}();function Xo(){return document.documentElement&&document.documentElement.clientWidth||window.innerWidth||document.body&&document.body.clientWidth}function Qo(){return document.documentElement&&document.documentElement.clientHeight||window.innerHeight||document.body&&document.body.clientHeight}var $o=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"calculateWidth",value:function(){return Xo()}},{key:"calculateHeight",value:function(){return Qo()}}]),e}(),ei=function(){var e,n=!1;function t(){e=Yo.isMobileDeviceOrDesktopUA&&ti(window.visualViewport)?Yo.isIOSDevice?new Zo:new qo:new $o,n=!0}return{getWidth:function(){return n||t(),e.calculateWidth()},getHeight:function(){return n||t(),e.calculateHeight()}}}();var ni=new WeakMap;function ti(e){if(!e||"object"!==_typeof(e))return!1;if(e.constructor&&"VisualViewport"===e.constructor.name){var n=ni.get(e);if(void 0!==n)return n}var t=function(e){return"object"===_typeof(e)&&null!==e&&"scale"in e&&"width"in e&&"height"in e&&"offsetTop"in e&&"number"==typeof e.scale&&"number"==typeof e.width&&"number"==typeof e.height&&"number"==typeof e.offsetTop}(e);return t&&ni.set(e,t),t}ei.getWidth(),ei.getHeight();function ri(e,n,t){var r;null===(r=null==n?void 0:n.postMessage)||void 0===r||r.call(n,e,t)}var oi=function(e){_inherits(t,_wrapNativeSuper(Error));var n=_createSuper(t);function t(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return _classCallCheck(this,t),(r=n.call(this,e)).msg=e,r.code=o,r.statusCode=i,r}return _createClass(t)}();function ii(e,n){var o=this,i=n||{},a=i.retry,s=i.handleJsonResponse,u=t(i,["retry","handleJsonResponse"]),c=s||function(e){return r(o,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(!e.ok){n.next=4;break}return n.abrupt("return",e);case 4:return n.prev=4,n.next=7,e.json();case 7:o=n.sent,t=o.message,r=o.code,n.next=16;break;case 12:n.prev=12,n.t0=n.catch(4),t=e.statusText,r=e.status;case 16:throw new oi(t,r,e.status);case 17:case"end":return n.stop()}}),n,null,[[4,12]])})))},l=Object.assign({limit:3},a),_=l.limit,d=l.delay;return new Promise((function(n,t){var o=function(o){var a,s;return r(this,void 0,void 0,_regeneratorRuntime().mark((function r(){var l,d,E;return _regeneratorRuntime().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,fetch(e,u);case 3:return l=r.sent,r.next=6,c(l);case 6:return d=r.sent,n(d),r.abrupt("return");case 11:if(r.prev=11,r.t0=r.catch(0),E=r.t0&&null!==(s=null!==(a=r.t0.statusCode)&&void 0!==a?a:r.t0.status)&&void 0!==s?s:1/0,!(o>=_||E<500&&0!==E)){r.next=17;break}return!r.t0||r.t0 instanceof TypeError&&/Load failed|fetch/i.test(r.t0.message)?t(new oi(Po[zr.NETWORK_ERROR],zr.NETWORK_ERROR)):t(r.t0),r.abrupt("return");case 17:i(o);case 18:case"end":return r.stop()}}),r,null,[[0,11]])})))};function i(e){void 0!==d?window.setTimeout((function(){o(++e)}),d):o(++e)}o(0)}))}var ai=["table index is out of bounds","ResizeObserver loop completed with undelivered notifications"],si=(new Date).getTime()-6048e5,ui=[],ci=[],li={log:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.log,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return r(void 0,void 0,void 0,_regeneratorRuntime().mark((function r(){return _regeneratorRuntime().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:ui.push({message:e,tag:n,logLevel:t,extraProperties:Object.assign({timestamp:Date.now()},i)});case 1:case"end":return r.stop()}}),r)})))},reportByFilter:function(e){},directReport:function(e,n){ci.push({payload:e,options:n})},getLogs:function(e){},setReportUrl:function(e){Ce.setDynamicReportUrl(e)}},_i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Te()&&!Vt())return Promise.resolve();var n,t,r,o,i,a=(r=e.zmTrackingId,o=void 0===r?"":r,i=[new he({debug:!1,cleanAfterReport:!0,expireBefore:si}),new ve({enable:!0,debug:!1,ignoredErrorMsgKeywords:ai,maxErrorCount:223,publicTags:[o,"ZCB-CLIENT","ERROR",null!==(n=null===location||void 0===location?void 0:location.host)&&void 0!==n?n:""]}),new Wn({enable:!1,debug:!1,publicTags:[o,"STATIC_RESOURCE",null!==(t=null===location||void 0===location?void 0:location.host)&&void 0!==t?t:"","ZCB-CLIENT"],includeResourceList:["zcb-core.css","zcb-core.js"],excludeResourceTimingKeys:[],userRegion:""})],{databaseName:"laplace-zcb-client-database",maxSize:49283072,reportUrl:Ce.getCurrentReportUrl(),plugins:i});return de.init(a).then((function(e){var n,t,r,o;e&&(n=li,r=(null==(t=e)?void 0:t.getLogs("ZCB-CLIENT"))||[],o=new Set(r.map((function(e){return null==e?void 0:e.id}))),((null==n?void 0:n.getLogs("ZCB-CLIENT"))||[]).forEach((function(e){if(e&&!o.has(null==e?void 0:e.id)){var n=e||{},t=n.message,r=n.tags,i=n.logLevel,a=n.host,s=n.timestamp;ui.push({message:t,tag:r,logLevel:i,extraProperties:{host:a,timestamp:s}})}})),li=e,Te()&&(ui.length&&Promise.allSettled(ui.map((function(e){var n=e.message,t=e.tag,r=e.logLevel,o=e.extraProperties;return li.log(n,t,r,o)}))).then((function(){ui.length=0,li.reportByFilter(["ZCB-CLIENT"])})),ci.length&&Promise.allSettled(ci.map((function(e){var n=e.payload,t=e.options;return li.directReport(n,t)}))).then((function(){ci.length=0}))))})).catch((function(e){console.error("initLaplace ERROR:",e)}))};function di(e,n){var t=(65535&e)+(65535&n);return(e>>16)+(n>>16)+(t>>16)<<16|65535&t}function Ei(e,n,t,r,o,i){return di((a=di(di(n,e),di(r,i)))<<(s=o)|a>>>32-s,t);var a,s}function fi(e,n,t,r,o,i,a){return Ei(n&t|~n&r,e,n,o,i,a)}function gi(e,n,t,r,o,i,a){return Ei(n&r|t&~r,e,n,o,i,a)}function Si(e,n,t,r,o,i,a){return Ei(n^t^r,e,n,o,i,a)}function pi(e,n,t,r,o,i,a){return Ei(t^(n|~r),e,n,o,i,a)}function Ii(e,n){var t,r,o,i,a;e[n>>5]|=128<<n%32,e[14+(n+64>>>9<<4)]=n;var s=1732584193,u=-271733879,c=-1732584194,l=271733878;for(t=0;t<e.length;t+=16)r=s,o=u,i=c,a=l,s=fi(s,u,c,l,e[t],7,-680876936),l=fi(l,s,u,c,e[t+1],12,-389564586),c=fi(c,l,s,u,e[t+2],17,606105819),u=fi(u,c,l,s,e[t+3],22,-1044525330),s=fi(s,u,c,l,e[t+4],7,-176418897),l=fi(l,s,u,c,e[t+5],12,1200080426),c=fi(c,l,s,u,e[t+6],17,-1473231341),u=fi(u,c,l,s,e[t+7],22,-45705983),s=fi(s,u,c,l,e[t+8],7,1770035416),l=fi(l,s,u,c,e[t+9],12,-1958414417),c=fi(c,l,s,u,e[t+10],17,-42063),u=fi(u,c,l,s,e[t+11],22,-1990404162),s=fi(s,u,c,l,e[t+12],7,1804603682),l=fi(l,s,u,c,e[t+13],12,-40341101),c=fi(c,l,s,u,e[t+14],17,-1502002290),s=gi(s,u=fi(u,c,l,s,e[t+15],22,1236535329),c,l,e[t+1],5,-165796510),l=gi(l,s,u,c,e[t+6],9,-1069501632),c=gi(c,l,s,u,e[t+11],14,643717713),u=gi(u,c,l,s,e[t],20,-373897302),s=gi(s,u,c,l,e[t+5],5,-701558691),l=gi(l,s,u,c,e[t+10],9,38016083),c=gi(c,l,s,u,e[t+15],14,-660478335),u=gi(u,c,l,s,e[t+4],20,-405537848),s=gi(s,u,c,l,e[t+9],5,568446438),l=gi(l,s,u,c,e[t+14],9,-1019803690),c=gi(c,l,s,u,e[t+3],14,-187363961),u=gi(u,c,l,s,e[t+8],20,1163531501),s=gi(s,u,c,l,e[t+13],5,-1444681467),l=gi(l,s,u,c,e[t+2],9,-51403784),c=gi(c,l,s,u,e[t+7],14,1735328473),s=Si(s,u=gi(u,c,l,s,e[t+12],20,-1926607734),c,l,e[t+5],4,-378558),l=Si(l,s,u,c,e[t+8],11,-2022574463),c=Si(c,l,s,u,e[t+11],16,1839030562),u=Si(u,c,l,s,e[t+14],23,-35309556),s=Si(s,u,c,l,e[t+1],4,-1530992060),l=Si(l,s,u,c,e[t+4],11,1272893353),c=Si(c,l,s,u,e[t+7],16,-155497632),u=Si(u,c,l,s,e[t+10],23,-1094730640),s=Si(s,u,c,l,e[t+13],4,681279174),l=Si(l,s,u,c,e[t],11,-358537222),c=Si(c,l,s,u,e[t+3],16,-722521979),u=Si(u,c,l,s,e[t+6],23,76029189),s=Si(s,u,c,l,e[t+9],4,-640364487),l=Si(l,s,u,c,e[t+12],11,-421815835),c=Si(c,l,s,u,e[t+15],16,530742520),s=pi(s,u=Si(u,c,l,s,e[t+2],23,-995338651),c,l,e[t],6,-198630844),l=pi(l,s,u,c,e[t+7],10,1126891415),c=pi(c,l,s,u,e[t+14],15,-1416354905),u=pi(u,c,l,s,e[t+5],21,-57434055),s=pi(s,u,c,l,e[t+12],6,1700485571),l=pi(l,s,u,c,e[t+3],10,-1894986606),c=pi(c,l,s,u,e[t+10],15,-1051523),u=pi(u,c,l,s,e[t+1],21,-2054922799),s=pi(s,u,c,l,e[t+8],6,1873313359),l=pi(l,s,u,c,e[t+15],10,-30611744),c=pi(c,l,s,u,e[t+6],15,-1560198380),u=pi(u,c,l,s,e[t+13],21,1309151649),s=pi(s,u,c,l,e[t+4],6,-145523070),l=pi(l,s,u,c,e[t+11],10,-1120210379),c=pi(c,l,s,u,e[t+2],15,718787259),u=pi(u,c,l,s,e[t+9],21,-343485551),s=di(s,r),u=di(u,o),c=di(c,i),l=di(l,a);return[s,u,c,l]}function Ri(e){var n,t="",r=32*e.length;for(n=0;n<r;n+=8)t+=String.fromCharCode(e[n>>5]>>>n%32&255);return t}function Ci(e){var n,t=[];for(t[(e.length>>2)-1]=void 0,n=0;n<t.length;n+=1)t[n]=0;var r=8*e.length;for(n=0;n<r;n+=8)t[n>>5]|=(255&e.charCodeAt(n/8))<<n%32;return t}function Ti(e){var n,t,r="0123456789abcdef",o="";for(t=0;t<e.length;t+=1)n=e.charCodeAt(t),o+=r.charAt(n>>>4&15)+r.charAt(15&n);return o}function hi(e){return unescape(encodeURIComponent(e))}function Oi(e){return function(e){return Ri(Ii(Ci(e),8*e.length))}(hi(e))}function vi(e,n){return function(e,n){var t,r,o=Ci(e),i=[],a=[];for(i[15]=a[15]=void 0,o.length>16&&(o=Ii(o,8*e.length)),t=0;t<16;t+=1)i[t]=909522486^o[t],a[t]=1549556828^o[t];return r=Ii(i.concat(Ci(n)),512+8*n.length),Ri(Ii(a.concat(r),640))}(hi(e),hi(n))}function mi(e,n,t){return n?t?vi(n,e):function(e,n){return Ti(vi(e,n))}(n,e):t?Oi(e):Ti(Oi(e))}var Ai=function(e){return Boolean(null==e?void 0:e.log)},Di=function(e,n){return[e,n].flatMap((function(e){return e})).map((function(e){return"function"==typeof e?e():e})).filter((function(e){return Boolean(e)}))},Ni=function(){function e(){_classCallCheck(this,e),this.ZCB_ZmTrackingIds={}}return _createClass(e,[{key:"setZmTrackingIds",value:function(e){var n=e.zmWebTrackingId,t=e.zmChsTrackingId,r=e.zmTrackingId;this.ZCB_ZmTrackingIds={zmWebTrackingId:n,zmChsTrackingId:t,zmTrackingId:r}}},{key:"genZmTrackingId",value:function(){var e=Ir(),n="zcb_client_".concat(e,"_0"),t="".concat(e,"_0");return this.ZCB_ZmTrackingIds={zmWebTrackingId:n,zmChsTrackingId:t,zmTrackingId:e},{zmWebTrackingId:n,zmChsTrackingId:t,zmTrackingId:e}}},{key:"getZmTrackingId",value:function(){var e,n=null===(e=this.ZCB_ZmTrackingIds)||void 0===e?void 0:e.zmTrackingId;return n||(console.warn("getZmTrackingId failed, generate new zmTrackingId: ".concat(n)),n=this.genZmTrackingId().zmTrackingId),n}},{key:"clearZmTrackingId",value:function(){this.ZCB_ZmTrackingIds={}}},{key:"genFailOverZmChsTrackingId",value:function(){var e,n=null===(e=this.ZCB_ZmTrackingIds)||void 0===e?void 0:e.zmChsTrackingId;n||(n=this.genZmTrackingId().zmChsTrackingId);var t=n.match(/(\\d+)(?!.*\\d+)/);if(t){var r=parseInt(t[0])+1,o=n.substring(0,t.index)+r;return this.ZCB_ZmTrackingIds&&(this.ZCB_ZmTrackingIds.zmChsTrackingId=o),o}return this.genZmTrackingId().zmChsTrackingId}},{key:"getZmTrackingIdForWeb",value:function(){var e,n=null===(e=this.ZCB_ZmTrackingIds)||void 0===e?void 0:e.zmWebTrackingId;n||(n=this.genZmTrackingId().zmWebTrackingId);var t=n.match(/(\\d+)(?!.*\\d+)/);if(t){var r=parseInt(t[0])+1,o=n.substring(0,t.index)+r;return this.ZCB_ZmTrackingIds&&(this.ZCB_ZmTrackingIds.zmWebTrackingId=o),o}return this.genZmTrackingId().zmWebTrackingId}},{key:"getZmTrackingIdForChs",value:function(){var e,n=null===(e=this.ZCB_ZmTrackingIds)||void 0===e?void 0:e.zmChsTrackingId;return n||(n=this.genZmTrackingId().zmChsTrackingId),n}}]),e}(),yi=window.ZCB_TrackingIdController||new Ni;window.ZCB_TrackingIdController=yi;function bi(e){if("object"===("undefined"==typeof window?"undefined":_typeof(window))){var n=encodeURI(e);return btoa(n)}return Buffer.from(e).toString("base64")}var Pi,wi,Li,Mi,Fi,ki,xi=function(e){return bi(e)},Bi=function(){function e(n){var t=n.requestOrigin,r=n.parentFrameId;_classCallCheck(this,e),this.parentFrameId=r;var o=xi(t);r&&(o=r+"--"+o),this.frameId=o}return _createClass(e,[{key:"equal",value:function(e){var n=e.requestOrigin,t=e.parentFrameId;return t===this.parentFrameId&&this.frameId===t+"--"+xi(n)}},{key:"isParentFrame",value:function(e){return this.frameId===e}},{key:"isSubFrame",value:function(e){return this.parentFrameId===e}}]),e}(),Ui=function(){function e(n){_classCallCheck(this,e),this.frames=new Map,this.tabId=n}return _createClass(e,[{key:"getFrame",value:function(e){var n=e.requestOrigin,t=e.parentFrameId,r=null;return this.frames.forEach((function(e){e.equal({requestOrigin:n,parentFrameId:t})&&(r=e)})),r}},{key:"checkAddFrame",value:function(e){var n=this,t=e.requestOrigin,r=e.parentFrameId,o=this.getFrame({requestOrigin:t,parentFrameId:r});if(o)return o;if(this.tabId===r)return this.addFrame({requestOrigin:t,parentFrameId:r});var i=null;return this.frames.forEach((function(e){i||e.isParentFrame(r)&&(i=n.addFrame({requestOrigin:t,parentFrameId:r}))})),i}},{key:"getSubFrames",value:function(e){var n=[];return this.frames.forEach((function(t){t.isSubFrame(e)&&n.push(t)})),n}},{key:"addFrame",value:function(e){var n=e.requestOrigin,t=e.parentFrameId,r=new Bi({requestOrigin:n,parentFrameId:t});return this.frames.set(r.frameId,r),r}}]),e}(),Vi=function(){function e(){_classCallCheck(this,e),this.tabs=new Map}return _createClass(e,[{key:"makeRequest",value:function(e){var n=e.requestOrigin,t=e.parentFrameId,r="";return t?(this.tabs.forEach((function(e){if(!r){var o=e.checkAddFrame({requestOrigin:n,parentFrameId:t});o&&(r=o.frameId)}})),r):this.tabs.size?(this.tabs.forEach((function(e,n){r||(r=n)})),r):(r=xi(n),this.tabs.set(r,new Ui(r)),r)}},{key:"makeViewerRequest",value:function(e){var n=e.parentFrameId,t="";return this.tabs.forEach((function(e){var r;if(n){if(t)return;var o=e.getSubFrames(n);t=(null===(r=o[0])||void 0===r?void 0:r.frameId)||""}else t=e.tabId})),t}}]),e}(),Wi=new(function(){function e(){_classCallCheck(this,e),this.rooms=new Map}return _createClass(e,[{key:"makeRequest",value:function(e){var n=e.roomId,t=e.requestOrigin,r=e.parentFrameId,o=e.isViewer;this.rooms.get(n)||this.rooms.set(n,new Vi);var i=this.rooms.get(n);return i?o?i.makeViewerRequest({parentFrameId:r}):i.makeRequest({requestOrigin:t,parentFrameId:r}):""}}]),e}());"undefined"!=typeof global&&(global.cpsRoomManager=Wi),function(e){e.UNKNOW="unknow",e.BROWSER="browser",e.BROWSER_WORKER="worker",e.NODE="node",e.NODE_WORKER="node_worker"}(Pi||(Pi={})),wi="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,Li="undefined"!=typeof window,Mi="function"==typeof importScripts,Fi=wi&&!Mi,ki=!wi&&!Li,Mi?Pi.BROWSER_WORKER:Li?Pi.BROWSER:ki?Pi.NODE:Fi?Pi.NODE_WORKER:Pi.UNKNOW;var Hi=_createClass((function e(){var n=this;_classCallCheck(this,e),this.promise=new Promise((function(e,t){n.reject=t,n.resolve=e})),this.promise.then((function(e){return n.resolved=!0,e})).catch((function(){n.resolved=!1})).finally((function(){n.finished=!0,n.finishedTimestamp=Date.now()}))}));var Gi=function(){function e(n){_classCallCheck(this,e),this.cache=new Map,this.limit=n}return _createClass(e,[{key:"get",value:function(e){if(this.cache.has(e)){var n=this.cache.get(e);return this.cache.delete(e),this.cache.set(e,n),n}}},{key:"set",value:function(e,n){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.limit){var t=this.cache.keys().next().value;this.cache.delete(t)}this.cache.set(e,n)}},{key:"has",value:function(e){return this.cache.has(e)}},{key:"delete",value:function(e){return this.cache.delete(e)}},{key:"clear",value:function(){this.cache.clear()}},{key:"keys",value:function(){return Array.from(this.cache.keys())}},{key:"values",value:function(){return Array.from(this.cache.values())}}]),e}(),Ji="function",ji="object",zi="string",Ki="model",Yi="name",Zi="type",qi="vendor",Xi="version",Qi="architecture",$i="hardwareConcurrency",ea="console",na="mobile",ta="tablet",ra="smarttv",oa="wearable",ia="Amazon",aa="Apple",sa="ASUS",ua="BlackBerry",ca="Browser",la="Chrome",_a="Firefox",da="Google",Ea="Huawei",fa="LG",ga="Microsoft",Sa="Motorola",pa="Opera",Ia="Samsung",Ra="Sharp",Ca="Sony",Ta="Xiaomi",ha="Zebra",Oa="Facebook",va={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ma=function(e){return e.toLowerCase()},Aa=function(e,n){return _typeof(e)===zi&&-1!==ma(n).indexOf(ma(e))},Da=function(e,n){return _typeof(e)===zi?(e=e.replace(/^\\s\\s*/,""),"undefined"===_typeof(n)?e:e.substring(0,350)):""},Na=function(e,n){for(var t in n)if(_typeof(n[t])===ji&&n[t].length>0){for(var r=0;r<n[t].length;r++)if(Aa(n[t][r],e))return"?"===t?void 0:t}else if(Aa(n[t],e))return"?"===t?void 0:t;return e},ya={browser:[[/(ZoomApps)\\/([\\w\\.]+)/i],[Yi,Xi],[/\\b(?:crmo|crios)\\/([\\w\\.]+)/i],[Xi,[Yi,"Chrome"]],[/edg(?:e|ios|a)?\\/([\\w\\.]+)/i],[Xi,[Yi,"Edge"]],[/(opera mini)\\/([-\\w\\.]+)/i,/(opera [mobiletab]{3,6})\\b.+version\\/([-\\w\\.]+)/i,/(opera)(?:.+version\\/|[\\/ ]+)([\\w\\.]+)/i],[Yi,Xi],[/opios[\\/ ]+([\\w\\.]+)/i],[Xi,[Yi,pa+" Mini"]],[/\\bopr\\/([\\w\\.]+)/i],[Xi,[Yi,pa]],[/(kindle)\\/([\\w\\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\\/ ]?([\\w\\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\\/ ]?([\\w\\.]*)/i,/(ba?idubrowser)[\\/ ]?([\\w\\.]+)/i,/(?:ms|\\()(ie) ([\\w\\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\\/([-\\w\\.]+)/i,/(weibo)__([\\d\\.]+)/i],[Yi,Xi],[/(?:\\buc? ?browser|(?:juc.+)ucweb)[\\/ ]?([\\w\\.]+)/i],[Xi,[Yi,"UC"+ca]],[/microm.+\\bqbcore\\/([\\w\\.]+)/i,/\\bqbcore\\/([\\w\\.]+).+microm/i],[Xi,[Yi,"WeChat(Win) Desktop"]],[/micromessenger\\/([\\w\\.]+)/i],[Xi,[Yi,"WeChat"]],[/konqueror\\/([\\w\\.]+)/i],[Xi,[Yi,"Konqueror"]],[/trident.+rv[: ]([\\w\\.]{1,9})\\b.+like gecko/i],[Xi,[Yi,"IE"]],[/yabrowser\\/([\\w\\.]+)/i],[Xi,[Yi,"Yandex"]],[/(avast|avg)\\/([\\w\\.]+)/i],[[Yi,/(.+)/,"$1 Secure "+ca],Xi],[/\\bfocus\\/([\\w\\.]+)/i],[Xi,[Yi,_a+" Focus"]],[/\\bopt\\/([\\w\\.]+)/i],[Xi,[Yi,pa+" Touch"]],[/coc_coc\\w+\\/([\\w\\.]+)/i],[Xi,[Yi,"Coc Coc"]],[/dolfin\\/([\\w\\.]+)/i],[Xi,[Yi,"Dolphin"]],[/coast\\/([\\w\\.]+)/i],[Xi,[Yi,pa+" Coast"]],[/miuibrowser\\/([\\w\\.]+)/i],[Xi,[Yi,"MIUI "+ca]],[/fxios\\/([-\\w\\.]+)/i],[Xi,[Yi,_a]],[/\\bqihu|(qi?ho?o?|360)browser/i],[[Yi,"360 "+ca]],[/(oculus|samsung|sailfish|huawei)browser\\/([\\w\\.]+)/i],[[Yi,/(.+)/,"$1 "+ca],Xi],[/(comodo_dragon)\\/([\\w\\.]+)/i],[[Yi,/_/g," "],Xi],[/(electron)\\/([\\w\\.]+) safari/i,/(tesla)(?: qtcarbrowser|\\/(20\\d\\d\\.[-\\w\\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\\/ ]?([\\w\\.]+)/i],[Yi,Xi],[/(metasr)[\\/ ]?([\\w\\.]+)/i,/(lbbrowser)/i,/\\[(linkedin)app\\]/i],[Yi],[/((?:fban\\/fbios|fb_iab\\/fb4a)(?!.+fbav)|;fbav\\/([\\w\\.]+);)/i],[[Yi,Oa],Xi],[/safari (line)\\/([\\w\\.]+)/i,/\\b(line)\\/([\\w\\.]+)\\/iab/i,/(chromium|instagram)[\\/ ]([-\\w\\.]+)/i],[Yi,Xi],[/\\bgsa\\/([\\w\\.]+) .*safari\\//i],[Xi,[Yi,"GSA"]],[/headlesschrome(?:\\/([\\w\\.]+)| )/i],[Xi,[Yi,la+" Headless"]],[/ wv\\).+(chrome)\\/([\\w\\.]+)/i],[[Yi,la+" WebView"],Xi],[/droid.+ version\\/([\\w\\.]+)\\b.+(?:mobile safari|safari)/i],[Xi,[Yi,"Android "+ca]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\\/v?([\\w\\.]+)/i],[Yi,Xi],[/version\\/([\\w\\.\\,]+) .*mobile\\/\\w+ (safari)/i],[Xi,[Yi,"Mobile Safari"]],[/version\\/([\\w(\\.|\\,)]+) .*(mobile ?safari|safari)/i],[Xi,Yi],[/webkit.+?(mobile ?safari|safari)(\\/[\\w\\.]+)/i],[Yi,[Xi,Na,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\\/([\\w\\.]+)/i],[Yi,Xi],[/(navigator|netscape\\d?)\\/([-\\w\\.]+)/i],[[Yi,"Netscape"],Xi],[/mobile vr; rv:([\\w\\.]+)\\).+firefox/i],[Xi,[Yi,_a+" Reality"]],[/ekiohf.+(flow)\\/([\\w\\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\\/ ]?([\\w\\.\\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\\/([-\\w\\.]+)$/i,/(firefox)\\/([\\w\\.]+)/i,/(mozilla)\\/([\\w\\.]+) .+rv\\:.+gecko\\/\\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\\. ]?browser)[-\\/ ]?v?([\\w\\.]+)/i,/(links) \\(([\\w\\.]+)/i],[Yi,Xi],[/(cobalt)\\/([\\w\\.]+)/i],[Yi,[Xi,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\\)]/i],[[Qi,"amd64"]],[/(ia32(?=;))/i],[[Qi,ma]],[/((?:i[346]|x)86)[;\\)]/i],[[Qi,"ia32"]],[/\\b(aarch64|arm(v?8e?l?|_?64))\\b/i],[[Qi,"arm64"]],[/\\b(arm(?:v[67])?ht?n?[fl]p?)\\b/i],[[Qi,"armhf"]],[/windows (ce|mobile); ppc;/i],[[Qi,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\\))/i],[[Qi,/ower/,"",ma]],[/(sun4\\w)[;\\)]/i],[[Qi,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\\))|\\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\\b|pa-risc)/i],[[Qi,ma]]],device:[[/\\b(sch-i[89]0\\d|shw-m380s|sm-[ptx]\\w{2,4}|gt-[pn]\\d{2,4}|sgh-t8[56]9|nexus 10)/i],[Ki,[qi,Ia],[Zi,ta]],[/\\b((?:s[cgp]h|gt|sm)-\\w+|galaxy nexus)/i,/samsung[- ]([-\\w]+)/i,/sec-(sgh\\w+)/i],[Ki,[qi,Ia],[Zi,na]],[/((ipod|iphone)\\d+,\\d+)/i],[Ki,[qi,aa],[Zi,na]],[/(ipad\\d+,\\d+)/i],[Ki,[qi,aa],[Zi,ta]],[/\\((ip(?:hone|od)[\\w ]*);/i],[Ki,[qi,aa],[Zi,na]],[/\\((ipad);[-\\w\\),; ]+apple/i,/applecoremedia\\/[\\w\\.]+ \\((ipad)/i,/\\b(ipad)\\d\\d?,\\d\\d?[;\\]].+ios/i],[Ki,[qi,aa],[Zi,ta]],[/(macintosh);/i],[Ki,[qi,aa]],[/\\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\\d{2})\\b(?!.+d\\/s)/i],[Ki,[qi,Ea],[Zi,ta]],[/(?:huawei|honor)([-\\w ]+)[;\\)]/i,/\\b(nexus 6p|\\w{2,4}e?-[atu]?[ln][\\dx][012359c][adn]?)\\b(?!.+d\\/s)/i],[Ki,[qi,Ea],[Zi,na]],[/\\b(poco[\\w ]+)(?: bui|\\))/i,/\\b; (\\w+) build\\/hm\\1/i,/\\b(hm[-_ ]?note?[_ ]?(?:\\d\\w)?) bui/i,/\\b(redmi[\\-_ ]?(?:note|k)?[\\w_ ]+)(?: bui|\\))/i,/\\b(mi[-_ ]?(?:a\\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\\d?\\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\\))/i],[[Ki,/_/g," "],[qi,Ta],[Zi,na]],[/\\b(mi[-_ ]?(?:pad)(?:[\\w_ ]+))(?: bui|\\))/i],[[Ki,/_/g," "],[qi,Ta],[Zi,ta]],[/; (\\w+) bui.+ oppo/i,/\\b(cph[12]\\d{3}|p(?:af|c[al]|d\\w|e[ar])[mt]\\d0|x9007|a101op)\\b/i],[Ki,[qi,"OPPO"],[Zi,na]],[/vivo (\\w+)(?: bui|\\))/i,/\\b(v[12]\\d{3}\\w?[at])(?: bui|;)/i],[Ki,[qi,"Vivo"],[Zi,na]],[/\\b(rmx[12]\\d{3})(?: bui|;|\\))/i],[Ki,[qi,"Realme"],[Zi,na]],[/\\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\\b[\\w ]+build\\//i,/\\bmot(?:orola)?[- ](\\w*)/i,/((?:moto[\\w\\(\\) ]+|xt\\d{3,4}|nexus 6)(?= bui|\\)))/i],[Ki,[qi,Sa],[Zi,na]],[/\\b(mz60\\d|xoom[2 ]{0,2}) build\\//i],[Ki,[qi,Sa],[Zi,ta]],[/((?=lg)?[vl]k\\-?\\d{3}) bui| 3\\.[-\\w; ]{10}lg?-([06cv9]{3,4})/i],[Ki,[qi,fa],[Zi,ta]],[/(lm(?:-?f100[nv]?|-[\\w\\.]+)(?= bui|\\))|nexus [45])/i,/\\blg[-e;\\/ ]+((?!browser|netcast|android tv)\\w+)/i,/\\blg-?([\\d\\w]+) bui/i],[Ki,[qi,fa],[Zi,na]],[/(ideatab[-\\w ]+)/i,/lenovo ?(s[56]000[-\\w]+|tab(?:[\\w ]+)|yt[-\\d\\w]{6}|tb[-\\d\\w]{6})/i],[Ki,[qi,"Lenovo"],[Zi,ta]],[/(?:maemo|nokia).*(n900|lumia \\d+)/i,/nokia[-_ ]?([-\\w\\.]*)/i],[[Ki,/_/g," "],[qi,"Nokia"],[Zi,na]],[/(pixel c)\\b/i],[Ki,[qi,da],[Zi,ta]],[/droid.+; (pixel[\\daxl ]{0,6})(?: bui|\\))/i],[Ki,[qi,da],[Zi,na]],[/droid.+ (a?\\d[0-2]{2}so|[c-g]\\d{4}|so[-gl]\\w+|xq-a\\w[4-7][12])(?= bui|\\).+chrome\\/(?![1-6]{0,1}\\d\\.))/i],[Ki,[qi,Ca],[Zi,na]],[/sony tablet [ps]/i,/\\b(?:sony)?sgp\\w+(?: bui|\\))/i],[[Ki,"Xperia Tablet"],[qi,Ca],[Zi,ta]],[/ (kb2005|in20[12]5|be20[12][59])\\b/i,/(?:one)?(?:plus)? (a\\d0\\d\\d)(?: b|\\))/i],[Ki,[qi,"OnePlus"],[Zi,na]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\\))/i,/(kf[a-z]+)( bui|\\)).+silk\\//i],[Ki,[qi,ia],[Zi,ta]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\\)).+silk\\//i],[[Ki,/(.+)/g,"Fire Phone $1"],[qi,ia],[Zi,na]],[/(playbook);[-\\w\\),; ]+(rim)/i],[Ki,qi,[Zi,ta]],[/\\b((?:bb[a-f]|st[hv])100-\\d)/i,/\\(bb10; (\\w+)/i],[Ki,[qi,ua],[Zi,na]],[/(?:\\b|asus_)(transfo[prime ]{4,10} \\w+|eeepc|slider \\w+|nexus 7|padfone|p00[cj])/i],[Ki,[qi,sa],[Zi,ta]],[/ (z[bes]6[027][012][km][ls]|zenfone \\d\\w?)\\b/i],[Ki,[qi,sa],[Zi,na]],[/(nexus 9)/i],[Ki,[qi,"HTC"],[Zi,ta]],[/(htc)[-;_ ]{1,2}([\\w ]+(?=\\)| bui)|\\w+)/i,/(zte)[- ]([\\w ]+?)(?: bui|\\/|\\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\\w]*)/i],[qi,[Ki,/_/g," "],[Zi,na]],[/droid.+; ([ab][1-7]-?[0178a]\\d\\d?)/i],[Ki,[qi,"Acer"],[Zi,ta]],[/droid.+; (m[1-5] note) bui/i,/\\bmz-([-\\w]{2,})/i],[Ki,[qi,"Meizu"],[Zi,na]],[/\\b(sh-?[altvz]?\\d\\d[a-ekm]?)/i],[Ki,[qi,Ra],[Zi,na]],[/(blackberry|benq|palm(?=\\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\\w]*)/i,/(hp) ([\\w ]+\\w)/i,/(asus)-?(\\w+)/i,/(microsoft); (lumia[\\w ]+)/i,/(lenovo)[-_ ]?([-\\w]+)/i,/(jolla)/i,/(oppo) ?([\\w ]+) bui/i],[qi,Ki,[Zi,na]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\\/([\\w\\.]+)/i,/(nook)[\\w ]+build\\/(\\w+)/i,/(dell) (strea[kpr\\d ]*[\\dko])/i,/(le[- ]+pan)[- ]+(\\w{1,9}) bui/i,/(trinity)[- ]*(t\\d{3}) bui/i,/(gigaset)[- ]+(q\\w{1,9}) bui/i,/(vodafone) ([\\w ]+)(?:\\)| bui)/i],[qi,Ki,[Zi,ta]],[/(surface duo)/i],[Ki,[qi,ga],[Zi,ta]],[/droid [\\d\\.]+; (fp\\du?)(?: b|\\))/i],[Ki,[qi,"Fairphone"],[Zi,na]],[/(u304aa)/i],[Ki,[qi,"AT&T"],[Zi,na]],[/\\bsie-(\\w*)/i],[Ki,[qi,"Siemens"],[Zi,na]],[/\\b(rct\\w+) b/i],[Ki,[qi,"RCA"],[Zi,ta]],[/\\b(venue[\\d ]{2,7}) b/i],[Ki,[qi,"Dell"],[Zi,ta]],[/\\b(q(?:mv|ta)\\w+) b/i],[Ki,[qi,"Verizon"],[Zi,ta]],[/\\b(?:barnes[& ]+noble |bn[rt])([\\w\\+ ]*) b/i],[Ki,[qi,"Barnes & Noble"],[Zi,ta]],[/\\b(tm\\d{3}\\w+) b/i],[Ki,[qi,"NuVision"],[Zi,ta]],[/\\b(k88) b/i],[Ki,[qi,"ZTE"],[Zi,ta]],[/\\b(nx\\d{3}j) b/i],[Ki,[qi,"ZTE"],[Zi,na]],[/\\b(gen\\d{3}) b.+49h/i],[Ki,[qi,"Swiss"],[Zi,na]],[/\\b(zur\\d{3}) b/i],[Ki,[qi,"Swiss"],[Zi,ta]],[/\\b((zeki)?tb.*\\b) b/i],[Ki,[qi,"Zeki"],[Zi,ta]],[/\\b([yr]\\d{2}) b/i,/\\b(dragon[- ]+touch |dt)(\\w{5}) b/i],[[qi,"Dragon Touch"],Ki,[Zi,ta]],[/\\b(ns-?\\w{0,9}) b/i],[Ki,[qi,"Insignia"],[Zi,ta]],[/\\b((nxa|next)-?\\w{0,9}) b/i],[Ki,[qi,"NextBook"],[Zi,ta]],[/\\b(xtreme\\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[qi,"Voice"],Ki,[Zi,na]],[/\\b(lvtel\\-)?(v1[12]) b/i],[[qi,"LvTel"],Ki,[Zi,na]],[/\\b(ph-1) /i],[Ki,[qi,"Essential"],[Zi,na]],[/\\b(v(100md|700na|7011|917g).*\\b) b/i],[Ki,[qi,"Envizen"],[Zi,ta]],[/\\b(trio[-\\w\\. ]+) b/i],[Ki,[qi,"MachSpeed"],[Zi,ta]],[/\\btu_(1491) b/i],[Ki,[qi,"Rotor"],[Zi,ta]],[/(shield[\\w ]+) b/i],[Ki,[qi,"Nvidia"],[Zi,ta]],[/(sprint) (\\w+)/i],[qi,Ki,[Zi,na]],[/(kin\\.[onetw]{3})/i],[[Ki,/\\./g," "],[qi,ga],[Zi,na]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\\)/i],[Ki,[qi,ha],[Zi,ta]],[/droid.+; (ec30|ps20|tc[2-8]\\d[kx])\\)/i],[Ki,[qi,ha],[Zi,na]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[qi,Ki,[Zi,ea]],[/droid.+; (shield) bui/i],[Ki,[qi,"Nvidia"],[Zi,ea]],[/(playstation [345portablevi]+)/i],[Ki,[qi,Ca],[Zi,ea]],[/\\b(xbox(?: one)?(?!; xbox))[\\); ]/i],[Ki,[qi,ga],[Zi,ea]],[/smart-tv.+(samsung)/i],[qi,[Zi,ra]],[/hbbtv.+maple;(\\d+)/i],[[Ki,/^/,"SmartTV"],[qi,Ia],[Zi,ra]],[/(nux; netcast.+smarttv|lg (netcast\\.tv-201\\d|android tv))/i],[[qi,fa],[Zi,ra]],[/(apple) ?tv/i],[qi,[Ki,aa+" TV"],[Zi,ra]],[/crkey/i],[[Ki,la+"cast"],[qi,da],[Zi,ra]],[/droid.+aft(\\w)( bui|\\))/i],[Ki,[qi,ia],[Zi,ra]],[/\\(dtv[\\);].+(aquos)/i,/(aquos-tv[\\w ]+)\\)/i],[Ki,[qi,Ra],[Zi,ra]],[/(bravia[\\w ]+)( bui|\\))/i],[Ki,[qi,Ca],[Zi,ra]],[/(mitv-\\w{5}) bui/i],[Ki,[qi,Ta],[Zi,ra]],[/\\b(roku)[\\dx]*[\\)\\/]((?:dvp-)?[\\d\\.]*)/i,/hbbtv\\/\\d+\\.\\d+\\.\\d+ +\\([\\w ]*; *(\\w[^;]*);([^;]*)/i],[[qi,Da],[Ki,Da],[Zi,ra]],[/\\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\\b/i],[[Zi,ra]],[/((pebble))app/i],[qi,Ki,[Zi,oa]],[/droid.+; (glass) \\d/i],[Ki,[qi,da],[Zi,oa]],[/droid.+; (wt63?0{2,3})\\)/i],[Ki,[qi,ha],[Zi,oa]],[/(quest( 2)?)/i],[Ki,[qi,Oa],[Zi,oa]],[/(tesla)(?: qtcarbrowser|\\/[-\\w\\.]+)/i],[qi,[Zi,"embedded"]],[/droid .+?; ([^;]+?)(?: bui|\\) applew).+? mobile safari/i],[Ki,[Zi,na]],[/droid .+?; ([^;]+?)(?: bui|\\) applew).+?(?! mobile) safari/i],[Ki,[Zi,ta]],[/\\b((tablet|tab)[;\\/]|focus\\/\\d(?!.+mobile))/i],[[Zi,ta]],[/(phone|mobile(?:[;\\/]| [ \\w\\/\\.]*safari)|pda(?=.+windows ce))/i],[[Zi,na]],[/(android[-\\w\\. ]{0,9});.+buil/i],[Ki,[qi,"Generic"]]],engine:[[/windows.+ edge\\/([\\w\\.]+)/i],[Xi,[Yi,"EdgeHTML"]],[/webkit\\/537\\.36.+chrome\\/(?!27)([\\w\\.]+)/i],[Xi,[Yi,"Blink"]],[/(presto)\\/([\\w\\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\\/([\\w\\.]+)/i,/ekioh(flow)\\/([\\w\\.]+)/i,/(khtml|tasman|links)[\\/ ]\\(?([\\w\\.]+)/i,/(icab)[\\/ ]([23]\\.[\\d\\.]+)/i],[Yi,Xi],[/rv\\:([\\w\\.]{1,9})\\b.+(gecko)/i],[Xi,Yi]],os:[[/microsoft (windows) (vista|xp)/i],[Yi,Xi],[/(windows) nt 6\\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\\/ ]?([\\d\\.\\w ]*)/i,/(windows)[\\/ ]?([ntce\\d\\. ]+\\w)(?!.+xbox)/i],[Yi,[Xi,Na,va]],[/(win(?=3|9|n)|win 9x )([nt\\d\\.]+)/i],[[Yi,"Windows"],[Xi,Na,va]],[/ip[honead]{2,4}\\b(?:.*os ([\\w]+) like mac|; opera)/i,/cfnetwork\\/.+darwin/i],[[Xi,/_/g,"."],[Yi,"iOS"]],[/(mac os x) ?([\\w\\. ]*)/i,/(macintosh|mac_powerpc\\b)(?!.+haiku)/i],[[Yi,"Mac OS"],[Xi,/_/g,"."]],[/droid ([\\w\\.]+)\\b.+(android[- ]x86|harmonyos)/i],[Xi,Yi],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\\/ ]?([\\w\\.]*)/i,/(blackberry)\\w*\\/([\\w\\.]*)/i,/(tizen|kaios)[\\/ ]([\\w\\.]+)/i,/\\((series40);/i],[Yi,Xi],[/\\(bb(10);/i],[Xi,[Yi,ua]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\\/ ]?([\\w\\.]*)/i],[Xi,[Yi,"Symbian"]],[/mozilla\\/[\\d\\.]+ \\((?:mobile|tablet|tv|mobile; [\\w ]+); rv:.+ gecko\\/([\\w\\.]+)/i],[Xi,[Yi,_a+" OS"]],[/web0s;.+rt(tv)/i,/\\b(?:hp)?wos(?:browser)?\\/([\\w\\.]+)/i],[Xi,[Yi,"webOS"]],[/crkey\\/([\\d\\.]+)/i],[Xi,[Yi,la+"cast"]],[/(cros) [\\w]+ ([\\w\\.]+\\w)/i],[[Yi,"Chromium OS"],Xi],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\\);]+)/i,/\\b(joli|palm)\\b ?(?:os)?\\/?([\\w\\.]*)/i,/(mint)[\\/\\(\\) ]?(\\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\\/ ]?(?!chrom|package)([-\\w\\.]*)/i,/(hurd|linux) ?([\\w\\.]*)/i,/(gnu) ?([\\w\\.]*)/i,/\\b([-frentopcghs]{0,5}bsd|dragonfly)[\\/ ]?(?!amd|[ix346]{1,2}86)([\\w\\.]*)/i,/(haiku) (\\w+)/i],[Yi,Xi],[/(sunos) ?([\\w\\.\\d]*)/i],[[Yi,"Solaris"],Xi],[/((?:open)?solaris)[-\\/ ]?([\\w\\.]*)/i,/(aix) ((\\d)(?=\\.|\\)| )[\\w\\.])*/i,/\\b(beos|os\\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\\w\\.]*)/i],[Yi,Xi]]},ba=function(){function e(n){var t;_classCallCheck(this,e),this.ua=(null===(t=window.navigator)||void 0===t?void 0:t.userAgent)||"",this.navigator=(null===window||void 0===window?void 0:window.navigator)||{},n&&(this.ua=n),this.regexes=ya}return _createClass(e,[{key:"rgxMapper",value:function(e,n){for(var t={},r=0,o=0,i=0,a=0,s=void 0,u=void 0,c=void 0;r<n.length&&!u;){var l=n[r],_=n[r+1];for(o=i=0;o<l.length&&!u;)if(u=l[o++].exec(e))for(a=0;a<_.length;a++)c=u[++i],_typeof(s=_[a])===ji&&s.length>0?2===s.length?_typeof(s[1])==Ji?t[s[0]]=s[1](c):t[s[0]]=s[1]:3===s.length?_typeof(s[1])!==Ji||s[1].exec&&s[1].test?t[s[0]]=c?c.replace(s[1],s[2]):void 0:t[s[0]]=c?s[1](c,s[2]):void 0:4===s.length&&(t[s[0]]=c?s[3](c.replace(s[1],s[2])):void 0):t[s]=c||void 0;r+=2}return t}},{key:"getBrowser",value:function(){var e={};e[Yi]=void 0,e[Xi]=void 0;var n,t=this.rgxMapper(this.ua,this.regexes.browser);return e.major=_typeof(n=t.version)===zi?n.replace(/[^\\d\\.]/g,"").split(".")[0]:void 0,Object.assign(e,t),e}},{key:"getCPU",value:function(){var e={};e[Qi]=void 0,e[$i]=this.navigator[$i];var n=this.rgxMapper(this.ua,this.regexes.cpu);return Object.assign(e,n),e}},{key:"getDevice",value:function(){var e={};e[qi]=void 0,e[Ki]=void 0,e[Zi]=void 0;var n=this.rgxMapper(this.ua,this.regexes.device);return Object.assign(e,n),e}},{key:"getEngine",value:function(){var e={};e[Yi]=void 0,e[Xi]=void 0;var n=this.rgxMapper(this.ua,this.regexes.engine);return Object.assign(e,n),e}},{key:"getOS",value:function(){var e={};e[Yi]=void 0,e[Xi]=void 0;var n=this.rgxMapper(this.ua,this.regexes.os);return Object.assign(e,n),e}},{key:"getUA",value:function(){return this.ua}},{key:"setUA",value:function(e){var n=_typeof(e)===zi&&e.length>350?Da(e,350):e;this.ua=n}},{key:"getResult",value:function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}}}]),e}(),Pa=new(function(){function e(){_classCallCheck(this,e),window.ZCB_ZmCobrowseInfo={session:{userId:"",sessionId:"",participantType:"",agentSdkTrackingId:"",region:""},isCobrowseLocked:!1}}return _createClass(e,[{key:"getSession",value:function(){var e;return null===(e=window.ZCB_ZmCobrowseInfo)||void 0===e?void 0:e.session}},{key:"getCobrowse",value:function(){return window.ZCB_ZmCobrowseInfo}},{key:"setSessionId",value:function(e){window.ZCB_ZmCobrowseInfo.session.sessionId=e}},{key:"setAgentSdkTrackingId",value:function(e){window.ZCB_ZmCobrowseInfo.session.agentSdkTrackingId=e}},{key:"setUserId",value:function(e){window.ZCB_ZmCobrowseInfo.session.userId=e}},{key:"setParticipantType",value:function(e){window.ZCB_ZmCobrowseInfo.session.participantType=e}},{key:"setIsCobrowseLocked",value:function(e){window.ZCB_ZmCobrowseInfo.isCobrowseLocked=e}},{key:"setSession",value:function(e){Object.assign(window.ZCB_ZmCobrowseInfo.session,e)}},{key:"setRegion",value:function(e){window.ZCB_ZmCobrowseInfo.session.region=e}},{key:"clearRegion",value:function(){window.ZCB_ZmCobrowseInfo.session.region=""}},{key:"clearSession",value:function(){window.ZCB_ZmCobrowseInfo.session={userId:"",sessionId:"",participantType:"",agentSdkTrackingId:"",region:""},window.ZCB_ZmCobrowseInfo.isCobrowseLocked=!1}}]),e}()),wa={log:new Gi(30),info:new Gi(30),debug:new Gi(30),warn:new Gi(30),error:new Gi(30)},La=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];try{return(null==e?void 0:e.some((function(e){return"NO-TRACKING"===e})))?"0000":yi.getZmTrackingId()}catch(e){return console.error("error: ".concat(e)),yi.getZmTrackingId()}},Ma=function(e,n,t){return["%c ".concat(e," %c ").concat(n," %c"),"background:".concat(t,";border:1px solid ").concat(t,"; padding: 1px; border-radius: 2px 0 0 2px; color: #fff;"),"border:1px solid ".concat(t,"; padding: 1px; border-radius: 0 2px 2px 0; color: ").concat(t,";"),"background:transparent"]},Fa=function(){return r(void 0,void 0,void 0,_regeneratorRuntime().mark((function e(){var n;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(void 0,void 0,void 0,_regeneratorRuntime().mark((function e(){var n,t,r,o,i,a,s,u,c,l,_;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=window.navigator,c=(new ba).getResult(),u){e.next=4;break}return e.abrupt("return",{});case 4:if(l=Object.assign({appCodeName:u.appCodeName,appName:u.appName,appVersion:u.appVersion,language:u.language,connection:{downlink:null===(n=u.connection)||void 0===n?void 0:n.downlink,downlinkMax:null===(t=u.connection)||void 0===t?void 0:t.downlinkMax,effectiveType:null===(r=u.connection)||void 0===r?void 0:r.effectiveType,rtt:null===(o=u.connection)||void 0===o?void 0:o.rtt,saveData:null===(i=u.connection)||void 0===i?void 0:i.saveData,type:null===(a=u.connection)||void 0===a?void 0:a.type},href:window.location.host},c),!(null===(s=u.userAgentData)||void 0===s?void 0:s.getHighEntropyValues)){e.next=19;break}return e.prev=6,e.next=9,u.userAgentData.getHighEntropyValues(["architecture","bitness","fullVersionList","platformVersion","wow64","model","formFactor"]);case 9:_=e.sent,l.os&&(l.os.version=_.platformVersion),l.cpu&&(l.cpu.architecture=_.architecture,l.cpu.bitness=_.bitness),l.mobile=_.mobile,l.userAgentData=JSON.stringify(_),e.next=19;break;case 16:e.prev=16,e.t0=e.catch(6),console.log("get userAgentData error",e.t0);case 19:return e.abrupt("return",l);case 20:case"end":return e.stop()}}),e,null,[[6,16]])})));case 2:n=e.sent,Ua(["navigator"]).logWithReport(JSON.stringify(n));case 4:case"end":return e.stop()}}),e)})))},ka=function(e,n){var t=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null,o=0;return function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];var u=Date.now();o||!1!==t.leading||(o=u);var c=n-(u-o),l=this;c<=0||c>n?(r&&(clearTimeout(r),r=null),o=u,e.apply(l,a)):r||!1===t.trailing||(r=setTimeout((function(){o=!1===t.leading?0:Date.now(),r=null,e.apply(l,a)}),c))}}(e,n,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),r=null,o=null,i=null;return function(){for(var e=arguments.length,a=new Array(e),s=0;s<e;s++)a[s]=arguments[s];r=a,o=this,i||(i=setTimeout((function(){r&&(t.apply(o,r),r=null,i=null)}),n)),t.apply(this,a)}}((function(){Te()&&li.reportByFilter(["ZCB-CLIENT"])}),1e4);function xa(e,n){var t,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.log,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return r(this,void 0,void 0,_regeneratorRuntime().mark((function r(){var o,s,u,c,l,_,d,E,f;return _regeneratorRuntime().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=Pa.getSession(),s=o.userId,u=o.sessionId,c=o.participantType,l=o.region,_=o.agentSdkTrackingId,d=Hn.getCoBrowsingConfig("appKey"),E={uuid:s,appKey:"{E}".concat(d,"{/E}"),sessionId:u,participantType:c,region:l},_&&(E.agentSdkTrackingId=_),r.next=6,li.log(e,n,i,Object.assign({host:null!==(t=null===location||void 0===location?void 0:location.host)&&void 0!==t?t:"",zmDeviceId:window.ZCB_ZmDeviceId,sdkVersion:Ht(),info:E},a));case 6:return f=r.sent,ka(),r.abrupt("return",f);case 9:case"end":return r.stop()}}),r)})))}var Ba,Ua=function(e){var n=_toConsumableArray(Di(["ZCB-CLIENT"],e||[]));return{log:function(e,t){return function(e,n,t){var r,i;if(null!==(i=null===(r=null==Re?void 0:Re.logLevel)||void 0===r?void 0:r.log)&&void 0!==i&&i&&Ai(li)){var a=La(t),s=Di([a],n||[]),u=Di(s,t||[]),c=mi("".concat(a).concat(e));if(!wa.log.has(c))return wa.log.set(c,!0),xa(e,u,o.log)}}(e,n,t)},logWithReport:function(e,t){return function(e,n,t){var r,i,a;if(null!==(i=null===(r=null==Re?void 0:Re.logLevel)||void 0===r?void 0:r.log)&&void 0!==i&&i&&Ai(li)&&Te()){var s=La(t),u=Di([s],n||[]),c=Di(u,t||[]),l=mi("".concat(s).concat(e));if(!wa.log.has(l)){wa.log.set(l,!0);var _=Pa.getSession(),d=_.userId,E=_.sessionId,f=_.participantType,g=_.region,S=_.agentSdkTrackingId,p=Hn.getCoBrowsingConfig("appKey"),I={uuid:d,appKey:"{E}".concat(p,"{/E}"),sessionId:E,participantType:f,region:g};return S&&(I.agentSdkTrackingId=S),li.directReport({message:e,host:null!==(a=null===location||void 0===location?void 0:location.host)&&void 0!==a?a:"",zmDeviceId:window.ZCB_ZmDeviceId,sdkVersion:Ht(),info:I},{tags:c,logLevel:o.log})}}}(e,n,t)},info:function(e,t){return function(e,n,t){var r,i;if(null!==(i=null===(r=null==Re?void 0:Re.logLevel)||void 0===r?void 0:r.info)&&void 0!==i&&i&&Ai(li)){var a=La(t),s=Di([a],n||[]),u=Di(s,t||[]),c=mi("".concat(a).concat(e));if(!wa.info.has(c))return wa.info.set(c,!0),xa(e,u,o.info)}}(e,n,t)},debug:function(e,t){return function(e,n,t){var r,i;if(null!==(i=null===(r=null==Re?void 0:Re.logLevel)||void 0===r?void 0:r.debug)&&void 0!==i&&i&&Ai(li)){var a=La(t),s=Di([a],n||[]),u=Di(s,t||[]),c=mi("".concat(a).concat(e));if(!wa.debug.has(c))return wa.debug.set(c,!0),xa(e,u,o.debug)}}(e,n,t)},error:function(e,t){return function(e,n,t){var r,i;if((r=console).error.apply(r,_toConsumableArray(Ma("laplace-error",e,"#F56C6C"))),(null===(i=null==Re?void 0:Re.logLevel)||void 0===i?void 0:i.error)&&Ai(li)){var a=La(t),s=Di([a],n||[]),u=Di(s,t||[]),c=mi("".concat(a).concat(e));if(!wa.error.has(c))return wa.error.set(c,!0),xa(e,u,o.error)}}(e,n,t)},warn:function(e,t){return function(e,n,t){var r,i,a;if((r=console).warn.apply(r,_toConsumableArray(Ma("laplace-warn",e,"#E6A23C"))),null!==(a=null===(i=null==Re?void 0:Re.logLevel)||void 0===i?void 0:i.warn)&&void 0!==a&&a&&Ai(li)){var s=La(t),u=Di([s],n||[]),c=Di(u,t||[]),l=mi("".concat(s).concat(e));if(!wa.warn.has(l))return wa.warn.set(l,!0),xa(e,c,o.warn)}}(e,n,t)},print:function(e){return function(e){var n,t;null!==(t=null===(n=null==Re?void 0:Re.logLevel)||void 0===n?void 0:n.print)&&void 0!==t&&t&&console.log(e)}(e)},performance:function(e,t){return function(e,n,t){var r,i;if(null!==(i=null===(r=null==Re?void 0:Re.logLevel)||void 0===r?void 0:r.log)&&void 0!==i&&i&&Ai(li)){var a=La(t),s=Di([a],n||[]);return xa(e,Di(s,t||[]),o.log)}}(e,n,t)},performanceRange:function(e,t,r){return function(e,n,t,r){var i,a;if(null!==(a=null===(i=null==Re?void 0:Re.logLevel)||void 0===i?void 0:i.log)&&void 0!==a&&a&&Ai(li)){var s=La(r),u=Di([s],t||[]);return xa(e,Di(u,r||[]),o.log,n)}}(e,t,n,r)},log_2:function(e,t){return function(e,n,t){var r,i;if(null!==(i=null===(r=null==Re?void 0:Re.logLevel)||void 0===r?void 0:r.log)&&void 0!==i&&i&&Ai(li)){var a=JSON.stringify(e),s=La(t),u=Di([s],n||[]);return xa(a,Di(u,t||[]),o.log)}}(e,n,t)},reportNavigator:function(){Fa()},setReportUrl:function(e){!function(e){if(Ce.setDynamicReportUrl(e),li&&"function"==typeof li.setReportUrl){var n=li.reportUrl;li.setReportUrl(e),Te()&&e!==n&&li.reportByFilter(["ZCB-CLIENT"])}}(e)},setLaplaceEnabled:function(e){var n;n=e,Ce.setDynamicLaplaceEnabled(n)}}};Ua(["performance-log"]),function(e){e[e.ClientInit=1]="ClientInit",e[e.ClientInitFinished=2]="ClientInitFinished",e[e.CreateSessionStart=3]="CreateSessionStart",e[e.CreateSessionEnd=4]="CreateSessionEnd",e[e.PinCodeRequest=5]="PinCodeRequest",e[e.PinCodeUpdated=6]="PinCodeUpdated",e[e.PingEndpointListDone=7]="PingEndpointListDone",e[e.initWS=8]="initWS",e[e.WSConnected2Channel=9]="WSConnected2Channel",e[e.WSConnectedSuccess=10]="WSConnectedSuccess",e[e.SessionStart=11]="SessionStart",e[e.SessionStarted=12]="SessionStarted",e[e.SessionStartFinish=13]="SessionStartFinish",e[e.StartChannel=14]="StartChannel",e[e.UserRoster=15]="UserRoster",e[e.LeaderJoined=16]="LeaderJoined",e[e.FollowerJoined=17]="FollowerJoined",e[e.CallSessionInit=18]="CallSessionInit",e[e.AfterJoined=19]="AfterJoined",e[e.SessionDestroy=20]="SessionDestroy",e[e.AgentReconnectingInAgentSide=21]="AgentReconnectingInAgentSide",e[e.CustomerDisconnectedInAgentSide=22]="CustomerDisconnectedInAgentSide",e[e.CustomerTimeoutInAgentSide=23]="CustomerTimeoutInAgentSide",e[e.AgentReconnectingSuccessInAgentSide=24]="AgentReconnectingSuccessInAgentSide",e[e.CustomerReconnectingSuccessInAgentSide=25]="CustomerReconnectingSuccessInAgentSide",e[e.AgentJoinedInAgentSide=26]="AgentJoinedInAgentSide",e[e.CustomerJoinedInAgentSide=27]="CustomerJoinedInAgentSide",e[e.StartReplayInAgentSide=28]="StartReplayInAgentSide",e[e.CustomerReconnectingInCustomerSide=29]="CustomerReconnectingInCustomerSide",e[e.AgentDisconnectedInCustomerSide=30]="AgentDisconnectedInCustomerSide",e[e.AgentTimeoutInCustomerSide=31]="AgentTimeoutInCustomerSide",e[e.CustomerReconnectingSuccessInCustomerSide=32]="CustomerReconnectingSuccessInCustomerSide",e[e.AgentReconnectingSuccessInCustomerSide=33]="AgentReconnectingSuccessInCustomerSide"}(Ba||(Ba={}));var Va,Wa={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Wa,Ba.ClientInit,"ClientInit"),Ba.ClientInitFinished,"ClientInitFinished"),Ba.CreateSessionStart,"CreateSessionStart"),Ba.CreateSessionEnd,"CreateSessionEnd"),Ba.PinCodeRequest,"PinCodeRequest"),Ba.PinCodeUpdated,"PinCodeUpdated"),Ba.PingEndpointListDone,"PingEndpointListDone"),Ba.initWS,"initWS"),Ba.WSConnected2Channel,"WSConnected2Channel"),Ba.WSConnectedSuccess,"WSConnectedSuccess"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Wa,Ba.SessionStart,"SessionStart"),Ba.SessionStarted,"SessionStarted"),Ba.SessionStartFinish,"SessionStartFinish"),Ba.StartChannel,"StartChannel"),Ba.UserRoster,"UserRoster"),Ba.LeaderJoined,"LeaderJoined"),Ba.FollowerJoined,"FollowerJoined"),Ba.CallSessionInit,"CallSessionInit"),Ba.AfterJoined,"AfterJoined"),Ba.SessionDestroy,"SessionDestroy"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Wa,Ba.AgentReconnectingInAgentSide,"AgentReconnectingInAgentSide"),Ba.CustomerDisconnectedInAgentSide,"CustomerDisconnectedInAgentSide"),Ba.CustomerTimeoutInAgentSide,"CustomerTimeoutInAgentSide"),Ba.AgentReconnectingSuccessInAgentSide,"AgentReconnectingSuccessInAgentSide"),Ba.CustomerReconnectingSuccessInAgentSide,"CustomerReconnectingSuccessInAgentSide"),Ba.AgentJoinedInAgentSide,"AgentJoinedInAgentSide"),Ba.CustomerJoinedInAgentSide,"CustomerJoinedInAgentSide"),Ba.StartReplayInAgentSide,"StartReplayInAgentSide"),Ba.CustomerReconnectingInCustomerSide,"CustomerReconnectingInCustomerSide"),Ba.AgentDisconnectedInCustomerSide,"AgentDisconnectedInCustomerSide"),_defineProperty(_defineProperty(_defineProperty(Wa,Ba.AgentTimeoutInCustomerSide,"AgentTimeoutInCustomerSide"),Ba.CustomerReconnectingSuccessInCustomerSide,"CustomerReconnectingSuccessInCustomerSide"),Ba.AgentReconnectingSuccessInCustomerSide,"AgentReconnectingSuccessInCustomerSide"),function(e){e[e.IMAGE=0]="IMAGE",e[e.FONT=1]="FONT"}(Va||(Va={})),Ua(["cbs-connection"]);var Ha,Ga=[wt.Input,Lt.Annotation,Lt.FullSnapshot],Ja=function(){function e(n){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.8;_classCallCheck(this,e),this.logger=n,this.sample=r,this.cpuState="",this.localMachineTimeDelta=new Map,this.sessionInfo={sessionId:void 0,sessionRegion:void 0,startUrl:void 0},this.incrementalSourceCountMap=new Map,this.eventCacheListMap=new Map,this.handlePostMessage=function(e){var n=e.data.eventType,r=e.data.data;switch(n){case"SESSION_INFO":t.setSessionInfo(r);break;case"NTP":case hr.NTP:void 0!==r.delta&&t.setLocalMathineTimeDelta(r);break;case hr.END_ROOM:case hr.LEAVE_ROOM:t.destroy()}},this.setLocalMathineTimeDelta=function(e){var n=e.sessionId||e.cId||"";n&&(t.localMachineTimeDelta.set(n,e.delta),e.sessionId&&t.batch(e.sessionId),e.cId&&t.batch(e.cId))},this.setSessionInfo=function(e){t.sessionInfo=e;try{var n=new URL(e.startUrl||"");t.sessionInfo.startUrl=n.origin}catch(e){console.log(e)}},this.log=function(e){var n,r,o=t.sessionInfo.sessionId||"",i=e.cId,a=e.event_source,s=i||o;if((a===Lt.FullSnapshot||i)&&Ga.includes(a)){if(i&&(t.incrementalSourceCountMap.has(i)||(t.incrementalSourceCountMap.set(i,new Map),t.incrementalSourceCountMap.get(i).set(a,0)),!e.source_count)){var u=t.incrementalSourceCountMap.get(i).get(a);if(t.incrementalSourceCountMap.get(i).set(a,u+1),0!==u&&Math.random()>t.sample)return;e.source_count=t.incrementalSourceCountMap.get(i).get(a)}e.cpu_state=t.cpuState;var c=t.localMachineTimeDelta.has(o)?t.localMachineTimeDelta.get(o):t.localMachineTimeDelta.get(i);if(void 0===c)return t.eventCacheListMap.has(s)||t.eventCacheListMap.set(s,[]),void t.eventCacheListMap.get(s).push(e);var l=e.detime-(e.ptime-c),_=Object.assign(Object.assign({},e),{rtt:l,session_id:t.sessionInfo.sessionId,session_region:t.sessionInfo.sessionRegion,start_url:t.sessionInfo.startUrl,sdk_version:Hn.getCoBrowsingConfig("sdkVersion")});null===(r=null===(n=t.logger)||void 0===n?void 0:n.log_2)||void 0===r||r.call(n,_)}},this.observePressure(),this.addEventListener()}return _createClass(e,[{key:"addEventListener",value:function(){window.addEventListener("message",this.handlePostMessage)}},{key:"observePressure",value:function(){var e,n=this;try{if("PressureObserver"in window&&window.location.origin===(null===(e=window.top)||void 0===e?void 0:e.location.origin))new window.PressureObserver((function(e){n.cpuState=e[e.length-1].state})).observe("cpu",{sampleInterval:1e3}).catch((function(){console.log("")}));else this.cpuState=""}catch(e){}}},{key:"batchLog",value:function(e){var n=this;(this.eventCacheListMap.get(e)||[]).forEach((function(e){n.log(e)}))}},{key:"batch",value:function(e){if(e)this.batchLog(e);else{var n,t=_createForOfIteratorHelper(this.eventCacheListMap);try{for(t.s();!(n=t.n()).done;){var r=_slicedToArray(n.value,1)[0];this.batchLog(r)}}catch(e){t.e(e)}finally{t.f()}}}},{key:"delete",value:function(e){this.localMachineTimeDelta.delete(e),this.incrementalSourceCountMap.delete(e),this.eventCacheListMap.delete(e)}},{key:"destroy",value:function(){this.localMachineTimeDelta.clear(),this.incrementalSourceCountMap.clear(),this.eventCacheListMap.clear(),this.sessionInfo={sessionId:void 0,sessionRegion:void 0,startUrl:void 0}}}]),e}();function ja(){}function za(){za.init.call(this)}function Ka(e){return void 0===e._maxListeners?za.defaultMaxListeners:e._maxListeners}function Ya(e,n,t,r){var o,i,a,s;if("function"!=typeof t)throw new TypeError(\'"listener" argument must be a function\');if((i=e._events)?(i.newListener&&(e.emit("newListener",n,t.listener?t.listener:t),i=e._events),a=i[n]):(i=e._events=new ja,e._eventsCount=0),a){if("function"==typeof a?a=i[n]=r?[t,a]:[a,t]:r?a.unshift(t):a.push(t),!a.warned&&(o=Ka(e))&&o>0&&a.length>o){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+n+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=n,u.count=a.length,s=u,"function"==typeof console.warn?console.warn(s):console.log(s)}}else a=i[n]=t,++e._eventsCount;return e}function Za(e,n,t){var r=!1;function o(){e.removeListener(n,o),r||(r=!0,t.apply(e,arguments))}return o.listener=t,o}function qa(e){var n=this._events;if(n){var t=n[e];if("function"==typeof t)return 1;if(t)return t.length}return 0}function Xa(e,n){for(var t=new Array(n);n--;)t[n]=e[n];return t}function Qa(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e})).join("")}function $a(e){return encodeURIComponent(e).replace(/[!\'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function es(e,n,t){return n="+"===e||"#"===e?Qa(n):$a(n),t?$a(t)+"="+n:n}function ns(e){return null!=e}function ts(e){return";"===e||"&"===e||"?"===e}function rs(e){var n=["+","#",".","/",";","?","&"];return{expand:function(t){return e.replace(/\\{([^\\{\\}]+)\\}|([^\\{\\}]+)/g,(function(e,r,o){if(r){var i=null,a=[];if(-1!==n.indexOf(r.charAt(0))&&(i=r.charAt(0),r=r.substr(1)),r.split(/,/g).forEach((function(e){var n=/([^:\\*]*)(?::(\\d+)|(\\*))?/.exec(e);a.push.apply(a,function(e,n,t,r){var o=e[t],i=[];if(ns(o)&&""!==o)if("string"==typeof o||"number"==typeof o||"boolean"==typeof o)o=o.toString(),r&&"*"!==r&&(o=o.substring(0,parseInt(r,10))),i.push(es(n,o,ts(n)?t:null));else if("*"===r)Array.isArray(o)?o.filter(ns).forEach((function(e){i.push(es(n,e,ts(n)?t:null))})):Object.keys(o).forEach((function(e){ns(o[e])&&i.push(es(n,o[e],e))}));else{var a=[];Array.isArray(o)?o.filter(ns).forEach((function(e){a.push(es(n,e))})):Object.keys(o).forEach((function(e){ns(o[e])&&(a.push($a(e)),a.push(es(n,o[e].toString())))})),ts(n)?i.push($a(t)+"="+a.join(",")):0!==a.length&&i.push(a.join(","))}else";"===n?ns(o)&&i.push($a(t)):""!==o||"&"!==n&&"?"!==n?""===o&&i.push(""):i.push($a(t)+"=");return i}(t,i,n[1],n[2]||n[3]))})),i&&"+"!==i){var s=",";return"?"===i?s="&":"#"!==i&&(s=i),(0!==a.length?i:"")+a.join(s)}return a.join(",")}return Qa(o)}))}}}new Ja(Ua(["cbs-interaction-latency"])),ja.prototype=Object.create(null),za.EventEmitter=za,za.usingDomains=!1,za.prototype.domain=void 0,za.prototype._events=void 0,za.prototype._maxListeners=void 0,za.defaultMaxListeners=10,za.init=function(){this.domain=null,za.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new ja,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},za.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError(\'"n" argument must be a positive number\');return this._maxListeners=e,this},za.prototype.getMaxListeners=function(){return Ka(this)},za.prototype.emit=function(e){var n,t,r,o,i,a,s,u="error"===e;if(a=this._events)u=u&&null==a.error;else if(!u)return!1;if(s=this.domain,u){if(n=arguments[1],!s){if(n instanceof Error)throw n;var c=new Error(\'Uncaught, unspecified "error" event. (\'+n+")");throw c.context=n,c}return n||(n=new Error(\'Uncaught, unspecified "error" event\')),n.domainEmitter=this,n.domain=s,n.domainThrown=!1,s.emit("error",n),!1}if(!(t=a[e]))return!1;var l="function"==typeof t;switch(r=arguments.length){case 1:!function(e,n,t){if(n)e.call(t);else for(var r=e.length,o=Xa(e,r),i=0;i<r;++i)o[i].call(t)}(t,l,this);break;case 2:!function(e,n,t,r){if(n)e.call(t,r);else for(var o=e.length,i=Xa(e,o),a=0;a<o;++a)i[a].call(t,r)}(t,l,this,arguments[1]);break;case 3:!function(e,n,t,r,o){if(n)e.call(t,r,o);else for(var i=e.length,a=Xa(e,i),s=0;s<i;++s)a[s].call(t,r,o)}(t,l,this,arguments[1],arguments[2]);break;case 4:!function(e,n,t,r,o,i){if(n)e.call(t,r,o,i);else for(var a=e.length,s=Xa(e,a),u=0;u<a;++u)s[u].call(t,r,o,i)}(t,l,this,arguments[1],arguments[2],arguments[3]);break;default:for(o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];!function(e,n,t,r){if(n)e.apply(t,r);else for(var o=e.length,i=Xa(e,o),a=0;a<o;++a)i[a].apply(t,r)}(t,l,this,o)}return!0},za.prototype.addListener=function(e,n){return Ya(this,e,n,!1)},za.prototype.on=za.prototype.addListener,za.prototype.prependListener=function(e,n){return Ya(this,e,n,!0)},za.prototype.once=function(e,n){if("function"!=typeof n)throw new TypeError(\'"listener" argument must be a function\');return this.on(e,Za(this,e,n)),this},za.prototype.prependOnceListener=function(e,n){if("function"!=typeof n)throw new TypeError(\'"listener" argument must be a function\');return this.prependListener(e,Za(this,e,n)),this},za.prototype.removeListener=function(e,n){var t,r,o,i,a;if("function"!=typeof n)throw new TypeError(\'"listener" argument must be a function\');if(!(r=this._events))return this;if(!(t=r[e]))return this;if(t===n||t.listener&&t.listener===n)0==--this._eventsCount?this._events=new ja:(delete r[e],r.removeListener&&this.emit("removeListener",e,t.listener||n));else if("function"!=typeof t){for(o=-1,i=t.length;i-- >0;)if(t[i]===n||t[i].listener&&t[i].listener===n){a=t[i].listener,o=i;break}if(o<0)return this;if(1===t.length){if(t[0]=void 0,0==--this._eventsCount)return this._events=new ja,this;delete r[e]}else!function(e,n){for(var t=n,r=t+1,o=e.length;r<o;t+=1,r+=1)e[t]=e[r];e.pop()}(t,o);r.removeListener&&this.emit("removeListener",e,a||n)}return this},za.prototype.off=function(e,n){return this.removeListener(e,n)},za.prototype.removeAllListeners=function(e){var n,t;if(!(t=this._events))return this;if(!t.removeListener)return 0===arguments.length?(this._events=new ja,this._eventsCount=0):t[e]&&(0==--this._eventsCount?this._events=new ja:delete t[e]),this;if(0===arguments.length){for(var r,o=Object.keys(t),i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=new ja,this._eventsCount=0,this}if("function"==typeof(n=t[e]))this.removeListener(e,n);else if(n)do{this.removeListener(e,n[n.length-1])}while(n[0]);return this},za.prototype.listeners=function(e){var n,t,r=this._events;return t=r&&(n=r[e])?"function"==typeof n?[n.listener||n]:function(e){for(var n=new Array(e.length),t=0;t<n.length;++t)n[t]=e[t].listener||e[t];return n}(n):[],t},za.listenerCount=function(e,n){return"function"==typeof e.listenerCount?e.listenerCount(n):qa.call(e,n)},za.prototype.listenerCount=qa,za.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]},function(e){e[e.NOT_DEFINED=-1]="NOT_DEFINED",e[e.SESSION_NOT_FOUND=5e4]="SESSION_NOT_FOUND",e[e.SESSION_PIN_CODE_NOT_FOUND=50003]="SESSION_PIN_CODE_NOT_FOUND"}(Ha||(Ha={}));var os=function(e){_inherits(t,_wrapNativeSuper(Error));var n=_createSuper(t);function t(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ha.NOT_DEFINED,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return _classCallCheck(this,t),(r=n.call(this,e)).msg=e,r.code=o,r.statusCode=i,r}return _createClass(t)}(),is=function(e){_inherits(t,_wrapNativeSuper(Error));var n=_createSuper(t);function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:St.UNKNOWN;return _classCallCheck(this,t),(e=n.call(this,r)).msg=r,e}return _createClass(t)}(),as=Ua(["CoBrowsing AgentSDK","COMMON"]);function ss(e,n){return new Promise((function(r,o){null==n||n(e);var i=e.success,a=t(e,["success"]);i?r(a):o(e.error)}))}var us=function(e){return r(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:if(!e.ok){n.next=7;break}return n.next=3,e.json();case 3:return t=n.sent,n.abrupt("return",t);case 7:return n.next=9,e.json();case 9:throw r=n.sent,new os(r.message,r.code,e.status);case 11:case"end":return n.stop()}}),n)})))},cs=function(e,n){return r(void 0,void 0,void 0,_regeneratorRuntime().mark((function r(){var o,i,a,s,u,c,l;return _regeneratorRuntime().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=(o=n||{}).headers,a=void 0===i?{}:i,s=o.authToken,u=t(o,["headers","authToken"]),c=yi.getZmTrackingIdForWeb(),as.log("zmTrackingIdForWeb:".concat(c)),r.next=5,ii(e,Object.assign({headers:Object.assign({"Content-Type":"application/json",Authorization:"Bearer ".concat(s),"x-zm-trackingid":c},a),method:"GET",handleJsonResponse:us},u));case 5:return l=r.sent,r.abrupt("return",l);case 7:case"end":return r.stop()}}),r)})))};function ls(){var e;return"https://"+(Vt()?null===(e=Wt())||void 0===e?void 0:e.domain:window.ZMCoBrowsingConfig.domain)}function _s(e,n){var t=e;if(!0!==Hn.getCoBrowsingConfig("isLoadFromSDKEntry")&&(Gt()&&(t="".concat(e,"/").concat(Jt())),window.location.pathname===t)){var r=new URLSearchParams(window.location.search);Object.entries(n).forEach((function(e){var n=_slicedToArray(e,2),t=n[0],o=n[1];r.set(t,o)}));var o="".concat(window.location.pathname,"?").concat(r.toString());history.replaceState({},"",o)}}var ds,Es=function(e){return Vt()&&sessionStorage.getItem(st(e))||""};!function(e){e.SESSION_JOINED="session_joined",e.SESSION_LEFT="session_left",e.SESSION_ENDED="session_ended",e.SESSION_ERROR="session_error"}(ds||(ds={}));var fs,gs=new Map([[1001,[10004,30105,30600,30601]],[1002,[10010,10014]],[1003,[30300]],[1004,[10023,10024]],[1005,[10002]],[1006,[10011,30308]],[1007,[30309]],[1008,[30307,30311]],[1009,[30315]],[1010,[30316]],[1011,[10025,10006,10008,10007,10009,10003,10001,30106,30107,40100,40101,40102,40103,40104,40200,40201,40202,40210,40211,40214,40216,40300,40301,40302,40402,40403,10021,10026,30109,10020,30110]],[1012,[40212,40217]],[1013,[40215,40218]],[1014,[]],[1015,[40213,40219]],[1016,[10016]],[1017,[10027]],[1018,[]],[2001,[124,125,127,129,30202,30304,401]],[3001,[26700]],[3002,[2e4,20001,20002,20003,20004,20005,20006,20007,24001,26100,26101,26102,26103,26104,26105,26106,26200,26201,26203,26204,26301,26302,26303,26304,26305,26400,26401,26402,26403,26404,26405,26500,26501,26502,26503,26504,26506,26701,26800,26801,29e3]],[3003,[21e3,21001,25203,25204,26202,26505,29001]],[3004,[22e3,29002]],[3005,[23e3,29003]],[9999,[10005,-1,126,128,30100,30101,30102,30103,30104,30200,30201,30203,30204,30205,30301,30302,30303,30305,30306,30310,30312,30313,30314,30400,30401,30402,30403,40001,24e3,24002,25100,25101,25102,25103,25104,25105,25200,25201,25202,26600,26601,26702,26703,19999,30108]]]);!function(e){e[e.SESSION_START_FAILED=1001]="SESSION_START_FAILED",e[e.SESSION_CONNECTING_IN_PROGRESS=1002]="SESSION_CONNECTING_IN_PROGRESS",e[e.SESSION_NOT_FOUND=1003]="SESSION_NOT_FOUND",e[e.SESSION_COUNT_LIMIT=1004]="SESSION_COUNT_LIMIT",e[e.SESSION_REFRESH_PIN_FAILED=1005]="SESSION_REFRESH_PIN_FAILED",e[e.SESSION_JOIN_PIN_NOT_FOUND=1006]="SESSION_JOIN_PIN_NOT_FOUND",e[e.SESSION_PIN_CODE_EXPIRED=1007]="SESSION_PIN_CODE_EXPIRED",e[e.SESSION_PIN_INVALID_FORMAT=1008]="SESSION_PIN_INVALID_FORMAT",e[e.SESSION_START_PIN_REQUIRED=1009]="SESSION_START_PIN_REQUIRED",e[e.SESSION_START_PIN_CONFLICT=1010]="SESSION_START_PIN_CONFLICT",e[e.SESSION_JOIN_FAILED=1011]="SESSION_JOIN_FAILED",e[e.SESSION_CUSTOMER_COUNT_LIMIT=1012]="SESSION_CUSTOMER_COUNT_LIMIT",e[e.SESSION_AGENT_COUNT_LIMIT=1013]="SESSION_AGENT_COUNT_LIMIT",e[e.SESSION_CUSTOMIZE_OVERRIDE_ERROR=1014]="SESSION_CUSTOMIZE_OVERRIDE_ERROR",e[e.SESSION_DUPLICATE_USER=1015]="SESSION_DUPLICATE_USER",e[e.NETWORK_ERROR=1016]="NETWORK_ERROR",e[e.SESSION_CANCELING_IN_PROGRESS=1017]="SESSION_CANCELING_IN_PROGRESS",e[e.TRANSFER_TO_NEW_TAB_FAILED=1018]="TRANSFER_TO_NEW_TAB_FAILED",e[e.TOKEN_INVALID=2001]="TOKEN_INVALID",e[e.RECORD_ERROR_UNKNOWN=3001]="RECORD_ERROR_UNKNOWN",e[e.RECORD_START_FAILED=3002]="RECORD_START_FAILED",e[e.RECORD_END_FAILED=3003]="RECORD_END_FAILED",e[e.RECORD_PAUSE_FAILED=3004]="RECORD_PAUSE_FAILED",e[e.RECORD_RESUME_FAILED=3005]="RECORD_RESUME_FAILED",e[e.UNDEFINED=9999]="UNDEFINED"}(fs||(fs={}));var Ss,ps=[29e3,29001,29002,29003],Is=new Map,Rs=_createForOfIteratorHelper(gs);try{var Cs=function(){var e=_slicedToArray(Ss.value,2),n=e[0];e[1].forEach((function(e){Is.set(e,n)}))};for(Rs.s();!(Ss=Rs.n()).done;)Cs()}catch(e){Rs.e(e)}finally{Rs.f()}var Ts=Ua(["CoBrowsing AgentSDK","COMMON"]),hs="/sdkapi/zcb/frame-templates/viewer",Os=new(function(){function e(){_classCallCheck(this,e),this.sessionMap=new Map}return _createClass(e,[{key:"isNpmMode",get:function(){return!!window.ZCB_NPM_SDK_AGENT_MAIN}},{key:"deleteSession",value:function(e){this.sessionMap.delete(e)}},{key:"clearDeactivedSessions",value:function(){var e=this;this.sessionMap.forEach((function(n,t){t._destroyed&&(e.deleteSession(t),t._destroy())}))}},{key:"createSession",value:function(n){if(this.isNpmMode){this.clearDeactivedSessions();var t=new ms(n);return this.sessionMap.set(t,!0),t}return e.session||(e.session=new ms(n)),e.session}}]),e}()),vs="Invalid token.",ms=function(e){_inherits(o,e);var n=_createSuper(o);function o(e){var t;_classCallCheck(this,o),(t=n.call(this)).options=e,t.manager=Os,t.autoJoinSessionDetailsPromise=null,t.sessionEventInfo=null,t._destroyed=!1;var r=(e||{}).zoomAppRoot;if(t.isNpmMode){var i=new is(St.NO_ROOT_DOM);if(!r||"string"!=typeof r&&!(r instanceof HTMLElement))throw i;var a="string"==typeof r?document.querySelector(r):r;if(!(null==a?void 0:a.isConnected))throw i;t.frameRoot=a}return t.messageListener=t.messageCallback.bind(_assertThisInitialized(t)),window.addEventListener("message",t.messageListener),t}return _createClass(o,[{key:"isNpmMode",get:function(){return!!window.ZCB_NPM_SDK_AGENT_MAIN}},{key:"getPayloadFromJwtToken",value:function(e){var n;if("string"!=typeof e)return null;var t=(null===(n=e.split("."))||void 0===n?void 0:n[1])||"",r=null;try{r=JSON.parse(function(e){try{return at(e)}catch(e){}return e}(t))}catch(e){}return r}},{key:"init",value:function(){var e;return r(this,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,r;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!this.isNpmMode){n.next=6;break}if(t=Es(Bo)||Es(xo),r=t?null===(e=this.getPayloadFromJwtToken(t))||void 0===e?void 0:e.session_id:"",!t||!r){n.next=6;break}return n.next=6,this.getSessionStatus({sessionId:r,authToken:t});case 6:case"end":return n.stop()}}),n,this)})))}},{key:"getSessionStatus",value:function(e){return r(this,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,r,o,i=this;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.sessionId,r=e.authToken,o=new URL(Kn.getSessionStatus,ls()),Ts.log("Call CommonAgentSession.getSessionStatus: check auto join"),n.abrupt("return",cs("".concat(o,"/").concat(t),{authToken:r}).then((function(e){var n;i.storeTokenForRefresh(null===(n=e.current_user)||void 0===n?void 0:n.auth_token),i.autoJoinSessionDetailsPromise=new Hi,i.autoJoinSessionDetailsPromise.resolve(e)})).catch((function(){i.delTokenForRefresh()})));case 4:case"end":return n.stop()}}),n)})))}},{key:"delTokenForRefresh",value:function(){var e;this.isNpmMode&&(e=[xo,Bo],Vt()&&e.forEach((function(e){sessionStorage.removeItem(st(e))})))}},{key:"storeTokenForRefresh",value:function(e){var n,t;this.isNpmMode&&e&&(n=Bo,t={access_token:e},Vt()?sessionStorage.setItem(st(n),(null==t?void 0:t.access_token)||""):_s(n,t))}},{key:"createAgentViewerEndpoint",value:function(e,n){return r(this,void 0,void 0,_regeneratorRuntime().mark((function t(){var r,o=this;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Ts.log("Call createAgentViewerEndpoint"),t.next=3,this.authByPinCode(e).then((function(e){return Ts.log("Call createAgentViewerEndpoint success, sessionId:".concat(o.sessionId)),{success:!0,agentViewerUrl:o.getAgentViewerUrl(e.current_user.auth_token)}}),(function(e){return Ts.log("Call createAgentViewerEndpoint failed, error: ".concat(JSON.stringify(e))),{success:!1,error:o.handleFetchError(e)}}));case 3:return r=t.sent,t.abrupt("return",ss(r,n));case 5:case"end":return t.stop()}}),t,this)})))}},{key:"authByPinCode",value:function(e){return r(this,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,r,o,i,a,s=this;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.pinCode,r=e.sdkToken,o=rs(Kn.joinSession),i=o.expand({pinCode:t||""}),this.delTokenForRefresh(),a=new URL(i,ls()),n.abrupt("return",cs(a,{authToken:r}).then((function(e){var n;return s.sessionId=e.session_id||"",s.pinCode=e.cobrowse_code||"",s.storeTokenForRefresh(null===(n=e.current_user)||void 0===n?void 0:n.auth_token),e})));case 6:case"end":return n.stop()}}),n,this)})))}},{key:"handleFetchError",value:function(e){var n,t,r=void 0!==(null==e?void 0:e.code)?new os(e.message,e.code,e.statusCode):401===(null==e?void 0:e.statusCode)||403===(null==e?void 0:e.statusCode)?new os(vs,e.statusCode,e.statusCode):new os(e,Ha.NOT_DEFINED,Ha.NOT_DEFINED),o={errorMsg:r.message,code:(t=r.code,(t?ps.includes(t)?t:Is.get(t)||void 0:fs.UNDEFINED)||fs.UNDEFINED),version:Vt()?null===(n=Wt())||void 0===n?void 0:n.sdkVersion:window.ZMCoBrowsingConfig.sdkVersion};return this.emit(ds.SESSION_ERROR,o),o}},{key:"getAgentViewerUrl",value:function(e){return Gt()?"".concat(ls()).concat(hs,"/").concat(Jt(),"?access_token=").concat(e):"".concat(ls()).concat(hs,"?access_token=").concat(e)}},{key:"join",value:function(e){return r(this,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:return Ts.log("Call CommonAgentSession.join"),t=!e,n.abrupt("return",(t&&this.autoJoinSessionDetailsPromise?this.autoJoinSessionDetailsPromise.promise:this.authByPinCode(e)).then((function(e){var n;Ts.log("Call CommonAgentSession.join success, sessionId:".concat(r.sessionId));var t=(e||{}).sdk_config||{},o=t.gateway_endpoint,i=t.enable_zcb_client_log;void 0!==i&&Ts.setLaplaceEnabled(i),o&&!r.isNpmMode&&Ts.setReportUrl(o);var a=document.createElement("iframe");return r.frameRoot.appendChild(a),null===(n=window.ZCB_NPM_SDK_AGENT_MAIN)||void 0===n||n.initAgentPortal(a,e),r.iframe=a,{success:!0}}),(function(e){return Ts.log("Call CommonAgentSession.join failed, error: ".concat(JSON.stringify(e))),{success:!1,error:r.handleFetchError(e)}})));case 3:case"end":return n.stop()}}),n,this)})))}},{key:"getSessionInfo",value:function(){var e,n={sessionId:this.sessionId,pinCode:this.pinCode};return(null===(e=this.autoJoinSessionDetailsPromise)||void 0===e?void 0:e.resolved)&&(n.sessionStatus=ft.RECOVERABLE),n}},{key:"startRemoteAssist",value:function(){Ts.log("Call CommonAgentSession.startRemoteAssist, sessionId:".concat(this.sessionId)),this.sessionEventInfo&&ri({event:Uo.START_REMOTE_ASSIST},this.sessionEventInfo.source,this.sessionEventInfo.origin)}},{key:"stopRemoteAssist",value:function(){Ts.log("Call CommonAgentSession.stopRemoteAssist, sessionId:".concat(this.sessionId)),this.sessionEventInfo&&ri({event:Uo.STOP_REMOTE_ASSIST},this.sessionEventInfo.source,this.sessionEventInfo.origin)}},{key:"markAsDestroy",value:function(){this._destroyed=!0}},{key:"_destroy",value:function(){window.removeEventListener("message",this.messageListener),this.manager.deleteSession(this),this.iframe.parentNode&&this.iframe.parentNode.removeChild(this.iframe)}},{key:"isMessageBelongToSession",value:function(e){var n;return this.isNpmMode?e.source===(null===(n=this.iframe)||void 0===n?void 0:n.contentWindow):e.origin===ls()}},{key:"messageCallback",value:function(e){if(this.isMessageBelongToSession(e)){var n=e.data;if(n&&"object"===_typeof(n)&&n.event&&Vo.includes(n.event)){if(Ts.log("agent trigger message event: ".concat(n.event)),n.event===ko.SESSION_PRE_INIT){var r=t(this.options,["zoomAppRoot","zoomHostName","appKey"]),o=yi.getZmTrackingId();return this.sessionEventInfo={source:e.source,origin:e.origin},void ri({event:Uo.SEND_SESSION_OPTIONS,data:{options:r,info:{zmTrackingId:o}}},e.source,e.origin)}this.emit(n.event,n.data),(n.event===ko.SESSION_ENDED||n.event===ko.SESSION_LEFT||n.event===ko.SESSION_ERROR&&(i=n.code,![yr.DUPLICATE_SESSION,yr.REFRESH_PIN_CODE_FAILED].includes(i)))&&(this.sessionEventInfo=null,this.markAsDestroy())}}var i}},{key:"on",value:function(e,n){return _get(_getPrototypeOf(o.prototype),"on",this).call(this,e,n)}},{key:"emit",value:function(e,n){return _get(_getPrototypeOf(o.prototype),"emit",this).call(this,e,n)}}]),o}(za),As=Ua(["CoBrowsing AgentSDK","COMMON"]),Ds=function(e,n){return r(void 0,void 0,void 0,_regeneratorRuntime().mark((function t(){var r,o,i;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=yi.getZmTrackingId(),_i({zmTrackingId:r}),As.log("session init, zmTrackingId:".concat(r)),console.log("zmTrackingId",r),o={success:!0,sdkInfo:{version:null==Ht?void 0:Ht()}},t.prev=5,i=Os.createSession(e),t.next=9,i.init();case 9:o.session=i,t.next=16;break;case 12:t.prev=12,t.t0=t.catch(5),o.success=!1,o.error=t.t0 instanceof is?t.t0.msg:St.UNKNOWN;case 16:return t.abrupt("return",new Promise((function(e,t){null==n||n(o),o.success?e(o):t(o.error)})));case 17:case"end":return t.stop()}}),t,null,[[5,12]])})))};return(null===window||void 0===window?void 0:window.ZoomCobrowseAgentSDKInitArgs)&&(Ds.apply(void 0,_toConsumableArray(window.ZoomCobrowseAgentSDKInitArgs)),delete window.ZoomCobrowseAgentSDKInitArgs),e.init=Ds,Object.defineProperty(e,"__esModule",{value:!0}),e}({});\n//# sourceMappingURL=https://d1cdksi819e9z7.cloudfront.net/zcb/mfxscpp0/zcb-client-agent.js.map\n';export{e as default};
|
|
1
|
+
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 _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 _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 _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=O(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 N(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 I=Object.getPrototypeOf,R=I&&I(I(A([])));R&&R!==t&&r.call(R,i)&&(S=R);var g=f.prototype=l.prototype=Object.create(S);function T(e){["next","throw","return"].forEach((function(n){u(e,n,(function(e){return this._invoke(n,e)}))}))}function p(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 O(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,O(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 h(n){var t=n[4]||{};t.type="normal",t.arg=e,n[4]=t}function N(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}},T(p.prototype),u(p.prototype,a,(function(){return this})),n.AsyncIterator=p,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new p(c(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},T(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,N.prototype={constructor:N,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(h),!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]),h(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;h(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 I(){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 I.HMAC.init(e,t).finalize(n)}}});var I=i.algo={};return i}(Math),e)),d;var e}E.exports=I().enc.Utf8;var R,g={},T={get exports(){return g},set exports(e){g=e}};function p(){return R||(R=1,function(e,n){var t;e.exports=(t=I(),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)}(T)),g}p();var O=function(e){try{return JSON.stringify(e)}catch(e){return"json stringify failed"}};var C,h,N,A=(C=(new Date).getTime(),h=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=(h+n)%16|0,h=Math.floor(h/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),O(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 b(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 L(e,n){var t=indexedDB.open(e);t.onupgradeneeded=function(){return t.result.createObjectStore(n)};var r=b(t);return function(e,t){return r.then((function(r){return t(r.transaction(n,e).objectStore(n))}))}}function w(){return N||(N=L("keyval-store","keyval")),N}function M(e,n){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:w())("readwrite",(function(t){return t.put(n,e),b(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)})),b(n.transaction)}))}function U(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:w())("readwrite",(function(e){return e.clear(),b(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([b(n.getAllKeys()),b(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())},b(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",L(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 I(e);s=setTimeout(S,function(e){var t=n-(e-u);return E?re(t,i-(e-c)):t}(e))}function I(e){return s=void 0,l&&r?d(e):(r=o=void 0,a)}function R(){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),R.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=u=o=s=void 0},R.flush=function(){return void 0===s?a:I(oe())},R}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:O({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,Ie={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}},Re=(null===globalThis||void 0===globalThis?void 0:globalThis.ZMCoBrowsingConfig)||{},ge={enable:Re.enableZCBClientLog,gatewayEndPoint:Re.gatewayEndPoint},Te=function(){var e,n=null!==(e=ge.gatewayEndPoint)&&void 0!==e?e:Ie.gatewayEndPoint;return n||""}(),pe=Ie,Oe=(fe="",Se=void 0,{setDynamicReportUrl:function(e){fe=e},getDynamicReportUrl:function(){return fe},getCurrentReportUrl:function(){return fe||Te},setDynamicLaplaceEnabled:function(e){Se=e},getDynamicLaplaceEnabled:function(){return Se}}),Ce=function(){return void 0!==Oe.getDynamicLaplaceEnabled()?Oe.getDynamicLaplaceEnabled():!!(null!==(e=ge.enable)&&void 0!==e?e:null==Ie?void 0:Ie.enable);var e},he=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),Ne=["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(Ne)})))})).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(O(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]",be="[object Symbol]",Le=/^\\[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=On(Ue,"Map"),cn=On(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 In(e,n,t,r,o){var i=-1,a=e.length;for(t||(t=Nn),o||(o=[]);++i<a;){var s=e[i];n>0&&t(s)?n>1?In(s,n-1,t,r,o):Ve(o,s):r||(o[o.length]=s)}return o}function Rn(e){if(!bn(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:Le;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(!bn(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 Tn(e){return function(e,n,t){var r=n(e);return mn(e)?r:Ve(r,t(e))}(e,wn,hn)}function pn(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 On(e,n){var t=function(e,n){return null==e?void 0:e[n]}(e,n);return Rn(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 pn(this,e).delete(e)},ln.prototype.get=function(e){return pn(this,e).get(e)},ln.prototype.has=function(e){return pn(this,e).has(e)},ln.prototype.set=function(e,n){return pn(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,hn=an?function(e){for(var n=[];e;)Ve(n,Cn(e)),e=nn(e);return n}:kn;function Nn(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)||Ln(e)&&Qe.call(e)==be}(e))return e;var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n}function vn(e){return function(e){return Ln(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=bn(e)?Qe.call(e):"";return n==ye||n==Pe}function bn(e){var n=_typeof(e);return!!e&&("object"==n||"function"==n)}function Ln(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(In(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}(Tn(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,I=d?Math.round(a-i):-1,R=d?Math.round(u-s):-1;c&&d&&(R=Math.round(u-c));var g,T,p=d?Math.round(_-E):-1,O=navigator.connection?navigator.connection.effectiveType:"Unknown",C=Bn(e,r.config.excludeResourceTimingKeys.concat("toJSON","Symbol(Symbol.toStringTag)","serverTiming")),h=(g=null!==(n=C.name)&&void 0!==n?n:"",(T=(g=g.replace(/\\/+$/,"")).match(/[^/]+$/))?T[0]:null);return Object.assign(Object.assign({},C),{name:h,url:C.name,dns:f,ttfb:S,redirect:I,connect:R,download:p,network:O,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),globalThis.ZCB_CoBrowseConfigController=this,this.requestNpmModeAgentConfig()}return _createClass(e,[{key:"getCoBrowsingConfig",value:function(e){var n;return e?globalThis.ZMCoBrowsingConfig?globalThis.ZMCoBrowsingConfig[e]:null===(n=this.coBrowsingConfig)||void 0===n?void 0:n[e]:globalThis.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=globalThis.ZCB_NPM_SDK_AGENT_MAIN)||void 0===e?void 0:e.isInnerFrame(document))&&globalThis.ZCB_CoBrowseConfigController.setCoBrowsingConfig(Object.assign({isViewer:null===(n=globalThis.ZCB_NPM_SDK_AGENT_SESSION_CONTEXT)||void 0===n?void 0:n.isViewer,appKey:null===(t=globalThis.ZCB_NPM_SDK_AGENT_SESSION_CONTEXT)||void 0===t?void 0:t.appKey},globalThis.parent.ZCB_CoBrowseConfigController.coBrowsingConfig))}}],[{key:"create",value:function(){return globalThis.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",getBlobUrl:function(e){return"/cps-blob-".concat(e)},getBlobUrlReg:/cps-blob-([^?#\\/]+)/}},"/co-browsing");var Yn,jn,Kn,zn={get createSession(){return"/sdkapi/zcb/sessions"},get getSessionStatus(){return"/sdkapi/zcb/sessions"},get refreshZCBToken(){return"/sdkapi/zcb/refresh-tokens"},get joinSession(){return"/sdkapi/zcb/cobrowse-codes/{pinCode}/session"},get reportSessionStatusLog(){return"/sdkapi/zcb/cbs/{appKey}/session-status"}};!function(e){e.LOCAL="local",e.PROD="prod"}(Yn||(Yn={})),function(e){e.LEADER="1",e.FOLLOWER="2",e.RECORDER="11"}(jn||(jn={})),function(e){e.IMG="IMG",e.SOURCE="SOURCE",e.LINK="LINK",e.A="A",e.AUDIO="AUDIO",e.IFRAME="IFRAME",e.FORM="FORM",e.SCRIPT="SCRIPT",e.STYLE="STYLE"}(Kn||(Kn={}));var Zn,Xn;!function(e){e.LEADER="HR",e.FOLLOWER="VR"}(Zn||(Zn={})),new RegExp("(.+)(HTTPS?)/(.+)/".concat("CPS-SEP-FLAG","/(").concat(Zn.FOLLOWER,"|").concat(Zn.LEADER,")")),function(e){e[e.TYPE_UNKNOWN=-1]="TYPE_UNKNOWN",e[e.TYPE_TOP=1]="TYPE_TOP",e[e.TYPE_FRAME=2]="TYPE_FRAME",e[e.TYPE_AUX=3]="TYPE_AUX",e[e.TYPE_SCRIPT=4]="TYPE_SCRIPT",e[e.TYPE_MODULE=5]="TYPE_MODULE",e[e.TYPE_LINK=6]="TYPE_LINK",e[e.TYPE_XHR=7]="TYPE_XHR",e[e.TYPE_RESOURCE=8]="TYPE_RESOURCE",e[e.TYPE_WORKER=9]="TYPE_WORKER",e[e.TYPE_WORKER_SCOPE=10]="TYPE_WORKER_SCOPE",e[e.TYPE_REDIRECT=11]="TYPE_REDIRECT",e[e.TYPE_PAWS=12]="TYPE_PAWS",e[e.TYPE_CONTINUATION=13]="TYPE_CONTINUATION"}(Xn||(Xn={}));var qn,Qn,$n,et,nt,tt,rt,ot,it,at,st=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),ut=(qn={},st.forEach((function(e,n){return qn[e]=n})),qn),ct=/^(?:[A-Za-z\\d+\\/]{4})*?(?:[A-Za-z\\d+\\/]{2}(?:==)?|[A-Za-z\\d+\\/]{3}=?)?$/,_t=String.fromCharCode.bind(String),Et=function(e){if(e.length<2){var n=e.charCodeAt(0);return n<128?e:n<2048?_t(192|n>>>6)+_t(128|63&n):_t(224|n>>>12&15)+_t(128|n>>>6&63)+_t(128|63&n)}var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return _t(240|t>>>18&7)+_t(128|t>>>12&63)+_t(128|t>>>6&63)+_t(128|63&t)},lt=/[\\uD800-\\uDBFF][\\uDC00-\\uDFFFF]|[^\\x00-\\x7F]/g,dt=/[\\xC0-\\xDF][\\x80-\\xBF]|[\\xE0-\\xEF][\\x80-\\xBF]{2}|[\\xF0-\\xF7][\\x80-\\xBF]{3}/g,ft=function(e){switch(e.length){case 4:var n=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return _t(55296+(n>>>10))+_t(56320+(1023&n));case 3:return _t((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return _t((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},St=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=function(e){for(var n,t,r,o,i="",a=e.length%3,s=0;s<e.length;){if((t=e.charCodeAt(s++))>255||(r=e.charCodeAt(s++))>255||(o=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");i+=st[(n=t<<16|r<<8|o)>>18&63]+st[n>>12&63]+st[n>>6&63]+st[63&n]}return a?i.slice(0,a-3)+"===".substring(a):i}(e.replace(lt,Et));return n?t.replace(/=/g,"").replace(/[+\\/]/g,(function(e){return"+"==e?"-":"_"})):t},It=function(e){return n=function(e){if(e=e.replace(/\\s+/g,""),!ct.test(e))throw new TypeError("malformed base64.");var n;e+="==".slice(2-(3&e.length));for(var t,r,o="",i=0;i<e.length;)n=ut[e.charAt(i++)]<<18|ut[e.charAt(i++)]<<12|(t=ut[e.charAt(i++)])<<6|(r=ut[e.charAt(i++)]),o+=64===t?_t(n>>16&255):64===r?_t(n>>16&255,n>>8&255):_t(n>>16&255,n>>8&255,255&n);return o}(function(e){return e.replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\\+\\/]/g,"")}(e)),n.replace(dt,ft);var n};function Rt(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{return St(e,n)}catch(e){}return e}function gt(e){try{return It(e)}catch(e){}return e}!function(e){e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e[e.RemoteControl=7]="RemoteControl"}(Qn||(Qn={})),function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet"}($n||($n={})),function(e){e[e.FullSnapshot=-1]="FullSnapshot",e[e.Annotation=16]="Annotation"}(et||(et={})),function(e){e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel"}(nt||(nt={})),function(e){e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2"}(tt||(tt={})),function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(rt||(rt={})),function(e){e.CBS="CBS",e.CBS_SUB="CBS_SUB",e.IFRAME_ANOTATION="IFRAME_ANOTATION",e.REMOTE_ASSIST_FLYING_CURSOR="REMOTE_ASSIST_FLYING_CURSOR"}(ot||(ot={})),function(e){e.TRANSFERRING="transferring_in",e.SUCCESS="transfer_in_success",e.FAIL="transfer_in_failed",e.CANCEL="transfer_in_cancelled",e.TRANSFER_OUT_SUCCESS="transfer_out_success"}(it||(it={})),function(e){e.RegisterUser="register-user",e.UnregisterUser="unregister-user",e.Position="position",e.RegisterCustomerCursorDOM="register-customer-dom",e.RegisterOtherAgentCursorDOM="register-other-agent-dom",e.UpdateCursorPositionLocal="update-cursor-position-local"}(at||(at={}));var Tt,pt={},Ot={},Ct={get exports(){return Ot},set exports(e){Ot=e}};function ht(){return Tt||(Tt=1,function(e,n){var t;e.exports=(t=I(),function(e){var n=t,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.algo,s=[];!function(){for(var n=0;n<64;n++)s[n]=4294967296*e.abs(e.sin(n+1))|0}();var u=a.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,n){for(var t=0;t<16;t++){var r=n+t,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,a=e[n+0],u=e[n+1],d=e[n+2],f=e[n+3],S=e[n+4],I=e[n+5],R=e[n+6],g=e[n+7],T=e[n+8],p=e[n+9],O=e[n+10],C=e[n+11],h=e[n+12],N=e[n+13],A=e[n+14],D=e[n+15],v=i[0],m=i[1],y=i[2],P=i[3];v=c(v,m,y,P,a,7,s[0]),P=c(P,v,m,y,u,12,s[1]),y=c(y,P,v,m,d,17,s[2]),m=c(m,y,P,v,f,22,s[3]),v=c(v,m,y,P,S,7,s[4]),P=c(P,v,m,y,I,12,s[5]),y=c(y,P,v,m,R,17,s[6]),m=c(m,y,P,v,g,22,s[7]),v=c(v,m,y,P,T,7,s[8]),P=c(P,v,m,y,p,12,s[9]),y=c(y,P,v,m,O,17,s[10]),m=c(m,y,P,v,C,22,s[11]),v=c(v,m,y,P,h,7,s[12]),P=c(P,v,m,y,N,12,s[13]),y=c(y,P,v,m,A,17,s[14]),v=_(v,m=c(m,y,P,v,D,22,s[15]),y,P,u,5,s[16]),P=_(P,v,m,y,R,9,s[17]),y=_(y,P,v,m,C,14,s[18]),m=_(m,y,P,v,a,20,s[19]),v=_(v,m,y,P,I,5,s[20]),P=_(P,v,m,y,O,9,s[21]),y=_(y,P,v,m,D,14,s[22]),m=_(m,y,P,v,S,20,s[23]),v=_(v,m,y,P,p,5,s[24]),P=_(P,v,m,y,A,9,s[25]),y=_(y,P,v,m,f,14,s[26]),m=_(m,y,P,v,T,20,s[27]),v=_(v,m,y,P,N,5,s[28]),P=_(P,v,m,y,d,9,s[29]),y=_(y,P,v,m,g,14,s[30]),v=E(v,m=_(m,y,P,v,h,20,s[31]),y,P,I,4,s[32]),P=E(P,v,m,y,T,11,s[33]),y=E(y,P,v,m,C,16,s[34]),m=E(m,y,P,v,A,23,s[35]),v=E(v,m,y,P,u,4,s[36]),P=E(P,v,m,y,S,11,s[37]),y=E(y,P,v,m,g,16,s[38]),m=E(m,y,P,v,O,23,s[39]),v=E(v,m,y,P,N,4,s[40]),P=E(P,v,m,y,a,11,s[41]),y=E(y,P,v,m,f,16,s[42]),m=E(m,y,P,v,R,23,s[43]),v=E(v,m,y,P,p,4,s[44]),P=E(P,v,m,y,h,11,s[45]),y=E(y,P,v,m,D,16,s[46]),v=l(v,m=E(m,y,P,v,d,23,s[47]),y,P,a,6,s[48]),P=l(P,v,m,y,g,10,s[49]),y=l(y,P,v,m,A,15,s[50]),m=l(m,y,P,v,I,21,s[51]),v=l(v,m,y,P,h,6,s[52]),P=l(P,v,m,y,f,10,s[53]),y=l(y,P,v,m,O,15,s[54]),m=l(m,y,P,v,u,21,s[55]),v=l(v,m,y,P,T,6,s[56]),P=l(P,v,m,y,D,10,s[57]),y=l(y,P,v,m,R,15,s[58]),m=l(m,y,P,v,N,21,s[59]),v=l(v,m,y,P,S,6,s[60]),P=l(P,v,m,y,C,10,s[61]),y=l(y,P,v,m,d,15,s[62]),m=l(m,y,P,v,p,21,s[63]),i[0]=i[0]+v|0,i[1]=i[1]+m|0,i[2]=i[2]+y|0,i[3]=i[3]+P|0},_doFinalize:function(){var n=this._data,t=n.words,r=8*this._nDataBytes,o=8*n.sigBytes;t[o>>>5]|=128<<24-o%32;var i=e.floor(r/4294967296),a=r;t[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n.sigBytes=4*(t.length+1),this._process();for(var s=this._hash,u=s.words,c=0;c<4;c++){var _=u[c];u[c]=16711935&(_<<8|_>>>24)|4278255360&(_<<24|_>>>8)}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,n,t,r,o,i,a){var s=e+(n&t|~n&r)+o+a;return(s<<i|s>>>32-i)+n}function _(e,n,t,r,o,i,a){var s=e+(n&r|t&~r)+o+a;return(s<<i|s>>>32-i)+n}function E(e,n,t,r,o,i,a){var s=e+(n^t^r)+o+a;return(s<<i|s>>>32-i)+n}function l(e,n,t,r,o,i,a){var s=e+(t^(n|~r))+o+a;return(s<<i|s>>>32-i)+n}n.MD5=i._createHelper(u),n.HmacMD5=i._createHmacHelper(u)}(Math),t.MD5)}(Ct)),Ot}var Nt,At={},Dt={get exports(){return At},set exports(e){At=e}},vt={},mt={get exports(){return vt},set exports(e){vt=e}};function yt(){return Nt||(Nt=1,function(e,n){var t,r,o,i,a,s,u,c;e.exports=(c=I(),r=(t=c).lib,o=r.WordArray,i=r.Hasher,a=t.algo,s=[],u=a.SHA1=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,n){for(var t=this._hash.words,r=t[0],o=t[1],i=t[2],a=t[3],u=t[4],c=0;c<80;c++){if(c<16)s[c]=0|e[n+c];else{var _=s[c-3]^s[c-8]^s[c-14]^s[c-16];s[c]=_<<1|_>>>31}var E=(r<<5|r>>>27)+u+s[c];E+=c<20?1518500249+(o&i|~o&a):c<40?1859775393+(o^i^a):c<60?(o&i|o&a|i&a)-1894007588:(o^i^a)-899497514,u=a,a=i,i=o<<30|o>>>2,o=r,r=E}t[0]=t[0]+r|0,t[1]=t[1]+o|0,t[2]=t[2]+i|0,t[3]=t[3]+a|0,t[4]=t[4]+u|0},_doFinalize:function(){var e=this._data,n=e.words,t=8*this._nDataBytes,r=8*e.sigBytes;return n[r>>>5]|=128<<24-r%32,n[14+(r+64>>>9<<4)]=Math.floor(t/4294967296),n[15+(r+64>>>9<<4)]=t,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA1=i._createHelper(u),t.HmacSHA1=i._createHmacHelper(u),c.SHA1)}(mt)),vt}var Pt,bt,Lt={},wt={get exports(){return Lt},set exports(e){Lt=e}};function Mt(){return bt||(bt=1,function(e,n){var t,r,o,i,a,s,u,c;e.exports=(c=I(),yt(),Pt||(Pt=1,function(e,n){var t,r,o;e.exports=(r=(t=I()).lib.Base,o=t.enc.Utf8,void(t.algo.HMAC=r.extend({init:function(e,n){e=this._hasher=new e.init,"string"==typeof n&&(n=o.parse(n));var t=e.blockSize,r=4*t;n.sigBytes>r&&(n=e.finalize(n)),n.clamp();for(var i=this._oKey=n.clone(),a=this._iKey=n.clone(),s=i.words,u=a.words,c=0;c<t;c++)s[c]^=1549556828,u[c]^=909522486;i.sigBytes=a.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var n=this._hasher,t=n.finalize(e);return n.reset(),n.finalize(this._oKey.clone().concat(t))}})))}(wt)),r=(t=c).lib,o=r.Base,i=r.WordArray,a=t.algo,s=a.MD5,u=a.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:s,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,n){for(var t,r=this.cfg,o=r.hasher.create(),a=i.create(),s=a.words,u=r.keySize,c=r.iterations;s.length<u;){t&&o.update(t),t=o.update(e).finalize(n),o.reset();for(var _=1;_<c;_++)t=o.finalize(t),o.reset();a.concat(t)}return a.sigBytes=4*u,a}}),t.EvpKDF=function(e,n,t){return u.create(t).compute(e,n)},c.EvpKDF)}(Dt)),At}var Ft,Ut,kt={},Bt={get exports(){return kt},set exports(e){kt=e}};!function(e,n){var t;e.exports=(t=I(),p(),ht(),Mt(),Ft||(Ft=1,function(e,n){var t;e.exports=(t=I(),Mt(),void(t.lib.Cipher||function(e){var n=t,r=n.lib,o=r.Base,i=r.WordArray,a=r.BufferedBlockAlgorithm,s=n.enc;s.Utf8;var u=s.Base64,c=n.algo.EvpKDF,_=r.Cipher=a.extend({cfg:o.extend(),createEncryptor:function(e,n){return this.create(this._ENC_XFORM_MODE,e,n)},createDecryptor:function(e,n){return this.create(this._DEC_XFORM_MODE,e,n)},init:function(e,n,t){this.cfg=this.cfg.extend(t),this._xformMode=e,this._key=n,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?T:R}return function(n){return{encrypt:function(t,r,o){return e(r).encrypt(n,t,r,o)},decrypt:function(t,r,o){return e(r).decrypt(n,t,r,o)}}}}()});r.StreamCipher=_.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var E=n.mode={},l=r.BlockCipherMode=o.extend({createEncryptor:function(e,n){return this.Encryptor.create(e,n)},createDecryptor:function(e,n){return this.Decryptor.create(e,n)},init:function(e,n){this._cipher=e,this._iv=n}}),d=E.CBC=function(){var n=l.extend();function t(n,t,r){var o,i=this._iv;i?(o=i,this._iv=e):o=this._prevBlock;for(var a=0;a<r;a++)n[t+a]^=o[a]}return n.Encryptor=n.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize;t.call(this,e,n,o),r.encryptBlock(e,n),this._prevBlock=e.slice(n,n+o)}}),n.Decryptor=n.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize,i=e.slice(n,n+o);r.decryptBlock(e,n),t.call(this,e,n,o),this._prevBlock=i}}),n}(),f=(n.pad={}).Pkcs7={pad:function(e,n){for(var t=4*n,r=t-e.sigBytes%t,o=r<<24|r<<16|r<<8|r,a=[],s=0;s<r;s+=4)a.push(o);var u=i.create(a,r);e.concat(u)},unpad:function(e){var n=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=n}};r.BlockCipher=_.extend({cfg:_.cfg.extend({mode:d,padding:f}),reset:function(){var e;_.reset.call(this);var n=this.cfg,t=n.iv,r=n.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,t&&t.words):(this._mode=e.call(r,this,t&&t.words),this._mode.__creator=e)},_doProcessBlock:function(e,n){this._mode.processBlock(e,n)},_doFinalize:function(){var e,n=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(n.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),n.unpad(e)),e},blockSize:4});var S=r.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),I=(n.format={}).OpenSSL={stringify:function(e){var n=e.ciphertext,t=e.salt;return(t?i.create([1398893684,1701076831]).concat(t).concat(n):n).toString(u)},parse:function(e){var n,t=u.parse(e),r=t.words;return 1398893684==r[0]&&1701076831==r[1]&&(n=i.create(r.slice(2,4)),r.splice(0,4),t.sigBytes-=16),S.create({ciphertext:t,salt:n})}},R=r.SerializableCipher=o.extend({cfg:o.extend({format:I}),encrypt:function(e,n,t,r){r=this.cfg.extend(r);var o=e.createEncryptor(t,r),i=o.finalize(n),a=o.cfg;return S.create({ciphertext:i,key:t,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,n,t,r){return r=this.cfg.extend(r),n=this._parse(n,r.format),e.createDecryptor(t,r).finalize(n.ciphertext)},_parse:function(e,n){return"string"==typeof e?n.parse(e,this):e}}),g=(n.kdf={}).OpenSSL={execute:function(e,n,t,r,o){if(r||(r=i.random(8)),o)a=c.create({keySize:n+t,hasher:o}).compute(e,r);else var a=c.create({keySize:n+t}).compute(e,r);var s=i.create(a.words.slice(n),4*t);return a.sigBytes=4*n,S.create({key:a,iv:s,salt:r})}},T=r.PasswordBasedCipher=R.extend({cfg:R.cfg.extend({kdf:g}),encrypt:function(e,n,t,r){var o=(r=this.cfg.extend(r)).kdf.execute(t,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=o.iv;var i=R.encrypt.call(this,e,n,o.key,r);return i.mixIn(o),i},decrypt:function(e,n,t,r){r=this.cfg.extend(r),n=this._parse(n,r.format);var o=r.kdf.execute(t,e.keySize,e.ivSize,n.salt,r.hasher);return r.iv=o.iv,R.decrypt.call(this,e,n,o.key,r)}})}()))}(Bt)),function(){var e=t,n=e.lib.BlockCipher,r=e.algo,o=[],i=[],a=[],s=[],u=[],c=[],_=[],E=[],l=[],d=[];!function(){for(var e=[],n=0;n<256;n++)e[n]=n<128?n<<1:n<<1^283;var t=0,r=0;for(n=0;n<256;n++){var f=r^r<<1^r<<2^r<<3^r<<4;f=f>>>8^255&f^99,o[t]=f,i[f]=t;var S=e[t],I=e[S],R=e[I],g=257*e[f]^16843008*f;a[t]=g<<24|g>>>8,s[t]=g<<16|g>>>16,u[t]=g<<8|g>>>24,c[t]=g,g=16843009*R^65537*I^257*S^16843008*t,_[f]=g<<24|g>>>8,E[f]=g<<16|g>>>16,l[f]=g<<8|g>>>24,d[f]=g,t?(t=S^e[e[e[R^S]]],r^=e[e[r]]):t=r=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],S=r.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,n=e.words,t=e.sigBytes/4,r=4*((this._nRounds=t+6)+1),i=this._keySchedule=[],a=0;a<r;a++)a<t?i[a]=n[a]:(c=i[a-1],a%t?t>6&&a%t==4&&(c=o[c>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c]):(c=o[(c=c<<8|c>>>24)>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c],c^=f[a/t|0]<<24),i[a]=i[a-t]^c);for(var s=this._invKeySchedule=[],u=0;u<r;u++){if(a=r-u,u%4)var c=i[a];else c=i[a-4];s[u]=u<4||a<=4?c:_[o[c>>>24]]^E[o[c>>>16&255]]^l[o[c>>>8&255]]^d[o[255&c]]}}},encryptBlock:function(e,n){this._doCryptBlock(e,n,this._keySchedule,a,s,u,c,o)},decryptBlock:function(e,n){var t=e[n+1];e[n+1]=e[n+3],e[n+3]=t,this._doCryptBlock(e,n,this._invKeySchedule,_,E,l,d,i),t=e[n+1],e[n+1]=e[n+3],e[n+3]=t},_doCryptBlock:function(e,n,t,r,o,i,a,s){for(var u=this._nRounds,c=e[n]^t[0],_=e[n+1]^t[1],E=e[n+2]^t[2],l=e[n+3]^t[3],d=4,f=1;f<u;f++){var S=r[c>>>24]^o[_>>>16&255]^i[E>>>8&255]^a[255&l]^t[d++],I=r[_>>>24]^o[E>>>16&255]^i[l>>>8&255]^a[255&c]^t[d++],R=r[E>>>24]^o[l>>>16&255]^i[c>>>8&255]^a[255&_]^t[d++],g=r[l>>>24]^o[c>>>16&255]^i[_>>>8&255]^a[255&E]^t[d++];c=S,_=I,E=R,l=g}S=(s[c>>>24]<<24|s[_>>>16&255]<<16|s[E>>>8&255]<<8|s[255&l])^t[d++],I=(s[_>>>24]<<24|s[E>>>16&255]<<16|s[l>>>8&255]<<8|s[255&c])^t[d++],R=(s[E>>>24]<<24|s[l>>>16&255]<<16|s[c>>>8&255]<<8|s[255&_])^t[d++],g=(s[l>>>24]<<24|s[c>>>16&255]<<16|s[_>>>8&255]<<8|s[255&E])^t[d++],e[n]=S,e[n+1]=I,e[n+2]=R,e[n+3]=g},keySize:8});e.AES=n._createHelper(S)}(),t.AES)}({get exports(){return pt},set exports(e){pt=e}});var xt=new Uint8Array(16);function Vt(){if(!Ut&&!(Ut="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ut(xt)}for(var Wt=[],Gt=0;Gt<256;++Gt)Wt.push((Gt+256).toString(16).slice(1));var Ht,Jt,Yt,jt={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Kt(e,n,t){if(jt.randomUUID&&!n&&!e)return jt.randomUUID();var r=(e=e||{}).random||(e.rng||Vt)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,n){t=t||0;for(var o=0;o<16;++o)n[t+o]=r[o];return n}return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Wt[e[n+0]]+Wt[e[n+1]]+Wt[e[n+2]]+Wt[e[n+3]]+"-"+Wt[e[n+4]]+Wt[e[n+5]]+"-"+Wt[e[n+6]]+Wt[e[n+7]]+"-"+Wt[e[n+8]]+Wt[e[n+9]]+"-"+Wt[e[n+10]]+Wt[e[n+11]]+Wt[e[n+12]]+Wt[e[n+13]]+Wt[e[n+14]]+Wt[e[n+15]]}(r)}!function(e){e[e.PENDING=0]="PENDING",e[e.READY=1]="READY",e[e.CLOSE=2]="CLOSE"}(Ht||(Ht={})),function(e){e[e.NPM=0]="NPM",e[e.CDN=1]="CDN"}(Jt||(Jt={})),function(e){e[e.RECORD_NOT_ENABLED=2e4]="RECORD_NOT_ENABLED",e[e.START_RECORD_UNAVAILABLE=20001]="START_RECORD_UNAVAILABLE",e[e.START_RECORD_INVALID_BODY=20002]="START_RECORD_INVALID_BODY",e[e.EXIST_RECORD_CONFLICT=20003]="EXIST_RECORD_CONFLICT",e[e.RECORD_OVERHEAD_CAPACITY=20004]="RECORD_OVERHEAD_CAPACITY",e[e.LEADER_NOT_JOINED=20005]="LEADER_NOT_JOINED",e[e.LEADER_DENIED=20006]="LEADER_DENIED",e[e.RECORD_ABORTED=20007]="RECORD_ABORTED",e[e.END_RECORD_UNAVAILABLE=21e3]="END_RECORD_UNAVAILABLE",e[e.END_RECORD_INVALID_BODY=21001]="END_RECORD_INVALID_BODY",e[e.RECORD_ALREADY_PAUSED=22e3]="RECORD_ALREADY_PAUSED",e[e.RECORD_ALREADY_RESUMED=23e3]="RECORD_ALREADY_RESUMED",e[e.NO_ACTIVE_RECORD=24e3]="NO_ACTIVE_RECORD",e[e.RECORD_IN_START_PROGRESS=24001]="RECORD_IN_START_PROGRESS",e[e.RECORD_IN_STOP_PROGRESS=24002]="RECORD_IN_STOP_PROGRESS",e[e.CHS_JWT_MISSING=25100]="CHS_JWT_MISSING",e[e.CHS_JWT_DECODE_FAILED=25101]="CHS_JWT_DECODE_FAILED",e[e.CHS_JWT_INVALID_PAYLOAD=25102]="CHS_JWT_INVALID_PAYLOAD",e[e.CHS_JWT_ISS_AUD_MISSING=25103]="CHS_JWT_ISS_AUD_MISSING",e[e.CHS_JWT_ISS_AUD_DENIED=25104]="CHS_JWT_ISS_AUD_DENIED",e[e.CHS_JWT_VERIFY_FAILED=25105]="CHS_JWT_VERIFY_FAILED",e[e.SESSION_ID_NOT_MATCH=25200]="SESSION_ID_NOT_MATCH",e[e.AID_IN_JWT_MISSING=25201]="AID_IN_JWT_MISSING",e[e.UID_IN_JWT_MISSING=25202]="UID_IN_JWT_MISSING",e[e.RECORD_ID_MISSING=25203]="RECORD_ID_MISSING",e[e.RECORD_TASK_NOT_EXIST=25204]="RECORD_TASK_NOT_EXIST",e[e.PAGE_CONTEXT_BOOTSTRAP_FAILED=26100]="PAGE_CONTEXT_BOOTSTRAP_FAILED",e[e.PAGE_CONTROLLER_INIT_FAILED=26101]="PAGE_CONTROLLER_INIT_FAILED",e[e.PAGE_LOAD_HTML_FAILED=26102]="PAGE_LOAD_HTML_FAILED",e[e.PAGE_INJECT_INIT_FAILED=26103]="PAGE_INJECT_INIT_FAILED",e[e.PAGE_INJECT_CONTEXT_FAILED=26104]="PAGE_INJECT_CONTEXT_FAILED",e[e.PAGE_START_FAILED=26105]="PAGE_START_FAILED",e[e.PAGE_STOP_FAILED=26106]="PAGE_STOP_FAILED",e[e.RECORDER_INIT_FAILED=26200]="RECORDER_INIT_FAILED",e[e.RECORDER_CDP_SESSION_START_FAILED=26201]="RECORDER_CDP_SESSION_START_FAILED",e[e.RECORDER_CDP_SESSION_STOP_FAILED=26202]="RECORDER_CDP_SESSION_STOP_FAILED",e[e.RECORDER_CDP_SESSION_ALREADY_DESTROYED=26203]="RECORDER_CDP_SESSION_ALREADY_DESTROYED",e[e.DISK_USAGE_FULL=26204]="DISK_USAGE_FULL",e[e.CONNECT_CHS_FAILED=26301]="CONNECT_CHS_FAILED",e[e.CONNECT_CHS_FAILOVER=26302]="CONNECT_CHS_FAILOVER",e[e.CONNECT_CHS_DESTROYED=26303]="CONNECT_CHS_DESTROYED",e[e.CONNECT_CHS_DISCONNECTED=26304]="CONNECT_CHS_DISCONNECTED",e[e.CONNECT_CHS_TIMEOUT=26305]="CONNECT_CHS_TIMEOUT",e[e.UDS_INIT_FAILED=26400]="UDS_INIT_FAILED",e[e.UDS_SUB_PROCESS_INIT_FAILED=26401]="UDS_SUB_PROCESS_INIT_FAILED",e[e.UDS_SUB_PROCESS_INIT_TIMEOUT=26402]="UDS_SUB_PROCESS_INIT_TIMEOUT",e[e.UDS_CLINET_INIT_FAILED=26403]="UDS_CLINET_INIT_FAILED",e[e.UDS_SERVER_INIT_FAILED=26404]="UDS_SERVER_INIT_FAILED",e[e.UDS_SERVER_LISTEN_FAILED=26405]="UDS_SERVER_LISTEN_FAILED",e[e.FILE_INIT_FAILED=26500]="FILE_INIT_FAILED",e[e.FILE_META_INIT_FAILED=26501]="FILE_META_INIT_FAILED",e[e.FILE_META_CLIP_INIT_FAILED=26502]="FILE_META_CLIP_INIT_FAILED",e[e.FILE_META_OPEN_FAILED=26503]="FILE_META_OPEN_FAILED",e[e.FILE_META_LOCK_FAILED=26504]="FILE_META_LOCK_FAILED",e[e.FILE_META_RELEASE_FAILED=26505]="FILE_META_RELEASE_FAILED",e[e.FILE_META_WRITE_FAILED=26506]="FILE_META_WRITE_FAILED",e[e.ZCB_WEB_NOT_AVAILABLE=26600]="ZCB_WEB_NOT_AVAILABLE",e[e.ZCB_CRS_NOT_AVAILABLE=26601]="ZCB_CRS_NOT_AVAILABLE",e[e.REDIS_GET_CLIP_SIZE_FAILED=26700]="REDIS_GET_CLIP_SIZE_FAILED",e[e.REDIS_SET_CLIP_SIZE_FAILED=26701]="REDIS_SET_CLIP_SIZE_FAILED",e[e.REDIS_GET_START_TIME_FAILED=26702]="REDIS_GET_START_TIME_FAILED",e[e.REDIS_SET_START_TIME_FAILED=26703]="REDIS_SET_START_TIME_FAILED",e[e.ASSETS_FETCH_FAILED=26800]="ASSETS_FETCH_FAILED",e[e.ASSETS_WRITE_FAILED=26801]="ASSETS_WRITE_FAILED"}(Yt||(Yt={})),Yt.RECORD_OVERHEAD_CAPACITY,Yt.RECORD_OVERHEAD_CAPACITY;var zt,Zt={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Zt,Yt.START_RECORD_UNAVAILABLE,"start record api not available"),Yt.START_RECORD_INVALID_BODY,"start record response body invalid"),Yt.END_RECORD_UNAVAILABLE,"end record api not available"),Yt.END_RECORD_INVALID_BODY,"end record response body invalid"),Yt.EXIST_RECORD_CONFLICT,"already has an existed recording"),Yt.NO_ACTIVE_RECORD,"no existed recording"),Yt.RECORD_IN_START_PROGRESS,"recording is in start progress"),Yt.RECORD_IN_STOP_PROGRESS,"recording is in stop progress"),Yt.RECORD_ALREADY_PAUSED,"recording already paused"),Yt.RECORD_ALREADY_RESUMED,"recording already resumed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Zt,Yt.RECORD_NOT_ENABLED,"recording not enabled"),Yt.RECORD_OVERHEAD_CAPACITY,"recording capacity is overhead"),Yt.LEADER_NOT_JOINED,"leader not joined room"),Yt.LEADER_DENIED,"leader denied recording"),Yt.RECORD_ABORTED,"recording aborted"),Yt.CHS_JWT_MISSING,"CHS JWT is empty"),Yt.CHS_JWT_DECODE_FAILED,"CHS JWT decode error"),Yt.CHS_JWT_INVALID_PAYLOAD,"CHS JWT payload invalid"),Yt.CHS_JWT_ISS_AUD_MISSING,"CHS JWT iss or aud empty"),Yt.CHS_JWT_ISS_AUD_DENIED,"invalid iss and aud"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Zt,Yt.CHS_JWT_VERIFY_FAILED,"token verify failed"),Yt.SESSION_ID_NOT_MATCH,"sessionId in header is not match in jwt payload"),Yt.AID_IN_JWT_MISSING,"aid in token is required"),Yt.UID_IN_JWT_MISSING,"uid in token is required"),Yt.RECORD_ID_MISSING,"recordId is empty"),Yt.RECORD_TASK_NOT_EXIST,"record task not exist"),Yt.PAGE_CONTEXT_BOOTSTRAP_FAILED,"bootstrap playwright failed"),Yt.PAGE_CONTROLLER_INIT_FAILED,"PageController init failed"),Yt.PAGE_LOAD_HTML_FAILED,"page load html failed"),Yt.PAGE_INJECT_INIT_FAILED,"PageInjector init failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Zt,Yt.PAGE_INJECT_CONTEXT_FAILED,"injectPageContext failed"),Yt.PAGE_START_FAILED,"page start record failed"),Yt.PAGE_STOP_FAILED,"page start stop failed"),Yt.RECORDER_INIT_FAILED,"PageRecorder init failed"),Yt.RECORDER_CDP_SESSION_START_FAILED,"record start cdp session failed"),Yt.RECORDER_CDP_SESSION_STOP_FAILED,"record stop cdp session failed"),Yt.RECORDER_CDP_SESSION_ALREADY_DESTROYED,"PageRecorder has already been destroyed"),Yt.DISK_USAGE_FULL,"Server disk is full"),Yt.CONNECT_CHS_FAILED,"CHS is not available"),Yt.CONNECT_CHS_FAILOVER,"CHS connection is failover now"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Zt,Yt.CONNECT_CHS_DESTROYED,"CHS connection is destroyed by client"),Yt.CONNECT_CHS_DISCONNECTED,"CHS connection is disconnected"),Yt.CONNECT_CHS_TIMEOUT,"wait for CHS connection timeout"),Yt.UDS_INIT_FAILED,"UDSManager init failed"),Yt.UDS_SUB_PROCESS_INIT_FAILED,"uds sub process init failed"),Yt.UDS_SUB_PROCESS_INIT_TIMEOUT,"uds sub process init timeout"),Yt.UDS_CLINET_INIT_FAILED,"UDSClient init failed"),Yt.UDS_SERVER_INIT_FAILED,"UDSServer init failed"),Yt.UDS_SERVER_LISTEN_FAILED,"UDSServer listen failed"),Yt.FILE_INIT_FAILED,"FileManager init failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Zt,Yt.FILE_META_INIT_FAILED,"MetaDataManager init failed"),Yt.FILE_META_CLIP_INIT_FAILED,"SubClipManager init failed"),Yt.FILE_META_OPEN_FAILED,"open metadata failed"),Yt.FILE_META_LOCK_FAILED,"metadata lock failed"),Yt.FILE_META_RELEASE_FAILED,"metadata release failed"),Yt.FILE_META_WRITE_FAILED,"metadata write failed"),Yt.ZCB_WEB_NOT_AVAILABLE,"web is not available"),Yt.ZCB_CRS_NOT_AVAILABLE,"crs is not available"),Yt.REDIS_GET_CLIP_SIZE_FAILED,"get clip size failed"),Yt.REDIS_SET_CLIP_SIZE_FAILED,"set clip size failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(Zt,Yt.REDIS_GET_START_TIME_FAILED,"get record start time failed"),Yt.REDIS_SET_START_TIME_FAILED,"set record start time failed"),Yt.ASSETS_FETCH_FAILED,"fetch assets from cdn failed"),Yt.ASSETS_WRITE_FAILED,"write assets to local disk failed"),function(e){e[e.INIT=0]="INIT",e[e.RUNNING=1]="RUNNING",e[e.PAUSE=2]="PAUSE",e[e.FINISH=3]="FINISH"}(zt||(zt={}));var Xt,qt;!function(e){e[e.WS_CONN_KEEPALIVE=0]="WS_CONN_KEEPALIVE",e[e.WS_CONN_VECTOR_DATA=1]="WS_CONN_VECTOR_DATA",e[e.WS_DOC_JSON_JOIN_RES=8194]="WS_DOC_JSON_JOIN_RES"}(Xt||(Xt={})),function(e){e.CONNECTED="CONNECTED",e.DISCONNECTED="DISCONNECTED",e.END_ROOM="END_ROOM",e.LEAVE_ROOM="LEAVE_ROOM",e.INTERACTION_BINARY="INTERACTION_BINARY",e.INTERACTION="INTERACTION",e.FULL_SNAPSHOT_REQUEST="FULL_SNAPSHOT_REQUEST",e.GET_BINARY="GET_BINARY",e.USER_BE_HOLD_STATUS_CHANGE="USER_BE_HOLD_STATUS_CHANGE",e.USER_ROSTER="USER_ROSTER",e.ROOM_ROSTER="ROOM_ROSTER",e.REMOTE_CONTROL_STATUS="REMOTE_CONTROL_STATUS",e.REMOTE_CONTROL_REQUEST="REMOTE_CONTROL_REQUEST",e.REMOTE_CONTROL_RESPONSE="REMOTE_CONTROL_RESPONSE",e.REMOTE_CONTROL_GIVE_UP="REMOTE_CONTROL_GIVE_UP",e.REMOTE_CONTROL_TAKE_BACK="REMOTE_CONTROL_TAKE_BACK",e.REMOTE_CONTROL_REJECT="REMOTE_CONTROL_REJECT",e.REMOTE_CONTROL_CANCEL="REMOTE_CONTROL_CANCEL",e.START_RECORD="START_RECORD",e.STOP_RECORD="STOP_RECORD",e.PAUSE_RECORD="PAUSE_RECORD",e.RESUME_RECORD="RESUME_RECORD",e.START_RECORD_RESPONSE="START_RECORD_RESPONSE",e.STOP_RECORD_RESPONSE="STOP_RECORD_RESPONSE",e.PAUSE_RECORD_RESPONSE="PAUSE_RECORD_RESPONSE",e.RESUME_RECORD_RESPONSE="RESUME_RECORD_RESPONSE",e.RECORD_APPROVE_REQUEST="RECORD_APPROVE_REQUEST",e.RECORD_APPROVE_RESPONSE="RECORD_APPROVE_RESPONSE",e.ANNOTATION="ANNOTATION",e.FLYING_CURSOR="FLYING_CURSOR",e.LEADER_PAGE_VISIBILITY="LEADER_PAGE_VISIBILITY",e.RTT="RTT",e.NTP="NTP"}(qt||(qt={})),_defineProperty(_defineProperty(_defineProperty(_defineProperty({},qt.ANNOTATION,!0),qt.INTERACTION,!0),qt.INTERACTION_BINARY,!0),qt.FLYING_CURSOR,!0),_defineProperty(_defineProperty({},qt.RTT,!0),qt.NTP,!0),_defineProperty(_defineProperty({},qt.INTERACTION,!0),qt.INTERACTION_BINARY,!0);var Qt={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Qt,qt.INTERACTION,!0),qt.INTERACTION_BINARY,!0),qt.FULL_SNAPSHOT_REQUEST,!0),qt.REMOTE_CONTROL_STATUS,!0),qt.REMOTE_CONTROL_REQUEST,!0),qt.REMOTE_CONTROL_RESPONSE,!0),qt.REMOTE_CONTROL_GIVE_UP,!0),qt.REMOTE_CONTROL_TAKE_BACK,!0),qt.REMOTE_CONTROL_REJECT,!0),qt.REMOTE_CONTROL_CANCEL,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Qt,qt.START_RECORD,!0),qt.RESUME_RECORD,!0),qt.PAUSE_RECORD,!0),qt.STOP_RECORD,!0),qt.ANNOTATION,!0),qt.FLYING_CURSOR,!0),qt.NTP,!0);var $t,er,nr={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(nr,qt.INTERACTION,!0),qt.INTERACTION_BINARY,!0),qt.FULL_SNAPSHOT_REQUEST,!0),qt.USER_ROSTER,!0),qt.ROOM_ROSTER,!0),qt.REMOTE_CONTROL_STATUS,!0),qt.REMOTE_CONTROL_REQUEST,!0),qt.REMOTE_CONTROL_RESPONSE,!0),qt.REMOTE_CONTROL_GIVE_UP,!0),qt.REMOTE_CONTROL_TAKE_BACK,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(nr,qt.REMOTE_CONTROL_REJECT,!0),qt.REMOTE_CONTROL_CANCEL,!0),qt.START_RECORD,!0),qt.RESUME_RECORD,!0),qt.PAUSE_RECORD,!0),qt.STOP_RECORD,!0),qt.START_RECORD_RESPONSE,!0),qt.STOP_RECORD_RESPONSE,!0),qt.PAUSE_RECORD_RESPONSE,!0),qt.RESUME_RECORD_RESPONSE,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty(nr,qt.RECORD_APPROVE_REQUEST,!0),qt.RECORD_APPROVE_RESPONSE,!0),qt.ANNOTATION,!0),qt.FLYING_CURSOR,!0),_defineProperty(_defineProperty(_defineProperty({},qt.RECORD_APPROVE_RESPONSE,!0),qt.LEAVE_ROOM,!0),qt.FLYING_CURSOR,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty({},at.RegisterCustomerCursorDOM,!0),at.UnregisterUser,!0),at.RegisterOtherAgentCursorDOM,!0),at.UpdateCursorPositionLocal,!0),function(e){e[e.IN_PROGRESS=4e4]="IN_PROGRESS",e[e.OPPOSITE_REJECT=40001]="OPPOSITE_REJECT",e[e.LEADER_NOT_FOUND=40002]="LEADER_NOT_FOUND"}($t||($t={})),_defineProperty(_defineProperty(_defineProperty({},$t.IN_PROGRESS,"remote control is in progress"),$t.OPPOSITE_REJECT,"the opposite side refuses to be controlled"),$t.LEADER_NOT_FOUND,"leader not exist or has left"),function(e){e[e.LEAVE_ROOM=4e4]="LEAVE_ROOM",e[e.DISCONNECTED=40001]="DISCONNECTED",e[e.WEB_REPORT_REGION_FAILED=40100]="WEB_REPORT_REGION_FAILED",e[e.WEB_REPORT_REGION_NOT_MATCH=40101]="WEB_REPORT_REGION_NOT_MATCH",e[e.WEB_REPORT_USER_JOIN_FAILED=40102]="WEB_REPORT_USER_JOIN_FAILED",e[e.WEB_REPORT_USER_JOIN_EMPTY=40103]="WEB_REPORT_USER_JOIN_EMPTY",e[e.WEB_REPORT_USER_JOIN_EMPTY_USER=40104]="WEB_REPORT_USER_JOIN_EMPTY_USER",e[e.AUTH_CONFLICT=40200]="AUTH_CONFLICT",e[e.AUTH_VERIFY_FAILED=40201]="AUTH_VERIFY_FAILED",e[e.AUTH_DB_QUERY_ERROR=40202]="AUTH_DB_QUERY_ERROR",e[e.AUTH_USER_ID_VERIFY_FAILED=40203]="AUTH_USER_ID_VERIFY_FAILED",e[e.AUTH_USER_ID_NO_EXIST=40204]="AUTH_USER_ID_NO_EXIST",e[e.ROOM_NOT_EXIST=40210]="ROOM_NOT_EXIST",e[e.ROOM_ADD_USER_FAILED=40211]="ROOM_ADD_USER_FAILED",e[e.LEADER_CONFLICT=40212]="LEADER_CONFLICT",e[e.FOLLOWER_CONFLICT=40213]="FOLLOWER_CONFLICT",e[e.SESSION_ALREADY_ENDED=40214]="SESSION_ALREADY_ENDED",e[e.ROOM_DEPRECATED=40216]="ROOM_DEPRECATED",e[e.REACHED_LEADER_LIMIT=40217]="REACHED_LEADER_LIMIT",e[e.REACHED_FOLLOWER_LIMIT=40218]="REACHED_FOLLOWER_LIMIT",e[e.SAME_LEADER_JOINED=40219]="SAME_LEADER_JOINED",e[e.ROOM_ID_MISSING=40300]="ROOM_ID_MISSING",e[e.AUTH_PAYLOAD_MISSING=40301]="AUTH_PAYLOAD_MISSING",e[e.START_URL_INVALID=40302]="START_URL_INVALID",e[e.SERVER_RESTARTED=40400]="SERVER_RESTARTED",e[e.WSSGW_REMOVE_NODE=40401]="WSSGW_REMOVE_NODE",e[e.META_DATA_INVALID=40402]="META_DATA_INVALID",e[e.WSSGW_INSTANCE_NOT_FOUND=40403]="WSSGW_INSTANCE_NOT_FOUND",e[e.MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE=40501]="MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE",e[e.MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION=40502]="MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION",e[e.END_ROOM=41e3]="END_ROOM",e[e.DESTROY_DEACTIVE_ROOM=41001]="DESTROY_DEACTIVE_ROOM",e[e.DESTROY_SLEEP_ROOM=41002]="DESTROY_SLEEP_ROOM",e[e.DESTROY_NO_VALID_OPERATION_ROOM=41003]="DESTROY_NO_VALID_OPERATION_ROOM",e[e.NO_OTHER_ACTIVE_USER=42e3]="NO_OTHER_ACTIVE_USER",e[e.RECORD_ALREADY_ENDED=42001]="RECORD_ALREADY_ENDED",e[e.RECORD_START_FAILED=42002]="RECORD_START_FAILED"}(er||(er={})),er.LEAVE_ROOM,er.WEB_REPORT_USER_JOIN_FAILED,er.AUTH_CONFLICT,er.AUTH_VERIFY_FAILED,er.LEADER_CONFLICT,er.FOLLOWER_CONFLICT,er.SESSION_ALREADY_ENDED,er.ROOM_ID_MISSING,er.AUTH_PAYLOAD_MISSING,er.START_URL_INVALID,er.END_ROOM,er.DESTROY_DEACTIVE_ROOM,er.DESTROY_SLEEP_ROOM,er.DESTROY_NO_VALID_OPERATION_ROOM,er.NO_OTHER_ACTIVE_USER,er.RECORD_ALREADY_ENDED,er.REACHED_LEADER_LIMIT,er.REACHED_FOLLOWER_LIMIT,er.MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE,er.MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION,er.SESSION_ALREADY_ENDED,er.END_ROOM,er.DESTROY_DEACTIVE_ROOM;var tr,rr,or={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(or,er.LEAVE_ROOM,"normal leave"),er.DISCONNECTED,"user disconnected"),er.WEB_REPORT_REGION_FAILED,"call web report zone region api failed"),er.WEB_REPORT_REGION_NOT_MATCH,"report zone region mismatch with session hosting region"),er.WEB_REPORT_USER_JOIN_EMPTY,"call web user join api return empty response"),er.WEB_REPORT_USER_JOIN_FAILED,"call web user join api failed"),er.WEB_REPORT_USER_JOIN_EMPTY_USER,"call web user join api return empty user info"),er.AUTH_CONFLICT,"auth is already consumed once"),er.AUTH_VERIFY_FAILED,"auth payload is denyed"),er.AUTH_DB_QUERY_ERROR,"get auth from redis failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(or,er.AUTH_USER_ID_VERIFY_FAILED,"sub channel user_id verify failed"),er.AUTH_USER_ID_NO_EXIST,"main channel user_id not exist"),er.ROOM_NOT_EXIST,"room not exist or create failed"),er.ROOM_ADD_USER_FAILED,"room add new user failed"),er.LEADER_CONFLICT,"leader already exist"),er.FOLLOWER_CONFLICT,"follower already exist"),er.ROOM_DEPRECATED,"room is deprecated"),er.SAME_LEADER_JOINED,"leader with the same user_id joined the room"),er.SESSION_ALREADY_ENDED,"room is already ended"),er.ROOM_ID_MISSING,"room id is required"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(or,er.AUTH_PAYLOAD_MISSING,"auth payload is required"),er.START_URL_INVALID,"startUrl is invalid"),er.SERVER_RESTARTED,"server restarted"),er.WSSGW_REMOVE_NODE,"wssgw node instance removed"),er.META_DATA_INVALID,"message meta data invalid"),er.WSSGW_INSTANCE_NOT_FOUND,"wssgw instance not found"),er.MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE,"message size limit exceeded by minute"),er.MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION,"message size limit exceeded by session"),er.END_ROOM,"The user actively clicked \'end\'."),er.DESTROY_DEACTIVE_ROOM,"The session ended automatically because there was only 1 user present for 3 minutes."),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(or,er.DESTROY_SLEEP_ROOM,"The session ended automatically due to no user activity in the session for 5 minutes."),er.DESTROY_NO_VALID_OPERATION_ROOM,"The session ended automatically due to no valid operation messages"),er.NO_OTHER_ACTIVE_USER,"no other active user in this meeting except record virtual user"),er.RECORD_ALREADY_ENDED,"record already ended"),er.RECORD_START_FAILED,"record start failed"),er.REACHED_LEADER_LIMIT,"the number of leaders has reached the limit"),er.REACHED_FOLLOWER_LIMIT,"the number of followers has reached the limit"),function(e){e[e.RECORD_LEGAL_CONSENT=0]="RECORD_LEGAL_CONSENT"}(tr||(tr={})),function(e){e[e.ACTIVE=0]="ACTIVE",e[e.PASSIVE=1]="PASSIVE",e[e.REJECT=2]="REJECT"}(rr||(rr={})),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},$n.MouseMove,!0),$n.MouseInteraction,!0),$n.Scroll,!0),$n.ViewportResize,!0),$n.Input,!0),$n.TouchMove,!0),$n.MediaInteraction,!0),$n.Drag,!0),$n.Selection,!0);var ir=function(){return!!window.ZCB_NPM_SDK_AGENT_MAIN||window.ZCB_NPM_SDK_CUSTOMER_MAIN},ar=function(){return window.ZCB_NPM_SDK_AGENT_SESSION_CONTEXT},sr=function(){return Hn.getCoBrowsingConfig("sdkVersion")},ur=function(){return!!Hn.getCoBrowsingConfig("originalSdkVersion")},cr=function(){return Hn.getCoBrowsingConfig("originalSdkVersion")},_r=function(e,n,t){var r,o={};try{var i=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(gt(i).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join("")),s=JSON.parse(a);return n.forEach((function(e){o[e]=s[e]})),o}catch(e){return null===(r=null==t?void 0:t.error)||void 0===r||r.call(t,"getValueFromJwt failed"),o}},Er=function(e){var n="string"==typeof e?e:e.toString();return!["/session-status"].some((function(e){return n.includes(e)}))},lr=["table index is out of bounds","ResizeObserver loop completed with undelivered notifications"],dr=(new Date).getTime()-6048e5,fr=[],Sr=[],Ir={log:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.log,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return o(void 0,void 0,void 0,_regeneratorRuntime().mark((function o(){return _regeneratorRuntime().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:fr.push({message:e,tag:n,logLevel:t,extraProperties:Object.assign({timestamp:Date.now()},r)});case 1:case"end":return o.stop()}}),o)})))},reportByFilter:function(e){},directReport:function(e,n){Sr.push({payload:e,options:n})},getLogs:function(e){},setReportUrl:function(e){Oe.setDynamicReportUrl(e)}},Rr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ce()&&!ir())return Promise.resolve();var n,t,r,o,i,a=(r=e.zmTrackingId,o=void 0===r?"":r,i=[new he({debug:!1,cleanAfterReport:!0,expireBefore:dr}),new Ae({enable:!0,debug:!1,ignoredErrorMsgKeywords:lr,maxErrorCount:223,publicTags:[o,"ZCB-CLIENT","ERROR",null!==(n=null===location||void 0===location?void 0:location.host)&&void 0!==n?n:""]}),new Gn({enable:!1,debug:!1,publicTags:[o,"STATIC_RESOURCE",null!==(t=null===location||void 0===location?void 0:location.host)&&void 0!==t?t:"","ZCB-CLIENT"],includeResourceList:["zcb-core.css","zcb-core.js"],excludeResourceTimingKeys:[],userRegion:""})],{databaseName:"laplace-zcb-client-database",maxSize:49283072,reportUrl:Oe.getCurrentReportUrl(),plugins:i});return de.init(a).then((function(e){var n,t,r,o;e&&(n=Ir,r=(null==(t=e)?void 0:t.getLogs("ZCB-CLIENT"))||[],o=new Set(r.map((function(e){return null==e?void 0:e.id}))),((null==n?void 0:n.getLogs("ZCB-CLIENT"))||[]).forEach((function(e){if(e&&!o.has(null==e?void 0:e.id)){var n=e||{},t=n.message,r=n.tags,i=n.logLevel,a=n.host,s=n.timestamp;fr.push({message:t,tag:r,logLevel:i,extraProperties:{host:a,timestamp:s}})}})),Ir=e,Ce()&&(fr.length&&Promise.allSettled(fr.map((function(e){var n=e.message,t=e.tag,r=e.logLevel,o=e.extraProperties;return Ir.log(n,t,r,o)}))).then((function(){fr.length=0,Ir.reportByFilter(["ZCB-CLIENT"])})),Sr.length&&Promise.allSettled(Sr.map((function(e){var n=e.payload,t=e.options;return Ir.directReport(n,t)}))).then((function(){Sr.length=0}))))})).catch((function(e){console.error("initLaplace ERROR:",e)}))};function gr(e,n){var t=(65535&e)+(65535&n);return(e>>16)+(n>>16)+(t>>16)<<16|65535&t}function Tr(e,n,t,r,o,i){return gr((a=gr(gr(n,e),gr(r,i)))<<(s=o)|a>>>32-s,t);var a,s}function pr(e,n,t,r,o,i,a){return Tr(n&t|~n&r,e,n,o,i,a)}function Or(e,n,t,r,o,i,a){return Tr(n&r|t&~r,e,n,o,i,a)}function Cr(e,n,t,r,o,i,a){return Tr(n^t^r,e,n,o,i,a)}function hr(e,n,t,r,o,i,a){return Tr(t^(n|~r),e,n,o,i,a)}function Nr(e,n){var t,r,o,i,a;e[n>>5]|=128<<n%32,e[14+(n+64>>>9<<4)]=n;var s=1732584193,u=-271733879,c=-1732584194,_=271733878;for(t=0;t<e.length;t+=16)r=s,o=u,i=c,a=_,s=pr(s,u,c,_,e[t],7,-680876936),_=pr(_,s,u,c,e[t+1],12,-389564586),c=pr(c,_,s,u,e[t+2],17,606105819),u=pr(u,c,_,s,e[t+3],22,-1044525330),s=pr(s,u,c,_,e[t+4],7,-176418897),_=pr(_,s,u,c,e[t+5],12,1200080426),c=pr(c,_,s,u,e[t+6],17,-1473231341),u=pr(u,c,_,s,e[t+7],22,-45705983),s=pr(s,u,c,_,e[t+8],7,1770035416),_=pr(_,s,u,c,e[t+9],12,-1958414417),c=pr(c,_,s,u,e[t+10],17,-42063),u=pr(u,c,_,s,e[t+11],22,-1990404162),s=pr(s,u,c,_,e[t+12],7,1804603682),_=pr(_,s,u,c,e[t+13],12,-40341101),c=pr(c,_,s,u,e[t+14],17,-1502002290),s=Or(s,u=pr(u,c,_,s,e[t+15],22,1236535329),c,_,e[t+1],5,-165796510),_=Or(_,s,u,c,e[t+6],9,-1069501632),c=Or(c,_,s,u,e[t+11],14,643717713),u=Or(u,c,_,s,e[t],20,-373897302),s=Or(s,u,c,_,e[t+5],5,-701558691),_=Or(_,s,u,c,e[t+10],9,38016083),c=Or(c,_,s,u,e[t+15],14,-660478335),u=Or(u,c,_,s,e[t+4],20,-405537848),s=Or(s,u,c,_,e[t+9],5,568446438),_=Or(_,s,u,c,e[t+14],9,-1019803690),c=Or(c,_,s,u,e[t+3],14,-187363961),u=Or(u,c,_,s,e[t+8],20,1163531501),s=Or(s,u,c,_,e[t+13],5,-1444681467),_=Or(_,s,u,c,e[t+2],9,-51403784),c=Or(c,_,s,u,e[t+7],14,1735328473),s=Cr(s,u=Or(u,c,_,s,e[t+12],20,-1926607734),c,_,e[t+5],4,-378558),_=Cr(_,s,u,c,e[t+8],11,-2022574463),c=Cr(c,_,s,u,e[t+11],16,1839030562),u=Cr(u,c,_,s,e[t+14],23,-35309556),s=Cr(s,u,c,_,e[t+1],4,-1530992060),_=Cr(_,s,u,c,e[t+4],11,1272893353),c=Cr(c,_,s,u,e[t+7],16,-155497632),u=Cr(u,c,_,s,e[t+10],23,-1094730640),s=Cr(s,u,c,_,e[t+13],4,681279174),_=Cr(_,s,u,c,e[t],11,-358537222),c=Cr(c,_,s,u,e[t+3],16,-722521979),u=Cr(u,c,_,s,e[t+6],23,76029189),s=Cr(s,u,c,_,e[t+9],4,-640364487),_=Cr(_,s,u,c,e[t+12],11,-421815835),c=Cr(c,_,s,u,e[t+15],16,530742520),s=hr(s,u=Cr(u,c,_,s,e[t+2],23,-995338651),c,_,e[t],6,-198630844),_=hr(_,s,u,c,e[t+7],10,1126891415),c=hr(c,_,s,u,e[t+14],15,-1416354905),u=hr(u,c,_,s,e[t+5],21,-57434055),s=hr(s,u,c,_,e[t+12],6,1700485571),_=hr(_,s,u,c,e[t+3],10,-1894986606),c=hr(c,_,s,u,e[t+10],15,-1051523),u=hr(u,c,_,s,e[t+1],21,-2054922799),s=hr(s,u,c,_,e[t+8],6,1873313359),_=hr(_,s,u,c,e[t+15],10,-30611744),c=hr(c,_,s,u,e[t+6],15,-1560198380),u=hr(u,c,_,s,e[t+13],21,1309151649),s=hr(s,u,c,_,e[t+4],6,-145523070),_=hr(_,s,u,c,e[t+11],10,-1120210379),c=hr(c,_,s,u,e[t+2],15,718787259),u=hr(u,c,_,s,e[t+9],21,-343485551),s=gr(s,r),u=gr(u,o),c=gr(c,i),_=gr(_,a);return[s,u,c,_]}function Ar(e){var n,t="",r=32*e.length;for(n=0;n<r;n+=8)t+=String.fromCharCode(e[n>>5]>>>n%32&255);return t}function Dr(e){var n,t=[];for(t[(e.length>>2)-1]=void 0,n=0;n<t.length;n+=1)t[n]=0;var r=8*e.length;for(n=0;n<r;n+=8)t[n>>5]|=(255&e.charCodeAt(n/8))<<n%32;return t}function vr(e){var n,t,r="0123456789abcdef",o="";for(t=0;t<e.length;t+=1)n=e.charCodeAt(t),o+=r.charAt(n>>>4&15)+r.charAt(15&n);return o}function mr(e){return unescape(encodeURIComponent(e))}function yr(e){return function(e){return Ar(Nr(Dr(e),8*e.length))}(mr(e))}function Pr(e,n){return function(e,n){var t,r,o=Dr(e),i=[],a=[];for(i[15]=a[15]=void 0,o.length>16&&(o=Nr(o,8*e.length)),t=0;t<16;t+=1)i[t]=909522486^o[t],a[t]=1549556828^o[t];return r=Nr(i.concat(Dr(n)),512+8*n.length),Ar(Nr(a.concat(r),640))}(mr(e),mr(n))}function br(e,n,t){return n?t?Pr(n,e):function(e,n){return vr(Pr(e,n))}(n,e):t?yr(e):vr(yr(e))}var Lr=function(e){return Boolean(null==e?void 0:e.log)},wr=function(e,n){return[e,n].flatMap((function(e){return e})).map((function(e){return"function"==typeof e?e():e})).filter((function(e){return Boolean(e)}))},Mr=function(){function e(){_classCallCheck(this,e),this.ZCB_ZmTrackingIds={}}return _createClass(e,[{key:"setZmTrackingIds",value:function(e){var n=e.zmWebTrackingId,t=e.zmChsTrackingId,r=e.zmTrackingId;this.ZCB_ZmTrackingIds={zmWebTrackingId:n,zmChsTrackingId:t,zmTrackingId:r}}},{key:"genZmTrackingId",value:function(){var e=Kt(),n="zcb_client_".concat(e,"_0"),t="".concat(e,"_0");return this.ZCB_ZmTrackingIds={zmWebTrackingId:n,zmChsTrackingId:t,zmTrackingId:e},{zmWebTrackingId:n,zmChsTrackingId:t,zmTrackingId:e}}},{key:"getZmTrackingId",value:function(){var e,n=null===(e=this.ZCB_ZmTrackingIds)||void 0===e?void 0:e.zmTrackingId;return n||(console.warn("getZmTrackingId failed, generate new zmTrackingId: ".concat(n)),n=this.genZmTrackingId().zmTrackingId),n}},{key:"clearZmTrackingId",value:function(){this.ZCB_ZmTrackingIds={}}},{key:"genFailOverZmChsTrackingId",value:function(){var e,n=null===(e=this.ZCB_ZmTrackingIds)||void 0===e?void 0:e.zmChsTrackingId;n||(n=this.genZmTrackingId().zmChsTrackingId);var t=n.match(/(\\d+)(?!.*\\d+)/);if(t){var r=parseInt(t[0])+1,o=n.substring(0,t.index)+r;return this.ZCB_ZmTrackingIds&&(this.ZCB_ZmTrackingIds.zmChsTrackingId=o),o}return this.genZmTrackingId().zmChsTrackingId}},{key:"getZmTrackingIdForWeb",value:function(){var e,n=null===(e=this.ZCB_ZmTrackingIds)||void 0===e?void 0:e.zmWebTrackingId;n||(n=this.genZmTrackingId().zmWebTrackingId);var t=n.match(/(\\d+)(?!.*\\d+)/);if(t){var r=parseInt(t[0])+1,o=n.substring(0,t.index)+r;return this.ZCB_ZmTrackingIds&&(this.ZCB_ZmTrackingIds.zmWebTrackingId=o),o}return this.genZmTrackingId().zmWebTrackingId}},{key:"getZmTrackingIdForChs",value:function(){var e,n=null===(e=this.ZCB_ZmTrackingIds)||void 0===e?void 0:e.zmChsTrackingId;return n||(n=this.genZmTrackingId().zmChsTrackingId),n}}]),e}(),Fr=globalThis.ZCB_TrackingIdController||new Mr;globalThis.ZCB_TrackingIdController=Fr;function Ur(e){if("object"===("undefined"==typeof window?"undefined":_typeof(window))){var n=encodeURI(e);return btoa(n)}return Buffer.from(e).toString("base64")}var kr,Br,xr,Vr,Wr,Gr,Hr=function(e){return Ur(e)},Jr=function(){function e(n){var t=n.requestOrigin,r=n.parentFrameId;_classCallCheck(this,e),this.parentFrameId=r;var o=Hr(t);r&&(o=r+"--"+o),this.frameId=o}return _createClass(e,[{key:"equal",value:function(e){var n=e.requestOrigin,t=e.parentFrameId;return t===this.parentFrameId&&this.frameId===t+"--"+Hr(n)}},{key:"isParentFrame",value:function(e){return this.frameId===e}},{key:"isSubFrame",value:function(e){return this.parentFrameId===e}}]),e}(),Yr=function(){function e(n){_classCallCheck(this,e),this.frames=new Map,this.tabId=n}return _createClass(e,[{key:"getFrame",value:function(e){var n=e.requestOrigin,t=e.parentFrameId,r=null;return this.frames.forEach((function(e){e.equal({requestOrigin:n,parentFrameId:t})&&(r=e)})),r}},{key:"checkAddFrame",value:function(e){var n=this,t=e.requestOrigin,r=e.parentFrameId,o=this.getFrame({requestOrigin:t,parentFrameId:r});if(o)return o;if(this.tabId===r)return this.addFrame({requestOrigin:t,parentFrameId:r});var i=null;return this.frames.forEach((function(e){i||e.isParentFrame(r)&&(i=n.addFrame({requestOrigin:t,parentFrameId:r}))})),i}},{key:"getSubFrames",value:function(e){var n=[];return this.frames.forEach((function(t){t.isSubFrame(e)&&n.push(t)})),n}},{key:"addFrame",value:function(e){var n=e.requestOrigin,t=e.parentFrameId,r=new Jr({requestOrigin:n,parentFrameId:t});return this.frames.set(r.frameId,r),r}}]),e}(),jr=function(){function e(){_classCallCheck(this,e),this.tabs=new Map}return _createClass(e,[{key:"makeRequest",value:function(e){var n=e.requestOrigin,t=e.parentFrameId,r="";return t?(this.tabs.forEach((function(e){if(!r){var o=e.checkAddFrame({requestOrigin:n,parentFrameId:t});o&&(r=o.frameId)}})),r):this.tabs.size?(this.tabs.forEach((function(e,n){r||(r=n)})),r):(r=Hr(n),this.tabs.set(r,new Yr(r)),r)}},{key:"makeViewerRequest",value:function(e){var n=e.parentFrameId,t="";return this.tabs.forEach((function(e){var r;if(n){if(t)return;var o=e.getSubFrames(n);t=(null===(r=o[0])||void 0===r?void 0:r.frameId)||""}else t=e.tabId})),t}}]),e}(),Kr=new(function(){function e(){_classCallCheck(this,e),this.rooms=new Map}return _createClass(e,[{key:"makeRequest",value:function(e){var n=e.roomId,t=e.requestOrigin,r=e.parentFrameId,o=e.isViewer;this.rooms.get(n)||this.rooms.set(n,new jr);var i=this.rooms.get(n);return i?o?i.makeViewerRequest({parentFrameId:r}):i.makeRequest({requestOrigin:t,parentFrameId:r}):""}}]),e}());"undefined"!=typeof global&&(global.cpsRoomManager=Kr),function(e){e.UNKNOW="unknow",e.BROWSER="browser",e.BROWSER_WORKER="worker",e.NODE="node",e.NODE_WORKER="node_worker"}(kr||(kr={})),Br="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,xr="undefined"!=typeof window,Vr="function"==typeof importScripts,Wr=Br&&!Vr,Gr=!Br&&!xr,Vr?kr.BROWSER_WORKER:xr?kr.BROWSER:Gr?kr.NODE:Wr?kr.NODE_WORKER:kr.UNKNOW;var zr=_createClass((function e(){var n=this;_classCallCheck(this,e),this.promise=new Promise((function(e,t){n.reject=t,n.resolve=e})),this.promise.then((function(e){return n.resolved=!0,e})).catch((function(){n.resolved=!1})).finally((function(){n.finished=!0,n.finishedTimestamp=Date.now()}))}));var Zr=function(){function e(n){_classCallCheck(this,e),this.cache=new Map,this.limit=n}return _createClass(e,[{key:"get",value:function(e){if(this.cache.has(e)){var n=this.cache.get(e);return this.cache.delete(e),this.cache.set(e,n),n}}},{key:"set",value:function(e,n){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.limit){var t=this.cache.keys().next().value;this.cache.delete(t)}this.cache.set(e,n)}},{key:"has",value:function(e){return this.cache.has(e)}},{key:"delete",value:function(e){return this.cache.delete(e)}},{key:"clear",value:function(){this.cache.clear()}},{key:"keys",value:function(){return Array.from(this.cache.keys())}},{key:"values",value:function(){return Array.from(this.cache.values())}}]),e}(),Xr="function",qr="object",Qr="string",$r="model",eo="name",no="type",to="vendor",ro="version",oo="architecture",io="hardwareConcurrency",ao="console",so="mobile",uo="tablet",co="smarttv",_o="wearable",Eo="Amazon",lo="Apple",fo="ASUS",So="BlackBerry",Io="Browser",Ro="Chrome",go="Firefox",To="Google",po="Huawei",Oo="LG",Co="Microsoft",ho="Motorola",No="Opera",Ao="Samsung",Do="Sharp",vo="Sony",mo="Xiaomi",yo="Zebra",Po="Facebook",bo={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Lo=function(e){return e.toLowerCase()},wo=function(e,n){return _typeof(e)===Qr&&-1!==Lo(n).indexOf(Lo(e))},Mo=function(e,n){return _typeof(e)===Qr?(e=e.replace(/^\\s\\s*/,""),"undefined"===_typeof(n)?e:e.substring(0,350)):""},Fo=function(e,n){for(var t in n)if(_typeof(n[t])===qr&&n[t].length>0){for(var r=0;r<n[t].length;r++)if(wo(n[t][r],e))return"?"===t?void 0:t}else if(wo(n[t],e))return"?"===t?void 0:t;return e},Uo={browser:[[/(ZoomApps)\\/([\\w\\.]+)/i],[eo,ro],[/\\b(?:crmo|crios)\\/([\\w\\.]+)/i],[ro,[eo,"Chrome"]],[/edg(?:e|ios|a)?\\/([\\w\\.]+)/i],[ro,[eo,"Edge"]],[/(opera mini)\\/([-\\w\\.]+)/i,/(opera [mobiletab]{3,6})\\b.+version\\/([-\\w\\.]+)/i,/(opera)(?:.+version\\/|[\\/ ]+)([\\w\\.]+)/i],[eo,ro],[/opios[\\/ ]+([\\w\\.]+)/i],[ro,[eo,No+" Mini"]],[/\\bopr\\/([\\w\\.]+)/i],[ro,[eo,No]],[/(kindle)\\/([\\w\\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\\/ ]?([\\w\\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\\/ ]?([\\w\\.]*)/i,/(ba?idubrowser)[\\/ ]?([\\w\\.]+)/i,/(?:ms|\\()(ie) ([\\w\\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\\/([-\\w\\.]+)/i,/(weibo)__([\\d\\.]+)/i],[eo,ro],[/(?:\\buc? ?browser|(?:juc.+)ucweb)[\\/ ]?([\\w\\.]+)/i],[ro,[eo,"UC"+Io]],[/microm.+\\bqbcore\\/([\\w\\.]+)/i,/\\bqbcore\\/([\\w\\.]+).+microm/i],[ro,[eo,"WeChat(Win) Desktop"]],[/micromessenger\\/([\\w\\.]+)/i],[ro,[eo,"WeChat"]],[/konqueror\\/([\\w\\.]+)/i],[ro,[eo,"Konqueror"]],[/trident.+rv[: ]([\\w\\.]{1,9})\\b.+like gecko/i],[ro,[eo,"IE"]],[/yabrowser\\/([\\w\\.]+)/i],[ro,[eo,"Yandex"]],[/(avast|avg)\\/([\\w\\.]+)/i],[[eo,/(.+)/,"$1 Secure "+Io],ro],[/\\bfocus\\/([\\w\\.]+)/i],[ro,[eo,go+" Focus"]],[/\\bopt\\/([\\w\\.]+)/i],[ro,[eo,No+" Touch"]],[/coc_coc\\w+\\/([\\w\\.]+)/i],[ro,[eo,"Coc Coc"]],[/dolfin\\/([\\w\\.]+)/i],[ro,[eo,"Dolphin"]],[/coast\\/([\\w\\.]+)/i],[ro,[eo,No+" Coast"]],[/miuibrowser\\/([\\w\\.]+)/i],[ro,[eo,"MIUI "+Io]],[/fxios\\/([-\\w\\.]+)/i],[ro,[eo,go]],[/\\bqihu|(qi?ho?o?|360)browser/i],[[eo,"360 "+Io]],[/(oculus|samsung|sailfish|huawei)browser\\/([\\w\\.]+)/i],[[eo,/(.+)/,"$1 "+Io],ro],[/(comodo_dragon)\\/([\\w\\.]+)/i],[[eo,/_/g," "],ro],[/(electron)\\/([\\w\\.]+) safari/i,/(tesla)(?: qtcarbrowser|\\/(20\\d\\d\\.[-\\w\\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\\/ ]?([\\w\\.]+)/i],[eo,ro],[/(metasr)[\\/ ]?([\\w\\.]+)/i,/(lbbrowser)/i,/\\[(linkedin)app\\]/i],[eo],[/((?:fban\\/fbios|fb_iab\\/fb4a)(?!.+fbav)|;fbav\\/([\\w\\.]+);)/i],[[eo,Po],ro],[/safari (line)\\/([\\w\\.]+)/i,/\\b(line)\\/([\\w\\.]+)\\/iab/i,/(chromium|instagram)[\\/ ]([-\\w\\.]+)/i],[eo,ro],[/\\bgsa\\/([\\w\\.]+) .*safari\\//i],[ro,[eo,"GSA"]],[/headlesschrome(?:\\/([\\w\\.]+)| )/i],[ro,[eo,Ro+" Headless"]],[/ wv\\).+(chrome)\\/([\\w\\.]+)/i],[[eo,Ro+" WebView"],ro],[/droid.+ version\\/([\\w\\.]+)\\b.+(?:mobile safari|safari)/i],[ro,[eo,"Android "+Io]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\\/v?([\\w\\.]+)/i],[eo,ro],[/version\\/([\\w\\.\\,]+) .*mobile\\/\\w+ (safari)/i],[ro,[eo,"Mobile Safari"]],[/version\\/([\\w(\\.|\\,)]+) .*(mobile ?safari|safari)/i],[ro,eo],[/webkit.+?(mobile ?safari|safari)(\\/[\\w\\.]+)/i],[eo,[ro,Fo,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\\/([\\w\\.]+)/i],[eo,ro],[/(navigator|netscape\\d?)\\/([-\\w\\.]+)/i],[[eo,"Netscape"],ro],[/mobile vr; rv:([\\w\\.]+)\\).+firefox/i],[ro,[eo,go+" Reality"]],[/ekiohf.+(flow)\\/([\\w\\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\\/ ]?([\\w\\.\\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\\/([-\\w\\.]+)$/i,/(firefox)\\/([\\w\\.]+)/i,/(mozilla)\\/([\\w\\.]+) .+rv\\:.+gecko\\/\\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\\. ]?browser)[-\\/ ]?v?([\\w\\.]+)/i,/(links) \\(([\\w\\.]+)/i],[eo,ro],[/(cobalt)\\/([\\w\\.]+)/i],[eo,[ro,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\\)]/i],[[oo,"amd64"]],[/(ia32(?=;))/i],[[oo,Lo]],[/((?:i[346]|x)86)[;\\)]/i],[[oo,"ia32"]],[/\\b(aarch64|arm(v?8e?l?|_?64))\\b/i],[[oo,"arm64"]],[/\\b(arm(?:v[67])?ht?n?[fl]p?)\\b/i],[[oo,"armhf"]],[/windows (ce|mobile); ppc;/i],[[oo,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\\))/i],[[oo,/ower/,"",Lo]],[/(sun4\\w)[;\\)]/i],[[oo,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\\))|\\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\\b|pa-risc)/i],[[oo,Lo]]],device:[[/\\b(sch-i[89]0\\d|shw-m380s|sm-[ptx]\\w{2,4}|gt-[pn]\\d{2,4}|sgh-t8[56]9|nexus 10)/i],[$r,[to,Ao],[no,uo]],[/\\b((?:s[cgp]h|gt|sm)-\\w+|galaxy nexus)/i,/samsung[- ]([-\\w]+)/i,/sec-(sgh\\w+)/i],[$r,[to,Ao],[no,so]],[/((ipod|iphone)\\d+,\\d+)/i],[$r,[to,lo],[no,so]],[/(ipad\\d+,\\d+)/i],[$r,[to,lo],[no,uo]],[/\\((ip(?:hone|od)[\\w ]*);/i],[$r,[to,lo],[no,so]],[/\\((ipad);[-\\w\\),; ]+apple/i,/applecoremedia\\/[\\w\\.]+ \\((ipad)/i,/\\b(ipad)\\d\\d?,\\d\\d?[;\\]].+ios/i],[$r,[to,lo],[no,uo]],[/(macintosh);/i],[$r,[to,lo]],[/\\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\\d{2})\\b(?!.+d\\/s)/i],[$r,[to,po],[no,uo]],[/(?:huawei|honor)([-\\w ]+)[;\\)]/i,/\\b(nexus 6p|\\w{2,4}e?-[atu]?[ln][\\dx][012359c][adn]?)\\b(?!.+d\\/s)/i],[$r,[to,po],[no,so]],[/\\b(poco[\\w ]+)(?: bui|\\))/i,/\\b; (\\w+) build\\/hm\\1/i,/\\b(hm[-_ ]?note?[_ ]?(?:\\d\\w)?) bui/i,/\\b(redmi[\\-_ ]?(?:note|k)?[\\w_ ]+)(?: bui|\\))/i,/\\b(mi[-_ ]?(?:a\\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\\d?\\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\\))/i],[[$r,/_/g," "],[to,mo],[no,so]],[/\\b(mi[-_ ]?(?:pad)(?:[\\w_ ]+))(?: bui|\\))/i],[[$r,/_/g," "],[to,mo],[no,uo]],[/; (\\w+) bui.+ oppo/i,/\\b(cph[12]\\d{3}|p(?:af|c[al]|d\\w|e[ar])[mt]\\d0|x9007|a101op)\\b/i],[$r,[to,"OPPO"],[no,so]],[/vivo (\\w+)(?: bui|\\))/i,/\\b(v[12]\\d{3}\\w?[at])(?: bui|;)/i],[$r,[to,"Vivo"],[no,so]],[/\\b(rmx[12]\\d{3})(?: bui|;|\\))/i],[$r,[to,"Realme"],[no,so]],[/\\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\\b[\\w ]+build\\//i,/\\bmot(?:orola)?[- ](\\w*)/i,/((?:moto[\\w\\(\\) ]+|xt\\d{3,4}|nexus 6)(?= bui|\\)))/i],[$r,[to,ho],[no,so]],[/\\b(mz60\\d|xoom[2 ]{0,2}) build\\//i],[$r,[to,ho],[no,uo]],[/((?=lg)?[vl]k\\-?\\d{3}) bui| 3\\.[-\\w; ]{10}lg?-([06cv9]{3,4})/i],[$r,[to,Oo],[no,uo]],[/(lm(?:-?f100[nv]?|-[\\w\\.]+)(?= bui|\\))|nexus [45])/i,/\\blg[-e;\\/ ]+((?!browser|netcast|android tv)\\w+)/i,/\\blg-?([\\d\\w]+) bui/i],[$r,[to,Oo],[no,so]],[/(ideatab[-\\w ]+)/i,/lenovo ?(s[56]000[-\\w]+|tab(?:[\\w ]+)|yt[-\\d\\w]{6}|tb[-\\d\\w]{6})/i],[$r,[to,"Lenovo"],[no,uo]],[/(?:maemo|nokia).*(n900|lumia \\d+)/i,/nokia[-_ ]?([-\\w\\.]*)/i],[[$r,/_/g," "],[to,"Nokia"],[no,so]],[/(pixel c)\\b/i],[$r,[to,To],[no,uo]],[/droid.+; (pixel[\\daxl ]{0,6})(?: bui|\\))/i],[$r,[to,To],[no,so]],[/droid.+ (a?\\d[0-2]{2}so|[c-g]\\d{4}|so[-gl]\\w+|xq-a\\w[4-7][12])(?= bui|\\).+chrome\\/(?![1-6]{0,1}\\d\\.))/i],[$r,[to,vo],[no,so]],[/sony tablet [ps]/i,/\\b(?:sony)?sgp\\w+(?: bui|\\))/i],[[$r,"Xperia Tablet"],[to,vo],[no,uo]],[/ (kb2005|in20[12]5|be20[12][59])\\b/i,/(?:one)?(?:plus)? (a\\d0\\d\\d)(?: b|\\))/i],[$r,[to,"OnePlus"],[no,so]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\\))/i,/(kf[a-z]+)( bui|\\)).+silk\\//i],[$r,[to,Eo],[no,uo]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\\)).+silk\\//i],[[$r,/(.+)/g,"Fire Phone $1"],[to,Eo],[no,so]],[/(playbook);[-\\w\\),; ]+(rim)/i],[$r,to,[no,uo]],[/\\b((?:bb[a-f]|st[hv])100-\\d)/i,/\\(bb10; (\\w+)/i],[$r,[to,So],[no,so]],[/(?:\\b|asus_)(transfo[prime ]{4,10} \\w+|eeepc|slider \\w+|nexus 7|padfone|p00[cj])/i],[$r,[to,fo],[no,uo]],[/ (z[bes]6[027][012][km][ls]|zenfone \\d\\w?)\\b/i],[$r,[to,fo],[no,so]],[/(nexus 9)/i],[$r,[to,"HTC"],[no,uo]],[/(htc)[-;_ ]{1,2}([\\w ]+(?=\\)| bui)|\\w+)/i,/(zte)[- ]([\\w ]+?)(?: bui|\\/|\\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\\w]*)/i],[to,[$r,/_/g," "],[no,so]],[/droid.+; ([ab][1-7]-?[0178a]\\d\\d?)/i],[$r,[to,"Acer"],[no,uo]],[/droid.+; (m[1-5] note) bui/i,/\\bmz-([-\\w]{2,})/i],[$r,[to,"Meizu"],[no,so]],[/\\b(sh-?[altvz]?\\d\\d[a-ekm]?)/i],[$r,[to,Do],[no,so]],[/(blackberry|benq|palm(?=\\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\\w]*)/i,/(hp) ([\\w ]+\\w)/i,/(asus)-?(\\w+)/i,/(microsoft); (lumia[\\w ]+)/i,/(lenovo)[-_ ]?([-\\w]+)/i,/(jolla)/i,/(oppo) ?([\\w ]+) bui/i],[to,$r,[no,so]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\\/([\\w\\.]+)/i,/(nook)[\\w ]+build\\/(\\w+)/i,/(dell) (strea[kpr\\d ]*[\\dko])/i,/(le[- ]+pan)[- ]+(\\w{1,9}) bui/i,/(trinity)[- ]*(t\\d{3}) bui/i,/(gigaset)[- ]+(q\\w{1,9}) bui/i,/(vodafone) ([\\w ]+)(?:\\)| bui)/i],[to,$r,[no,uo]],[/(surface duo)/i],[$r,[to,Co],[no,uo]],[/droid [\\d\\.]+; (fp\\du?)(?: b|\\))/i],[$r,[to,"Fairphone"],[no,so]],[/(u304aa)/i],[$r,[to,"AT&T"],[no,so]],[/\\bsie-(\\w*)/i],[$r,[to,"Siemens"],[no,so]],[/\\b(rct\\w+) b/i],[$r,[to,"RCA"],[no,uo]],[/\\b(venue[\\d ]{2,7}) b/i],[$r,[to,"Dell"],[no,uo]],[/\\b(q(?:mv|ta)\\w+) b/i],[$r,[to,"Verizon"],[no,uo]],[/\\b(?:barnes[& ]+noble |bn[rt])([\\w\\+ ]*) b/i],[$r,[to,"Barnes & Noble"],[no,uo]],[/\\b(tm\\d{3}\\w+) b/i],[$r,[to,"NuVision"],[no,uo]],[/\\b(k88) b/i],[$r,[to,"ZTE"],[no,uo]],[/\\b(nx\\d{3}j) b/i],[$r,[to,"ZTE"],[no,so]],[/\\b(gen\\d{3}) b.+49h/i],[$r,[to,"Swiss"],[no,so]],[/\\b(zur\\d{3}) b/i],[$r,[to,"Swiss"],[no,uo]],[/\\b((zeki)?tb.*\\b) b/i],[$r,[to,"Zeki"],[no,uo]],[/\\b([yr]\\d{2}) b/i,/\\b(dragon[- ]+touch |dt)(\\w{5}) b/i],[[to,"Dragon Touch"],$r,[no,uo]],[/\\b(ns-?\\w{0,9}) b/i],[$r,[to,"Insignia"],[no,uo]],[/\\b((nxa|next)-?\\w{0,9}) b/i],[$r,[to,"NextBook"],[no,uo]],[/\\b(xtreme\\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[to,"Voice"],$r,[no,so]],[/\\b(lvtel\\-)?(v1[12]) b/i],[[to,"LvTel"],$r,[no,so]],[/\\b(ph-1) /i],[$r,[to,"Essential"],[no,so]],[/\\b(v(100md|700na|7011|917g).*\\b) b/i],[$r,[to,"Envizen"],[no,uo]],[/\\b(trio[-\\w\\. ]+) b/i],[$r,[to,"MachSpeed"],[no,uo]],[/\\btu_(1491) b/i],[$r,[to,"Rotor"],[no,uo]],[/(shield[\\w ]+) b/i],[$r,[to,"Nvidia"],[no,uo]],[/(sprint) (\\w+)/i],[to,$r,[no,so]],[/(kin\\.[onetw]{3})/i],[[$r,/\\./g," "],[to,Co],[no,so]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\\)/i],[$r,[to,yo],[no,uo]],[/droid.+; (ec30|ps20|tc[2-8]\\d[kx])\\)/i],[$r,[to,yo],[no,so]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[to,$r,[no,ao]],[/droid.+; (shield) bui/i],[$r,[to,"Nvidia"],[no,ao]],[/(playstation [345portablevi]+)/i],[$r,[to,vo],[no,ao]],[/\\b(xbox(?: one)?(?!; xbox))[\\); ]/i],[$r,[to,Co],[no,ao]],[/smart-tv.+(samsung)/i],[to,[no,co]],[/hbbtv.+maple;(\\d+)/i],[[$r,/^/,"SmartTV"],[to,Ao],[no,co]],[/(nux; netcast.+smarttv|lg (netcast\\.tv-201\\d|android tv))/i],[[to,Oo],[no,co]],[/(apple) ?tv/i],[to,[$r,lo+" TV"],[no,co]],[/crkey/i],[[$r,Ro+"cast"],[to,To],[no,co]],[/droid.+aft(\\w)( bui|\\))/i],[$r,[to,Eo],[no,co]],[/\\(dtv[\\);].+(aquos)/i,/(aquos-tv[\\w ]+)\\)/i],[$r,[to,Do],[no,co]],[/(bravia[\\w ]+)( bui|\\))/i],[$r,[to,vo],[no,co]],[/(mitv-\\w{5}) bui/i],[$r,[to,mo],[no,co]],[/\\b(roku)[\\dx]*[\\)\\/]((?:dvp-)?[\\d\\.]*)/i,/hbbtv\\/\\d+\\.\\d+\\.\\d+ +\\([\\w ]*; *(\\w[^;]*);([^;]*)/i],[[to,Mo],[$r,Mo],[no,co]],[/\\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\\b/i],[[no,co]],[/((pebble))app/i],[to,$r,[no,_o]],[/droid.+; (glass) \\d/i],[$r,[to,To],[no,_o]],[/droid.+; (wt63?0{2,3})\\)/i],[$r,[to,yo],[no,_o]],[/(quest( 2)?)/i],[$r,[to,Po],[no,_o]],[/(tesla)(?: qtcarbrowser|\\/[-\\w\\.]+)/i],[to,[no,"embedded"]],[/droid .+?; ([^;]+?)(?: bui|\\) applew).+? mobile safari/i],[$r,[no,so]],[/droid .+?; ([^;]+?)(?: bui|\\) applew).+?(?! mobile) safari/i],[$r,[no,uo]],[/\\b((tablet|tab)[;\\/]|focus\\/\\d(?!.+mobile))/i],[[no,uo]],[/(phone|mobile(?:[;\\/]| [ \\w\\/\\.]*safari)|pda(?=.+windows ce))/i],[[no,so]],[/(android[-\\w\\. ]{0,9});.+buil/i],[$r,[to,"Generic"]]],engine:[[/windows.+ edge\\/([\\w\\.]+)/i],[ro,[eo,"EdgeHTML"]],[/webkit\\/537\\.36.+chrome\\/(?!27)([\\w\\.]+)/i],[ro,[eo,"Blink"]],[/(presto)\\/([\\w\\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\\/([\\w\\.]+)/i,/ekioh(flow)\\/([\\w\\.]+)/i,/(khtml|tasman|links)[\\/ ]\\(?([\\w\\.]+)/i,/(icab)[\\/ ]([23]\\.[\\d\\.]+)/i],[eo,ro],[/rv\\:([\\w\\.]{1,9})\\b.+(gecko)/i],[ro,eo]],os:[[/microsoft (windows) (vista|xp)/i],[eo,ro],[/(windows) nt 6\\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\\/ ]?([\\d\\.\\w ]*)/i,/(windows)[\\/ ]?([ntce\\d\\. ]+\\w)(?!.+xbox)/i],[eo,[ro,Fo,bo]],[/(win(?=3|9|n)|win 9x )([nt\\d\\.]+)/i],[[eo,"Windows"],[ro,Fo,bo]],[/ip[honead]{2,4}\\b(?:.*os ([\\w]+) like mac|; opera)/i,/cfnetwork\\/.+darwin/i],[[ro,/_/g,"."],[eo,"iOS"]],[/(mac os x) ?([\\w\\. ]*)/i,/(macintosh|mac_powerpc\\b)(?!.+haiku)/i],[[eo,"Mac OS"],[ro,/_/g,"."]],[/droid ([\\w\\.]+)\\b.+(android[- ]x86|harmonyos)/i],[ro,eo],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\\/ ]?([\\w\\.]*)/i,/(blackberry)\\w*\\/([\\w\\.]*)/i,/(tizen|kaios)[\\/ ]([\\w\\.]+)/i,/\\((series40);/i],[eo,ro],[/\\(bb(10);/i],[ro,[eo,So]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\\/ ]?([\\w\\.]*)/i],[ro,[eo,"Symbian"]],[/mozilla\\/[\\d\\.]+ \\((?:mobile|tablet|tv|mobile; [\\w ]+); rv:.+ gecko\\/([\\w\\.]+)/i],[ro,[eo,go+" OS"]],[/web0s;.+rt(tv)/i,/\\b(?:hp)?wos(?:browser)?\\/([\\w\\.]+)/i],[ro,[eo,"webOS"]],[/crkey\\/([\\d\\.]+)/i],[ro,[eo,Ro+"cast"]],[/(cros) [\\w]+ ([\\w\\.]+\\w)/i],[[eo,"Chromium OS"],ro],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\\);]+)/i,/\\b(joli|palm)\\b ?(?:os)?\\/?([\\w\\.]*)/i,/(mint)[\\/\\(\\) ]?(\\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\\/ ]?(?!chrom|package)([-\\w\\.]*)/i,/(hurd|linux) ?([\\w\\.]*)/i,/(gnu) ?([\\w\\.]*)/i,/\\b([-frentopcghs]{0,5}bsd|dragonfly)[\\/ ]?(?!amd|[ix346]{1,2}86)([\\w\\.]*)/i,/(haiku) (\\w+)/i],[eo,ro],[/(sunos) ?([\\w\\.\\d]*)/i],[[eo,"Solaris"],ro],[/((?:open)?solaris)[-\\/ ]?([\\w\\.]*)/i,/(aix) ((\\d)(?=\\.|\\)| )[\\w\\.])*/i,/\\b(beos|os\\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\\w\\.]*)/i],[eo,ro]]},ko=function(){function e(n){_classCallCheck(this,e),this.ua=(null===navigator||void 0===navigator?void 0:navigator.userAgent)||"",this.navigator=navigator||{},n&&(this.ua=n),this.regexes=Uo}return _createClass(e,[{key:"rgxMapper",value:function(e,n){for(var t={},r=0,o=0,i=0,a=0,s=void 0,u=void 0,c=void 0;r<n.length&&!u;){var _=n[r],E=n[r+1];for(o=i=0;o<_.length&&!u;)if(u=_[o++].exec(e))for(a=0;a<E.length;a++)c=u[++i],_typeof(s=E[a])===qr&&s.length>0?2===s.length?_typeof(s[1])==Xr?t[s[0]]=s[1](c):t[s[0]]=s[1]:3===s.length?_typeof(s[1])!==Xr||s[1].exec&&s[1].test?t[s[0]]=c?c.replace(s[1],s[2]):void 0:t[s[0]]=c?s[1](c,s[2]):void 0:4===s.length&&(t[s[0]]=c?s[3](c.replace(s[1],s[2])):void 0):t[s]=c||void 0;r+=2}return t}},{key:"getBrowser",value:function(){var e={};e[eo]=void 0,e[ro]=void 0;var n,t=this.rgxMapper(this.ua,this.regexes.browser);return e.major=_typeof(n=t.version)===Qr?n.replace(/[^\\d\\.]/g,"").split(".")[0]:void 0,Object.assign(e,t),e}},{key:"getCPU",value:function(){var e={};e[oo]=void 0,e[io]=this.navigator[io];var n=this.rgxMapper(this.ua,this.regexes.cpu);return Object.assign(e,n),e}},{key:"getDevice",value:function(){var e={};e[to]=void 0,e[$r]=void 0,e[no]=void 0;var n=this.rgxMapper(this.ua,this.regexes.device);return Object.assign(e,n),e}},{key:"getEngine",value:function(){var e={};e[eo]=void 0,e[ro]=void 0;var n=this.rgxMapper(this.ua,this.regexes.engine);return Object.assign(e,n),e}},{key:"getOS",value:function(){var e={};e[eo]=void 0,e[ro]=void 0;var n=this.rgxMapper(this.ua,this.regexes.os);return Object.assign(e,n),e}},{key:"getUA",value:function(){return this.ua}},{key:"setUA",value:function(e){var n=_typeof(e)===Qr&&e.length>350?Mo(e,350):e;this.ua=n}},{key:"getResult",value:function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}}}]),e}(),Bo=new(function(){function e(){_classCallCheck(this,e),globalThis.ZCB_ZmCobrowseInfo={session:{userId:"",sessionId:"",participantType:"",agentSdkTrackingId:"",region:"",sdkSourceType:void 0},isCobrowseLocked:!1}}return _createClass(e,[{key:"getSession",value:function(){var e;return null===(e=globalThis.ZCB_ZmCobrowseInfo)||void 0===e?void 0:e.session}},{key:"getCobrowse",value:function(){return globalThis.ZCB_ZmCobrowseInfo}},{key:"setSessionId",value:function(e){globalThis.ZCB_ZmCobrowseInfo.session.sessionId=e}},{key:"setAgentSdkTrackingId",value:function(e){globalThis.ZCB_ZmCobrowseInfo.session.agentSdkTrackingId=e}},{key:"setUserId",value:function(e){globalThis.ZCB_ZmCobrowseInfo.session.userId=e}},{key:"setParticipantType",value:function(e){globalThis.ZCB_ZmCobrowseInfo.session.participantType=e}},{key:"setIsCobrowseLocked",value:function(e){globalThis.ZCB_ZmCobrowseInfo.isCobrowseLocked=e}},{key:"setSession",value:function(e){Object.assign(globalThis.ZCB_ZmCobrowseInfo.session,e)}},{key:"setRegion",value:function(e){globalThis.ZCB_ZmCobrowseInfo.session.region=e}},{key:"clearRegion",value:function(){globalThis.ZCB_ZmCobrowseInfo.session.region=""}},{key:"setSdkSourceType",value:function(e){window.ZCB_ZmCobrowseInfo.session.sdkSourceType=e}},{key:"clearSession",value:function(){globalThis.ZCB_ZmCobrowseInfo.session={userId:"",sessionId:"",participantType:"",agentSdkTrackingId:"",region:"",sdkSourceType:void 0},globalThis.ZCB_ZmCobrowseInfo.isCobrowseLocked=!1}}]),e}()),xo={log:new Zr(30),info:new Zr(30),debug:new Zr(30),warn:new Zr(30),error:new Zr(30)},Vo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];try{return(null==e?void 0:e.some((function(e){return"NO-TRACKING"===e})))?"0000":Fr.getZmTrackingId()}catch(e){return console.error("error: ".concat(e)),Fr.getZmTrackingId()}},Wo=function(e,n,t){return["%c ".concat(e," %c ").concat(n," %c"),"background:".concat(t,";border:1px solid ").concat(t,"; padding: 1px; border-radius: 2px 0 0 2px; color: #fff;"),"border:1px solid ".concat(t,"; padding: 1px; border-radius: 0 2px 2px 0; color: ").concat(t,";"),"background:transparent"]},Go=function(){return o(void 0,void 0,void 0,_regeneratorRuntime().mark((function e(){var n;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o(void 0,void 0,void 0,_regeneratorRuntime().mark((function e(){var n,t,r,o,i,a,s,u,c,_;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=(new ko).getResult(),navigator){e.next=3;break}return e.abrupt("return",{});case 3:if(c=Object.assign({appCodeName:navigator.appCodeName,appName:navigator.appName,appVersion:navigator.appVersion,language:navigator.language,connection:{downlink:null===(n=navigator.connection)||void 0===n?void 0:n.downlink,downlinkMax:null===(t=navigator.connection)||void 0===t?void 0:t.downlinkMax,effectiveType:null===(r=navigator.connection)||void 0===r?void 0:r.effectiveType,rtt:null===(o=navigator.connection)||void 0===o?void 0:o.rtt,saveData:null===(i=navigator.connection)||void 0===i?void 0:i.saveData,type:null===(a=navigator.connection)||void 0===a?void 0:a.type},href:location.host},u),!(null===(s=navigator.userAgentData)||void 0===s?void 0:s.getHighEntropyValues)){e.next=18;break}return e.prev=5,e.next=8,navigator.userAgentData.getHighEntropyValues(["architecture","bitness","fullVersionList","platformVersion","wow64","model","formFactor"]);case 8:_=e.sent,c.os&&(c.os.version=_.platformVersion),c.cpu&&(c.cpu.architecture=_.architecture,c.cpu.bitness=_.bitness),c.mobile=_.mobile,c.userAgentData=JSON.stringify(_),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(5),console.log("get userAgentData error",e.t0);case 18:return e.abrupt("return",c);case 19:case"end":return e.stop()}}),e,null,[[5,15]])})));case 2:n=e.sent,jo(["navigator"]).logWithReport(JSON.stringify(n));case 4:case"end":return e.stop()}}),e)})))},Ho=function(e,n){var t=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null,o=0;return function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];var u=Date.now();o||!1!==t.leading||(o=u);var c=n-(u-o),_=this;c<=0||c>n?(r&&(clearTimeout(r),r=null),o=u,e.apply(_,a)):r||!1===t.trailing||(r=setTimeout((function(){o=!1===t.leading?0:Date.now(),r=null,e.apply(_,a)}),c))}}(e,n,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),r=null,o=null,i=null;return function(){for(var e=arguments.length,a=new Array(e),s=0;s<e;s++)a[s]=arguments[s];r=a,o=this,i||(i=setTimeout((function(){r&&(t.apply(o,r),r=null,i=null)}),n)),t.apply(this,a)}}((function(){Ce()&&Ir.reportByFilter(["ZCB-CLIENT"])}),1e4);function Jo(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.log,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4?arguments[4]:void 0;return o(this,void 0,void 0,_regeneratorRuntime().mark((function o(){var i,s,u,c,_,E,l,d,f,S;return _regeneratorRuntime().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return i=(null==a?void 0:a.sessionInfo)||Bo.getSession(),s=i.userId,u=i.sessionId,c=i.participantType,_=i.region,E=i.agentSdkTrackingId,l=i.sdkSourceType,d=(null==a?void 0:a.appKey)||Hn.getCoBrowsingConfig("appKey"),f={uuid:s,appKey:"{E}".concat(d,"{/E}"),sessionId:u,participantType:c,region:_,sdkSourceType:l},E&&(f.agentSdkTrackingId=E),o.next=7,Ir.log(e,n,t,Object.assign({host:a?a.host||"":(null===location||void 0===location?void 0:location.host)||"",zmDeviceId:a?a.zmDeviceId||"":window.ZCB_ZmDeviceId,sdkVersion:a?a.sdkVersion||"":sr(),info:f},r));case 7:return S=o.sent,Ho(),o.abrupt("return",S);case 10:case"end":return o.stop()}}),o)})))}var Yo,jo=function(e,n){var t=_toConsumableArray(wr(["ZCB-CLIENT"],e||[]));return{log:function(e,r){return function(e,n,t,r){var o,a;if(null!==(a=null===(o=null==pe?void 0:pe.logLevel)||void 0===o?void 0:o.log)&&void 0!==a&&a&&Lr(Ir)){var s=(null==r?void 0:r.trackingId)||Vo(t),u=wr([s],n||[]),c=wr(u,t||[]),_=br("".concat(s).concat(e));if(!xo.log.has(_))return xo.log.set(_,!0),Jo(e,c,i.log,{},r)}}(e,t,r,n)},logWithReport:function(e,r){return function(e,n,t,r){var o,a;if(null!==(a=null===(o=null==pe?void 0:pe.logLevel)||void 0===o?void 0:o.log)&&void 0!==a&&a&&Lr(Ir)&&Ce()){var s=(null==r?void 0:r.trackingId)||Vo(t),u=wr([s],n||[]),c=wr(u,t||[]),_=br("".concat(s).concat(e));if(!xo.log.has(_)){xo.log.set(_,!0);var E=(null==r?void 0:r.sessionInfo)||Bo.getSession(),l=E.userId,d=E.sessionId,f=E.participantType,S=E.region,I=E.agentSdkTrackingId,R=E.sdkSourceType,g=(null==r?void 0:r.appKey)||Hn.getCoBrowsingConfig("appKey"),T={uuid:l,appKey:"{E}".concat(g,"{/E}"),sessionId:d,participantType:f,region:S,sdkSourceType:R};return I&&(T.agentSdkTrackingId=I),Ir.directReport({message:e,host:r?r.host||"":(null===location||void 0===location?void 0:location.host)||"",zmDeviceId:r?r.zmDeviceId||"":window.ZCB_ZmDeviceId,sdkVersion:r?r.sdkVersion||"":sr(),info:T},{tags:c,logLevel:i.log})}}}(e,t,r,n)},info:function(e,r){return function(e,n,t,r){var o,a;if(null!==(a=null===(o=null==pe?void 0:pe.logLevel)||void 0===o?void 0:o.info)&&void 0!==a&&a&&Lr(Ir)){var s=(null==r?void 0:r.trackingId)||Vo(t),u=wr([s],n||[]),c=wr(u,t||[]),_=br("".concat(s).concat(e));if(!xo.info.has(_))return xo.info.set(_,!0),Jo(e,c,i.info,{},r)}}(e,t,r,n)},debug:function(e,r){return function(e,n,t,r){var o,a;if(null!==(a=null===(o=null==pe?void 0:pe.logLevel)||void 0===o?void 0:o.debug)&&void 0!==a&&a&&Lr(Ir)){var s=(null==r?void 0:r.trackingId)||Vo(t),u=wr([s],n||[]),c=wr(u,t||[]),_=br("".concat(s).concat(e));if(!xo.debug.has(_))return xo.debug.set(_,!0),Jo(e,c,i.debug,{},r)}}(e,t,r,n)},error:function(e,r){return function(e,n,t,r){var o,a;if((o=console).error.apply(o,_toConsumableArray(Wo("laplace-error",e,"#F56C6C"))),(null===(a=null==pe?void 0:pe.logLevel)||void 0===a?void 0:a.error)&&Lr(Ir)){var s=(null==r?void 0:r.trackingId)||Vo(t),u=wr([s],n||[]),c=wr(u,t||[]),_=br("".concat(s).concat(e));if(!xo.error.has(_))return xo.error.set(_,!0),Jo(e,c,i.error,{},r)}}(e,t,r,n)},warn:function(e,r){return function(e,n,t,r){var o,a,s;if((o=console).warn.apply(o,_toConsumableArray(Wo("laplace-warn",e,"#E6A23C"))),null!==(s=null===(a=null==pe?void 0:pe.logLevel)||void 0===a?void 0:a.warn)&&void 0!==s&&s&&Lr(Ir)){var u=(null==r?void 0:r.trackingId)||Vo(t),c=wr([u],n||[]),_=wr(c,t||[]),E=br("".concat(u).concat(e));if(!xo.warn.has(E))return xo.warn.set(E,!0),Jo(e,_,i.warn,{},r)}}(e,t,r,n)},print:function(e){return function(e){var n,t;null!==(t=null===(n=null==pe?void 0:pe.logLevel)||void 0===n?void 0:n.print)&&void 0!==t&&t&&console.log(e)}(e)},performance:function(e,r){return function(e,n,t,r){var o,a;if(null!==(a=null===(o=null==pe?void 0:pe.logLevel)||void 0===o?void 0:o.log)&&void 0!==a&&a&&Lr(Ir)){var s=(null==r?void 0:r.trackingId)||Vo(t),u=wr([s],n||[]);return Jo(e,wr(u,t||[]),i.log,{},r)}}(e,t,r,n)},performanceRange:function(e,r,o){return function(e,n,t,r,o){var a,s;if(null!==(s=null===(a=null==pe?void 0:pe.logLevel)||void 0===a?void 0:a.log)&&void 0!==s&&s&&Lr(Ir)){var u=(null==o?void 0:o.trackingId)||Vo(r),c=wr([u],t||[]);return Jo(e,wr(c,r||[]),i.log,n,o)}}(e,r,t,o,n)},log_2:function(e,r){return function(e,n,t,r){var o,a;if(null!==(a=null===(o=null==pe?void 0:pe.logLevel)||void 0===o?void 0:o.log)&&void 0!==a&&a&&Lr(Ir)){var s=JSON.stringify(e),u=(null==r?void 0:r.trackingId)||Vo(t),c=wr([u],n||[]);return Jo(s,wr(c,t||[]),i.log,{},r)}}(e,t,r,n)},reportNavigator:function(){Go()},setReportUrl:function(e){!function(e){if(Oe.setDynamicReportUrl(e),Ir&&"function"==typeof Ir.setReportUrl){var n=Ir.reportUrl;Ir.setReportUrl(e),Ce()&&e!==n&&Ir.reportByFilter(["ZCB-CLIENT"])}}(e)},setLaplaceEnabled:function(e){var n;n=e,Oe.setDynamicLaplaceEnabled(n)}}};jo(["performance-log"]),function(e){e[e.ClientInit=1]="ClientInit",e[e.ClientInitFinished=2]="ClientInitFinished",e[e.CreateSessionStart=3]="CreateSessionStart",e[e.CreateSessionEnd=4]="CreateSessionEnd",e[e.PinCodeRequest=5]="PinCodeRequest",e[e.PinCodeUpdated=6]="PinCodeUpdated",e[e.PingEndpointListDone=7]="PingEndpointListDone",e[e.initWS=8]="initWS",e[e.WSConnected2Channel=9]="WSConnected2Channel",e[e.WSConnectedSuccess=10]="WSConnectedSuccess",e[e.SessionStart=11]="SessionStart",e[e.SessionStarted=12]="SessionStarted",e[e.SessionStartFinish=13]="SessionStartFinish",e[e.StartChannel=14]="StartChannel",e[e.UserRoster=15]="UserRoster",e[e.LeaderJoined=16]="LeaderJoined",e[e.FollowerJoined=17]="FollowerJoined",e[e.CallSessionInit=18]="CallSessionInit",e[e.AfterJoined=19]="AfterJoined",e[e.SessionDestroy=20]="SessionDestroy",e[e.AgentReconnectingInAgentSide=21]="AgentReconnectingInAgentSide",e[e.CustomerDisconnectedInAgentSide=22]="CustomerDisconnectedInAgentSide",e[e.CustomerTimeoutInAgentSide=23]="CustomerTimeoutInAgentSide",e[e.AgentReconnectingSuccessInAgentSide=24]="AgentReconnectingSuccessInAgentSide",e[e.CustomerReconnectingSuccessInAgentSide=25]="CustomerReconnectingSuccessInAgentSide",e[e.AgentJoinedInAgentSide=26]="AgentJoinedInAgentSide",e[e.CustomerJoinedInAgentSide=27]="CustomerJoinedInAgentSide",e[e.StartReplayInAgentSide=28]="StartReplayInAgentSide",e[e.CustomerReconnectingInCustomerSide=29]="CustomerReconnectingInCustomerSide",e[e.AgentDisconnectedInCustomerSide=30]="AgentDisconnectedInCustomerSide",e[e.AgentTimeoutInCustomerSide=31]="AgentTimeoutInCustomerSide",e[e.CustomerReconnectingSuccessInCustomerSide=32]="CustomerReconnectingSuccessInCustomerSide",e[e.AgentReconnectingSuccessInCustomerSide=33]="AgentReconnectingSuccessInCustomerSide"}(Yo||(Yo={}));var Ko,zo={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(zo,Yo.ClientInit,"ClientInit"),Yo.ClientInitFinished,"ClientInitFinished"),Yo.CreateSessionStart,"CreateSessionStart"),Yo.CreateSessionEnd,"CreateSessionEnd"),Yo.PinCodeRequest,"PinCodeRequest"),Yo.PinCodeUpdated,"PinCodeUpdated"),Yo.PingEndpointListDone,"PingEndpointListDone"),Yo.initWS,"initWS"),Yo.WSConnected2Channel,"WSConnected2Channel"),Yo.WSConnectedSuccess,"WSConnectedSuccess"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(zo,Yo.SessionStart,"SessionStart"),Yo.SessionStarted,"SessionStarted"),Yo.SessionStartFinish,"SessionStartFinish"),Yo.StartChannel,"StartChannel"),Yo.UserRoster,"UserRoster"),Yo.LeaderJoined,"LeaderJoined"),Yo.FollowerJoined,"FollowerJoined"),Yo.CallSessionInit,"CallSessionInit"),Yo.AfterJoined,"AfterJoined"),Yo.SessionDestroy,"SessionDestroy"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(zo,Yo.AgentReconnectingInAgentSide,"AgentReconnectingInAgentSide"),Yo.CustomerDisconnectedInAgentSide,"CustomerDisconnectedInAgentSide"),Yo.CustomerTimeoutInAgentSide,"CustomerTimeoutInAgentSide"),Yo.AgentReconnectingSuccessInAgentSide,"AgentReconnectingSuccessInAgentSide"),Yo.CustomerReconnectingSuccessInAgentSide,"CustomerReconnectingSuccessInAgentSide"),Yo.AgentJoinedInAgentSide,"AgentJoinedInAgentSide"),Yo.CustomerJoinedInAgentSide,"CustomerJoinedInAgentSide"),Yo.StartReplayInAgentSide,"StartReplayInAgentSide"),Yo.CustomerReconnectingInCustomerSide,"CustomerReconnectingInCustomerSide"),Yo.AgentDisconnectedInCustomerSide,"AgentDisconnectedInCustomerSide"),_defineProperty(_defineProperty(_defineProperty(zo,Yo.AgentTimeoutInCustomerSide,"AgentTimeoutInCustomerSide"),Yo.CustomerReconnectingSuccessInCustomerSide,"CustomerReconnectingSuccessInCustomerSide"),Yo.AgentReconnectingSuccessInCustomerSide,"AgentReconnectingSuccessInCustomerSide"),function(e){e[e.IMAGE=0]="IMAGE",e[e.FONT=1]="FONT"}(Ko||(Ko={})),jo(["cbs-connection"]);var Zo,Xo,qo,Qo,$o,ei,ni,ti,ri,oi,ii,ai=[$n.Input,et.Annotation,et.FullSnapshot],si=function(){function e(n){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.8;_classCallCheck(this,e),this.logger=n,this.sample=r,this.cpuState="",this.localMachineTimeDelta=new Map,this.sessionInfo={sessionId:void 0,sessionRegion:void 0,startUrl:void 0},this.incrementalSourceCountMap=new Map,this.eventCacheListMap=new Map,this.handlePostMessage=function(e){var n=e.data.eventType,r=e.data.data;switch(n){case"SESSION_INFO":t.setSessionInfo(r);break;case"NTP":case qt.NTP:void 0!==r.delta&&t.setLocalMathineTimeDelta(r);break;case qt.END_ROOM:case qt.LEAVE_ROOM:t.destroy()}},this.setLocalMathineTimeDelta=function(e){var n=e.sessionId||e.cId||"";n&&(t.localMachineTimeDelta.set(n,e.delta),e.sessionId&&t.batch(e.sessionId),e.cId&&t.batch(e.cId))},this.setSessionInfo=function(e){t.sessionInfo=e;try{var n=new URL(e.startUrl||"");t.sessionInfo.startUrl=n.origin}catch(e){console.log(e)}},this.log=function(e){var n,r,o=t.sessionInfo.sessionId||"",i=e.cId,a=e.event_source,s=i||o;if((a===et.FullSnapshot||i)&&ai.includes(a)){if(i&&(t.incrementalSourceCountMap.has(i)||(t.incrementalSourceCountMap.set(i,new Map),t.incrementalSourceCountMap.get(i).set(a,0)),!e.source_count)){var u=t.incrementalSourceCountMap.get(i).get(a);if(t.incrementalSourceCountMap.get(i).set(a,u+1),0!==u&&Math.random()>t.sample)return;e.source_count=t.incrementalSourceCountMap.get(i).get(a)}e.cpu_state=t.cpuState;var c=t.localMachineTimeDelta.has(o)?t.localMachineTimeDelta.get(o):t.localMachineTimeDelta.get(i);if(void 0===c)return t.eventCacheListMap.has(s)||t.eventCacheListMap.set(s,[]),void t.eventCacheListMap.get(s).push(e);var _=e.detime-(e.ptime-c),E=Object.assign(Object.assign({},e),{rtt:_,session_id:t.sessionInfo.sessionId,session_region:t.sessionInfo.sessionRegion,start_url:t.sessionInfo.startUrl,sdk_version:Hn.getCoBrowsingConfig("sdkVersion")});null===(r=null===(n=t.logger)||void 0===n?void 0:n.log_2)||void 0===r||r.call(n,E)}},this.observePressure(),this.addEventListener()}return _createClass(e,[{key:"addEventListener",value:function(){window.addEventListener("message",this.handlePostMessage)}},{key:"observePressure",value:function(){var e,n=this;try{if("PressureObserver"in window&&window.location.origin===(null===(e=window.top)||void 0===e?void 0:e.location.origin))new window.PressureObserver((function(e){n.cpuState=e[e.length-1].state})).observe("cpu",{sampleInterval:1e3}).catch((function(){console.log("")}));else this.cpuState=""}catch(e){}}},{key:"batchLog",value:function(e){var n=this;(this.eventCacheListMap.get(e)||[]).forEach((function(e){n.log(e)}))}},{key:"batch",value:function(e){if(e)this.batchLog(e);else{var n,t=_createForOfIteratorHelper(this.eventCacheListMap);try{for(t.s();!(n=t.n()).done;){var r=_slicedToArray(n.value,1)[0];this.batchLog(r)}}catch(e){t.e(e)}finally{t.f()}}}},{key:"delete",value:function(e){this.localMachineTimeDelta.delete(e),this.incrementalSourceCountMap.delete(e),this.eventCacheListMap.delete(e)}},{key:"destroy",value:function(){this.localMachineTimeDelta.clear(),this.incrementalSourceCountMap.clear(),this.eventCacheListMap.clear(),this.sessionInfo={sessionId:void 0,sessionRegion:void 0,startUrl:void 0}}}]),e}();function ui(){}function ci(){ci.init.call(this)}function _i(e){return void 0===e._maxListeners?ci.defaultMaxListeners:e._maxListeners}function Ei(e,n,t,r){var o,i,a,s;if("function"!=typeof t)throw new TypeError(\'"listener" argument must be a function\');if((i=e._events)?(i.newListener&&(e.emit("newListener",n,t.listener?t.listener:t),i=e._events),a=i[n]):(i=e._events=new ui,e._eventsCount=0),a){if("function"==typeof a?a=i[n]=r?[t,a]:[a,t]:r?a.unshift(t):a.push(t),!a.warned&&(o=_i(e))&&o>0&&a.length>o){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+n+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=n,u.count=a.length,s=u,"function"==typeof console.warn?console.warn(s):console.log(s)}}else a=i[n]=t,++e._eventsCount;return e}function li(e,n,t){var r=!1;function o(){e.removeListener(n,o),r||(r=!0,t.apply(e,arguments))}return o.listener=t,o}function di(e){var n=this._events;if(n){var t=n[e];if("function"==typeof t)return 1;if(t)return t.length}return 0}function fi(e,n){for(var t=new Array(n);n--;)t[n]=e[n];return t}function Si(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e})).join("")}function Ii(e){return encodeURIComponent(e).replace(/[!\'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function Ri(e,n,t){return n="+"===e||"#"===e?Si(n):Ii(n),t?Ii(t)+"="+n:n}function gi(e){return null!=e}function Ti(e){return";"===e||"&"===e||"?"===e}function pi(e){var n=["+","#",".","/",";","?","&"];return{expand:function(t){return e.replace(/\\{([^\\{\\}]+)\\}|([^\\{\\}]+)/g,(function(e,r,o){if(r){var i=null,a=[];if(-1!==n.indexOf(r.charAt(0))&&(i=r.charAt(0),r=r.substr(1)),r.split(/,/g).forEach((function(e){var n=/([^:\\*]*)(?::(\\d+)|(\\*))?/.exec(e);a.push.apply(a,function(e,n,t,r){var o=e[t],i=[];if(gi(o)&&""!==o)if("string"==typeof o||"number"==typeof o||"boolean"==typeof o)o=o.toString(),r&&"*"!==r&&(o=o.substring(0,parseInt(r,10))),i.push(Ri(n,o,Ti(n)?t:null));else if("*"===r)Array.isArray(o)?o.filter(gi).forEach((function(e){i.push(Ri(n,e,Ti(n)?t:null))})):Object.keys(o).forEach((function(e){gi(o[e])&&i.push(Ri(n,o[e],e))}));else{var a=[];Array.isArray(o)?o.filter(gi).forEach((function(e){a.push(Ri(n,e))})):Object.keys(o).forEach((function(e){gi(o[e])&&(a.push(Ii(e)),a.push(Ri(n,o[e].toString())))})),Ti(n)?i.push(Ii(t)+"="+a.join(",")):0!==a.length&&i.push(a.join(","))}else";"===n?gi(o)&&i.push(Ii(t)):""!==o||"&"!==n&&"?"!==n?""===o&&i.push(""):i.push(Ii(t)+"=");return i}(t,i,n[1],n[2]||n[3]))})),i&&"+"!==i){var s=",";return"?"===i?s="&":"#"!==i&&(s=i),(0!==a.length?i:"")+a.join(s)}return a.join(",")}return Si(o)}))}}}new si(jo(["cbs-interaction-latency"])),ui.prototype=Object.create(null),ci.EventEmitter=ci,ci.usingDomains=!1,ci.prototype.domain=void 0,ci.prototype._events=void 0,ci.prototype._maxListeners=void 0,ci.defaultMaxListeners=10,ci.init=function(){this.domain=null,ci.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new ui,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},ci.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError(\'"n" argument must be a positive number\');return this._maxListeners=e,this},ci.prototype.getMaxListeners=function(){return _i(this)},ci.prototype.emit=function(e){var n,t,r,o,i,a,s,u="error"===e;if(a=this._events)u=u&&null==a.error;else if(!u)return!1;if(s=this.domain,u){if(n=arguments[1],!s){if(n instanceof Error)throw n;var c=new Error(\'Uncaught, unspecified "error" event. (\'+n+")");throw c.context=n,c}return n||(n=new Error(\'Uncaught, unspecified "error" event\')),n.domainEmitter=this,n.domain=s,n.domainThrown=!1,s.emit("error",n),!1}if(!(t=a[e]))return!1;var _="function"==typeof t;switch(r=arguments.length){case 1:!function(e,n,t){if(n)e.call(t);else for(var r=e.length,o=fi(e,r),i=0;i<r;++i)o[i].call(t)}(t,_,this);break;case 2:!function(e,n,t,r){if(n)e.call(t,r);else for(var o=e.length,i=fi(e,o),a=0;a<o;++a)i[a].call(t,r)}(t,_,this,arguments[1]);break;case 3:!function(e,n,t,r,o){if(n)e.call(t,r,o);else for(var i=e.length,a=fi(e,i),s=0;s<i;++s)a[s].call(t,r,o)}(t,_,this,arguments[1],arguments[2]);break;case 4:!function(e,n,t,r,o,i){if(n)e.call(t,r,o,i);else for(var a=e.length,s=fi(e,a),u=0;u<a;++u)s[u].call(t,r,o,i)}(t,_,this,arguments[1],arguments[2],arguments[3]);break;default:for(o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];!function(e,n,t,r){if(n)e.apply(t,r);else for(var o=e.length,i=fi(e,o),a=0;a<o;++a)i[a].apply(t,r)}(t,_,this,o)}return!0},ci.prototype.addListener=function(e,n){return Ei(this,e,n,!1)},ci.prototype.on=ci.prototype.addListener,ci.prototype.prependListener=function(e,n){return Ei(this,e,n,!0)},ci.prototype.once=function(e,n){if("function"!=typeof n)throw new TypeError(\'"listener" argument must be a function\');return this.on(e,li(this,e,n)),this},ci.prototype.prependOnceListener=function(e,n){if("function"!=typeof n)throw new TypeError(\'"listener" argument must be a function\');return this.prependListener(e,li(this,e,n)),this},ci.prototype.removeListener=function(e,n){var t,r,o,i,a;if("function"!=typeof n)throw new TypeError(\'"listener" argument must be a function\');if(!(r=this._events))return this;if(!(t=r[e]))return this;if(t===n||t.listener&&t.listener===n)0==--this._eventsCount?this._events=new ui:(delete r[e],r.removeListener&&this.emit("removeListener",e,t.listener||n));else if("function"!=typeof t){for(o=-1,i=t.length;i-- >0;)if(t[i]===n||t[i].listener&&t[i].listener===n){a=t[i].listener,o=i;break}if(o<0)return this;if(1===t.length){if(t[0]=void 0,0==--this._eventsCount)return this._events=new ui,this;delete r[e]}else!function(e,n){for(var t=n,r=t+1,o=e.length;r<o;t+=1,r+=1)e[t]=e[r];e.pop()}(t,o);r.removeListener&&this.emit("removeListener",e,a||n)}return this},ci.prototype.off=function(e,n){return this.removeListener(e,n)},ci.prototype.removeAllListeners=function(e){var n,t;if(!(t=this._events))return this;if(!t.removeListener)return 0===arguments.length?(this._events=new ui,this._eventsCount=0):t[e]&&(0==--this._eventsCount?this._events=new ui:delete t[e]),this;if(0===arguments.length){for(var r,o=Object.keys(t),i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=new ui,this._eventsCount=0,this}if("function"==typeof(n=t[e]))this.removeListener(e,n);else if(n)do{this.removeListener(e,n[n.length-1])}while(n[0]);return this},ci.prototype.listeners=function(e){var n,t,r=this._events;return t=r&&(n=r[e])?"function"==typeof n?[n.listener||n]:function(e){for(var n=new Array(e.length),t=0;t<n.length;++t)n[t]=e[t].listener||e[t];return n}(n):[],t},ci.listenerCount=function(e,n){return"function"==typeof e.listenerCount?e.listenerCount(n):di.call(e,n)},ci.prototype.listenerCount=di,ci.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]},function(e){e.USER_ROSTER="msg_user_roster",e.ROOM_ROSTER="msg_room_roster",e.DYNAMIC_FEATURE_CHANGE="msg_dynamic_feature_change",e.SESSION_CLOSED="msg_session_closed",e.SESSION_STARTED="msg_session_started",e.SESSION_PERSISTED="msg_session_persisted",e.ERROR="msg_error",e.SESSION_CONNECTING="msg_session_connecting",e.SESSION_RECONNECTING="msg_session_reconnecting",e.RECORD_APPROVE_REQUEST="msg_record_approve_request",e.START_RECORD_RESPONSE="msg_record_started_response",e.STOP_RECORD_RESPONSE="msg_record_stopped_response",e.PAUSE_RECORD_RESPONSE="msg_record_paused_response",e.RESUME_RECORD_RESPONSE="msg_record_resumed_response",e.SOCKET_OPEN="msg_socket_open",e.RECORD_APPROVE_RESPONSE="msg_record_approve_response",e.USER_BE_HOLD_STATUS_CHANGE="msg_user_be_hold_status_change",e.REMOTE_CONTROL_REQUEST="msg_remote_control_request",e.REMOTE_CONTROL_RESPONSE="msg_remote_control_response",e.REMOTE_CONTROL_GIVE_UP="msg_remote_control_give_up",e.REMOTE_CONTROL_TAKE_BACK="msg_remote_control_take_back",e.REMOTE_CONTROL_REJECT="msg_remote_control_reject",e.REMOTE_CONTROL_CANCEL="msg_remote_control_cancel",e.LEADER_PAGE_VISIBILITY="msg_leader_page_visibility"}(Zo||(Zo={})),function(e){e.SESSION_STARTED="session_started",e.SESSION_INITED="session_inited",e.SESSION_PAUSED="session_paused",e.SESSION_RESUMED="session_resumed",e.SESSION_ENDED="session_ended",e.SESSION_LEFT="session_left",e.SESSION_CANCELING="session_canceling",e.SESSION_CONNECTING="session_connecting",e.SESSION_RECONNECTING="session_reconnecting",e.SESSION_PERSISTING="session_persisting",e.PARTICIPANT_CHANGED="participant_changed",e.AGENT_JOINED="agent_joined",e.AGENT_LEFT="agent_left",e.AGENT_DISCONNECTED="agent_disconnected",e.CUSTOMER_JOINED="customer_joined",e.CUSTOMER_LEFT="customer_left",e.CUSTOMER_DISCONNECTED="customer_disconnected",e.SESSION_ERROR="session_error",e.REMOTE_CONTROL_STATUS="remote_control_status",e.REMOTE_CONTROL_REQUEST="remote_control_request",e.REMOTE_CONTROL_RESPONSE="remote_control_response",e.REMOTE_CONTROL_GIVE_UP="remote_control_give_up",e.REMOTE_CONTROL_TAKE_BACK="remote_control_take_back",e.REMOTE_CONTROL_REJECT="remote_control_reject",e.REMOTE_CONTROL_CANCEL="remote_control_cancel",e.REMOTE_ASSIST_REQUESTED="remote_assist_requested",e.REMOTE_ASSIST_CANCELLED="remote_assist_cancelled",e.REMOTE_ASSIST_ACCEPTED="remote_assist_accepted",e.REMOTE_ASSIST_REJECTED="remote_assist_rejected",e.REMOTE_ASSIST_STARTED="remote_assist_started",e.REMOTE_ASSIST_STOPPED="remote_assist_stopped",e.PINCODE_UPDATED="pincode_updated",e.RECORD_STARTED="record_started",e.RECORD_STOPPED="record_stopped",e.RECORD_PAUSED="record_paused",e.RECORD_RESUMED="record_resumed",e.ORIGIN_UPDATED="origin_updated",e.START_REPLAY="start_replay",e.CURRENT_USER_TRANSFER="current_user_transfer",e.CUSTOMER_FOCUS_LOST="customer_focus_lost",e.CUSTOMER_TRANSFERRED="customer_transferred",e.DYNAMIC_FEATURE_CHANGE="dynamic_feature_change"}(Xo||(Xo={})),function(e){e.COM_DESK="com-desk",e.COM_VIEWER="com-viewer",e.COM_BYOP_DESK="com_byop_desk"}(qo||(qo={})),function(e){e[e.Normal=0]="Normal",e[e.AgentReconnectFailed=1]="AgentReconnectFailed",e[e.CustomerReconnectFailed=2]="CustomerReconnectFailed",e[e.CustomerEnded=3]="CustomerEnded"}(Qo||(Qo={})),function(e){e[e.Voice=1]="Voice",e[e.Chat=2]="Chat",e[e.VideoInbound=3]="VideoInbound",e[e.VideoOutbound=4]="VideoOutbound"}($o||($o={})),function(e){e.tabFollowingWaitTransferringCustomer="tabFollowingWaitTransferringCustomer",e.tabFollowingTransferringFailedCustomer="tabFollowingTransferringFailedCustomer",e.tabFollowingTransferringFailedAgent="tabFollowingTransferringFailedAgent"}(ei||(ei={})),function(e){e.NOT_CREATED="session_not_created",e.RECOVERABLE="session_recoverable",e.STARTED="session_started",e.CONNECT_FAILED="connect_failed",e.CONNECTING="session_connecting",e.CANCELING="session_canceling",e.RECONNECTING="session_reconnecting",e.CAN_PERSIST="session_can_persist",e.PERSISTING="session_persisting"}(ni||(ni={})),function(e){e.UNKNOWN="unknown"}(ti||(ti={})),function(e){e.UNKNOWN="unknown",e.NO_ROOT_DOM="no_root_dom"}(ri||(ri={})),function(e){e.START="START",e.JOIN="JOIN",e.AUTO="AUTO",e.PERSIST="PERSIST"}(oi||(oi={})),function(e){e.RECONNECTING="reconnecting",e.PERSISTING="persisting"}(ii||(ii={}));var Oi,Ci,hi,Ni,Ai,Di,vi,mi,yi,Pi,bi,Li,wi,Mi;!function(e){e.zcc="zcc",e.common="common"}(Oi||(Oi={})),function(e){e[e.NoAction=0]="NoAction",e[e.Accept=1]="Accept",e[e.Decline=2]="Decline",e[e.Leave=3]="Leave"}(Ci||(Ci={})),function(e){e[e.END_ROOM=41e3]="END_ROOM",e[e.DESTROY_DEACTIVE_ROOM=41001]="DESTROY_DEACTIVE_ROOM",e[e.DESTROY_SLEEP_ROOM=41002]="DESTROY_SLEEP_ROOM",e[e.DESTROY_NO_VALID_OPERATION_ROOM=41003]="DESTROY_NO_VALID_OPERATION_ROOM",e[e.END_DEACTIVE_ROOM=10001]="END_DEACTIVE_ROOM"}(hi||(hi={})),function(e){e.END_SESSION="end_session",e.DEACTIVE_SESSION="deactive_session",e.CANCEL_SESSION="cancel_session"}(Ni||(Ni={})),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},hi.END_ROOM,Ni.END_SESSION),hi.DESTROY_DEACTIVE_ROOM,Ni.DEACTIVE_SESSION),hi.DESTROY_SLEEP_ROOM,Ni.DEACTIVE_SESSION),hi.END_DEACTIVE_ROOM,Ni.DEACTIVE_SESSION),hi.DESTROY_NO_VALID_OPERATION_ROOM,Ni.DEACTIVE_SESSION),function(e){e[e.LEAVE_ROOM=4e4]="LEAVE_ROOM",e[e.DISCONNECTED=40001]="DISCONNECTED"}(Ai||(Ai={})),function(e){e.LEAVE_SESSION="leave_session",e.DISCONNECT_SESSION="disconnect_session"}(Di||(Di={})),_defineProperty(_defineProperty({},Ai.LEAVE_ROOM,Di.LEAVE_SESSION),Ai.DISCONNECTED,Di.DISCONNECT_SESSION),function(e){e.CUSTOMER_END_COBROWSE="Customer has left the Cobrowse session.",e.AGENT_END_COBROWSE="Agent has left the Cobrowse session.",e.END_COBROWSE_CC="THE_COBROWSE_SESSION_HAS_BEEN_ENDED",e.CUSTOMER_TRANSFERRED="The session has been transferred to this page."}(vi||(vi={})),function(e){e[e.DEFAULT=0]="DEFAULT",e[e.CC_UI_SESSION_END=1]="CC_UI_SESSION_END"}(mi||(mi={})),function(e){e.RECONNECTING_SESSION="Reconnecting Cobrowse session. Please wait....",e.CONNECTING_SESSION="Joining Cobrowse session...",e.UNABLE_JOIN_SESSION_TITLE="Unable to join the Cobrowse session",e.FAILED_RECONNECT_SESSION_TITLE="Failed to reconnect to the Cobrowse session",e.FAILED_RECONNECT_SESSION_CONTENT="The Cobrowse session has ended automatically due to failed reconnection. Please check your network connection and restart the session.",e.ENDED_RECONNECT_SESSION_TITLE="Cobrowse session has ended",e.RECONNECTING_SESSION_CC="RECONNECTING_COBROWSE",e.CONNECTING_SESSION_CC="JOINING_COBROWSE_SESSION",e.UNABLE_JOIN_SESSION_TITLE_CC="UNABLE_JOIN_SESSION_TITLE",e.FAILED_RECONNECT_SESSION_TITLE_CC="FAILED_RECONNECT_SESSION_TITLE",e.FAILED_RECONNECT_SESSION_CONTENT_CC="FAILED_RECONNECT_SESSION_CONTENT",e.ENDED_RECONNECT_SESSION_TITLE_CC="ENDED_RECONNECT_SESSION_TITLE",e.TRANSFER_FAILED_ERROR_TITLE="Failed to transfer to new tab"}(yi||(yi={})),function(e){e.TRANSFER_FAILED_ERROR_TIPS="Failed to transfer to new tab,Please return to the previous tab and have a try again."}(Pi||(Pi={})),function(e){e.RECONNECTING_SESSION="Reconnecting Cobrowse session...",e.CONNECTING_SESSION="Connecting to Cobrowse session...",e.GIVE_CONSUMER_CODE="Give the pairing code to your consumer to join:",e.COBROWSE_PIN_CODE="Cobrowse code",e.COBROWSE_PIN_CODE_TIPS="Please inform the following pin code to your support agent, your agent and you will browse this page together.",e.COBROWSE_PIN_CODE_TIPS_MOBILE="Please give this code to your agent.",e.GIVE_CONSUMER_CODE_CC="GIVE_CONSUMER_CODE",e.COBROWSE_PIN_CODE_ERROR_TITLE="Unable to generate pin code",e.COBROWSE_PIN_CODE_ERROR_TIPS="Unable to generate pin code. Please try again later."}(bi||(bi={})),function(e){e.WAIT_CONSUMER="WAIT_CONSUMER"}(Li||(Li={})),function(e){e.SESSION_TIMER="SESSION_TIMER",e.AUTO_END_SESSION="AUTO_END_SESSION",e.RECONNECTING_SESSION_CC="RECONNECTING_COBROWSE",e.CONNECTING_SESSION_CC="CONNECTING_TO_COBROWSE_SESSION",e.CAN_NOT_RECEIVE_INVITE_SESSION_CC="CAN_NOT_RECEIVE_INVITE_SESSION",e.JOIN_WITH_PAIRING_CODE="JOIN_WITH_PAIRING_CODE",e.BACK_TO_VIDEO_CALL="BACK_TO_VIDEO_CALL"}(wi||(wi={})),function(e){e.Cookies="cookie",e.LocalStorage="localStorage",e.SessionStorage="sessionStorage",e.All="all"}(Mi||(Mi={}));var Fi,Ui,ki="/sdkapi/zcb/frame-templates/desk",Bi="/sdkapi/zcb/frame-templates/viewer";!function(e){e.CustomerFloatingToolbar="customerFloatingToolbar",e.CustomerFloatingToolbarIcon="customerFloatingToolbarIcon",e.CustomerFloatingToolbarText="customerFloatingToolbarText",e.CustomerFloatingToolbarButton="customerFloatingToolbarButton",e.CustomerFloatingToolbarButtonPrefixIcon="customerFloatingToolbarButtonPrefixIcon",e.CustomerScreenBorder="customerScreenBorder",e.CustomerAnnotationToolbarMouseButton="customerAnnotationToolbarMouseButton",e.CustomerAnnotationToolbarVanishingPenButton="customerAnnotationToolbarVanishingPenButton",e.CustomerAnnotationToolbarPenButton="customerAnnotationToolbarPenButton",e.CustomerAnnotationToolbarVanishingRectangleButton="customerAnnotationToolbarVanishingRectangleButton",e.CustomerAnnotationToolbarRectangleButton="customerAnnotationToolbarRectangleButton",e.CustomerAnnotationToolbarEraserButton="customerAnnotationToolbarEraserButton",e.CustomerAnnotationToolbarColorButton="customerAnnotationToolbarColorButton",e.CustomerAnnotationToolbarClearButton="customerAnnotationToolbarClearButton",e.CustomerAnnotationToolbarCloseButton="customerAnnotationToolbarCloseButton",e.CustomerAnnotationToolbarOpenButton="customerAnnotationToolbarOpenButton",e.CustomerJoinSessionDialogOverall="customerJoinSessionDialogOverall",e.CustomerJoinSessionDialogTitle="customerJoinSessionDialogTitle",e.CustomerJoinSessionDialogTitleContent="customerJoinSessionDialogTitleContent",e.CustomerJoinSessionDialogTitleIcon="customerJoinSessionDialogTitleIcon",e.CustomerJoinSessionDialogTopRightCloseButton="customerJoinSessionDialogTopRightCloseButton",e.CustomerJoinSessionDialogLoadingPinCodeIcon="customerJoinSessionDialogLoadingPinCodeIcon",e.CustomerJoinSessionDialogPinCodeTipText="customerJoinSessionDialogPinCodeTipText",e.CustomerJoinSessionDialogPinCodeContent="customerJoinSessionDialogPinCodeContent",e.CustomerJoinSessionDialogFooterContainer="customerJoinSessionDialogFooterContainer",e.CustomerJoinSessionDialogCancelButton="customerJoinSessionDialogCancelButton",e.CustomerEndSessionDialogOverall="customerEndSessionDialogOverall",e.CustomerEndSessionDialogTitleContainer="customerEndSessionDialogTitleContainer",e.CustomerEndSessionDialogContentContainer="customerEndSessionDialogContentContainer",e.CustomerEndSessionDialogFooterContainer="customerEndSessionDialogFooterContainer",e.CustomerEndSessionDialogTitleContent="customerEndSessionDialogTitleContent",e.CustomerEndSessionDialogTitleIcon="customerEndSessionDialogTitleIcon",e.CustomerEndSessionDialogTextContent="customerEndSessionDialogTextContent",e.CustomerEndSessionDialogTopRightCloseButton="customerEndSessionDialogTopRightCloseButton",e.CustomerEndSessionDialogCancelButton="customerEndSessionDialogCancelButton",e.CustomerEndSessionDialogEndSessionButton="customerEndSessionDialogEndSessionButton",e.CustomerReconnectDialogOverall="customerReconnectDialogOverall",e.CustomerReconnectDialogContentContainer="customerReconnectDialogContentContainer",e.CustomerReconnectDialogFooterContainer="customerReconnectDialogFooterContainer",e.CustomerReconnectDialogLoadingIcon="customerReconnectDialogLoadingIcon",e.CustomerReconnectDialogTextContent="customerReconnectDialogTextContent",e.CustomerReconnectDialogCloseButton="customerReconnectDialogCloseButton",e.CustomerReconnectDialogCloseButtonPrefixIcon="customerReconnectDialogCloseButtonPrefixIcon",e.CustomerConnectDialogOverall="customerConnectDialogOverall",e.CustomerConnectDialogContentContainer="customerConnectDialogContentContainer",e.CustomerConnectDialogFooterContainer="customerConnectDialogFooterContainer",e.CustomerConnectDialogLoadingIcon="customerConnectDialogLoadingIcon",e.CustomerConnectDialogTextContent="customerConnectDialogTextContent",e.CustomerConnectDialogCloseButton="customerConnectDialogCloseButton",e.CustomerConnectDialogCloseButtonPrefixIcon="customerConnectDialogCloseButtonPrefixIcon",e.CustomerJoinFailedDialogOverall="customerJoinFailedDialogOverall",e.CustomerJoinFailedDialogTitleContainer="customerJoinFailedDialogTitleContainer",e.CustomerJoinFailedDialogContentContainer="customerJoinFailedDialogContentContainer",e.CustomerJoinFailedDialogFooterContainer="customerJoinFailedDialogFooterContainer",e.CustomerJoinFailedDialogTitleContent="customerJoinFailedDialogTitleContent",e.CustomerJoinFailedDialogTitleIcon="customerJoinFailedDialogTitleIcon",e.CustomerJoinFailedDialogTextContent="customerJoinFailedDialogTextContent",e.CustomerJoinFailedDialogTextSecondaryContent="customerJoinFailedDialogTextSecondaryContent",e.CustomerJoinFailedDialogOkButton="customerJoinFailedDialogOkButton",e.CustomerTransferFailedTitleContent="CustomerTransferFailedTitleContent",e.CustomerTransferFailedTextSecondaryContent="CustomerTransferFailedTextSecondaryContent",e.CustomerTransferFailedOkButton="CustomerTransferFailedOkButton",e.CustomerReconnectFailedDialogOverall="customerReconnectFailedDialogOverall",e.CustomerReconnectFailedDialogTitleContainer="customerReconnectFailedDialogTitleContainer",e.CustomerReconnectFailedDialogContentContainer="customerReconnectFailedDialogContentContainer",e.CustomerReconnectFailedDialogFooterContainer="customerReconnectFailedDialogFooterContainer",e.CustomerReconnectFailedDialogTitleContent="customerReconnectFailedDialogTitleContent",e.CustomerReconnectFailedDialogTitleIcon="customerReconnectFailedDialogTitleIcon",e.CustomerReconnectFailedDialogTextContent="customerReconnectFailedDialogTextContent",e.CustomerReconnectFailedDialogTextSecondaryContent="customerReconnectFailedDialogTextSecondaryContent",e.CustomerReconnectFailedDialogOkButton="customerReconnectFailedDialogOkButton",e.CustomerReconnectTimeoutDialogOverall="customerReconnectTimeoutDialogOverall",e.CustomerReconnectTimeoutDialogTitleContainer="customerReconnectTimeoutDialogTitleContainer",e.CustomerReconnectTimeoutDialogContentContainer="customerReconnectTimeoutDialogContentContainer",e.CustomerReconnectTimeoutDialogFooterContainer="customerReconnectTimeoutDialogFooterContainer",e.CustomerReconnectTimeoutDialogTitleContent="customerReconnectTimeoutDialogTitleContent",e.CustomerReconnectTimeoutDialogTitleIcon="customerReconnectTimeoutDialogTitleIcon",e.CustomerReconnectTimeoutDialogTextContent="customerReconnectTimeoutDialogTextContent",e.CustomerReconnectTimeoutDialogTextSecondaryContent="customerReconnectTimeoutDialogTextSecondaryContent",e.CustomerReconnectTimeoutDialogOkButton="customerReconnectTimeoutDialogOkButton",e.CustomerReconnectTimeoutDialogTopRightCloseButton="customerReconnectTimeoutDialogTopRightCloseButton",e.CustomerDisconnectDialogOverall="customerDisconnectDialogOverall",e.CustomerDisconnectDialogContentContainer="customerDisconnectDialogContentContainer",e.CustomerDisconnectDialogFooterContainer="customerDisconnectDialogFooterContainer",e.CustomerDisconnectDialogLoadingIcon="customerDisconnectDialogLoadingIcon",e.CustomerDisconnectDialogFirstLineTextContent="customerDisconnectDialogFirstLineTextContent",e.CustomerDisconnectDialogSecondLineTextContent="customerDisconnectDialogSecondLineTextContent",e.CustomerDisconnectDialogPinCode="customerDisconnectDialogPinCode",e.CustomerDisconnectDialogEndButton="customerDisconnectDialogCloseButton",e.CustomerDisconnectDialogEndButtonPrefixIcon="customerDisconnectDialogCloseButtonPrefixIcon",e.CustomerToastSuccessPrefixIcon="customerToastSuccessPrefixIcon",e.CustomerToastSuccessWrapper="customerToastSuccessWrapper",e.CustomerToastErrorPrefixIcon="customerToastErrorPrefixIcon",e.CustomerToastErrorWrapper="customerToastErrorWrapper",e.CustomerToastWarningPrefixIcon="customerToastWarningPrefixIcon",e.CustomerToastWarningWrapper="customerToastWarningWrapper",e.CustomerToastDefaultPrefixIcon="customerToastDefaultPrefixIcon",e.CustomerToastDefaultWrapper="customerToastDefaultWrapper",e.CustomerToastInfoPrefixIcon="customerToastInfoPrefixIcon",e.CustomerToastInfoWrapper="customerToastInfoWrapper",e.AgentToolbarVerticalWrapper="agentToolbarVerticalWrapper",e.AgentToolbarHorizontalWrapper="agentToolbarHorizontalWrapper",e.AgentToolbarAllowRotation="agentToolbarAllowRotation",e.AgentToolbarDefaultVertical="agentToolbarDefaultVertical",e.AgentToolbarVerticalNormalBtnsWrapper="agentToolbarVerticalNormalBtnsWrapper",e.AgentToolbarHorizontalNormalBtnsWrapper="agentToolbarHorizontalNormalBtnsWrapper",e.AgentToolbarButtonCommon="agentToolbarButtonCommon",e.AgentToolbarButtonActiveCommon="agentToolbarButtonActiveCommon",e.AgentToolbarTooltipCommon="agentToolbarTooltipCommon",e.AgentToolbarVerticalDivider="agentToolbarVerticalDivider",e.AgentToolbarHorizontalDivider="agentToolbarHorizontalDivider",e.AgentToolbarZoomInButton="agentToolbarZoomInButton",e.AgentToolbarZoomInIcon="agentToolbarZoomInIcon",e.AgentToolbarZoomOutButton="agentToolbarZoomOutButton",e.AgentToolbarZoomOutIcon="agentToolbarZoomOutIcon",e.AgentToolbarZoomMenuButton="agentToolbarZoomMenuButton",e.AgentToolbarZoomMenuIcon="agentToolbarZoomMenuIcon",e.AgentToolbarFullScreenButton="agentToolbarFullScreenButton",e.AgentToolbarFullScreenIcon="agentToolbarFullScreenIcon",e.AgentToolbarExitFullScreenButton="agentToolbarExitFullScreenButton",e.AgentToolbarExitFullScreenIcon="agentToolbarExitFullScreenIcon",e.AgentToolbarVanishingPenButton="agentToolbarVanishingPenButton",e.AgentToolbarVanishingPenIcon="agentToolbarVanishingPenIcon",e.AgentToolbarPenButton="agentToolbarPenButton",e.AgentToolbarPenIcon="agentToolbarPenIcon",e.AgentToolbarEndSessionButton="agentToolbarEndSessionButton",e.AgentToolbarEndSessionIcon="agentToolbarEndSessionIcon",e.AgentToolbarRemoteAssistIcon="agentToolbarRemoteAssistIcon",e.AgentVanishingPenSubMenuVerticalWrapper="agentVanishingPenSubMenuVerticalWrapper",e.AgentVanishingPenSubMenuHorizontalWrapper="agentVanishingPenSubMenuHorizontalWrapper",e.AgentVanishingPenSubMenuButtonCommon="agentVanishingPenSubMenuButtonCommon",e.AgentVanishingPenMenuButtonActiveCommon="agentVanishingPenSubMenuButtonActiveCommon",e.AgentVanishingPenSubMenuMouseButton="agentVanishingPenSubMenuMouseButton",e.AgentVanishingPenSubMenuMouseIcon="agentVanishingPenSubMenuMouseIcon",e.AgentVanishingPenSubMenuVanishingPenButton="agentVanishingPenSubMenuVanishingPenButton",e.AgentVanishingPenSubMenuVanishingPenIcon="agentVanishingPenSubMenuVanishingPenIcon",e.AgentVanishingPenSubMenuVanishingRectangleButton="agentVanishingPenSubMenuVanishingRectangleButton",e.AgentVanishingPenSubMenuVanishingRectangleIcon="agentVanishingPenSubMenuVanishingRectangleIcon",e.AgentVanishingPenSubMenuVanishingColorButton="agentVanishingPenSubMenuVanishingColorButton",e.AgentVanishingPenSubMenuVanishingColorIcon="agentVanishingPenSubMenuVanishingColorIcon",e.AgentPenAnnotationSubMenuVerticalWrapper="agentPenAnnotationSubMenuVerticalWrapper",e.AgentPenAnnotationSubMenuHorizontalWrapper="agentPenAnnotationSubMenuHorizontalWrapper",e.AgentPenAnnotationSubMenuButtonCommon="agentPenAnnotationSubMenuButtonCommon",e.AgentPenAnnotationSubMenuButtonActiveCommon="agentPenAnnotationSubMenuButtonActiveCommon",e.AgentPenAnnotationSubMenuMouseButton="agentPenAnnotationSubMenuMouseButton",e.AgentPenAnnotationSubMenuMouseIcon="agentPenAnnotationSubMenuMouseIcon",e.AgentPenAnnotationSubMenuPenButton="agentPenAnnotationSubMenuPenButton",e.AgentPenAnnotationSubMenuPenIcon="agentPenAnnotationSubMenuPenIcon",e.AgentPenAnnotationSubMenuRectangleButton="agentPenAnnotationSubMenuRectangleButton",e.AgentPenAnnotationSubMenuRectangleIcon="agentPenAnnotationSubMenuRectangleIcon",e.AgentPenAnnotationSubMenuEraserButton="agentPenAnnotationSubMenuEraserButton",e.AgentPenAnnotationSubMenuEraserIcon="agentPenAnnotationSubMenuEraserIcon",e.AgentPenAnnotationSubMenuColorButton="agentPenAnnotationSubMenuColorButton",e.AgentPenAnnotationSubMenuColorIcon="agentPenAnnotationSubMenuColorIcon",e.AgentPenAnnotationSubMenuUndoButton="agentPenAnnotationSubMenuUndoButton",e.AgentPenAnnotationSubMenuUndoIcon="agentPenAnnotationSubMenuUndoIcon",e.AgentPenAnnotationSubMenuRedoButton="agentPenAnnotationSubMenuRedoButton",e.AgentPenAnnotationSubMenuRedoIcon="agentPenAnnotationSubMenuRedoIcon",e.AgentPenAnnotationSubMenuClearButton="agentPenAnnotationSubMenuClearButton",e.AgentPenAnnotationSubMenuClearIcon="agentPenAnnotationSubMenuClearIcon",e.AgentPenSubMenuVerticalWrapper="agentPenSubMenuVerticalWrapper",e.AgentPenSubMenuHorizontalWrapper="agentPenSubMenuHorizontalWrapper",e.AgentPenSubMenuButtonCommon="agentPenSubMenuButtonCommon",e.AgentPenSubMenuButtonActiveCommon="agentPenSubMenuButtonActiveCommon",e.AgentPenSubMenuDrawText="agentPenSubMenuDrawText",e.AgentPenSubMenuLineWidthText="agentPenSubMenuLineWidthText",e.AgentColorSubMenuVerticalWrapper="agentColorSubMenuVerticalWrapper",e.AgentColorSubMenuHorizontalWrapper="agentColorSubMenuHorizontalWrapper",e.AgentColorSubMenuButtonCommon="agentColorSubMenuButtonCommon",e.AgentColorSubMenuActiveButtonCommon="agentColorSubMenuActiveButtonCommon",e.AgentZoomInOutMenuVerticalWrapper="agentZoomInOutMenuVerticalWrapper",e.AgentZoomInOutMenuHorizontalWrapper="agentZoomInOutMenuHorizontalWrapper",e.AgentZoomInOutMenuRoot="agentZoomInOutMenuRoot",e.AgentZoomInOutMenuItem="agentZoomInOutMenuItem",e.AgentZoomInOutMenuItemFitToWindow="agentZoomInOutMenuItemFitToWindow",e.AgentZoomInOutMenuItemActualSize="agentZoomInOutMenuItemActualSize",e.AgentSingleAgentEndSessionDialogOverall="agentSingleAgentEndSessionDialogOverall",e.AgentSingleAgentEndSessionDialogTitleContainer="agentSingleAgentEndSessionDialogTitleContainer",e.AgentSingleAgentEndSessionDialogContentContainer="agentSingleAgentEndSessionDialogContentContainer",e.AgentSingleAgentEndSessionDialogFooterContainer="agentSingleAgentEndSessionDialogFooterContainer",e.AgentSingleAgentEndSessionDialogTitleIcon="agentSingleAgentEndSessionDialogTitleIcon",e.AgentSingleAgentEndSessionDialogTitleContent="agentSingleAgentEndSessionDialogTitleContent",e.AgentSingleAgentEndSessionDialogTextContent="agentSingleAgentEndSessionDialogTextContent",e.AgentSingleAgentEndSessionDialogTopRightCloseButton="agentSingleAgentEndSessionDialogTopRightCloseButton",e.AgentSingleAgentEndSessionDialogCancelButton="agentSingleAgentEndSessionDialogCancelButton",e.AgentSingleAgentEndSessionDialogEndSessionButton="agentSingleAgentEndSessionDialogEndSessionButton",e.AgentMultiAgentsEndSessionDialogOverall="agentMultiAgentsEndSessionDialogOverall",e.AgentMultiAgentsEndSessionDialogTitleContainer="agentMultiAgentsEndSessionDialogTitleContainer",e.AgentMultiAgentsEndSessionDialogContentContainer="agentMultiAgentsEndSessionDialogContentContainer",e.AgentMultiAgentsEndSessionDialogFooterContainer="agentMultiAgentsEndSessionDialogFooterContainer",e.AgentMultiAgentsEndSessionDialogTitleIcon="agentMultiAgentsEndSessionDialogTitleIcon",e.AgentMultiAgentsEndSessionDialogTitleContent="agentMultiAgentsEndSessionDialogTitleContent",e.AgentMultiAgentsEndSessionDialogTextContent="agentMultiAgentsEndSessionDialogTextContent",e.AgentMultiAgentsEndSessionDialogTopRightCloseButton="agentMultiAgentsEndSessionDialogTopRightCloseButton",e.AgentMultiAgentsEndSessionDialogCancelButton="agentMultiAgentsEndSessionDialogCancelButton",e.AgentMultiAgentsEndSessionDialogLeaveSessionButton="agentMultiAgentsEndSessionDialogLeaveSessionButton",e.AgentMultiAgentsEndSessionDialogEndSessionButton="agentMultiAgentsEndSessionDialogEndSessionButton",e.AgentJoinFailedDialogOverall="agentJoinFailedDialogOverall",e.AgentJoinFailedDialogTitleContainer="agentJoinFailedDialogTitleContainer",e.AgentJoinFailedDialogContentContainer="agentJoinFailedDialogContentContainer",e.AgentJoinFailedDialogFooterContainer="agentJoinFailedDialogFooterContainer",e.AgentJoinFailedDialogTitleIcon="agentJoinFailedDialogTitleIcon",e.AgentJoinFailedDialogTitleContent="agentJoinFailedDialogTitleContent",e.AgentJoinFailedDialogTextContent="agentJoinFailedDialogTextContent",e.AgentJoinFailedDialogTopRightCloseButton="agentJoinFailedDialogTopRightCloseButton",e.AgentJoinFailedDialogOkButton="agentJoinFailedDialogOkButton",e.AgentFloatingPinToolbarWrapper="agentFloatingPinToolbarWrapper",e.AgentFloatingPinToolbarPrefixIcon="agentFloatingPinToolbarPrefixIcon",e.AgentFloatingPinToolbarContentText="agentFloatingPinToolbarContentText",e.AgentFloatingPinToolbarCopyIcon="agentFloatingPinToolbarCopyIcon",e.AgentToastSuccessPrefixIcon="agentToastSuccessPrefixIcon",e.AgentToastSuccessWrapper="agentToastSuccessWrapper",e.AgentToastErrorPrefixIcon="agentToastErrorPrefixIcon",e.AgentToastErrorWrapper="agentToastErrorWrapper",e.AgentToastWarningPrefixIcon="agentToastWarningPrefixIcon",e.AgentToastWarningWrapper="agentToastWarningWrapper",e.AgentToastDefaultPrefixIcon="agentToastDefaultPrefixIcon",e.AgentToastDefaultWrapper="agentToastDefaultWrapper",e.AgentToastInfoPrefixIcon="agentToastInfoPrefixIcon",e.AgentToastInfoWrapper="agentToastInfoWrapper"}(Fi||(Fi={})),function(e){e.SESSION_PRE_INIT="session_pre_init",e.SESSION_JOINED="session_joined",e.SESSION_LEFT="session_left",e.SESSION_ENDED="session_ended",e.SESSION_ERROR="session_error",e.REMOTE_ASSIST_ACCEPTED="remote_assist_accepted",e.REMOTE_ASSIST_REJECTED="remote_assist_rejected",e.REMOTE_ASSIST_STARTED="remote_assist_started",e.REMOTE_ASSIST_STOPPED="remote_assist_stopped"}(Ui||(Ui={}));var xi,Vi=[Ui.SESSION_PRE_INIT,Ui.SESSION_JOINED,Ui.SESSION_LEFT,Ui.SESSION_ENDED,Ui.SESSION_ERROR,Ui.REMOTE_ASSIST_ACCEPTED,Ui.REMOTE_ASSIST_REJECTED,Ui.REMOTE_ASSIST_STARTED,Ui.REMOTE_ASSIST_STOPPED];!function(e){e.SEND_SESSION_OPTIONS="send_session_options",e.START_REMOTE_ASSIST="start_remote_assist",e.STOP_REMOTE_ASSIST="stop_remote_assist"}(xi||(xi={})),xi.SEND_SESSION_OPTIONS,xi.START_REMOTE_ASSIST,xi.STOP_REMOTE_ASSIST;var Wi;Object.assign(Object.assign({},{createLinearGradient:!0,createRadialGradient:!0,createConicGradient:!0}),{createPattern:!0}),function(e){e[e.REFRESH_PIN_CODE_FAILED=10002]="REFRESH_PIN_CODE_FAILED",e[e.CONNECT_TIMEOUT_FAILED=10012]="CONNECT_TIMEOUT_FAILED",e[e.OTHER_SIDE_RECONNECT_TIMEOUT_FAILED=10013]="OTHER_SIDE_RECONNECT_TIMEOUT_FAILED",e[e.USER_EXIT_BEFORE_SESSION=10022]="USER_EXIT_BEFORE_SESSION"}(Wi||(Wi={}));var Gi,Hi={PIN_UPDATE_FAILED:"Pincode update failed"},Ji={CONNECT_TIMEOUT_FAILED:"Session connect timeout."};_defineProperty(_defineProperty({},Wi.CONNECT_TIMEOUT_FAILED,Ji.CONNECT_TIMEOUT_FAILED),Wi.REFRESH_PIN_CODE_FAILED,Hi.PIN_UPDATE_FAILED),function(e){e[e.CANCEL_END_ROOM=1]="CANCEL_END_ROOM",e[e.CANCEL_LEAVE_ROOM=2]="CANCEL_LEAVE_ROOM"}(Gi||(Gi={}));var Yi="Canceled and ended session.",ji="Canceled and left session.";_defineProperty(_defineProperty({},Gi.CANCEL_END_ROOM,Yi),Gi.CANCEL_LEAVE_ROOM,ji);var Ki,zi={INVALID_URL:"The website link is invalid.",ACCOUNT_NO_CREDITS:"Free trial account has no available credits."},Zi={CONNECTING:"A connection is already in progress.",PERSISTING:" A transfer session is still recovering."},Xi={NOT_FOUND:"Session does not exist or has ended."},qi={LIMIT:"A session is already active."},Qi={PIN_NOT_FOUND:"Pincode is not found."},$i={PIN_EXPIRED:"Pincode has expired."},ea={PIN_INVALID_LENGTH:"Pincode exceeds the maximum length",PIN_INVALID_CHARACTERS:"Pincode contains invalid characters."},na={PIN_REQUIRED:"Pincode is required."},ta={PIN_CONFLICT:"Pincode has already been used."},ra={INTERNAL_ERROR:"Session join failed due to an internal error.",SDK_INVALID:"SDK version is invalid.",SESSION_NOT_FOUND:"Session does not exist or has ended.",INVALID_URL:"The website link is invalid.",RECONNECT_FAILED:"Failed to make a connection after multiple attempts.",FAIL_OVER_FAILED:"Failed to reconnect after fail over with multiple attempts."},oa={CUSTOMER_LIMIT:"Maximum number of customers in a session reached."},ia={AGENT_LIMIT:"Maximum number of agents in a session reached."},aa={DUPLICATE_AGENT:"The agent is already in the session."},sa={NETWORK_REQUEST_FAILED:"Network request to backend failed after multiple attempts."},ua={CANCELING:"Operation failed, the session is being canceled."},ca={JWT_INVALID:"JWT token is invalid.",JWT_NO_PERMISSIONS:"JWT token has no permissions.",JWT_EXPIRED:"JWT token has expired.",JWT_ACCESS_ERROR:"JWT token access error.",INTERNAL_ERROR:"Internal token error."},_a={SERVICE_ERROR:"Service error occurred.",API_RATE_LIMIT:"API request rate limit, try again later.",SESSION_ERROR:"Session error occurred.",SESSION_ERROR_WITH_RETRY:"Session error occurred, try again later."};!function(e){e[e.WEB_REPORT_REGION_FAILED=40100]="WEB_REPORT_REGION_FAILED",e[e.WEB_REPORT_REGION_NOT_MATCH=40101]="WEB_REPORT_REGION_NOT_MATCH",e[e.WEB_REPORT_USER_JOIN_FAILED=40102]="WEB_REPORT_USER_JOIN_FAILED",e[e.WEB_REPORT_USER_JOIN_EMPTY=40103]="WEB_REPORT_USER_JOIN_EMPTY",e[e.WEB_REPORT_USER_JOIN_EMPTY_USER=40104]="WEB_REPORT_USER_JOIN_EMPTY_USER",e[e.AUTH_CONFLICT=40200]="AUTH_CONFLICT",e[e.AUTH_VERIFY_FAILED=40201]="AUTH_VERIFY_FAILED",e[e.AUTH_DB_QUERY_ERROR=40202]="AUTH_DB_QUERY_ERROR",e[e.ROOM_NOT_EXIST=40210]="ROOM_NOT_EXIST",e[e.ROOM_ADD_USER_FAILED=40211]="ROOM_ADD_USER_FAILED",e[e.SESSION_ALREADY_ENDED=40214]="SESSION_ALREADY_ENDED",e[e.ROOM_DEPRECATED=40216]="ROOM_DEPRECATED",e[e.ROOM_ID_MISSING=40300]="ROOM_ID_MISSING",e[e.AUTH_PAYLOAD_MISSING=40301]="AUTH_PAYLOAD_MISSING",e[e.START_URL_INVALID=40302]="START_URL_INVALID",e[e.META_DATA_INVALID=40402]="META_DATA_INVALID",e[e.WSSGW_INSTANCE_NOT_FOUND=40403]="WSSGW_INSTANCE_NOT_FOUND",e[e.LEADER_CONFLICT=40212]="LEADER_CONFLICT",e[e.REACHED_LEADER_LIMIT=40217]="REACHED_LEADER_LIMIT",e[e.FOLLOWER_CONFLICT=40215]="FOLLOWER_CONFLICT",e[e.REACHED_FOLLOWER_LIMIT=40218]="REACHED_FOLLOWER_LIMIT",e[e.USER_CONFLICT=40213]="USER_CONFLICT",e[e.MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE=40501]="MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE",e[e.MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION=40502]="MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION",e[e.LEAVE_ROOM=4e4]="LEAVE_ROOM",e[e.DISCONNECTED=40001]="DISCONNECTED",e[e.END_ROOM=41e3]="END_ROOM",e[e.DESTROY_DEACTIVE_ROOM=41001]="DESTROY_DEACTIVE_ROOM",e[e.DESTROY_SLEEP_ROOM=41002]="DESTROY_SLEEP_ROOM",e[e.DESTROY_NO_VALID_OPERATION_ROOM=41003]="DESTROY_NO_VALID_OPERATION_ROOM",e[e.SAME_LEADER_JOINED=40219]="SAME_LEADER_JOINED"}(Ki||(Ki={}));var Ea,la={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(la,Ki.WEB_REPORT_REGION_FAILED,ra.INTERNAL_ERROR),Ki.WEB_REPORT_REGION_NOT_MATCH,ra.INTERNAL_ERROR),Ki.WEB_REPORT_USER_JOIN_FAILED,ra.INTERNAL_ERROR),Ki.WEB_REPORT_USER_JOIN_EMPTY,ra.INTERNAL_ERROR),Ki.WEB_REPORT_USER_JOIN_EMPTY_USER,ra.INTERNAL_ERROR),Ki.AUTH_CONFLICT,ra.INTERNAL_ERROR),Ki.AUTH_VERIFY_FAILED,ra.INTERNAL_ERROR),Ki.AUTH_DB_QUERY_ERROR,ra.INTERNAL_ERROR),Ki.ROOM_NOT_EXIST,ra.INTERNAL_ERROR),Ki.ROOM_ADD_USER_FAILED,ra.INTERNAL_ERROR),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(la,Ki.SESSION_ALREADY_ENDED,ra.SESSION_NOT_FOUND),Ki.ROOM_DEPRECATED,ra.INTERNAL_ERROR),Ki.ROOM_ID_MISSING,ra.INTERNAL_ERROR),Ki.AUTH_PAYLOAD_MISSING,ra.INTERNAL_ERROR),Ki.START_URL_INVALID,ra.INTERNAL_ERROR),Ki.META_DATA_INVALID,ra.INTERNAL_ERROR),Ki.WSSGW_INSTANCE_NOT_FOUND,ra.INTERNAL_ERROR),Ki.LEADER_CONFLICT,oa.CUSTOMER_LIMIT),Ki.REACHED_LEADER_LIMIT,oa.CUSTOMER_LIMIT),Ki.FOLLOWER_CONFLICT,ia.AGENT_LIMIT),_defineProperty(_defineProperty(_defineProperty(_defineProperty(la,Ki.REACHED_FOLLOWER_LIMIT,ia.AGENT_LIMIT),Ki.USER_CONFLICT,aa.DUPLICATE_AGENT),Ki.MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE,_a.SESSION_ERROR_WITH_RETRY),Ki.MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION,_a.SESSION_ERROR),function(e){e[e.ALL_PING_FAILED=10001]="ALL_PING_FAILED",e[e.EMPTY_PING_LIST=10003]="EMPTY_PING_LIST",e[e.SOCKET_RECONNECT_FAILED=10020]="SOCKET_RECONNECT_FAILED",e[e.SOCKET_FAIL_OVER_FAILED=10021]="SOCKET_FAIL_OVER_FAILED",e[e.DUPLICATE_LAUNCH_SESSION=10024]="DUPLICATE_LAUNCH_SESSION",e[e.FRAME_LEVEL_NOT_READY=10025]="FRAME_LEVEL_NOT_READY",e[e.SESSION_CONNECTING=10010]="SESSION_CONNECTING",e[e.SESSION_PERSISTING=10014]="SESSION_PERSISTING",e[e.DUPLICATE_SESSION=10023]="DUPLICATE_SESSION",e[e.SESSION_CANCELING=10027]="SESSION_CANCELING",e[e.UNKNOWN_SERVICE_EXCEPTION=19999]="UNKNOWN_SERVICE_EXCEPTION"}(Ea||(Ea={}));var da,fa=(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(n={},Ea.ALL_PING_FAILED,ra.INTERNAL_ERROR),Ea.EMPTY_PING_LIST,ra.INTERNAL_ERROR),Ea.SOCKET_RECONNECT_FAILED,ra.RECONNECT_FAILED),Ea.SOCKET_FAIL_OVER_FAILED,ra.FAIL_OVER_FAILED),Ea.FRAME_LEVEL_NOT_READY,ra.INTERNAL_ERROR),Ea.SESSION_CONNECTING,Zi.CONNECTING),Ea.SESSION_PERSISTING,Zi.PERSISTING),Ea.DUPLICATE_SESSION,qi.LIMIT),Ea.DUPLICATE_LAUNCH_SESSION,qi.LIMIT),Ea.SESSION_CANCELING,ua.CANCELING),_defineProperty(n,Ea.UNKNOWN_SERVICE_EXCEPTION,_a.SERVICE_ERROR));!function(e){e[e.Unauthorized=401]="Unauthorized",e[e.Forbidden=403]="Forbidden"}(da||(da={}));var Sa,Ia=_defineProperty(_defineProperty({},da.Unauthorized,ca.JWT_INVALID),da.Forbidden,ca.JWT_INVALID);!function(e){e[e.INVALID_URL=30105]="INVALID_URL",e[e.SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_DISABLE=30600]="SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_DISABLE",e[e.SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_NO_CREDIT=30601]="SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_NO_CREDIT",e[e.SESSION_NOT_FOUND=30300]="SESSION_NOT_FOUND",e[e.PIN_CODE_NOT_FOUND=30308]="PIN_CODE_NOT_FOUND",e[e.PIN_CODE_EXPIRED=30309]="PIN_CODE_EXPIRED",e[e.PIN_CODE_EXCEEDED_MAX_LENGTH=30307]="PIN_CODE_EXCEEDED_MAX_LENGTH",e[e.PIN_INVALID_CHARACTERS=30311]="PIN_INVALID_CHARACTERS",e[e.PIN_CODE_IS_REQUIRED=30315]="PIN_CODE_IS_REQUIRED",e[e.PIN_CODE_HAS_BEEN_USED=30316]="PIN_CODE_HAS_BEEN_USED",e[e.INVALID_SDK_VERSION=30106]="INVALID_SDK_VERSION",e[e.ERROR_SDK_VERSION=30107]="ERROR_SDK_VERSION",e[e.INACTIVE_SDK_VERSION=30109]="INACTIVE_SDK_VERSION",e[e.SDK_VERSION_NOT_FOUND=30110]="SDK_VERSION_NOT_FOUND",e[e.NETWORK_ERROR=10016]="NETWORK_ERROR",e[e.INVALID_TOKEN=124]="INVALID_TOKEN",e[e.NO_PERMISSION=125]="NO_PERMISSION",e[e.INVALID_EXPIRED=129]="INVALID_EXPIRED",e[e.TOKEN_ACCESS_ERROR=30304]="TOKEN_ACCESS_ERROR",e[e.UNKNOWN=-1]="UNKNOWN",e[e.LOCKED=126]="LOCKED",e[e.PIN_PUSH_FAILED=128]="PIN_PUSH_FAILED",e[e.INVALID_BUSINESS_TYPE=30102]="INVALID_BUSINESS_TYPE",e[e.INVALID_RECORDING_ID=30103]="INVALID_RECORDING_ID",e[e.MISSING_FIELD=30104]="MISSING_FIELD",e[e.SEARCH_ERROR=30200]="SEARCH_ERROR",e[e.INVALID_BUSINESS_TYPE2=30201]="INVALID_BUSINESS_TYPE2",e[e.FILE_SERVER_ERROR=30203]="FILE_SERVER_ERROR",e[e.FILE_SERVICE_ERROR=30204]="FILE_SERVICE_ERROR",e[e.FILE_SERVICE_ERROR2=30205]="FILE_SERVICE_ERROR2",e[e.INVALID_START_TIME=30301]="INVALID_START_TIME",e[e.INVALID_ACTION=30302]="INVALID_ACTION",e[e.INVALID_REGION=30303]="INVALID_REGION",e[e.EXCEEDED_FAILED=30305]="EXCEEDED_FAILED",e[e.INVALID_END_TIME=30306]="INVALID_END_TIME",e[e.PIN_CODE_NOT_READY=30310]="PIN_CODE_NOT_READY",e[e.INVALID_TOTAL_MINUTES=30312]="INVALID_TOTAL_MINUTES",e[e.DUPLICATE_REQUEST=30313]="DUPLICATE_REQUEST",e[e.INVALID_TEMPLATE_TYPE=30314]="INVALID_TEMPLATE_TYPE",e[e.SERVER_ERROR1=30400]="SERVER_ERROR1",e[e.SERVER_ERROR2=30401]="SERVER_ERROR2",e[e.SERVER_ERROR3=30402]="SERVER_ERROR3",e[e.SERVER_ERROR4=30403]="SERVER_ERROR4",e[e.INVALID_SDK_CDN_URL=30108]="INVALID_SDK_CDN_URL"}(Sa||(Sa={}));var Ra,ga,Ta,pa=_defineProperty(_defineProperty(_defineProperty(_defineProperty({},Sa.INVALID_TOKEN,ca.JWT_INVALID),Sa.NO_PERMISSION,ca.JWT_NO_PERMISSIONS),Sa.INVALID_EXPIRED,ca.JWT_EXPIRED),Sa.TOKEN_ACCESS_ERROR,ca.JWT_ACCESS_ERROR),Oa=(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(t={},Sa.INVALID_URL,zi.INVALID_URL),Sa.SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_DISABLE,zi.ACCOUNT_NO_CREDITS),Sa.SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_NO_CREDIT,zi.ACCOUNT_NO_CREDITS),Sa.SESSION_NOT_FOUND,Xi.NOT_FOUND),Sa.PIN_CODE_NOT_FOUND,Qi.PIN_NOT_FOUND),Sa.PIN_CODE_EXPIRED,$i.PIN_EXPIRED),Sa.PIN_CODE_EXCEEDED_MAX_LENGTH,ea.PIN_INVALID_LENGTH),Sa.PIN_INVALID_CHARACTERS,ea.PIN_INVALID_CHARACTERS),Sa.PIN_CODE_IS_REQUIRED,na.PIN_REQUIRED),Sa.PIN_CODE_HAS_BEEN_USED,ta.PIN_CONFLICT),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(t,Sa.INVALID_SDK_VERSION,ra.SDK_INVALID),Sa.ERROR_SDK_VERSION,ra.SDK_INVALID),Sa.INACTIVE_SDK_VERSION,ra.SDK_INVALID),Sa.SDK_VERSION_NOT_FOUND,ra.SDK_INVALID),Sa.NETWORK_ERROR,sa.NETWORK_REQUEST_FAILED),Sa.INVALID_TOKEN,ca.INTERNAL_ERROR),Sa.NO_PERMISSION,ca.INTERNAL_ERROR),Sa.INVALID_EXPIRED,ca.INTERNAL_ERROR),Sa.TOKEN_ACCESS_ERROR,ca.INTERNAL_ERROR),Sa.UNKNOWN,_a.SERVICE_ERROR),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(t,Sa.LOCKED,_a.SERVICE_ERROR),Sa.PIN_PUSH_FAILED,_a.SERVICE_ERROR),Sa.INVALID_BUSINESS_TYPE,_a.SERVICE_ERROR),Sa.INVALID_RECORDING_ID,_a.SERVICE_ERROR),Sa.MISSING_FIELD,_a.SERVICE_ERROR),Sa.SEARCH_ERROR,_a.SERVICE_ERROR),Sa.INVALID_BUSINESS_TYPE2,_a.SERVICE_ERROR),Sa.FILE_SERVER_ERROR,_a.SERVICE_ERROR),Sa.FILE_SERVICE_ERROR,_a.SERVICE_ERROR),Sa.FILE_SERVICE_ERROR2,_a.SERVICE_ERROR),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(t,Sa.INVALID_START_TIME,_a.SERVICE_ERROR),Sa.INVALID_ACTION,_a.SERVICE_ERROR),Sa.INVALID_REGION,_a.SERVICE_ERROR),Sa.EXCEEDED_FAILED,_a.API_RATE_LIMIT),Sa.INVALID_END_TIME,_a.SERVICE_ERROR),Sa.PIN_CODE_NOT_READY,_a.SERVICE_ERROR),Sa.INVALID_TOTAL_MINUTES,_a.SERVICE_ERROR),Sa.DUPLICATE_REQUEST,_a.SERVICE_ERROR),Sa.INVALID_TEMPLATE_TYPE,_a.SERVICE_ERROR),Sa.SERVER_ERROR1,_a.SERVICE_ERROR),_defineProperty(_defineProperty(_defineProperty(_defineProperty(t,Sa.SERVER_ERROR2,_a.SERVICE_ERROR),Sa.SERVER_ERROR3,_a.SERVICE_ERROR),Sa.SERVER_ERROR4,_a.SERVICE_ERROR),Sa.INVALID_SDK_CDN_URL,_a.SERVICE_ERROR));!function(e){e[e.RECORD_START_FAILED=29e3]="RECORD_START_FAILED",e[e.RECORD_STOP_FAILED=29001]="RECORD_STOP_FAILED",e[e.RECORD_PAUSE_FAILED=29002]="RECORD_PAUSE_FAILED",e[e.RECORD_RESUME_FAILED=29003]="RECORD_RESUME_FAILED"}(Ra||(Ra={})),function(e){e[e.SESSION_START_FAILED=1001]="SESSION_START_FAILED",e[e.SESSION_CONNECTING_IN_PROGRESS=1002]="SESSION_CONNECTING_IN_PROGRESS",e[e.SESSION_NOT_FOUND=1003]="SESSION_NOT_FOUND",e[e.SESSION_COUNT_LIMIT=1004]="SESSION_COUNT_LIMIT",e[e.SESSION_REFRESH_PIN_FAILED=1005]="SESSION_REFRESH_PIN_FAILED",e[e.SESSION_JOIN_PIN_NOT_FOUND=1006]="SESSION_JOIN_PIN_NOT_FOUND",e[e.SESSION_PIN_CODE_EXPIRED=1007]="SESSION_PIN_CODE_EXPIRED",e[e.SESSION_PIN_INVALID_FORMAT=1008]="SESSION_PIN_INVALID_FORMAT",e[e.SESSION_START_PIN_REQUIRED=1009]="SESSION_START_PIN_REQUIRED",e[e.SESSION_START_PIN_CONFLICT=1010]="SESSION_START_PIN_CONFLICT",e[e.SESSION_JOIN_FAILED=1011]="SESSION_JOIN_FAILED",e[e.SESSION_CUSTOMER_COUNT_LIMIT=1012]="SESSION_CUSTOMER_COUNT_LIMIT",e[e.SESSION_AGENT_COUNT_LIMIT=1013]="SESSION_AGENT_COUNT_LIMIT",e[e.SESSION_CUSTOMIZE_OVERRIDE_ERROR=1014]="SESSION_CUSTOMIZE_OVERRIDE_ERROR",e[e.SESSION_DUPLICATE_USER=1015]="SESSION_DUPLICATE_USER",e[e.NETWORK_ERROR=1016]="NETWORK_ERROR",e[e.SESSION_CANCELING_IN_PROGRESS=1017]="SESSION_CANCELING_IN_PROGRESS",e[e.TRANSFER_TO_NEW_TAB_FAILED=1018]="TRANSFER_TO_NEW_TAB_FAILED",e[e.TOKEN_INVALID=2001]="TOKEN_INVALID",e[e.RECORD_ERROR_UNKNOWN=3001]="RECORD_ERROR_UNKNOWN",e[e.RECORD_START_FAILED=3002]="RECORD_START_FAILED",e[e.RECORD_END_FAILED=3003]="RECORD_END_FAILED",e[e.RECORD_PAUSE_FAILED=3004]="RECORD_PAUSE_FAILED",e[e.RECORD_RESUME_FAILED=3005]="RECORD_RESUME_FAILED",e[e.UNDEFINED=9999]="UNDEFINED"}(ga||(ga={})),function(e){e.Enter="Enter",e.Space=" ",e.Escape="Escape",e.Tab="Tab",e.ArrowUp="ArrowUp",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Delete="Delete",e.Backspace="Backspace",e.Spacebar="Spacebar"}(Ta||(Ta={}));var Ca=function(){return"undefined"==typeof window||"undefined"==typeof document};function ha(){var e=navigator.userAgent;return/iPhone|iPad|iPod/.test(e)}function Na(){return ha()||navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/Windows Phone/i)}function Aa(){return!Ca()&&("MacIntel"===(window.navigator.platform||"")&&((window.navigator.maxTouchPoints||0)>1&&"ontouchstart"in window))}function Da(){return Aa()||function(){if(Ca())return!1;var e=window.navigator,n=e.userAgent,t=e.platform;if(/Android/.test(n)||!/Linux/.test(t))return!1;var r="ontouchstart"in window&&("orientation"in window||"screen"in window&&window.screen&&"orientation"in window.screen)&&window.navigator.maxTouchPoints>0,o="standalone"in window.navigator||"share"in window.navigator||"vibrate"in window.navigator;return r&&o}()}var va,ma,ya,Pa=(va=null,ma=null,ya=null,{get isIOS(){return null===va&&(va=ha()),va},get isIOSDevice(){return null===ma&&(ma=ha()||Aa()),ma},get isMobileDeviceOrDesktopUA(){return null===ya&&(ya=!(!Na()&&!Da())),ya}}),ba=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"calculateWidth",value:function(){var e,n,t=window.visualViewport;if(!Ba(t))return wa();if(t.scale>1){var r=t.width*t.scale;return Math.min(r,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.width)&&void 0!==n?n:r)}return t.width}},{key:"calculateHeight",value:function(){var e,n,t=window.visualViewport;if(!Ba(t))return Ma();if(t.scale>1){var r=t.height*t.scale;return Math.min(r,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.height)&&void 0!==n?n:r)}return t.height}}]),e}(),La=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"calculateWidth",value:function(){var e,n,t=window.visualViewport;if(!Ba(t))return wa();if(t.scale>1){var r=Math.max(t.width*t.scale,window.innerWidth);return Math.min(r,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.width)&&void 0!==n?n:r)}return Math.max(t.width,window.innerWidth)}},{key:"calculateHeight",value:function(){var e,n,t=window.visualViewport;if(!Ba(t))return Ma();if(t.scale>1){var r=Math.max(t.height*t.scale,window.innerHeight);return Math.min(r,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.height)&&void 0!==n?n:r)}return Math.max(t.height,window.innerHeight)}}]),e}();function wa(){return"undefined"==typeof document?0:document.documentElement&&document.documentElement.clientWidth||window.innerWidth||document.body&&document.body.clientWidth}function Ma(){return"undefined"==typeof document?0:document.documentElement&&document.documentElement.clientHeight||window.innerHeight||document.body&&document.body.clientHeight}var Fa=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"calculateWidth",value:function(){return wa()}},{key:"calculateHeight",value:function(){return Ma()}}]),e}(),Ua=function(){var e,n=!1;function t(){e=Pa.isMobileDeviceOrDesktopUA&&Ba(window.visualViewport)?Pa.isIOSDevice?new ba:new La:new Fa,n=!0}return{getWidth:function(){return n||t(),e.calculateWidth()},getHeight:function(){return n||t(),e.calculateHeight()}}}();var ka=new WeakMap;function Ba(e){if(!e||"object"!==_typeof(e))return!1;if(e.constructor&&"VisualViewport"===e.constructor.name){var n=ka.get(e);if(void 0!==n)return n}var t=function(e){return"object"===_typeof(e)&&null!==e&&"scale"in e&&"width"in e&&"height"in e&&"offsetTop"in e&&"number"==typeof e.scale&&"number"==typeof e.width&&"number"==typeof e.height&&"number"==typeof e.offsetTop}(e);return t&&ka.set(e,t),t}Ua.getWidth(),Ua.getHeight();function xa(e,n,t){var r;null===(r=null==n?void 0:n.postMessage)||void 0===r||r.call(n,e,t)}var Va,Wa=function(e){_inherits(t,_wrapNativeSuper(Error));var n=_createSuper(t);function t(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return _classCallCheck(this,t),(r=n.call(this,e)).msg=e,r.code=o,r.statusCode=i,r}return _createClass(t)}();function Ga(e,n){var t=this,i=n||{},a=i.retry,s=i.handleJsonResponse,u=r(i,["retry","handleJsonResponse"]),c=s||function(e){return o(t,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(!e.ok){n.next=4;break}return n.abrupt("return",e);case 4:return n.prev=4,n.next=7,e.json();case 7:o=n.sent,t=o.message,r=o.code,n.next=16;break;case 12:n.prev=12,n.t0=n.catch(4),t=e.statusText,r=e.status;case 16:throw new Wa(t,r,e.status);case 17:case"end":return n.stop()}}),n,null,[[4,12]])})))},_=Object.assign({limit:3},a),E=_.limit,l=_.delay;return new Promise((function(n,t){var r=function(r){var a,s;return o(this,void 0,void 0,_regeneratorRuntime().mark((function o(){var _,l,d;return _regeneratorRuntime().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,fetch(e,u);case 3:return _=o.sent,o.next=6,c(_);case 6:return l=o.sent,n(l),o.abrupt("return");case 11:if(o.prev=11,o.t0=o.catch(0),d=o.t0&&null!==(s=null!==(a=o.t0.statusCode)&&void 0!==a?a:o.t0.status)&&void 0!==s?s:1/0,!(r>=E||d<500&&0!==d)){o.next=17;break}return!o.t0||o.t0 instanceof TypeError&&/Load failed|fetch/i.test(o.t0.message)?t(new Wa(Oa[Sa.NETWORK_ERROR],Sa.NETWORK_ERROR)):t(o.t0),o.abrupt("return");case 17:i(r);case 18:case"end":return o.stop()}}),o,null,[[0,11]])})))};function i(e){void 0!==l?window.setTimeout((function(){r(++e)}),l):r(++e)}r(0)}))}!function(e){e[e.NOT_DEFINED=-1]="NOT_DEFINED"}(Va||(Va={}));var Ha=function(e){_inherits(t,_wrapNativeSuper(Error));var n=_createSuper(t);function t(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Va.NOT_DEFINED,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return _classCallCheck(this,t),(r=n.call(this,e)).msg=e,r.code=o,r.statusCode=i,r}return _createClass(t)}(),Ja=function(e){_inherits(t,_wrapNativeSuper(Error));var n=_createSuper(t);function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ri.UNKNOWN;return _classCallCheck(this,t),(e=n.call(this,r)).msg=r,e}return _createClass(t)}(),Ya=jo(["CoBrowsing AgentSDK","COMMON"]);function ja(e,n){return new Promise((function(t,o){null==n||n(e);var i=e.success,a=r(e,["success"]);i?t(a):o(e.error)}))}var Ka=function(e){return o(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:if(!e.ok){n.next=7;break}return n.next=3,e.json();case 3:return t=n.sent,n.abrupt("return",t);case 7:return n.next=9,e.json();case 9:throw r=n.sent,new Ha(r.message,r.code,e.status);case 11:case"end":return n.stop()}}),n)})))},za=function(e,n){return o(void 0,void 0,void 0,_regeneratorRuntime().mark((function t(){var o,i,a,s,u,c,_,E;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=(o=n||{}).headers,a=void 0===i?{}:i,s=o.authToken,u=r(o,["headers","authToken"]),c=Fr.getZmTrackingIdForWeb(),Er(e)?Ya.log("zmTrackingIdForWeb:".concat(c,", url ").concat(e)):Ya.log("zmTrackingIdForWeb:".concat(c)),(_=new URL(e.toString())).searchParams.set("t",Date.now().toString()),t.next=7,Ga(_,Object.assign({headers:Object.assign({"Content-Type":"application/json",Authorization:"Bearer ".concat(s),"x-zm-trackingid":c},a),method:"GET",handleJsonResponse:Ka},u));case 7:return E=t.sent,t.abrupt("return",E);case 9:case"end":return t.stop()}}),t)})))};function Za(){var e;return"https://"+(ir()?null===(e=ar())||void 0===e?void 0:e.domain:window.ZMCoBrowsingConfig.domain)}function Xa(e,n){var t=e;if(!0!==Hn.getCoBrowsingConfig("isLoadFromSDKEntry")&&(ur()&&(t="".concat(e,"/").concat(cr())),window.location.pathname===t)){var r=new URLSearchParams(window.location.search);Object.entries(n).forEach((function(e){var n=_slicedToArray(e,2),t=n[0],o=n[1];r.set(t,o)}));var o="".concat(window.location.pathname,"?").concat(r.toString());history.replaceState({},"",o)}}var qa,Qa=function(e){return ir()&&sessionStorage.getItem(Rt(e))||""};!function(e){e.SESSION_JOINED="session_joined",e.SESSION_LEFT="session_left",e.SESSION_ENDED="session_ended",e.SESSION_ERROR="session_error"}(qa||(qa={}));var $a,es=new Map([[ga.SESSION_START_FAILED,[Sa.INVALID_URL,Sa.SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_DISABLE,Sa.SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_NO_CREDIT]],[ga.SESSION_CONNECTING_IN_PROGRESS,[Ea.SESSION_CONNECTING,Ea.SESSION_PERSISTING]],[ga.SESSION_NOT_FOUND,[Sa.SESSION_NOT_FOUND]],[ga.SESSION_COUNT_LIMIT,[Ea.DUPLICATE_SESSION,Ea.DUPLICATE_LAUNCH_SESSION]],[ga.SESSION_REFRESH_PIN_FAILED,[Wi.REFRESH_PIN_CODE_FAILED]],[ga.SESSION_JOIN_PIN_NOT_FOUND,[Sa.PIN_CODE_NOT_FOUND]],[ga.SESSION_PIN_CODE_EXPIRED,[Sa.PIN_CODE_EXPIRED]],[ga.SESSION_PIN_INVALID_FORMAT,[Sa.PIN_CODE_EXCEEDED_MAX_LENGTH,Sa.PIN_INVALID_CHARACTERS]],[ga.SESSION_START_PIN_REQUIRED,[Sa.PIN_CODE_IS_REQUIRED]],[ga.SESSION_START_PIN_CONFLICT,[Sa.PIN_CODE_HAS_BEEN_USED]],[ga.SESSION_JOIN_FAILED,[Ea.FRAME_LEVEL_NOT_READY,Ea.EMPTY_PING_LIST,Ea.ALL_PING_FAILED,Ea.SOCKET_RECONNECT_FAILED,Ea.SOCKET_FAIL_OVER_FAILED,Sa.INVALID_SDK_VERSION,Sa.ERROR_SDK_VERSION,Sa.INACTIVE_SDK_VERSION,Sa.SDK_VERSION_NOT_FOUND,Ki.WEB_REPORT_REGION_FAILED,Ki.WEB_REPORT_REGION_NOT_MATCH,Ki.WEB_REPORT_USER_JOIN_FAILED,Ki.WEB_REPORT_USER_JOIN_EMPTY,Ki.WEB_REPORT_USER_JOIN_EMPTY_USER,Ki.AUTH_CONFLICT,Ki.AUTH_VERIFY_FAILED,Ki.AUTH_DB_QUERY_ERROR,Ki.ROOM_NOT_EXIST,Ki.ROOM_ADD_USER_FAILED,Ki.SESSION_ALREADY_ENDED,Ki.ROOM_DEPRECATED,Ki.ROOM_ID_MISSING,Ki.AUTH_PAYLOAD_MISSING,Ki.START_URL_INVALID,Ki.META_DATA_INVALID,Ki.WSSGW_INSTANCE_NOT_FOUND]],[ga.SESSION_CUSTOMER_COUNT_LIMIT,[Ki.LEADER_CONFLICT,Ki.REACHED_LEADER_LIMIT]],[ga.SESSION_AGENT_COUNT_LIMIT,[Ki.FOLLOWER_CONFLICT,Ki.REACHED_FOLLOWER_LIMIT]],[ga.SESSION_CUSTOMIZE_OVERRIDE_ERROR,[]],[ga.SESSION_DUPLICATE_USER,[Ki.USER_CONFLICT]],[ga.NETWORK_ERROR,[Sa.NETWORK_ERROR]],[ga.SESSION_CANCELING_IN_PROGRESS,[Ea.SESSION_CANCELING]],[ga.TRANSFER_TO_NEW_TAB_FAILED,[]],[ga.TOKEN_INVALID,[Sa.INVALID_TOKEN,Sa.NO_PERMISSION,Sa.INVALID_EXPIRED,Sa.TOKEN_ACCESS_ERROR]],[ga.UNDEFINED,[Ea.UNKNOWN_SERVICE_EXCEPTION,Sa.UNKNOWN,Sa.LOCKED,Sa.PIN_PUSH_FAILED,Sa.INVALID_BUSINESS_TYPE,Sa.INVALID_RECORDING_ID,Sa.MISSING_FIELD,Sa.SEARCH_ERROR,Sa.INVALID_BUSINESS_TYPE2,Sa.FILE_SERVER_ERROR,Sa.FILE_SERVICE_ERROR,Sa.FILE_SERVICE_ERROR2,Sa.INVALID_START_TIME,Sa.INVALID_ACTION,Sa.INVALID_REGION,Sa.EXCEEDED_FAILED,Sa.INVALID_END_TIME,Sa.PIN_CODE_NOT_READY,Sa.INVALID_TOTAL_MINUTES,Sa.DUPLICATE_REQUEST,Sa.INVALID_TEMPLATE_TYPE,Sa.SERVER_ERROR1,Sa.SERVER_ERROR2,Sa.SERVER_ERROR3,Sa.SERVER_ERROR4,Sa.INVALID_SDK_CDN_URL,Ki.MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE,Ki.MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION,24e3,24002,25100,25101,25102,25103,25104,25105,25200,25201,25202,26600,26601,26702,26703]],[3001,[26700]],[3002,[2e4,20001,20002,20003,20004,20005,20006,20007,24001,26100,26101,26102,26103,26104,26105,26106,26200,26201,26203,26204,26301,26302,26303,26304,26305,26400,26401,26402,26403,26404,26405,26500,26501,26502,26503,26504,26506,26701,26800,26801,29e3]],[3003,[21e3,21001,25203,25204,26202,26505,29001]],[3004,[22e3,29002]],[3005,[23e3,29003]]]),ns=[29e3,29001,29002,29003],ts=new Map,rs=_createForOfIteratorHelper(es);try{var os=function(){var e=_slicedToArray($a.value,2),n=e[0];e[1].forEach((function(e){ts.set(e,n)}))};for(rs.s();!($a=rs.n()).done;)os()}catch(e){rs.e(e)}finally{rs.f()}var is="".concat("zcb-el-","aria-notify-area");var as=function(e,n){var t=null;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];t&&clearTimeout(t),t=setTimeout((function(){e.apply(r,i)}),n)}}((function(e){!function(){if(!document.getElementById(is)){var e=document.createElement("div");e.id=is,e.setAttribute("role","alert"),e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","assertive"),e.style.position="fixed",e.style.left="-10000px",e.style.top="-10000px",e.style.width="1px",e.style.height="1px",e.style.overflow="hidden",e.style.clip="rect(0, 0, 0, 0)",e.style.whiteSpace="nowrap",e.style.border="0",e.style.margin="-1px",e.style.padding="0",e.style.zIndex="-1",e.style.pointerEvents="none",e.style.userSelect="none",document.body.appendChild(e)}}();var n=document.getElementById(is);n&&(n.innerText="",requestAnimationFrame((function(){n.innerText=e,setTimeout((function(){n.innerText=""}),3e4)})))}),50);function ss(e,n){switch(e){case Ui.SESSION_JOINED:as("Agent has joined the session.");break;case Ui.SESSION_LEFT:as("Agent has left the session.");break;case Ui.SESSION_ENDED:as("Session has ended.");break;case Ui.SESSION_ERROR:as((null==n?void 0:n.errorMsg)||"Session error occurred")}}var us=jo(["CoBrowsing AgentSDK","COMMON"]),cs="/sdkapi/zcb/frame-templates/viewer",_s=new(function(){function e(){_classCallCheck(this,e),this.sessionMap=new Map}return _createClass(e,[{key:"isNpmMode",get:function(){return!!window.ZCB_NPM_SDK_AGENT_MAIN}},{key:"deleteSession",value:function(e){this.sessionMap.delete(e)}},{key:"clearDeactivedSessions",value:function(){var e=this;this.sessionMap.forEach((function(n,t){t._destroyed&&(e.deleteSession(t),t._destroy())}))}},{key:"createSession",value:function(n){if(this.isNpmMode){this.clearDeactivedSessions();var t=new Es(n);return this.sessionMap.set(t,!0),t}return e.session||(e.session=new Es(n)),e.session}}]),e}()),Es=function(e){_inherits(t,e);var n=_createSuper(t);function t(e){var r;_classCallCheck(this,t),(r=n.call(this)).options=e,r.manager=_s,r.autoJoinSessionDetailsPromise=null,r.sessionEventInfo=null,r._destroyed=!1;var o=(e||{}).zoomAppRoot;if(r.isNpmMode){var i=new Ja(ri.NO_ROOT_DOM);if(!o||"string"!=typeof o&&!(o instanceof HTMLElement))throw i;var a="string"==typeof o?document.querySelector(o):o;if(!(null==a?void 0:a.isConnected))throw i;r.frameRoot=a}return r.messageListener=r.messageCallback.bind(_assertThisInitialized(r)),window.addEventListener("message",r.messageListener),r}return _createClass(t,[{key:"isNpmMode",get:function(){return!!window.ZCB_NPM_SDK_AGENT_MAIN}},{key:"getPayloadFromJwtToken",value:function(e){var n;if("string"!=typeof e)return null;var t=(null===(n=e.split("."))||void 0===n?void 0:n[1])||"",r=null;try{r=JSON.parse(gt(t))}catch(e){}return r}},{key:"init",value:function(){var e;return o(this,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,r;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!this.isNpmMode){n.next=6;break}if(t=Qa(Bi)||Qa(ki),r=t?null===(e=this.getPayloadFromJwtToken(t))||void 0===e?void 0:e.session_id:"",!t||!r){n.next=6;break}return n.next=6,this.getSessionStatus({sessionId:r,authToken:t});case 6:case"end":return n.stop()}}),n,this)})))}},{key:"getSessionStatus",value:function(e){return o(this,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,r,o,i=this;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.sessionId,r=e.authToken,o=new URL(zn.getSessionStatus,Za()),us.log("Call CommonAgentSession.getSessionStatus: check auto join"),n.abrupt("return",za("".concat(o,"/").concat(t),{authToken:r}).then((function(e){var n;i.storeTokenForRefresh(null===(n=e.current_user)||void 0===n?void 0:n.auth_token),i.autoJoinSessionDetailsPromise=new zr,i.autoJoinSessionDetailsPromise.resolve(e)})).catch((function(){i.delTokenForRefresh()})));case 4:case"end":return n.stop()}}),n)})))}},{key:"delTokenForRefresh",value:function(){var e;this.isNpmMode&&(e=[ki,Bi],ir()&&e.forEach((function(e){sessionStorage.removeItem(Rt(e))})))}},{key:"storeTokenForRefresh",value:function(e){var n,t;this.isNpmMode&&e&&(n=Bi,t={access_token:e},ir()?sessionStorage.setItem(Rt(n),(null==t?void 0:t.access_token)||""):Xa(n,t))}},{key:"createAgentViewerEndpoint",value:function(e,n){return o(this,void 0,void 0,_regeneratorRuntime().mark((function t(){var r,o,i=this;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=_r(e.sdkToken||"",["user_id","role_type"],us),Bo.setSession({userId:r.user_id,participantType:r.role_type}),us.log("Call createAgentViewerEndpoint, pinCode:".concat(null==e?void 0:e.pinCode,", ").concat((new Date).valueOf())),t.next=5,this.authByPinCode(e).then((function(e){return us.log("Call createAgentViewerEndpoint success, sessionId:".concat(i.sessionId)),{success:!0,agentViewerUrl:i.getAgentViewerUrl(e.current_user.auth_token)}}),(function(e){return us.log("Call createAgentViewerEndpoint failed, error: ".concat(JSON.stringify(e),", ").concat((new Date).valueOf())),{success:!1,error:i.handleFetchError(e)}}));case 5:return o=t.sent,t.abrupt("return",ja(o,n));case 7:case"end":return t.stop()}}),t,this)})))}},{key:"authByPinCode",value:function(e){return o(this,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,r,o,i,a,s=this;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.pinCode,r=e.sdkToken,o=pi(zn.joinSession),i=o.expand({pinCode:t||""}),this.delTokenForRefresh(),a=new URL(i,Za()),n.abrupt("return",za(a,{authToken:r}).then((function(e){var n,t,r;return s.sessionId=e.session_id||"",s.pinCode=e.cobrowse_code||"",s.storeTokenForRefresh(null===(n=e.current_user)||void 0===n?void 0:n.auth_token),Bo.setSession({sessionId:e.session_id,userId:null===(t=e.current_user)||void 0===t?void 0:t.user_id,participantType:null===(r=e.current_user)||void 0===r?void 0:r.role_type}),e})));case 6:case"end":return n.stop()}}),n,this)})))}},{key:"handleFetchError",value:function(e){var n,t,r=pa[e.code]||Oa[e.code],o=void 0!==(null==e?void 0:e.code)?new Ha(r,e.code,e.statusCode):(null==e?void 0:e.statusCode)===da.Unauthorized||(null==e?void 0:e.statusCode)===da.Forbidden?new Ha(Ia[e.statusCode],e.statusCode,e.statusCode):new Ha(fa[Ea.UNKNOWN_SERVICE_EXCEPTION],Ea.UNKNOWN_SERVICE_EXCEPTION,Ea.UNKNOWN_SERVICE_EXCEPTION),i={errorMsg:o.message,code:(t=o.code,(t?ns.includes(t)?t:ts.get(t)||void 0:ga.UNDEFINED)||ga.UNDEFINED),version:ir()?null===(n=ar())||void 0===n?void 0:n.sdkVersion:window.ZMCoBrowsingConfig.sdkVersion};return us.log("session error trigger, internalCode:".concat(o.code,", externalCode:").concat(i.code,", reason:").concat(i.errorMsg,", ").concat((new Date).valueOf())),this.emit(qa.SESSION_ERROR,i),ss(Ui.SESSION_ERROR,i),i}},{key:"getAgentViewerUrl",value:function(e){return ur()?"".concat(Za()).concat(cs,"/").concat(cr(),"?access_token=").concat(e):"".concat(Za()).concat(cs,"?access_token=").concat(e)}},{key:"join",value:function(e){return o(this,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:return us.log("Call CommonAgentSession.join"),t=!e,n.abrupt("return",(t&&this.autoJoinSessionDetailsPromise?this.autoJoinSessionDetailsPromise.promise:this.authByPinCode(e)).then((function(e){var n;us.log("Call CommonAgentSession.join success, sessionId:".concat(r.sessionId));var t=(e||{}).sdk_config||{},o=t.gateway_endpoint,i=t.enable_zcb_client_log;void 0!==i&&us.setLaplaceEnabled(i),o&&!r.isNpmMode&&us.setReportUrl(o);var a=document.createElement("iframe");return r.frameRoot.appendChild(a),null===(n=window.ZCB_NPM_SDK_AGENT_MAIN)||void 0===n||n.initAgentPortal(a,e),r.iframe=a,{success:!0}}),(function(e){return us.log("Call CommonAgentSession.join failed, error: ".concat(JSON.stringify(e))),{success:!1,error:r.handleFetchError(e)}})));case 3:case"end":return n.stop()}}),n,this)})))}},{key:"getSessionInfo",value:function(){var e,n={sessionId:this.sessionId,pinCode:this.pinCode};return(null===(e=this.autoJoinSessionDetailsPromise)||void 0===e?void 0:e.resolved)&&(n.sessionStatus=ni.RECOVERABLE),n}},{key:"startRemoteAssist",value:function(){us.log("Call CommonAgentSession.startRemoteAssist, sessionId:".concat(this.sessionId)),this.sessionEventInfo&&xa({event:xi.START_REMOTE_ASSIST},this.sessionEventInfo.source,this.sessionEventInfo.origin)}},{key:"stopRemoteAssist",value:function(){us.log("Call CommonAgentSession.stopRemoteAssist, sessionId:".concat(this.sessionId)),this.sessionEventInfo&&xa({event:xi.STOP_REMOTE_ASSIST},this.sessionEventInfo.source,this.sessionEventInfo.origin)}},{key:"markAsDestroy",value:function(){this._destroyed=!0}},{key:"_destroy",value:function(){window.removeEventListener("message",this.messageListener),this.manager.deleteSession(this),this.iframe.parentNode&&this.iframe.parentNode.removeChild(this.iframe)}},{key:"isMessageBelongToSession",value:function(e){var n;return this.isNpmMode?e.source===(null===(n=this.iframe)||void 0===n?void 0:n.contentWindow):e.origin===Za()}},{key:"messageCallback",value:function(e){if(this.isMessageBelongToSession(e)){var n=e.data;if(n&&"object"===_typeof(n)&&n.event&&Vi.includes(n.event)){if(us.log("agent trigger message event: ".concat(n.event)),n.event===Ui.SESSION_PRE_INIT){var t=r(this.options,["zoomAppRoot","zoomHostName","appKey"]),o=Fr.getZmTrackingId();return this.sessionEventInfo={source:e.source,origin:e.origin},void xa({event:xi.SEND_SESSION_OPTIONS,data:{options:t,info:{zmTrackingId:o}}},e.source,e.origin)}this.emit(n.event,n.data),ss(n.event,n.data),(n.event===Ui.SESSION_ENDED||n.event===Ui.SESSION_LEFT||n.event===Ui.SESSION_ERROR&&(i=n.code,![Ea.DUPLICATE_SESSION,Wi.REFRESH_PIN_CODE_FAILED].includes(i)))&&(this.sessionEventInfo=null,this.markAsDestroy())}}var i}},{key:"on",value:function(e,n){return _get(_getPrototypeOf(t.prototype),"on",this).call(this,e,n)}},{key:"emit",value:function(e,n){return _get(_getPrototypeOf(t.prototype),"emit",this).call(this,e,n)}}]),t}(ci),ls=jo(["CoBrowsing AgentSDK","COMMON"]),ds=function(e,n){return o(void 0,void 0,void 0,_regeneratorRuntime().mark((function t(){var r,o,i;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Fr.getZmTrackingId(),Rr({zmTrackingId:r}),ls.log("session init, zmTrackingId:".concat(r)),console.log("zmTrackingId",r),o={success:!0,sdkInfo:{version:null==sr?void 0:sr()}},t.prev=5,i=_s.createSession(e),t.next=9,i.init();case 9:o.session=i,t.next=16;break;case 12:t.prev=12,t.t0=t.catch(5),o.success=!1,o.error=t.t0 instanceof Ja?t.t0.msg:ri.UNKNOWN;case 16:return t.abrupt("return",new Promise((function(e,t){null==n||n(o),o.success?e(o):t(o.error)})));case 17:case"end":return t.stop()}}),t,null,[[5,12]])})))};return(null===window||void 0===window?void 0:window.ZoomCobrowseAgentSDKInitArgs)&&(ds.apply(void 0,_toConsumableArray(window.ZoomCobrowseAgentSDKInitArgs)),delete window.ZoomCobrowseAgentSDKInitArgs),e.init=ds,Object.defineProperty(e,"__esModule",{value:!0}),e}({});\n//# sourceMappingURL=https://d1cdksi819e9z7.cloudfront.net/zcb/mhvk59am/zcb-client-agent.js.map\n';export{e as default};
|