/*! For license information please see ce3a710f-1c853c8e06c4a9216a73.js.LICENSE.txt */ (window.webpackJsonp=window.webpackJsonp||[]).push([[9],{IfQE:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return pi}));var n,i=r("ODXe"),o=r("KQm4"),a=r("1OyB"),s=r("vuIU"),c=r("o0o1"),u=r.n(c);r("IZzc"),r("ToJy");function l(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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 o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r-1?s.split("/").slice(0,3).join("/"):s.split("/")[0]).split("?")[0]+c)).concat(u,")");var p=t.split("/"),d=c.split("/");p.pop();var h,f=l(d);try{for(f.s();!(h=f.n()).done;){var m=h.value;"."!==m&&(".."===m?p.pop():p.push(m))}}catch(g){f.e(g)}finally{f.f()}return"url(".concat(u).concat(p.join("/")).concat(u,")")}))}var R=/^[^ \t\n\r\u000c]+/,N=/^[, \t\n\r\u000c]+/;function D(e,t){if(!t||""===t.trim())return t;var r=e.createElement("a");return r.href=t,r.href}function L(){var e=document.createElement("a");return e.href="",e.href}function A(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?D(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}for(var i=[];n(N),!(r>=t.length);){var o=n(R);if(","===o.slice(-1))o=D(e,o.substring(0,o.length-1)),i.push(o);else{var a="";o=D(e,o);for(var s=!1;;){var c=t.charAt(r);if(""===c){i.push((o+a).trim());break}if(s)")"===c&&(s=!1);else{if(","===c){r+=1,i.push((o+a).trim());break}"("===c&&(s=!0)}a+=c,r+=1}}}return i.join(", ")}(e,n):"style"===r?T(n,L()):"object"===t&&"data"===r?D(e,n):n:D(e,n):n}function q(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function F(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&F(e.parentNode,t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&F(e.parentNode,t,r)}function P(e,t,r,n){try{var i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===i)return!1;if("string"==typeof t){if(n){if(i.closest(".".concat(t)))return!0}else if(i.classList.contains(t))return!0}else if(F(i,t,n))return!0;if(r)if(n){if(i.closest(r))return!0}else if(i.matches(r))return!0}catch(o){}return!1}function j(e,t){var r=t.doc,i=t.mirror,o=t.blockClass,a=t.blockSelector,s=t.needsMask,c=t.inlineStylesheet,u=t.maskInputOptions,l=void 0===u?{}:u,p=t.maskTextFn,d=t.maskInputFn,h=t.dataURLOptions,m=void 0===h?{}:h,g=t.inlineImages,b=t.recordCanvas,w=t.keepIframeSrcFn,C=t.newlyAddedElement,x=void 0!==C&&C,M=function(e,t){if(!t.hasNode(e))return;var r=t.getId(e);return 1===r?void 0:r}(r,i);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:n.Document,childNodes:[],compatMode:e.compatMode}:{type:n.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:n.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:M};case e.ELEMENT_NODE:return function(e,t){for(var r,i=t.doc,o=t.blockClass,a=t.blockSelector,s=t.inlineStylesheet,c=t.maskInputOptions,u=void 0===c?{}:c,l=t.maskInputFn,p=t.dataURLOptions,d=void 0===p?{}:p,h=t.inlineImages,m=t.recordCanvas,g=t.keepIframeSrcFn,b=t.newlyAddedElement,w=void 0!==b&&b,C=t.rootId,x=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(r)return e.matches(r)}catch(o){}return!1}(e,o,a),M=function(e){if(e instanceof HTMLFormElement)return"form";var t=v(e.tagName);return I.test(t)?"div":t}(e),E={},O=e.attributes.length,R=0;R2&&void 0!==arguments[2]?arguments[2]:document,n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}}var W="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",H={map:{},getId:function(){return console.error(W),-1},getNode:function(){return console.error(W),null},removeNodeFromMap:function(){console.error(W)},has:function(){return console.error(W),!1},reset:function(){console.error(W)}};function V(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=null,i=0;return function(){for(var o=arguments.length,a=new Array(o),s=0;st?(n&&(clearTimeout(n),n=null),i=c,e.apply(l,a)):n||!1===r.trailing||(n=setTimeout((function(){i=!1===r.leading?0:Date.now(),n=null,e.apply(l,a)}),u))}}function G(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window,o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout((function(){r.set.call(t,e)}),0),o&&o.set&&o.set.call(this,e)}}),function(){return G(e,t,o||{},!0)}}function J(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(o){return function(){}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(H=new Proxy(H,{get:function(e,t,r){return"map"===t&&console.error(W),Reflect.get(e,t,r)}}));var X=Date.now;function Q(e){var t,r,n,i,o,a,s=e.document;return{left:s.scrollingElement?s.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:(null==s?void 0:s.documentElement.scrollLeft)||(null===(r=null===(t=null==s?void 0:s.body)||void 0===t?void 0:t.parentElement)||void 0===r?void 0:r.scrollLeft)||(null===(n=null==s?void 0:s.body)||void 0===n?void 0:n.scrollLeft)||0,top:s.scrollingElement?s.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==s?void 0:s.documentElement.scrollTop)||(null===(o=null===(i=null==s?void 0:s.body)||void 0===i?void 0:i.parentElement)||void 0===o?void 0:o.scrollTop)||(null===(a=null==s?void 0:s.body)||void 0===a?void 0:a.scrollTop)||0}}function K(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Y(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Z(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function ee(e,t,r,n){if(!e)return!1;var i=Z(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t))return!0;if(n&&null!==i.closest("."+t))return!0}else if(F(i,t,n))return!0}catch(o){}if(r){if(i.matches(r))return!0;if(n&&null!==i.closest(r))return!0}return!1}function te(e,t){return-2===t.getId(e)}function re(e){return Boolean(e.changedTouches)}function ne(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(){for(var t=arguments.length,r=new Array(t),n=0;n=this.length)throw new Error("Position outside of list range");for(var t=this.head,r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=e.doc.defaultView;if(!n)return function(){};Ve(e,r),e.recordDOM&&(t=Oe(e,e.doc));var i=Te(e),o=Re(e),a=Ne(e),s=De(e,{win:n}),c=qe(e),u=Be(e),p=function(){},d=function(){},h=function(){},f=function(){};e.recordDOM&&(p=je(e,{win:n}),d=$e(e,e.doc),h=Ue(e,{win:n}),e.collectFonts&&(f=ze(e)));var m,g=We(e),_=He(e),v=[],y=l(e.plugins);try{for(y.s();!(m=y.n()).done;){var b=m.value;v.push(b.observer(b.callback,n,b.options))}}catch(k){y.e(k)}finally{y.f()}return xe((function(){Me.forEach((function(e){return e.reset()})),null==t||t.disconnect(),i(),o(),a(),s(),c(),u(),p(),d(),h(),f(),g(),_(),v.forEach((function(e){return e()}))}))}function Je(e){return void 0!==window[e]}function Xe(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var Qe=function(){function e(t){Object(a.a)(this,e),this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}return Object(s.a)(e,[{key:"getId",value:function(e,t,r,n){var i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e),a=i.get(t);return a||(a=this.generateIdFn(),i.set(t,a),o.set(a,t)),a}},{key:"getIds",value:function(e,t){var r=this,n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map((function(t){return r.getId(e,t,n,i)}))}},{key:"getRemoteId",value:function(e,t,r){var n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;var i=n.get(t);return i||-1}},{key:"getRemoteIds",value:function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);return t.map((function(t){return r.getRemoteId(e,t,n)}))}},{key:"reset",value:function(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}},{key:"getIdToRemoteIdMap",value:function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}},{key:"getRemoteIdToIdMap",value:function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}]),e}(),Ke=function(){function e(t){Object(a.a)(this,e),this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Qe(C),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Qe(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}return Object(s.a)(e,[{key:"addIframe",value:function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}},{key:"addLoadListener",value:function(e){this.loadListener=e}},{key:"attachIframe",value:function(e,t){var r;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(r=this.loadListener)||void 0===r||r.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}},{key:"handleMessage",value:function(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin&&e.source){var r=this.crossOriginIframeMap.get(e.source);if(r){var n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}}}},{key:"transformCrossOriginEvent",value:function(e,t){var r,n=this;switch(t.type){case pe.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:pe.IncrementalSnapshot,data:{source:de.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case pe.Meta:case pe.Load:case pe.DomContentLoaded:return!1;case pe.Plugin:return t;case pe.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case pe.IncrementalSnapshot:switch(t.data.source){case de.Mutation:return t.data.adds.forEach((function(t){n.replaceIds(t,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(t.node,e);var r=n.crossOriginIframeRootIdMap.get(e);r&&n.patchRootIdOnNode(t.node,r)})),t.data.removes.forEach((function(t){n.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((function(t){n.replaceIds(t,e,["id"])})),t.data.texts.forEach((function(t){n.replaceIds(t,e,["id"])})),t;case de.Drag:case de.TouchMove:case de.MouseMove:return t.data.positions.forEach((function(t){n.replaceIds(t,e,["id"])})),t;case de.ViewportResize:return!1;case de.MediaInteraction:case de.MouseInteraction:case de.Scroll:case de.CanvasMutation:case de.Input:return this.replaceIds(t.data,e,["id"]),t;case de.StyleSheetRule:case de.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case de.Font:return t;case de.Selection:return t.data.ranges.forEach((function(t){n.replaceIds(t,e,["start","end"])})),t;case de.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null===(r=t.data.styles)||void 0===r||r.forEach((function(t){n.replaceStyleIds(t,e,["styleId"])})),t}}return!1}},{key:"replace",value:function(e,t,r,n){var i,o=l(n);try{for(o.s();!(i=o.n()).done;){var a=i.value;(Array.isArray(t[a])||"number"==typeof t[a])&&(Array.isArray(t[a])?t[a]=e.getIds(r,t[a]):t[a]=e.getId(r,t[a]))}}catch(s){o.e(s)}finally{o.f()}return t}},{key:"replaceIds",value:function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}},{key:"replaceStyleIds",value:function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}},{key:"replaceIdOnNode",value:function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((function(e){r.replaceIdOnNode(e,t)}))}},{key:"patchRootIdOnNode",value:function(e,t){var r=this;e.type===n.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((function(e){r.patchRootIdOnNode(e,t)}))}}]),e}(),Ye=function(){function e(t){Object(a.a)(this,e),this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}return Object(s.a)(e,[{key:"init",value:function(){this.reset(),this.patchAttachShadow(Element,document)}},{key:"addShadowRoot",value:function(e,t){var r=this;if(h(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=Oe(Object.assign(Object.assign({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push((function(){return n.disconnect()})),this.restoreHandlers.push(Ne(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout((function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(e.host)),r.restoreHandlers.push($e({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))}),0)}}},{key:"observeAttachShadow",value:function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}},{key:"patchAttachShadow",value:function(e,t){var r=this;this.restoreHandlers.push(J(e.prototype,"attachShadow",(function(e){return function(n){var i=e.call(this,n);return this.shadowRoot&&le(this)&&r.addShadowRoot(this.shadowRoot,t),i}})))}},{key:"reset",value:function(){this.restoreHandlers.forEach((function(e){try{e()}catch(t){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}]),e}();function Ze(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))}for(var et="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tt="undefined"==typeof Uint8Array?[]:new Uint8Array(256),rt=0;rt>2],i+=et[(3&r[t])<<4|r[t+1]>>4],i+=et[(15&r[t+1])<<2|r[t+2]>>6],i+=et[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i}(e)};if(e instanceof DataView)return{rr_type:e.constructor.name,args:[ot(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement)return{rr_type:e.constructor.name,src:e.src};if(e instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}return e instanceof ImageData?{rr_type:e.constructor.name,args:[ot(e.data,t,r),e.width,e.height]}:st(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:it(e,t,r)}:e}var at=function(e,t,r){return e.map((function(e){return ot(e,t,r)}))},st=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((function(e){return"function"==typeof t[e]}));return Boolean(r.find((function(r){return e instanceof t[r]})))};function ct(e){return"experimental-webgl"===e?"webgl":e}function ut(e,t,r,n){var i=[];try{var o=J(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(i){for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s>2],o+=t[(3&n[r])<<4|n[r+1]>>4],o+=t[(15&n[r+1])<<2|n[r+2]>>6],o+=t[63&n[r+2]];return i%3==2?o=o.substring(0,o.length-1)+"=":i%3==1&&(o=o.substring(0,o.length-2)+"=="),o},o=new Map,a=new Map;function s(t,r,n){return e(this,void 0,void 0,u.a.mark((function e(){var o,s,c,l,p;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o="".concat(t,"-").concat(r),!("OffscreenCanvas"in globalThis)){e.next=17;break}if(!a.has(o)){e.next=4;break}return e.abrupt("return",a.get(o));case 4:return(s=new OffscreenCanvas(t,r)).getContext("2d"),e.next=8,s.convertToBlob(n);case 8:return c=e.sent,e.next=11,c.arrayBuffer();case 11:return l=e.sent,p=i(l),a.set(o,p),e.abrupt("return",p);case 17:return e.abrupt("return","");case 18:case"end":return e.stop()}}),e)})))}var c=self;c.onmessage=function(t){return e(this,void 0,void 0,u.a.mark((function e(){var r,n,a,l,p,d,h,f,m,g,_,v;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!("OffscreenCanvas"in globalThis)){e.next=31;break}return r=t.data,n=r.id,a=r.bitmap,l=r.width,p=r.height,d=r.dataURLOptions,h=s(l,p,d),(f=new OffscreenCanvas(l,p)).getContext("2d").drawImage(a,0,0),a.close(),e.next=9,f.convertToBlob(d);case 9:return m=e.sent,g=m.type,e.next=13,m.arrayBuffer();case 13:if(_=e.sent,v=i(_),e.t0=!o.has(n),!e.t0){e.next=22;break}return e.next=19,h;case 19:e.t1=e.sent,e.t2=v,e.t0=e.t1===e.t2;case 22:if(!e.t0){e.next=25;break}return o.set(n,v),e.abrupt("return",c.postMessage({id:n}));case 25:if(o.get(n)!==v){e.next=27;break}return e.abrupt("return",c.postMessage({id:n}));case 27:c.postMessage({id:n,type:g,base64:v,width:l,height:p}),o.set(n,v),e.next=32;break;case 31:return e.abrupt("return",c.postMessage({id:t.data.id}));case 32:case"end":return e.stop()}}),e)})))}}()},dt=null,function(e){return ht=ht||function(e,t){var r=function(e,t){var r=void 0===t?null:t,n=e.toString().split("\n");n.pop(),n.shift();for(var i=n[0].search(/\S/),o=/(['"])__worker_loader_strict__(['"])/g,a=0,s=n.length;a0&&(n.styles=i),this.adoptedStyleSheetCb(n)}}},{key:"reset",value:function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}},{key:"trackStylesheetInLinkElement",value:function(e){}}]),e}(),bt=function(){function e(){Object(a.a)(this,e),this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}return Object(s.a)(e,[{key:"periodicallyClear",value:function(){var e=this;requestAnimationFrame((function(){e.clear(),e.loop&&e.periodicallyClear()}))}},{key:"inOtherBuffer",value:function(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some((function(e){return e!==t}))}},{key:"add",value:function(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}},{key:"clear",value:function(){this.nodeMap=new WeakMap}},{key:"destroy",value:function(){this.loop=!1}}]),e}();function kt(e){return Object.assign(Object.assign({},e),{timestamp:X()})}var St=!1,wt=new g;function It(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.emit,r=e.checkoutEveryNms,n=e.checkoutEveryNth,i=e.blockClass,o=void 0===i?"rr-block":i,a=e.blockSelector,s=void 0===a?null:a,c=e.ignoreClass,u=void 0===c?"rr-ignore":c,p=e.ignoreSelector,d=void 0===p?null:p,h=e.maskTextClass,f=void 0===h?"rr-mask":h,m=e.maskTextSelector,g=void 0===m?null:m,_=e.inlineStylesheet,v=void 0===_||_,y=e.maskAllInputs,b=e.maskInputOptions,k=e.slimDOMOptions,S=e.maskInputFn,w=e.maskTextFn,I=e.hooks,C=e.packFn,x=e.sampling,M=void 0===x?{}:x,E=e.dataURLOptions,O=void 0===E?{}:E,T=e.mousemoveWait,R=e.recordDOM,N=void 0===R||R,D=e.recordCanvas,L=void 0!==D&&D,A=e.recordCrossOriginIframes,q=void 0!==A&&A,F=e.recordAfter,P=void 0===F?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":F,j=e.userTriggeredOnInput,$=void 0!==j&&j,U=e.collectFonts,W=void 0!==U&&U,H=e.inlineImages,V=void 0!==H&&H,G=e.plugins,J=e.keepIframeSrcFn,X=void 0===J?function(){return!1}:J,Z=e.ignoreCSSAttributes,ee=void 0===Z?new Set([]):Z,te=e.errorHandler;Ie(te);var re=!q||window.parent===window,se=!1;if(!re)try{window.parent.document&&(se=!1)}catch(De){se=!0}if(re&&!t)throw new Error("emit function is required");void 0!==T&&void 0===M.mousemove&&(M.mousemove=T),wt.reset();var ce,ue=!0===y?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==b?b:{password:!0},le=!0===k||"all"===k?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===k,headMetaDescKeywords:"all"===k}:k||{};ne();var he=0,fe=function(e){var t,r=l(G||[]);try{for(r.s();!(t=r.n()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}}catch(i){r.e(i)}finally{r.f()}return C&&!se&&(e=C(e)),e};ft=function(e,i){var o;if(!(null===(o=Me[0])||void 0===o?void 0:o.isFrozen())||e.type===pe.FullSnapshot||e.type===pe.IncrementalSnapshot&&e.data.source===de.Mutation||Me.forEach((function(e){return e.unfreeze()})),re)null==t||t(fe(e),i);else if(se){var a={type:"rrweb",event:fe(e),origin:window.location.origin,isCheckout:i};window.parent.postMessage(a,"*")}if(e.type===pe.FullSnapshot)ce=e,he=0;else if(e.type===pe.IncrementalSnapshot){if(e.data.source===de.Mutation&&e.data.isAttachIframe)return;he++;var s=n&&he>=n,c=r&&e.timestamp-ce.timestamp>r;(s||c)&&mt(!0)}};var me,ge=function(e){ft(kt({type:pe.IncrementalSnapshot,data:Object.assign({source:de.Mutation},e)}))},_e=function(e){return ft(kt({type:pe.IncrementalSnapshot,data:Object.assign({source:de.Scroll},e)}))},ve=function(e){return ft(kt({type:pe.IncrementalSnapshot,data:Object.assign({source:de.CanvasMutation},e)}))},ye=function(e){return ft(kt({type:pe.IncrementalSnapshot,data:Object.assign({source:de.AdoptedStyleSheet},e)}))},be=new yt({mutationCb:ge,adoptedStyleSheetCb:ye}),ke=new Ke({mirror:wt,mutationCb:ge,stylesheetManager:be,recordCrossOriginIframes:q,wrappedEmit:ft}),Se=l(G||[]);try{for(Se.s();!(me=Se.n()).done;){var we=me.value;we.getMirror&&we.getMirror({nodeMirror:wt,crossOriginIframeMirror:ke.crossOriginIframeMirror,crossOriginIframeStyleMirror:ke.crossOriginIframeStyleMirror})}}catch(Le){Se.e(Le)}finally{Se.f()}var Ee=new bt;gt=new vt({recordCanvas:L,mutationCb:ve,win:window,blockClass:o,blockSelector:s,mirror:wt,sampling:M.canvas,dataURLOptions:O});var Oe=new Ye({mutationCb:ge,scrollCb:_e,bypassOptions:{blockClass:o,blockSelector:s,maskTextClass:f,maskTextSelector:g,inlineStylesheet:v,maskInputOptions:ue,dataURLOptions:O,maskTextFn:w,maskInputFn:S,recordCanvas:L,inlineImages:V,sampling:M,slimDOMOptions:le,iframeManager:ke,stylesheetManager:be,canvasManager:gt,keepIframeSrcFn:X,processedNodeManager:Ee},mirror:wt});mt=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(N){ft(kt({type:pe.Meta,data:{href:window.location.href,width:Y(),height:K()}}),e),be.reset(),Oe.init(),Me.forEach((function(e){return e.lock()}));var t=B(document,{mirror:wt,blockClass:o,blockSelector:s,maskTextClass:f,maskTextSelector:g,inlineStylesheet:v,maskAllInputs:ue,maskTextFn:w,slimDOM:le,dataURLOptions:O,recordCanvas:L,inlineImages:V,onSerialize:function(e){ie(e,wt)&&ke.addIframe(e),oe(e,wt)&&be.trackLinkElement(e),ae(e)&&Oe.addShadowRoot(e.shadowRoot,document)},onIframeLoad:function(e,t){ke.attachIframe(e,t),Oe.observeAttachShadow(e)},onStylesheetLoad:function(e,t){be.attachLinkElement(e,t)},keepIframeSrcFn:X});if(!t)return console.warn("Failed to snapshot the document");ft(kt({type:pe.FullSnapshot,data:{node:t,initialOffset:Q(window)}}),e),Me.forEach((function(e){return e.unlock()})),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&be.adoptStyleSheets(document.adoptedStyleSheets,wt.getId(document))}};try{var Te=[],Re=function(e){var t;return xe(Ge)({mutationCb:ge,mousemoveCb:function(e,t){return ft(kt({type:pe.IncrementalSnapshot,data:{source:t,positions:e}}))},mouseInteractionCb:function(e){return ft(kt({type:pe.IncrementalSnapshot,data:Object.assign({source:de.MouseInteraction},e)}))},scrollCb:_e,viewportResizeCb:function(e){return ft(kt({type:pe.IncrementalSnapshot,data:Object.assign({source:de.ViewportResize},e)}))},inputCb:function(e){return ft(kt({type:pe.IncrementalSnapshot,data:Object.assign({source:de.Input},e)}))},mediaInteractionCb:function(e){return ft(kt({type:pe.IncrementalSnapshot,data:Object.assign({source:de.MediaInteraction},e)}))},styleSheetRuleCb:function(e){return ft(kt({type:pe.IncrementalSnapshot,data:Object.assign({source:de.StyleSheetRule},e)}))},styleDeclarationCb:function(e){return ft(kt({type:pe.IncrementalSnapshot,data:Object.assign({source:de.StyleDeclaration},e)}))},canvasMutationCb:ve,fontCb:function(e){return ft(kt({type:pe.IncrementalSnapshot,data:Object.assign({source:de.Font},e)}))},selectionCb:function(e){ft(kt({type:pe.IncrementalSnapshot,data:Object.assign({source:de.Selection},e)}))},customElementCb:function(e){ft(kt({type:pe.IncrementalSnapshot,data:Object.assign({source:de.CustomElement},e)}))},blockClass:o,ignoreClass:u,ignoreSelector:d,maskTextClass:f,maskTextSelector:g,maskInputOptions:ue,inlineStylesheet:v,sampling:M,recordDOM:N,recordCanvas:L,inlineImages:V,userTriggeredOnInput:$,collectFonts:W,doc:e,maskInputFn:S,maskTextFn:w,keepIframeSrcFn:X,blockSelector:s,slimDOMOptions:le,dataURLOptions:O,mirror:wt,iframeManager:ke,stylesheetManager:be,shadowDomManager:Oe,processedNodeManager:Ee,canvasManager:gt,ignoreCSSAttributes:ee,plugins:(null===(t=null==G?void 0:G.filter((function(e){return e.observer})))||void 0===t?void 0:t.map((function(e){return{observer:e.observer,options:e.options,callback:function(t){return ft(kt({type:pe.Plugin,data:{plugin:e.name,payload:t}}))}}})))||[]},I)};ke.addLoadListener((function(e){try{Te.push(Re(e.contentDocument))}catch(Zt){console.warn(Zt)}}));var Ne=function(){mt(),Te.push(Re(document)),St=!0};return"interactive"===document.readyState||"complete"===document.readyState?Ne():(Te.push(z("DOMContentLoaded",(function(){ft(kt({type:pe.DomContentLoaded,data:{}})),"DOMContentLoaded"===P&&Ne()}))),Te.push(z("load",(function(){ft(kt({type:pe.Load,data:{}})),"load"===P&&Ne()}),window))),function(){Te.forEach((function(e){return e()})),Ee.destroy(),St=!1,Ce()}}catch(Zt){console.warn(Zt)}}It.addCustomEvent=function(e,t){if(!St)throw new Error("please add custom event after start recording");ft(kt({type:pe.Custom,data:{tag:e,payload:t}}))},It.freezePage=function(){Me.forEach((function(e){return e.freeze()}))},It.takeFullSnapshot=function(e){if(!St)throw new Error("please take full snapshot after start recording");mt(e)},It.mirror=wt;var Ct,xt=function(e){return 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}(xt||{}),Mt=function(e){return 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.CustomElement=16]="CustomElement",e}(Mt||{}),Et={DEBUG:!1,LIB_VERSION:"2.60.0"};if("undefined"==typeof window){var Ot={hostname:""};Ct={navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:Ot,referrer:""},screen:{width:0,height:0},location:Ot,addEventListener:function(){},removeEventListener:function(){}}}else Ct=window;var Tt,Rt,Nt,Dt=Ct.setImmediate,Lt=Object.prototype.toString,At=void 0!==Dt?function(e){return Dt(e)}:setTimeout;try{Object.defineProperty({},"x",{}),Tt=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(di){Tt=function(e,t,r){return e[t]=r,e}}function qt(e,t){Nt.add(e,t),Rt||(Rt=At(Nt.drain))}function Ft(e){var t,r=typeof e;return null===e||"object"!==r&&"function"!==r||(t=e.then),"function"==typeof t&&t}function Pt(){for(var e=0;e0&&qt(Pt,r))}catch(di){Ut.call(new zt(r),di)}}}function Ut(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&qt(Pt,t))}function Bt(e,t,r,n){for(var i=0;i0&&(t[r]=e)})),t},Cr.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):Cr.isArray(e)?(r=[],Cr.each(e,(function(e){r.push(Cr.truncate(e,t))}))):Cr.isObject(e)?(r={},Cr.each(e,(function(e,n){r[n]=Cr.truncate(e,t)}))):r=e,r},Cr.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,(function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'};return function e(r,n){var i="",o=0,a="",s="",c=0,u=i,l=[],p=n[r];switch(p&&"object"==typeof p&&"function"==typeof p.toJSON&&(p=p.toJSON(r)),typeof p){case"string":return t(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(i+=" ",l=[],"[object Array]"===pr.apply(p)){for(c=p.length,o=0;o="0"&&Xt<="9";)t+=Xt,er();if("."===Xt)for(t+=".";er()&&Xt>="0"&&Xt<="9";)t+=Xt;if("e"===Xt||"E"===Xt)for(t+=Xt,er(),"-"!==Xt&&"+"!==Xt||(t+=Xt,er());Xt>="0"&&Xt<="9";)t+=Xt,er();if(e=+t,isFinite(e))return e;Zt("Bad number")},rr=function(){var e,t,r,n="";if('"'===Xt)for(;er();){if('"'===Xt)return er(),n;if("\\"===Xt)if(er(),"u"===Xt){for(r=0,t=0;t<4&&(e=parseInt(er(),16),isFinite(e));t+=1)r=16*r+e;n+=String.fromCharCode(r)}else{if("string"!=typeof Yt[Xt])break;n+=Yt[Xt]}else n+=Xt}Zt("Bad string")},nr=function(){for(;Xt&&Xt<=" ";)er()},ir=function(){var e=[];if("["===Xt){if(er("["),nr(),"]"===Xt)return er("]"),e;for(;Xt;){if(e.push(Kt()),nr(),"]"===Xt)return er("]"),e;er(","),nr()}}Zt("Bad array")},or=function(){var e,t={};if("{"===Xt){if(er("{"),nr(),"}"===Xt)return er("}"),t;for(;Xt;){if(e=rr(),nr(),er(":"),Object.hasOwnProperty.call(t,e)&&Zt('Duplicate key "'+e+'"'),t[e]=Kt(),nr(),"}"===Xt)return er("}"),t;er(","),nr()}}Zt("Bad object")},Kt=function(){switch(nr(),Xt){case"{":return or();case"[":return ir();case'"':return rr();case"-":return tr();default:return Xt>="0"&&Xt<="9"?tr():function(){switch(Xt){case"t":return er("t"),er("r"),er("u"),er("e"),!0;case"f":return er("f"),er("a"),er("l"),er("s"),er("e"),!1;case"n":return er("n"),er("u"),er("l"),er("l"),null}Zt('Unexpected "'+Xt+'"')}()}},function(e){var t;return Qt=e,Jt=0,Xt=" ",t=Kt(),nr(),Xt&&Zt("Syntax error"),t}),Cr.base64Encode=function(e){var t,r,n,i,o,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,c=0,u="",l=[];if(!e)return e;e=Cr.utf8Encode(e);do{t=(o=e.charCodeAt(s++)<<16|e.charCodeAt(s++)<<8|e.charCodeAt(s++))>>18&63,r=o>>12&63,n=o>>6&63,i=63&o,l[c++]=a.charAt(t)+a.charAt(r)+a.charAt(n)+a.charAt(i)}while(s127&&a<2048?String.fromCharCode(a>>6|192,63&a|128):String.fromCharCode(a>>12|224,a>>6&63|128,63&a|128),null!==s&&(r>t&&(o+=e.substring(t,r)),o+=s,t=r=i+1)}return r>t&&(o+=e.substring(t,e.length)),o},Cr.UUID=(ar=function(){var e,t=1*new Date;if(Ct.performance&&Ct.performance.now)e=Ct.performance.now();else for(e=0;t==1*new Date;)e++;return t.toString(16)+Math.floor(e).toString(16)},function(){var e=(_r.height*_r.width).toString(16);return ar()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var e,t,r=vr,n=[],i=0;function o(e,t){var r,i=0;for(r=0;r=4&&(i=o(i,n),n=[]);return n.length>0&&(i=o(i,n)),i.toString(16)}()+"-"+e+"-"+ar()});var Tr=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];Cr.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t=0}function n(t){if(!mr.getElementsByTagName)return[];var n,i,o,a,s,c,u,l,p,d,h=t.split(" "),f=[mr];for(c=0;c-1){o=(i=n.split("#"))[0];var m=i[1],g=mr.getElementById(m);if(!g||o&&g.nodeName.toLowerCase()!=o)return[];f=[g]}else if(n.indexOf(".")>-1){o=(i=n.split("."))[0];var _=i[1];for(o||(o="*"),a=[],s=0,u=0;u-1};break;default:y=function(e){return e.getAttribute(b)}}for(f=[],d=0,u=0;u=3?t[2]:""},currentUrl:function(){return Ct.location.href},properties:function(e){return"object"!=typeof e&&(e={}),Cr.extend(Cr.strip_empty_properties({$os:Cr.info.os(),$browser:Cr.info.browser(vr,fr.vendor,gr),$referrer:mr.referrer,$referring_domain:Cr.info.referringDomain(mr.referrer),$device:Cr.info.device(vr)}),{$current_url:Cr.info.currentUrl(),$browser_version:Cr.info.browserVersion(vr,fr.vendor,gr),$screen_height:_r.height,$screen_width:_r.width,mp_lib:"web",$lib_version:Et.LIB_VERSION,$insert_id:qr(),time:Cr.timestamp()/1e3},Cr.strip_empty_properties(e))},people_properties:function(){return Cr.extend(Cr.strip_empty_properties({$os:Cr.info.os(),$browser:Cr.info.browser(vr,fr.vendor,gr)}),{$browser_version:Cr.info.browserVersion(vr,fr.vendor,gr)})},mpPageViewProperties:function(){return Cr.strip_empty_properties({current_page_title:mr.title,current_domain:Ct.location.hostname,current_url_path:Ct.location.pathname,current_url_protocol:Ct.location.protocol,current_url_search:Ct.location.search})}};var qr=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},Fr=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Pr=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,jr=function(e){var t=Pr,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=Fr);var i=e.match(t);return i?i[0]:""},$r=null,Ur=null;"undefined"!=typeof JSON&&($r=JSON.stringify,Ur=JSON.parse),$r=$r||Cr.JSONEncode,Ur=Ur||Cr.JSONDecode,Cr.toArray=Cr.toArray,Cr.isObject=Cr.isObject,Cr.JSONEncode=Cr.JSONEncode,Cr.JSONDecode=Cr.JSONDecode,Cr.isBlockedUA=Cr.isBlockedUA,Cr.isEmptyObject=Cr.isEmptyObject,Cr.info=Cr.info,Cr.info.device=Cr.info.device,Cr.info.browser=Cr.info.browser,Cr.info.browserVersion=Cr.info.browserVersion,Cr.info.properties=Cr.info.properties,Cr.NPO=Ht;function Br(e,t){Zr(!0,e,t)}function zr(e,t){Zr(!1,e,t)}function Wr(e,t){return"1"===Yr(e,t)}function Hr(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||Ct,r=t.navigator||{},n=!1;return Cr.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],(function(e){Cr.includes([!0,1,"1","yes"],e)&&(n=!0)})),n}(t))return xr.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===Yr(e,t);return r&&xr.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function Vr(e){return en(e,(function(e){return this.get_config(e)}))}function Gr(e){return en(e,(function(e){return this._get_config(e)}))}function Jr(e){return en(e,(function(e){return this._get_config(e)}))}function Xr(e,t){Qr(t=t||{}).remove(Kr(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function Qr(e){return"localStorage"===(e=e||{}).persistenceType?Cr.localStorage:Cr.cookie}function Kr(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function Yr(e,t){return Qr(t).get(Kr(e,t))}function Zr(e,t,r){Cr.isString(t)&&t.length?(Qr(r=r||{}).set(Kr(t,r),e?1:0,Cr.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})):xr.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function en(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),a=t.call(this,"opt_out_tracking_cookie_prefix"),s=t.call(this,"window");n&&(r=Hr(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:a,window:s}))}catch(di){xr.error("Unexpected error when checking tracking opt-out status: "+di)}if(!r)return e.apply(this,arguments);var c=arguments[arguments.length-1];"function"==typeof c&&c(0)}}var tn=Er("lock"),rn=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||Vt};rn.prototype.withLock=function(e,t){return new(0,this.promiseImpl)(Cr.bind((function(r,n){var i=t||(new Date).getTime()+"|"+Math.random(),o=(new Date).getTime(),a=this.storageKey,s=this.pollIntervalMS,c=this.timeoutMS,u=this.storage,l=a+":X",p=a+":Y",d=a+":Z",h=function(e){if((new Date).getTime()-o>c)return tn.error("Timeout waiting for mutex on "+a+"; clearing lock. ["+i+"]"),u.removeItem(d),u.removeItem(p),void g();setTimeout((function(){try{e()}catch(di){n(di)}}),s*(Math.random()+.1))},f=function e(t,r){t()?r():h((function(){e(t,r)}))},m=function(){var e=u.getItem(p);return(!e||e===i)&&(u.setItem(p,i),u.getItem(p)===i||(Nr(u,!0)||n(new Error("localStorage support dropped while acquiring lock")),!1))},g=function e(){u.setItem(l,i),f(m,(function(){u.getItem(l)!==i?h((function(){u.getItem(p)===i?f((function(){return!u.getItem(d)}),_):e()})):_()}))},_=function(){u.setItem(d,"1");var t=function(){u.removeItem(d),u.getItem(p)===i&&u.removeItem(p),u.getItem(l)===i&&u.removeItem(l)};e().then((function(e){t(),r(e)})).catch((function(e){t(),n(e)}))};try{if(!Nr(u,!0))throw new Error("localStorage support check failed");g()}catch(di){n(di)}}),this))};var nn=function(e){this.storage=e||localStorage};nn.prototype.init=function(){return Vt.resolve()},nn.prototype.setItem=function(e,t){return new Vt(Cr.bind((function(r,n){try{this.storage.setItem(e,t)}catch(i){n(i)}r()}),this))},nn.prototype.getItem=function(e){return new Vt(Cr.bind((function(t,r){var n;try{n=this.storage.getItem(e)}catch(i){r(i)}t(n)}),this))},nn.prototype.removeItem=function(e){return new Vt(Cr.bind((function(t,r){try{this.storage.removeItem(e)}catch(n){r(n)}t()}),this))};var on=Er("batch"),an=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new nn,this.lock=new rn(e,{storage:t.sharedLockStorage||window.localStorage}),this.queueStorage.init()),this.reportError=t.errorReporter||Cr.bind(on.error,on),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1};an.prototype.ensureInit=function(){return this.initialized?Vt.resolve():this.queueStorage.init().then(Cr.bind((function(){this.initialized=!0}),this)).catch(Cr.bind((function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1}),this))},an.prototype.enqueue=function(e,t){var r={id:qr(),flushAfter:(new Date).getTime()+2*t,payload:e};if(this.usePersistence){var n=Cr.bind((function(){return this.ensureInit().then(Cr.bind((function(){return this.readFromStorage()}),this)).then(Cr.bind((function(e){return e.push(r),this.saveToStorage(e)}),this)).then(Cr.bind((function(e){return e&&this.memQueue.push(r),e}),this)).catch(Cr.bind((function(t){return this.reportError("Error enqueueing item",t,e),!1}),this))}),this);return this.lock.withLock(n,this.pid).catch(Cr.bind((function(e){return this.reportError("Error acquiring storage lock",e),!1}),this))}return this.memQueue.push(r),Vt.resolve(!0)},an.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.lengtho.flushAfter&&!n[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t}),this)):Vt.resolve(t)};var sn=function(e,t){var r=[];return Cr.each(e,(function(e){e.id&&!t[e.id]&&r.push(e)})),r};an.prototype.removeItemsByID=function(e){var t={};if(Cr.each(e,(function(e){t[e]=!0})),this.memQueue=sn(this.memQueue,t),this.usePersistence){var r=Cr.bind((function(){return this.ensureInit().then(Cr.bind((function(){return this.readFromStorage()}),this)).then(Cr.bind((function(e){return e=sn(e,t),this.saveToStorage(e)}),this)).then(Cr.bind((function(){return this.readFromStorage()}),this)).then(Cr.bind((function(e){for(var r=0;r5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&a.push(t)}s[e.id]=t}),this),a.length<1)return this.requestInProgress=!1,this.resetFlush(),Vt.resolve();var c=Cr.bind((function(){return this.queue.removeItemsByID(Cr.map(i,(function(e){return e.id}))).then(Cr.bind((function(e){return Cr.each(i,Cr.bind((function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})}),this)),e?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o?(this.resetFlush(),Vt.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),Vt.resolve())}),this))}),this),u=Cr.bind((function(o){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(s);if(Cr.isObject(o)&&"timeout"===o.error&&(new Date).getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(Cr.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&(l=Ct.navigator.onLine,!Cr.isUndefined(l)&&!l)||"timeout"===o.error)){var a=2*this.flushInterval;return o.retryAfter&&(a=1e3*parseInt(o.retryAfter,10)||a),a=Math.min(6e5,a),this.reportError("Error; retry in "+a+" ms"),this.scheduleFlush(a),Vt.resolve()}if(Cr.isObject(o)&&413===o.httpStatusCode){if(i.length>1){var u=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,u,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),Vt.resolve()}return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),c()}return c()}catch(di){this.reportError("Error handling API response",di),this.resetFlush()}var l}),this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(l.transport="sendBeacon"),un.log("MIXPANEL REQUEST:",a),this.sendRequestPromise(a,l).then(u)}),this)).catch(Cr.bind((function(e){this.reportError("Error flushing request queue",e),this.resetFlush()}),this))},ln.prototype.reportError=function(e,t){if(un.error.apply(un.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){un.error(t)}};var pn=Er("recorder"),dn=Ct.CompressionStream,hn={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},fn=new Set([Mt.MouseMove,Mt.MouseInteraction,Mt.Scroll,Mt.ViewportResize,Mt.Input,Mt.TouchMove,Mt.MediaInteraction,Mt.Drag,Mt.Selection]);var mn=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout,this._onMaxLengthReached=e.onMaxLengthReached,this._rrwebRecord=e.rrwebRecord,this.replayId=e.replayId,this._stopRecording=null,this.seqNo=0,this.replayStartTime=null,this.replayStartUrl=null,this.batchStartUrl=null,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=864e5,this.recordMinMs=0;var t="__mprec_"+this.getConfig("token")+"_"+this.replayId;this.batcher=new ln(t,{errorReporter:Cr.bind(this.reportError,this),flushOnlyOnInterval:!0,libConfig:hn,sendRequestFunc:Cr.bind(this.flushEventsWithOptOut,this),usePersistence:!1})};mn.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},mn.prototype.get_config=function(e){return this.getConfig(e)},mn.prototype.startRecording=function(e){if(null===this._stopRecording){this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>864e5&&(this.recordMaxMs=864e5,pn.critical("record_max_ms cannot be greater than 86400000ms. Capping value.")),this.recordMinMs=this.getConfig("record_min_ms"),this.recordMinMs>8e3&&(this.recordMinMs=8e3,pn.critical("record_min_ms cannot be greater than 8000ms. Capping value.")),this.replayStartTime=(new Date).getTime(),this.batchStartUrl=Cr.info.currentUrl(),this.replayStartUrl=Cr.info.currentUrl(),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=Cr.bind((function(){clearTimeout(this.idleTimeoutId),this.idleTimeoutId=setTimeout(this._onIdleTimeout,this.getConfig("record_idle_timeout_ms"))}),this),r=this.getConfig("record_block_selector");if(""!==r&&null!==r||(r=void 0),this._stopRecording=this._rrwebRecord({emit:Cr.bind((function(e){this.batcher.enqueue(e),function(e){return e.type===xt.IncrementalSnapshot&&fn.has(e.data.source)}(e)&&(this.batcher.stopped&&(new Date).getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t())}),this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector"),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15}}),"function"!=typeof this._stopRecording)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();t(),this.maxTimeoutId=setTimeout(Cr.bind(this._onMaxLengthReached,this),this.recordMaxMs)}else pn.log("Recording already in progress, skipping startRecording.")},mn.prototype.stopRecording=function(){if(!this.isRrwebStopped()){try{this._stopRecording()}catch(di){this.reportError("Error with rrweb stopRecording",di)}this._stopRecording=null}this.batcher.stopped?this.batcher.clear():(this.batcher.flush(),this.batcher.stop()),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId)},mn.prototype.isRrwebStopped=function(){return null===this._stopRecording},mn.prototype.flushEventsWithOptOut=function(e,t,r){this._flushEvents(e,t,r,Cr.bind(this._onOptOut,this))},mn.prototype._onOptOut=function(e){0===e&&this.stopRecording()},mn.prototype._sendRequest=function(e,t,r,n){var i=Cr.bind((function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=Cr.info.currentUrl()),n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}),this);Ct.fetch(this.getConfig("api_host")+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then((function(e){e.json().then((function(t){i(e,t)})).catch((function(e){n({error:e})}))})).catch((function(e){n({error:e,httpStatusCode:0})}))},mn.prototype._flushEvents=Vr((function(e,t,r){var n=e.length;if(n>0){var i=this.replayId,o=e[0].timestamp;0!==this.seqNo&&this.replayStartTime||(0!==this.seqNo&&this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=o);var a=e[n-1].timestamp-this.replayStartTime,s={$current_url:this.batchStartUrl,$lib_version:Et.LIB_VERSION,batch_start_time:o/1e3,distinct_id:String(this._mixpanel.get_distinct_id()),mp_lib:"web",replay_id:i,replay_length_ms:a,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},c=Cr.JSONEncode(e),u=this._mixpanel.get_property("$device_id");u&&(s.$device_id=u);var l=this._mixpanel.get_property("$user_id");if(l&&(s.$user_id=l),dn){var p=new Blob([c],{type:"application/json"}).stream().pipeThrough(new dn("gzip"));new Response(p).blob().then(Cr.bind((function(e){s.format="gzip",this._sendRequest(i,s,e,r)}),this))}else s.format="body",this._sendRequest(i,s,c,r)}})),mn.prototype.reportError=function(e,t){pn.error.apply(pn.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(t){pn.error(t)}};var gn=Er("recorder"),_n=function(e){this._mixpanel=e,this.activeRecording=null};_n.prototype.startRecording=function(e){if(!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=Cr.bind((function(){gn.log("Idle timeout reached, restarting recording."),this.resetRecording()}),this),r=Cr.bind((function(){gn.log("Max recording length reached, stopping recording."),this.resetRecording()}),this);this.activeRecording=new mn({mixpanelInstance:this._mixpanel,onIdleTimeout:t,onMaxLengthReached:r,replayId:Cr.UUID(),rrwebRecord:It}),this.activeRecording.startRecording(e)}else gn.log("Recording already in progress, skipping startRecording.")},_n.prototype.stopRecording=function(){this.activeRecording&&(this.activeRecording.stopRecording(),this.activeRecording=null)},_n.prototype.resetRecording=function(){this.stopRecording(),this.startRecording(!0)},_n.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(_n.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),Ct.__mp_recorder=_n;var vn=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],yn=["mp-include"],bn=["mp-no-track"],kn=bn.concat(["mp-sensitive"]),Sn=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],wn=Er("autocapture");function In(e){for(var t={},r=Cn(e).split(" "),n=0;nthis.lastScrollCheckpoint)for(var a=0;a=s&&this.lastScrollCheckpoint=0;p--)c=this._mixpanel.persistence.load_queue("$append"),u=c.pop(),s._mixpanel.persistence.save(),Cr.isEmptyObject(u)||s.append(u,l);var d=this._mixpanel.persistence.load_queue("$remove");if(!Cr.isUndefined(d)&&Cr.isArray(d)&&d.length)for(var h,f=function(e,t){0===e&&s._mixpanel.persistence._add_to_people_queue("$remove",h),Cr.isUndefined(a)||a(e,t)},m=d.length-1;m>=0;m--)d=this._mixpanel.persistence.load_queue("$remove"),h=d.pop(),s._mixpanel.persistence.save(),Cr.isEmptyObject(h)||s.remove(h,f)},Hn.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},Hn.prototype.set=Hn.prototype.set,Hn.prototype.set_once=Hn.prototype.set_once,Hn.prototype.unset=Hn.prototype.unset,Hn.prototype.increment=Hn.prototype.increment,Hn.prototype.append=Hn.prototype.append,Hn.prototype.remove=Hn.prototype.remove,Hn.prototype.union=Hn.prototype.union,Hn.prototype.track_charge=Hn.prototype.track_charge,Hn.prototype.clear_charges=Hn.prototype.clear_charges,Hn.prototype.delete_user=Hn.prototype.delete_user,Hn.prototype.toString=Hn.prototype.toString;var Vn,Gn=["__mps","__mpso","__mpus","__mpa","__mpap","__mpr","__mpu","$people_distinct_id","__alias","__timers"],Jn=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(xr.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&Cr.localStorage.is_supported()?this.storage=Cr.localStorage:this.storage=Cr.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};Jn.prototype.properties=function(){var e={};return this.load(),Cr.each(this.props,(function(t,r){Cr.include(Gn,r)||(e[r]=t)})),e},Jn.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=Cr.extend({},e))}},Jn.prototype.upgrade=function(){var e,t;this.storage===Cr.localStorage?(e=Cr.cookie.parse(this.name),Cr.cookie.remove(this.name),Cr.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===Cr.cookie&&(t=Cr.localStorage.parse(this.name),Cr.localStorage.remove(this.name),t&&this.register_once(t))},Jn.prototype.save=function(){this.disabled||this.storage.set(this.name,Cr.JSONEncode(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},Jn.prototype.load_prop=function(e){return this.load(),this.props[e]},Jn.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},Jn.prototype.clear=function(){this.remove(),this.props={}},Jn.prototype.register_once=function(e,t,r){return!!Cr.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),Cr.each(e,(function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)}),this),this.save(),!0)},Jn.prototype.register=function(e,t){return!!Cr.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),Cr.extend(this.props,e),this.save(),!0)},Jn.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},Jn.prototype.update_search_keyword=function(e){this.register(Cr.info.searchInfo(e))},Jn.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:Cr.info.referringDomain(e)||"$direct"},"")},Jn.prototype.get_referrer_info=function(){return Cr.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},Jn.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},Jn.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},Jn.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},Jn.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},Jn.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},Jn.prototype.get_cross_subdomain=function(){return this.cross_subdomain},Jn.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},Jn.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue("$set"),o=this._get_or_create_queue("$set_once"),a=this._get_or_create_queue("$unset"),s=this._get_or_create_queue("$add"),c=this._get_or_create_queue("$union"),u=this._get_or_create_queue("$remove",[]),l=this._get_or_create_queue("$append",[]);"__mps"===r?(Cr.extend(i,n),this._pop_from_people_queue("$add",n),this._pop_from_people_queue("$union",n),this._pop_from_people_queue("$unset",n)):"__mpso"===r?(Cr.each(n,(function(e,t){t in o||(o[t]=e)})),this._pop_from_people_queue("$unset",n)):"__mpus"===r?Cr.each(n,(function(e){Cr.each([i,o,s,c],(function(t){e in t&&delete t[e]})),Cr.each(l,(function(t){e in t&&delete t[e]})),a[e]=!0})):"__mpa"===r?(Cr.each(n,(function(e,t){t in i?i[t]+=e:(t in s||(s[t]=0),s[t]+=e)}),this),this._pop_from_people_queue("$unset",n)):"__mpu"===r?(Cr.each(n,(function(e,t){Cr.isArray(e)&&(t in c||(c[t]=[]),Cr.each(e,(function(e){Cr.include(c[t],e)||c[t].push(e)})))})),this._pop_from_people_queue("$unset",n)):"__mpr"===r?(u.push(n),this._pop_from_people_queue("$append",n)):"__mpap"===r&&(l.push(n),this._pop_from_people_queue("$unset",n)),xr.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),xr.log(t),this.save()},Jn.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];Cr.isUndefined(r)||Cr.each(t,(function(t,n){"$append"===e||"$remove"===e?Cr.each(r,(function(e){e[n]===t&&delete e[n]})):delete r[n]}),this)},Jn.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},Jn.prototype._get_queue_key=function(e){return"$set"===e?"__mps":"$set_once"===e?"__mpso":"$unset"===e?"__mpus":"$add"===e?"__mpa":"$append"===e?"__mpap":"$remove"===e?"__mpr":"$union"===e?"__mpu":void xr.error("Invalid queue:",e)},Jn.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=Cr.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},Jn.prototype.set_event_timer=function(e,t){var r=this.load_prop("__timers")||{};r[e]=t,this.props.__timers=r,this.save()},Jn.prototype.remove_event_timer=function(e){var t=(this.load_prop("__timers")||{})[e];return Cr.isUndefined(t)||(delete this.props.__timers[e],this.save()),t};var Xn,Qn=function(e,t){throw new Error(e+" not available in this build.")},Kn=function(e){return e},Yn=function(){},Zn=Ct.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,ei=!Zn&&-1===vr.indexOf("MSIE")&&-1===vr.indexOf("Mozilla"),ti=null;fr.sendBeacon&&(ti=function(){return fr.sendBeacon.apply(fr,arguments)});var ri={track:"track/",engage:"engage/",groups:"groups/",record:"record/"},ni={api_host:"https://api-js.mixpanel.com",api_routes:ri,api_method:"POST",api_transport:"XHR",api_payload_format:"base64",app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Yn,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Yn,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video",record_canvas:!1,record_collect_fonts:!1,record_idle_timeout_ms:18e5,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:864e5,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},ii=!1,oi=function(){},ai=function(e,t,r){var n,i="mixpanel"===r?Xn:Xn[r];if(i&&0===Vn)n=i;else{if(i&&!Cr.isArray(i))return void xr.error("You have already initialized "+r);n=new oi}if(n._cached_groups={},n._init(e,t,r),n.people=new Hn,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var o=Cr.info.campaignParams(null),a={},s=!1;Cr.each(o,(function(e,t){a["initial_"+t]=e,e&&(s=!0)})),s&&n.people.set_once(a)}return Et.DEBUG=Et.DEBUG||n.get_config("debug"),!Cr.isUndefined(i)&&Cr.isArray(i)&&(n._execute_array.call(n.people,i.people),n._execute_array(i)),n};oi.prototype.init=function(e,t,r){if(Cr.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if("mixpanel"!==r){var n=ai(e,t,r);return Xn[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},oi.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};"api_payload_format"in t||(t.api_host||ni.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format="json");if(this.set_config(Cr.extend({},ni,n,t,{name:r,token:e,callback_fn:("mixpanel"===r?r:"mixpanel."+r)+"._jsc"})),this._jsc=Yn,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(Cr.localStorage.is_supported(!0)&&Zn){if(this.init_batchers(),ti&&Ct.addEventListener){var i=Cr.bind((function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})}),this);Ct.addEventListener("pagehide",(function(e){e.persisted&&i()})),Ct.addEventListener("visibilitychange",(function(){"hidden"===mr.visibilityState&&i()}))}}else this._batch_requests=!1,xr.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),Cr.each(this.get_batcher_configs(),(function(e){xr.log("Clearing batch queue "+e.queue_key),Cr.localStorage.remove(e.queue_key)}));this.persistence=this.cookie=new Jn(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=Cr.UUID();this.get_distinct_id()||this.register_once({distinct_id:"$device:"+o,$device_id:o},""),this.autocapture=new jn(this),this.autocapture.init(),this.get_config("record_sessions_percent")>0&&100*Math.random()<=this.get_config("record_sessions_percent")&&this.start_session_recording()},oi.prototype.start_session_recording=Vr((function(){if(Ct.MutationObserver){var e=Cr.bind((function(){this._recorder=this._recorder||new Ct.__mp_recorder(this),this._recorder.startRecording()}),this);Cr.isUndefined(Ct.__mp_recorder)?Qn(this.get_config("recorder_src"),e):e()}else xr.critical("Browser does not support MutationObserver; skipping session recording")})),oi.prototype.stop_session_recording=function(){this._recorder?this._recorder.stopRecording():xr.critical("Session recorder module not loaded")},oi.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e.$mp_replay_id=t),e},oi.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();t&&(e="https://mixpanel.com/projects/replay-redirect?"+Cr.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")}));return e},oi.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},oi.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=Cr.info.campaignParams(null);Cr.each(e,function(e,t){this.unregister(t)}.bind(this))}},oi.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(mr.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(Cr.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(mr.referrer)},oi.prototype._dom_loaded=function(){Cr.each(this.__dom_loaded_queue,(function(e){this._track_dom.apply(this,e)}),this),this.has_opted_out_tracking()||Cr.each(this.__request_queue,(function(e){this._send_request.apply(this,e)}),this),delete this.__dom_loaded_queue,delete this.__request_queue},oi.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!ii)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},oi.prototype._prepare_callback=function(e,t){if(Cr.isUndefined(e))return null;if(Zn){return function(r){e(r,t)}}var r=this._jsc,n=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+n+"]";return r[n]=function(i){delete r[n],e(i,t)},i},oi.prototype._send_request=function(e,t,r,n){var i=!0;if(ei)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},a=null;n||!Cr.isFunction(r)&&"string"!=typeof r||(n=r,r=null),r=Cr.extend(o,r||{}),Zn||(r.method="GET");var s="POST"===r.method,c=ti&&s&&"sendbeacon"===r.transport.toLowerCase(),u=r.verbose;t.verbose&&(u=!0),this.get_config("test")&&(t.test=1),u&&(t.verbose=1),this.get_config("img")&&(t.img=1),Zn||(n?t.callback=n:(u||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=(new Date).getTime().toString(),s&&(a="data="+encodeURIComponent(t.data),delete t.data),e+="?"+Cr.HTTPBuildQuery(t);var l=this;if("img"in t){var p=mr.createElement("img");p.src=e,mr.body.appendChild(p)}else if(c){try{i=ti(e,a)}catch(_){l.report_error(_),i=!1}try{n&&n(i?1:0)}catch(_){l.report_error(_)}}else if(Zn)try{var d=new XMLHttpRequest;d.open(r.method,e,!0);var h=this.get_config("xhr_headers");if(s&&(h["Content-Type"]="application/x-www-form-urlencoded"),Cr.each(h,(function(e,t){d.setRequestHeader(t,e)})),r.timeout_ms&&void 0!==d.timeout){d.timeout=r.timeout_ms;var f=(new Date).getTime()}d.withCredentials=!0,d.onreadystatechange=function(){var e;if(4===d.readyState)if(200===d.status){if(n)if(u){var t;try{t=Cr.JSONDecode(d.responseText)}catch(_){if(l.report_error(_),!r.ignore_json_errors)return;t=d.responseText}n(t)}else n(Number(d.responseText))}else if(e=d.timeout&&!d.status&&(new Date).getTime()-f>=d.timeout?"timeout":"Bad HTTP status: "+d.status+" "+d.statusText,l.report_error(e),n)if(u){var i=d.responseHeaders||{};n({status:0,httpStatusCode:d.status,error:e,retryAfter:i["Retry-After"]})}else n(0)},d.send(a)}catch(_){l.report_error(_),i=!1}else{var m=mr.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=e;var g=mr.getElementsByTagName("script")[0];g.parentNode.insertBefore(m,g)}return i},oi.prototype._execute_array=function(e){var t,r=[],n=[],i=[];Cr.each(e,(function(e){e&&(t=e[0],Cr.isArray(t)?i.push(e):"function"==typeof e?e.call(this):Cr.isArray(e)&&"alias"===t?r.push(e):Cr.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))}),this);var o=function(e,t){Cr.each(e,(function(e){if(Cr.isArray(e[0])){var r=t;Cr.each(e,(function(e){r=r[e[0]].apply(r,e.slice(1))}))}else this[e[0]].apply(this,e.slice(1))}),t)};o(r,this),o(n,this),o(i,this)},oi.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},oi.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token"),t=this.get_config("api_routes");return this._batcher_configs=this._batcher_configs||{events:{type:"events",endpoint:"/"+t.track,queue_key:e+"_ev"},people:{type:"people",endpoint:"/"+t.engage,queue_key:e+"_pp"},groups:{type:"groups",endpoint:"/"+t.groups,queue_key:e+"_gr"}},this._batcher_configs},oi.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=Cr.bind((function(e){return new ln(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:Cr.bind((function(t,r,n){this._send_request(this.get_config("api_host")+e.endpoint,this._encode_data_for_request(t),r,this._prepare_callback(n,t))}),this),beforeSendHook:Cr.bind((function(t){return this._run_hook("before_send_"+e.type,t)}),this),stopAllBatchingFunc:Cr.bind(this.stop_batch_senders,this),usePersistence:!0})}),this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},oi.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,Cr.each(this.request_batchers,(function(e){e.start()})))},oi.prototype.stop_batch_senders=function(){this._batch_requests=!1,Cr.each(this.request_batchers,(function(e){e.stop(),e.clear()}))},oi.prototype.push=function(e){this._execute_array([e])},oi.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},oi.prototype._encode_data_for_request=function(e){var t=Cr.JSONEncode(e);return"base64"===this.get_config("api_payload_format")&&(t=Cr.base64Encode(t)),{data:t}},oi.prototype._track_or_batch=function(e,t){var r=Cr.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,a=e.send_request_options||{};t=t||Yn;var s=!0,c=Cr.bind((function(){return a.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r?(xr.log("MIXPANEL REQUEST:"),xr.log(r),this._send_request(n,this._encode_data_for_request(r),a,this._prepare_callback(t,r))):null}),this);return this._batch_requests&&!o?i.enqueue(r).then((function(e){e?t(1,r):c()})):s=c(),s&&r},oi.prototype.track=Vr((function(e,t,r,n){n||"function"!=typeof r||(n=r,r=null);var i=(r=r||{}).transport;i&&(r.transport=i);var o=r.send_immediately;if("function"!=typeof n&&(n=Yn),Cr.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=Cr.extend({},t)).token=this.get_config("token");var a=this.persistence.remove_event_timer(e);if(!Cr.isUndefined(a)){var s=(new Date).getTime()-a;t.$duration=parseFloat((s/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?Cr.info.marketingParams():{};t=Cr.extend({},Cr.info.properties({mp_loader:this.get_config("mp_loader")}),c,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var u=this.get_config("property_blacklist");Cr.isArray(u)?Cr.each(u,(function(e){delete t[e]})):this.report_error("Invalid value for property_blacklist config: "+u);var l={event:e,properties:t};return this._track_or_batch({type:"events",data:l,endpoint:this.get_config("api_host")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:r},n)}n(0)}})),oi.prototype.set_group=Vr((function(e,t,r){Cr.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)})),oi.prototype.add_group=Vr((function(e,t,r){var n=this.get_property(e),i={};return void 0===n?(i[e]=[t],this.register(i)):-1===n.indexOf(t)&&(n.push(t),i[e]=n,this.register(i)),this.people.union(e,t,r)})),oi.prototype.remove_group=Vr((function(e,t,r){var n=this.get_property(e);if(void 0!==n){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this.people.remove(e,t,r)})),oi.prototype.track_with_groups=Vr((function(e,t,r,n){var i=Cr.extend({},t||{});return Cr.each(r,(function(e,t){null!=e&&(i[t]=e)})),this.track(e,i,n)})),oi.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},oi.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},oi.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return void 0!==n&&n._group_key===e&&n._group_id===t||((n=new Wn)._init(this,e,t),this._cached_groups[r]=n),n},oi.prototype.track_pageview=Vr((function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=Cr.extend(Cr.info.mpPageViewProperties(),Cr.info.campaignParams(),Cr.info.clickParams()),i=Cr.extend({},n,e);return this.track(r,i)})),oi.prototype.track_links=function(){return this._track_dom.call(this,Un,arguments)},oi.prototype.track_forms=function(){return this._track_dom.call(this,Bn,arguments)},oi.prototype.time_event=function(e){Cr.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,(new Date).getTime())};var si={persistent:!0},ci=function(e){var t;return t=Cr.isObject(e)?e:Cr.isUndefined(e)?{}:{days:e},Cr.extend({},si,t)};oi.prototype.register=function(e,t){var r=ci(t);r.persistent?this.persistence.register(e,r.days):Cr.extend(this.unpersisted_superprops,e)},oi.prototype.register_once=function(e,t,r){var n=ci(r);n.persistent?this.persistence.register_once(e,t,n.days):(void 0===t&&(t="None"),Cr.each(e,(function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)}),this))},oi.prototype.unregister=function(e,t){(t=ci(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},oi.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},oi.prototype.identify=function(e,t,r,n,i,o,a,s){var c=this.get_distinct_id();if(e&&c!==e){if("string"==typeof e&&0===e.indexOf("$device:"))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var u=c;this.register_once({$had_persisted_distinct_id:!0,$device_id:u},"")}e!==c&&e!==this.get_property("__alias")&&(this.unregister("__alias"),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,i,o,a,s),e!==c&&this.track("$identify",{distinct_id:e,$anon_distinct_id:c},{skip_hooks:!0})},oi.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=Cr.UUID();this.register_once({distinct_id:"$device:"+e,$device_id:e},"")},oi.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},oi.prototype.alias=function(e,t){if(e===this.get_property("$people_distinct_id"))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return Cr.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single("__alias",e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},(function(){r.identify(e)}))):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},oi.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},oi.prototype.set_config=function(e){Cr.isObject(e)&&(Cr.extend(this.config,e),e.batch_size&&Cr.each(this.request_batchers,(function(e){e.resetBatchSize()})),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),Et.DEBUG=Et.DEBUG||this.get_config("debug"),"autocapture"in e&&this.autocapture&&this.autocapture.init())},oi.prototype.get_config=function(e){return this.config[e]},oi.prototype._run_hook=function(e){var t=(this.config.hooks[e]||Kn).apply(this,lr.call(arguments,1));return void 0===t&&(this.report_error(e+" hook did not return a value"),t=null),t},oi.prototype.get_property=function(e){return this.persistence.load_prop([e])},oi.prototype.toString=function(){var e=this.get_config("name");return"mixpanel"!==e&&(e="mixpanel."+e),e},oi.prototype._event_is_disabled=function(e){return Cr.isBlockedUA(vr)||this._flags.disable_all_events||Cr.include(this.__disabled_events,e)},oi.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&Cr.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_tracking()||!this.get_config("opt_out_tracking_by_default")&&!Cr.cookie.get("mp_optout")||(Cr.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},oi.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?this.stop_batch_senders():this._batchers_were_started&&this.start_batch_senders()},oi.prototype._gdpr_call_func=function(e,t){return t=Cr.extend({track:Cr.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),Cr.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},oi.prototype.opt_in_tracking=function(e){e=Cr.extend({enable_persistence:!0},e),this._gdpr_call_func(Br,e),this._gdpr_update_persistence(e)},oi.prototype.opt_out_tracking=function(e){(e=Cr.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(zr,e),this._gdpr_update_persistence(e)},oi.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(Wr,e)},oi.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(Hr,e)},oi.prototype.clear_opt_in_out_tracking=function(e){e=Cr.extend({enable_persistence:!0},e),this._gdpr_call_func(Xr,e),this._gdpr_update_persistence(e)},oi.prototype.report_error=function(e,t){xr.error.apply(xr.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){xr.error(t)}},oi.prototype.init=oi.prototype.init,oi.prototype.reset=oi.prototype.reset,oi.prototype.disable=oi.prototype.disable,oi.prototype.time_event=oi.prototype.time_event,oi.prototype.track=oi.prototype.track,oi.prototype.track_links=oi.prototype.track_links,oi.prototype.track_forms=oi.prototype.track_forms,oi.prototype.track_pageview=oi.prototype.track_pageview,oi.prototype.register=oi.prototype.register,oi.prototype.register_once=oi.prototype.register_once,oi.prototype.unregister=oi.prototype.unregister,oi.prototype.identify=oi.prototype.identify,oi.prototype.alias=oi.prototype.alias,oi.prototype.name_tag=oi.prototype.name_tag,oi.prototype.set_config=oi.prototype.set_config,oi.prototype.get_config=oi.prototype.get_config,oi.prototype.get_property=oi.prototype.get_property,oi.prototype.get_distinct_id=oi.prototype.get_distinct_id,oi.prototype.toString=oi.prototype.toString,oi.prototype.opt_out_tracking=oi.prototype.opt_out_tracking,oi.prototype.opt_in_tracking=oi.prototype.opt_in_tracking,oi.prototype.has_opted_out_tracking=oi.prototype.has_opted_out_tracking,oi.prototype.has_opted_in_tracking=oi.prototype.has_opted_in_tracking,oi.prototype.clear_opt_in_out_tracking=oi.prototype.clear_opt_in_out_tracking,oi.prototype.get_group=oi.prototype.get_group,oi.prototype.set_group=oi.prototype.set_group,oi.prototype.add_group=oi.prototype.add_group,oi.prototype.remove_group=oi.prototype.remove_group,oi.prototype.track_with_groups=oi.prototype.track_with_groups,oi.prototype.start_batch_senders=oi.prototype.start_batch_senders,oi.prototype.stop_batch_senders=oi.prototype.stop_batch_senders,oi.prototype.start_session_recording=oi.prototype.start_session_recording,oi.prototype.stop_session_recording=oi.prototype.stop_session_recording,oi.prototype.get_session_recording_properties=oi.prototype.get_session_recording_properties,oi.prototype.get_session_replay_url=oi.prototype.get_session_replay_url,oi.prototype.DEFAULT_API_ROUTES=ri,Jn.prototype.properties=Jn.prototype.properties,Jn.prototype.update_search_keyword=Jn.prototype.update_search_keyword,Jn.prototype.update_referrer_info=Jn.prototype.update_referrer_info,Jn.prototype.get_cross_subdomain=Jn.prototype.get_cross_subdomain,Jn.prototype.clear=Jn.prototype.clear;var ui={},li=function(){Xn.init=function(e,t,r){if(r)return Xn[r]||(Xn[r]=ui[r]=ai(e,t,r),Xn[r]._loaded()),Xn[r];var n=Xn;ui.mixpanel?n=ui.mixpanel:e&&((n=ai(e,t,"mixpanel"))._loaded(),ui.mixpanel=n),Xn=n,1===Vn&&(Ct.mixpanel=Xn),Cr.each(ui,(function(e,t){"mixpanel"!==t&&(Xn[t]=e)})),Xn._=Cr}};var pi=(Qn=function(e,t){t()},Vn=0,Xn=new oi,li(),Xn.init(),function(){function e(){e.done||(e.done=!0,ii=!0,ei=!1,Cr.each(ui,(function(e){e._dom_loaded()})))}if(mr.addEventListener)"complete"===mr.readyState?e():mr.addEventListener("DOMContentLoaded",e,!1);else if(mr.attachEvent){mr.attachEvent("onreadystatechange",e);var t=!1;try{t=null===Ct.frameElement}catch(r){}mr.documentElement.doScroll&&t&&function t(){try{mr.documentElement.doScroll("left")}catch(r){return void setTimeout(t,1)}e()}()}Cr.register_event(Ct,"load",e,!0)}(),Xn)}}]);