PURECLOUD_COBROWSE_DEPLOYMENT_TOKEN = "AQIDAHiptSjiMy1kbZzaF29iJhRltHHfvzrNMvSh6GFk2SuvgwGXaIRGqz0avix6Z8w0wEPYAAAAfjB8BgkqhkiG9w0BBwagbzBtAgEAMGgGCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQMccuXKjOHToPHBCQlAgEQgDsn75CSVe7w7L0dsYmVapI2Vox0x3dIJEUMFiqfe6FtUEBv0OMObDKjY4s1JvHDeQTufuugCMjelsdesw.eyJzZWxmVXJpIjoiL2FwaS92Mi9jb2Jyb3dzZS9kZXBsb3ltZW50cyIsImtleSI6IjZmWTlaT3d2VXoyajB0WkNQUzRXTnBObkxjcDNPQ2NTIiwibmFtZSI6IkxpbmRlIiwiZGVzY3JpcHRpb24iOiJVSyBDb2Jyb3dzZSB0ZXN0IGltcGxlbWVudGF0aW9uIGZvciBvbmxpbmVzaG9wIGFuZCIsImhvc3RzIjpbIioubGluZGUuY29tIiwiKi5ib2NvbmxpbmVzaG9wLmNvLnVrIiwiKi5ib2NvbmxpbmUuY28udWsiLCIqLmJvYy5jb20iLCIqLmxvY2FsaG9zdC5jb206NTUwMCIsIiouc3RhZ2luZzMubGluZGUuZ3JwIiwiYm9jbGlua3MuY28udWsiXSwiaWQiOiJkMjY1NDA2NS0yOGRhLTRiNDEtYmE0Ni03MjQwYWNkYjA2NTEiLCJhdXRvSm9pbiI6dHJ1ZSwidmlld2VyQ29udHJvbEFsbG93ZWQiOnRydWUsIm1hc2tlZENzc0NsYXNzZXMiOltdfQ.77-977-977-977-977-977-9du-_ve-_vVV3byVJx7vvv71AazJtbu-_ve-_vRgsF--_ve-_vRdo77-9"; PURECLOUD_COBROWSE_DEFAULT_CONFIG = {"cobrowseServiceHost":"cobrowse.euw2.pure.cloud"}; !function(){function r(r,n){var t=new Error('Cannot find module "'+r+'"'+(n?' from "'+n+'"':""));return t.code="MODULE_NOT_FOUND",t}function n(r){this.id=this.filename=r,this.loaded=!1,this.exports=void 0}function t(r,n,t){var i=t&&t.globals;if(_[r]=n,i)for(var e=b||global,o=0;o2&&0===r[t-1].length&&t--,r.length=t,r.join("/"))}function f(r,n){var t=n.split("/");return u(("/"==r?[""]:r.split("/")).concat(t))}function s(r){var n,t=r.lastIndexOf(".");return-1===t||-1!==(n=r.lastIndexOf("/"))&&n>t?null:r.substring(0,t)}function c(r){r=r.substring(1);var n=r.indexOf("/");"@"===r.charAt(1)&&(n=r.indexOf("/",n+1));var t=-1===n?r.length:n;return[r.substring(0,t),r.substring(t)]}function l(r,n){"/"===r.charAt(r.length-1)&&(r=r.slice(0,-1));var t=M[r];if(t)return t;var i,e,o=c(n),a=o[0],u=r.indexOf("/");u<0?(i=r,e=""):("@"===r.charAt(0)&&(u=r.indexOf("/",u+1)),i=r.substring(0,u),e=r.substring(u));var f=I[a+"/"+i];if(f){var s="/"+i+"$"+f;return e&&(s+=e),s}}function v(r,n){var t;if("."===r.charAt(0))t=f(n,r);else if("/"===r.charAt(0))t=u(r.split("/"));else{for(var i=O.length,e=0;e0)throw new Error("Invalid string. Length must be a multiple of 4");var e=r.indexOf("=");return-1===e&&(e=t),[e,e===t?0:4-e%4]}function u(r){var t=a(r),e=t[0],n=t[1];return 3*(e+n)/4-n}function c(r,t,e){return 3*(t+e)/4-e}function h(r){for(var t,e=a(r),n=e[0],o=e[1],u=new s(c(r,n,o)),h=0,i=o>0?n-4:n,d=0;d>16&255,u[h++]=t>>8&255,u[h++]=255&t;return 2===o&&(t=C[r.charCodeAt(d)]<<2|C[r.charCodeAt(d+1)]>>4,u[h++]=255&t),1===o&&(t=C[r.charCodeAt(d)]<<10|C[r.charCodeAt(d+1)]<<4|C[r.charCodeAt(d+2)]>>2,u[h++]=t>>8&255,u[h++]=255&t),u}function i(r){return A[r>>18&63]+A[r>>12&63]+A[r>>6&63]+A[63&r]}function d(r,t,e){for(var n,o=[],a=t;au?u:a+16383));return 1===n?(t=r[e-1],o.push(A[t>>2]+A[t<<4&63]+"==")):2===n&&(t=(r[e-2]<<8)+r[e-1],o.push(A[t>>10]+A[t>>4&63]+A[t<<2&63]+"=")),o.join("")}t.byteLength=u,t.toByteArray=h,t.fromByteArray=f;for(var A=[],C=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v=0,p=y.length;v>1,p=-7,n=t?h-1:0,N=t?-1:1,s=o[a+n];for(n+=N,M=s&(1<<-p)-1,s>>=-p,p+=f;p>0;M=256*M+o[a+n],n+=N,p-=8);for(e=M&(1<<-p)-1,M>>=-p,p+=r;p>0;e=256*e+o[a+n],n+=N,p-=8);if(0===M)M=1-w;else{if(M===i)return e?NaN:1/0*(s?-1:1);e+=Math.pow(2,r),M-=w}return(s?-1:1)*e*Math.pow(2,M-r)},a.write=function(o,a,t,r,h,M){var e,f,i,w=8*M-h-1,p=(1<>1,N=23===h?Math.pow(2,-24)-Math.pow(2,-77):0,s=r?0:M-1,u=r?1:-1,c=a<0||0===a&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(f=isNaN(a)?1:0,e=p):(e=Math.floor(Math.log(a)/Math.LN2),a*(i=Math.pow(2,-e))<1&&(e--,i*=2),a+=e+n>=1?N/i:N*Math.pow(2,1-n),a*i>=2&&(e++,i/=2),e+n>=p?(f=0,e=p):e+n>=1?(f=(a*i-1)*Math.pow(2,h),e+=n):(f=a*Math.pow(2,n-1)*Math.pow(2,h),e=0));h>=8;o[t+s]=255&f,s+=u,f/=256,h-=8);for(e=e<0;o[t+s]=255&e,s+=u,e/=256,w-=8);o[t+s-u]|=128*c}}); $_mod_cobrowse_api.def("/buffer$5.2.1/index",function(t,r,e,n,i){"use strict";function o(t){if(t>K)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return r.__proto__=f.prototype,r}function f(t,r,e){if("number"==typeof t){if("string"==typeof r)throw new TypeError('The "string" argument must be of type string. Received type number');return a(t)}return u(t,r,e)}function u(t,r,e){if("string"==typeof t)return p(t,r);if(ArrayBuffer.isView(t))return l(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+(void 0===t?"undefined":Z(t)));if(X(t,ArrayBuffer)||t&&X(t.buffer,ArrayBuffer))return c(t,r,e);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return f.from(n,r,e);var i=y(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return f.from(t[Symbol.toPrimitive]("string"),r,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+(void 0===t?"undefined":Z(t)))}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function h(t,r,e){return s(t),t<=0?o(t):void 0!==r?"string"==typeof e?o(t).fill(r,e):o(t).fill(r):o(t)}function a(t){return s(t),o(t<0?0:0|g(t))}function p(t,r){if("string"==typeof r&&""!==r||(r="utf8"),!f.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=0|d(t,r),n=o(e),i=n.write(t,r);return i!==e&&(n=n.slice(0,i)),n}function l(t){for(var r=t.length<0?0:0|g(t.length),e=o(r),n=0;n=K)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+K.toString(16)+" bytes");return 0|t}function w(t){return+t!=t&&(t=0),f.alloc(+t)}function d(t,r){if(f.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||X(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+(void 0===t?"undefined":Z(t)));var e=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===e)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return N(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return V(t).length;default:if(i)return n?-1:N(t).length;r=(""+r).toLowerCase(),i=!0}}function v(t,r,e){var n=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if(e>>>=0,r>>>=0,e<=r)return"";for(t||(t="utf8");;)switch(t){case"hex":return k(this,r,e);case"utf8":case"utf-8":return R(this,r,e);case"ascii":return x(this,r,e);case"latin1":case"binary":return C(this,r,e);case"base64":return I(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}function m(t,r,e,n,i){if(0===t.length)return-1;if("string"==typeof e?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,J(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0){if(!i)return-1;e=0}if("string"==typeof r&&(r=f.from(r,n)),f.isBuffer(r))return 0===r.length?-1:E(t,r,e,n,i);if("number"==typeof r)return r&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):E(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function E(t,r,e,n,i){function o(t,r){return 1===f?t[r]:t.readUInt16BE(r*f)}var f=1,u=t.length,s=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return-1;f=2,u/=2,s/=2,e/=2}var h;if(i){var a=-1;for(h=e;hu&&(e=u-s),h=e;h>=0;h--){for(var p=!0,l=0;li&&(n=i):n=i;var o=r.length;n>o/2&&(n=o/2);for(var f=0;f239?4:o>223?3:o>191?2:1;if(i+u<=e){var s,h,a,p;switch(u){case 1:o<128&&(f=o);break;case 2:s=t[i+1],128==(192&s)&&(p=(31&o)<<6|63&s)>127&&(f=p);break;case 3:s=t[i+1],h=t[i+2],128==(192&s)&&128==(192&h)&&(p=(15&o)<<12|(63&s)<<6|63&h)>2047&&(p<55296||p>57343)&&(f=p);break;case 4:s=t[i+1],h=t[i+2],a=t[i+3],128==(192&s)&&128==(192&h)&&128==(192&a)&&(p=(15&o)<<18|(63&s)<<12|(63&h)<<6|63&a)>65535&&p<1114112&&(f=p)}}null===f?(f=65533,u=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=u}return L(n)}function L(t){var r=t.length;if(r<=Q)return String.fromCharCode.apply(String,t);for(var e="",n=0;nn)&&(e=n);for(var i="",o=r;oe)throw new RangeError("Trying to access beyond buffer length")}function P(t,r,e,n,i,o){if(!f.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||rt.length)throw new RangeError("Index out of range")}function z(t,r,e,n,i,o){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function j(t,r,e,n,i){return r=+r,e>>>=0,i||z(t,r,e,4,3.4028234663852886e38,-3.4028234663852886e38),H.write(t,r,e,n,23,4),e+4}function D(t,r,e,n,i){return r=+r,e>>>=0,i||z(t,r,e,8,1.7976931348623157e308,-1.7976931348623157e308),H.write(t,r,e,n,52,8),e+8}function F(t){if(t=t.split("=")[0],t=t.trim().replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function Y(t){return t<16?"0"+t.toString(16):t.toString(16)}function N(t,r){r=r||1/0;for(var e,n=t.length,i=null,o=[],f=0;f55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&o.push(239,191,189);continue}if(f+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&o.push(239,191,189),i=e;continue}e=65536+(i-55296<<10|e-56320)}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;o.push(e)}else if(e<2048){if((r-=2)<0)break;o.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return o}function $(t){for(var r=[],e=0;e>8,i=e%256,o.push(i),o.push(n);return o}function V(t){return G.toByteArray(F(t))}function W(t,r,e,n){for(var i=0;i=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function X(t,r){return t instanceof r||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===r.name}function J(t){return t!==t}var Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},G=t("/base64-js$1.3.0/index"),H=t("/ieee754$1.1.13/index");r.Buffer=f,r.SlowBuffer=w,r.INSPECT_MAX_BYTES=50;var K=2147483647;r.kMaxLength=K,f.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}(),f.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),f.poolSize=8192,f.from=function(t,r,e){return u(t,r,e)},f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,f.alloc=function(t,r,e){return h(t,r,e)},f.allocUnsafe=function(t){return a(t)},f.allocUnsafeSlow=function(t){return a(t)},f.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==f.prototype},f.compare=function(t,r){if(X(t,Uint8Array)&&(t=f.from(t,t.offset,t.byteLength)),X(r,Uint8Array)&&(r=f.from(r,r.offset,r.byteLength)),!f.isBuffer(t)||!f.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var e=t.length,n=r.length,i=0,o=Math.min(e,n);ie&&(t+=" ... "),""},f.prototype.compare=function(t,r,e,n,i){if(X(t,Uint8Array)&&(t=f.from(t,t.offset,t.byteLength)),!f.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+(void 0===t?"undefined":Z(t)));if(void 0===r&&(r=0),void 0===e&&(e=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),r<0||e>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&r>=e)return 0;if(n>=i)return-1;if(r>=e)return 1;if(r>>>=0,e>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var o=i-n,u=e-r,s=Math.min(o,u),h=this.slice(n,i),a=t.slice(r,e),p=0;p>>=0,isFinite(e)?(e>>>=0,void 0===n&&(n="utf8")):(n=e,e=void 0)}var i=this.length-r;if((void 0===e||e>i)&&(e=i),t.length>0&&(e<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return B(this,t,r,e);case"utf8":case"utf-8":return A(this,t,r,e);case"ascii":return U(this,t,r,e);case"latin1":case"binary":return _(this,t,r,e);case"base64":return S(this,t,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,r,e);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;f.prototype.slice=function(t,r){var e=this.length;t=~~t,r=void 0===r?e:~~r,t<0?(t+=e)<0&&(t=0):t>e&&(t=e),r<0?(r+=e)<0&&(r=0):r>e&&(r=e),r>>=0,r>>>=0,e||M(t,r,this.length);for(var n=this[t],i=1,o=0;++o>>=0,r>>>=0,e||M(t,r,this.length);for(var n=this[t+--r],i=1;r>0&&(i*=256);)n+=this[t+--r]*i;return n},f.prototype.readUInt8=function(t,r){return t>>>=0,r||M(t,1,this.length),this[t]},f.prototype.readUInt16LE=function(t,r){return t>>>=0,r||M(t,2,this.length),this[t]|this[t+1]<<8},f.prototype.readUInt16BE=function(t,r){return t>>>=0,r||M(t,2,this.length),this[t]<<8|this[t+1]},f.prototype.readUInt32LE=function(t,r){return t>>>=0,r||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},f.prototype.readUInt32BE=function(t,r){return t>>>=0,r||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},f.prototype.readIntLE=function(t,r,e){t>>>=0,r>>>=0,e||M(t,r,this.length);for(var n=this[t],i=1,o=0;++o=i&&(n-=Math.pow(2,8*r)),n},f.prototype.readIntBE=function(t,r,e){t>>>=0,r>>>=0,e||M(t,r,this.length);for(var n=r,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*r)),o},f.prototype.readInt8=function(t,r){return t>>>=0,r||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},f.prototype.readInt16LE=function(t,r){t>>>=0,r||M(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},f.prototype.readInt16BE=function(t,r){t>>>=0,r||M(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},f.prototype.readInt32LE=function(t,r){return t>>>=0,r||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},f.prototype.readInt32BE=function(t,r){return t>>>=0,r||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},f.prototype.readFloatLE=function(t,r){return t>>>=0,r||M(t,4,this.length),H.read(this,t,!0,23,4)},f.prototype.readFloatBE=function(t,r){return t>>>=0,r||M(t,4,this.length),H.read(this,t,!1,23,4)},f.prototype.readDoubleLE=function(t,r){return t>>>=0,r||M(t,8,this.length),H.read(this,t,!0,52,8)},f.prototype.readDoubleBE=function(t,r){return t>>>=0,r||M(t,8,this.length),H.read(this,t,!1,52,8)},f.prototype.writeUIntLE=function(t,r,e,n){if(t=+t,r>>>=0,e>>>=0,!n){P(this,t,r,e,Math.pow(2,8*e)-1,0)}var i=1,o=0;for(this[r]=255&t;++o>>=0,e>>>=0,!n){P(this,t,r,e,Math.pow(2,8*e)-1,0)}var i=e-1,o=1;for(this[r+i]=255&t;--i>=0&&(o*=256);)this[r+i]=t/o&255;return r+e},f.prototype.writeUInt8=function(t,r,e){return t=+t,r>>>=0,e||P(this,t,r,1,255,0),this[r]=255&t,r+1},f.prototype.writeUInt16LE=function(t,r,e){return t=+t,r>>>=0,e||P(this,t,r,2,65535,0),this[r]=255&t,this[r+1]=t>>>8,r+2},f.prototype.writeUInt16BE=function(t,r,e){return t=+t,r>>>=0,e||P(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=255&t,r+2},f.prototype.writeUInt32LE=function(t,r,e){return t=+t,r>>>=0,e||P(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t,r+4},f.prototype.writeUInt32BE=function(t,r,e){return t=+t,r>>>=0,e||P(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},f.prototype.writeIntLE=function(t,r,e,n){if(t=+t,r>>>=0,!n){var i=Math.pow(2,8*e-1);P(this,t,r,e,i-1,-i)}var o=0,f=1,u=0;for(this[r]=255&t;++o>0)-u&255;return r+e},f.prototype.writeIntBE=function(t,r,e,n){if(t=+t,r>>>=0,!n){var i=Math.pow(2,8*e-1);P(this,t,r,e,i-1,-i)}var o=e-1,f=1,u=0;for(this[r+o]=255&t;--o>=0&&(f*=256);)t<0&&0===u&&0!==this[r+o+1]&&(u=1),this[r+o]=(t/f>>0)-u&255;return r+e},f.prototype.writeInt8=function(t,r,e){return t=+t,r>>>=0,e||P(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=255&t,r+1},f.prototype.writeInt16LE=function(t,r,e){return t=+t,r>>>=0,e||P(this,t,r,2,32767,-32768),this[r]=255&t,this[r+1]=t>>>8,r+2},f.prototype.writeInt16BE=function(t,r,e){return t=+t,r>>>=0,e||P(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=255&t,r+2},f.prototype.writeInt32LE=function(t,r,e){return t=+t,r>>>=0,e||P(this,t,r,4,2147483647,-2147483648),this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4},f.prototype.writeInt32BE=function(t,r,e){return t=+t,r>>>=0,e||P(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},f.prototype.writeFloatLE=function(t,r,e){return j(this,t,r,!0,e)},f.prototype.writeFloatBE=function(t,r,e){return j(this,t,r,!1,e)},f.prototype.writeDoubleLE=function(t,r,e){return D(this,t,r,!0,e)},f.prototype.writeDoubleBE=function(t,r,e){return D(this,t,r,!1,e)},f.prototype.copy=function(t,r,e,n){if(!f.isBuffer(t))throw new TypeError("argument should be a Buffer");if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r=0;--o)t[o+r]=this[o+e];else Uint8Array.prototype.set.call(t,this.subarray(e,n),r);return i},f.prototype.fill=function(t,r,e,n){if("string"==typeof t){if("string"==typeof r?(n=r,r=0,e=this.length):"string"==typeof e&&(n=e,e=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!f.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){var i=t.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(t=i)}}else"number"==typeof t&&(t&=255);if(r<0||this.length>>=0,e=void 0===e?this.length:e>>>0,t||(t=0);var o;if("number"==typeof t)for(o=r;o0&&this._events[e].length>s&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){function s(){this.removeListener(e,s),n||(n=!0,t.apply(this,arguments))}if(!o(t))throw TypeError("listener must be a function");var n=!1;return s.listener=t,this.on(e,s),this},r.prototype.removeListener=function(e,t){var s,n,i,r;if(!o(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(s=this._events[e],i=s.length,n=-1,s===t||o(s.listener)&&s.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(v(s)){for(r=i;r-- >0;)if(s[r]===t||s[r].listener&&s[r].listener===t){n=r;break}if(n<0)return this;1===s.length?(s.length=0,delete this._events[e]):s.splice(n,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,s;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(s=this._events[e],o(s))this.removeListener(e,s);else if(s)for(;s.length;)this.removeListener(e,s[s.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?o(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(o(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}}); $_mod_cobrowse_api.def("/lasso-loader$3.0.2/src/index",function(n,e,o,r,t){function a(n,e){if(!v[e]){v[e]=!0;var o,r=setTimeout(function(){o("Timeout after "+l+"ms")},l);o=function(n){v[e]&&(clearTimeout(r),delete v[e],n?h[e]=n:m[e]=!0,_.emit(e,n,e))},u[n](e,o)}}function i(n,e){function o(){i.length?e("Failed: "+i.join(", ")):e()}function r(n,e){n&&i.push(e+" ("+n+")"),0==--c&&s&&o()}function t(e){var o=n[e];if(o)for(var t=0,s=o.length;t1)for(var r=1;r2){var f=n.lastIndexOf("/");if(f!==n.length-1){-1===f?(n="",o=0):(n=n.slice(0,f),o=n.length-1-n.lastIndexOf("/")),i=a,l=0;continue}}else if(2===n.length||1===n.length){n="",o=0,i=a,l=0;continue}t&&(n.length>0?n+="/..":n="..",o=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),o=a-i-1;i=a,l=0}else 46===r&&-1!==l?++l:l=-1}return n}function a(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+e+n:n}var f=e("process"),c="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},h={resolve:function(){for(var e,t="",r=!1,n=arguments.length-1;n>=-1&&!r;n--){var o;n>=0?o=arguments[n]:(void 0===e&&(e=f.cwd()),o=e),i(o),0!==o.length&&(t=o+"/"+t,r=47===o.charCodeAt(0))}return t=l(t,!r),r?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(i(e),0===e.length)return".";var t=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return e=l(e,!t),0!==e.length||t||(e="."),e.length>0&&r&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return i(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":h.normalize(e)},relative:function(e,t){if(i(e),i(t),e===t)return"";if(e=h.resolve(e),t=h.resolve(t),e===t)return"";for(var r=1;rc){if(47===t.charCodeAt(l+u))return t.slice(l+u+1);if(0===u)return t.slice(l+u)}else o>c&&(47===e.charCodeAt(r+u)?s=u:0===u&&(s=0));break}var g=e.charCodeAt(r+u);if(g!==t.charCodeAt(l+u))break;47===g&&(s=u)}var d="";for(u=r+s+1;u<=n;++u)u!==n&&47!==e.charCodeAt(u)||(0===d.length?d+="..":d+="/..");return d.length>0?d+t.slice(l+s):(l+=s,47===t.charCodeAt(l)&&++l,t.slice(l))},_makeLong:function(e){return e},dirname:function(e){if(i(e),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,o=!0,l=e.length-1;l>=1;--l)if(47===(t=e.charCodeAt(l))){if(!o){n=l;break}}else o=!1;return-1===n?r?"/":".":r&&1===n?"//":e.slice(0,n)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');i(e);var r,n=0,o=-1,l=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,f=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!l){n=r+1;break}}else-1===f&&(l=!1,f=r+1),a>=0&&(c===t.charCodeAt(a)?-1==--a&&(o=r):(a=-1,o=f))}return n===o?o=f:-1===o&&(o=e.length),e.slice(n,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!l){n=r+1;break}}else-1===o&&(l=!1,o=r+1);return-1===o?"":e.slice(n,o)},extname:function(e){i(e);for(var t=-1,r=0,n=-1,o=!0,l=0,a=e.length-1;a>=0;--a){var f=e.charCodeAt(a);if(47!==f)-1===n&&(o=!1,n=a+1),46===f?-1===t?t=a:1!==l&&(l=1):-1!==t&&(l=-1);else if(!o){r=a+1;break}}return-1===t||-1===n||0===l||1===l&&t===n-1&&t===r+1?"":e.slice(t,n)},format:function(e){if(null===e||"object"!==(void 0===e?"undefined":c(e)))throw new TypeError('The "pathObject" argument must be of type Object. Received type '+(void 0===e?"undefined":c(e)));return a("/",e)},parse:function(e){i(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var r,n=e.charCodeAt(0),o=47===n;o?(t.root="/",r=1):r=0;for(var l=-1,a=0,f=-1,c=!0,h=e.length-1,s=0;h>=r;--h)if(47!==(n=e.charCodeAt(h)))-1===f&&(c=!1,f=h+1),46===n?-1===l?l=h:1!==s&&(s=1):-1!==l&&(s=-1);else if(!c){a=h+1;break}return-1===l||-1===f||0===s||1===s&&l===f-1&&l===a+1?-1!==f&&(t.base=t.name=0===a&&o?e.slice(1,f):e.slice(a,f)):(0===a&&o?(t.name=e.slice(1,l),t.base=e.slice(1,f)):(t.name=e.slice(a,l),t.base=e.slice(a,f)),t.ext=e.slice(l,f)),a>0?t.dir=e.slice(0,a-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};h.posix=h,r.exports=h}); $_mod_cobrowse_api.def("/purecloud-cobrowse-web$2.1.0/src/i18n/index",function(r,n,e,o,i){function t(r,n){var e=r(n);try{return decodeURI(e)}catch(r){if(r instanceof URIError)return e;throw r}}function c(r){return Object.keys(r).reduce(function(n,e){return"string"==typeof r[e]?n[e]=decodeURI(r[e]):n[e]=function(n){return t(r[e],n)},n},{})}function a(r,n){var e=r.id,o=0,i=e.indexOf($);-1!==i&&(o=i+$.length);var t=e.lastIndexOf("/");return e=e.substring(o,t+1),s.normalize(s.join(e,n))}var u=r("/lasso-i18n$4.0.0/index_browser"),f=r("/lasso-i18n$4.0.0/Dictionary"),s=r("/path-browserify$1.0.0/index"),d=window.cobrowse_i18n=n,l=void 0,w=void 0,v={},$="/src/";d.loadLocale=function(r){return w&&r===l?w:"$$"===r?(l=r,v={},w=Promise.resolve()):w=new Promise(function(n,e){l=u.findBestLocale(r),u.loadLocale(l,function(r){if(r)return e(r);v={},n()})})},d.getDictionary=function(r,n){if("."===r.charAt(0)){if(!n)throw new Error("getDictionary function requires relativeToModule when resolving relative path");r=a(n,r)}var e=v[r];if(!e){var o="$$"===l?{}:u.getDictionary(r,l);v[r]=e=new f(r,c(o),l)}return e}}); $_mod_cobrowse_api.def("/purecloud-cobrowse-web$2.1.0/src/util/shared-dict/index",function(e,o,c,i,r){c.exports=e("/purecloud-cobrowse-web$2.1.0/src/i18n/index").getDictionary("./i18n.json",c)}); $_mod_cobrowse_api.def("/purecloud-cobrowse-web$2.1.0/src/util/getParticipantName",function(e,r,t,o,c){var d=e("/purecloud-cobrowse-web$2.1.0/src/util/shared-dict/index");t.exports=function(e){var r=e.getEncodedDisplayName();return r||(r=e.getGuest()?d.get("sharer"):d.get("viewer")),decodeURI(r)}}); $_mod_cobrowse_api.def("/purecloud-cobrowse-web$2.1.0/src/util/decodeToken",function(e,r,o,a,n){function t(e){var r=e.replace(/-/g,"+");r=r.replace(/_/g,"/");var o=r.length%4;if(2===o)r+="==";else if(3===o)r+="=";else if(1===o)throw new Error("Illegal base64 string");return f.from(r,"base64").toString("utf8")}var f=e("buffer").Buffer;o.exports=function(e){var r=/^[a-zA-Z0-9\-_]+\.([a-zA-Z0-9\-_]+)\.[a-zA-Z0-9\-_]+$/,o=/^[a-zA-Z0-9+/=]+\.([a-zA-Z0-9+/=]+)\.[a-zA-Z0-9+/=]+$/,a=r.exec(e),n=o.exec(e);if(!a&&!n)throw new Error("Invalid token");return n?window.atob(n[1]):t(a[1])}}); $_mod_cobrowse_api.def("/purecloud-cobrowse-web$2.1.0/src/jsapi/v1/util/getDeployment",function(e,o,r,t,c){"use strict";var n=e("/purecloud-cobrowse-web$2.1.0/src/util/decodeToken"),i=void 0;r.exports=function(){if(void 0===i){var e=window.PURECLOUD_COBROWSE_DEPLOYMENT_TOKEN;if(e)try{i=JSON.parse(n(e)),i.token=e}catch(e){console.error("Error reading deployment token",e),i=null}}return i}}); $_mod_cobrowse_api.def("/purecloud-cobrowse-web$2.1.0/src/jsapi/v1/v1",function(o,r,e,n,i){"use strict";function s(){this.cobrowse=void 0,this.sharerSession=void 0}function t(){return!!document.addEventListener&&Array.prototype.forEach}function c(o,r){return r&&o.then(function(o){r(null,o)}).catch(r),o}var u=window.PureCloud=window.PureCloud||{},a=o("/purecloud-cobrowse-web$2.1.0/src/sharer/local-storage"),d=o("/purecloud-cobrowse-web$2.1.0/src/jsapi/v1/util/getDeployment"),l=o("/lasso-loader$3.0.2/src/index");l.setTimeout(1e4);var f=void 0;[window.PURECLOUD_COBROWSE_CONFIG,window.PURECLOUD_COBROWSE_DEFAULT_CONFIG].forEach(function(o){o&&null==f&&(f=o.autoJoin)});var p=new s,w=p.deployment=d(),v=void 0,b=!1;e.exports=u.cobrowse=p.cobrowse=v={isSupported:t,isSharing:function(){var o=v.getSharerSession();return o&&o.getSharer()},getSharerSession:function(){return p.sharerSession},startSharing:function(r,e){function n(){l.async("_be25e1",function(e){if(e)return c(e);o("/purecloud-cobrowse-web$2.1.0/src/jsapi/v1/startSharing")(p,r,c)})}if(1===arguments.length&&"function"==typeof r?(e=r,r=void 0):e&&"function"!=typeof e&&(console.error("Provided a non-function callback"),e=void 0),!t()){var i=new Error("Co-browse not supported");return void(e?e(i):console.error("Error starting co-browse.",i))}if(b||v.isSharing())return e&&e();b=!0;var s=0,c=function(o,r){if(b=!1,o&&s<3)return b=!0,s++,void n();o?console.error("Error starting co-browse session.",o):console.log("Page is being shared."),e&&e(o,r)};n()},stopSharing:function(o){var r=void 0;return(r=p.sharerSession)?(p.sharerSession=null,c(r.stop(),o)):o()},promptForCode:function(r,e){o("/lasso-loader$3.0.2/src/index").async("_9c1c74",function(n){if(n)return e(n);o("/purecloud-cobrowse-web$2.1.0/src/jsapi/v1/promptForCode")(p,r,e)})},deployment:w},function(){if(null!=f){if(!1===f)return}else if(w&&!1===w.autoJoin)return;var r=a.getCobrowseParticipantToken();r&&o("/lasso-loader$3.0.2/src/index").async("_c29b40",function(e){if(e)return void console.error("Error loading auto-join module",e);var n=o("/purecloud-cobrowse-web$2.1.0/src/jsapi/v1/autoJoin");u.cobrowse.autoJoinPromise=n(p,r)})}()}); $_mod_cobrowse_api.run("/purecloud-cobrowse-web$2.1.0/src/jsapi/v1/v1",{wait:!1});