@zoom/cobrowsesdk 2.13.1 → 2.13.2

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/esm/sdk-client.js CHANGED
@@ -1 +1 @@
1
- var 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 _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 _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 _arrayLikeToArray(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=Array(n);t<n;t++)o[t]=e[t];return o}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,o=_getPrototypeOf(e);if(n){var r=_getPrototypeOf(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.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 _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 _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 _classCallCheck(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o)}}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 o=t.call(e,n||"default");if("object"!=_typeof(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}var ZoomCobrowseSDK=function(e,n){"use strict";(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;if(null===(e=globalThis.ZCB_NPM_SDK_AGENT_MAIN)||void 0===e?void 0:e.isInnerFrame(document)){var o=null;try{o=globalThis.parent.ZCB_CoBrowseConfigController.coBrowsingConfig}catch(e){}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},o))}}}],[{key:"create",value:function(){return globalThis.ZCB_CoBrowseConfigController||new e}}]),e})().create();var t,o,r,i=function(e,n){return"".concat(e).concat(n)};!function e(n,t){var o={},r=function(){var r=n[_];"string"==typeof r?o[_]=i(t,r):"function"==typeof r?o[_]=function(){return i(t,r.apply(void 0,arguments))}:"object"===_typeof(r)&&(r instanceof RegExp||(o[_]=e(r,t)))};for(var _ in n)r();return o}({log:{report:"/report-log"},blob:{uploadBlob:"/upload-blob",getBlobUrl:function(e){return"/cps-blob-".concat(e)},getBlobUrlReg:/cps-blob-([^?#\\/]+)/}},"/co-browsing"),function(e){e.LOCAL="local",e.PROD="prod"}(t||(t={})),function(e){e.LEADER="1",e.FOLLOWER="2",e.RECORDER="11"}(o||(o={})),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"}(r||(r={}));var _,E;!function(e){e.LEADER="HR",e.FOLLOWER="VR"}(_||(_={})),new RegExp("(.+)(HTTPS?)/(.+)/".concat("CPS-SEP-FLAG","/(").concat(_.FOLLOWER,"|").concat(_.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"}(E||(E={}));var a,s,R,S,I,O,T,c,u,l,C=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");a={},C.forEach((function(e,n){return a[e]=n})),String.fromCharCode.bind(String),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"}(s||(s={})),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"}(R||(R={})),function(e){e[e.FullSnapshot=-1]="FullSnapshot",e[e.Annotation=16]="Annotation"}(S||(S={})),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"}(I||(I={})),function(e){e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2"}(O||(O={})),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"}(T||(T={})),function(e){e.CBS="CBS",e.CBS_SUB="CBS_SUB",e.IFRAME_ANOTATION="IFRAME_ANOTATION",e.REMOTE_ASSIST_FLYING_CURSOR="REMOTE_ASSIST_FLYING_CURSOR"}(c||(c={})),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"}(u||(u={})),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"}(l||(l={}));var D="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function N(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 o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})})),t}var A={},d={get exports(){return A},set exports(e){A=e}};var f,g={},p={get exports(){return g},set exports(e){g=e}},P=N(Object.freeze({__proto__:null,default:{}}));function L(){return f||(f=1,p.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!==D&&D.crypto&&(t=D.crypto),!t)try{t=P}catch(e){}var o=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.")},r=Object.create||function(){function e(){}return function(n){var t;return e.prototype=n,t=new e,e.prototype=null,t}}(),i={},_=i.lib={},E=_.Base={extend:function(e){var n=r(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)}},a=_.WordArray=E.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=t!=n?t:4*e.length},toString:function(e){return(e||R).stringify(this)},concat:function(e){var n=this.words,t=e.words,o=this.sigBytes,r=e.sigBytes;if(this.clamp(),o%4)for(var i=0;i<r;i++){var _=t[i>>>2]>>>24-i%4*8&255;n[o+i>>>2]|=_<<24-(o+i)%4*8}else for(var E=0;E<r;E+=4)n[o+E>>>2]=t[E>>>2];return this.sigBytes+=r,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=E.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(o());return new a.init(n,e)}}),s=i.enc={},R=s.Hex={stringify:function(e){for(var n=e.words,t=e.sigBytes,o=[],r=0;r<t;r++){var i=n[r>>>2]>>>24-r%4*8&255;o.push((i>>>4).toString(16)),o.push((15&i).toString(16))}return o.join("")},parse:function(e){for(var n=e.length,t=[],o=0;o<n;o+=2)t[o>>>3]|=parseInt(e.substr(o,2),16)<<24-o%8*4;return new a.init(t,n/2)}},S=s.Latin1={stringify:function(e){for(var n=e.words,t=e.sigBytes,o=[],r=0;r<t;r++){var i=n[r>>>2]>>>24-r%4*8&255;o.push(String.fromCharCode(i))}return o.join("")},parse:function(e){for(var n=e.length,t=[],o=0;o<n;o++)t[o>>>2]|=(255&e.charCodeAt(o))<<24-o%4*8;return new a.init(t,n)}},I=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(S.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return S.parse(unescape(encodeURIComponent(e)))}},O=_.BufferedBlockAlgorithm=E.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=I.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(n){var t,o=this._data,r=o.words,i=o.sigBytes,_=this.blockSize,E=i/(4*_),s=(E=n?e.ceil(E):e.max((0|E)-this._minBufferSize,0))*_,R=e.min(4*s,i);if(s){for(var S=0;S<s;S+=_)this._doProcessBlock(r,S);t=r.splice(0,s),o.sigBytes-=R}return new a.init(t,R)},clone:function(){var e=E.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});_.Hasher=O.extend({cfg:E.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){O.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 T.HMAC.init(e,t).finalize(n)}}});var T=i.algo={};return i}(Math),e)),g;var e}var m,y={},M={get exports(){return y},set exports(e){y=e}};function h(){return m||(m=1,M.exports=(e=L(),function(){var n=e,t=n.lib.WordArray;function o(e,n,o){for(var r=[],i=0,_=0;_<n;_++)if(_%4){var E=o[e.charCodeAt(_-1)]<<_%4*2|o[e.charCodeAt(_)]>>>6-_%4*2;r[i>>>2]|=E<<24-i%4*8,i++}return t.create(r,i)}n.enc.Base64={stringify:function(e){var n=e.words,t=e.sigBytes,o=this._map;e.clamp();for(var r=[],i=0;i<t;i+=3)for(var _=(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,E=0;E<4&&i+.75*E<t;E++)r.push(o.charAt(_>>>6*(3-E)&63));var a=o.charAt(64);if(a)for(;r.length%4;)r.push(a);return r.join("")},parse:function(e){var n=e.length,t=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var i=0;i<t.length;i++)r[t.charCodeAt(i)]=i}var _=t.charAt(64);if(_){var E=e.indexOf(_);-1!==E&&(n=E)}return o(e,n,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64)),y;var e}var F,U={},v={get exports(){return U},set exports(e){U=e}};function b(){return F||(F=1,v.exports=(e=L(),function(n){var t=e,o=t.lib,r=o.WordArray,i=o.Hasher,_=t.algo,E=[];!function(){for(var e=0;e<64;e++)E[e]=4294967296*n.abs(n.sin(e+1))|0}();var a=_.MD5=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,n){for(var t=0;t<16;t++){var o=n+t,r=e[o];e[o]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var i=this._hash.words,_=e[n+0],a=e[n+1],O=e[n+2],T=e[n+3],c=e[n+4],u=e[n+5],l=e[n+6],C=e[n+7],D=e[n+8],N=e[n+9],A=e[n+10],d=e[n+11],f=e[n+12],g=e[n+13],p=e[n+14],P=e[n+15],L=i[0],m=i[1],y=i[2],M=i[3];L=s(L,m,y,M,_,7,E[0]),M=s(M,L,m,y,a,12,E[1]),y=s(y,M,L,m,O,17,E[2]),m=s(m,y,M,L,T,22,E[3]),L=s(L,m,y,M,c,7,E[4]),M=s(M,L,m,y,u,12,E[5]),y=s(y,M,L,m,l,17,E[6]),m=s(m,y,M,L,C,22,E[7]),L=s(L,m,y,M,D,7,E[8]),M=s(M,L,m,y,N,12,E[9]),y=s(y,M,L,m,A,17,E[10]),m=s(m,y,M,L,d,22,E[11]),L=s(L,m,y,M,f,7,E[12]),M=s(M,L,m,y,g,12,E[13]),y=s(y,M,L,m,p,17,E[14]),L=R(L,m=s(m,y,M,L,P,22,E[15]),y,M,a,5,E[16]),M=R(M,L,m,y,l,9,E[17]),y=R(y,M,L,m,d,14,E[18]),m=R(m,y,M,L,_,20,E[19]),L=R(L,m,y,M,u,5,E[20]),M=R(M,L,m,y,A,9,E[21]),y=R(y,M,L,m,P,14,E[22]),m=R(m,y,M,L,c,20,E[23]),L=R(L,m,y,M,N,5,E[24]),M=R(M,L,m,y,p,9,E[25]),y=R(y,M,L,m,T,14,E[26]),m=R(m,y,M,L,D,20,E[27]),L=R(L,m,y,M,g,5,E[28]),M=R(M,L,m,y,O,9,E[29]),y=R(y,M,L,m,C,14,E[30]),L=S(L,m=R(m,y,M,L,f,20,E[31]),y,M,u,4,E[32]),M=S(M,L,m,y,D,11,E[33]),y=S(y,M,L,m,d,16,E[34]),m=S(m,y,M,L,p,23,E[35]),L=S(L,m,y,M,a,4,E[36]),M=S(M,L,m,y,c,11,E[37]),y=S(y,M,L,m,C,16,E[38]),m=S(m,y,M,L,A,23,E[39]),L=S(L,m,y,M,g,4,E[40]),M=S(M,L,m,y,_,11,E[41]),y=S(y,M,L,m,T,16,E[42]),m=S(m,y,M,L,l,23,E[43]),L=S(L,m,y,M,N,4,E[44]),M=S(M,L,m,y,f,11,E[45]),y=S(y,M,L,m,P,16,E[46]),L=I(L,m=S(m,y,M,L,O,23,E[47]),y,M,_,6,E[48]),M=I(M,L,m,y,C,10,E[49]),y=I(y,M,L,m,p,15,E[50]),m=I(m,y,M,L,u,21,E[51]),L=I(L,m,y,M,f,6,E[52]),M=I(M,L,m,y,T,10,E[53]),y=I(y,M,L,m,A,15,E[54]),m=I(m,y,M,L,a,21,E[55]),L=I(L,m,y,M,D,6,E[56]),M=I(M,L,m,y,P,10,E[57]),y=I(y,M,L,m,l,15,E[58]),m=I(m,y,M,L,g,21,E[59]),L=I(L,m,y,M,c,6,E[60]),M=I(M,L,m,y,d,10,E[61]),y=I(y,M,L,m,O,15,E[62]),m=I(m,y,M,L,N,21,E[63]),i[0]=i[0]+L|0,i[1]=i[1]+m|0,i[2]=i[2]+y|0,i[3]=i[3]+M|0},_doFinalize:function(){var e=this._data,t=e.words,o=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32;var i=n.floor(o/4294967296),_=o;t[15+(r+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t[14+(r+64>>>9<<4)]=16711935&(_<<8|_>>>24)|4278255360&(_<<24|_>>>8),e.sigBytes=4*(t.length+1),this._process();for(var E=this._hash,a=E.words,s=0;s<4;s++){var R=a[s];a[s]=16711935&(R<<8|R>>>24)|4278255360&(R<<24|R>>>8)}return E},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function s(e,n,t,o,r,i,_){var E=e+(n&t|~n&o)+r+_;return(E<<i|E>>>32-i)+n}function R(e,n,t,o,r,i,_){var E=e+(n&o|t&~o)+r+_;return(E<<i|E>>>32-i)+n}function S(e,n,t,o,r,i,_){var E=e+(n^t^o)+r+_;return(E<<i|E>>>32-i)+n}function I(e,n,t,o,r,i,_){var E=e+(t^(n|~o))+r+_;return(E<<i|E>>>32-i)+n}t.MD5=i._createHelper(a),t.HmacMD5=i._createHmacHelper(a)}(Math),e.MD5)),U;var e}var B,V={},w={get exports(){return V},set exports(e){V=e}},W={},G={get exports(){return W},set exports(e){W=e}};function H(){return B||(B=1,G.exports=(E=L(),n=(e=E).lib,t=n.WordArray,o=n.Hasher,r=e.algo,i=[],_=r.SHA1=o.extend({_doReset:function(){this._hash=new t.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,n){for(var t=this._hash.words,o=t[0],r=t[1],_=t[2],E=t[3],a=t[4],s=0;s<80;s++){if(s<16)i[s]=0|e[n+s];else{var R=i[s-3]^i[s-8]^i[s-14]^i[s-16];i[s]=R<<1|R>>>31}var S=(o<<5|o>>>27)+a+i[s];S+=s<20?1518500249+(r&_|~r&E):s<40?1859775393+(r^_^E):s<60?(r&_|r&E|_&E)-1894007588:(r^_^E)-899497514,a=E,E=_,_=r<<30|r>>>2,r=o,o=S}t[0]=t[0]+o|0,t[1]=t[1]+r|0,t[2]=t[2]+_|0,t[3]=t[3]+E|0,t[4]=t[4]+a|0},_doFinalize:function(){var e=this._data,n=e.words,t=8*this._nDataBytes,o=8*e.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=Math.floor(t/4294967296),n[15+(o+64>>>9<<4)]=t,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}}),e.SHA1=o._createHelper(_),e.HmacSHA1=o._createHmacHelper(_),E.SHA1)),W;var e,n,t,o,r,i,_,E}var x,Y,J={},k={get exports(){return J},set exports(e){J=e}};function K(){return Y||(Y=1,w.exports=function(e){return function(){var n=e,t=n.lib,o=t.Base,r=t.WordArray,i=n.algo,_=i.MD5,E=i.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:_,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,n){for(var t,o=this.cfg,i=o.hasher.create(),_=r.create(),E=_.words,a=o.keySize,s=o.iterations;E.length<a;){t&&i.update(t),t=i.update(e).finalize(n),i.reset();for(var R=1;R<s;R++)t=i.finalize(t),i.reset();_.concat(t)}return _.sigBytes=4*a,_}});n.EvpKDF=function(e,n,t){return E.create(t).compute(e,n)}}(),e.EvpKDF}(L(),H(),x||(x=1,k.exports=(e=L(),t=(n=e).lib.Base,o=n.enc.Utf8,void(n.algo.HMAC=t.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(),_=this._iKey=n.clone(),E=i.words,a=_.words,s=0;s<t;s++)E[s]^=1549556828,a[s]^=909522486;i.sigBytes=_.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))}})))))),V;var e,n,t,o}var z,X,Z={},j={get exports(){return Z},set exports(e){Z=e}};d.exports=function(e){return function(){var n=e,t=n.lib.BlockCipher,o=n.algo,r=[],i=[],_=[],E=[],a=[],s=[],R=[],S=[],I=[],O=[];!function(){for(var e=[],n=0;n<256;n++)e[n]=n<128?n<<1:n<<1^283;var t=0,o=0;for(n=0;n<256;n++){var T=o^o<<1^o<<2^o<<3^o<<4;T=T>>>8^255&T^99,r[t]=T,i[T]=t;var c=e[t],u=e[c],l=e[u],C=257*e[T]^16843008*T;_[t]=C<<24|C>>>8,E[t]=C<<16|C>>>16,a[t]=C<<8|C>>>24,s[t]=C,C=16843009*l^65537*u^257*c^16843008*t,R[T]=C<<24|C>>>8,S[T]=C<<16|C>>>16,I[T]=C<<8|C>>>24,O[T]=C,t?(t=c^e[e[e[l^c]]],o^=e[e[o]]):t=o=1}}();var T=[0,1,2,4,8,16,32,64,128,27,54],c=o.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,n=e.words,t=e.sigBytes/4,o=4*((this._nRounds=t+6)+1),i=this._keySchedule=[],_=0;_<o;_++)_<t?i[_]=n[_]:(s=i[_-1],_%t?t>6&&_%t==4&&(s=r[s>>>24]<<24|r[s>>>16&255]<<16|r[s>>>8&255]<<8|r[255&s]):(s=r[(s=s<<8|s>>>24)>>>24]<<24|r[s>>>16&255]<<16|r[s>>>8&255]<<8|r[255&s],s^=T[_/t|0]<<24),i[_]=i[_-t]^s);for(var E=this._invKeySchedule=[],a=0;a<o;a++){if(_=o-a,a%4)var s=i[_];else s=i[_-4];E[a]=a<4||_<=4?s:R[r[s>>>24]]^S[r[s>>>16&255]]^I[r[s>>>8&255]]^O[r[255&s]]}}},encryptBlock:function(e,n){this._doCryptBlock(e,n,this._keySchedule,_,E,a,s,r)},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,R,S,I,O,i),t=e[n+1],e[n+1]=e[n+3],e[n+3]=t},_doCryptBlock:function(e,n,t,o,r,i,_,E){for(var a=this._nRounds,s=e[n]^t[0],R=e[n+1]^t[1],S=e[n+2]^t[2],I=e[n+3]^t[3],O=4,T=1;T<a;T++){var c=o[s>>>24]^r[R>>>16&255]^i[S>>>8&255]^_[255&I]^t[O++],u=o[R>>>24]^r[S>>>16&255]^i[I>>>8&255]^_[255&s]^t[O++],l=o[S>>>24]^r[I>>>16&255]^i[s>>>8&255]^_[255&R]^t[O++],C=o[I>>>24]^r[s>>>16&255]^i[R>>>8&255]^_[255&S]^t[O++];s=c,R=u,S=l,I=C}c=(E[s>>>24]<<24|E[R>>>16&255]<<16|E[S>>>8&255]<<8|E[255&I])^t[O++],u=(E[R>>>24]<<24|E[S>>>16&255]<<16|E[I>>>8&255]<<8|E[255&s])^t[O++],l=(E[S>>>24]<<24|E[I>>>16&255]<<16|E[s>>>8&255]<<8|E[255&R])^t[O++],C=(E[I>>>24]<<24|E[s>>>16&255]<<16|E[R>>>8&255]<<8|E[255&S])^t[O++],e[n]=c,e[n+1]=u,e[n+2]=l,e[n+3]=C},keySize:8});n.AES=t._createHelper(c)}(),e.AES}(L(),h(),b(),K(),z||(z=1,j.exports=(X=L(),K(),void(X.lib.Cipher||function(e){var n=X,t=n.lib,o=t.Base,r=t.WordArray,i=t.BufferedBlockAlgorithm,_=n.enc;_.Utf8;var E=_.Base64,a=n.algo.EvpKDF,s=t.Cipher=i.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(){i.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?C:u}return function(n){return{encrypt:function(t,o,r){return e(o).encrypt(n,t,o,r)},decrypt:function(t,o,r){return e(o).decrypt(n,t,o,r)}}}}()});t.StreamCipher=s.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var R=n.mode={},S=t.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}}),I=R.CBC=function(){var n=S.extend();function t(n,t,o){var r,i=this._iv;i?(r=i,this._iv=e):r=this._prevBlock;for(var _=0;_<o;_++)n[t+_]^=r[_]}return n.Encryptor=n.extend({processBlock:function(e,n){var o=this._cipher,r=o.blockSize;t.call(this,e,n,r),o.encryptBlock(e,n),this._prevBlock=e.slice(n,n+r)}}),n.Decryptor=n.extend({processBlock:function(e,n){var o=this._cipher,r=o.blockSize,i=e.slice(n,n+r);o.decryptBlock(e,n),t.call(this,e,n,r),this._prevBlock=i}}),n}(),O=(n.pad={}).Pkcs7={pad:function(e,n){for(var t=4*n,o=t-e.sigBytes%t,i=o<<24|o<<16|o<<8|o,_=[],E=0;E<o;E+=4)_.push(i);var a=r.create(_,o);e.concat(a)},unpad:function(e){var n=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=n}};t.BlockCipher=s.extend({cfg:s.cfg.extend({mode:I,padding:O}),reset:function(){var e;s.reset.call(this);var n=this.cfg,t=n.iv,o=n.mode;this._xformMode==this._ENC_XFORM_MODE?e=o.createEncryptor:(e=o.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,t&&t.words):(this._mode=e.call(o,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 T=t.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),c=(n.format={}).OpenSSL={stringify:function(e){var n=e.ciphertext,t=e.salt;return(t?r.create([1398893684,1701076831]).concat(t).concat(n):n).toString(E)},parse:function(e){var n,t=E.parse(e),o=t.words;return 1398893684==o[0]&&1701076831==o[1]&&(n=r.create(o.slice(2,4)),o.splice(0,4),t.sigBytes-=16),T.create({ciphertext:t,salt:n})}},u=t.SerializableCipher=o.extend({cfg:o.extend({format:c}),encrypt:function(e,n,t,o){o=this.cfg.extend(o);var r=e.createEncryptor(t,o),i=r.finalize(n),_=r.cfg;return T.create({ciphertext:i,key:t,iv:_.iv,algorithm:e,mode:_.mode,padding:_.padding,blockSize:e.blockSize,formatter:o.format})},decrypt:function(e,n,t,o){return o=this.cfg.extend(o),n=this._parse(n,o.format),e.createDecryptor(t,o).finalize(n.ciphertext)},_parse:function(e,n){return"string"==typeof e?n.parse(e,this):e}}),l=(n.kdf={}).OpenSSL={execute:function(e,n,t,o,i){if(o||(o=r.random(8)),i)_=a.create({keySize:n+t,hasher:i}).compute(e,o);else var _=a.create({keySize:n+t}).compute(e,o);var E=r.create(_.words.slice(n),4*t);return _.sigBytes=4*n,T.create({key:_,iv:E,salt:o})}},C=t.PasswordBasedCipher=u.extend({cfg:u.cfg.extend({kdf:l}),encrypt:function(e,n,t,o){var r=(o=this.cfg.extend(o)).kdf.execute(t,e.keySize,e.ivSize,o.salt,o.hasher);o.iv=r.iv;var i=u.encrypt.call(this,e,n,r.key,o);return i.mixIn(r),i},decrypt:function(e,n,t,o){o=this.cfg.extend(o),n=this._parse(n,o.format);var r=o.kdf.execute(t,e.keySize,e.ivSize,n.salt,o.hasher);return o.iv=r.iv,u.decrypt.call(this,e,n,r.key,o)}})}()))));var Q,q,$,ee={};!function(e,n){e.exports=function(e){return e.enc.Utf8}(L())}({get exports(){return ee},set exports(e){ee=e}}),function(e){e[e.PENDING=0]="PENDING",e[e.READY=1]="READY",e[e.CLOSE=2]="CLOSE"}(Q||(Q={})),function(e){e[e.NPM=0]="NPM",e[e.CDN=1]="CDN"}(q||(q={})),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"}($||($={})),$.RECORD_OVERHEAD_CAPACITY,$.RECORD_OVERHEAD_CAPACITY;var ne,te={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(te,$.START_RECORD_UNAVAILABLE,"start record api not available"),$.START_RECORD_INVALID_BODY,"start record response body invalid"),$.END_RECORD_UNAVAILABLE,"end record api not available"),$.END_RECORD_INVALID_BODY,"end record response body invalid"),$.EXIST_RECORD_CONFLICT,"already has an existed recording"),$.NO_ACTIVE_RECORD,"no existed recording"),$.RECORD_IN_START_PROGRESS,"recording is in start progress"),$.RECORD_IN_STOP_PROGRESS,"recording is in stop progress"),$.RECORD_ALREADY_PAUSED,"recording already paused"),$.RECORD_ALREADY_RESUMED,"recording already resumed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(te,$.RECORD_NOT_ENABLED,"recording not enabled"),$.RECORD_OVERHEAD_CAPACITY,"recording capacity is overhead"),$.LEADER_NOT_JOINED,"leader not joined room"),$.LEADER_DENIED,"leader denied recording"),$.RECORD_ABORTED,"recording aborted"),$.CHS_JWT_MISSING,"CHS JWT is empty"),$.CHS_JWT_DECODE_FAILED,"CHS JWT decode error"),$.CHS_JWT_INVALID_PAYLOAD,"CHS JWT payload invalid"),$.CHS_JWT_ISS_AUD_MISSING,"CHS JWT iss or aud empty"),$.CHS_JWT_ISS_AUD_DENIED,"invalid iss and aud"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(te,$.CHS_JWT_VERIFY_FAILED,"token verify failed"),$.SESSION_ID_NOT_MATCH,"sessionId in header is not match in jwt payload"),$.AID_IN_JWT_MISSING,"aid in token is required"),$.UID_IN_JWT_MISSING,"uid in token is required"),$.RECORD_ID_MISSING,"recordId is empty"),$.RECORD_TASK_NOT_EXIST,"record task not exist"),$.PAGE_CONTEXT_BOOTSTRAP_FAILED,"bootstrap playwright failed"),$.PAGE_CONTROLLER_INIT_FAILED,"PageController init failed"),$.PAGE_LOAD_HTML_FAILED,"page load html failed"),$.PAGE_INJECT_INIT_FAILED,"PageInjector init failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(te,$.PAGE_INJECT_CONTEXT_FAILED,"injectPageContext failed"),$.PAGE_START_FAILED,"page start record failed"),$.PAGE_STOP_FAILED,"page start stop failed"),$.RECORDER_INIT_FAILED,"PageRecorder init failed"),$.RECORDER_CDP_SESSION_START_FAILED,"record start cdp session failed"),$.RECORDER_CDP_SESSION_STOP_FAILED,"record stop cdp session failed"),$.RECORDER_CDP_SESSION_ALREADY_DESTROYED,"PageRecorder has already been destroyed"),$.DISK_USAGE_FULL,"Server disk is full"),$.CONNECT_CHS_FAILED,"CHS is not available"),$.CONNECT_CHS_FAILOVER,"CHS connection is failover now"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(te,$.CONNECT_CHS_DESTROYED,"CHS connection is destroyed by client"),$.CONNECT_CHS_DISCONNECTED,"CHS connection is disconnected"),$.CONNECT_CHS_TIMEOUT,"wait for CHS connection timeout"),$.UDS_INIT_FAILED,"UDSManager init failed"),$.UDS_SUB_PROCESS_INIT_FAILED,"uds sub process init failed"),$.UDS_SUB_PROCESS_INIT_TIMEOUT,"uds sub process init timeout"),$.UDS_CLINET_INIT_FAILED,"UDSClient init failed"),$.UDS_SERVER_INIT_FAILED,"UDSServer init failed"),$.UDS_SERVER_LISTEN_FAILED,"UDSServer listen failed"),$.FILE_INIT_FAILED,"FileManager init failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(te,$.FILE_META_INIT_FAILED,"MetaDataManager init failed"),$.FILE_META_CLIP_INIT_FAILED,"SubClipManager init failed"),$.FILE_META_OPEN_FAILED,"open metadata failed"),$.FILE_META_LOCK_FAILED,"metadata lock failed"),$.FILE_META_RELEASE_FAILED,"metadata release failed"),$.FILE_META_WRITE_FAILED,"metadata write failed"),$.ZCB_WEB_NOT_AVAILABLE,"web is not available"),$.ZCB_CRS_NOT_AVAILABLE,"crs is not available"),$.REDIS_GET_CLIP_SIZE_FAILED,"get clip size failed"),$.REDIS_SET_CLIP_SIZE_FAILED,"set clip size failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(te,$.REDIS_GET_START_TIME_FAILED,"get record start time failed"),$.REDIS_SET_START_TIME_FAILED,"set record start time failed"),$.ASSETS_FETCH_FAILED,"fetch assets from cdn failed"),$.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"}(ne||(ne={}));var oe,re;!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"}(oe||(oe={})),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"}(re||(re={})),_defineProperty(_defineProperty(_defineProperty(_defineProperty({},re.ANNOTATION,!0),re.INTERACTION,!0),re.INTERACTION_BINARY,!0),re.FLYING_CURSOR,!0),_defineProperty(_defineProperty({},re.RTT,!0),re.NTP,!0),_defineProperty(_defineProperty({},re.INTERACTION,!0),re.INTERACTION_BINARY,!0);var ie={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(ie,re.INTERACTION,!0),re.INTERACTION_BINARY,!0),re.FULL_SNAPSHOT_REQUEST,!0),re.REMOTE_CONTROL_STATUS,!0),re.REMOTE_CONTROL_REQUEST,!0),re.REMOTE_CONTROL_RESPONSE,!0),re.REMOTE_CONTROL_GIVE_UP,!0),re.REMOTE_CONTROL_TAKE_BACK,!0),re.REMOTE_CONTROL_REJECT,!0),re.REMOTE_CONTROL_CANCEL,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(ie,re.START_RECORD,!0),re.RESUME_RECORD,!0),re.PAUSE_RECORD,!0),re.STOP_RECORD,!0),re.ANNOTATION,!0),re.FLYING_CURSOR,!0),re.NTP,!0);var _e,Ee,ae={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(ae,re.INTERACTION,!0),re.INTERACTION_BINARY,!0),re.FULL_SNAPSHOT_REQUEST,!0),re.USER_ROSTER,!0),re.ROOM_ROSTER,!0),re.REMOTE_CONTROL_STATUS,!0),re.REMOTE_CONTROL_REQUEST,!0),re.REMOTE_CONTROL_RESPONSE,!0),re.REMOTE_CONTROL_GIVE_UP,!0),re.REMOTE_CONTROL_TAKE_BACK,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(ae,re.REMOTE_CONTROL_REJECT,!0),re.REMOTE_CONTROL_CANCEL,!0),re.START_RECORD,!0),re.RESUME_RECORD,!0),re.PAUSE_RECORD,!0),re.STOP_RECORD,!0),re.START_RECORD_RESPONSE,!0),re.STOP_RECORD_RESPONSE,!0),re.PAUSE_RECORD_RESPONSE,!0),re.RESUME_RECORD_RESPONSE,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty(ae,re.RECORD_APPROVE_REQUEST,!0),re.RECORD_APPROVE_RESPONSE,!0),re.ANNOTATION,!0),re.FLYING_CURSOR,!0),_defineProperty(_defineProperty(_defineProperty({},re.RECORD_APPROVE_RESPONSE,!0),re.LEAVE_ROOM,!0),re.FLYING_CURSOR,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty({},l.RegisterCustomerCursorDOM,!0),l.UnregisterUser,!0),l.RegisterOtherAgentCursorDOM,!0),l.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"}(_e||(_e={})),_defineProperty(_defineProperty(_defineProperty({},_e.IN_PROGRESS,"remote control is in progress"),_e.OPPOSITE_REJECT,"the opposite side refuses to be controlled"),_e.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"}(Ee||(Ee={})),Ee.LEAVE_ROOM,Ee.WEB_REPORT_USER_JOIN_FAILED,Ee.AUTH_CONFLICT,Ee.AUTH_VERIFY_FAILED,Ee.LEADER_CONFLICT,Ee.FOLLOWER_CONFLICT,Ee.SESSION_ALREADY_ENDED,Ee.ROOM_ID_MISSING,Ee.AUTH_PAYLOAD_MISSING,Ee.START_URL_INVALID,Ee.END_ROOM,Ee.DESTROY_DEACTIVE_ROOM,Ee.DESTROY_SLEEP_ROOM,Ee.DESTROY_NO_VALID_OPERATION_ROOM,Ee.NO_OTHER_ACTIVE_USER,Ee.RECORD_ALREADY_ENDED,Ee.REACHED_LEADER_LIMIT,Ee.REACHED_FOLLOWER_LIMIT,Ee.MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE,Ee.MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION,Ee.SESSION_ALREADY_ENDED,Ee.END_ROOM,Ee.DESTROY_DEACTIVE_ROOM;var se,Re,Se={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Se,Ee.LEAVE_ROOM,"normal leave"),Ee.DISCONNECTED,"user disconnected"),Ee.WEB_REPORT_REGION_FAILED,"call web report zone region api failed"),Ee.WEB_REPORT_REGION_NOT_MATCH,"report zone region mismatch with session hosting region"),Ee.WEB_REPORT_USER_JOIN_EMPTY,"call web user join api return empty response"),Ee.WEB_REPORT_USER_JOIN_FAILED,"call web user join api failed"),Ee.WEB_REPORT_USER_JOIN_EMPTY_USER,"call web user join api return empty user info"),Ee.AUTH_CONFLICT,"auth is already consumed once"),Ee.AUTH_VERIFY_FAILED,"auth payload is denyed"),Ee.AUTH_DB_QUERY_ERROR,"get auth from redis failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Se,Ee.AUTH_USER_ID_VERIFY_FAILED,"sub channel user_id verify failed"),Ee.AUTH_USER_ID_NO_EXIST,"main channel user_id not exist"),Ee.ROOM_NOT_EXIST,"room not exist or create failed"),Ee.ROOM_ADD_USER_FAILED,"room add new user failed"),Ee.LEADER_CONFLICT,"leader already exist"),Ee.FOLLOWER_CONFLICT,"follower already exist"),Ee.ROOM_DEPRECATED,"room is deprecated"),Ee.SAME_LEADER_JOINED,"leader with the same user_id joined the room"),Ee.SESSION_ALREADY_ENDED,"room is already ended"),Ee.ROOM_ID_MISSING,"room id is required"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Se,Ee.AUTH_PAYLOAD_MISSING,"auth payload is required"),Ee.START_URL_INVALID,"startUrl is invalid"),Ee.SERVER_RESTARTED,"server restarted"),Ee.WSSGW_REMOVE_NODE,"wssgw node instance removed"),Ee.META_DATA_INVALID,"message meta data invalid"),Ee.WSSGW_INSTANCE_NOT_FOUND,"wssgw instance not found"),Ee.MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE,"message size limit exceeded by minute"),Ee.MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION,"message size limit exceeded by session"),Ee.END_ROOM,"The user actively clicked \'end\'."),Ee.DESTROY_DEACTIVE_ROOM,"The session ended automatically because there was only 1 user present for 3 minutes."),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Se,Ee.DESTROY_SLEEP_ROOM,"The session ended automatically due to no user activity in the session for 5 minutes."),Ee.DESTROY_NO_VALID_OPERATION_ROOM,"The session ended automatically due to no valid operation messages"),Ee.NO_OTHER_ACTIVE_USER,"no other active user in this meeting except record virtual user"),Ee.RECORD_ALREADY_ENDED,"record already ended"),Ee.RECORD_START_FAILED,"record start failed"),Ee.REACHED_LEADER_LIMIT,"the number of leaders has reached the limit"),Ee.REACHED_FOLLOWER_LIMIT,"the number of followers has reached the limit"),function(e){e[e.RECORD_LEGAL_CONSENT=0]="RECORD_LEGAL_CONSENT"}(se||(se={})),function(e){e[e.ACTIVE=0]="ACTIVE",e[e.PASSIVE=1]="PASSIVE",e[e.REJECT=2]="REJECT"}(Re||(Re={})),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},R.MouseMove,!0),R.MouseInteraction,!0),R.Scroll,!0),R.ViewportResize,!0),R.Input,!0),R.TouchMove,!0),R.MediaInteraction,!0),R.Drag,!0),R.Selection,!0);var Ie,Oe,Te,ce,ue,le,Ce,De,Ne,Ae,de,fe,ge,pe,Pe,Le,me,ye,Me,he,Fe,Ue,ve,be,Be,Ve,we,We,Ge=function(e){var n={};for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n};!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"}(Ie||(Ie={})),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"}(Oe||(Oe={})),function(e){e.COM_DESK="com-desk",e.COM_VIEWER="com-viewer",e.COM_BYOP_DESK="com_byop_desk"}(Te||(Te={})),function(e){e[e.Normal=0]="Normal",e[e.AgentReconnectFailed=1]="AgentReconnectFailed",e[e.CustomerReconnectFailed=2]="CustomerReconnectFailed",e[e.CustomerEnded=3]="CustomerEnded"}(ce||(ce={})),function(e){e[e.Voice=1]="Voice",e[e.Chat=2]="Chat",e[e.VideoInbound=3]="VideoInbound",e[e.VideoOutbound=4]="VideoOutbound"}(ue||(ue={})),function(e){e.tabFollowingWaitTransferringCustomer="tabFollowingWaitTransferringCustomer",e.tabFollowingTransferringFailedCustomer="tabFollowingTransferringFailedCustomer",e.tabFollowingTransferringFailedAgent="tabFollowingTransferringFailedAgent"}(le||(le={})),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"}(Ce||(Ce={})),function(e){e.UNKNOWN="unknown"}(De||(De={})),function(e){e.UNKNOWN="unknown",e.NO_ROOT_DOM="no_root_dom"}(Ne||(Ne={})),function(e){e.START="START",e.JOIN="JOIN",e.AUTO="AUTO",e.PERSIST="PERSIST"}(Ae||(Ae={})),function(e){e.RECONNECTING="reconnecting",e.PERSISTING="persisting"}(de||(de={})),function(e){e.zcc="zcc",e.common="common"}(fe||(fe={})),function(e){e[e.NoAction=0]="NoAction",e[e.Accept=1]="Accept",e[e.Decline=2]="Decline",e[e.Leave=3]="Leave"}(ge||(ge={})),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"}(pe||(pe={})),function(e){e.END_SESSION="end_session",e.DEACTIVE_SESSION="deactive_session",e.CANCEL_SESSION="cancel_session"}(Pe||(Pe={})),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},pe.END_ROOM,Pe.END_SESSION),pe.DESTROY_DEACTIVE_ROOM,Pe.DEACTIVE_SESSION),pe.DESTROY_SLEEP_ROOM,Pe.DEACTIVE_SESSION),pe.END_DEACTIVE_ROOM,Pe.DEACTIVE_SESSION),pe.DESTROY_NO_VALID_OPERATION_ROOM,Pe.DEACTIVE_SESSION),function(e){e[e.LEAVE_ROOM=4e4]="LEAVE_ROOM",e[e.DISCONNECTED=40001]="DISCONNECTED"}(Le||(Le={})),function(e){e.LEAVE_SESSION="leave_session",e.DISCONNECT_SESSION="disconnect_session"}(me||(me={})),_defineProperty(_defineProperty({},Le.LEAVE_ROOM,me.LEAVE_SESSION),Le.DISCONNECTED,me.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."}(ye||(ye={})),function(e){e[e.DEFAULT=0]="DEFAULT",e[e.CC_UI_SESSION_END=1]="CC_UI_SESSION_END"}(Me||(Me={})),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"}(he||(he={})),function(e){e.TRANSFER_FAILED_ERROR_TIPS="Failed to transfer to new tab,Please return to the previous tab and have a try again."}(Fe||(Fe={})),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."}(Ue||(Ue={})),function(e){e.WAIT_CONSUMER="WAIT_CONSUMER"}(ve||(ve={})),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"}(be||(be={})),function(e){e.Cookies="cookie",e.LocalStorage="localStorage",e.SessionStorage="sessionStorage",e.All="all"}(Be||(Be={})),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"}(Ve||(Ve={})),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"}(we||(we={})),we.SESSION_PRE_INIT,we.SESSION_JOINED,we.SESSION_LEFT,we.SESSION_ENDED,we.SESSION_ERROR,we.REMOTE_ASSIST_ACCEPTED,we.REMOTE_ASSIST_REJECTED,we.REMOTE_ASSIST_STARTED,we.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"}(We||(We={})),We.SEND_SESSION_OPTIONS,We.START_REMOTE_ASSIST,We.STOP_REMOTE_ASSIST;var He;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"}(He||(He={}));var xe,Ye={PIN_UPDATE_FAILED:"Pincode update failed"},Je={CONNECT_TIMEOUT_FAILED:"Session connect timeout."};_defineProperty(_defineProperty({},He.CONNECT_TIMEOUT_FAILED,Je.CONNECT_TIMEOUT_FAILED),He.REFRESH_PIN_CODE_FAILED,Ye.PIN_UPDATE_FAILED),function(e){e[e.CANCEL_END_ROOM=1]="CANCEL_END_ROOM",e[e.CANCEL_LEAVE_ROOM=2]="CANCEL_LEAVE_ROOM"}(xe||(xe={}));var ke="Canceled and ended session.",Ke="Canceled and left session.";_defineProperty(_defineProperty({},xe.CANCEL_END_ROOM,ke),xe.CANCEL_LEAVE_ROOM,Ke);var ze,Xe={INVALID_URL:"The website link is invalid.",ACCOUNT_NO_CREDITS:"Free trial account has no available credits."},Ze={CONNECTING:"A connection is already in progress.",PERSISTING:" A transfer session is still recovering."},je={NOT_FOUND:"Session does not exist or has ended."},Qe={LIMIT:"A session is already active."},qe={PIN_NOT_FOUND:"Pincode is not found."},$e={PIN_EXPIRED:"Pincode has expired."},en={PIN_INVALID_LENGTH:"Pincode exceeds the maximum length",PIN_INVALID_CHARACTERS:"Pincode contains invalid characters."},nn={PIN_REQUIRED:"Pincode is required."},tn={PIN_CONFLICT:"Pincode has already been used."},on={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."},rn={CUSTOMER_LIMIT:"Maximum number of customers in a session reached."},_n={AGENT_LIMIT:"Maximum number of agents in a session reached."},En={DUPLICATE_AGENT:"The agent is already in the session."},an={NETWORK_REQUEST_FAILED:"Network request to backend failed after multiple attempts."},sn={CANCELING:"Operation failed, the session is being canceled."},Rn={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."},Sn={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"}(ze||(ze={}));var In,On={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(On,ze.WEB_REPORT_REGION_FAILED,on.INTERNAL_ERROR),ze.WEB_REPORT_REGION_NOT_MATCH,on.INTERNAL_ERROR),ze.WEB_REPORT_USER_JOIN_FAILED,on.INTERNAL_ERROR),ze.WEB_REPORT_USER_JOIN_EMPTY,on.INTERNAL_ERROR),ze.WEB_REPORT_USER_JOIN_EMPTY_USER,on.INTERNAL_ERROR),ze.AUTH_CONFLICT,on.INTERNAL_ERROR),ze.AUTH_VERIFY_FAILED,on.INTERNAL_ERROR),ze.AUTH_DB_QUERY_ERROR,on.INTERNAL_ERROR),ze.ROOM_NOT_EXIST,on.INTERNAL_ERROR),ze.ROOM_ADD_USER_FAILED,on.INTERNAL_ERROR),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(On,ze.SESSION_ALREADY_ENDED,on.SESSION_NOT_FOUND),ze.ROOM_DEPRECATED,on.INTERNAL_ERROR),ze.ROOM_ID_MISSING,on.INTERNAL_ERROR),ze.AUTH_PAYLOAD_MISSING,on.INTERNAL_ERROR),ze.START_URL_INVALID,on.INTERNAL_ERROR),ze.META_DATA_INVALID,on.INTERNAL_ERROR),ze.WSSGW_INSTANCE_NOT_FOUND,on.INTERNAL_ERROR),ze.LEADER_CONFLICT,rn.CUSTOMER_LIMIT),ze.REACHED_LEADER_LIMIT,rn.CUSTOMER_LIMIT),ze.FOLLOWER_CONFLICT,_n.AGENT_LIMIT),_defineProperty(_defineProperty(_defineProperty(_defineProperty(On,ze.REACHED_FOLLOWER_LIMIT,_n.AGENT_LIMIT),ze.USER_CONFLICT,En.DUPLICATE_AGENT),ze.MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE,Sn.SESSION_ERROR_WITH_RETRY),ze.MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION,Sn.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"}(In||(In={}));var Tn,cn,un={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(un,In.ALL_PING_FAILED,on.INTERNAL_ERROR),In.EMPTY_PING_LIST,on.INTERNAL_ERROR),In.SOCKET_RECONNECT_FAILED,on.RECONNECT_FAILED),In.SOCKET_FAIL_OVER_FAILED,on.FAIL_OVER_FAILED),In.FRAME_LEVEL_NOT_READY,on.INTERNAL_ERROR),In.SESSION_CONNECTING,Ze.CONNECTING),In.SESSION_PERSISTING,Ze.PERSISTING),In.DUPLICATE_SESSION,Qe.LIMIT),In.DUPLICATE_LAUNCH_SESSION,Qe.LIMIT),In.SESSION_CANCELING,sn.CANCELING),_defineProperty(un,In.UNKNOWN_SERVICE_EXCEPTION,Sn.SERVICE_ERROR),function(e){e[e.Unauthorized=401]="Unauthorized",e[e.Forbidden=403]="Forbidden"}(Tn||(Tn={})),_defineProperty(_defineProperty({},Tn.Unauthorized,Rn.JWT_INVALID),Tn.Forbidden,Rn.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"}(cn||(cn={})),_defineProperty(_defineProperty(_defineProperty(_defineProperty({},cn.INVALID_TOKEN,Rn.JWT_INVALID),cn.NO_PERMISSION,Rn.JWT_NO_PERMISSIONS),cn.INVALID_EXPIRED,Rn.JWT_EXPIRED),cn.TOKEN_ACCESS_ERROR,Rn.JWT_ACCESS_ERROR);var ln,Cn,Dn,Nn={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Nn,cn.INVALID_URL,Xe.INVALID_URL),cn.SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_DISABLE,Xe.ACCOUNT_NO_CREDITS),cn.SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_NO_CREDIT,Xe.ACCOUNT_NO_CREDITS),cn.SESSION_NOT_FOUND,je.NOT_FOUND),cn.PIN_CODE_NOT_FOUND,qe.PIN_NOT_FOUND),cn.PIN_CODE_EXPIRED,$e.PIN_EXPIRED),cn.PIN_CODE_EXCEEDED_MAX_LENGTH,en.PIN_INVALID_LENGTH),cn.PIN_INVALID_CHARACTERS,en.PIN_INVALID_CHARACTERS),cn.PIN_CODE_IS_REQUIRED,nn.PIN_REQUIRED),cn.PIN_CODE_HAS_BEEN_USED,tn.PIN_CONFLICT),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Nn,cn.INVALID_SDK_VERSION,on.SDK_INVALID),cn.ERROR_SDK_VERSION,on.SDK_INVALID),cn.INACTIVE_SDK_VERSION,on.SDK_INVALID),cn.SDK_VERSION_NOT_FOUND,on.SDK_INVALID),cn.NETWORK_ERROR,an.NETWORK_REQUEST_FAILED),cn.INVALID_TOKEN,Rn.INTERNAL_ERROR),cn.NO_PERMISSION,Rn.INTERNAL_ERROR),cn.INVALID_EXPIRED,Rn.INTERNAL_ERROR),cn.TOKEN_ACCESS_ERROR,Rn.INTERNAL_ERROR),cn.UNKNOWN,Sn.SERVICE_ERROR),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Nn,cn.LOCKED,Sn.SERVICE_ERROR),cn.PIN_PUSH_FAILED,Sn.SERVICE_ERROR),cn.INVALID_BUSINESS_TYPE,Sn.SERVICE_ERROR),cn.INVALID_RECORDING_ID,Sn.SERVICE_ERROR),cn.MISSING_FIELD,Sn.SERVICE_ERROR),cn.SEARCH_ERROR,Sn.SERVICE_ERROR),cn.INVALID_BUSINESS_TYPE2,Sn.SERVICE_ERROR),cn.FILE_SERVER_ERROR,Sn.SERVICE_ERROR),cn.FILE_SERVICE_ERROR,Sn.SERVICE_ERROR),cn.FILE_SERVICE_ERROR2,Sn.SERVICE_ERROR),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Nn,cn.INVALID_START_TIME,Sn.SERVICE_ERROR),cn.INVALID_ACTION,Sn.SERVICE_ERROR),cn.INVALID_REGION,Sn.SERVICE_ERROR),cn.EXCEEDED_FAILED,Sn.API_RATE_LIMIT),cn.INVALID_END_TIME,Sn.SERVICE_ERROR),cn.PIN_CODE_NOT_READY,Sn.SERVICE_ERROR),cn.INVALID_TOTAL_MINUTES,Sn.SERVICE_ERROR),cn.DUPLICATE_REQUEST,Sn.SERVICE_ERROR),cn.INVALID_TEMPLATE_TYPE,Sn.SERVICE_ERROR),cn.SERVER_ERROR1,Sn.SERVICE_ERROR),_defineProperty(_defineProperty(_defineProperty(_defineProperty(Nn,cn.SERVER_ERROR2,Sn.SERVICE_ERROR),cn.SERVER_ERROR3,Sn.SERVICE_ERROR),cn.SERVER_ERROR4,Sn.SERVICE_ERROR),cn.INVALID_SDK_CDN_URL,Sn.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"}(ln||(ln={})),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"}(Cn||(Cn={})),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"}(Dn||(Dn={}));var An=function(){return"undefined"==typeof window||"undefined"==typeof document};function dn(){var e=navigator.userAgent;return/iPhone|iPad|iPod/.test(e)}function fn(){return dn()||navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/Windows Phone/i)}function gn(){return!An()&&("MacIntel"===(window.navigator.platform||"")&&((window.navigator.maxTouchPoints||0)>1&&"ontouchstart"in window))}function pn(){return gn()||function(){if(An())return!1;var e=window.navigator,n=e.userAgent,t=e.platform;if(/Android/.test(n)||!/Linux/.test(t))return!1;var o="ontouchstart"in window&&("orientation"in window||"screen"in window&&window.screen&&"orientation"in window.screen)&&window.navigator.maxTouchPoints>0,r="standalone"in window.navigator||"share"in window.navigator||"vibrate"in window.navigator;return o&&r}()}var Pn,Ln,mn,yn=(Pn=null,Ln=null,mn=null,{get isIOS(){return null===Pn&&(Pn=dn()),Pn},get isIOSDevice(){return null===Ln&&(Ln=dn()||gn()),Ln},get isMobileDeviceOrDesktopUA(){return null===mn&&(mn=!(!fn()&&!pn())),mn}}),Mn=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"calculateWidth",value:function(){var e,n,t=window.visualViewport;if(!Wn(t))return Fn();if(t.scale>1){var o=t.width*t.scale;return Math.min(o,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.width)&&void 0!==n?n:o)}return t.width}},{key:"calculateHeight",value:function(){var e,n,t=window.visualViewport;if(!Wn(t))return Un();if(t.scale>1){var o=t.height*t.scale;return Math.min(o,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.height)&&void 0!==n?n:o)}return t.height}}]),e}(),hn=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"calculateWidth",value:function(){var e,n,t=window.visualViewport;if(!Wn(t))return Fn();if(t.scale>1){var o=Math.max(t.width*t.scale,window.innerWidth);return Math.min(o,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.width)&&void 0!==n?n:o)}return Math.max(t.width,window.innerWidth)}},{key:"calculateHeight",value:function(){var e,n,t=window.visualViewport;if(!Wn(t))return Un();if(t.scale>1){var o=Math.max(t.height*t.scale,window.innerHeight);return Math.min(o,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.height)&&void 0!==n?n:o)}return Math.max(t.height,window.innerHeight)}}]),e}();function Fn(){return"undefined"==typeof document?0:document.documentElement&&document.documentElement.clientWidth||window.innerWidth||document.body&&document.body.clientWidth}function Un(){return"undefined"==typeof document?0:document.documentElement&&document.documentElement.clientHeight||window.innerHeight||document.body&&document.body.clientHeight}var vn=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"calculateWidth",value:function(){return Fn()}},{key:"calculateHeight",value:function(){return Un()}}]),e}(),bn=function(){var e,n=!1;function t(){e=yn.isMobileDeviceOrDesktopUA&&Wn(window.visualViewport)?yn.isIOSDevice?new Mn:new hn:new vn,n=!0}return{getWidth:function(){return n||t(),e.calculateWidth()},getHeight:function(){return n||t(),e.calculateHeight()}}}();var Bn,Vn,wn=new WeakMap;function Wn(e){if(!e||"object"!==_typeof(e))return!1;if(e.constructor&&"VisualViewport"===e.constructor.name){var n=wn.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&&wn.set(e,t),t}function Gn(){}function Hn(){Hn.init.call(this)}function xn(e){return void 0===e._maxListeners?Hn.defaultMaxListeners:e._maxListeners}function Yn(e,n,t,o){var r,i,_,E;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),_=i[n]):(i=e._events=new Gn,e._eventsCount=0),_){if("function"==typeof _?_=i[n]=o?[t,_]:[_,t]:o?_.unshift(t):_.push(t),!_.warned&&(r=xn(e))&&r>0&&_.length>r){_.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+_.length+" "+n+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=n,a.count=_.length,E=a,"function"==typeof console.warn?console.warn(E):console.log(E)}}else _=i[n]=t,++e._eventsCount;return e}function Jn(e,n,t){var o=!1;function r(){e.removeListener(n,r),o||(o=!0,t.apply(e,arguments))}return r.listener=t,r}function kn(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 Kn(e,n){for(var t=new Array(n);n--;)t[n]=e[n];return t}bn.getWidth(),bn.getHeight(),function(e){e.SESSION_STARTED="session_started",e.SESSION_ENDED="session_ended",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.PINCODE_UPDATED="pincode_updated",e.RECORD_STARTED="record_started",e.RECORD_STOPPED="record_stopped",e.RECORD_PAUSED="record_paused",e.RECORD_RESUMED="record_unpaused"}(Bn||(Bn={})),function(e){e.SESSION_START_FAILED="session_start_failed",e.SESSION_END_FAILED="session_end_failed",e.SESSION_CREATE_FAILED="session_create_failed"}(Vn||(Vn={})),Gn.prototype=Object.create(null),Hn.EventEmitter=Hn,Hn.usingDomains=!1,Hn.prototype.domain=void 0,Hn.prototype._events=void 0,Hn.prototype._maxListeners=void 0,Hn.defaultMaxListeners=10,Hn.init=function(){this.domain=null,Hn.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new Gn,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Hn.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},Hn.prototype.getMaxListeners=function(){return xn(this)},Hn.prototype.emit=function(e){var n,t,o,r,i,_,E,a="error"===e;if(_=this._events)a=a&&null==_.error;else if(!a)return!1;if(E=this.domain,a){if(n=arguments[1],!E){if(n instanceof Error)throw n;var s=new Error(\'Uncaught, unspecified "error" event. (\'+n+")");throw s.context=n,s}return n||(n=new Error(\'Uncaught, unspecified "error" event\')),n.domainEmitter=this,n.domain=E,n.domainThrown=!1,E.emit("error",n),!1}if(!(t=_[e]))return!1;var R="function"==typeof t;switch(o=arguments.length){case 1:!function(e,n,t){if(n)e.call(t);else for(var o=e.length,r=Kn(e,o),i=0;i<o;++i)r[i].call(t)}(t,R,this);break;case 2:!function(e,n,t,o){if(n)e.call(t,o);else for(var r=e.length,i=Kn(e,r),_=0;_<r;++_)i[_].call(t,o)}(t,R,this,arguments[1]);break;case 3:!function(e,n,t,o,r){if(n)e.call(t,o,r);else for(var i=e.length,_=Kn(e,i),E=0;E<i;++E)_[E].call(t,o,r)}(t,R,this,arguments[1],arguments[2]);break;case 4:!function(e,n,t,o,r,i){if(n)e.call(t,o,r,i);else for(var _=e.length,E=Kn(e,_),a=0;a<_;++a)E[a].call(t,o,r,i)}(t,R,this,arguments[1],arguments[2],arguments[3]);break;default:for(r=new Array(o-1),i=1;i<o;i++)r[i-1]=arguments[i];!function(e,n,t,o){if(n)e.apply(t,o);else for(var r=e.length,i=Kn(e,r),_=0;_<r;++_)i[_].apply(t,o)}(t,R,this,r)}return!0},Hn.prototype.addListener=function(e,n){return Yn(this,e,n,!1)},Hn.prototype.on=Hn.prototype.addListener,Hn.prototype.prependListener=function(e,n){return Yn(this,e,n,!0)},Hn.prototype.once=function(e,n){if("function"!=typeof n)throw new TypeError(\'"listener" argument must be a function\');return this.on(e,Jn(this,e,n)),this},Hn.prototype.prependOnceListener=function(e,n){if("function"!=typeof n)throw new TypeError(\'"listener" argument must be a function\');return this.prependListener(e,Jn(this,e,n)),this},Hn.prototype.removeListener=function(e,n){var t,o,r,i,_;if("function"!=typeof n)throw new TypeError(\'"listener" argument must be a function\');if(!(o=this._events))return this;if(!(t=o[e]))return this;if(t===n||t.listener&&t.listener===n)0==--this._eventsCount?this._events=new Gn:(delete o[e],o.removeListener&&this.emit("removeListener",e,t.listener||n));else if("function"!=typeof t){for(r=-1,i=t.length;i-- >0;)if(t[i]===n||t[i].listener&&t[i].listener===n){_=t[i].listener,r=i;break}if(r<0)return this;if(1===t.length){if(t[0]=void 0,0==--this._eventsCount)return this._events=new Gn,this;delete o[e]}else!function(e,n){for(var t=n,o=t+1,r=e.length;o<r;t+=1,o+=1)e[t]=e[o];e.pop()}(t,r);o.removeListener&&this.emit("removeListener",e,_||n)}return this},Hn.prototype.off=function(e,n){return this.removeListener(e,n)},Hn.prototype.removeAllListeners=function(e){var n,t;if(!(t=this._events))return this;if(!t.removeListener)return 0===arguments.length?(this._events=new Gn,this._eventsCount=0):t[e]&&(0==--this._eventsCount?this._events=new Gn:delete t[e]),this;if(0===arguments.length){for(var o,r=Object.keys(t),i=0;i<r.length;++i)"removeListener"!==(o=r[i])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=new Gn,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},Hn.prototype.listeners=function(e){var n,t=this._events;return t&&(n=t[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):[]},Hn.listenerCount=function(e,n){return"function"==typeof e.listenerCount?e.listenerCount(n):kn.call(e,n)},Hn.prototype.listenerCount=kn,Hn.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var zn=function(e){_inherits(o,e);var t=_createSuper(o);function o(e,n){var r;return _classCallCheck(this,o),(r=t.call(this)).settings=e,r.setMaxListeners(100),r.init(n),r}return _createClass(o,[{key:"init",value:function(e){n.init(this.settings,(function(n){var t=n.success,o=n.sdkInfo,r=n.session,i=n.error;t&&r?e&&e({success:!0,sdkInfo:o,session:r}):e&&e({success:!1,sdkInfo:o,error:i})}))}}]),o}(Hn),Xn=function(e,n){new zn(e,n)},Zn=Ge({}),jn=Ge({});return(null===window||void 0===window?void 0:window.ZoomCobrowseSDKInitArgs)&&(Xn.apply(void 0,_toConsumableArray(window.ZoomCobrowseSDKInitArgs)),delete window.ZoomCobrowseSDKInitArgs),e.SESSION_ERROR=jn,e.SESSION_EVENT=Zn,e.init=Xn,Object.defineProperty(e,"__esModule",{value:!0}),e}({},ZCBController);\n//# sourceMappingURL=https://d1cdksi819e9z7.cloudfront.net/zcb/mkqx9c51/zcb-client.js.map\n';export{e as default};
1
+ var 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,o=_getPrototypeOf(e);if(n){var r=_getPrototypeOf(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.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 _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 o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}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 _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 _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,o=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function _(e,n,t,o){return Object.defineProperty(e,n,{value:t,enumerable:!o,configurable:!o,writable:!o})}try{_({},"")}catch(e){_=function(e,n,t){return e[n]=t}}function u(n,t,o,r){var i=t&&t.prototype instanceof l?t:l,a=Object.create(i.prototype);return _(a,"_invoke",function(n,t,o){var r=1;return function(i,a){if(3===r)throw Error("Generator is already running");if(4===r){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var s=o.delegate;if(s){var _=C(s,o);if(_){if(_===E)continue;return _}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(1===r)throw r=4,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=3;var u=c(n,t,o);if("normal"===u.type){if(r=o.done?4:2,u.arg===E)continue;return{value:u.arg,done:o.done}}"throw"===u.type&&(r=4,o.method="throw",o.arg=u.arg)}}}(n,o,new D(r||[])),!0),a}function c(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}n.wrap=u;var E={};function l(){}function d(){}function S(){}var f={};_(f,i,(function(){return this}));var R=Object.getPrototypeOf,I=R&&R(R(N([])));I&&I!==t&&o.call(I,i)&&(f=I);var T=S.prototype=l.prototype=Object.create(f);function O(e){["next","throw","return"].forEach((function(n){_(e,n,(function(e){return this._invoke(n,e)}))}))}function g(e,n){function t(r,i,a,s){var _=c(e[r],e,i);if("throw"!==_.type){var u=_.arg,E=u.value;return E&&"object"==_typeof(E)&&o.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){u.value=e,a(u)}),(function(e){return t("throw",e,a,s)}))}s(_.arg)}var r;_(this,"_invoke",(function(e,o){function i(){return new n((function(n,r){t(e,o,n,r)}))}return r=r?r.then(i,i):i()}),!0)}function C(n,t){var o=t.method,r=n.i[o];if(r===e)return t.delegate=null,"throw"===o&&n.i.return&&(t.method="return",t.arg=e,C(n,t),"throw"===t.method)||"return"!==o&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a \'"+o+"\' method")),E;var i=c(r,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 p(e){this.tryEntries.push(e)}function A(n){var t=n[4]||{};t.type="normal",t.arg=e,n[4]=t}function D(e){this.tryEntries=[[-1]],e.forEach(p,this),this.reset(!0)}function N(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 r=-1,a=function t(){for(;++r<n.length;)if(o.call(n,r))return t.value=n[r],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=S,_(T,"constructor",S),_(S,"constructor",d),d.displayName=_(S,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,S):(e.__proto__=S,_(e,s,"GeneratorFunction")),e.prototype=Object.create(T),e},n.awrap=function(e){return{__await:e}},O(g.prototype),_(g.prototype,a,(function(){return this})),n.AsyncIterator=g,n.async=function(e,t,o,r,i){void 0===i&&(i=globalThis.__$ZCB_GLOBAL_CACHE$__.Promise);var a=new g(u(e,t,o,r),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(T),_(T,s,"Generator"),_(T,i,(function(){return this})),_(T,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var n=Object(e),t=[];for(var o in n)t.unshift(o);return function e(){for(;t.length;)if((o=t.pop())in n)return e.value=o,e.done=!1,e;return e.done=!0,e}},n.values=N,D.prototype={constructor:D,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(A),!n)for(var t in this)"t"===t.charAt(0)&&o.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 o(e){a.type="throw",a.arg=n,t.next=e}for(var r=t.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i[4],s=this.prev,_=i[1],u=i[2];if(-1===i[0])return o("end"),!1;if(!_&&!u)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<_)return this.method="next",this.arg=e,o(_),!0;if(s<u)return o(u),!1}}},abrupt:function(e,n){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o[0]>-1&&o[0]<=this.prev&&this.prev<o[2]){var r=o;break}}r&&("break"===e||"continue"===e)&&r[0]<=n&&n<=r[2]&&(r=null);var i=r?r[4]:{};return i.type=e,i.arg=n,r?(this.method="next",this.next=r[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]),A(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 o=t[4];if("throw"===o.type){var r=o.arg;A(t)}return r}}throw Error("illegal catch attempt")},delegateYield:function(n,t,o){return this.delegate={i:N(n),r:t,n:o},"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,o=Array(n);t<n;t++)o[t]=e[t];return o}function _iterableToArrayLimit(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,r,i,a,s=[],_=!0,u=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;_=!1}else for(;!(_=(o=i.call(t)).done)&&(s.push(o.value),s.length!==n);_=!0);}catch(e){u=!0,r=e}finally{try{if(!_&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(u)throw r}}return s}}function _arrayWithHoles(e){if(Array.isArray(e))return 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 _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 _classCallCheck(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o)}}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 o=t.call(e,n||"default");if("object"!=_typeof(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}"undefined"==typeof globalThis&&(window.globalThis=window),void 0===globalThis.__$ZCB_GLOBAL_PURE_WINDOW$__&&(globalThis.__$ZCB_GLOBAL_PURE_WINDOW$__=globalThis,console.warn("[GLOBAL-PROTECT] __$ZCB_GLOBAL_PURE_WINDOW$__ is not defined and is assigned to globalThis. Please check if the iframe is loaded. Protection may not work as expected.")),globalThis.__$ZCB_GLOBAL_CACHE$__&&"function"==typeof globalThis.__$ZCB_GLOBAL_CACHE$__.$update?globalThis.__$ZCB_GLOBAL_CACHE$__.$update({Promise:globalThis.__$ZCB_GLOBAL_PURE_WINDOW$__.Promise}):globalThis.__$ZCB_GLOBAL_CACHE$__=function(){var e,n={Promise:globalThis.__$ZCB_GLOBAL_PURE_WINDOW$__.Promise},t=!1;function o(e,n,o){Object.defineProperty(e,n,{get:function(){return o},set:function(e){t?o=e:console.warn("[GLOBAL-PROTECT] Direct modification of __$GLOBAL_CACHE$__ is not allowed. Use __$GLOBAL_CACHE$__.$update() instead.")},enumerable:!0,configurable:!1})}if("function"!=typeof Proxy){e={};for(const t in n)n.hasOwnProperty(t)&&o(e,t,n[t])}else e=new Proxy(n,{set:function(e,n,o,r){return t||"$update"===n?(e[n]=o,!0):(console.warn("[GLOBAL-PROTECT] Direct modification of __$GLOBAL_CACHE$__ is not allowed. Use __$GLOBAL_CACHE$__.$update() instead."),!1)},get:function(e,n,t){return e[n]},deleteProperty:function(e,n){return console.warn("[GLOBAL-PROTECT] Deletion of __$GLOBAL_CACHE$__ properties is not allowed."),!1}});return Object.defineProperty(e,"$update",{value:function(e){if("object"!=typeof e||null===e)throw new Error("[GLOBAL-PROTECT] $update() expects an object with key-value pairs: $update({key1: value1, key2: value2})");t=!0;try{for(const[n,t]of Object.entries(e))this[n]=t}finally{t=!1}},writable:!1,enumerable:!1,configurable:!1}),e}();var ZoomCobrowseSDK=function(e,n){"use strict";var t,o,r,i=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),globalThis.ZMCoBrowsingConfig=Object.assign(Object.assign({},globalThis.ZMCoBrowsingConfig),this.coBrowsingConfig)}},{key:"requestNpmModeAgentConfig",value:function(){var e,n,t;if(null===(e=globalThis.ZCB_NPM_SDK_AGENT_MAIN)||void 0===e?void 0:e.isInnerFrame(document)){var o=null;try{o=globalThis.parent.ZCB_CoBrowseConfigController.coBrowsingConfig}catch(e){}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},o))}}}],[{key:"create",value:function(){return globalThis.ZCB_CoBrowseConfigController||new e}}]),e}().create(),a=function(e,n){return"".concat(e).concat(n)};!function e(n,t){var o={},r=function(){var r=n[i];"string"==typeof r?o[i]=a(t,r):"function"==typeof r?o[i]=function(){return a(t,r.apply(void 0,arguments))}:"object"===_typeof(r)&&(r instanceof RegExp||(o[i]=e(r,t)))};for(var i in n)r();return o}({log:{report:"/report-log"},blob:{uploadBlob:"/upload-blob",getBlobUrl:function(e){return"/cps-blob-".concat(e)},getBlobUrlReg:/cps-blob-([^?#\\/]+)/}},"/co-browsing"),function(e){e.LOCAL="local",e.PROD="prod"}(t||(t={})),function(e){e.LEADER="1",e.FOLLOWER="2",e.RECORDER="11"}(o||(o={})),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"}(r||(r={}));var s,_;!function(e){e.LEADER="HR",e.FOLLOWER="VR"}(s||(s={})),new RegExp("(.+)(HTTPS?)/(.+)/".concat("CPS-SEP-FLAG","/(").concat(s.FOLLOWER,"|").concat(s.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"}(_||(_={}));var u,c,E,l,d,S,f,R,I,T,O=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");u={},O.forEach((function(e,n){return u[e]=n})),String.fromCharCode.bind(String),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"}(c||(c={})),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"}(E||(E={})),function(e){e[e.FullSnapshot=-1]="FullSnapshot",e[e.Annotation=16]="Annotation"}(l||(l={})),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"}(d||(d={})),function(e){e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2"}(S||(S={})),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"}(f||(f={})),function(e){e.CBS="CBS",e.CBS_SUB="CBS_SUB",e.IFRAME_ANOTATION="IFRAME_ANOTATION",e.REMOTE_ASSIST_FLYING_CURSOR="REMOTE_ASSIST_FLYING_CURSOR"}(R||(R={})),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"}(I||(I={})),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"}(T||(T={}));var g="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 o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})})),t}var p={},A={get exports(){return p},set exports(e){p=e}};var D,N={},h={get exports(){return N},set exports(e){N=e}},m=C(Object.freeze({__proto__:null,default:{}}));function v(){return D||(D=1,h.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!==g&&g.crypto&&(t=g.crypto),!t)try{t=m}catch(e){}var o=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.")},r=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=r(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)}},_=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||c).stringify(this)},concat:function(e){var n=this.words,t=e.words,o=this.sigBytes,r=e.sigBytes;if(this.clamp(),o%4)for(var i=0;i<r;i++){var a=t[i>>>2]>>>24-i%4*8&255;n[o+i>>>2]|=a<<24-(o+i)%4*8}else for(var s=0;s<r;s+=4)n[o+s>>>2]=t[s>>>2];return this.sigBytes+=r,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(o());return new _.init(n,e)}}),u=i.enc={},c=u.Hex={stringify:function(e){for(var n=e.words,t=e.sigBytes,o=[],r=0;r<t;r++){var i=n[r>>>2]>>>24-r%4*8&255;o.push((i>>>4).toString(16)),o.push((15&i).toString(16))}return o.join("")},parse:function(e){for(var n=e.length,t=[],o=0;o<n;o+=2)t[o>>>3]|=parseInt(e.substr(o,2),16)<<24-o%8*4;return new _.init(t,n/2)}},E=u.Latin1={stringify:function(e){for(var n=e.words,t=e.sigBytes,o=[],r=0;r<t;r++){var i=n[r>>>2]>>>24-r%4*8&255;o.push(String.fromCharCode(i))}return o.join("")},parse:function(e){for(var n=e.length,t=[],o=0;o<n;o++)t[o>>>2]|=(255&e.charCodeAt(o))<<24-o%4*8;return new _.init(t,n)}},l=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(E.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return E.parse(unescape(encodeURIComponent(e)))}},d=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new _.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(n){var t,o=this._data,r=o.words,i=o.sigBytes,a=this.blockSize,s=i/(4*a),u=(s=n?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,c=e.min(4*u,i);if(u){for(var E=0;E<u;E+=a)this._doProcessBlock(r,E);t=r.splice(0,u),o.sigBytes-=c}return new _.init(t,c)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=d.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.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)),N;var e}var y,P={},L={get exports(){return P},set exports(e){P=e}};function b(){return y||(y=1,L.exports=(e=v(),function(){var n=e,t=n.lib.WordArray;function o(e,n,o){for(var r=[],i=0,a=0;a<n;a++)if(a%4){var s=o[e.charCodeAt(a-1)]<<a%4*2|o[e.charCodeAt(a)]>>>6-a%4*2;r[i>>>2]|=s<<24-i%4*8,i++}return t.create(r,i)}n.enc.Base64={stringify:function(e){var n=e.words,t=e.sigBytes,o=this._map;e.clamp();for(var r=[],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++)r.push(o.charAt(a>>>6*(3-s)&63));var _=o.charAt(64);if(_)for(;r.length%4;)r.push(_);return r.join("")},parse:function(e){var n=e.length,t=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var i=0;i<t.length;i++)r[t.charCodeAt(i)]=i}var a=t.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(n=s)}return o(e,n,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64)),P;var e}var w,M={},F={get exports(){return M},set exports(e){M=e}};function U(){return w||(w=1,F.exports=(e=v(),function(n){var t=e,o=t.lib,r=o.WordArray,i=o.Hasher,a=t.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*n.abs(n.sin(e+1))|0}();var _=a.MD5=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,n){for(var t=0;t<16;t++){var o=n+t,r=e[o];e[o]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var i=this._hash.words,a=e[n+0],_=e[n+1],d=e[n+2],S=e[n+3],f=e[n+4],R=e[n+5],I=e[n+6],T=e[n+7],O=e[n+8],g=e[n+9],C=e[n+10],p=e[n+11],A=e[n+12],D=e[n+13],N=e[n+14],h=e[n+15],m=i[0],v=i[1],y=i[2],P=i[3];m=u(m,v,y,P,a,7,s[0]),P=u(P,m,v,y,_,12,s[1]),y=u(y,P,m,v,d,17,s[2]),v=u(v,y,P,m,S,22,s[3]),m=u(m,v,y,P,f,7,s[4]),P=u(P,m,v,y,R,12,s[5]),y=u(y,P,m,v,I,17,s[6]),v=u(v,y,P,m,T,22,s[7]),m=u(m,v,y,P,O,7,s[8]),P=u(P,m,v,y,g,12,s[9]),y=u(y,P,m,v,C,17,s[10]),v=u(v,y,P,m,p,22,s[11]),m=u(m,v,y,P,A,7,s[12]),P=u(P,m,v,y,D,12,s[13]),y=u(y,P,m,v,N,17,s[14]),m=c(m,v=u(v,y,P,m,h,22,s[15]),y,P,_,5,s[16]),P=c(P,m,v,y,I,9,s[17]),y=c(y,P,m,v,p,14,s[18]),v=c(v,y,P,m,a,20,s[19]),m=c(m,v,y,P,R,5,s[20]),P=c(P,m,v,y,C,9,s[21]),y=c(y,P,m,v,h,14,s[22]),v=c(v,y,P,m,f,20,s[23]),m=c(m,v,y,P,g,5,s[24]),P=c(P,m,v,y,N,9,s[25]),y=c(y,P,m,v,S,14,s[26]),v=c(v,y,P,m,O,20,s[27]),m=c(m,v,y,P,D,5,s[28]),P=c(P,m,v,y,d,9,s[29]),y=c(y,P,m,v,T,14,s[30]),m=E(m,v=c(v,y,P,m,A,20,s[31]),y,P,R,4,s[32]),P=E(P,m,v,y,O,11,s[33]),y=E(y,P,m,v,p,16,s[34]),v=E(v,y,P,m,N,23,s[35]),m=E(m,v,y,P,_,4,s[36]),P=E(P,m,v,y,f,11,s[37]),y=E(y,P,m,v,T,16,s[38]),v=E(v,y,P,m,C,23,s[39]),m=E(m,v,y,P,D,4,s[40]),P=E(P,m,v,y,a,11,s[41]),y=E(y,P,m,v,S,16,s[42]),v=E(v,y,P,m,I,23,s[43]),m=E(m,v,y,P,g,4,s[44]),P=E(P,m,v,y,A,11,s[45]),y=E(y,P,m,v,h,16,s[46]),m=l(m,v=E(v,y,P,m,d,23,s[47]),y,P,a,6,s[48]),P=l(P,m,v,y,T,10,s[49]),y=l(y,P,m,v,N,15,s[50]),v=l(v,y,P,m,R,21,s[51]),m=l(m,v,y,P,A,6,s[52]),P=l(P,m,v,y,S,10,s[53]),y=l(y,P,m,v,C,15,s[54]),v=l(v,y,P,m,_,21,s[55]),m=l(m,v,y,P,O,6,s[56]),P=l(P,m,v,y,h,10,s[57]),y=l(y,P,m,v,I,15,s[58]),v=l(v,y,P,m,D,21,s[59]),m=l(m,v,y,P,f,6,s[60]),P=l(P,m,v,y,p,10,s[61]),y=l(y,P,m,v,d,15,s[62]),v=l(v,y,P,m,g,21,s[63]),i[0]=i[0]+m|0,i[1]=i[1]+v|0,i[2]=i[2]+y|0,i[3]=i[3]+P|0},_doFinalize:function(){var e=this._data,t=e.words,o=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32;var i=n.floor(o/4294967296),a=o;t[15+(r+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t[14+(r+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(t.length+1),this._process();for(var s=this._hash,_=s.words,u=0;u<4;u++){var c=_[u];_[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,n,t,o,r,i,a){var s=e+(n&t|~n&o)+r+a;return(s<<i|s>>>32-i)+n}function c(e,n,t,o,r,i,a){var s=e+(n&o|t&~o)+r+a;return(s<<i|s>>>32-i)+n}function E(e,n,t,o,r,i,a){var s=e+(n^t^o)+r+a;return(s<<i|s>>>32-i)+n}function l(e,n,t,o,r,i,a){var s=e+(t^(n|~o))+r+a;return(s<<i|s>>>32-i)+n}t.MD5=i._createHelper(_),t.HmacMD5=i._createHmacHelper(_)}(Math),e.MD5)),M;var e}var B,k={},x={get exports(){return k},set exports(e){k=e}},V={},W={get exports(){return V},set exports(e){V=e}};function G(){return B||(B=1,W.exports=(s=v(),n=(e=s).lib,t=n.WordArray,o=n.Hasher,r=e.algo,i=[],a=r.SHA1=o.extend({_doReset:function(){this._hash=new t.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,n){for(var t=this._hash.words,o=t[0],r=t[1],a=t[2],s=t[3],_=t[4],u=0;u<80;u++){if(u<16)i[u]=0|e[n+u];else{var c=i[u-3]^i[u-8]^i[u-14]^i[u-16];i[u]=c<<1|c>>>31}var E=(o<<5|o>>>27)+_+i[u];E+=u<20?1518500249+(r&a|~r&s):u<40?1859775393+(r^a^s):u<60?(r&a|r&s|a&s)-1894007588:(r^a^s)-899497514,_=s,s=a,a=r<<30|r>>>2,r=o,o=E}t[0]=t[0]+o|0,t[1]=t[1]+r|0,t[2]=t[2]+a|0,t[3]=t[3]+s|0,t[4]=t[4]+_|0},_doFinalize:function(){var e=this._data,n=e.words,t=8*this._nDataBytes,o=8*e.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=Math.floor(t/4294967296),n[15+(o+64>>>9<<4)]=t,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}}),e.SHA1=o._createHelper(a),e.HmacSHA1=o._createHmacHelper(a),s.SHA1)),V;var e,n,t,o,r,i,a,s}var H,Y,J={},Z={get exports(){return J},set exports(e){J=e}};function j(){return Y||(Y=1,x.exports=function(e){return function(){var n=e,t=n.lib,o=t.Base,r=t.WordArray,i=n.algo,a=i.MD5,s=i.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,n){for(var t,o=this.cfg,i=o.hasher.create(),a=r.create(),s=a.words,_=o.keySize,u=o.iterations;s.length<_;){t&&i.update(t),t=i.update(e).finalize(n),i.reset();for(var c=1;c<u;c++)t=i.finalize(t),i.reset();a.concat(t)}return a.sigBytes=4*_,a}});n.EvpKDF=function(e,n,t){return s.create(t).compute(e,n)}}(),e.EvpKDF}(v(),G(),H||(H=1,Z.exports=(e=v(),t=(n=e).lib.Base,o=n.enc.Utf8,void(n.algo.HMAC=t.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,_=a.words,u=0;u<t;u++)s[u]^=1549556828,_[u]^=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))}})))))),k;var e,n,t,o}var z,K,X={},q={get exports(){return X},set exports(e){X=e}};A.exports=function(e){return function(){var n=e,t=n.lib.BlockCipher,o=n.algo,r=[],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,o=0;for(n=0;n<256;n++){var S=o^o<<1^o<<2^o<<3^o<<4;S=S>>>8^255&S^99,r[t]=S,i[S]=t;var f=e[t],R=e[f],I=e[R],T=257*e[S]^16843008*S;a[t]=T<<24|T>>>8,s[t]=T<<16|T>>>16,_[t]=T<<8|T>>>24,u[t]=T,T=16843009*I^65537*R^257*f^16843008*t,c[S]=T<<24|T>>>8,E[S]=T<<16|T>>>16,l[S]=T<<8|T>>>24,d[S]=T,t?(t=f^e[e[e[I^f]]],o^=e[e[o]]):t=o=1}}();var S=[0,1,2,4,8,16,32,64,128,27,54],f=o.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,n=e.words,t=e.sigBytes/4,o=4*((this._nRounds=t+6)+1),i=this._keySchedule=[],a=0;a<o;a++)a<t?i[a]=n[a]:(u=i[a-1],a%t?t>6&&a%t==4&&(u=r[u>>>24]<<24|r[u>>>16&255]<<16|r[u>>>8&255]<<8|r[255&u]):(u=r[(u=u<<8|u>>>24)>>>24]<<24|r[u>>>16&255]<<16|r[u>>>8&255]<<8|r[255&u],u^=S[a/t|0]<<24),i[a]=i[a-t]^u);for(var s=this._invKeySchedule=[],_=0;_<o;_++){if(a=o-_,_%4)var u=i[a];else u=i[a-4];s[_]=_<4||a<=4?u:c[r[u>>>24]]^E[r[u>>>16&255]]^l[r[u>>>8&255]]^d[r[255&u]]}}},encryptBlock:function(e,n){this._doCryptBlock(e,n,this._keySchedule,a,s,_,u,r)},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,c,E,l,d,i),t=e[n+1],e[n+1]=e[n+3],e[n+3]=t},_doCryptBlock:function(e,n,t,o,r,i,a,s){for(var _=this._nRounds,u=e[n]^t[0],c=e[n+1]^t[1],E=e[n+2]^t[2],l=e[n+3]^t[3],d=4,S=1;S<_;S++){var f=o[u>>>24]^r[c>>>16&255]^i[E>>>8&255]^a[255&l]^t[d++],R=o[c>>>24]^r[E>>>16&255]^i[l>>>8&255]^a[255&u]^t[d++],I=o[E>>>24]^r[l>>>16&255]^i[u>>>8&255]^a[255&c]^t[d++],T=o[l>>>24]^r[u>>>16&255]^i[c>>>8&255]^a[255&E]^t[d++];u=f,c=R,E=I,l=T}f=(s[u>>>24]<<24|s[c>>>16&255]<<16|s[E>>>8&255]<<8|s[255&l])^t[d++],R=(s[c>>>24]<<24|s[E>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^t[d++],I=(s[E>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&c])^t[d++],T=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[c>>>8&255]<<8|s[255&E])^t[d++],e[n]=f,e[n+1]=R,e[n+2]=I,e[n+3]=T},keySize:8});n.AES=t._createHelper(f)}(),e.AES}(v(),b(),U(),j(),z||(z=1,q.exports=(K=v(),j(),void(K.lib.Cipher||function(e){var n=K,t=n.lib,o=t.Base,r=t.WordArray,i=t.BufferedBlockAlgorithm,a=n.enc;a.Utf8;var s=a.Base64,_=n.algo.EvpKDF,u=t.Cipher=i.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(){i.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,o,r){return e(o).encrypt(n,t,o,r)},decrypt:function(t,o,r){return e(o).decrypt(n,t,o,r)}}}}()});t.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var c=n.mode={},E=t.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}}),l=c.CBC=function(){var n=E.extend();function t(n,t,o){var r,i=this._iv;i?(r=i,this._iv=e):r=this._prevBlock;for(var a=0;a<o;a++)n[t+a]^=r[a]}return n.Encryptor=n.extend({processBlock:function(e,n){var o=this._cipher,r=o.blockSize;t.call(this,e,n,r),o.encryptBlock(e,n),this._prevBlock=e.slice(n,n+r)}}),n.Decryptor=n.extend({processBlock:function(e,n){var o=this._cipher,r=o.blockSize,i=e.slice(n,n+r);o.decryptBlock(e,n),t.call(this,e,n,r),this._prevBlock=i}}),n}(),d=(n.pad={}).Pkcs7={pad:function(e,n){for(var t=4*n,o=t-e.sigBytes%t,i=o<<24|o<<16|o<<8|o,a=[],s=0;s<o;s+=4)a.push(i);var _=r.create(a,o);e.concat(_)},unpad:function(e){var n=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=n}};t.BlockCipher=u.extend({cfg:u.cfg.extend({mode:l,padding:d}),reset:function(){var e;u.reset.call(this);var n=this.cfg,t=n.iv,o=n.mode;this._xformMode==this._ENC_XFORM_MODE?e=o.createEncryptor:(e=o.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,t&&t.words):(this._mode=e.call(o,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=t.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),f=(n.format={}).OpenSSL={stringify:function(e){var n=e.ciphertext,t=e.salt;return(t?r.create([1398893684,1701076831]).concat(t).concat(n):n).toString(s)},parse:function(e){var n,t=s.parse(e),o=t.words;return 1398893684==o[0]&&1701076831==o[1]&&(n=r.create(o.slice(2,4)),o.splice(0,4),t.sigBytes-=16),S.create({ciphertext:t,salt:n})}},R=t.SerializableCipher=o.extend({cfg:o.extend({format:f}),encrypt:function(e,n,t,o){o=this.cfg.extend(o);var r=e.createEncryptor(t,o),i=r.finalize(n),a=r.cfg;return S.create({ciphertext:i,key:t,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:o.format})},decrypt:function(e,n,t,o){return o=this.cfg.extend(o),n=this._parse(n,o.format),e.createDecryptor(t,o).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,o,i){if(o||(o=r.random(8)),i)a=_.create({keySize:n+t,hasher:i}).compute(e,o);else var a=_.create({keySize:n+t}).compute(e,o);var s=r.create(a.words.slice(n),4*t);return a.sigBytes=4*n,S.create({key:a,iv:s,salt:o})}},T=t.PasswordBasedCipher=R.extend({cfg:R.cfg.extend({kdf:I}),encrypt:function(e,n,t,o){var r=(o=this.cfg.extend(o)).kdf.execute(t,e.keySize,e.ivSize,o.salt,o.hasher);o.iv=r.iv;var i=R.encrypt.call(this,e,n,r.key,o);return i.mixIn(r),i},decrypt:function(e,n,t,o){o=this.cfg.extend(o),n=this._parse(n,o.format);var r=o.kdf.execute(t,e.keySize,e.ivSize,n.salt,o.hasher);return o.iv=r.iv,R.decrypt.call(this,e,n,r.key,o)}})}()))));var $,Q={};!function(e,n){e.exports=function(e){return e.enc.Utf8}(v())}({get exports(){return Q},set exports(e){Q=e}});var ee=new Uint8Array(16);function ne(){if(!$&&!($="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 $(ee)}for(var te=[],oe=0;oe<256;++oe)te.push((oe+256).toString(16).slice(1));var re,ie,ae,se={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function _e(e,n,t){if(se.randomUUID&&!n&&!e)return se.randomUUID();var o=(e=e||{}).random||(e.rng||ne)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,n){t=t||0;for(var r=0;r<16;++r)n[t+r]=o[r];return n}return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return te[e[n+0]]+te[e[n+1]]+te[e[n+2]]+te[e[n+3]]+"-"+te[e[n+4]]+te[e[n+5]]+"-"+te[e[n+6]]+te[e[n+7]]+"-"+te[e[n+8]]+te[e[n+9]]+"-"+te[e[n+10]]+te[e[n+11]]+te[e[n+12]]+te[e[n+13]]+te[e[n+14]]+te[e[n+15]]}(o)}!function(e){e[e.PENDING=0]="PENDING",e[e.READY=1]="READY",e[e.CLOSE=2]="CLOSE"}(re||(re={})),function(e){e[e.NPM=0]="NPM",e[e.CDN=1]="CDN"}(ie||(ie={})),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"}(ae||(ae={})),ae.RECORD_OVERHEAD_CAPACITY,ae.RECORD_OVERHEAD_CAPACITY;var ue,ce={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(ce,ae.START_RECORD_UNAVAILABLE,"start record api not available"),ae.START_RECORD_INVALID_BODY,"start record response body invalid"),ae.END_RECORD_UNAVAILABLE,"end record api not available"),ae.END_RECORD_INVALID_BODY,"end record response body invalid"),ae.EXIST_RECORD_CONFLICT,"already has an existed recording"),ae.NO_ACTIVE_RECORD,"no existed recording"),ae.RECORD_IN_START_PROGRESS,"recording is in start progress"),ae.RECORD_IN_STOP_PROGRESS,"recording is in stop progress"),ae.RECORD_ALREADY_PAUSED,"recording already paused"),ae.RECORD_ALREADY_RESUMED,"recording already resumed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(ce,ae.RECORD_NOT_ENABLED,"recording not enabled"),ae.RECORD_OVERHEAD_CAPACITY,"recording capacity is overhead"),ae.LEADER_NOT_JOINED,"leader not joined room"),ae.LEADER_DENIED,"leader denied recording"),ae.RECORD_ABORTED,"recording aborted"),ae.CHS_JWT_MISSING,"CHS JWT is empty"),ae.CHS_JWT_DECODE_FAILED,"CHS JWT decode error"),ae.CHS_JWT_INVALID_PAYLOAD,"CHS JWT payload invalid"),ae.CHS_JWT_ISS_AUD_MISSING,"CHS JWT iss or aud empty"),ae.CHS_JWT_ISS_AUD_DENIED,"invalid iss and aud"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(ce,ae.CHS_JWT_VERIFY_FAILED,"token verify failed"),ae.SESSION_ID_NOT_MATCH,"sessionId in header is not match in jwt payload"),ae.AID_IN_JWT_MISSING,"aid in token is required"),ae.UID_IN_JWT_MISSING,"uid in token is required"),ae.RECORD_ID_MISSING,"recordId is empty"),ae.RECORD_TASK_NOT_EXIST,"record task not exist"),ae.PAGE_CONTEXT_BOOTSTRAP_FAILED,"bootstrap playwright failed"),ae.PAGE_CONTROLLER_INIT_FAILED,"PageController init failed"),ae.PAGE_LOAD_HTML_FAILED,"page load html failed"),ae.PAGE_INJECT_INIT_FAILED,"PageInjector init failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(ce,ae.PAGE_INJECT_CONTEXT_FAILED,"injectPageContext failed"),ae.PAGE_START_FAILED,"page start record failed"),ae.PAGE_STOP_FAILED,"page start stop failed"),ae.RECORDER_INIT_FAILED,"PageRecorder init failed"),ae.RECORDER_CDP_SESSION_START_FAILED,"record start cdp session failed"),ae.RECORDER_CDP_SESSION_STOP_FAILED,"record stop cdp session failed"),ae.RECORDER_CDP_SESSION_ALREADY_DESTROYED,"PageRecorder has already been destroyed"),ae.DISK_USAGE_FULL,"Server disk is full"),ae.CONNECT_CHS_FAILED,"CHS is not available"),ae.CONNECT_CHS_FAILOVER,"CHS connection is failover now"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(ce,ae.CONNECT_CHS_DESTROYED,"CHS connection is destroyed by client"),ae.CONNECT_CHS_DISCONNECTED,"CHS connection is disconnected"),ae.CONNECT_CHS_TIMEOUT,"wait for CHS connection timeout"),ae.UDS_INIT_FAILED,"UDSManager init failed"),ae.UDS_SUB_PROCESS_INIT_FAILED,"uds sub process init failed"),ae.UDS_SUB_PROCESS_INIT_TIMEOUT,"uds sub process init timeout"),ae.UDS_CLINET_INIT_FAILED,"UDSClient init failed"),ae.UDS_SERVER_INIT_FAILED,"UDSServer init failed"),ae.UDS_SERVER_LISTEN_FAILED,"UDSServer listen failed"),ae.FILE_INIT_FAILED,"FileManager init failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(ce,ae.FILE_META_INIT_FAILED,"MetaDataManager init failed"),ae.FILE_META_CLIP_INIT_FAILED,"SubClipManager init failed"),ae.FILE_META_OPEN_FAILED,"open metadata failed"),ae.FILE_META_LOCK_FAILED,"metadata lock failed"),ae.FILE_META_RELEASE_FAILED,"metadata release failed"),ae.FILE_META_WRITE_FAILED,"metadata write failed"),ae.ZCB_WEB_NOT_AVAILABLE,"web is not available"),ae.ZCB_CRS_NOT_AVAILABLE,"crs is not available"),ae.REDIS_GET_CLIP_SIZE_FAILED,"get clip size failed"),ae.REDIS_SET_CLIP_SIZE_FAILED,"set clip size failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(ce,ae.REDIS_GET_START_TIME_FAILED,"get record start time failed"),ae.REDIS_SET_START_TIME_FAILED,"set record start time failed"),ae.ASSETS_FETCH_FAILED,"fetch assets from cdn failed"),ae.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"}(ue||(ue={}));var Ee,le;!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"}(Ee||(Ee={})),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"}(le||(le={})),_defineProperty(_defineProperty(_defineProperty(_defineProperty({},le.ANNOTATION,!0),le.INTERACTION,!0),le.INTERACTION_BINARY,!0),le.FLYING_CURSOR,!0),_defineProperty(_defineProperty({},le.RTT,!0),le.NTP,!0),_defineProperty(_defineProperty({},le.INTERACTION,!0),le.INTERACTION_BINARY,!0);var de={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(de,le.INTERACTION,!0),le.INTERACTION_BINARY,!0),le.FULL_SNAPSHOT_REQUEST,!0),le.REMOTE_CONTROL_STATUS,!0),le.REMOTE_CONTROL_REQUEST,!0),le.REMOTE_CONTROL_RESPONSE,!0),le.REMOTE_CONTROL_GIVE_UP,!0),le.REMOTE_CONTROL_TAKE_BACK,!0),le.REMOTE_CONTROL_REJECT,!0),le.REMOTE_CONTROL_CANCEL,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(de,le.START_RECORD,!0),le.RESUME_RECORD,!0),le.PAUSE_RECORD,!0),le.STOP_RECORD,!0),le.ANNOTATION,!0),le.FLYING_CURSOR,!0),le.NTP,!0);var Se,fe,Re={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Re,le.INTERACTION,!0),le.INTERACTION_BINARY,!0),le.FULL_SNAPSHOT_REQUEST,!0),le.USER_ROSTER,!0),le.ROOM_ROSTER,!0),le.REMOTE_CONTROL_STATUS,!0),le.REMOTE_CONTROL_REQUEST,!0),le.REMOTE_CONTROL_RESPONSE,!0),le.REMOTE_CONTROL_GIVE_UP,!0),le.REMOTE_CONTROL_TAKE_BACK,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Re,le.REMOTE_CONTROL_REJECT,!0),le.REMOTE_CONTROL_CANCEL,!0),le.START_RECORD,!0),le.RESUME_RECORD,!0),le.PAUSE_RECORD,!0),le.STOP_RECORD,!0),le.START_RECORD_RESPONSE,!0),le.STOP_RECORD_RESPONSE,!0),le.PAUSE_RECORD_RESPONSE,!0),le.RESUME_RECORD_RESPONSE,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty(Re,le.RECORD_APPROVE_REQUEST,!0),le.RECORD_APPROVE_RESPONSE,!0),le.ANNOTATION,!0),le.FLYING_CURSOR,!0),_defineProperty(_defineProperty(_defineProperty({},le.RECORD_APPROVE_RESPONSE,!0),le.LEAVE_ROOM,!0),le.FLYING_CURSOR,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty({},T.RegisterCustomerCursorDOM,!0),T.UnregisterUser,!0),T.RegisterOtherAgentCursorDOM,!0),T.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"}(Se||(Se={})),_defineProperty(_defineProperty(_defineProperty({},Se.IN_PROGRESS,"remote control is in progress"),Se.OPPOSITE_REJECT,"the opposite side refuses to be controlled"),Se.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"}(fe||(fe={})),fe.LEAVE_ROOM,fe.WEB_REPORT_USER_JOIN_FAILED,fe.AUTH_CONFLICT,fe.AUTH_VERIFY_FAILED,fe.LEADER_CONFLICT,fe.FOLLOWER_CONFLICT,fe.SESSION_ALREADY_ENDED,fe.ROOM_ID_MISSING,fe.AUTH_PAYLOAD_MISSING,fe.START_URL_INVALID,fe.END_ROOM,fe.DESTROY_DEACTIVE_ROOM,fe.DESTROY_SLEEP_ROOM,fe.DESTROY_NO_VALID_OPERATION_ROOM,fe.NO_OTHER_ACTIVE_USER,fe.RECORD_ALREADY_ENDED,fe.REACHED_LEADER_LIMIT,fe.REACHED_FOLLOWER_LIMIT,fe.MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE,fe.MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION,fe.SESSION_ALREADY_ENDED,fe.END_ROOM,fe.DESTROY_DEACTIVE_ROOM;var Ie,Te,Oe={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Oe,fe.LEAVE_ROOM,"normal leave"),fe.DISCONNECTED,"user disconnected"),fe.WEB_REPORT_REGION_FAILED,"call web report zone region api failed"),fe.WEB_REPORT_REGION_NOT_MATCH,"report zone region mismatch with session hosting region"),fe.WEB_REPORT_USER_JOIN_EMPTY,"call web user join api return empty response"),fe.WEB_REPORT_USER_JOIN_FAILED,"call web user join api failed"),fe.WEB_REPORT_USER_JOIN_EMPTY_USER,"call web user join api return empty user info"),fe.AUTH_CONFLICT,"auth is already consumed once"),fe.AUTH_VERIFY_FAILED,"auth payload is denyed"),fe.AUTH_DB_QUERY_ERROR,"get auth from redis failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Oe,fe.AUTH_USER_ID_VERIFY_FAILED,"sub channel user_id verify failed"),fe.AUTH_USER_ID_NO_EXIST,"main channel user_id not exist"),fe.ROOM_NOT_EXIST,"room not exist or create failed"),fe.ROOM_ADD_USER_FAILED,"room add new user failed"),fe.LEADER_CONFLICT,"leader already exist"),fe.FOLLOWER_CONFLICT,"follower already exist"),fe.ROOM_DEPRECATED,"room is deprecated"),fe.SAME_LEADER_JOINED,"leader with the same user_id joined the room"),fe.SESSION_ALREADY_ENDED,"room is already ended"),fe.ROOM_ID_MISSING,"room id is required"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Oe,fe.AUTH_PAYLOAD_MISSING,"auth payload is required"),fe.START_URL_INVALID,"startUrl is invalid"),fe.SERVER_RESTARTED,"server restarted"),fe.WSSGW_REMOVE_NODE,"wssgw node instance removed"),fe.META_DATA_INVALID,"message meta data invalid"),fe.WSSGW_INSTANCE_NOT_FOUND,"wssgw instance not found"),fe.MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE,"message size limit exceeded by minute"),fe.MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION,"message size limit exceeded by session"),fe.END_ROOM,"The user actively clicked \'end\'."),fe.DESTROY_DEACTIVE_ROOM,"The session ended automatically because there was only 1 user present for 3 minutes."),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Oe,fe.DESTROY_SLEEP_ROOM,"The session ended automatically due to no user activity in the session for 5 minutes."),fe.DESTROY_NO_VALID_OPERATION_ROOM,"The session ended automatically due to no valid operation messages"),fe.NO_OTHER_ACTIVE_USER,"no other active user in this meeting except record virtual user"),fe.RECORD_ALREADY_ENDED,"record already ended"),fe.RECORD_START_FAILED,"record start failed"),fe.REACHED_LEADER_LIMIT,"the number of leaders has reached the limit"),fe.REACHED_FOLLOWER_LIMIT,"the number of followers has reached the limit"),function(e){e[e.RECORD_LEGAL_CONSENT=0]="RECORD_LEGAL_CONSENT"}(Ie||(Ie={})),function(e){e[e.ACTIVE=0]="ACTIVE",e[e.PASSIVE=1]="PASSIVE",e[e.REJECT=2]="REJECT"}(Te||(Te={})),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},E.MouseMove,!0),E.MouseInteraction,!0),E.Scroll,!0),E.ViewportResize,!0),E.Input,!0),E.TouchMove,!0),E.MediaInteraction,!0),E.Drag,!0),E.Selection,!0);var ge,Ce,pe,Ae,De,Ne,he,me,ve,ye,Pe,Le,be,we,Me,Fe,Ue,Be,ke,xe,Ve,We,Ge,He,Ye,Je,Ze,je,ze=function(e){var n={};for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},Ke=function(){return i.getCoBrowsingConfig("sdkVersion")};!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"}(ge||(ge={})),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"}(Ce||(Ce={})),function(e){e.COM_DESK="com-desk",e.COM_VIEWER="com-viewer",e.COM_BYOP_DESK="com_byop_desk"}(pe||(pe={})),function(e){e[e.Normal=0]="Normal",e[e.AgentReconnectFailed=1]="AgentReconnectFailed",e[e.CustomerReconnectFailed=2]="CustomerReconnectFailed",e[e.CustomerEnded=3]="CustomerEnded"}(Ae||(Ae={})),function(e){e[e.Voice=1]="Voice",e[e.Chat=2]="Chat",e[e.VideoInbound=3]="VideoInbound",e[e.VideoOutbound=4]="VideoOutbound"}(De||(De={})),function(e){e.tabFollowingWaitTransferringCustomer="tabFollowingWaitTransferringCustomer",e.tabFollowingTransferringFailedCustomer="tabFollowingTransferringFailedCustomer",e.tabFollowingTransferringFailedAgent="tabFollowingTransferringFailedAgent"}(Ne||(Ne={})),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"}(he||(he={})),function(e){e.UNKNOWN="unknown"}(me||(me={})),function(e){e.UNKNOWN="unknown",e.NO_ROOT_DOM="no_root_dom"}(ve||(ve={})),function(e){e.START="START",e.JOIN="JOIN",e.AUTO="AUTO",e.PERSIST="PERSIST"}(ye||(ye={})),function(e){e.RECONNECTING="reconnecting",e.PERSISTING="persisting"}(Pe||(Pe={})),function(e){e.zcc="zcc",e.common="common"}(Le||(Le={})),function(e){e[e.NoAction=0]="NoAction",e[e.Accept=1]="Accept",e[e.Decline=2]="Decline",e[e.Leave=3]="Leave"}(be||(be={})),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"}(we||(we={})),function(e){e.END_SESSION="end_session",e.DEACTIVE_SESSION="deactive_session",e.CANCEL_SESSION="cancel_session"}(Me||(Me={})),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},we.END_ROOM,Me.END_SESSION),we.DESTROY_DEACTIVE_ROOM,Me.DEACTIVE_SESSION),we.DESTROY_SLEEP_ROOM,Me.DEACTIVE_SESSION),we.END_DEACTIVE_ROOM,Me.DEACTIVE_SESSION),we.DESTROY_NO_VALID_OPERATION_ROOM,Me.DEACTIVE_SESSION),function(e){e[e.LEAVE_ROOM=4e4]="LEAVE_ROOM",e[e.DISCONNECTED=40001]="DISCONNECTED"}(Fe||(Fe={})),function(e){e.LEAVE_SESSION="leave_session",e.DISCONNECT_SESSION="disconnect_session"}(Ue||(Ue={})),_defineProperty(_defineProperty({},Fe.LEAVE_ROOM,Ue.LEAVE_SESSION),Fe.DISCONNECTED,Ue.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."}(Be||(Be={})),function(e){e[e.DEFAULT=0]="DEFAULT",e[e.CC_UI_SESSION_END=1]="CC_UI_SESSION_END"}(ke||(ke={})),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"}(xe||(xe={})),function(e){e.TRANSFER_FAILED_ERROR_TIPS="Failed to transfer to new tab,Please return to the previous tab and have a try again."}(Ve||(Ve={})),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."}(We||(We={})),function(e){e.WAIT_CONSUMER="WAIT_CONSUMER"}(Ge||(Ge={})),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"}(He||(He={})),function(e){e.Cookies="cookie",e.LocalStorage="localStorage",e.SessionStorage="sessionStorage",e.All="all"}(Ye||(Ye={})),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"}(Je||(Je={})),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"}(Ze||(Ze={})),Ze.SESSION_PRE_INIT,Ze.SESSION_JOINED,Ze.SESSION_LEFT,Ze.SESSION_ENDED,Ze.SESSION_ERROR,Ze.REMOTE_ASSIST_ACCEPTED,Ze.REMOTE_ASSIST_REJECTED,Ze.REMOTE_ASSIST_STARTED,Ze.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"}(je||(je={})),je.SEND_SESSION_OPTIONS,je.START_REMOTE_ASSIST,je.STOP_REMOTE_ASSIST;var Xe;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"}(Xe||(Xe={}));var qe,$e={PIN_UPDATE_FAILED:"Pincode update failed"},Qe={CONNECT_TIMEOUT_FAILED:"Session connect timeout."};_defineProperty(_defineProperty({},Xe.CONNECT_TIMEOUT_FAILED,Qe.CONNECT_TIMEOUT_FAILED),Xe.REFRESH_PIN_CODE_FAILED,$e.PIN_UPDATE_FAILED),function(e){e[e.CANCEL_END_ROOM=1]="CANCEL_END_ROOM",e[e.CANCEL_LEAVE_ROOM=2]="CANCEL_LEAVE_ROOM"}(qe||(qe={}));var en="Canceled and ended session.",nn="Canceled and left session.";_defineProperty(_defineProperty({},qe.CANCEL_END_ROOM,en),qe.CANCEL_LEAVE_ROOM,nn);var tn,on={INVALID_URL:"The website link is invalid.",ACCOUNT_NO_CREDITS:"Free trial account has no available credits."},rn={CONNECTING:"A connection is already in progress.",PERSISTING:" A transfer session is still recovering."},an={NOT_FOUND:"Session does not exist or has ended."},sn={LIMIT:"A session is already active."},_n={PIN_NOT_FOUND:"Pincode is not found."},un={PIN_EXPIRED:"Pincode has expired."},cn={PIN_INVALID_LENGTH:"Pincode exceeds the maximum length",PIN_INVALID_CHARACTERS:"Pincode contains invalid characters."},En={PIN_REQUIRED:"Pincode is required."},ln={PIN_CONFLICT:"Pincode has already been used."},dn={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."},Sn={CUSTOMER_LIMIT:"Maximum number of customers in a session reached."},fn={AGENT_LIMIT:"Maximum number of agents in a session reached."},Rn={DUPLICATE_AGENT:"The agent is already in the session."},In={NETWORK_REQUEST_FAILED:"Network request to backend failed after multiple attempts."},Tn={CANCELING:"Operation failed, the session is being canceled."},On={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."},gn={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"}(tn||(tn={}));var Cn,pn={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(pn,tn.WEB_REPORT_REGION_FAILED,dn.INTERNAL_ERROR),tn.WEB_REPORT_REGION_NOT_MATCH,dn.INTERNAL_ERROR),tn.WEB_REPORT_USER_JOIN_FAILED,dn.INTERNAL_ERROR),tn.WEB_REPORT_USER_JOIN_EMPTY,dn.INTERNAL_ERROR),tn.WEB_REPORT_USER_JOIN_EMPTY_USER,dn.INTERNAL_ERROR),tn.AUTH_CONFLICT,dn.INTERNAL_ERROR),tn.AUTH_VERIFY_FAILED,dn.INTERNAL_ERROR),tn.AUTH_DB_QUERY_ERROR,dn.INTERNAL_ERROR),tn.ROOM_NOT_EXIST,dn.INTERNAL_ERROR),tn.ROOM_ADD_USER_FAILED,dn.INTERNAL_ERROR),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(pn,tn.SESSION_ALREADY_ENDED,dn.SESSION_NOT_FOUND),tn.ROOM_DEPRECATED,dn.INTERNAL_ERROR),tn.ROOM_ID_MISSING,dn.INTERNAL_ERROR),tn.AUTH_PAYLOAD_MISSING,dn.INTERNAL_ERROR),tn.START_URL_INVALID,dn.INTERNAL_ERROR),tn.META_DATA_INVALID,dn.INTERNAL_ERROR),tn.WSSGW_INSTANCE_NOT_FOUND,dn.INTERNAL_ERROR),tn.LEADER_CONFLICT,Sn.CUSTOMER_LIMIT),tn.REACHED_LEADER_LIMIT,Sn.CUSTOMER_LIMIT),tn.FOLLOWER_CONFLICT,fn.AGENT_LIMIT),_defineProperty(_defineProperty(_defineProperty(_defineProperty(pn,tn.REACHED_FOLLOWER_LIMIT,fn.AGENT_LIMIT),tn.USER_CONFLICT,Rn.DUPLICATE_AGENT),tn.MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE,gn.SESSION_ERROR_WITH_RETRY),tn.MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION,gn.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"}(Cn||(Cn={}));var An,Dn,Nn={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Nn,Cn.ALL_PING_FAILED,dn.INTERNAL_ERROR),Cn.EMPTY_PING_LIST,dn.INTERNAL_ERROR),Cn.SOCKET_RECONNECT_FAILED,dn.RECONNECT_FAILED),Cn.SOCKET_FAIL_OVER_FAILED,dn.FAIL_OVER_FAILED),Cn.FRAME_LEVEL_NOT_READY,dn.INTERNAL_ERROR),Cn.SESSION_CONNECTING,rn.CONNECTING),Cn.SESSION_PERSISTING,rn.PERSISTING),Cn.DUPLICATE_SESSION,sn.LIMIT),Cn.DUPLICATE_LAUNCH_SESSION,sn.LIMIT),Cn.SESSION_CANCELING,Tn.CANCELING),_defineProperty(Nn,Cn.UNKNOWN_SERVICE_EXCEPTION,gn.SERVICE_ERROR),function(e){e[e.Unauthorized=401]="Unauthorized",e[e.Forbidden=403]="Forbidden"}(An||(An={})),_defineProperty(_defineProperty({},An.Unauthorized,On.JWT_INVALID),An.Forbidden,On.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"}(Dn||(Dn={})),_defineProperty(_defineProperty(_defineProperty(_defineProperty({},Dn.INVALID_TOKEN,On.JWT_INVALID),Dn.NO_PERMISSION,On.JWT_NO_PERMISSIONS),Dn.INVALID_EXPIRED,On.JWT_EXPIRED),Dn.TOKEN_ACCESS_ERROR,On.JWT_ACCESS_ERROR);var hn,mn,vn,yn={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(yn,Dn.INVALID_URL,on.INVALID_URL),Dn.SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_DISABLE,on.ACCOUNT_NO_CREDITS),Dn.SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_NO_CREDIT,on.ACCOUNT_NO_CREDITS),Dn.SESSION_NOT_FOUND,an.NOT_FOUND),Dn.PIN_CODE_NOT_FOUND,_n.PIN_NOT_FOUND),Dn.PIN_CODE_EXPIRED,un.PIN_EXPIRED),Dn.PIN_CODE_EXCEEDED_MAX_LENGTH,cn.PIN_INVALID_LENGTH),Dn.PIN_INVALID_CHARACTERS,cn.PIN_INVALID_CHARACTERS),Dn.PIN_CODE_IS_REQUIRED,En.PIN_REQUIRED),Dn.PIN_CODE_HAS_BEEN_USED,ln.PIN_CONFLICT),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(yn,Dn.INVALID_SDK_VERSION,dn.SDK_INVALID),Dn.ERROR_SDK_VERSION,dn.SDK_INVALID),Dn.INACTIVE_SDK_VERSION,dn.SDK_INVALID),Dn.SDK_VERSION_NOT_FOUND,dn.SDK_INVALID),Dn.NETWORK_ERROR,In.NETWORK_REQUEST_FAILED),Dn.INVALID_TOKEN,On.INTERNAL_ERROR),Dn.NO_PERMISSION,On.INTERNAL_ERROR),Dn.INVALID_EXPIRED,On.INTERNAL_ERROR),Dn.TOKEN_ACCESS_ERROR,On.INTERNAL_ERROR),Dn.UNKNOWN,gn.SERVICE_ERROR),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(yn,Dn.LOCKED,gn.SERVICE_ERROR),Dn.PIN_PUSH_FAILED,gn.SERVICE_ERROR),Dn.INVALID_BUSINESS_TYPE,gn.SERVICE_ERROR),Dn.INVALID_RECORDING_ID,gn.SERVICE_ERROR),Dn.MISSING_FIELD,gn.SERVICE_ERROR),Dn.SEARCH_ERROR,gn.SERVICE_ERROR),Dn.INVALID_BUSINESS_TYPE2,gn.SERVICE_ERROR),Dn.FILE_SERVER_ERROR,gn.SERVICE_ERROR),Dn.FILE_SERVICE_ERROR,gn.SERVICE_ERROR),Dn.FILE_SERVICE_ERROR2,gn.SERVICE_ERROR),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(yn,Dn.INVALID_START_TIME,gn.SERVICE_ERROR),Dn.INVALID_ACTION,gn.SERVICE_ERROR),Dn.INVALID_REGION,gn.SERVICE_ERROR),Dn.EXCEEDED_FAILED,gn.API_RATE_LIMIT),Dn.INVALID_END_TIME,gn.SERVICE_ERROR),Dn.PIN_CODE_NOT_READY,gn.SERVICE_ERROR),Dn.INVALID_TOTAL_MINUTES,gn.SERVICE_ERROR),Dn.DUPLICATE_REQUEST,gn.SERVICE_ERROR),Dn.INVALID_TEMPLATE_TYPE,gn.SERVICE_ERROR),Dn.SERVER_ERROR1,gn.SERVICE_ERROR),_defineProperty(_defineProperty(_defineProperty(_defineProperty(yn,Dn.SERVER_ERROR2,gn.SERVICE_ERROR),Dn.SERVER_ERROR3,gn.SERVICE_ERROR),Dn.SERVER_ERROR4,gn.SERVICE_ERROR),Dn.INVALID_SDK_CDN_URL,gn.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"}(hn||(hn={})),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"}(mn||(mn={})),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"}(vn||(vn={}));var Pn=function(){return"undefined"==typeof window||"undefined"==typeof document};function Ln(){var e=navigator.userAgent;return/iPhone|iPad|iPod/.test(e)}function bn(){return Ln()||navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/Windows Phone/i)}function wn(){return!Pn()&&("MacIntel"===(window.navigator.platform||"")&&((window.navigator.maxTouchPoints||0)>1&&"ontouchstart"in window))}function Mn(){return wn()||function(){if(Pn())return!1;var e=window.navigator,n=e.userAgent,t=e.platform;if(/Android/.test(n)||!/Linux/.test(t))return!1;var o="ontouchstart"in window&&("orientation"in window||"screen"in window&&window.screen&&"orientation"in window.screen)&&window.navigator.maxTouchPoints>0,r="standalone"in window.navigator||"share"in window.navigator||"vibrate"in window.navigator;return o&&r}()}var Fn,Un,Bn,kn=(Fn=null,Un=null,Bn=null,{get isIOS(){return null===Fn&&(Fn=Ln()),Fn},get isIOSDevice(){return null===Un&&(Un=Ln()||wn()),Un},get isMobileDeviceOrDesktopUA(){return null===Bn&&(Bn=!(!bn()&&!Mn())),Bn}}),xn=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"calculateWidth",value:function(){var e,n,t=window.visualViewport;if(!zn(t))return Wn();if(t.scale>1){var o=t.width*t.scale;return Math.min(o,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.width)&&void 0!==n?n:o)}return t.width}},{key:"calculateHeight",value:function(){var e,n,t=window.visualViewport;if(!zn(t))return Gn();if(t.scale>1){var o=t.height*t.scale;return Math.min(o,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.height)&&void 0!==n?n:o)}return t.height}}]),e}(),Vn=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"calculateWidth",value:function(){var e,n,t=window.visualViewport;if(!zn(t))return Wn();if(t.scale>1){var o=Math.max(t.width*t.scale,window.innerWidth);return Math.min(o,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.width)&&void 0!==n?n:o)}return Math.max(t.width,window.innerWidth)}},{key:"calculateHeight",value:function(){var e,n,t=window.visualViewport;if(!zn(t))return Gn();if(t.scale>1){var o=Math.max(t.height*t.scale,window.innerHeight);return Math.min(o,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.height)&&void 0!==n?n:o)}return Math.max(t.height,window.innerHeight)}}]),e}();function Wn(){return"undefined"==typeof document?0:document.documentElement&&document.documentElement.clientWidth||window.innerWidth||document.body&&document.body.clientWidth}function Gn(){return"undefined"==typeof document?0:document.documentElement&&document.documentElement.clientHeight||window.innerHeight||document.body&&document.body.clientHeight}var Hn=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"calculateWidth",value:function(){return Wn()}},{key:"calculateHeight",value:function(){return Gn()}}]),e}(),Yn=function(){var e,n=!1;function t(){e=kn.isMobileDeviceOrDesktopUA&&zn(window.visualViewport)?kn.isIOSDevice?new xn:new Vn:new Hn,n=!0}return{getWidth:function(){return n||t(),e.calculateWidth()},getHeight:function(){return n||t(),e.calculateHeight()}}}();var Jn,Zn,jn=new WeakMap;function zn(e){if(!e||"object"!==_typeof(e))return!1;if(e.constructor&&"VisualViewport"===e.constructor.name){var n=jn.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&&jn.set(e,t),t}function Kn(e,n,t,o){return new(t||(t=globalThis.__$ZCB_GLOBAL_CACHE$__.Promise))((function(r,i){function a(e){try{_(o.next(e))}catch(e){i(e)}}function s(e){try{_(o.throw(e))}catch(e){i(e)}}function _(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}_((o=o.apply(e,n||[])).next())}))}Yn.getWidth(),Yn.getHeight(),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"}(Jn||(Jn={})),function(e){e.afterInit="afterInit",e.beforeLog="beforeLog",e.afterLog="afterLog",e.beforeReport="beforeReport",e.afterReport="afterReport"}(Zn||(Zn={})),b();var Xn=function(e){try{return JSON.stringify(e)}catch(e){return"json stringify failed"}};var qn,$n,Qn,et=(qn=(new Date).getTime(),$n=performance&&performance.now&&1e3*performance.now()||0,"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var n=16*Math.random();return qn>0?(n=(qn+n)%16|0,qn=Math.floor(qn/16)):(n=($n+n)%16|0,$n=Math.floor($n/16)),("x"===e?n:3&n|8).toString(16)}))),nt=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t},tt=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},ot=function(e){var n=new Date(e),t=n.getUTCFullYear(),o=tt(n.getUTCMonth()+1),r=tt(n.getUTCDate()),i=tt(n.getUTCHours()),a=tt(n.getUTCMinutes()),s=tt(n.getUTCSeconds()),_=tt(n.getUTCMilliseconds(),3);return"".concat(t,"-").concat(o,"-").concat(r," ").concat(i,":").concat(a,":").concat(s,".").concat(_)},rt={version:"000001",flag:"0"},it=function(e){return e.reduce((function(e,n){var t,o,r,i,a,s,_,u=(o=(t=n).message,r=t.logLevel,i=t.tags,a=t.timestamp,t.id,s=nt(t,["message","logLevel","tags","timestamp","id"]),_=Object.assign({time:ot(a),logLevel:Jn[r],message:o,tags:i,laplaceSessionId:et},s),Xn(_)),c=function(e){for(var n=e.length,t=e.length-1;t>=0;t--){var o=e.charCodeAt(t);o>127&&o<=2047?n++:o>2047&&o<=65535&&(n+=2),o>=56320&&o<=57343&&t--}return n}(u),E=e[e.length-1];return E.currentSize+c>30720?e.push({messages:[u],ids:[n.id],currentSize:c}):(E.messages.push(u),E.ids.push(n.id),E.currentSize+=c),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:rt}}))};function at(e){return new globalThis.__$ZCB_GLOBAL_CACHE$__.Promise((function(n,t){e.oncomplete=e.onsuccess=function(){return n(e.result)},e.onabort=e.onerror=function(){return t(e.error)}}))}function st(e,n){var t=indexedDB.open(e);t.onupgradeneeded=function(){return t.result.createObjectStore(n)};var o=at(t);return function(e,t){return o.then((function(o){return t(o.transaction(n,e).objectStore(n))}))}}function _t(){return Qn||(Qn=st("keyval-store","keyval")),Qn}function ut(e,n){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:_t())("readwrite",(function(t){return t.put(n,e),at(t.transaction)}))}function ct(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:_t())("readwrite",(function(n){return e.forEach((function(e){return n.delete(e)})),at(n.transaction)}))}function Et(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:_t())("readwrite",(function(e){return e.clear(),at(e.transaction)}))}function lt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_t();return e("readonly",(function(n){if(n.getAll&&n.getAllKeys)return globalThis.__$ZCB_GLOBAL_CACHE$__.Promise.all([at(n.getAllKeys()),at(n.getAll())]).then((function(e){var n=_slicedToArray(e,2),t=n[0],o=n[1];return t.map((function(e,n){return[e,o[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())},at(e.transaction)}(e,(function(e){return t.push([e.key,e.value])})).then((function(){return t}))}))}))}var dt=function(e,n,t,o){return new(t||(t=globalThis.__$ZCB_GLOBAL_CACHE$__.Promise))((function(r,i){function a(e){try{_(o.next(e))}catch(e){i(e)}}function s(e){try{_(o.throw(e))}catch(e){i(e)}}function _(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}_((o=o.apply(e,n||[])).next())}))},St=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 globalThis.__$ZCB_GLOBAL_CACHE$__.Promise((function(t,o){n.queue.push((function(){return dt(n,void 0,void 0,_regeneratorRuntime().mark((function n(){var r;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,e();case 3:r=n.sent,t(r),n.next=10;break;case 7:n.prev=7,n.t0=n.catch(0),o(n.t0);case 10:case"end":return n.stop()}}),n,null,[[0,7]])})))})),n.processing||n.processNext()}))}},{key:"processNext",value:function(){return dt(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}()),ft=function(e,n,t,o){return new(t||(t=globalThis.__$ZCB_GLOBAL_CACHE$__.Promise))((function(r,i){function a(e){try{_(o.next(e))}catch(e){i(e)}}function s(e){try{_(o.throw(e))}catch(e){i(e)}}function _(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}_((o=o.apply(e,n||[])).next())}))},Rt=_createClass((function e(n){var t=this;_classCallCheck(this,e),this.set=function(e,n){try{return!t.disableDB&&St.enqueue((function(){return ft(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",ut(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 ft(t,void 0,void 0,_regeneratorRuntime().mark((function e(){var n,t,o,r,i,a=this;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,St.enqueue((function(){return ft(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",lt(this.store));case 1:case"end":return e.stop()}}),e,this)})))}));case 2:if(t=e.sent,o=t.filter((function(e){var n=_slicedToArray(e,2),t=n[0],o=n[1];return!(null==o?void 0:o.id)&&0!==(null==o?void 0:o.id)||!Number.isInteger(Number(t))})),r=o.map((function(e){return e[0]})),i=t.filter((function(e){var n=_slicedToArray(e,1)[0];return!r.includes(n)})).sort((function(e,n){var t,o;return(null===(t=e[1])||void 0===t?void 0:t.id)-(null===(o=n[1])||void 0===o?void 0:o.id)})).map((function(e){return _slicedToArray(e,2)[1]})),this.addToMemory(i,!0),!(r.length>0)){e.next=10;break}return e.next=10,this.deleteLogs(r);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 ft(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",St.enqueue((function(){return ft(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",ct(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 ft(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",ct(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=[],St.enqueue((function(){return ft(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",Et(this.store));case 1:case"end":return e.stop()}}),e,this)})))}))},this.nextId=0,this.memoryStoreData=[],this.disableDB=!1,St.enqueue((function(){return ft(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",st(n,n+"-store"));case 1:case"end":return e.stop()}}),e)})))})).then((function(e){t.store=e}))}));function It(e,n,t){var o=e.plugins;return Array.isArray(o)?o.map((function(e){return e[n]})).reduce((function(n,t){var o=null==t?void 0:t(e,n);return null!=o?o:n}),t):t}var Tt=function(e){return new globalThis.__$ZCB_GLOBAL_CACHE$__.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 o=t.status;n(o>=200&&o<300?{report:e.reportItem}:{error:"Request failed, status: ".concat(o,", responseText: ").concat(t.responseText),report:e.reportItem})}},Object.entries(e.headers).forEach((function(e){var n=_slicedToArray(e,2),o=n[0],r=n[1];r&&o&&t.setRequestHeader(o,r)})),t.send(e.data)}))},Ot="Expected a function",gt=NaN,Ct="[object Symbol]",pt=/^\\s+|\\s+$/g,At=/^[-+]0x[0-9a-f]+$/i,Dt=/^0b[01]+$/i,Nt=/^0o[0-7]+$/i,ht=parseInt,mt="object"==_typeof(g)&&g&&g.Object===Object&&g,vt="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self&&self.Object===Object&&self,yt=mt||vt||Function("return this")(),Pt=Object.prototype.toString,Lt=Math.max,bt=Math.min,wt=function(){return yt.Date.now()};function Mt(e,n,t){var o,r,i,a,s,_,u=0,c=!1,E=!1,l=!0;if("function"!=typeof e)throw new TypeError(Ot);function d(n){var t=o,i=r;return o=r=void 0,u=n,a=e.apply(i,t)}function S(e){var t=e-_;return void 0===_||t>=n||t<0||E&&e-u>=i}function f(){var e=wt();if(S(e))return R(e);s=setTimeout(f,function(e){var t=n-(e-_);return E?bt(t,i-(e-u)):t}(e))}function R(e){return s=void 0,l&&o?d(e):(o=r=void 0,a)}function I(){var e=wt(),t=S(e);if(o=arguments,r=this,_=e,t){if(void 0===s)return function(e){return u=e,s=setTimeout(f,n),c?d(e):a}(_);if(E)return s=setTimeout(f,n),d(_)}return void 0===s&&(s=setTimeout(f,n)),a}return n=Bt(n)||0,Ft(t)&&(c=!!t.leading,i=(E="maxWait"in t)?Lt(Bt(t.maxWait)||0,n):i,l="trailing"in t?!!t.trailing:l),I.cancel=function(){void 0!==s&&clearTimeout(s),u=0,o=_=r=s=void 0},I.flush=function(){return void 0===s?a:R(wt())},I}function Ft(e){var n=_typeof(e);return!!e&&("object"==n||"function"==n)}function Ut(e){return"symbol"==_typeof(e)||function(e){return!!e&&"object"==_typeof(e)}(e)&&Pt.call(e)==Ct}function Bt(e){if("number"==typeof e)return e;if(Ut(e))return gt;if(Ft(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=Ft(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(pt,"");var t=Dt.test(e);return t||Nt.test(e)?ht(e.slice(2),t?2:8):At.test(e)?gt:+e}var kt=function(e,n,t){var o=!0,r=!0;if("function"!=typeof e)throw new TypeError(Ot);return Ft(t)&&(o="leading"in t?!!t.leading:o,r="trailing"in t?!!t.trailing:r),Mt(e,n,{leading:o,maxWait:n,trailing:r})},xt=function(e,n,t,o){return new(t||(t=globalThis.__$ZCB_GLOBAL_CACHE$__.Promise))((function(r,i){function a(e){try{_(o.next(e))}catch(e){i(e)}}function s(e){try{_(o.throw(e))}catch(e){i(e)}}function _(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}_((o=o.apply(e,n||[])).next())}))},Vt={databaseName:"laplace-default-db"},Wt=function(e,n,t,o){var r=Date.now();return Object.assign({message:e,logLevel:t,tags:n,timestamp:r},o)},Gt=_createClass((function e(n){var t=this;_classCallCheck(this,e),this.cacheFilter=[],this.log=function(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Jn.log,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return xt(t,void 0,void 0,_regeneratorRuntime().mark((function t(){var i,a,s;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=[n,this.publicTags].flatMap((function(e){return e})),a=Wt(e,i,o,Object.assign(Object.assign({},this.publicAttributes),r)),(s=It(this,Zn.beforeLog,a)).id=this.idbManager.makeNextId(),this.idbManager.addLog(s),It(this,Zn.afterLog,s);case 6:case"end":return t.stop()}}),t,this)})))},this.deleteLog=function(e,n){if(!Array.isArray(n)||(t.idbManager.deleteLogs(n),e)){var o=t.idbManager.filterStore(e).map((function(e){return e.id}));t.idbManager.deleteLogs(o)}},this.deleteAll=function(){t.idbManager.reset()},this.getLogs=function(e){return t.idbManager.filterStore(e)},this.setReportUrl=function(e){t.reportUrl=e},this.throttleReport=kt((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 xt(t,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,o=this;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t=function(){return xt(o,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,o,r;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 o=It(this,Zn.beforeReport,t),r=it(o),n.abrupt("return",this.commonReport(r));case 6:case"end":return n.stop()}}),n,this)})))},St.enqueue(t);case 2:case"end":return n.stop()}}),n)})))},this.directReport=function(e,n){var o,r,i,a,s=null!==(o=n.sampleRate)&&void 0!==o?o:1;if(!(Math.random()>s))return a=n.useRawData?e:Object.assign({message:e,time:ot(Date.now()),tags:[].concat(_toConsumableArray(null!==(r=null==n?void 0:n.tags)&&void 0!==r?r:[]),_toConsumableArray(t.publicTags)),logLevel:null!==(i=null==n?void 0:n.logLevel)&&void 0!==i?i:Jn.log,laplaceSessionId:et},t.publicAttributes),t.commonReport([{messages:a,meta:rt}],!1)},this.commonReport=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t.reportUrl)return globalThis.__$ZCB_GLOBAL_CACHE$__.Promise.all(e.map((function(e){return{url:t.reportUrl,type:"POST",withCredentials:!1,headers:{},data:Xn({messages:e.messages,meta:e.meta}),reportItem:e}})).map(Tt)).then((function(e){var o=e.filter((function(e){return!e.error})).flatMap((function(e){return e.report.ids}));if(It(t,Zn.afterReport,{removeIds:o}),n)return t.idbManager.deleteLogsAfterReport(o)}))};var o=n.databaseName,r=n.reportUrl,i=void 0===r?"":r,a=n.plugins,s=void 0===a?[]:a,_=n.idbManager,u=n.publicTags,c=void 0===u?[]:u,E=n.publicAttributes,l=void 0===E?{}:E;this.databaseName=o,this.reportUrl=i,this.plugins=s,this.idbManager=_,this.publicTags=c,this.publicAttributes=l,It(this,Zn.afterInit)}));Gt.init=function(e){return xt(void 0,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,o;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.databaseName,o=new Rt(void 0===t?"laplace-default-db":t),n.next=4,o.syncFromIDB();case 4:return n.abrupt("return",new Gt(Object.assign(Object.assign(Object.assign({},Vt),e),{idbManager:o})));case 5:case"end":return n.stop()}}),n)})))};var Ht,Yt,Jt={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}},Zt=(null===globalThis||void 0===globalThis?void 0:globalThis.ZMCoBrowsingConfig)||{},jt={enable:Zt.enableZCBClientLog,gatewayEndPoint:Zt.gatewayEndPoint},zt=function(){var e,n=null!==(e=jt.gatewayEndPoint)&&void 0!==e?e:Jt.gatewayEndPoint;return n||""}(),Kt=Jt,Xt=(Ht="",Yt=void 0,{setDynamicReportUrl:function(e){Ht=e},getDynamicReportUrl:function(){return Ht},getCurrentReportUrl:function(){return Ht||zt},setDynamicLaplaceEnabled:function(e){Yt=e},getDynamicLaplaceEnabled:function(){return Yt}}),qt=function(){return void 0!==Xt.getDynamicLaplaceEnabled()?Xt.getDynamicLaplaceEnabled():!!(null!==(e=jt.enable)&&void 0!==e?e:null==Jt?void 0:Jt.enable);var e},$t="__lodash_hash_undefined__",Qt=9007199254740991,eo="[object Arguments]",no="[object Function]",to="[object GeneratorFunction]",oo="[object Symbol]",ro=/^\\[object .+?Constructor\\]$/,io=/^(?:0|[1-9]\\d*)$/,ao="object"==_typeof(g)&&g&&g.Object===Object&&g,so="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self&&self.Object===Object&&self,_o=ao||so||Function("return this")();function uo(e,n){return!!(e?e.length:0)&&function(e,n,t){if(n!=n)return function(e,n,t,o){var r=e.length,i=t+(o?1:-1);for(;o?i--:++i<r;)if(n(e[i],i,e))return i;return-1}(e,So,t);var o=t-1,r=e.length;for(;++o<r;)if(e[o]===n)return o;return-1}(e,n,0)>-1}function co(e,n,t){for(var o=-1,r=e?e.length:0;++o<r;)if(t(n,e[o]))return!0;return!1}function Eo(e,n){for(var t=-1,o=e?e.length:0,r=Array(o);++t<o;)r[t]=n(e[t],t,e);return r}function lo(e,n){for(var t=-1,o=n.length,r=e.length;++t<o;)e[r+t]=n[t];return e}function So(e){return e!=e}function fo(e,n){return e.has(n)}function Ro(e,n){return function(t){return e(n(t))}}var Io,To=Array.prototype,Oo=Function.prototype,go=Object.prototype,Co=_o["__core-js_shared__"],po=(Io=/[^.]+$/.exec(Co&&Co.keys&&Co.keys.IE_PROTO||""))?"Symbol(src)_1."+Io:"",Ao=Oo.toString,Do=go.hasOwnProperty,No=go.toString,ho=RegExp("^"+Ao.call(Do).replace(/[\\\\^$.*+?()[\\]{}|]/g,"\\\\$&").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,"$1.*?")+"$"),mo=_o.Symbol,vo=Ro(Object.getPrototypeOf,Object),yo=go.propertyIsEnumerable,Po=To.splice,Lo=mo?mo.isConcatSpreadable:void 0,bo=Object.getOwnPropertySymbols,wo=Math.max,Mo=jo(_o,"Map"),Fo=jo(Object,"create");function Uo(e){var n=-1,t=e?e.length:0;for(this.clear();++n<t;){var o=e[n];this.set(o[0],o[1])}}function Bo(e){var n=-1,t=e?e.length:0;for(this.clear();++n<t;){var o=e[n];this.set(o[0],o[1])}}function ko(e){var n=-1,t=e?e.length:0;for(this.clear();++n<t;){var o=e[n];this.set(o[0],o[1])}}function xo(e){var n=-1,t=e?e.length:0;for(this.__data__=new ko;++n<t;)this.add(e[n])}function Vo(e,n){var t=tr(e)||Qo(e)?function(e,n){for(var t=-1,o=Array(e);++t<e;)o[t]=n(t);return o}(e.length,String):[],o=t.length,r=!!o;for(var i in e)!n&&!Do.call(e,i)||r&&("length"==i||qo(i,o))||t.push(i);return t}function Wo(e,n){for(var t,o,r=e.length;r--;)if((t=e[r][0])===(o=n)||t!=t&&o!=o)return r;return-1}function Go(e,n,t,o,r){var i=-1,a=e.length;for(t||(t=Xo),r||(r=[]);++i<a;){var s=e[i];n>0&&t(s)?n>1?Go(s,n-1,t,o,r):lo(r,s):o||(r[r.length]=s)}return r}function Ho(e){if(!ir(e)||(n=e,po&&po in n))return!1;var n,t=rr(e)||function(e){var n=!1;if(null!=e&&"function"!=typeof e.toString)try{n=!!(e+"")}catch(e){}return n}(e)?ho:ro;return t.test(function(e){if(null!=e){try{return Ao.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function Yo(e){if(!ir(e))return function(e){var n=[];if(null!=e)for(var t in Object(e))n.push(t);return n}(e);var n,t,o,r=(t=(n=e)&&n.constructor,o="function"==typeof t&&t.prototype||go,n===o),i=[];for(var a in e)("constructor"!=a||!r&&Do.call(e,a))&&i.push(a);return i}function Jo(e){return function(e,n,t){var o=n(e);return tr(e)?o:lo(o,t(e))}(e,sr,Ko)}function Zo(e,n){var t,o,r=e.__data__;return("string"==(o=_typeof(t=n))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==t:null===t)?r["string"==typeof n?"string":"hash"]:r.map}function jo(e,n){var t=function(e,n){return null==e?void 0:e[n]}(e,n);return Ho(t)?t:void 0}Uo.prototype.clear=function(){this.__data__=Fo?Fo(null):{}},Uo.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Uo.prototype.get=function(e){var n=this.__data__;if(Fo){var t=n[e];return t===$t?void 0:t}return Do.call(n,e)?n[e]:void 0},Uo.prototype.has=function(e){var n=this.__data__;return Fo?void 0!==n[e]:Do.call(n,e)},Uo.prototype.set=function(e,n){return this.__data__[e]=Fo&&void 0===n?$t:n,this},Bo.prototype.clear=function(){this.__data__=[]},Bo.prototype.delete=function(e){var n=this.__data__,t=Wo(n,e);return!(t<0)&&(t==n.length-1?n.pop():Po.call(n,t,1),!0)},Bo.prototype.get=function(e){var n=this.__data__,t=Wo(n,e);return t<0?void 0:n[t][1]},Bo.prototype.has=function(e){return Wo(this.__data__,e)>-1},Bo.prototype.set=function(e,n){var t=this.__data__,o=Wo(t,e);return o<0?t.push([e,n]):t[o][1]=n,this},ko.prototype.clear=function(){this.__data__={hash:new Uo,map:new(Mo||Bo),string:new Uo}},ko.prototype.delete=function(e){return Zo(this,e).delete(e)},ko.prototype.get=function(e){return Zo(this,e).get(e)},ko.prototype.has=function(e){return Zo(this,e).has(e)},ko.prototype.set=function(e,n){return Zo(this,e).set(e,n),this},xo.prototype.add=xo.prototype.push=function(e){return this.__data__.set(e,$t),this},xo.prototype.has=function(e){return this.__data__.has(e)};var zo=bo?Ro(bo,Object):_r,Ko=bo?function(e){for(var n=[];e;)lo(n,zo(e)),e=vo(e);return n}:_r;function Xo(e){return tr(e)||Qo(e)||!!(Lo&&e&&e[Lo])}function qo(e,n){return!!(n=null==n?Qt:n)&&("number"==typeof e||io.test(e))&&e>-1&&e%1==0&&e<n}function $o(e){if("string"==typeof e||function(e){return"symbol"==_typeof(e)||ar(e)&&No.call(e)==oo}(e))return e;var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n}function Qo(e){return function(e){return ar(e)&&or(e)}(e)&&Do.call(e,"callee")&&(!yo.call(e,"callee")||No.call(e)==eo)}var er,nr,tr=Array.isArray;function or(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Qt}(e.length)&&!rr(e)}function rr(e){var n=ir(e)?No.call(e):"";return n==no||n==to}function ir(e){var n=_typeof(e);return!!e&&("object"==n||"function"==n)}function ar(e){return!!e&&"object"==_typeof(e)}function sr(e){return or(e)?Vo(e,!0):Yo(e)}function _r(){return[]}er=function(e,n){return null==e?{}:(n=Eo(Go(n,1),$o),function(e,n){return function(e,n,t){for(var o=-1,r=n.length,i={};++o<r;){var a=n[o],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,o){var r,i=-1,a=uo,s=!0,_=e.length,u=[],c=n.length;if(!_)return u;t&&(n=Eo(n,(r=t,function(e){return r(e)}))),o?(a=co,s=!1):n.length>=200&&(a=fo,s=!1,n=new xo(n));e:for(;++i<_;){var E=e[i],l=t?t(E):E;if(E=o||0!==E?E:0,s&&l==l){for(var d=c;d--;)if(n[d]===l)continue e;u.push(E)}else a(n,l,o)||u.push(E)}return u}(Jo(e),n)))},nr=wo(void 0===nr?er.length-1:nr,0);(new Date).getTime();var ur=[],cr={log:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Jn.log,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Kn(void 0,void 0,void 0,_regeneratorRuntime().mark((function r(){return _regeneratorRuntime().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:ur.push({message:e,tag:n,logLevel:t,extraProperties:Object.assign({timestamp:Date.now()},o)});case 1:case"end":return r.stop()}}),r)})))},reportByFilter:function(e){},directReport:function(e,n){},getLogs:function(e){},setReportUrl:function(e){Xt.setDynamicReportUrl(e)}};function Er(e,n){var t=(65535&e)+(65535&n);return(e>>16)+(n>>16)+(t>>16)<<16|65535&t}function lr(e,n,t,o,r,i){return Er((a=Er(Er(n,e),Er(o,i)))<<(s=r)|a>>>32-s,t);var a,s}function dr(e,n,t,o,r,i,a){return lr(n&t|~n&o,e,n,r,i,a)}function Sr(e,n,t,o,r,i,a){return lr(n&o|t&~o,e,n,r,i,a)}function fr(e,n,t,o,r,i,a){return lr(n^t^o,e,n,r,i,a)}function Rr(e,n,t,o,r,i,a){return lr(t^(n|~o),e,n,r,i,a)}function Ir(e,n){var t,o,r,i,a;e[n>>5]|=128<<n%32,e[14+(n+64>>>9<<4)]=n;var s=1732584193,_=-271733879,u=-1732584194,c=271733878;for(t=0;t<e.length;t+=16)o=s,r=_,i=u,a=c,s=dr(s,_,u,c,e[t],7,-680876936),c=dr(c,s,_,u,e[t+1],12,-389564586),u=dr(u,c,s,_,e[t+2],17,606105819),_=dr(_,u,c,s,e[t+3],22,-1044525330),s=dr(s,_,u,c,e[t+4],7,-176418897),c=dr(c,s,_,u,e[t+5],12,1200080426),u=dr(u,c,s,_,e[t+6],17,-1473231341),_=dr(_,u,c,s,e[t+7],22,-45705983),s=dr(s,_,u,c,e[t+8],7,1770035416),c=dr(c,s,_,u,e[t+9],12,-1958414417),u=dr(u,c,s,_,e[t+10],17,-42063),_=dr(_,u,c,s,e[t+11],22,-1990404162),s=dr(s,_,u,c,e[t+12],7,1804603682),c=dr(c,s,_,u,e[t+13],12,-40341101),u=dr(u,c,s,_,e[t+14],17,-1502002290),s=Sr(s,_=dr(_,u,c,s,e[t+15],22,1236535329),u,c,e[t+1],5,-165796510),c=Sr(c,s,_,u,e[t+6],9,-1069501632),u=Sr(u,c,s,_,e[t+11],14,643717713),_=Sr(_,u,c,s,e[t],20,-373897302),s=Sr(s,_,u,c,e[t+5],5,-701558691),c=Sr(c,s,_,u,e[t+10],9,38016083),u=Sr(u,c,s,_,e[t+15],14,-660478335),_=Sr(_,u,c,s,e[t+4],20,-405537848),s=Sr(s,_,u,c,e[t+9],5,568446438),c=Sr(c,s,_,u,e[t+14],9,-1019803690),u=Sr(u,c,s,_,e[t+3],14,-187363961),_=Sr(_,u,c,s,e[t+8],20,1163531501),s=Sr(s,_,u,c,e[t+13],5,-1444681467),c=Sr(c,s,_,u,e[t+2],9,-51403784),u=Sr(u,c,s,_,e[t+7],14,1735328473),s=fr(s,_=Sr(_,u,c,s,e[t+12],20,-1926607734),u,c,e[t+5],4,-378558),c=fr(c,s,_,u,e[t+8],11,-2022574463),u=fr(u,c,s,_,e[t+11],16,1839030562),_=fr(_,u,c,s,e[t+14],23,-35309556),s=fr(s,_,u,c,e[t+1],4,-1530992060),c=fr(c,s,_,u,e[t+4],11,1272893353),u=fr(u,c,s,_,e[t+7],16,-155497632),_=fr(_,u,c,s,e[t+10],23,-1094730640),s=fr(s,_,u,c,e[t+13],4,681279174),c=fr(c,s,_,u,e[t],11,-358537222),u=fr(u,c,s,_,e[t+3],16,-722521979),_=fr(_,u,c,s,e[t+6],23,76029189),s=fr(s,_,u,c,e[t+9],4,-640364487),c=fr(c,s,_,u,e[t+12],11,-421815835),u=fr(u,c,s,_,e[t+15],16,530742520),s=Rr(s,_=fr(_,u,c,s,e[t+2],23,-995338651),u,c,e[t],6,-198630844),c=Rr(c,s,_,u,e[t+7],10,1126891415),u=Rr(u,c,s,_,e[t+14],15,-1416354905),_=Rr(_,u,c,s,e[t+5],21,-57434055),s=Rr(s,_,u,c,e[t+12],6,1700485571),c=Rr(c,s,_,u,e[t+3],10,-1894986606),u=Rr(u,c,s,_,e[t+10],15,-1051523),_=Rr(_,u,c,s,e[t+1],21,-2054922799),s=Rr(s,_,u,c,e[t+8],6,1873313359),c=Rr(c,s,_,u,e[t+15],10,-30611744),u=Rr(u,c,s,_,e[t+6],15,-1560198380),_=Rr(_,u,c,s,e[t+13],21,1309151649),s=Rr(s,_,u,c,e[t+4],6,-145523070),c=Rr(c,s,_,u,e[t+11],10,-1120210379),u=Rr(u,c,s,_,e[t+2],15,718787259),_=Rr(_,u,c,s,e[t+9],21,-343485551),s=Er(s,o),_=Er(_,r),u=Er(u,i),c=Er(c,a);return[s,_,u,c]}function Tr(e){var n,t="",o=32*e.length;for(n=0;n<o;n+=8)t+=String.fromCharCode(e[n>>5]>>>n%32&255);return t}function Or(e){var n,t=[];for(t[(e.length>>2)-1]=void 0,n=0;n<t.length;n+=1)t[n]=0;var o=8*e.length;for(n=0;n<o;n+=8)t[n>>5]|=(255&e.charCodeAt(n/8))<<n%32;return t}function gr(e){var n,t,o="0123456789abcdef",r="";for(t=0;t<e.length;t+=1)n=e.charCodeAt(t),r+=o.charAt(n>>>4&15)+o.charAt(15&n);return r}function Cr(e){return unescape(encodeURIComponent(e))}function pr(e){return function(e){return Tr(Ir(Or(e),8*e.length))}(Cr(e))}function Ar(e,n){return function(e,n){var t,o,r=Or(e),i=[],a=[];for(i[15]=a[15]=void 0,r.length>16&&(r=Ir(r,8*e.length)),t=0;t<16;t+=1)i[t]=909522486^r[t],a[t]=1549556828^r[t];return o=Ir(i.concat(Or(n)),512+8*n.length),Tr(Ir(a.concat(o),640))}(Cr(e),Cr(n))}function Dr(e,n,t){return n?t?Ar(n,e):function(e,n){return gr(Ar(e,n))}(n,e):t?pr(e):gr(pr(e))}var Nr=function(e){return Boolean(null==e?void 0:e.log)},hr=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,o=e.zmTrackingId;this.ZCB_ZmTrackingIds={zmWebTrackingId:n,zmChsTrackingId:t,zmTrackingId:o}}},{key:"genZmTrackingId",value:function(){var e=_e(),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 o=parseInt(t[0])+1,r=n.substring(0,t.index)+o;return this.ZCB_ZmTrackingIds&&(this.ZCB_ZmTrackingIds.zmChsTrackingId=r),r}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 o=parseInt(t[0])+1,r=n.substring(0,t.index)+o;return this.ZCB_ZmTrackingIds&&(this.ZCB_ZmTrackingIds.zmWebTrackingId=r),r}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}(),vr=globalThis.ZCB_TrackingIdController||new mr;globalThis.ZCB_TrackingIdController=vr;function yr(e){if("object"===("undefined"==typeof window?"undefined":_typeof(window))){var n=encodeURI(e);return btoa(n)}return Buffer.from(e).toString("base64")}var Pr,Lr,br,wr,Mr,Fr,Ur=function(e){return yr(e)},Br=function(){function e(n){var t=n.requestOrigin,o=n.parentFrameId;_classCallCheck(this,e),this.parentFrameId=o;var r=Ur(t);o&&(r=o+"--"+r),this.frameId=r}return _createClass(e,[{key:"equal",value:function(e){var n=e.requestOrigin,t=e.parentFrameId;return t===this.parentFrameId&&this.frameId===t+"--"+Ur(n)}},{key:"isParentFrame",value:function(e){return this.frameId===e}},{key:"isSubFrame",value:function(e){return this.parentFrameId===e}}]),e}(),kr=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,o=null;return this.frames.forEach((function(e){e.equal({requestOrigin:n,parentFrameId:t})&&(o=e)})),o}},{key:"checkAddFrame",value:function(e){var n=this,t=e.requestOrigin,o=e.parentFrameId,r=this.getFrame({requestOrigin:t,parentFrameId:o});if(r)return r;if(this.tabId===o)return this.addFrame({requestOrigin:t,parentFrameId:o});var i=null;return this.frames.forEach((function(e){i||e.isParentFrame(o)&&(i=n.addFrame({requestOrigin:t,parentFrameId:o}))})),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,o=new Br({requestOrigin:n,parentFrameId:t});return this.frames.set(o.frameId,o),o}}]),e}(),xr=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,o="";return t?(this.tabs.forEach((function(e){if(!o){var r=e.checkAddFrame({requestOrigin:n,parentFrameId:t});r&&(o=r.frameId)}})),o):this.tabs.size?(this.tabs.forEach((function(e,n){o||(o=n)})),o):(o=Ur(n),this.tabs.set(o,new kr(o)),o)}},{key:"makeViewerRequest",value:function(e){var n=e.parentFrameId,t="";return this.tabs.forEach((function(e){var o;if(n){if(t)return;var r=e.getSubFrames(n);t=(null===(o=r[0])||void 0===o?void 0:o.frameId)||""}else t=e.tabId})),t}}]),e}(),Vr=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,o=e.parentFrameId,r=e.isViewer;this.rooms.get(n)||this.rooms.set(n,new xr);var i=this.rooms.get(n);return i?r?i.makeViewerRequest({parentFrameId:o}):i.makeRequest({requestOrigin:t,parentFrameId:o}):""}}]),e}());"undefined"!=typeof global&&(global.cpsRoomManager=Vr),function(e){e.UNKNOW="unknow",e.BROWSER="browser",e.BROWSER_WORKER="worker",e.NODE="node",e.NODE_WORKER="node_worker"}(Pr||(Pr={})),Lr="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,br="undefined"!=typeof window,wr="function"==typeof importScripts,Mr=Lr&&!wr,Fr=!Lr&&!br,wr?Pr.BROWSER_WORKER:br?Pr.BROWSER:Fr?Pr.NODE:Mr?Pr.NODE_WORKER:Pr.UNKNOW;var Wr=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}(),Gr="function",Hr="object",Yr="string",Jr="model",Zr="name",jr="type",zr="vendor",Kr="version",Xr="architecture",qr="hardwareConcurrency",$r="console",Qr="mobile",ei="tablet",ni="smarttv",ti="wearable",oi="Amazon",ri="Apple",ii="ASUS",ai="BlackBerry",si="Browser",_i="Chrome",ui="Firefox",ci="Google",Ei="Huawei",li="LG",di="Microsoft",Si="Motorola",fi="Opera",Ri="Samsung",Ii="Sharp",Ti="Sony",Oi="Xiaomi",gi="Zebra",Ci="Facebook",pi={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"},Ai=function(e){return e.toLowerCase()},Di=function(e,n){return _typeof(e)===Yr&&-1!==Ai(n).indexOf(Ai(e))},Ni=function(e,n){return _typeof(e)===Yr?(e=e.replace(/^\\s\\s*/,""),"undefined"===_typeof(n)?e:e.substring(0,350)):""},hi=function(e,n){for(var t in n)if(_typeof(n[t])===Hr&&n[t].length>0){for(var o=0;o<n[t].length;o++)if(Di(n[t][o],e))return"?"===t?void 0:t}else if(Di(n[t],e))return"?"===t?void 0:t;return e},mi={browser:[[/(ZoomApps)\\/([\\w\\.]+)/i],[Zr,Kr],[/\\b(?:crmo|crios)\\/([\\w\\.]+)/i],[Kr,[Zr,"Chrome"]],[/edg(?:e|ios|a)?\\/([\\w\\.]+)/i],[Kr,[Zr,"Edge"]],[/(opera mini)\\/([-\\w\\.]+)/i,/(opera [mobiletab]{3,6})\\b.+version\\/([-\\w\\.]+)/i,/(opera)(?:.+version\\/|[\\/ ]+)([\\w\\.]+)/i],[Zr,Kr],[/opios[\\/ ]+([\\w\\.]+)/i],[Kr,[Zr,fi+" Mini"]],[/\\bopr\\/([\\w\\.]+)/i],[Kr,[Zr,fi]],[/(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],[Zr,Kr],[/(?:\\buc? ?browser|(?:juc.+)ucweb)[\\/ ]?([\\w\\.]+)/i],[Kr,[Zr,"UC"+si]],[/microm.+\\bqbcore\\/([\\w\\.]+)/i,/\\bqbcore\\/([\\w\\.]+).+microm/i],[Kr,[Zr,"WeChat(Win) Desktop"]],[/micromessenger\\/([\\w\\.]+)/i],[Kr,[Zr,"WeChat"]],[/konqueror\\/([\\w\\.]+)/i],[Kr,[Zr,"Konqueror"]],[/trident.+rv[: ]([\\w\\.]{1,9})\\b.+like gecko/i],[Kr,[Zr,"IE"]],[/yabrowser\\/([\\w\\.]+)/i],[Kr,[Zr,"Yandex"]],[/(avast|avg)\\/([\\w\\.]+)/i],[[Zr,/(.+)/,"$1 Secure "+si],Kr],[/\\bfocus\\/([\\w\\.]+)/i],[Kr,[Zr,ui+" Focus"]],[/\\bopt\\/([\\w\\.]+)/i],[Kr,[Zr,fi+" Touch"]],[/coc_coc\\w+\\/([\\w\\.]+)/i],[Kr,[Zr,"Coc Coc"]],[/dolfin\\/([\\w\\.]+)/i],[Kr,[Zr,"Dolphin"]],[/coast\\/([\\w\\.]+)/i],[Kr,[Zr,fi+" Coast"]],[/miuibrowser\\/([\\w\\.]+)/i],[Kr,[Zr,"MIUI "+si]],[/fxios\\/([-\\w\\.]+)/i],[Kr,[Zr,ui]],[/\\bqihu|(qi?ho?o?|360)browser/i],[[Zr,"360 "+si]],[/(oculus|samsung|sailfish|huawei)browser\\/([\\w\\.]+)/i],[[Zr,/(.+)/,"$1 "+si],Kr],[/(comodo_dragon)\\/([\\w\\.]+)/i],[[Zr,/_/g," "],Kr],[/(electron)\\/([\\w\\.]+) safari/i,/(tesla)(?: qtcarbrowser|\\/(20\\d\\d\\.[-\\w\\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\\/ ]?([\\w\\.]+)/i],[Zr,Kr],[/(metasr)[\\/ ]?([\\w\\.]+)/i,/(lbbrowser)/i,/\\[(linkedin)app\\]/i],[Zr],[/((?:fban\\/fbios|fb_iab\\/fb4a)(?!.+fbav)|;fbav\\/([\\w\\.]+);)/i],[[Zr,Ci],Kr],[/safari (line)\\/([\\w\\.]+)/i,/\\b(line)\\/([\\w\\.]+)\\/iab/i,/(chromium|instagram)[\\/ ]([-\\w\\.]+)/i],[Zr,Kr],[/\\bgsa\\/([\\w\\.]+) .*safari\\//i],[Kr,[Zr,"GSA"]],[/headlesschrome(?:\\/([\\w\\.]+)| )/i],[Kr,[Zr,_i+" Headless"]],[/ wv\\).+(chrome)\\/([\\w\\.]+)/i],[[Zr,_i+" WebView"],Kr],[/droid.+ version\\/([\\w\\.]+)\\b.+(?:mobile safari|safari)/i],[Kr,[Zr,"Android "+si]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\\/v?([\\w\\.]+)/i],[Zr,Kr],[/version\\/([\\w\\.\\,]+) .*mobile\\/\\w+ (safari)/i],[Kr,[Zr,"Mobile Safari"]],[/version\\/([\\w(\\.|\\,)]+) .*(mobile ?safari|safari)/i],[Kr,Zr],[/webkit.+?(mobile ?safari|safari)(\\/[\\w\\.]+)/i],[Zr,[Kr,hi,{"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],[Zr,Kr],[/(navigator|netscape\\d?)\\/([-\\w\\.]+)/i],[[Zr,"Netscape"],Kr],[/mobile vr; rv:([\\w\\.]+)\\).+firefox/i],[Kr,[Zr,ui+" 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],[Zr,Kr],[/(cobalt)\\/([\\w\\.]+)/i],[Zr,[Kr,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\\)]/i],[[Xr,"amd64"]],[/(ia32(?=;))/i],[[Xr,Ai]],[/((?:i[346]|x)86)[;\\)]/i],[[Xr,"ia32"]],[/\\b(aarch64|arm(v?8e?l?|_?64))\\b/i],[[Xr,"arm64"]],[/\\b(arm(?:v[67])?ht?n?[fl]p?)\\b/i],[[Xr,"armhf"]],[/windows (ce|mobile); ppc;/i],[[Xr,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\\))/i],[[Xr,/ower/,"",Ai]],[/(sun4\\w)[;\\)]/i],[[Xr,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\\))|\\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\\b|pa-risc)/i],[[Xr,Ai]]],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],[Jr,[zr,Ri],[jr,ei]],[/\\b((?:s[cgp]h|gt|sm)-\\w+|galaxy nexus)/i,/samsung[- ]([-\\w]+)/i,/sec-(sgh\\w+)/i],[Jr,[zr,Ri],[jr,Qr]],[/((ipod|iphone)\\d+,\\d+)/i],[Jr,[zr,ri],[jr,Qr]],[/(ipad\\d+,\\d+)/i],[Jr,[zr,ri],[jr,ei]],[/\\((ip(?:hone|od)[\\w ]*);/i],[Jr,[zr,ri],[jr,Qr]],[/\\((ipad);[-\\w\\),; ]+apple/i,/applecoremedia\\/[\\w\\.]+ \\((ipad)/i,/\\b(ipad)\\d\\d?,\\d\\d?[;\\]].+ios/i],[Jr,[zr,ri],[jr,ei]],[/(macintosh);/i],[Jr,[zr,ri]],[/\\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\\d{2})\\b(?!.+d\\/s)/i],[Jr,[zr,Ei],[jr,ei]],[/(?:huawei|honor)([-\\w ]+)[;\\)]/i,/\\b(nexus 6p|\\w{2,4}e?-[atu]?[ln][\\dx][012359c][adn]?)\\b(?!.+d\\/s)/i],[Jr,[zr,Ei],[jr,Qr]],[/\\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],[[Jr,/_/g," "],[zr,Oi],[jr,Qr]],[/\\b(mi[-_ ]?(?:pad)(?:[\\w_ ]+))(?: bui|\\))/i],[[Jr,/_/g," "],[zr,Oi],[jr,ei]],[/; (\\w+) bui.+ oppo/i,/\\b(cph[12]\\d{3}|p(?:af|c[al]|d\\w|e[ar])[mt]\\d0|x9007|a101op)\\b/i],[Jr,[zr,"OPPO"],[jr,Qr]],[/vivo (\\w+)(?: bui|\\))/i,/\\b(v[12]\\d{3}\\w?[at])(?: bui|;)/i],[Jr,[zr,"Vivo"],[jr,Qr]],[/\\b(rmx[12]\\d{3})(?: bui|;|\\))/i],[Jr,[zr,"Realme"],[jr,Qr]],[/\\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],[Jr,[zr,Si],[jr,Qr]],[/\\b(mz60\\d|xoom[2 ]{0,2}) build\\//i],[Jr,[zr,Si],[jr,ei]],[/((?=lg)?[vl]k\\-?\\d{3}) bui| 3\\.[-\\w; ]{10}lg?-([06cv9]{3,4})/i],[Jr,[zr,li],[jr,ei]],[/(lm(?:-?f100[nv]?|-[\\w\\.]+)(?= bui|\\))|nexus [45])/i,/\\blg[-e;\\/ ]+((?!browser|netcast|android tv)\\w+)/i,/\\blg-?([\\d\\w]+) bui/i],[Jr,[zr,li],[jr,Qr]],[/(ideatab[-\\w ]+)/i,/lenovo ?(s[56]000[-\\w]+|tab(?:[\\w ]+)|yt[-\\d\\w]{6}|tb[-\\d\\w]{6})/i],[Jr,[zr,"Lenovo"],[jr,ei]],[/(?:maemo|nokia).*(n900|lumia \\d+)/i,/nokia[-_ ]?([-\\w\\.]*)/i],[[Jr,/_/g," "],[zr,"Nokia"],[jr,Qr]],[/(pixel c)\\b/i],[Jr,[zr,ci],[jr,ei]],[/droid.+; (pixel[\\daxl ]{0,6})(?: bui|\\))/i],[Jr,[zr,ci],[jr,Qr]],[/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],[Jr,[zr,Ti],[jr,Qr]],[/sony tablet [ps]/i,/\\b(?:sony)?sgp\\w+(?: bui|\\))/i],[[Jr,"Xperia Tablet"],[zr,Ti],[jr,ei]],[/ (kb2005|in20[12]5|be20[12][59])\\b/i,/(?:one)?(?:plus)? (a\\d0\\d\\d)(?: b|\\))/i],[Jr,[zr,"OnePlus"],[jr,Qr]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\\))/i,/(kf[a-z]+)( bui|\\)).+silk\\//i],[Jr,[zr,oi],[jr,ei]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\\)).+silk\\//i],[[Jr,/(.+)/g,"Fire Phone $1"],[zr,oi],[jr,Qr]],[/(playbook);[-\\w\\),; ]+(rim)/i],[Jr,zr,[jr,ei]],[/\\b((?:bb[a-f]|st[hv])100-\\d)/i,/\\(bb10; (\\w+)/i],[Jr,[zr,ai],[jr,Qr]],[/(?:\\b|asus_)(transfo[prime ]{4,10} \\w+|eeepc|slider \\w+|nexus 7|padfone|p00[cj])/i],[Jr,[zr,ii],[jr,ei]],[/ (z[bes]6[027][012][km][ls]|zenfone \\d\\w?)\\b/i],[Jr,[zr,ii],[jr,Qr]],[/(nexus 9)/i],[Jr,[zr,"HTC"],[jr,ei]],[/(htc)[-;_ ]{1,2}([\\w ]+(?=\\)| bui)|\\w+)/i,/(zte)[- ]([\\w ]+?)(?: bui|\\/|\\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\\w]*)/i],[zr,[Jr,/_/g," "],[jr,Qr]],[/droid.+; ([ab][1-7]-?[0178a]\\d\\d?)/i],[Jr,[zr,"Acer"],[jr,ei]],[/droid.+; (m[1-5] note) bui/i,/\\bmz-([-\\w]{2,})/i],[Jr,[zr,"Meizu"],[jr,Qr]],[/\\b(sh-?[altvz]?\\d\\d[a-ekm]?)/i],[Jr,[zr,Ii],[jr,Qr]],[/(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],[zr,Jr,[jr,Qr]],[/(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],[zr,Jr,[jr,ei]],[/(surface duo)/i],[Jr,[zr,di],[jr,ei]],[/droid [\\d\\.]+; (fp\\du?)(?: b|\\))/i],[Jr,[zr,"Fairphone"],[jr,Qr]],[/(u304aa)/i],[Jr,[zr,"AT&T"],[jr,Qr]],[/\\bsie-(\\w*)/i],[Jr,[zr,"Siemens"],[jr,Qr]],[/\\b(rct\\w+) b/i],[Jr,[zr,"RCA"],[jr,ei]],[/\\b(venue[\\d ]{2,7}) b/i],[Jr,[zr,"Dell"],[jr,ei]],[/\\b(q(?:mv|ta)\\w+) b/i],[Jr,[zr,"Verizon"],[jr,ei]],[/\\b(?:barnes[& ]+noble |bn[rt])([\\w\\+ ]*) b/i],[Jr,[zr,"Barnes & Noble"],[jr,ei]],[/\\b(tm\\d{3}\\w+) b/i],[Jr,[zr,"NuVision"],[jr,ei]],[/\\b(k88) b/i],[Jr,[zr,"ZTE"],[jr,ei]],[/\\b(nx\\d{3}j) b/i],[Jr,[zr,"ZTE"],[jr,Qr]],[/\\b(gen\\d{3}) b.+49h/i],[Jr,[zr,"Swiss"],[jr,Qr]],[/\\b(zur\\d{3}) b/i],[Jr,[zr,"Swiss"],[jr,ei]],[/\\b((zeki)?tb.*\\b) b/i],[Jr,[zr,"Zeki"],[jr,ei]],[/\\b([yr]\\d{2}) b/i,/\\b(dragon[- ]+touch |dt)(\\w{5}) b/i],[[zr,"Dragon Touch"],Jr,[jr,ei]],[/\\b(ns-?\\w{0,9}) b/i],[Jr,[zr,"Insignia"],[jr,ei]],[/\\b((nxa|next)-?\\w{0,9}) b/i],[Jr,[zr,"NextBook"],[jr,ei]],[/\\b(xtreme\\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[zr,"Voice"],Jr,[jr,Qr]],[/\\b(lvtel\\-)?(v1[12]) b/i],[[zr,"LvTel"],Jr,[jr,Qr]],[/\\b(ph-1) /i],[Jr,[zr,"Essential"],[jr,Qr]],[/\\b(v(100md|700na|7011|917g).*\\b) b/i],[Jr,[zr,"Envizen"],[jr,ei]],[/\\b(trio[-\\w\\. ]+) b/i],[Jr,[zr,"MachSpeed"],[jr,ei]],[/\\btu_(1491) b/i],[Jr,[zr,"Rotor"],[jr,ei]],[/(shield[\\w ]+) b/i],[Jr,[zr,"Nvidia"],[jr,ei]],[/(sprint) (\\w+)/i],[zr,Jr,[jr,Qr]],[/(kin\\.[onetw]{3})/i],[[Jr,/\\./g," "],[zr,di],[jr,Qr]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\\)/i],[Jr,[zr,gi],[jr,ei]],[/droid.+; (ec30|ps20|tc[2-8]\\d[kx])\\)/i],[Jr,[zr,gi],[jr,Qr]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[zr,Jr,[jr,$r]],[/droid.+; (shield) bui/i],[Jr,[zr,"Nvidia"],[jr,$r]],[/(playstation [345portablevi]+)/i],[Jr,[zr,Ti],[jr,$r]],[/\\b(xbox(?: one)?(?!; xbox))[\\); ]/i],[Jr,[zr,di],[jr,$r]],[/smart-tv.+(samsung)/i],[zr,[jr,ni]],[/hbbtv.+maple;(\\d+)/i],[[Jr,/^/,"SmartTV"],[zr,Ri],[jr,ni]],[/(nux; netcast.+smarttv|lg (netcast\\.tv-201\\d|android tv))/i],[[zr,li],[jr,ni]],[/(apple) ?tv/i],[zr,[Jr,ri+" TV"],[jr,ni]],[/crkey/i],[[Jr,_i+"cast"],[zr,ci],[jr,ni]],[/droid.+aft(\\w)( bui|\\))/i],[Jr,[zr,oi],[jr,ni]],[/\\(dtv[\\);].+(aquos)/i,/(aquos-tv[\\w ]+)\\)/i],[Jr,[zr,Ii],[jr,ni]],[/(bravia[\\w ]+)( bui|\\))/i],[Jr,[zr,Ti],[jr,ni]],[/(mitv-\\w{5}) bui/i],[Jr,[zr,Oi],[jr,ni]],[/\\b(roku)[\\dx]*[\\)\\/]((?:dvp-)?[\\d\\.]*)/i,/hbbtv\\/\\d+\\.\\d+\\.\\d+ +\\([\\w ]*; *(\\w[^;]*);([^;]*)/i],[[zr,Ni],[Jr,Ni],[jr,ni]],[/\\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\\b/i],[[jr,ni]],[/((pebble))app/i],[zr,Jr,[jr,ti]],[/droid.+; (glass) \\d/i],[Jr,[zr,ci],[jr,ti]],[/droid.+; (wt63?0{2,3})\\)/i],[Jr,[zr,gi],[jr,ti]],[/(quest( 2)?)/i],[Jr,[zr,Ci],[jr,ti]],[/(tesla)(?: qtcarbrowser|\\/[-\\w\\.]+)/i],[zr,[jr,"embedded"]],[/droid .+?; ([^;]+?)(?: bui|\\) applew).+? mobile safari/i],[Jr,[jr,Qr]],[/droid .+?; ([^;]+?)(?: bui|\\) applew).+?(?! mobile) safari/i],[Jr,[jr,ei]],[/\\b((tablet|tab)[;\\/]|focus\\/\\d(?!.+mobile))/i],[[jr,ei]],[/(phone|mobile(?:[;\\/]| [ \\w\\/\\.]*safari)|pda(?=.+windows ce))/i],[[jr,Qr]],[/(android[-\\w\\. ]{0,9});.+buil/i],[Jr,[zr,"Generic"]]],engine:[[/windows.+ edge\\/([\\w\\.]+)/i],[Kr,[Zr,"EdgeHTML"]],[/webkit\\/537\\.36.+chrome\\/(?!27)([\\w\\.]+)/i],[Kr,[Zr,"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],[Zr,Kr],[/rv\\:([\\w\\.]{1,9})\\b.+(gecko)/i],[Kr,Zr]],os:[[/microsoft (windows) (vista|xp)/i],[Zr,Kr],[/(windows) nt 6\\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\\/ ]?([\\d\\.\\w ]*)/i,/(windows)[\\/ ]?([ntce\\d\\. ]+\\w)(?!.+xbox)/i],[Zr,[Kr,hi,pi]],[/(win(?=3|9|n)|win 9x )([nt\\d\\.]+)/i],[[Zr,"Windows"],[Kr,hi,pi]],[/ip[honead]{2,4}\\b(?:.*os ([\\w]+) like mac|; opera)/i,/cfnetwork\\/.+darwin/i],[[Kr,/_/g,"."],[Zr,"iOS"]],[/(mac os x) ?([\\w\\. ]*)/i,/(macintosh|mac_powerpc\\b)(?!.+haiku)/i],[[Zr,"Mac OS"],[Kr,/_/g,"."]],[/droid ([\\w\\.]+)\\b.+(android[- ]x86|harmonyos)/i],[Kr,Zr],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\\/ ]?([\\w\\.]*)/i,/(blackberry)\\w*\\/([\\w\\.]*)/i,/(tizen|kaios)[\\/ ]([\\w\\.]+)/i,/\\((series40);/i],[Zr,Kr],[/\\(bb(10);/i],[Kr,[Zr,ai]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\\/ ]?([\\w\\.]*)/i],[Kr,[Zr,"Symbian"]],[/mozilla\\/[\\d\\.]+ \\((?:mobile|tablet|tv|mobile; [\\w ]+); rv:.+ gecko\\/([\\w\\.]+)/i],[Kr,[Zr,ui+" OS"]],[/web0s;.+rt(tv)/i,/\\b(?:hp)?wos(?:browser)?\\/([\\w\\.]+)/i],[Kr,[Zr,"webOS"]],[/crkey\\/([\\d\\.]+)/i],[Kr,[Zr,_i+"cast"]],[/(cros) [\\w]+ ([\\w\\.]+\\w)/i],[[Zr,"Chromium OS"],Kr],[/(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],[Zr,Kr],[/(sunos) ?([\\w\\.\\d]*)/i],[[Zr,"Solaris"],Kr],[/((?:open)?solaris)[-\\/ ]?([\\w\\.]*)/i,/(aix) ((\\d)(?=\\.|\\)| )[\\w\\.])*/i,/\\b(beos|os\\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\\w\\.]*)/i],[Zr,Kr]]},vi=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=mi}return _createClass(e,[{key:"rgxMapper",value:function(e,n){for(var t={},o=0,r=0,i=0,a=0,s=void 0,_=void 0,u=void 0;o<n.length&&!_;){var c=n[o],E=n[o+1];for(r=i=0;r<c.length&&!_;)if(_=c[r++].exec(e))for(a=0;a<E.length;a++)u=_[++i],_typeof(s=E[a])===Hr&&s.length>0?2===s.length?_typeof(s[1])==Gr?t[s[0]]=s[1](u):t[s[0]]=s[1]:3===s.length?_typeof(s[1])!==Gr||s[1].exec&&s[1].test?t[s[0]]=u?u.replace(s[1],s[2]):void 0:t[s[0]]=u?s[1](u,s[2]):void 0:4===s.length&&(t[s[0]]=u?s[3](u.replace(s[1],s[2])):void 0):t[s]=u||void 0;o+=2}return t}},{key:"getBrowser",value:function(){var e={};e[Zr]=void 0,e[Kr]=void 0;var n,t=this.rgxMapper(this.ua,this.regexes.browser);return e.major=_typeof(n=t.version)===Yr?n.replace(/[^\\d\\.]/g,"").split(".")[0]:void 0,Object.assign(e,t),e}},{key:"getCPU",value:function(){var e={};e[Xr]=void 0,e[qr]=this.navigator[qr];var n=this.rgxMapper(this.ua,this.regexes.cpu);return Object.assign(e,n),e}},{key:"getDevice",value:function(){var e={};e[zr]=void 0,e[Jr]=void 0,e[jr]=void 0;var n=this.rgxMapper(this.ua,this.regexes.device);return Object.assign(e,n),e}},{key:"getEngine",value:function(){var e={};e[Zr]=void 0,e[Kr]=void 0;var n=this.rgxMapper(this.ua,this.regexes.engine);return Object.assign(e,n),e}},{key:"getOS",value:function(){var e={};e[Zr]=void 0,e[Kr]=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)===Yr&&e.length>350?Ni(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}(),yi=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}()),Pi={log:new Wr(30),info:new Wr(30),debug:new Wr(30),warn:new Wr(30),error:new Wr(30)},Li=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":vr.getZmTrackingId()}catch(e){return console.error("error: ".concat(e)),vr.getZmTrackingId()}},bi=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"]},wi=function(){return Kn(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,Kn(void 0,void 0,void 0,_regeneratorRuntime().mark((function e(){var n,t,o,r,i,a,s,_,u,c;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(_=(new vi).getResult(),navigator){e.next=3;break}return e.abrupt("return",{});case 3:if(u=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===(o=navigator.connection)||void 0===o?void 0:o.effectiveType,rtt:null===(r=navigator.connection)||void 0===r?void 0:r.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},_),!(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:c=e.sent,u.os&&(u.os.version=c.platformVersion),u.cpu&&(u.cpu.architecture=c.architecture,u.cpu.bitness=c.bitness),u.mobile=c.mobile,u.userAgentData=JSON.stringify(c),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",u);case 19:case"end":return e.stop()}}),e,null,[[5,15]])})));case 2:n=e.sent,Bi(["navigator"]).logWithReport(JSON.stringify(n));case 4:case"end":return e.stop()}}),e)})))},Mi=function(e,n){var t=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=null,r=0;return function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];var _=Date.now();r||!1!==t.leading||(r=_);var u=n-(_-r),c=this;u<=0||u>n?(o&&(clearTimeout(o),o=null),r=_,e.apply(c,a)):o||!1===t.trailing||(o=setTimeout((function(){r=!1===t.leading?0:Date.now(),o=null,e.apply(c,a)}),u))}}(e,n,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),o=null,r=null,i=null;return function(){for(var e=arguments.length,a=new Array(e),s=0;s<e;s++)a[s]=arguments[s];o=a,r=this,i||(i=setTimeout((function(){o&&(t.apply(r,o),o=null,i=null)}),n)),t.apply(this,a)}}((function(){qt()&&cr.reportByFilter(["ZCB-CLIENT"])}),1e4);function Fi(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Jn.log,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4?arguments[4]:void 0;return Kn(this,void 0,void 0,_regeneratorRuntime().mark((function a(){var s,_,u,c,E,l,d,S,f,R;return _regeneratorRuntime().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return s=(null==r?void 0:r.sessionInfo)||yi.getSession(),_=s.userId,u=s.sessionId,c=s.participantType,E=s.region,l=s.agentSdkTrackingId,d=s.sdkSourceType,S=(null==r?void 0:r.appKey)||i.getCoBrowsingConfig("appKey"),f={uuid:_,appKey:"{E}".concat(S,"{/E}"),sessionId:u,participantType:c,region:E,sdkSourceType:d},l&&(f.agentSdkTrackingId=l),a.next=7,cr.log(e,n,t,Object.assign({host:r?r.host||"":(null===location||void 0===location?void 0:location.host)||"",zmDeviceId:r?r.zmDeviceId||"":window.ZCB_ZmDeviceId,sdkVersion:r?r.sdkVersion||"":Ke(),info:f},o));case 7:return R=a.sent,Mi(),a.abrupt("return",R);case 10:case"end":return a.stop()}}),a)})))}var Ui,Bi=function(e,n){var t=_toConsumableArray(hr(["ZCB-CLIENT"],e||[]));return{log:function(e,o){return function(e,n,t,o){var r,i;if(null!==(i=null===(r=null==Kt?void 0:Kt.logLevel)||void 0===r?void 0:r.log)&&void 0!==i&&i&&Nr(cr)){var a=(null==o?void 0:o.trackingId)||Li(t),s=hr([a],n||[]),_=hr(s,t||[]),u=Dr("".concat(a).concat(e));if(!Pi.log.has(u))return Pi.log.set(u,!0),Fi(e,_,Jn.log,{},o)}}(e,t,o,n)},logWithReport:function(e,o){return function(e,n,t,o){var r,a;if(null!==(a=null===(r=null==Kt?void 0:Kt.logLevel)||void 0===r?void 0:r.log)&&void 0!==a&&a&&Nr(cr)&&qt()){var s=(null==o?void 0:o.trackingId)||Li(t),_=hr([s],n||[]),u=hr(_,t||[]),c=Dr("".concat(s).concat(e));if(!Pi.log.has(c)){Pi.log.set(c,!0);var E=(null==o?void 0:o.sessionInfo)||yi.getSession(),l=E.userId,d=E.sessionId,S=E.participantType,f=E.region,R=E.agentSdkTrackingId,I=E.sdkSourceType,T=(null==o?void 0:o.appKey)||i.getCoBrowsingConfig("appKey"),O={uuid:l,appKey:"{E}".concat(T,"{/E}"),sessionId:d,participantType:S,region:f,sdkSourceType:I};return R&&(O.agentSdkTrackingId=R),cr.directReport({message:e,host:o?o.host||"":(null===location||void 0===location?void 0:location.host)||"",zmDeviceId:o?o.zmDeviceId||"":window.ZCB_ZmDeviceId,sdkVersion:o?o.sdkVersion||"":Ke(),info:O},{tags:u,logLevel:Jn.log})}}}(e,t,o,n)},info:function(e,o){return function(e,n,t,o){var r,i;if(null!==(i=null===(r=null==Kt?void 0:Kt.logLevel)||void 0===r?void 0:r.info)&&void 0!==i&&i&&Nr(cr)){var a=(null==o?void 0:o.trackingId)||Li(t),s=hr([a],n||[]),_=hr(s,t||[]),u=Dr("".concat(a).concat(e));if(!Pi.info.has(u))return Pi.info.set(u,!0),Fi(e,_,Jn.info,{},o)}}(e,t,o,n)},debug:function(e,o){return function(e,n,t,o){var r,i;if(null!==(i=null===(r=null==Kt?void 0:Kt.logLevel)||void 0===r?void 0:r.debug)&&void 0!==i&&i&&Nr(cr)){var a=(null==o?void 0:o.trackingId)||Li(t),s=hr([a],n||[]),_=hr(s,t||[]),u=Dr("".concat(a).concat(e));if(!Pi.debug.has(u))return Pi.debug.set(u,!0),Fi(e,_,Jn.debug,{},o)}}(e,t,o,n)},error:function(e,o){return function(e,n,t,o){var r,i;if((r=console).error.apply(r,_toConsumableArray(bi("laplace-error",e,"#F56C6C"))),(null===(i=null==Kt?void 0:Kt.logLevel)||void 0===i?void 0:i.error)&&Nr(cr)){var a=(null==o?void 0:o.trackingId)||Li(t),s=hr([a],n||[]),_=hr(s,t||[]),u=Dr("".concat(a).concat(e));if(!Pi.error.has(u))return Pi.error.set(u,!0),Fi(e,_,Jn.error,{},o)}}(e,t,o,n)},warn:function(e,o){return function(e,n,t,o){var r,i,a;if((r=console).warn.apply(r,_toConsumableArray(bi("laplace-warn",e,"#E6A23C"))),null!==(a=null===(i=null==Kt?void 0:Kt.logLevel)||void 0===i?void 0:i.warn)&&void 0!==a&&a&&Nr(cr)){var s=(null==o?void 0:o.trackingId)||Li(t),_=hr([s],n||[]),u=hr(_,t||[]),c=Dr("".concat(s).concat(e));if(!Pi.warn.has(c))return Pi.warn.set(c,!0),Fi(e,u,Jn.warn,{},o)}}(e,t,o,n)},print:function(e){return function(e){var n,t;null!==(t=null===(n=null==Kt?void 0:Kt.logLevel)||void 0===n?void 0:n.print)&&void 0!==t&&t&&console.log(e)}(e)},performance:function(e,o){return function(e,n,t,o){var r,i;if(null!==(i=null===(r=null==Kt?void 0:Kt.logLevel)||void 0===r?void 0:r.log)&&void 0!==i&&i&&Nr(cr)){var a=(null==o?void 0:o.trackingId)||Li(t),s=hr([a],n||[]);return Fi(e,hr(s,t||[]),Jn.log,{},o)}}(e,t,o,n)},performanceRange:function(e,o,r){return function(e,n,t,o,r){var i,a;if(null!==(a=null===(i=null==Kt?void 0:Kt.logLevel)||void 0===i?void 0:i.log)&&void 0!==a&&a&&Nr(cr)){var s=(null==r?void 0:r.trackingId)||Li(o),_=hr([s],t||[]);return Fi(e,hr(_,o||[]),Jn.log,n,r)}}(e,o,t,r,n)},log_2:function(e,o){return function(e,n,t,o){var r,i;if(null!==(i=null===(r=null==Kt?void 0:Kt.logLevel)||void 0===r?void 0:r.log)&&void 0!==i&&i&&Nr(cr)){var a=JSON.stringify(e),s=(null==o?void 0:o.trackingId)||Li(t),_=hr([s],n||[]);return Fi(a,hr(_,t||[]),Jn.log,{},o)}}(e,t,o,n)},reportNavigator:function(){wi()},setReportUrl:function(e){!function(e){if(Xt.setDynamicReportUrl(e),cr&&"function"==typeof cr.setReportUrl){var n=cr.reportUrl;cr.setReportUrl(e),qt()&&e!==n&&cr.reportByFilter(["ZCB-CLIENT"])}}(e)},setLaplaceEnabled:function(e){var n;n=e,Xt.setDynamicLaplaceEnabled(n)}}};Bi(["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"}(Ui||(Ui={}));var ki,xi={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(xi,Ui.ClientInit,"ClientInit"),Ui.ClientInitFinished,"ClientInitFinished"),Ui.CreateSessionStart,"CreateSessionStart"),Ui.CreateSessionEnd,"CreateSessionEnd"),Ui.PinCodeRequest,"PinCodeRequest"),Ui.PinCodeUpdated,"PinCodeUpdated"),Ui.PingEndpointListDone,"PingEndpointListDone"),Ui.initWS,"initWS"),Ui.WSConnected2Channel,"WSConnected2Channel"),Ui.WSConnectedSuccess,"WSConnectedSuccess"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(xi,Ui.SessionStart,"SessionStart"),Ui.SessionStarted,"SessionStarted"),Ui.SessionStartFinish,"SessionStartFinish"),Ui.StartChannel,"StartChannel"),Ui.UserRoster,"UserRoster"),Ui.LeaderJoined,"LeaderJoined"),Ui.FollowerJoined,"FollowerJoined"),Ui.CallSessionInit,"CallSessionInit"),Ui.AfterJoined,"AfterJoined"),Ui.SessionDestroy,"SessionDestroy"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(xi,Ui.AgentReconnectingInAgentSide,"AgentReconnectingInAgentSide"),Ui.CustomerDisconnectedInAgentSide,"CustomerDisconnectedInAgentSide"),Ui.CustomerTimeoutInAgentSide,"CustomerTimeoutInAgentSide"),Ui.AgentReconnectingSuccessInAgentSide,"AgentReconnectingSuccessInAgentSide"),Ui.CustomerReconnectingSuccessInAgentSide,"CustomerReconnectingSuccessInAgentSide"),Ui.AgentJoinedInAgentSide,"AgentJoinedInAgentSide"),Ui.CustomerJoinedInAgentSide,"CustomerJoinedInAgentSide"),Ui.StartReplayInAgentSide,"StartReplayInAgentSide"),Ui.CustomerReconnectingInCustomerSide,"CustomerReconnectingInCustomerSide"),Ui.AgentDisconnectedInCustomerSide,"AgentDisconnectedInCustomerSide"),_defineProperty(_defineProperty(_defineProperty(xi,Ui.AgentTimeoutInCustomerSide,"AgentTimeoutInCustomerSide"),Ui.CustomerReconnectingSuccessInCustomerSide,"CustomerReconnectingSuccessInCustomerSide"),Ui.AgentReconnectingSuccessInCustomerSide,"AgentReconnectingSuccessInCustomerSide"),function(e){e[e.IMAGE=0]="IMAGE",e[e.FONT=1]="FONT"}(ki||(ki={})),Bi(["cbs-connection"]);var Vi,Wi,Gi=[E.Input,l.Annotation,l.FullSnapshot],Hi=function(){function e(n){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.8;_classCallCheck(this,e),this.logger=n,this.sample=o,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,o=e.data.data;switch(n){case"SESSION_INFO":t.setSessionInfo(o);break;case"NTP":case le.NTP:void 0!==o.delta&&t.setLocalMathineTimeDelta(o);break;case le.END_ROOM:case le.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,o,r=t.sessionInfo.sessionId||"",a=e.cId,s=e.event_source,_=a||r;if((s===l.FullSnapshot||a)&&Gi.includes(s)){if(a&&(t.incrementalSourceCountMap.has(a)||(t.incrementalSourceCountMap.set(a,new Map),t.incrementalSourceCountMap.get(a).set(s,0)),!e.source_count)){var u=t.incrementalSourceCountMap.get(a).get(s);if(t.incrementalSourceCountMap.get(a).set(s,u+1),0!==u&&Math.random()>t.sample)return;e.source_count=t.incrementalSourceCountMap.get(a).get(s)}e.cpu_state=t.cpuState;var c=t.localMachineTimeDelta.has(r)?t.localMachineTimeDelta.get(r):t.localMachineTimeDelta.get(a);if(void 0===c)return t.eventCacheListMap.has(_)||t.eventCacheListMap.set(_,[]),void t.eventCacheListMap.get(_).push(e);var E=e.detime-(e.ptime-c),d=Object.assign(Object.assign({},e),{rtt:E,session_id:t.sessionInfo.sessionId,session_region:t.sessionInfo.sessionRegion,start_url:t.sessionInfo.startUrl,sdk_version:i.getCoBrowsingConfig("sdkVersion")});null===(o=null===(n=t.logger)||void 0===n?void 0:n.log_2)||void 0===o||o.call(n,d)}},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 o=_slicedToArray(n.value,1)[0];this.batchLog(o)}}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 Yi(){}function Ji(){Ji.init.call(this)}function Zi(e){return void 0===e._maxListeners?Ji.defaultMaxListeners:e._maxListeners}function ji(e,n,t,o){var r,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 Yi,e._eventsCount=0),a){if("function"==typeof a?a=i[n]=o?[t,a]:[a,t]:o?a.unshift(t):a.push(t),!a.warned&&(r=Zi(e))&&r>0&&a.length>r){a.warned=!0;var _=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+n+" listeners added. Use emitter.setMaxListeners() to increase limit");_.name="MaxListenersExceededWarning",_.emitter=e,_.type=n,_.count=a.length,s=_,"function"==typeof console.warn?console.warn(s):console.log(s)}}else a=i[n]=t,++e._eventsCount;return e}function zi(e,n,t){var o=!1;function r(){e.removeListener(n,r),o||(o=!0,t.apply(e,arguments))}return r.listener=t,r}function Ki(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 Xi(e,n){for(var t=new Array(n);n--;)t[n]=e[n];return t}new Hi(Bi(["cbs-interaction-latency"])),Bi(["CoBrowsing Session","Fetch Retry"]),function(){function e(){_classCallCheck(this,e),this.taskMap=new Map,this.frozen=!1,window.ZCB_RetryManager=this}return _createClass(e,[{key:"schedule",value:function(e){var n=e.fn,t=e.onTimeout,o=e.delay,r=e.remainingTime;if(this.frozen||r<=0)t(this.frozen?"frozen":"time out");else{var i={fn:n,onTimeout:t,deadline:Date.now()+r,delay:o};this.taskMap.set(i,i),this.runTask(i)}}},{key:"runTask",value:function(e){var n=this,t=e.timer,o=e.fn,r=e.delay,i=e.deadline,a=e.onTimeout;if(void 0===t&&this.taskMap.has(e)){var s=window.setTimeout((function(){n.taskMap.has(e)&&(Date.now()<i&&!n.frozen?o():a(n.frozen?"frozen":"time out"),n.taskMap.delete(e))}),r);e.timer=s}}},{key:"removeTasks",value:function(e){var n,t=_createForOfIteratorHelper(this.taskMap.values());try{for(t.s();!(n=t.n()).done;){var o=n.value,r=o.timer,i=o.onTimeout;void 0!==r&&window.clearTimeout(r),i(e)}}catch(e){t.e(e)}finally{t.f()}this.taskMap.clear()}},{key:"freeze",value:function(){this.frozen=!0,this.removeTasks("frozen")}},{key:"unfreeze",value:function(){this.frozen=!1}}],[{key:"create",value:function(){return window.ZCB_RetryManager||new e}}]),e}().create(),function(e){e.SESSION_STARTED="session_started",e.SESSION_ENDED="session_ended",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.PINCODE_UPDATED="pincode_updated",e.RECORD_STARTED="record_started",e.RECORD_STOPPED="record_stopped",e.RECORD_PAUSED="record_paused",e.RECORD_RESUMED="record_unpaused"}(Vi||(Vi={})),function(e){e.SESSION_START_FAILED="session_start_failed",e.SESSION_END_FAILED="session_end_failed",e.SESSION_CREATE_FAILED="session_create_failed"}(Wi||(Wi={})),Yi.prototype=Object.create(null),Ji.EventEmitter=Ji,Ji.usingDomains=!1,Ji.prototype.domain=void 0,Ji.prototype._events=void 0,Ji.prototype._maxListeners=void 0,Ji.defaultMaxListeners=10,Ji.init=function(){this.domain=null,Ji.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new Yi,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Ji.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},Ji.prototype.getMaxListeners=function(){return Zi(this)},Ji.prototype.emit=function(e){var n,t,o,r,i,a,s,_="error"===e;if(a=this._events)_=_&&null==a.error;else if(!_)return!1;if(s=this.domain,_){if(n=arguments[1],!s){if(n instanceof Error)throw n;var u=new Error(\'Uncaught, unspecified "error" event. (\'+n+")");throw u.context=n,u}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 c="function"==typeof t;switch(o=arguments.length){case 1:!function(e,n,t){if(n)e.call(t);else for(var o=e.length,r=Xi(e,o),i=0;i<o;++i)r[i].call(t)}(t,c,this);break;case 2:!function(e,n,t,o){if(n)e.call(t,o);else for(var r=e.length,i=Xi(e,r),a=0;a<r;++a)i[a].call(t,o)}(t,c,this,arguments[1]);break;case 3:!function(e,n,t,o,r){if(n)e.call(t,o,r);else for(var i=e.length,a=Xi(e,i),s=0;s<i;++s)a[s].call(t,o,r)}(t,c,this,arguments[1],arguments[2]);break;case 4:!function(e,n,t,o,r,i){if(n)e.call(t,o,r,i);else for(var a=e.length,s=Xi(e,a),_=0;_<a;++_)s[_].call(t,o,r,i)}(t,c,this,arguments[1],arguments[2],arguments[3]);break;default:for(r=new Array(o-1),i=1;i<o;i++)r[i-1]=arguments[i];!function(e,n,t,o){if(n)e.apply(t,o);else for(var r=e.length,i=Xi(e,r),a=0;a<r;++a)i[a].apply(t,o)}(t,c,this,r)}return!0},Ji.prototype.addListener=function(e,n){return ji(this,e,n,!1)},Ji.prototype.on=Ji.prototype.addListener,Ji.prototype.prependListener=function(e,n){return ji(this,e,n,!0)},Ji.prototype.once=function(e,n){if("function"!=typeof n)throw new TypeError(\'"listener" argument must be a function\');return this.on(e,zi(this,e,n)),this},Ji.prototype.prependOnceListener=function(e,n){if("function"!=typeof n)throw new TypeError(\'"listener" argument must be a function\');return this.prependListener(e,zi(this,e,n)),this},Ji.prototype.removeListener=function(e,n){var t,o,r,i,a;if("function"!=typeof n)throw new TypeError(\'"listener" argument must be a function\');if(!(o=this._events))return this;if(!(t=o[e]))return this;if(t===n||t.listener&&t.listener===n)0==--this._eventsCount?this._events=new Yi:(delete o[e],o.removeListener&&this.emit("removeListener",e,t.listener||n));else if("function"!=typeof t){for(r=-1,i=t.length;i-- >0;)if(t[i]===n||t[i].listener&&t[i].listener===n){a=t[i].listener,r=i;break}if(r<0)return this;if(1===t.length){if(t[0]=void 0,0==--this._eventsCount)return this._events=new Yi,this;delete o[e]}else!function(e,n){for(var t=n,o=t+1,r=e.length;o<r;t+=1,o+=1)e[t]=e[o];e.pop()}(t,r);o.removeListener&&this.emit("removeListener",e,a||n)}return this},Ji.prototype.off=function(e,n){return this.removeListener(e,n)},Ji.prototype.removeAllListeners=function(e){var n,t;if(!(t=this._events))return this;if(!t.removeListener)return 0===arguments.length?(this._events=new Yi,this._eventsCount=0):t[e]&&(0==--this._eventsCount?this._events=new Yi:delete t[e]),this;if(0===arguments.length){for(var o,r=Object.keys(t),i=0;i<r.length;++i)"removeListener"!==(o=r[i])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=new Yi,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},Ji.prototype.listeners=function(e){var n,t,o=this._events;return t=o&&(n=o[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},Ji.listenerCount=function(e,n){return"function"==typeof e.listenerCount?e.listenerCount(n):Ki.call(e,n)},Ji.prototype.listenerCount=Ki,Ji.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var qi=function(e){_inherits(o,e);var t=_createSuper(o);function o(e,n){var r;return _classCallCheck(this,o),(r=t.call(this)).settings=e,r.setMaxListeners(100),r.init(n),r}return _createClass(o,[{key:"init",value:function(e){n.init(this.settings,(function(n){var t=n.success,o=n.sdkInfo,r=n.session,i=n.error;t&&r?e&&e({success:!0,sdkInfo:o,session:r}):e&&e({success:!1,sdkInfo:o,error:i})}))}}]),o}(Ji),$i=function(e,n){new qi(e,n)},Qi=ze({}),ea=ze({});return(null===window||void 0===window?void 0:window.ZoomCobrowseSDKInitArgs)&&($i.apply(void 0,_toConsumableArray(window.ZoomCobrowseSDKInitArgs)),delete window.ZoomCobrowseSDKInitArgs),e.SESSION_ERROR=ea,e.SESSION_EVENT=Qi,e.init=$i,Object.defineProperty(e,"__esModule",{value:!0}),e}({},ZCBController);\n//# sourceMappingURL=https://d1cdksi819e9z7.cloudfront.net/zcb/mkzbzyib/zcb-client.js.map\n';export{e as default};