!function(){var t={19021:function(t,e,n){var i;t.exports=(i=i||function(t){var e;if("undefined"!=typeof window&&window.crypto&&(e=window.crypto),"undefined"!=typeof self&&self.crypto&&(e=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(e=globalThis.crypto),!e&&"undefined"!=typeof window&&window.msCrypto&&(e=window.msCrypto),!e&&void 0!==n.g&&n.g.crypto&&(e=n.g.crypto),!e)try{e=n(50477)}catch(t){}var i=function(){if(e){if("function"==typeof e.getRandomValues)try{return e.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof e.randomBytes)try{return e.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},r=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),o={},s=o.lib={},a=s.Base={extend:function(t){var e=r(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=a.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||d).stringify(this)},concat:function(t){var e=this.words,n=t.words,i=this.sigBytes,r=t.sigBytes;if(this.clamp(),i%4)for(var o=0;o>>2]>>>24-o%4*8&255;e[i+o>>>2]|=s<<24-(i+o)%4*8}else for(var a=0;a>>2]=n[a>>>2];return this.sigBytes+=r,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=a.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n>>2]>>>24-r%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new c.init(n,e/2)}},u=l.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r>>2]>>>24-r%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new c.init(n,e)}},h=l.Utf8={stringify:function(t){try{return decodeURIComponent(escape(u.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return u.parse(unescape(encodeURIComponent(t)))}},f=s.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=h.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,i=this._data,r=i.words,o=i.sigBytes,s=this.blockSize,a=o/(4*s),l=(a=e?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*s,d=t.min(4*l,o);if(l){for(var u=0;uDate.now())return i;this.clearSession(t,e)}},t.prototype.storeSession=function(t){var e={expires:Date.now()+36e5,sessionState:t.sessionSpan};localStorage.setItem(this.getStorageKey(t.collector.getConfig().customerId,t.collector.getConfig().formId),JSON.stringify(e))},t.prototype.clearSession=function(t,e){localStorage.removeItem(this.getStorageKey(t,e))},t.prototype.getStorageKey=function(t,e){var n=this.sessionStorageKey;return t&&(n+="/"+t),e&&(n+="/"+e),n},t}(),u=function(){function t(){}return t.getInstance=function(){return void 0===t.instance&&(t.instance=new d),t.instance},t.getSession=function(e,n){return t.getInstance().getSession(e,n)},t.storeSession=function(e){return t.getInstance().storeSession(e)},t.clearSession=function(e,n){return t.getInstance().clearSession(e,n)},t}(),h=function(){function n(n){var r=this;this.context=n,this.sendSessionSpan=function(){r.endSessionSpan(),r.context.isFormSubmitted||r.startSessionSpan()},this.startSessionSpan=function(n){var o,s=(void 0===n?{}:n).sendImmediately,a=void 0!==s&&s;r.context.sessionSpan||(r.setSessionSpan(r.context.collector.startSpan(t.SESSION,r.context.startTime,((o={})[e.FORM_ACTION]=r.context.form.getAttribute("action"),o[e.HTTP_HOST]=r.context.collector.getConfig().httpHost,o[e.HTTP_URL]=r.context.collector.getConfig().httpUrl,o[i.USER_AGENT]=r.context.collector.getConfig().userAgent,o),"",r.context.parentSpanId)),a&&r.sendSessionSpan())},this.endSessionSpan=function(){var t,n,i;void 0!==r.context.sessionSpan&&(null===(n=r.context.sessionSpan)||void 0===n||n.setAttributes((t={},t[e.FORM_LAST_TARGET_ID]=null===(i=r.context.lastFocusTarget)||void 0===i?void 0:i.getNormalizedId().id,t[e.FORM_IS_SUBMITTED]=r.context.isFormSubmitted,t[e.FORM_IS_ATTEMPTED]=r.context.isFormAttempted,t)).end(),r.context.isFormSubmitted?u.clearSession(r.context.collector.getConfig().customerId,r.context.collector.getConfig().formId):u.storeSession(r.context),r.setSessionSpan(void 0))}}return n.prototype.setSessionSpan=function(t){this.context.sessionSpan=t,void 0!==t&&(this.context.parentSpanId=t.spanId)},n}(),f=function(){return f=Object.assign||function(t){for(var e,n=1,i=arguments.length;n