PageSourceSearch

https://www.daysies.com/_next/static/chunks/c857e369-a07cafb7e2f6e…?dpl=48aa6c50-62f3-4164-883e-c2c85ae1b48b

js daysies.com collected 2026-10-06 13:20:42 UTC 158,607 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9933],{14679:(e,t,r)=>{let i,n,o,s,a,c;function u(e){let t=null==e?void 0:e.host;return(null==t?void 0:t.shadowRoot)===e}function l(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function p(e){try{var t;let r=e.rules||e.cssRules;return r?((t=Array.from(r,h).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}}function h(e){let t;if("styleSheet"in e)try{t=p(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(e){}else if("selectorText"in e&&e.selectorText.includes(":"))return e.cssText.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2");return t||e.cssText}r.d(t,{A:()=>iL}),function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(e1||(e1={}));class d{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){var t;if(!e)return -1;let r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function f({element:e,maskInputOptions:t,tagName:r,type:i,value:n,maskInputFn:o}){let s=n||"",a=i&&_(i);return(t[r.toLowerCase()]||a&&t[a])&&(s=o?o(s,e):"*".repeat(s.length)),s}function _(e){return e.toLowerCase()}let g="__rrweb_original__";function m(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?_(t):null}function y(e,t){var r;let i;try{i=new URL(e,null!=t?t:window.location.href)}catch(e){return null}let n=i.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(r=null==n?void 0:n[1])?r:null}let v=1,b=RegExp("[^a-z0-9-_:]");function S(){return v++}let k=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,w=/^(?:[a-z+]+:)?\/\//i,I=/^www\..*/i,M=/^(data:)([^,]*),(.*)/i;function E(e,t){return(e||"").replace(k,(e,r,i,n,o,s)=>{let a=i||o||s,c=r||n||"";if(!a)return e;if(w.test(a)||I.test(a)||M.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+a}${c})`;let u=t.split("/"),l=a.split("/");for(let e of(u.pop(),l))if("."===e)continue;else".."===e?u.pop():u.push(e);return`url(${c}${u.join("/")}${c})`})}let C=/^[^ \t\n\r\u000c]+/,x=/^[, \t\n\r\u000c]+/;function O(e,t){if(!t||""===t.trim())return t;let r=e.createElement("a");return r.href=t,r.href}function T(){let e=document.createElement("a");return e.href="",e.href}function R(e,t,r,i){if(!i)return i;if("src"===r||"href"===r&&("use"!==t||"#"!==i[0])||"xlink:href"===r&&"#"!==i[0])return O(e,i);if("background"===r&&("table"===t||"td"===t||"th"===t))return O(e,i);if("srcset"===r)return function(e,t){if(""===t.trim())return t;let r=0;function i(e){let i,n=e.exec(t.substring(r));return n?(i=n[0],r+=i.length,i):""}let n=[];for(;i(x),!(r>=t.length);){let o=i(C);if(","===o.slice(-1))o=O(e,o.substring(0,o.length-1)),n.push(o);else{let i="";o=O(e,o);let s=!1;for(;;){let e=t.charAt(r);if(""===e){n.push((o+i).trim());break}if(s)")"===e&&(s=!1);else if(","===e){r+=1,n.push((o+i).trim());break}else"("===e&&(s=!0);i+=e,r+=1}}}return n.join(", ")}(e,i);if("style"===r)return E(i,T());else if("object"===t&&"data"===r)return O(e,i);return i}function N(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function D(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&D(e.parentNode,t,r);for(let r=e.classList.length;r--;){let i=e.classList[r];if(t.test(i))return!0}return!!r&&D(e.parentNode,t,r)}
1function A(e,t,r,i){try{let n=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===n)return!1;if("string"==typeof t){if(i){if(n.closest(`.${t}`))return!0}else if(n.classList.contains(t))return!0}else if(D(n,t,i))return!0;if(r){if(i){if(n.closest(r))return!0}else if(n.matches(r))return!0}}catch(e){}return!1}function L(e){return null==e?"":e.toLowerCase()}function q(e,t){let r,{doc:o,mirror:s,blockClass:a,blockSelector:c,maskTextClass:h,maskTextSelector:d,skipChild:v=!1,inlineStylesheet:k=!0,maskInputOptions:w={},maskTextFn:I,maskInputFn:M,slimDOMOptions:C,dataURLOptions:x={},inlineImages:O=!1,recordCanvas:D=!1,onSerialize:P,onIframeLoad:U,iframeLoadTimeout:$=5e3,onStylesheetLoad:j,stylesheetLoadTimeout:F=5e3,keepIframeSrcFn:B=()=>!1,newlyAddedElement:z=!1}=t,{needsMask:W}=t,{preserveWhiteSpace:H=!0}=t;!W&&e.childNodes&&(W=A(e,h,d,void 0===W));let V=function(e,t){let{doc:r,mirror:o,blockClass:s,blockSelector:a,needsMask:c,inlineStylesheet:u,maskInputOptions:l={},maskTextFn:h,maskInputFn:d,dataURLOptions:y={},inlineImages:v,recordCanvas:S,keepIframeSrcFn:k,newlyAddedElement:w=!1}=t,I=function(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return 1===r?void 0:r}(r,o);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:e1.Document,childNodes:[],compatMode:e.compatMode};return{type:e1.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:e1.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:I};case e.ELEMENT_NODE:return function(e,t){let r,{doc:o,blockClass:s,blockSelector:a,inlineStylesheet:c,maskInputOptions:u={},maskInputFn:l,dataURLOptions:h={},inlineImages:d,recordCanvas:y,keepIframeSrcFn:v,newlyAddedElement:S=!1,rootId:k}=t,w=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){let i=e.classList[r];if(t.test(i))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,s,a),I=function(e){if(e instanceof HTMLFormElement)return"form";let t=_(e.tagName);return b.test(t)?"div":t}(e),M={},C=e.attributes.length;for(let t=0;t<C;t++){let r=e.attributes[t];N(I,r.name,r.value)||(M[r.name]=R(o,I,_(r.name),r.value))}if("link"===I&&c){let t=Array.from(o.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=p(t)),r&&(delete M.rel,delete M.href,M._cssText=E(r,t.href))}if("style"===I&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=p(e.sheet);t&&(M._cssText=E(t,T()))}if("input"===I||"textarea"===I||"select"===I){let t=e.value,r=e.checked;"radio"!==M.type&&"checkbox"!==M.type&&"submit"!==M.type&&"button"!==M.type&&t?M.value=f({element:e,type:m(e),tagName:I,value:t,maskInputOptions:u,maskInputFn:l}):r&&(M.checked=r)}if("option"===I&&(e.selected&&!u.select?M.selected=!0:delete M.selected),"canvas"===I&&y){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let i=0;i<e.height;i+=50){let n=t.getImageData;if(new Uint32Array((g in n?n[g]:n).call(t,r,i,Math.min(50,e.width-r),Math.min(50,e.height-i)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(M.rr_dataURL=e.toDataURL(h.type,h.quality));else if(!("__context"in e)){let t=e.toDataURL(h.type,h.quality),r=document.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(h.type,h.quality)&&(M.rr_dataURL=t)}}if("img"===I&&d){i||(n=(i=o.createElement("canvas")).getContext("2d"));let t=e.crossOrigin;e.crossOrigin="anonymous";let r=()=>{e.removeEventListener("load",r);try{i.width=e.naturalWidth,i.height=e.naturalHeight,n.drawImage(e,0,0),M.rr_dataURL=i.toDataURL(h.type,h.quality)}catch(t){console.warn(`Cannot inline img src=${e.currentSrc}! Error: ${t}`)}t?M.crossOrigin=t:e.removeAttribute("crossorigin")};e.complete&&0!==e.naturalWidth?r():e.addEventListener("load",r)}if("audio"===I||"video"===I){let t=M;t.rr_mediaState=e.paused?"paused":"played",t.rr_mediaCurrentTime=e.currentTime,t.rr_mediaPlaybackRate=e.playbackRate,t.rr_mediaMuted=e.muted,t.rr_mediaLoop=e.loop,t.rr_mediaVolume=e.volume}if(!S&&(e.scrollLeft&&(M.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(M.rr_scrollTop=e.scrollTop)),w){let{width:t,height:r}=e.getBoundingClientRect();M={class:M.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==I||v(M.src)||(e.contentDocument||(M.rr_src=M.src),delete M.src);try{customElements.get(I)&&(r=!0)}catch(e){}return{type:e1.Element,tagName:I,attributes:M,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:w,rootId:k,isCustom:r}}(e,{doc:r,blockClass:s,blockSelector:a,inlineStylesheet:u,maskInputOptions:l,maskInputFn:d,dataURLOptions:y,inlineImages:v,recordCanvas:S,keepIframeSrcFn:k,newlyAddedElement:w,rootId:I});case e.TEXT_NODE:return function(e,t){var r;let{needsMask:i,maskTextFn:n,rootId:o}=t,s=e.parentNode&&e.parentNode.tagName,a=e.textContent,c="STYLE"===s||void 0,u="SCRIPT"===s||void 0;if(c&&a){try{e.nextSibling||e.previousSibling||(null==(r=e.parentNode.sheet)?void 0:r.cssRules)&&(a=p(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}a=E(a,T())}return u&&(a="SCRIPT_PLACEHOLDER"),!c&&!u&&a&&i&&(a=n?n(a,e.parentElement):a.replace(/[\S]/g,"*")),{type:e1.Text,textContent:a||"",isStyle:c,rootId:o}}
1(e,{needsMask:c,maskTextFn:h,rootId:I});case e.CDATA_SECTION_NODE:return{type:e1.CDATA,textContent:"",rootId:I};case e.COMMENT_NODE:return{type:e1.Comment,textContent:e.textContent||"",rootId:I};default:return!1}}(e,{doc:o,mirror:s,blockClass:a,blockSelector:c,needsMask:W,inlineStylesheet:k,maskInputOptions:w,maskTextFn:I,maskInputFn:M,dataURLOptions:x,inlineImages:O,recordCanvas:D,keepIframeSrcFn:B,newlyAddedElement:z});if(!V)return console.warn(e,"not serialized"),null;r=s.hasNode(e)?s.getId(e):!function(e,t){if(t.comment&&e.type===e1.Comment)return!0;if(e.type===e1.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===y(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(L(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===L(e.attributes.name)||"icon"===L(e.attributes.rel)||"apple-touch-icon"===L(e.attributes.rel)||"shortcut icon"===L(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&L(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(L(e.attributes.property).match(/^(og|twitter|fb):/)||L(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===L(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===L(e.attributes.name)||"googlebot"===L(e.attributes.name)||"bingbot"===L(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===L(e.attributes.name)||"generator"===L(e.attributes.name)||"framework"===L(e.attributes.name)||"publisher"===L(e.attributes.name)||"progid"===L(e.attributes.name)||L(e.attributes.property).match(/^article:/)||L(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===L(e.attributes.name)||"yandex-verification"===L(e.attributes.name)||"csrf-token"===L(e.attributes.name)||"p:domain_verify"===L(e.attributes.name)||"verify-v1"===L(e.attributes.name)||"verification"===L(e.attributes.name)||"shopify-checkout-api-token"===L(e.attributes.name)))return!0}}return!1}(V,C)&&(H||V.type!==e1.Text||V.isStyle||V.textContent.replace(/^\s+|\s+$/gm,"").length)?S():-2;let G=Object.assign(V,{id:r});if(s.add(e,G),-2===r)return null;P&&P(e);let J=!v;if(G.type===e1.Element){J=J&&!G.needBlock,delete G.needBlock;let t=e.shadowRoot;t&&l(t)&&(G.isShadowHost=!0)}if((G.type===e1.Document||G.type===e1.Element)&&J){C.headWhitespace&&G.type===e1.Element&&"head"===G.tagName&&(H=!1);let t={doc:o,mirror:s,blockClass:a,blockSelector:c,needsMask:W,maskTextClass:h,maskTextSelector:d,skipChild:v,inlineStylesheet:k,maskInputOptions:w,maskTextFn:I,maskInputFn:M,slimDOMOptions:C,dataURLOptions:x,inlineImages:O,recordCanvas:D,preserveWhiteSpace:H,onSerialize:P,onIframeLoad:U,iframeLoadTimeout:$,onStylesheetLoad:j,stylesheetLoadTimeout:F,keepIframeSrcFn:B};if(G.type===e1.Element&&"textarea"===G.tagName&&void 0!==G.attributes.value);else for(let r of Array.from(e.childNodes)){let e=q(r,t);e&&G.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let r of Array.from(e.shadowRoot.childNodes)){let i=q(r,t);i&&(l(e.shadowRoot)&&(i.isShadow=!0),G.childNodes.push(i))}}return e.parentNode&&u(e.parentNode)&&l(e.parentNode)&&(G.isShadow=!0),G.type===e1.Element&&"iframe"===G.tagName&&function(e,t,r){let i,n=e.contentWindow;if(!n)return;let o=!1;try{i=n.document.readyState}catch(e){return}if("complete"!==i){let i=setTimeout(()=>{o||(t(),o=!0)},r);e.addEventListener("load",()=>{clearTimeout(i),o=!0,t()});return}let s="about:blank";if(n.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=e.contentDocument;if(t&&U){let r=q(t,{doc:t,mirror:s,blockClass:a,blockSelector:c,needsMask:W,maskTextClass:h,maskTextSelector:d,skipChild:!1,inlineStylesheet:k,maskInputOptions:w,maskTextFn:I,maskInputFn:M,slimDOMOptions:C,dataURLOptions:x,inlineImages:O,recordCanvas:D,preserveWhiteSpace:H,onSerialize:P,onIframeLoad:U,iframeLoadTimeout:$,onStylesheetLoad:j,stylesheetLoadTimeout:F,keepIframeSrcFn:B});r&&U(e,r)}},$),G.type===e1.Element&&"link"===G.tagName&&"string"==typeof G.attributes.rel&&("stylesheet"===G.attributes.rel||"preload"===G.attributes.rel&&"string"==typeof G.attributes.href&&"css"===y(G.attributes.href))&&function(e,t,r){let i,n=!1;try{i=e.sheet}catch(e){return}if(i)return;let o=setTimeout(()=>{n||(t(),n=!0)},r);e.addEventListener("load",()=>{clearTimeout(o),n=!0,t()})}(e,()=>{if(j){let t=q(e,{doc:o,mirror:s,blockClass:a,blockSelector:c,needsMask:W,maskTextClass:h,maskTextSelector:d,skipChild:!1,inlineStylesheet:k,maskInputOptions:w,maskTextFn:I,maskInputFn:M,slimDOMOptions:C,dataURLOptions:x,inlineImages:O,recordCanvas:D,preserveWhiteSpace:H,onSerialize:P,onIframeLoad:U,iframeLoadTimeout:$,onStylesheetLoad:j,stylesheetLoadTimeout:F,keepIframeSrcFn:B});t&&j(e,t)}},F),G}function P(e,t,r=document){let i={capture:!0,passive:!0};return r.addEventListener(e,t,i),()=>r.removeEventListener(e,t,i)}let U="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.",$={map:{},getId:()=>(console.error(U),-1),getNode:()=>(console.error(U),null),removeNodeFromMap(){console.error(U)},has:()=>(console.error(U),!1),reset(){console.error(U)}};function j(e,t,r={}){let i=null,n=0;return function(...o){let s=Date.now();n||!1!==r.leading||(n=s);let a=t-(s-n),c=this;a<=0||a>t?(i&&(clearTimeout(i),i=null),n=s,e.apply(c,o)):i||!1===r.trailing||(i=setTimeout(()=>{n=!1===r.leading?0:Date.now(),i=null,e.apply(c,o)},a))}}function F(e,t,r,i,n=window){let o=n.Object.getOwnPropertyDescriptor(e,t);return n.Object.defineProperty(e,t,i?r:{set(e){setTimeout(()=>{r.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>F(e,t,o||{},!0)}function B(e,t,r){try{if(!(t in e))return()=>{};let i=e[t],n=r(i);return"function"==typeof n&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:i}}
1)),e[t]=n,()=>{e[t]=i}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&($=new Proxy($,{get:(e,t,r)=>("map"===t&&console.error(U),Reflect.get(e,t,r))}));let z=Date.now;function W(e){var t,r,i,n,o,s;let a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:(null==a?void 0:a.documentElement.scrollLeft)||(null==(r=null==(t=null==a?void 0:a.body)?void 0:t.parentElement)?void 0:r.scrollLeft)||(null==(i=null==a?void 0:a.body)?void 0:i.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==a?void 0:a.documentElement.scrollTop)||(null==(o=null==(n=null==a?void 0:a.body)?void 0:n.parentElement)?void 0:o.scrollTop)||(null==(s=null==a?void 0:a.body)?void 0:s.scrollTop)||0}}function H(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function V(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function G(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function J(e,t,r,i){if(!e)return!1;let n=G(e);if(!n)return!1;try{if("string"==typeof t){if(n.classList.contains(t)||i&&null!==n.closest("."+t))return!0}else if(D(n,t,i))return!0}catch(e){}return!!(r&&(n.matches(r)||i&&null!==n.closest(r)))||!1}function X(e,t){return -2===t.getId(e)}function Q(e){return!!e.changedTouches}function K(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function Y(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Z(e){return!!(null==e?void 0:e.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(z=()=>new Date().getTime());class ee{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){let r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function et(e){var t,r;let i=null;return(null==(r=null==(t=e.getRootNode)?void 0:t.call(e))?void 0:r.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(i=e.getRootNode().host),i}function er(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let r=function(e){let t,r=e;for(;t=et(r);)r=t;return r}(e);return t.contains(r)}(e))}var ei,en,eo,es=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(es||{}),ea=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(ea||{}),ec=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(ec||{}),eu=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(eu||{}),el=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(el||{});class ep{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;
1this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}let eh=(e,t)=>`${e}@${t}`;class ed{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,r=new ep,i=e=>{let t=e,r=-2;for(;-2===r;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},n=n=>{if(!n.parentNode||!er(n)||"TEXTAREA"===n.parentNode.tagName)return;let o=u(n.parentNode)?this.mirror.getId(et(n)):this.mirror.getId(n.parentNode),s=i(n);if(-1===o||-1===s)return r.addNode(n);let a=q(n,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{K(e,this.mirror)&&this.iframeManager.addIframe(e),Y(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Z(n)&&this.shadowDomManager.addShadowRoot(n.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});a&&(e.push({parentId:o,nextId:s,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!e_(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&n(e);for(let e of this.addedSet)eg(this.droppedSet,e)||e_(this.removes,e,this.mirror)?eg(this.movedSet,e)?n(e):this.droppedSet.add(e):n(e);let o=null;for(;r.length;){let e=null;if(o){let t=this.mirror.getId(o.value.parentNode),r=i(o.value);-1!==t&&-1!==r&&(e=o)}if(!e){let t=r.tail;for(;t;){let r=t;if(t=t.previous,r){let t=this.mirror.getId(r.value.parentNode);if(-1===i(r.value))continue;if(-1!==t){e=r;break}{let t=r.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let i=t.parentNode.host;if(-1!==this.mirror.getId(i)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}o=e.previous,r.removeNode(e.value),n(e.value)}let s={texts:this.texts.map(e=>{let t=e.node;return t.parentNode&&"TEXTAREA"===t.parentNode.tagName&&this.genTextAreaValueMutation(t.parentNode),{id:this.mirror.getId(t),value:e.value}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let r=JSON.stringify(e.styleDiff),i=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+i).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(s.texts.length||s.attributes.length||s.removes.length||s.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(s))},this.genTextAreaValueMutation=e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t)),t.attributes.value=Array.from(e.childNodes,e=>e.textContent||"").join("")},this.processMutation=e=>{if(!X(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;J(e.target,this.blockClass,this.blockSelector,!1)||t===e.oldValue||this.texts.push({value:A(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,G(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,r=e.attributeName,i=e.target.getAttribute(r);if("value"===r){let e=m(t);i=f({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:e,value:i,maskInputFn:this.maskInputFn})}if(J(e.target,this.blockClass,this.blockSelector,!1)||i===e.oldValue)return;let n=this.attributeMap.get(e.target);
1if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(i))if(t.contentDocument)return;else r="rr_src";if(n||(n={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(e.target,n)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!N(t.tagName,r)&&(n.attributes[r]=R(this.doc,_(t.tagName),_(r),i),"style"===r)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let r=this.unattachedDoc.createElement("span");for(let i of(e.oldValue&&r.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(i),o=t.style.getPropertyPriority(i);e!==r.style.getPropertyValue(i)||o!==r.style.getPropertyPriority(i)?""===o?n.styleDiff[i]=e:n.styleDiff[i]=[e,o]:n._unchangedStyles[i]=[e,o]}for(let e of Array.from(r.style))""===t.style.getPropertyValue(e)&&(n.styleDiff[e]=!1)}break}case"childList":if(J(e.target,this.blockClass,this.blockSelector,!0))return;if("TEXTAREA"===e.target.tagName)return void this.genTextAreaValueMutation(e.target);e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let r=this.mirror.getId(t),i=u(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);J(e.target,this.blockClass,this.blockSelector,!1)||X(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(ef(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||function e(t,r){if(u(t))return!1;let i=r.getId(t);return!r.has(i)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,r))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[eh(r,i)]?ef(this.movedSet,t):this.removes.push({parentId:i,id:r,isShadow:!!(u(e.target)&&l(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(X(e,this.mirror))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[eh(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!J(e,this.blockClass,this.blockSelector,!1)&&(e.childNodes.forEach(e=>this.genAdds(e)),Z(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function ef(e,t){e.delete(t),t.childNodes.forEach(t=>ef(e,t))}function e_(e,t,r){return 0!==e.length&&function e(t,r,i){let{parentNode:n}=r;if(!n)return!1;let o=i.getId(n);return!!t.some(e=>e.id===o)||e(t,n,i)}(e,t,r)}function eg(e,t){return 0!==e.size&&function e(t,r){let{parentNode:i}=r;return!!i&&(!!t.has(i)||e(t,i))}(e,t)}let em=e=>o?(...t)=>{try{return e(...t)}catch(e){if(o&&!0===o(e))return;throw e}}:e,ey=[];function ev(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function eb(e,t){var r,i;let n=new ed;ey.push(n),n.init(e);let o=window.MutationObserver||window.__rrMutationObserver,s=null==(i=null==(r=null==window?void 0:window.Zone)?void 0:r.__symbol__)?void 0:i.call(r,"MutationObserver");s&&window[s]&&(o=window[s]);let a=new o(em(n.processMutations.bind(n)));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function eS({scrollCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,sampling:o}){return P("scroll",em(j(em(o=>{let s=ev(o);if(!s||J(s,i,n,!0))return;let a=r.getId(s);if(s===t&&t.defaultView){let r=W(t.defaultView);e({id:a,x:r.left,y:r.top})}else e({id:a,x:s.scrollLeft,y:s.scrollTop})}),o.scroll||100)),t)}let ek=["INPUT","TEXTAREA","SELECT"],ew=new WeakMap;function eI(e){var t=[];if(ex("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||ex("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||ex("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||ex("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){let r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){let r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}function eM(e,t,r){let i,n;return e?(e.ownerNode?i=t.getId(e.ownerNode):n=r.getId(e),{styleId:n,id:i}):{}}function eE({mirror:e,stylesheetManager:t},r){var i,n,o;let s=null;s="#document"===r.nodeName?e.getId(r):e.getId(r.host);let a="#document"===r.nodeName?null==(i=r.defaultView)?void 0:i.Document:null==(o=null==(n=r.ownerDocument)?void 0:n.defaultView)?void 0:o.ShadowRoot,c=(null==a?void 0:a.prototype)?Object.getOwnPropertyDescriptor(null==a?void 0:a.prototype,"adoptedStyleSheets"):void 0;return null!==s&&-1!==s&&a&&c?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get(){var e;return null==(e=c.get)?void 0:e.call(this)},set(e){var r;let i=null==(r=c.set)?void 0:r.call(this,e);if(null!==s&&-1!==s)try{t.adoptStyleSheets(e,s)}catch(e){}return i}}),em(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})})):()=>{}}function eC(e,t={}){let r,i=e.doc.defaultView;if(!i)return()=>{};let{mutationCb:n,mousemoveCb:o,mouseInteractionCb:s,scrollCb:a,viewportResizeCb:c,inputCb:u,mediaInteractionCb:l,styleSheetRuleCb:p,styleDeclarationCb:h,canvasMutationCb:d,fontCb:g,selectionCb:y,customElementCb:v}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),n(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),o(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),s(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),a(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),c(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),u(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),l(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),p(...e)}
1,e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),h(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),d(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),g(...e)},e.selectionCb=(...e)=>{t.selection&&t.selection(...e),y(...e)},e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),v(...e)},e.recordDOM&&(r=eb(e,e.doc));let b=function({mousemoveCb:e,sampling:t,doc:r,mirror:i}){let n;if(!1===t.mousemove)return()=>{};let o="number"==typeof t.mousemove?t.mousemove:50,s="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,a=[],c=j(em(t=>{let r=Date.now()-n;e(a.map(e=>(e.timeOffset-=r,e)),t),a=[],n=null}),s),u=em(j(em(e=>{let t=ev(e),{clientX:r,clientY:o}=Q(e)?e.changedTouches[0]:e;n||(n=z()),a.push({x:r,y:o,id:i.getId(t),timeOffset:z()-n}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?ea.Drag:e instanceof MouseEvent?ea.MouseMove:ea.TouchMove)}),o,{trailing:!1})),l=[P("mousemove",u,r),P("touchmove",u,r),P("drag",u,r)];return em(()=>{l.forEach(e=>e())})}(e),S=function({mouseInteractionCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,sampling:o}){if(!1===o.mouseInteraction)return()=>{};let s=!0===o.mouseInteraction||void 0===o.mouseInteraction?{}:o.mouseInteraction,a=[],c=null;return Object.keys(ec).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]).forEach(o=>{let s=_(o),u=t=>{let s=ev(t);if(J(s,i,n,!0))return;let a=null,u=o;if("pointerType"in t){switch(t.pointerType){case"mouse":a=eu.Mouse;break;case"touch":a=eu.Touch;break;case"pen":a=eu.Pen}a===eu.Touch?ec[o]===ec.MouseDown?u="TouchStart":ec[o]===ec.MouseUp&&(u="TouchEnd"):eu.Pen}else Q(t)&&(a=eu.Touch);null!==a?(c=a,(u.startsWith("Touch")&&a===eu.Touch||u.startsWith("Mouse")&&a===eu.Mouse)&&(a=null)):ec[o]===ec.Click&&(a=c,c=null);let l=Q(t)?t.changedTouches[0]:t;if(!l)return;let p=r.getId(s),{clientX:h,clientY:d}=l;em(e)(Object.assign({type:ec[u],id:p,x:h,y:d},null!==a&&{pointerType:a}))};if(window.PointerEvent)switch(ec[o]){case ec.MouseDown:case ec.MouseUp:s=s.replace("mouse","pointer");break;case ec.TouchStart:case ec.TouchEnd:return}a.push(P(s,u,t))}),em(()=>{a.forEach(e=>e())})}(e),k=eS(e),w=function({viewportResizeCb:e},{win:t}){let r=-1,i=-1;return P("resize",em(j(em(()=>{let t=H(),n=V();(r!==t||i!==n)&&(e({width:Number(n),height:Number(t)}),r=t,i=n)}),200)),t)}(e,{win:i}),I=function({inputCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,ignoreClass:o,ignoreSelector:s,maskInputOptions:a,maskInputFn:c,sampling:u,userTriggeredOnInput:l}){function p(e){let r=ev(e),u=e.isTrusted,p=r&&r.tagName;if(r&&"OPTION"===p&&(r=r.parentElement),!r||!p||0>ek.indexOf(p)||J(r,i,n,!0)||r.classList.contains(o)||s&&r.matches(s))return;let d=r.value,_=!1,g=m(r)||"";"radio"===g||"checkbox"===g?_=r.checked:(a[p.toLowerCase()]||a[g])&&(d=f({element:r,maskInputOptions:a,tagName:p,type:g,value:d,maskInputFn:c})),h(r,l?{text:d,isChecked:_,userTriggered:u}:{text:d,isChecked:_});let y=r.name;"radio"===g&&y&&_&&t.querySelectorAll(`input[type="radio"][name="${y}"]`).forEach(e=>{if(e!==r){let t=e.value;h(e,l?{text:t,isChecked:!_,userTriggered:!1}:{text:t,isChecked:!_})}})}function h(t,i){let n=ew.get(t);if(!n||n.text!==i.text||n.isChecked!==i.isChecked){ew.set(t,i);let n=r.getId(t);em(e)(Object.assign(Object.assign({},i),{id:n}))}}let d=("last"===u.input?["change"]:["input","change"]).map(e=>P(e,em(p),t)),_=t.defaultView;if(!_)return()=>{d.forEach(e=>e())};let g=_.Object.getOwnPropertyDescriptor(_.HTMLInputElement.prototype,"value"),y=[[_.HTMLInputElement.prototype,"value"],[_.HTMLInputElement.prototype,"checked"],[_.HTMLSelectElement.prototype,"value"],[_.HTMLTextAreaElement.prototype,"value"],[_.HTMLSelectElement.prototype,"selectedIndex"],[_.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&d.push(...y.map(e=>F(e[0],e[1],{set(){em(p)({target:this,isTrusted:!1})}},!1,_))),em(()=>{d.forEach(e=>e())})}(e),M=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:i,sampling:n,doc:o}){let s=em(o=>j(em(n=>{let s=ev(n);if(!s||J(s,t,r,!0))return;let{currentTime:a,volume:c,muted:u,playbackRate:l,loop:p}=s;e({type:o,id:i.getId(s),currentTime:a,volume:c,muted:u,playbackRate:l,loop:p})}),n.media||500)),a=[P("play",s(0),o),P("pause",s(1),o),P("seeked",s(2),o),P("volumechange",s(3),o),P("ratechange",s(4),o)];return em(()=>
1{a.forEach(e=>e())})}(e),E=()=>{},C=()=>{},x=()=>{},O=()=>{};e.recordDOM&&(E=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:i}){let n,o;if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};let s=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:em((i,n,o)=>{let[s,a]=o,{id:c,styleId:u}=eM(n,t,r.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:s,index:a}]}),i.apply(n,o)})});let a=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:em((i,n,o)=>{let[s]=o,{id:a,styleId:c}=eM(n,t,r.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:s}]}),i.apply(n,o)})}),i.CSSStyleSheet.prototype.replace&&(n=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(n,{apply:em((i,n,o)=>{let[s]=o,{id:a,styleId:c}=eM(n,t,r.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replace:s}),i.apply(n,o)})})),i.CSSStyleSheet.prototype.replaceSync&&(o=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:em((i,n,o)=>{let[s]=o,{id:a,styleId:c}=eM(n,t,r.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replaceSync:s}),i.apply(n,o)})}));let c={};eO("CSSGroupingRule")?c.CSSGroupingRule=i.CSSGroupingRule:(eO("CSSMediaRule")&&(c.CSSMediaRule=i.CSSMediaRule),eO("CSSConditionRule")&&(c.CSSConditionRule=i.CSSConditionRule),eO("CSSSupportsRule")&&(c.CSSSupportsRule=i.CSSSupportsRule));let u={};return Object.entries(c).forEach(([i,n])=>{u[i]={insertRule:n.prototype.insertRule,deleteRule:n.prototype.deleteRule},n.prototype.insertRule=new Proxy(u[i].insertRule,{apply:em((i,n,o)=>{let[s,a]=o,{id:c,styleId:u}=eM(n.parentStyleSheet,t,r.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:s,index:[...eI(n),a||0]}]}),i.apply(n,o)})}),n.prototype.deleteRule=new Proxy(u[i].deleteRule,{apply:em((i,n,o)=>{let[s]=o,{id:a,styleId:c}=eM(n.parentStyleSheet,t,r.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:[...eI(n),s]}]}),i.apply(n,o)})})}),em(()=>{i.CSSStyleSheet.prototype.insertRule=s,i.CSSStyleSheet.prototype.deleteRule=a,n&&(i.CSSStyleSheet.prototype.replace=n),o&&(i.CSSStyleSheet.prototype.replaceSync=o),Object.entries(c).forEach(([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule})})}(e,{win:i}),C=eE(e,e.doc),x=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:i},{win:n}){let o=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:em((n,s,a)=>{var c;let[u,l,p]=a;if(r.has(u))return o.apply(s,[u,l,p]);let{id:h,styleId:d}=eM(null==(c=s.parentRule)?void 0:c.parentStyleSheet,t,i.styleMirror);return(h&&-1!==h||d&&-1!==d)&&e({id:h,styleId:d,set:{property:u,value:l,priority:p},index:eI(s.parentRule)}),n.apply(s,a)})});let s=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:em((n,o,a)=>{var c;let[u]=a;if(r.has(u))return s.apply(o,[u]);let{id:l,styleId:p}=eM(null==(c=o.parentRule)?void 0:c.parentStyleSheet,t,i.styleMirror);return(l&&-1!==l||p&&-1!==p)&&e({id:l,styleId:p,remove:{property:u},index:eI(o.parentRule)}),n.apply(o,a)})}),em(()=>{n.CSSStyleDeclaration.prototype.setProperty=o,n.CSSStyleDeclaration.prototype.removeProperty=s})}(e,{win:i}),e.collectFonts&&(O=function({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let i=[],n=new WeakMap,o=r.FontFace;r.FontFace=function(e,t,r){let i=new o(e,t,r);return n.set(i,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),i};let s=B(t.fonts,"add",function(t){return function(r){return setTimeout(em(()=>{let t=n.get(r);t&&(e(t),n.delete(r))}),0),t.apply(this,[r])}});return i.push(()=>{r.FontFace=o}),i.push(s),em(()=>{i.forEach(e=>e())})}(e)));let T=function(e){let{doc:t,mirror:r,blockClass:i,blockSelector:n,selectionCb:o}=e,s=!0,a=em(()=>{let e=t.getSelection();if(!e||s&&(null==e?void 0:e.isCollapsed))return;s=e.isCollapsed||!1;let a=[],c=e.rangeCount||0;for(let t=0;t<c;t++){let{startContainer:o,startOffset:s,endContainer:c,endOffset:u}=e.getRangeAt(t);J(o,i,n,!0)||J(c,i,n,!0)||a.push({start:r.getId(o),startOffset:s,end:r.getId(c),endOffset:u})}o({ranges:a})});return a(),P("selectionchange",a)}(e),R=function({doc:e,customElementCb:t}){let r=e.defaultView;return r&&r.customElements?B(r.customElements,"define",function(e){return function(r,i,n){try{t({define:{name:r}})}catch(e){console.warn(`Custom element callback failed for ${r}`)}return e.apply(this,[r,i,n])}}):()=>{}}(e),N=[];for(let t of e.plugins)N.push(t.observer(t.callback,i,t.options));return em(()=>
1{ey.forEach(e=>e.reset()),null==r||r.disconnect(),b(),S(),k(),w(),I(),M(),E(),C(),x(),O(),T(),R(),N.forEach(e=>e())})}function ex(e){return void 0!==window[e]}function eO(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class eT{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,r,i){let n=r||this.getIdToRemoteIdMap(e),o=i||this.getRemoteIdToIdMap(e),s=n.get(t);return s||(s=this.generateIdFn(),n.set(t,s),o.set(s,t)),s}getIds(e,t){let r=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,i))}getRemoteId(e,t,r){let i=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;let n=i.get(t);return n||-1}getRemoteIds(e,t){let r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class eR{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new eT(S),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new eT(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(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)||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))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(e,t){var r;switch(t.type){case es.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:es.IncrementalSnapshot,data:{source:ea.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case es.Meta:case es.Load:case es.DomContentLoaded:break;case es.Plugin:return t;case es.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case es.IncrementalSnapshot:switch(t.data.source){case ea.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case ea.Drag:case ea.TouchMove:case ea.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case ea.ViewportResize:return!1;case ea.MediaInteraction:case ea.MouseInteraction:case ea.Scroll:case ea.CanvasMutation:case ea.Input:return this.replaceIds(t.data,e,["id"]),t;case ea.StyleSheetRule:case ea.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case ea.Font:return t;
1case ea.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case ea.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,r,i){for(let n of i)(Array.isArray(t[n])||"number"==typeof t[n])&&(Array.isArray(t[n])?t[n]=e.getIds(r,t[n]):t[n]=e.getId(r,t[n]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===e1.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class eN{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!l(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);let r=eb(Object.assign(Object.assign({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(eS(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(eE({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){let r=this;this.restoreHandlers.push(B(e.prototype,"attachShadow",function(e){return function(i){let n=e.call(this,i);return this.shadowRoot&&er(this)&&r.addShadowRoot(this.shadowRoot,t),n}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var eD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",eA="undefined"==typeof Uint8Array?[]:new Uint8Array(256),eL=0;eL<eD.length;eL++)eA[eD.charCodeAt(eL)]=eL;var eq=function(e){var t,r=new Uint8Array(e),i=r.length,n="";for(t=0;t<i;t+=3)n+=eD[r[t]>>2],n+=eD[(3&r[t])<<4|r[t+1]>>4],n+=eD[(15&r[t+1])<<2|r[t+2]>>6],n+=eD[63&r[t+2]];return i%3==2?n=n.substring(0,n.length-1)+"=":i%3==1&&(n=n.substring(0,n.length-2)+"=="),n};let eP=new Map,eU=(e,t,r)=>{if(!e||!(ej(e,t)||"object"==typeof e))return;let i=function(e,t){let r=eP.get(e);return r||(r=new Map,eP.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name),n=i.indexOf(e);return -1===n&&(n=i.length,i.push(e)),n},e$=(e,t,r)=>e.map(e=>(function e(t,r,i){if(t instanceof Array)return t.map(t=>e(t,r,i));if(null===t);else if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};else if(t instanceof ArrayBuffer)return{rr_type:t.constructor.name,base64:eq(t)};else if(t instanceof DataView)return{rr_type:t.constructor.name,args:[e(t.buffer,r,i),t.byteOffset,t.byteLength]};else if(t instanceof HTMLImageElement){let e=t.constructor.name,{src:r}=t;return{rr_type:e,src:r}}else if(t instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:t.toDataURL()};else if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[e(t.data,r,i),t.width,t.height]};else if(ej(t,r)||"object"==typeof t)return{rr_type:t.constructor.name,index:eU(t,r,i)};return t})(e,t,r)),ej=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]).find(r=>e instanceof t[r]);function eF(e,t,r,i){let n=[];try{let o=B(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(n,...o){if(!J(this,t,r,!0)){let e="experimental-webgl"===n?"webgl":n;if("__context"in this||(this.__context=e),i&&["webgl","webgl2"].includes(e))if(o[0]&&"object"==typeof o[0]){let e=o[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else o.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[n,...o])}});n.push(o)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>
1{n.forEach(e=>e())}}function eB(e,t,r,i,n,o,s){let a=[];for(let o of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(o))try{if("function"!=typeof e[o])continue;let c=B(e,o,function(e){return function(...a){let c=e.apply(this,a);if(eU(c,s,this),"tagName"in this.canvas&&!J(this.canvas,i,n,!0)){let e=e$(a,s,this),i={type:t,property:o,args:e};r(this.canvas,i)}return c}});a.push(c)}catch(n){let i=F(e,o,{set(e){r(this.canvas,{type:t,property:o,args:[e],setter:!0})}});a.push(i)}return a}var ez=function(e,t){var r;return function(t){var i;return new Worker(r=r||(i=new Blob(function(e,t){var r=t,i=e.toString().split("\n");i.pop(),i.shift();for(var n=i[0].search(/\S/),o=/(['"])__worker_loader_strict__(['"])/g,s=0,a=i.length;s<a;++s)i[s]=i[s].substring(n).replace(o,"$1use strict$2")+"\n";return r&&i.push("//# sourceMappingURL="+r+"\n"),i}(e,null),{type:"application/javascript"}),URL.createObjectURL(i)),t)}}(function(){!function(){function e(e,t,r,i){return new(r||(r=Promise))(function(n,o){function s(e){try{c(i.next(e))}catch(e){o(e)}}function a(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}c((i=i.apply(e,t||[])).next())})}for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="undefined"==typeof Uint8Array?[]:new Uint8Array(256),i=0;i<t.length;i++)r[t.charCodeAt(i)]=i;var n=function(e){var r,i=new Uint8Array(e),n=i.length,o="";for(r=0;r<n;r+=3)o+=t[i[r]>>2],o+=t[(3&i[r])<<4|i[r+1]>>4],o+=t[(15&i[r+1])<<2|i[r+2]>>6],o+=t[63&i[r+2]];return n%3==2?o=o.substring(0,o.length-1)+"=":n%3==1&&(o=o.substring(0,o.length-2)+"=="),o};let o=new Map,s=new Map,a=self;a.onmessage=function(t){return e(this,void 0,void 0,function*(){if(!("OffscreenCanvas"in globalThis))return a.postMessage({id:t.data.id});{let{id:r,bitmap:i,width:c,height:u,dataURLOptions:l}=t.data,p=function(t,r,i){return e(this,void 0,void 0,function*(){let e=`${t}-${r}`;if(!("OffscreenCanvas"in globalThis))return"";{if(s.has(e))return s.get(e);let o=new OffscreenCanvas(t,r);o.getContext("2d");let a=yield o.convertToBlob(i),c=n((yield a.arrayBuffer()));return s.set(e,c),c}})}(c,u,l),h=new OffscreenCanvas(c,u);h.getContext("2d").drawImage(i,0,0),i.close();let d=yield h.convertToBlob(l),f=d.type,_=n((yield d.arrayBuffer()));if(!o.has(r)&&(yield p)===_)return o.set(r,_),a.postMessage({id:r});if(o.get(r)===_)return a.postMessage({id:r});a.postMessage({id:r,type:f,base64:_,width:c,height:u}),o.set(r,_)}})}}()},0);class eW{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};let{sampling:t="all",win:r,blockClass:i,blockSelector:n,recordCanvas:o,dataURLOptions:s}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,o&&"all"===t&&this.initCanvasMutationObserver(r,i,n),o&&"number"==typeof t&&this.initCanvasFPSObserver(t,r,i,n,{dataURLOptions:s})}initCanvasFPSObserver(e,t,r,i,n){let o,s=eF(t,r,i,!0),a=new Map,c=new ez;c.onmessage=e=>{let{id:t}=e.data;if(a.set(t,!1),!("base64"in e.data))return;let{base64:r,type:i,width:n,height:o}=e.data;this.mutationCb({id:t,type:el["2D"],commands:[{property:"clearRect",args:[0,0,n,o]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:i}]},0,0]}]})};let u=1e3/e,l=0,p=e=>{if(l&&e-l<u){o=requestAnimationFrame(p);return}l=e,(()=>{let e=[];return t.document.querySelectorAll("canvas").forEach(t=>{J(t,r,i,!0)||e.push(t)}),e}
1)().forEach(e=>{var t,r,i,o;return t=this,r=void 0,i=void 0,o=function*(){var t;let r=this.mirror.getId(e);if(a.get(r)||0===e.width||0===e.height)return;if(a.set(r,!0),["webgl","webgl2"].includes(e.__context)){let r=e.getContext(e.__context);(null==(t=null==r?void 0:r.getContextAttributes())?void 0:t.preserveDrawingBuffer)===!1&&r.clear(r.COLOR_BUFFER_BIT)}let i=yield createImageBitmap(e);c.postMessage({id:r,bitmap:i,width:e.width,height:e.height,dataURLOptions:n.dataURLOptions},[i])},new(i||(i=Promise))(function(e,n){function s(e){try{c(o.next(e))}catch(e){n(e)}}function a(e){try{c(o.throw(e))}catch(e){n(e)}}function c(t){var r;t.done?e(t.value):((r=t.value)instanceof i?r:new i(function(e){e(r)})).then(s,a)}c((o=o.apply(t,r||[])).next())})}),o=requestAnimationFrame(p)};o=requestAnimationFrame(p),this.resetObservers=()=>{s(),cancelAnimationFrame(o)}}initCanvasMutationObserver(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let i=eF(e,t,r,!1),n=function(e,t,r,i){let n=[];for(let o of Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype))try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[o])continue;let s=B(t.CanvasRenderingContext2D.prototype,o,function(n){return function(...s){return J(this.canvas,r,i,!0)||setTimeout(()=>{let r=e$(s,t,this);e(this.canvas,{type:el["2D"],property:o,args:r})},0),n.apply(this,s)}});n.push(s)}catch(i){let r=F(t.CanvasRenderingContext2D.prototype,o,{set(t){e(this.canvas,{type:el["2D"],property:o,args:[t],setter:!0})}});n.push(r)}return()=>{n.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r),o=function(e,t,r,i,n){let o=[];return o.push(...eB(t.WebGLRenderingContext.prototype,el.WebGL,e,r,i,n,t)),void 0!==t.WebGL2RenderingContext&&o.push(...eB(t.WebGL2RenderingContext.prototype,el.WebGL2,e,r,i,n,t)),()=>{o.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r,this.mirror);this.resetObservers=()=>{i(),n(),o()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let r=this.pendingCanvasMutations.get(e);if(!r||-1===t)return;let i=r.map(e=>(function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)0>t.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r})(e,["type"])),{type:n}=r[0];this.mutationCb({id:t,type:n,commands:i}),this.pendingCanvasMutations.delete(e)}}class eH{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new ee,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;let r={id:t,styleIds:[]},i=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),i.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:h(e),index:t}))})),r.styleIds.push(e)}i.length>0&&(r.styles=i),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class eV{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){requestAnimationFrame(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(e,t){let r=this.nodeMap.get(e);return r&&Array.from(r).some(e=>e!==t)}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function eG(e){return Object.assign(Object.assign({},e),{timestamp:z()})}let eJ=!1,eX=new d;function eQ(e={}){let t,{emit:r,checkoutEveryNms:i,checkoutEveryNth:n,blockClass:u="rr-block",blockSelector:l=null,ignoreClass:p="rr-ignore",ignoreSelector:h=null,maskTextClass:f="rr-mask",maskTextSelector:_=null,inlineStylesheet:g=!0,maskAllInputs:m,maskInputOptions:y,slimDOMOptions:v,maskInputFn:b,maskTextFn:S,hooks:k,packFn:w,sampling:I={},dataURLOptions:M={},mousemoveWait:E,recordDOM:C=!0,recordCanvas:x=!1,recordCrossOriginIframes:O=!1,recordAfter:T="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:R=!1,collectFonts:N=!1,inlineImages:D=!1,plugins:A,keepIframeSrcFn:L=()=>!1,ignoreCSSAttributes:U=new Set([]),errorHandler:$}=e;o=$;let j=!O||window.parent===window,F=!1;if(!j)try{window.parent.document&&(F=!1)}catch(e){F=!0}
1if(j&&!r)throw Error("emit function is required");void 0!==E&&void 0===I.mousemove&&(I.mousemove=E),eX.reset();let B=!0===m?{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!==y?y:{password:!0},z=!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===v,headMetaDescKeywords:"all"===v}:v||{};!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode);return!1})}();let G=0,J=e=>{for(let t of A||[])t.eventProcessor&&(e=t.eventProcessor(e));return w&&!F&&(e=w(e)),e};s=(e,o)=>{var s;if((null==(s=ey[0])?void 0:s.isFrozen())&&e.type!==es.FullSnapshot&&(e.type!==es.IncrementalSnapshot||e.data.source!==ea.Mutation)&&ey.forEach(e=>e.unfreeze()),j)null==r||r(J(e),o);else if(F){let t={type:"rrweb",event:J(e),origin:window.location.origin,isCheckout:o};window.parent.postMessage(t,"*")}if(e.type===es.FullSnapshot)t=e,G=0;else if(e.type===es.IncrementalSnapshot){if(e.data.source===ea.Mutation&&e.data.isAttachIframe)return;G++;let r=n&&G>=n,o=i&&e.timestamp-t.timestamp>i;(r||o)&&a(!0)}};let X=e=>{s(eG({type:es.IncrementalSnapshot,data:Object.assign({source:ea.Mutation},e)}))},Q=e=>s(eG({type:es.IncrementalSnapshot,data:Object.assign({source:ea.Scroll},e)})),ee=e=>s(eG({type:es.IncrementalSnapshot,data:Object.assign({source:ea.CanvasMutation},e)})),et=new eH({mutationCb:X,adoptedStyleSheetCb:e=>s(eG({type:es.IncrementalSnapshot,data:Object.assign({source:ea.AdoptedStyleSheet},e)}))}),er=new eR({mirror:eX,mutationCb:X,stylesheetManager:et,recordCrossOriginIframes:O,wrappedEmit:s});for(let e of A||[])e.getMirror&&e.getMirror({nodeMirror:eX,crossOriginIframeMirror:er.crossOriginIframeMirror,crossOriginIframeStyleMirror:er.crossOriginIframeStyleMirror});let ei=new eV;c=new eW({recordCanvas:x,mutationCb:ee,win:window,blockClass:u,blockSelector:l,mirror:eX,sampling:I.canvas,dataURLOptions:M});let en=new eN({mutationCb:X,scrollCb:Q,bypassOptions:{blockClass:u,blockSelector:l,maskTextClass:f,maskTextSelector:_,inlineStylesheet:g,maskInputOptions:B,dataURLOptions:M,maskTextFn:S,maskInputFn:b,recordCanvas:x,inlineImages:D,sampling:I,slimDOMOptions:z,iframeManager:er,stylesheetManager:et,canvasManager:c,keepIframeSrcFn:L,processedNodeManager:ei},mirror:eX});a=(e=!1)=>{if(!C)return;s(eG({type:es.Meta,data:{href:window.location.href,width:V(),height:H()}}),e),et.reset(),en.init(),ey.forEach(e=>e.lock());let t=function(e,t){let{mirror:r=new d,blockClass:i="rr-block",blockSelector:n=null,maskTextClass:o="rr-mask",maskTextSelector:s=null,inlineStylesheet:a=!0,inlineImages:c=!1,recordCanvas:u=!1,maskAllInputs:l=!1,maskTextFn:p,maskInputFn:h,slimDOM:f=!1,dataURLOptions:_,preserveWhiteSpace:g,onSerialize:m,onIframeLoad:y,iframeLoadTimeout:v,onStylesheetLoad:b,stylesheetLoadTimeout:S,keepIframeSrcFn:k=()=>!1}=t||{};return q(e,{doc:e,mirror:r,blockClass:i,blockSelector:n,maskTextClass:o,maskTextSelector:s,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===l?{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}:!1===l?{password:!0}:l,maskTextFn:p,maskInputFn:h,slimDOMOptions:!0===f||"all"===f?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===f,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===f?{}:f,dataURLOptions:_,inlineImages:c,recordCanvas:u,preserveWhiteSpace:g,onSerialize:m,onIframeLoad:y,iframeLoadTimeout:v,onStylesheetLoad:b,stylesheetLoadTimeout:S,keepIframeSrcFn:k,newlyAddedElement:!1})}(document,{mirror:eX,blockClass:u,blockSelector:l,maskTextClass:f,maskTextSelector:_,inlineStylesheet:g,maskAllInputs:B,maskTextFn:S,slimDOM:z,dataURLOptions:M,recordCanvas:x,inlineImages:D,onSerialize:e=>{K(e,eX)&&er.addIframe(e),Y(e,eX)&&et.trackLinkElement(e),Z(e)&&en.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{er.attachIframe(e,t),en.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{et.attachLinkElement(e,t)},keepIframeSrcFn:L});if(!t)return console.warn("Failed to snapshot the document");s(eG({type:es.FullSnapshot,data:{node:t,initialOffset:W(window)}}
1),e),ey.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&et.adoptStyleSheets(document.adoptedStyleSheets,eX.getId(document))};try{let e=[],t=e=>{var t;return em(eC)({mutationCb:X,mousemoveCb:(e,t)=>s(eG({type:es.IncrementalSnapshot,data:{source:t,positions:e}})),mouseInteractionCb:e=>s(eG({type:es.IncrementalSnapshot,data:Object.assign({source:ea.MouseInteraction},e)})),scrollCb:Q,viewportResizeCb:e=>s(eG({type:es.IncrementalSnapshot,data:Object.assign({source:ea.ViewportResize},e)})),inputCb:e=>s(eG({type:es.IncrementalSnapshot,data:Object.assign({source:ea.Input},e)})),mediaInteractionCb:e=>s(eG({type:es.IncrementalSnapshot,data:Object.assign({source:ea.MediaInteraction},e)})),styleSheetRuleCb:e=>s(eG({type:es.IncrementalSnapshot,data:Object.assign({source:ea.StyleSheetRule},e)})),styleDeclarationCb:e=>s(eG({type:es.IncrementalSnapshot,data:Object.assign({source:ea.StyleDeclaration},e)})),canvasMutationCb:ee,fontCb:e=>s(eG({type:es.IncrementalSnapshot,data:Object.assign({source:ea.Font},e)})),selectionCb:e=>{s(eG({type:es.IncrementalSnapshot,data:Object.assign({source:ea.Selection},e)}))},customElementCb:e=>{s(eG({type:es.IncrementalSnapshot,data:Object.assign({source:ea.CustomElement},e)}))},blockClass:u,ignoreClass:p,ignoreSelector:h,maskTextClass:f,maskTextSelector:_,maskInputOptions:B,inlineStylesheet:g,sampling:I,recordDOM:C,recordCanvas:x,inlineImages:D,userTriggeredOnInput:R,collectFonts:N,doc:e,maskInputFn:b,maskTextFn:S,keepIframeSrcFn:L,blockSelector:l,slimDOMOptions:z,dataURLOptions:M,mirror:eX,iframeManager:er,stylesheetManager:et,shadowDomManager:en,processedNodeManager:ei,canvasManager:c,ignoreCSSAttributes:U,plugins:(null==(t=null==A?void 0:A.filter(e=>e.observer))?void 0:t.map(e=>({observer:e.observer,options:e.options,callback:t=>s(eG({type:es.Plugin,data:{plugin:e.name,payload:t}}))})))||[]},k)};er.addLoadListener(r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}});let r=()=>{a(),e.push(t(document)),eJ=!0};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(P("DOMContentLoaded",()=>{s(eG({type:es.DomContentLoaded,data:{}})),"DOMContentLoaded"===T&&r()})),e.push(P("load",()=>{s(eG({type:es.Load,data:{}})),"load"===T&&r()},window))),()=>{e.forEach(e=>e()),ei.destroy(),eJ=!1,o=void 0}}catch(e){console.warn(e)}}eQ.addCustomEvent=(e,t)=>{if(!eJ)throw Error("please add custom event after start recording");s(eG({type:es.Custom,data:{tag:e,payload:t}}))},eQ.freezePage=()=>{ey.forEach(e=>e.freeze())},eQ.takeFullSnapshot=e=>{if(!eJ)throw Error("please take full snapshot after start recording");a(e)},eQ.mirror=eX;var eK=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(eK||{}),eY=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(eY||{}),eZ={DEBUG:!1,LIB_VERSION:"2.60.0"};if("undefined"==typeof window){var e0={hostname:""};e2={navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:e0,referrer:""},screen:{width:0,height:0},location:e0,addEventListener:function(){},removeEventListener:function(){}}}else e2=window;var e1,e2,e3,e6,e5,e4=e2.setImmediate,e8=Object.prototype.toString,e9=void 0!==e4?function(e){return e4(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e3=function(e,t,r,i){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==i})}}catch(e){e3=function(e,t,r){return e[t]=r,e}}function e7(e,t){e5.add(e,t),e6||(e6=e9(e5.drain))}function te(e){var t,r=typeof e;return null!==e&&("object"===r||"function"===r)&&(t=e.then),"function"==typeof t&&t}function tt(){for(var e=0;e<this.chain.length;e++)!function(e,t,r){var i,n;try{!1===t?r.reject(e.msg):(i=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(n=te(i))?n.call(i,r.resolve,r.reject):r.resolve(i)}catch(e){r.reject(e)}}(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function tr(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=te(e))?e7(function(){var i=new to(r);try{t.call(e,function(){tr.apply(i,arguments)},function(){ti.apply(i,arguments)})}
1catch(e){ti.call(i,e)}}):(r.msg=e,r.state=1,r.chain.length>0&&e7(tt,r))}catch(e){ti.call(new to(r),e)}}}function ti(e){var t=this;!t.triggered&&(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&e7(tt,t))}function tn(e,t,r,i){for(var n=0;n<t.length;n++)!function(n){e.resolve(t[n]).then(function(e){r(n,e)},i)}(n)}function to(e){this.def=e,this.triggered=!1}function ts(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function ta(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new ts(this);this.then=function(e,r){var i={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return i.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");i.resolve=e,i.reject=t}),t.chain.push(i),0!==t.state&&e7(tt,t),i.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){tr.call(t,e)},function(e){ti.call(t,e)})}catch(e){ti.call(t,e)}}e5=function(){var e,t,r;function i(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(n,o){r=new i(n,o),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;for(e=t=e6=void 0;r;)r.fn.call(r.self),r=r.next}}}();var tc=e3({},"constructor",ta,!1);ta.prototype=tc,e3(tc,"__NPO__",0,!1),e3(ta,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)})}),e3(ta,"reject",function(e){return new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)})}),e3(ta,"all",function(e){var t=this;return"[object Array]"!==e8.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(r,i){if("function"!=typeof r||"function"!=typeof i)throw TypeError("Not a function");var n=e.length,o=Array(n),s=0;tn(t,e,function(e,t){o[e]=t,++s===n&&r(o)},i)})}),e3(ta,"race",function(e){var t=this;return"[object Array]"!==e8.call(e)?t.reject(TypeError("Not an array")):new t(function(r,i){if("function"!=typeof r||"function"!=typeof i)throw TypeError("Not a function");tn(t,e,function(e,t){r(t)},i)})}),ei="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:ta;var tu=Array.prototype,tl=Function.prototype,tp=Object.prototype,th=tu.slice,td=tp.toString,tf=tp.hasOwnProperty,t_=e2.console,tg=e2.navigator,tm=e2.document,ty=e2.opera,tv=e2.screen,tb=tg.userAgent,tS=tl.bind,tk=tu.forEach,tw=tu.indexOf,tI=tu.map,tM=Array.isArray,tE={},tC={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},tx={log:function(){if(eZ.DEBUG&&!tC.isUndefined(t_)&&t_)try{t_.log.apply(t_,arguments)}catch(e){tC.each(arguments,function(e){t_.log(e)})}},warn:function(){if(eZ.DEBUG&&!tC.isUndefined(t_)&&t_){var e=["Mixpanel warning:"].concat(tC.toArray(arguments));try{t_.warn.apply(t_,e)}catch(t){tC.each(e,function(e){t_.warn(e)})}}},error:function(){if(eZ.DEBUG&&!tC.isUndefined(t_)&&t_){var e=["Mixpanel error:"].concat(tC.toArray(arguments));try{t_.error.apply(t_,e)}catch(t){tC.each(e,function(e){t_.error(e)})}}},critical:function(){if(!tC.isUndefined(t_)&&t_){var e=["Mixpanel error:"].concat(tC.toArray(arguments));try{t_.error.apply(t_,e)}catch(t){tC.each(e,function(e){t_.error(e)})}}}},tO=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(tx,arguments)}},tT=function(e){return{log:tO(tx.log,e),error:tO(tx.error,e),critical:tO(tx.critical,e)}},tR=function(e){return function(){try{return e.apply(this,arguments)}catch(e){tx.critical("Implementation error. Please turn on debug and contact [email protected]."),eZ.DEBUG&&tx.critical(e)}}};tC.bind=function(e,t){var r,i;if(tS&&e.bind===tS)return tS.apply(e,th.call(arguments,1));if(!tC.isFunction(e))throw TypeError();return r=th.call(arguments,2),i=function(){if(!(this instanceof i))return e.apply(t,r.concat(th.call(arguments)));var n={};n.prototype=e.prototype;var o=new n;n.prototype=null;var s=e.apply(o,r.concat(th.call(arguments)));return Object(s)===s?s:o}},tC.each=function(e,t,r){if(null!=e){if(tk&&e.forEach===tk)e.forEach(t,r);else if(e.length===+e.length){for(var i=0,n=e.length;i<n;i++)if(i in e&&t.call(r,e[i],i,e)===tE)return}else for(var o in e)if(tf.call(e,o)&&t.call(r,e[o],o,e)===tE)return}}
1,tC.extend=function(e){return tC.each(th.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},tC.isArray=tM||function(e){return"[object Array]"===td.call(e)},tC.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(e){return!1}},tC.isArguments=function(e){return!!(e&&tf.call(e,"callee"))},tC.toArray=function(e){return e?e.toArray?e.toArray():tC.isArray(e)||tC.isArguments(e)?th.call(e):tC.values(e):[]},tC.map=function(e,t,r){if(tI&&e.map===tI)return e.map(t,r);var i=[];return tC.each(e,function(e){i.push(t.call(r,e))}),i},tC.keys=function(e){var t=[];return null===e||tC.each(e,function(e,r){t[t.length]=r}),t},tC.values=function(e){var t=[];return null===e||tC.each(e,function(e){t[t.length]=e}),t},tC.include=function(e,t){var r=!1;return null===e?r:tw&&e.indexOf===tw?-1!=e.indexOf(t):(tC.each(e,function(e){if(r||(r=e===t))return tE}),r)},tC.includes=function(e,t){return -1!==e.indexOf(t)},tC.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},tC.isObject=function(e){return e===Object(e)&&!tC.isArray(e)},tC.isEmptyObject=function(e){if(tC.isObject(e)){for(var t in e)if(tf.call(e,t))return!1;return!0}return!1},tC.isUndefined=function(e){return void 0===e},tC.isString=function(e){return"[object String]"==td.call(e)},tC.isDate=function(e){return"[object Date]"==td.call(e)},tC.isNumber=function(e){return"[object Number]"==td.call(e)},tC.isElement=function(e){return!!(e&&1===e.nodeType)},tC.encodeDates=function(e){return tC.each(e,function(t,r){tC.isDate(t)?e[r]=tC.formatDate(t):tC.isObject(t)&&(e[r]=tC.encodeDates(t))}),e},tC.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},tC.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},tC.strip_empty_properties=function(e){var t={};return tC.each(e,function(e,r){tC.isString(e)&&e.length>0&&(t[r]=e)}),t},tC.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):tC.isArray(e)?(r=[],tC.each(e,function(e){r.push(tC.truncate(e,t))})):tC.isObject(e)?(r={},tC.each(e,function(e,i){r[i]=tC.truncate(e,t)})):r=e,r},tC.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","\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+'"'},r=function(e,i){var n="",o=0,s="",a="",c=0,u=n,l=[],p=i[e];switch(p&&"object"==typeof p&&"function"==typeof p.toJSON&&(p=p.toJSON(e)),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(n+="    ",l=[],"[object Array]"===td.apply(p)){for(o=0,c=p.length;o<c;o+=1)l[o]=r(o,p)||"null";return a=0===l.length?"[]":n?"[\n"+n+l.join(",\n"+n)+"\n"+u+"]":"["+l.join(",")+"]",n=u,a}for(s in p)tf.call(p,s)&&(a=r(s,p))&&l.push(t(s)+(n?": ":":")+a);return a=0===l.length?"{}":n?"{"+l.join(",")+u+"}":"{"+l.join(",")+"}",n=u,a}};return r("",{"":e})},tC.JSONDecode=function(){var e,t,r,i,n={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"	"},o=function(t){var i=SyntaxError(t);throw i.at=e,i.text=r,i},s=function(i){return i&&i!==t&&o("Expected '"+i+"' instead of '"+t+"'"),t=r.charAt(e),e+=1,t},a=function(){var e,r="";for("-"===t&&(r="-",s("-"));t>="0"&&t<="9";)r+=t,s();if("."===t)for(r+=".";s()&&t>="0"&&t<="9";)r+=t;if("e"===t||"E"===t)for(r+=t,s(),("-"===t||"+"===t)&&(r+=t,s());t>="0"&&t<="9";)r+=t,s();if(isFinite(e=+r))return e;o("Bad number")},c=function(){var e,r,i,a="";if('"'===t)for(;s();){if('"'===t)return s(),a;
1if("\\"===t)if(s(),"u"===t){for(r=0,i=0;r<4&&isFinite(e=parseInt(s(),16));r+=1)i=16*i+e;a+=String.fromCharCode(i)}else if("string"==typeof n[t])a+=n[t];else break;else a+=t}o("Bad string")},u=function(){for(;t&&t<=" ";)s()},l=function(){switch(t){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}o('Unexpected "'+t+'"')},p=function(){var e=[];if("["===t){if(s("["),u(),"]"===t)return s("]"),e;for(;t;){if(e.push(i()),u(),"]"===t)return s("]"),e;s(","),u()}}o("Bad array")},h=function(){var e,r={};if("{"===t){if(s("{"),u(),"}"===t)return s("}"),r;for(;t;){if(e=c(),u(),s(":"),Object.hasOwnProperty.call(r,e)&&o('Duplicate key "'+e+'"'),r[e]=i(),u(),"}"===t)return s("}"),r;s(","),u()}}o("Bad object")};return i=function(){switch(u(),t){case"{":return h();case"[":return p();case'"':return c();case"-":return a();default:return t>="0"&&t<="9"?a():l()}},function(n){var s;return r=n,e=0,t=" ",s=i(),u(),t&&o("Syntax error"),s}}(),tC.base64Encode=function(e){var t,r,i,n,o,s,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=0,u=0,l="",p=[];if(!e)return e;e=tC.utf8Encode(e);do t=e.charCodeAt(c++),r=(s=t<<16|e.charCodeAt(c++)<<8|e.charCodeAt(c++))>>18&63,i=s>>12&63,n=s>>6&63,o=63&s,p[u++]=a.charAt(r)+a.charAt(i)+a.charAt(n)+a.charAt(o);while(c<e.length);switch(l=p.join(""),e.length%3){case 1:l=l.slice(0,-2)+"==";break;case 2:l=l.slice(0,-1)+"="}return l},tC.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var t,r,i,n="",o=0;for(i=0,t=r=0,o=e.length;i<o;i++){var s=e.charCodeAt(i),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(n+=e.substring(t,r)),n+=a,t=r=i+1)}return r>t&&(n+=e.substring(t,e.length)),n},tC.UUID=function(){var e=function(){var e,t=+new Date;if(e2.performance&&e2.performance.now)e=e2.performance.now();else for(e=0;t==+new Date;)e++;return t.toString(16)+Math.floor(e).toString(16)},t=function(){var e,t,r=[],i=0;function n(e,t){var i,n=0;for(i=0;i<t.length;i++)n|=r[i]<<8*i;return e^n}for(e=0;e<tb.length;e++)t=tb.charCodeAt(e),r.unshift(255&t),r.length>=4&&(i=n(i,r),r=[]);return r.length>0&&(i=n(i,r)),i.toString(16)};return function(){var r=(tv.height*tv.width).toString(16);return e()+"-"+Math.random().toString(16).replace(".","")+"-"+t()+"-"+r+"-"+e()}}();var tN=["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"];tC.isBlockedUA=function(e){var t;for(t=0,e=e.toLowerCase();t<tN.length;t++)if(-1!==e.indexOf(tN[t]))return!0;return!1},tC.HTTPBuildQuery=function(e,t){var r,i,n=[];return tC.isUndefined(t)&&(t="&"),tC.each(e,function(e,t){r=encodeURIComponent(e.toString()),i=encodeURIComponent(t),n[n.length]=i+"="+r}),n.join(t)},tC.getQueryParam=function(e,t){var r=RegExp("[\\?&]"+(t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]"))+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var i=r[1];try{i=decodeURIComponent(i)}catch(e){tx.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},tC.cookie={get:function(e){for(var t=e+"=",r=tm.cookie.split(";"),i=0;i<r.length;i++){for(var n=r[i];" "==n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return decodeURIComponent(n.substring(t.length,n.length))}return null},parse:function(e){var t;try{t=tC.JSONDecode(tC.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,r,i,n,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(i){var l=tF(tm.location.hostname);a=l?"; domain=."+l:""}if(r){var p=new Date;p.setTime(p.getTime()+1e3*r),c="; expires="+p.toGMTString()}o&&(n=!0,u="; SameSite=None"),n&&(u+="; secure"),tm.cookie=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u},set:function(e,t,r,i,n,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(i){var l=tF(tm.location.hostname);a=l?"; domain=."+l:""}if(r){var p=new Date;p.setTime(p.getTime()+24*r*36e5),c="; expires="+p.toGMTString()}o&&(n=!0,u="; SameSite=None"),n&&(u+="; secure");var h=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u;return tm.cookie=h,h},remove:function(e,t,r){tC.cookie.set(e,"",-1,t,!1,!1,r)}};var tD=null,tA=function(e,t){if(null!==tD&&!t)return tD;var r=!0;try{e=e||e2.localStorage;var i="__mplss_"+tU(8);e.setItem(i,"xyz"),"xyz"!==e.getItem(i)&&(r=!1),e.removeItem(i)}catch(e){r=!1}return tD=r,r};tC.localStorage={is_supported:function(e){var t=tA(null,e);return t||tx.error("localStorage unsupported; falling back to cookie store"),t},error:function(e){tx.error("localStorage error: "+e)},get:function(e){try{return e2.localStorage.getItem(e)}catch(e){tC.localStorage.error(e)}return null},parse:function(e){try{return tC.JSONDecode(tC.localStorage.get(e))||{}}catch(e){}return null},set:function(e,t){try{e2.localStorage.setItem(e,t)}catch(e){tC.localStorage.error(e)}},remove:function(e){try{e2.localStorage.removeItem(e)}catch(e){tC.localStorage.error(e)}}},tC.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,r,i,n,o){if(!t)return void tx.error("No valid element provided to register_event");
1if(t.addEventListener&&!n)t.addEventListener(r,i,!!o);else{var s,a,c,u="on"+r,l=t[u];t[u]=(s=t,a=i,c=l,function(t){if(t=t||e(e2.event)){var r,i,n=!0;return tC.isFunction(c)&&(r=c(t)),i=a.call(s,t),(!1===r||!1===i)&&(n=!1),n}})}}}();var tL=RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');tC.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(r){if(!tm.getElementsByTagName)return[];var i=r.split(" "),n=[tm];for(f=0;f<i.length;f++){if((l=i[f].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){b=(p=l.split("#"))[0];var o=p[1],s=tm.getElementById(o);if(!s||b&&s.nodeName.toLowerCase()!=b)return[];n=[s];continue}if(l.indexOf(".")>-1){b=(p=l.split("."))[0];var a,c=p[1];for(b||(b="*"),h=[],d=0,_=0;_<n.length;_++)for(g=0,m="*"==b?e(n[_]):n[_].getElementsByTagName(b);g<m.length;g++)h[d++]=m[g];for(_=0,n=[],y=0;_<h.length;_++)h[_].className&&tC.isString(h[_].className)&&(a=h[_],(" "+a.className+" ").replace(t," ").indexOf(" "+c+" ")>=0)&&(n[y++]=h[_]);continue}var u=l.match(tL);if(u){var l,p,h,d,f,_,g,m,y,v,b=u[1],S=u[2],k=u[3],w=u[4];for(b||(b="*"),h=[],d=0,_=0;_<n.length;_++)for(g=0,m="*"==b?e(n[_]):n[_].getElementsByTagName(b);g<m.length;g++)h[d++]=m[g];switch(n=[],y=0,k){case"=":v=function(e){return e.getAttribute(S)==w};break;case"~":v=function(e){return e.getAttribute(S).match(RegExp("\\b"+w+"\\b"))};break;case"|":v=function(e){return e.getAttribute(S).match(RegExp("^"+w+"-?"))};break;case"^":v=function(e){return 0===e.getAttribute(S).indexOf(w)};break;case"$":v=function(e){return e.getAttribute(S).lastIndexOf(w)==e.getAttribute(S).length-w.length};break;case"*":v=function(e){return e.getAttribute(S).indexOf(w)>-1};break;default:v=function(e){return e.getAttribute(S)}}for(_=0,n=[],y=0;_<h.length;_++)v(h[_])&&(n[y++]=h[_]);continue}for(_=0,b=l,h=[],d=0;_<n.length;_++)for(g=0,m=n[_].getElementsByTagName(b);g<m.length;g++)h[d++]=m[g];n=h}return n}return function(e){return tC.isElement(e)?[e]:tC.isObject(e)&&!tC.isUndefined(e.length)?e:r.call(this,e)}}();var tq=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],tP=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];tC.info={campaignParams:function(e){var t="",r={};return tC.each(tq,function(i){(t=tC.getQueryParam(tm.URL,i)).length?r[i]=t:void 0!==e&&(r[i]=e)}),r},clickParams:function(){var e="",t={};return tC.each(tP,function(r){(e=tC.getQueryParam(tm.URL,r)).length&&(t[r]=e)}),t},marketingParams:function(){return tC.extend(tC.info.campaignParams(),tC.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=tC.info.searchEngine(e),r={};if(null!==t){r.$search_engine=t;var i=tC.getQueryParam(e,"yahoo"!=t?"q":"p");
1i.length&&(r.mp_keyword=i)}return r},browser:function(e,t,r){if(t=t||"",r||tC.includes(e," OPR/"))return tC.includes(e,"Mini")?"Opera Mini":"Opera";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";if(tC.includes(e,"IEMobile")||tC.includes(e,"WPDesktop"))return"Internet Explorer Mobile";if(tC.includes(e,"SamsungBrowser/"))return"Samsung Internet";if(tC.includes(e,"Edge")||tC.includes(e,"Edg/"))return"Microsoft Edge";else if(tC.includes(e,"FBIOS"))return"Facebook Mobile";else if(tC.includes(e,"Chrome"))return"Chrome";else if(tC.includes(e,"CriOS"))return"Chrome iOS";else if(tC.includes(e,"UCWEB")||tC.includes(e,"UCBrowser"))return"UC Browser";else if(tC.includes(e,"FxiOS"))return"Firefox iOS";else if(tC.includes(t,"Apple"))return tC.includes(e,"Mobile")?"Mobile Safari":"Safari";else if(tC.includes(e,"Android"))return"Android Mobile";else if(tC.includes(e,"Konqueror"))return"Konqueror";else if(tC.includes(e,"Firefox"))return"Firefox";else if(tC.includes(e,"MSIE")||tC.includes(e,"Trident/"))return"Internet Explorer";else if(tC.includes(e,"Gecko"))return"Mozilla";else return""},browserVersion:function(e,t,r){var i={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[tC.info.browser(e,t,r)];if(void 0===i)return null;var n=e.match(i);return n?parseFloat(n[n.length-2]):null},os:function(){if(/Windows/i.test(tb))return/Phone/.test(tb)||/WPDesktop/.test(tb)?"Windows Phone":"Windows";if(/(iPhone|iPad|iPod)/.test(tb))return"iOS";if(/Android/.test(tb))return"Android";if(/(BlackBerry|PlayBook|BB10)/i.test(tb))return"BlackBerry";if(/Mac/i.test(tb))return"Mac OS X";else if(/Linux/.test(tb))return"Linux";else if(/CrOS/.test(tb))return"Chrome OS";else return""},device:function(e){if(/Windows Phone/i.test(e)||/WPDesktop/.test(e))return"Windows Phone";if(/iPad/.test(e))return"iPad";if(/iPod/.test(e))return"iPod Touch";if(/iPhone/.test(e))return"iPhone";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";else if(/Android/.test(e))return"Android";else return""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return e2.location.href},properties:function(e){return"object"!=typeof e&&(e={}),tC.extend(tC.strip_empty_properties({$os:tC.info.os(),$browser:tC.info.browser(tb,tg.vendor,ty),$referrer:tm.referrer,$referring_domain:tC.info.referringDomain(tm.referrer),$device:tC.info.device(tb)}),{$current_url:tC.info.currentUrl(),$browser_version:tC.info.browserVersion(tb,tg.vendor,ty),$screen_height:tv.height,$screen_width:tv.width,mp_lib:"web",$lib_version:eZ.LIB_VERSION,$insert_id:tU(),time:tC.timestamp()/1e3},tC.strip_empty_properties(e))},people_properties:function(){return tC.extend(tC.strip_empty_properties({$os:tC.info.os(),$browser:tC.info.browser(tb,tg.vendor,ty)}),{$browser_version:tC.info.browserVersion(tb,tg.vendor,ty)})},mpPageViewProperties:function(){return tC.strip_empty_properties({current_page_title:tm.title,current_domain:e2.location.hostname,current_url_path:e2.location.pathname,current_url_protocol:e2.location.protocol,current_url_search:e2.location.search})}};var tU=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},t$=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,tj=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,tF=function(e){var t=tj,r=e.split("."),i=r[r.length-1];(i.length>4||"com"===i||"org"===i)&&(t=t$);var n=e.match(t);return n?n[0]:""},tB=function(){var e=e2.navigator.onLine;return tC.isUndefined(e)||e},tz=null,tW=null;function tH(e,t){t2(!0,e,t)}function tV(e,t){t2(!1,e,t)}function tG(e,t){return"1"===t1(e,t)}function tJ(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||e2,r=t.navigator||{},i=!1;return tC.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){tC.includes([!0,1,"1","yes"],e)&&(i=!0)}),i}(t))return tx.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"===t1(e,t);return r&&tx.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function tX(e){return t3(e,function(e){return this.get_config(e)})}function tQ(e){return t3(e,function(e){return this._get_config(e)})}function tK(e){return t3(e,function(e){return this._get_config(e)})}function tY(e,t){tZ(t=t||{}).remove(t0(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function tZ(e){return"localStorage"===(e=e||{}).persistenceType?tC.localStorage:tC.cookie}function t0(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function t1(e,t){return tZ(t).get(t0(e,t))}function t2(e,t,r){if(!tC.isString(t)||!t.length)return void tx.error("gdpr."+(e?"optIn":"optOut")+" called with an invali
1d token");tZ(r=r||{}).set(t0(t,r),+!!e,tC.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})}function t3(e,t){return function(){var r=!1;try{var i=t.call(this,"token"),n=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");i&&(r=tJ(i,{ignoreDnt:n,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){tx.error("Unexpected error when checking tracking opt-out status: "+e)}if(!r)return e.apply(this,arguments);var c=arguments[arguments.length-1];"function"==typeof c&&c(0)}}"undefined"!=typeof JSON&&(tz=JSON.stringify,tW=JSON.parse),tz=tz||tC.JSONEncode,tW=tW||tC.JSONDecode,tC.toArray=tC.toArray,tC.isObject=tC.isObject,tC.JSONEncode=tC.JSONEncode,tC.JSONDecode=tC.JSONDecode,tC.isBlockedUA=tC.isBlockedUA,tC.isEmptyObject=tC.isEmptyObject,tC.info=tC.info,tC.info.device=tC.info.device,tC.info.browser=tC.info.browser,tC.info.browserVersion=tC.info.browserVersion,tC.info.properties=tC.info.properties,tC.NPO=ta;var t6=tT("lock"),t5=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||ei};t5.prototype.withLock=function(e,t){return new this.promiseImpl(tC.bind(function(r,i){var n=t||new Date().getTime()+"|"+Math.random(),o=new Date().getTime(),s=this.storageKey,a=this.pollIntervalMS,c=this.timeoutMS,u=this.storage,l=s+":X",p=s+":Y",h=s+":Z",d=function(e){if(new Date().getTime()-o>c){t6.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+n+"]"),u.removeItem(h),u.removeItem(p),g();return}setTimeout(function(){try{e()}catch(e){i(e)}},a*(Math.random()+.1))},f=function(e,t){e()?t():d(function(){f(e,t)})},_=function(){var e=u.getItem(p);return(!e||e===n)&&(u.setItem(p,n),u.getItem(p)===n||(tA(u,!0)||i(Error("localStorage support dropped while acquiring lock")),!1))},g=function(){u.setItem(l,n),f(_,function(){if(u.getItem(l)===n)return void m();d(function(){if(u.getItem(p)!==n)return void g();f(function(){return!u.getItem(h)},m)})})},m=function(){u.setItem(h,"1");var t=function(){u.removeItem(h),u.getItem(p)===n&&u.removeItem(p),u.getItem(l)===n&&u.removeItem(l)};e().then(function(e){t(),r(e)}).catch(function(e){t(),i(e)})};try{if(tA(u,!0))g();else throw Error("localStorage support check failed")}catch(e){i(e)}},this))};var t4=function(e){this.storage=e||localStorage};t4.prototype.init=function(){return ei.resolve()},t4.prototype.setItem=function(e,t){return new ei(tC.bind(function(r,i){try{this.storage.setItem(e,t)}catch(e){i(e)}r()},this))},t4.prototype.getItem=function(e){return new ei(tC.bind(function(t,r){var i;try{i=this.storage.getItem(e)}catch(e){r(e)}t(i)},this))},t4.prototype.removeItem=function(e){return new ei(tC.bind(function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()},this))};var t8=tT("batch"),t9=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new t4,this.lock=new t5(e,{storage:t.sharedLockStorage||window.localStorage}),this.queueStorage.init()),this.reportError=t.errorReporter||tC.bind(t8.error,t8),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1};t9.prototype.ensureInit=function(){return this.initialized?ei.resolve():this.queueStorage.init().then(tC.bind(function(){this.initialized=!0},this)).catch(tC.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},t9.prototype.enqueue=function(e,t){var r={id:tU(),flushAfter:new Date().getTime()+2*t,payload:e};if(!this.usePersistence)return this.memQueue.push(r),ei.resolve(!0);var i=tC.bind(function(){return this.ensureInit().then(tC.bind(function(){return this.readFromStorage()},this)).then(tC.bind(function(e){return e.push(r),this.saveToStorage(e)},this)).then(tC.bind(function(e){return e&&this.memQueue.push(r),e},this)).catch(tC.bind(function(t){return this.reportError("Error enqueueing item",t,e),!1},this))},this);return this.lock.withLock(i,this.pid).catch(tC.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},t9.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(tC.bind(function(){return this.readFromStorage()},this)).then(tC.bind(function(r){if(r.length){var i={};tC.each(t,function(e){i[e.id]=!0});for(var n=0;n<r.length;n++){var o=r[n];if(new Date().getTime()>o.flushAfter&&!i[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t},this)):ei.resolve(t)};var t7=function(e,t){var r=[];return tC.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r};t9.prototype.removeItemsByID=function(e){var t={};if(tC.each(e,function(e){t[e]=!0}),this.memQueue=t7(this.memQueue,t),!this.usePersistence)return ei.resolve(!0);var r=tC.bind(function(){return this.ensureInit().then(tC.bind(function(){return this.readFromStorage()},this)).then(tC.bind(function(e){return e=t7(e,t),this.saveToStorage(e)},this)).then(tC.bind(function(){return this.readFromStorage()},this)).then(tC.bind(function(e){for(var r=0;r<e.length;r++){var i=e[r];if(i.id&&t[i.id])throw Error("Item not removed from storage")}return!0},this)).catch(tC.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(tC.bind(function(e){return this.reportError("Error acquiring storage lock",e),!tA(this.queueStorage.storage,!0)&&r().then(tC.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(tC.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))};var re=function(e,t){var r=[];return tC.each(e,function(e){var i=e.id;if(i in t){var n=t[i];null!==n&&(e.payload=n,r.push(e))}else r.push(e)}),r};t9.prototype.updatePayloads=function(e){return(this.memQueue=re(this.memQueue,e),this.usePersistence)?this.lock.withLock(tC.bind(function(){return this.ensureInit().then(tC.bind(function(){return this.readFromStorage()},this)).then(tC.bind(function(t){return t=re(t,e),this.saveToStorage(t)}
1,this)).catch(tC.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(tC.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):ei.resolve(!0)},t9.prototype.readFromStorage=function(){return this.ensureInit().then(tC.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(tC.bind(function(e){return e&&(e=tW(e),tC.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]},this)).catch(tC.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},t9.prototype.saveToStorage=function(e){try{var t=tz(e)}catch(e){return this.reportError("Error serializing queue",e),ei.resolve(!1)}return this.ensureInit().then(tC.bind(function(){return this.queueStorage.setItem(this.storageKey,t)},this)).then(function(){return!0}).catch(tC.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},t9.prototype.clear=function(){return(this.memQueue=[],this.usePersistence)?this.ensureInit().then(tC.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):ei.resolve()};var rt=tT("batch"),rr=function(e,t){this.errorReporter=t.errorReporter,this.queue=new t9(e,{errorReporter:tC.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,usePersistence:t.usePersistence}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1};rr.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},rr.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},rr.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},rr.prototype.clear=function(){return this.queue.clear()},rr.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},rr.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},rr.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(tC.bind(function(){this.stopped||this.flush()},this),this.flushInterval))},rr.prototype.sendRequestPromise=function(e,t){return new ei(tC.bind(function(r){this.sendRequest(e,t,r)},this))},rr.prototype.flush=function(e){if(this.requestInProgress)return rt.log("Flush: Request already in progress"),ei.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=new Date().getTime(),i=this.batchSize;return this.queue.fillBatch(i).then(tC.bind(function(n){var o=n.length===i,s=[],a={};if(tC.each(n,function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=tC.extend({},t.properties,{mp_sent_by_lib_version:eZ.LIB_VERSION}));var r=!0,i=e.id;i?(this.itemIdsSentSuccessfully[i]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:n.length,timesSent:this.itemIdsSentSuccessfully[i]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&s.push(t)}a[e.id]=t},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),ei.resolve();var c=tC.bind(function(){return this.queue.removeItemsByID(tC.map(n,function(e){return e.id})).then(tC.bind(function(e){return(tC.each(n,tC.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:n.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(),ei.resolve()):this.flush():(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),ei.resolve())},this))},this),u=tC.bind(function(o){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(tC.isObject(o)&&"timeout"===o.error&&new Date().getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(tC.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&!tB()||"timeout"===o.error)){var s=2*this.flushInterval;return o.retryAfter&&(s=1e3*parseInt(o.retryAfter,10)||s),s=Math.min(6e5,s),this.reportError("Error; retry in "+s+" ms"),this.scheduleFlush(s),ei.resolve()}else{if(!tC.isObject(o)||413!==o.httpStatusCode)return c();if(!(n.length>1))return this.reportError("Single-event request too large; dropping",n),this.resetBatchSize(),c();var u=Math.max(1,Math.floor(i/2));return this.batchSize=Math.min(this.batchSize,u,n.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),ei.resolve()}}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(l.transport="sendBeacon"),rt.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(u)},this)).catch(tC.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},rr.prototype.reportError=function(e,t){if(rt.error.apply(rt.error,arguments),this.errorReporter)try{t instanceof Error||(t=Error(e)),this.errorReporter(e,t)}catch(e){rt.error(e)}};var ri=tT("recorder"),rn=e2.CompressionStream,ro={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},rs=new Set([eY.MouseMove,eY.MouseInteraction,eY.Scroll,eY.ViewportResize,eY.Input,eY.TouchMove,eY.MediaInteraction,eY.Drag,eY.Selection]),ra=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 rr(t,{errorReporter:tC.bind(this.reportError,this),flushOnlyOnInterval:!0,libConfig:ro,sendRequestFunc:tC.bind(this.flushEventsWithOptOut,this),usePersistence:!1})};ra.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},ra.prototype.get_config=function(e){return this.getConfig(e)},ra.prototype.startRecording=function(e){if(null!==this._stopRecording)return void ri.log("Recording already in progress, skipping startRecording.");this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>864e5&&(this.recordMaxMs=864e5,ri.critical("record_max_ms cannot be greater than 86400000ms. Capping value.")),this.recordMinMs=this.getConfig("record_min_ms"),this.recordMinMs>8e3&&(this.recordMinMs=8e3,ri.critical("record_min_ms cannot be greater than 8000ms. Capping value.")),this.replayStartTime=new Date().getTime(),this.batchStartUrl=tC.info.currentUrl(),this.replayStartUrl=tC.info.currentUrl(),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=tC.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:tC.bind(function(e){this.batcher.enqueue(e),e.type===eK.IncrementalSnapshot&&r
1s.has(e.data.source)&&(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){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}t(),this.maxTimeoutId=setTimeout(tC.bind(this._onMaxLengthReached,this),this.recordMaxMs)},ra.prototype.stopRecording=function(){if(!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}this.batcher.stopped?this.batcher.clear():(this.batcher.flush(),this.batcher.stop()),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId)},ra.prototype.isRrwebStopped=function(){return null===this._stopRecording},ra.prototype.flushEventsWithOptOut=function(e,t,r){this._flushEvents(e,t,r,tC.bind(this._onOptOut,this))},ra.prototype._onOptOut=function(e){0===e&&this.stopRecording()},ra.prototype._sendRequest=function(e,t,r,i){var n=tC.bind(function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=tC.info.currentUrl()),i({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})},this);e2.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){n(e,t)}).catch(function(e){i({error:e})})}).catch(function(e){i({error:e,httpStatusCode:0})})},ra.prototype._flushEvents=tX(function(e,t,r){let i=e.length;if(i>0){var n=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 s=e[i-1].timestamp-this.replayStartTime,a={$current_url:this.batchStartUrl,$lib_version:eZ.LIB_VERSION,batch_start_time:o/1e3,distinct_id:String(this._mixpanel.get_distinct_id()),mp_lib:"web",replay_id:n,replay_length_ms:s,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},c=tC.JSONEncode(e),u=this._mixpanel.get_property("$device_id");u&&(a.$device_id=u);var l=this._mixpanel.get_property("$user_id");l&&(a.$user_id=l),rn?new Response(new Blob([c],{type:"application/json"}).stream().pipeThrough(new rn("gzip"))).blob().then(tC.bind(function(e){a.format="gzip",this._sendRequest(n,a,e,r)},this)):(a.format="body",this._sendRequest(n,a,c,r))}}),ra.prototype.reportError=function(e,t){ri.error.apply(ri.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.getConfig("error_reporter")(e,t)}catch(e){ri.error(e)}};var rc=tT("recorder"),ru=function(e){this._mixpanel=e,this.activeRecording=null};ru.prototype.startRecording=function(e){if(this.activeRecording&&!this.activeRecording.isRrwebStopped())return void rc.log("Recording already in progress, skipping startRecording.");var t=tC.bind(function(){rc.log("Idle timeout reached, restarting recording."),this.resetRecording()},this),r=tC.bind(function(){rc.log("Max recording length reached, stopping recording."),this.resetRecording()},this);this.activeRecording=new ra({mixpanelInstance:this._mixpanel,onIdleTimeout:t,onMaxLengthReached:r,replayId:tC.UUID(),rrwebRecord:eQ}),this.activeRecording.startRecording(e)},ru.prototype.stopRecording=function(){this.activeRecording&&(this.activeRecording.stopRecording(),this.activeRecording=null)},ru.prototype.resetRecording=function(){this.stopRecording(),this.startRecording(!0)},ru.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(ru.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),e2.__mp_recorder=ru;var rl="change",rp="click",rh="hashchange",rd="mp_locationchange",rf="popstate",r_="scrollend",rg="submit",rm=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],ry=["mp-include"],rv=["mp-no-track"],rb=rv.concat(["mp-sensitive"]),rS=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],rk=tT("autocapture");function rw(e){for(var t={},r=rI(e).split(" "),i=0;i<r.length;i++){var n=r[i];n&&(t[n]=!0)}return t}function rI(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function rM(e,t,r,i,n,o){var s={$classes:rI(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s.$id=a),rN(e,t,n,o)&&tC.each(rS.concat(i),function(t){if(e.hasAttribute(t)&&!r[t]){var i=e.getAttribute(t);rD(i)&&(s["$attr-"+t]=i)}});for(var c=1,u=1,l=e;l=function(e){if(e.previousElementSibling)return e.previousElementSibling;do e=e.previousSibling;while(e&&!rO(e));return e}(l);)c++,l.tagName===e.tagName&&u++;return s.$nth_child=c,s.$nth_of_type=u,s}function rE(e,t,r,i){var n="";return rN(e,t,r,i)&&e.childNodes&&e.childNodes.length&&tC.each(e.childNodes,function(e){rR(e)&&e.textContent&&(n+=tC.trim(e.textContent).split(/(\s+)/).filter(rD).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),tC.trim(n)}function rC(e,t,r,i){if(r)try{if(!r(e,t))return!1}catch(e){return rk.critical("Error while checking element in allowElementCallback",e),!1}if(!i.length)return!0;for(var n=0;n<i.length;n++){var o=i[n];try{if(e.matches(o))return!0}catch(e){rk.critical("Error while checking selector: "+o,e)}}return!1}function rx(e,t,r,i){if(r)try{if(r(e,t))return!0}catch(e){return rk.critical("Error while checking element in blockElementCallback",e),!0}if(i&&i.length)for(n=0;n<i.length;n++){var n,o=i[n];try{if(e.matches(o))return!0}catch(e){rk.critical("Error while checking selector: "+o,e)}}var s=rw(e);for(n=0;n<rv.length;n++)if(s[rv[n]])return!0;return!1}function rO(e){return e&&1===e.nodeType}function rT(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}
1function rR(e){return e&&3===e.nodeType}function rN(e,t,r,i){if(!rC(e,t,r,i))return!1;for(var n,o=e;o.parentNode&&!rT(o,"body");o=o.parentNode){var s=rw(o);for(n=0;n<rb.length;n++)if(s[rb[n]])return!1}var a=rw(e);for(n=0;n<ry.length;n++)if(a[ry[n]])return!0;if(rT(e,"input")||rT(e,"select")||rT(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var c=e.type||"";if("string"==typeof c)switch(c.toLowerCase()){case"hidden":case"password":return!1}var u=e.name||e.id||"";return!("string"==typeof u&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(u.replace(/[^a-zA-Z0-9]/g,"")))&&!0}function rD(e){if(null===e||tC.isUndefined(e))return!1;if("string"==typeof e&&(e=tC.trim(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))return!1;return!0}var rA="autocapture",rL="full-url",rq="allow_selectors",rP="allow_url_regexes",rU="block_attrs",r$="block_element_callback",rj="block_selectors",rF="block_url_regexes",rB="capture_extra_attrs",rz="capture_text_content",rW="scroll_capture_all",rH="scroll_depth_percent_checkpoints",rV="click",rG="input",rJ="pageview",rX="scroll",rQ="submit",rK={};rK[rq]=[],rK[rP]=[],rK[rU]=[],rK[r$]=null,rK[rj]=[],rK[rF]=[],rK[rB]=[],rK[rz]=!1,rK[rW]=!1,rK[rH]=[25,50,75,100],rK[rV]=!0,rK[rG]=!0,rK[rJ]=rL,rK[rX]=!0,rK[rQ]=!0;var rY={$mp_autocapture:!0},rZ=function(e){this.mp=e};rZ.prototype.init=function(){if(!function(){try{return!!tm.createElement("div").matches}catch(e){return!1}}())return void rk.critical("Autocapture unavailable: missing required DOM APIs");this.initPageviewTracking(),this.initClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking()},rZ.prototype.getFullConfig=function(){var e=this.mp.get_config(rA);return e?tC.isObject(e)?tC.extend({},rK,e):rK:{}},rZ.prototype.getConfig=function(e){return this.getFullConfig()[e]},rZ.prototype.currentUrlBlocked=function(){var e,t=tC.info.currentUrl(),r=this.getConfig(rP)||[];if(r.length){var i=!1;for(e=0;e<r.length;e++){var n=r[e];try{if(t.match(n)){i=!0;break}}catch(e){return rk.critical("Error while checking block URL regex: "+n,e),!0}}if(!i)return!0}var o=this.getConfig(rF)||[];if(!o||!o.length)return!1;for(e=0;e<o.length;e++)try{if(t.match(o[e]))return!0}catch(t){return rk.critical("Error while checking block URL regex: "+o[e],t),!0}return!1},rZ.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(rA)?this.getConfig(rJ):this.mp.get_config("track_pageview")},rZ.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=function(e,t){var r=t.allowElementCallback,i=t.allowSelectors||[],n=t.blockAttrs||[],o=t.blockElementCallback,s=t.blockSelectors||[],a=t.captureTextContent||!1,c=t.captureExtraAttrs||[],u={};tC.each(n,function(e){u[e]=!0});var l=null,p=void 0===e.target?e.srcElement:e.target;if(rR(p)&&(p=p.parentNode),function(e,t){if(!e||rT(e,"html")||!rO(e))return!1;switch(e.tagName.toLowerCase()){case"form":return t.type===rg;case"input":if(-1===["button","submit"].indexOf(e.getAttribute("type")))return t.type===rl;return t.type===rp;case"select":case"textarea":return t.type===rl;default:return t.type===rp}}(p,e)&&rC(p,e,r,i)&&!rx(p,e,o,s)){for(var h=[p],d=p;d.parentNode&&!rT(d,"body");)h.push(d.parentNode),d=d.parentNode;var f,_=[],g=!1;if(tC.each(h,function(t){var n=rN(t,e,r,i);u.href||"a"!==t.tagName.toLowerCase()||(f=t.getAttribute("href"),f=n&&rD(f)&&f),rx(t,e,o,s)&&(g=!0),_.push(rM(t,e,u,c,r,i))},this),!g){var m=tm.documentElement;if(l={$event_type:e.type,$host:e2.location.host,$pathname:e2.location.pathname,$elements:_,$el_attr__href:f,$viewportHeight:Math.max(m.clientHeight,e2.innerHeight||0),$viewportWidth:Math.max(m.clientWidth,e2.innerWidth||0)},tC.each(c,function(e){if(!u[e]&&p.hasAttribute(e)){var t=p.getAttribute(e);rD(t)&&(l["$el_attr__"+e]=t)}}),a&&(y=rE(p,e,r,i))&&y.length&&(l.$el_text=y),e.type===rp&&(tC.each(rm,function(t){t in e&&(l["$"+t]=e[t])}),p=function(e){for(var t=e.target,r=e.composedPath(),i=0;i<r.length;i++){var n=r[i];if(rT(n,"a")||rT(n,"button")||rT(n,"input")||rT(n,"select")||n.getAttribute&&"button"===n.getAttribute("role")){t=n;break}if(n===t)break}return t}(e)),a){var y=rE(p,e,r,i);y&&y.length&&(l.$el_text=y)}
1if(p){if(!rC(p,e,r,i)||rx(p,e,o,s))return null;var v=rM(p,e,u,c,r,i);l.$target=v,l.$el_classes=v.$classes,tC.extend(l,tC.strip_empty_properties({$el_id:v.$id,$el_tag_name:v.$tag_name}))}}}return l}(e,{allowElementCallback:this.getConfig("allow_element_callback"),allowSelectors:this.getConfig(rq),blockAttrs:this.getConfig(rU),blockElementCallback:this.getConfig(r$),blockSelectors:this.getConfig(rj),captureExtraAttrs:this.getConfig(rB),captureTextContent:this.getConfig(rz)});r&&(tC.extend(r,rY),this.mp.track(t,r))}},rZ.prototype.initClickTracking=function(){e2.removeEventListener(rp,this.listenerClick),this.getConfig(rV)&&(rk.log("Initializing click tracking"),this.listenerClick=e2.addEventListener(rp,(function(e){this.getConfig(rV)&&this.trackDomEvent(e,"$mp_click")}).bind(this)))},rZ.prototype.initInputTracking=function(){e2.removeEventListener(rl,this.listenerChange),this.getConfig(rG)&&(rk.log("Initializing input tracking"),this.listenerChange=e2.addEventListener(rl,(function(e){this.getConfig(rG)&&this.trackDomEvent(e,"$mp_input_change")}).bind(this)))},rZ.prototype.initPageviewTracking=function(){if(e2.removeEventListener(rf,this.listenerPopstate),e2.removeEventListener(rh,this.listenerHashchange),e2.removeEventListener(rd,this.listenerLocationchange),this.pageviewTrackingConfig()){rk.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(rY)),t&&(e=tC.info.currentUrl()),this.listenerPopstate=e2.addEventListener(rf,function(){e2.dispatchEvent(new Event(rd))}),this.listenerHashchange=e2.addEventListener(rh,function(){e2.dispatchEvent(new Event(rd))});var r=e2.history.pushState;"function"==typeof r&&(e2.history.pushState=function(e,t,i){r.call(e2.history,e,t,i),e2.dis
1patchEvent(new Event(rd))});var i=e2.history.replaceState;"function"==typeof i&&(e2.history.replaceState=function(e,t,r){i.call(e2.history,e,t,r),e2.dispatchEvent(new Event(rd))}),this.listenerLocationchange=e2.addEventListener(rd,tR((function(){if(!this.currentUrlBlocked()){var t=tC.info.currentUrl(),r=!1,i=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],n=this.pageviewTrackingConfig();n===rL?r=t!==e:"url-with-path-and-query-string"===n?r=t.split("#")[0]!==e.split("#")[0]:"url-with-path"===n&&(r=i),r&&(this.mp.track_pageview(rY)&&(e=t),i&&(this.lastScrollCheckpoint=0,rk.log("Path change: re-initializing scroll depth checkpoints")))}}).bind(this)))}},rZ.prototype.initScrollTracking=function(){e2.removeEventListener(r_,this.listenerScroll),this.getConfig(rX)&&(rk.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0,this.listenerScroll=e2.addEventListener(r_,tR((function(){if(this.getConfig(rX)&&!this.currentUrlBlocked()){var e=this.getConfig(rW),t=(this.getConfig(rH)||[]).slice().sort(function(e,t){return e-t}),r=e2.scrollY,i=tC.extend({$scroll_top:r},rY);try{var n=tm.body.scrollHeight,o=Math.round(r/(n-e2.innerHeight)*100);if(i.$scroll_height=n,i.$scroll_percentage=o,o>this.lastScrollCheckpoint)for(var s=0;s<t.length;s++){var a=t[s];o>=a&&this.lastScrollCheckpoint<a&&(i.$scroll_checkpoint=a,this.lastScrollCheckpoint=a,e=!0)}}catch(e){rk.critical("Error while calculating scroll percentage",e)}e&&this.mp.track("$mp_scroll",i)}}).bind(this))))},rZ.prototype.initSubmitTracking=function(){e2.removeEventListener(rg,this.listenerSubmit),this.getConfig(rQ)&&(rk.log("Initializing submit tracking"),this.listenerSubmit=e2.addEventListener(rg,(function(e){this.getConfig(rQ)&&this.trackDomEvent(e,"$mp_submit")}).bind(this)))},function(e){var t=e.prototype;for(var r in t)"function"==typeof t[r]&&(t[r]=tR(t[r]))}(rZ);var r0=function(){};r0.prototype.create_properties=function(){},r0.prototype.event_handler=function(){},r0.prototype.after_track_handler=function(){},r0.prototype.init=function(e){return this.mp=e,this},r0.prototype.track=function(e,t,r,i){var n=this,o=tC.dom_query(e);return 0===o.length?void tx.error("The DOM query ("+e+") returned 0 elements"):(tC.each(o,function(e){tC.register_event(e,this.override_event,function(e){var o={},s=n.create_properties(r,this),a=n.mp.get_config("track_links_timeout");n.event_handler(e,this,o),window.setTimeout(n.track_callback(i,s,o,!0),a),n.mp.track(t,s,n.track_callback(i,s,o))})},this),!0)},r0.prototype.track_callback=function(e,t,r,i){i=i||!1;var n=this;return function(){!r.callback_fired&&(r.callback_fired=!0,e&&!1===e(i,t)||n.after_track_handler(t,r,i))}},r0.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):tC.extend({},e)};var r1=function(){this.override_event="click"};tC.inherit(r1,r0),r1.prototype.create_properties=function(e,t){var r=r1.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},r1.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},r1.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var r2=function(){this.override_event="submit"};tC.inherit(r2,r0),r2.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},r2.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var r3="$set",r6="$set_once",r5="$unset",r4="$add",r8="$append",r9="$union",r7="$remove",ie={set_action:function(e,t){var r={},i={};return tC.isObject(e)?tC.each(e,function(e,t){this._is_reserved_property(t)||(i[t]=e)},this):i[e]=t,r[r3]=i,r},unset_action:function(e){var t={},r=[];return tC.isArray(e)||(e=[e]),tC.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[r5]=r,t},set_once_action:function(e,t){var r={},i={};return tC.isObject(e)?tC.each(e,function(e,t){this._is_reserved_property(t)||(i[t]=e)},this):i[e]=t,r[r6]=i,r},union_action:function(e,t){var r={},i={};return tC.isObject(e)?tC.each(e,function(e,t){this._is_reserved_property(t)||(i[t]=tC.isArray(e)?e:[e])},this):i[e]=tC.isArray(t)?t:[t],r[r9]=i,r},append_action:function(e,t){var r={},i={};return tC.isObject(e)?tC.each(e,function(e,t){this._is_reserved_property(t)||(i[t]=e)},this):i[e]=t,r[r8]=i,r},remove_action:function(e,t){var r={},i={};return tC.isObject(e)?tC.each(e,function(e,t){this._is_reserved_property(t)||(i[t]=e)},this):i[e]=t,r[r7]=i,r},delete_action:function(){var e={};return e.$delete="",e}},it=function(){};tC.extend(it.prototype,ie),it.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},it.prototype.set=tK(function(e,t,r){var i=this.set_action(e,t);return tC.isObject(e)&&(r=t),this._send_request(i,r)}),it.prototype.set_once=tK(function(e,t,r){var i=this.set_once_action(e,t);return tC.isObject(e)&&(r=t),this._send_request(i,r)}),it.prototype.unset=tK(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),it.prototype.union=tK(function(e,t,r){tC.isObject(e)&&(r=t);var i=this.union_action(e,t);return this._send_request(i,r)}),it.prototype.delete=tK(function(e){var t=this.delete_action();return this._send_request(t,e)}),it.prototype.remove=tK(function(e,t,r){var i=this.remove_action(e,t);return this._send_request(i,r)}),it.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=tC.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},it.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},it.prototype._get_config=function(e){return this._mixpanel.get_config(e)},it.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},it.prototype.remove=it.prototype.remove,it.prototype.set=it.prototype.set,it.prototype.set_once=it.prototype.set_once,it.prototype.union=it.prototype.union,it.prototype.unset=it.prototype.unset,it.prototype.toString=it.prototype.toString;var ir=function(){};tC.extend(ir.prototype,ie),ir.prototype._init=function(e){this._mixpanel=e},ir.prototype.set=tQ(function(e,t,r){var i=this.set_action(e,t);return tC.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),i[r3]=tC.extend({},tC.info.people_properties(),i[r3]),this._send_request(i,r)}),ir.prototype.set_once=tQ(function(e,t,r){var i=this.set_once_action(e,t);return tC.isObject(e)&&(r=t),this._send_request(i,r)}),ir.prototype.unset=tQ(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),ir.prototype.increment=tQ(function(e,t,r){var i={},n={};return tC.isObject(e)?(tC.each(e,function(e,t){if(!this._is_reserved_property(t))if(isNaN(parseFloat(e)))return void tx.error("Invalid increment value passed to mixpanel.people.increment - must be a number");else n[t]=e},this),r=t):(tC.isUndefined(t)&&(t=1),n[e]=t),i[r4]=n,this._send_request(i,r)}),ir.prototype.append=tQ(function(e,t,r){tC.isObject(e)&&(r=t);var i=this.append_action(e,t);return this._send_request(i,r)}),ir.prototype.remove=tQ(function(e,t,r){tC.isObject(e)&&(r=t);var i=this.remove_action(e,t);return this._send_request(i,r)}),ir.prototype.union=tQ(function(e,t,r){tC.isObject(e)&&(r=t);var i=this.union_action(e,t);return this._send_request(i,r)}),ir.prototype.track_charge=tQ(function(e,t,r){return!tC.isNumber(e)&&isNaN(e=parseFloat(e))?void tx.error("Invalid value passed to mixpanel.people.track_charge - must be a number"):this.append("$transactions",tC.extend({$amount:e},t),r)}),ir.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},ir.prototype.delete_user=function(){if(!this._identify_called())return void tx.error("mixpanel.people.delete_user() requires you to call identify() first");var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)},ir.prototype.toString=function(){return this._mixpanel.toString()+".people"},ir.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),i=this._mixpanel.get_property("$user_id"),n=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),i&&(e.$user_id=i),n&&(e.$had_persisted_distinct_id=n);var o=tC.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),tC.isUndefined(t)||t(this._get_config("verbose")?{status:-1,error:null}:-1),tC.truncate(o,255))},ir.prototype._get_config=function(e){return this._mixpanel.get_config(e)},ir.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},ir.prototype._enqueue=function(e){r3 in e?this._mixpanel.persistence._add_to_people_queue(r3,e):r6 in e?this._mixpanel.persistence._add_to_people_queue(r6,e):r5 in e?this._mixpanel.persistence._add_to_people_queue(r5,e):r4 in e?this._mixpanel.persistence._add_to_people_queue(r4,e):r8 in e?this._mixpanel.persistence._add_to_people_queue(r8,e):r7 in e?this._mixpanel.persistence._add_to_people_queue(r7,e):r9 in e?this._mixpanel.persistence._add_to_people_queue(r9,e):tx.error("Invalid call to _enqueue():",e)},ir.prototype._flush_one_queue=function(e,t,r,i){var n=this,o=tC.extend({},this._mixpanel.persistence.load_queue(e)),s=o;!tC.isUndefined(o)&&tC.isObject(o)&&!tC.isEmptyObject(o)&&(n._mixpanel.persistence._pop_from_people_queue(e,o),n._mixpanel.persistence.save(),i&&(s=i(o)),t.call(n,s,function(t,i){0===t&&n._mi
1xpanel.persistence._add_to_people_queue(e,o),tC.isUndefined(r)||r(t,i)}))},ir.prototype._flush=function(e,t,r,i,n,o,s){var a=this;this._flush_one_queue(r3,this.set,e),this._flush_one_queue(r6,this.set_once,i),this._flush_one_queue(r5,this.unset,o,function(e){return tC.keys(e)}),this._flush_one_queue(r4,this.increment,t),this._flush_one_queue(r9,this.union,n);var c=this._mixpanel.persistence.load_queue(r8);if(!tC.isUndefined(c)&&tC.isArray(c)&&c.length)for(var u,l=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(r8,u),tC.isUndefined(r)||r(e,t)},p=c.length-1;p>=0;p--)u=(c=this._mixpanel.persistence.load_queue(r8)).pop(),a._mixpanel.persistence.save(),tC.isEmptyObject(u)||a.append(u,l);var h=this._mixpanel.persistence.load_queue(r7);if(!tC.isUndefined(h)&&tC.isArray(h)&&h.length)for(var d,f=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(r7,d),tC.isUndefined(s)||s(e,t)},_=h.length-1;_>=0;_--)d=(h=this._mixpanel.persistence.load_queue(r7)).pop(),a._mixpanel.persistence.save(),tC.isEmptyObject(d)||a.remove(d,f)},ir.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},ir.prototype.set=ir.prototype.set,ir.prototype.set_once=ir.prototype.set_once,ir.prototype.unset=ir.prototype.unset,ir.prototype.increment=ir.prototype.increment,ir.prototype.append=ir.prototype.append,ir.prototype.remove=ir.prototype.remove,ir.prototype.union=ir.prototype.union,ir.prototype.track_charge=ir.prototype.track_charge,ir.prototype.clear_charges=ir.prototype.clear_charges,ir.prototype.delete_user=ir.prototype.delete_user,ir.prototype.toString=ir.prototype.toString;var ii="__mps",io="__mpso",is="__mpus",ia="__mpa",ic="__mpap",iu="__mpr",il="__mpu",ip="$people_distinct_id",ih="__alias",id="__timers",i_=[ii,io,is,ia,ic,iu,il,ip,ih,id],ig=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&&(tx.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&tC.localStorage.is_supported()?this.storage=tC.localStorage:this.storage=tC.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};ig.prototype.properties=function(){var e={};return this.load(),tC.each(this.props,function(t,r){tC.include(i_,r)||(e[r]=t)}),e},ig.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=tC.extend({},e))}},ig.prototype.upgrade=function(){var e,t;this.storage===tC.localStorage?(e=tC.cookie.parse(this.name),tC.cookie.remove(this.name),tC.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===tC.cookie&&(t=tC.localStorage.parse(this.name),tC.localStorage.remove(this.name),t&&this.register_once(t))},ig.prototype.save=function(){this.disabled||this.storage.set(this.name,tC.JSONEncode(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},ig.prototype.load_prop=function(e){return this.load(),this.props[e]},ig.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},ig.prototype.clear=function(){this.remove(),this.props={}},ig.prototype.register_once=function(e,t,r){return!!tC.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),tC.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},ig.prototype.register=function(e,t){return!!tC.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),tC.extend(this.props,e),this.save(),!0)},ig.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},ig.prototype.update_search_keyword=function(e){this.register(tC.info.searchInfo(e))},ig.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:tC.info.referringDomain(e)||"$direct"},"")},ig.prototype.get_referrer_info=function(){return tC.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},ig.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)},ig.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},ig.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},ig.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},ig.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},ig.prototype.get_cross_subdomain=function(){return this.cross_subdomain},ig.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},ig.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),i=t[e],n=this._get_or_create_queue(r3),o=this._get_or_create_queue(r6),s=this._get_or_create_queue(r5),a=this._get_or_create_queue(r4),c=this._get_or_create_queue(r9),u=this._get_or_create_queue(r7,[]),l=this._get_or_create_queue(r8,[]);r===ii?(tC.extend(n,i),this._pop_from_people_queue(r4,i),this._pop_from_people_queue(r9,i),this._pop_from_people_queue(r5,i)):r===io?(tC.each(i,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(r5,i)):r===is?tC.each(i,function(e){tC.each([n,o,a,c],function(t){e in t&&delete t[e]}),tC.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===ia?(tC.each(i,function(e,t){t in n?n[t]+=e:(t in a||(a[t]=0),a[t]+=e)},this),this._pop_from_people_queue(r5,i)):r===il?(tC.each(i,function(e,t){tC.isArray(e)&&(t in c||(c[t]=[]),tC.each(e,function(e){tC.include(c[t],e)||c[t].push(e)}))}),this._pop_from_people_queue(r5,i)):r===iu?(u.push(i),this._pop_from_people_queue(r8,i)):r===ic&&(l.push(i),this._pop_from_people_queue(r5,i)),tx.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),tx.log(t),this.save()},ig.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];tC.isUndefined(r)||tC.each(t,function(t,i){e===r8||e===r7?tC.each(r,function(e){e[i]===t&&delete e[i]}):delete r[i]},this)},ig.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},ig.prototype._get_queue_key=function(e){return e===r3?ii:e===r6?io:e===r5?is:e===r4?ia:e===r8?ic:e===r7?iu:e===r9?il:void tx.error("Invalid queue:",e)},ig.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=tC.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},ig.prototype.set_event_timer=function(e,t){var r=this.load_prop(id)||{};r[e]=t,this.props[id]=r,this.save()},ig.prototype.remove_event_timer=function(e){var t=(this.load_prop(id)||{})[e];return tC.isUndefined(t)||(delete this.props[id][e],this.save()),t};var im=function(e,t){throw Error(e+" not available in this build.")},iy=function(e){return e},iv=function(){},ib="mixpanel",iS="base64",ik="$device:",iw=e2.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,iI=!iw&&-1===tb.indexOf("MSIE")&&-1===tb.indexOf("Mozilla"),iM=null;tg.sendBeacon&&(iM=function(){return tg.sendBeacon.apply(tg,arguments)});var iE={track:"track/",engage:"engage/",groups:"groups/",record:"record/"},iC={api_host:"https://api-js.mixpanel.com",api_routes:iE,api_method:"POST",api_transport:"XHR",api_payload_format:iS,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:iv,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:iv,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:!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: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: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"},ix=!1,iO=function(){},iT=function(e,t,r){var i,n=r===ib?eo:eo[r];if(n&&0===en)i=n;else{if(n&&!tC.isArray(n))return void tx.error("You have already initialized "+r);i=new iO}if(i._cached_groups={},i._init(e,t,r),i.people=new ir,i.people._init(i),!i.get_config("skip_first_touch_marketing")){var o=tC.info.campaignParams(null),s={},a=!1;tC.each(o,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&i.people.set_once(s)}return eZ.DEBUG=eZ.DEBUG||i.get_config("debug"),!tC.isUndefined(n)&&tC.isArray(n)&&(i._execute_array.call(i.people,n.people),i._execute_array(n)),i};iO.prototype.init=function(e,t,r){if(tC.isUndefined(r))return void this.report_error("You must name your new library: init(token, config, name)");if(r===ib)return void this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");var i=iT(e,t,r);return eo[r]=i,i._loaded(),i},iO.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var i={};if("api_payload_format"in t||(t.api_host||iC.api_host).match(/\.mixpanel\.com/)&&(i.api_payload_format="json"),this.set_config(tC.extend({},iC,i,t,{name:r,token:e,callback_fn:(r===ib?r:ib+"."+r)+"._jsc"})),this._jsc=iv,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(tC.localStorage.is_supported(!0)&&iw){if(this.init_batchers(),iM&&e2.addEventListener){var n=tC.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);e2.addEventListener("pagehide",function(e){e.persisted&&n()}),e2.addEventListener("visibilitychange",function(){"hidden"===tm.visibilityState&&n()})}}else this._batch_requests=!1,tx.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),tC.each(this.get_batcher_configs(),function(e){tx.log("Clearing batch queue "+e.queue_key),tC.localStorage.remove(e.queue_key)});this.persistence=this.cookie=new ig(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=tC.UUID();this.get_distinct_id()||this.register_once({distinct_id:ik+o,$device_id:o},""),this.autocapture=new rZ(this),this.autocapture.init(),this.get_config("record_sessions_percent")>0&&100*Math.random()<=this.get_config("record_sessions_percent")&&this.start_session_recording()},iO.prototype.start_session_recording=tX(function(){if(!e2.MutationObserver)return void tx.critical("Browser does not support MutationObserver; skipping session recording");var e=tC.bind(function(){this._recorder=this._recorder||new e2.__mp_recorder(this),this._recorder.startRecording()},this);tC.isUndefined(e2.__mp_recorder)?im(this.get_config("recorder_src"),e):e()}),iO.prototype.stop_session_recording=function(){this._recorder?this._recorder.stopRecording():tx.critical("Session recorder module not loaded")},iO.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e.$mp_replay_id=t),e},iO.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();return t&&(e="https://mixpanel.com/projects/replay-redirect?"+tC.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")})),e},iO.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},iO.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=tC.info.campaignParams(null);tC.each(e,(function(e,t){this.unregister(t)}).bind(this))}},iO.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(tm.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(tC.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(tm.referrer)},iO.prototype._dom_loaded=function(){tC.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||tC.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},iO.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(!ix)return this.__dom_loaded_queue.push([e,t]),!1;var r=new e().init(this);return r.track.apply(r,t)},iO.prototype._prepare_callback=function(e,t){if(tC.isUndefined(e))return null;if(iw)return function(r){e(r,t)};var r=this._jsc,i=""+Math.floor(1e8*Math.random()),n=this.get_config("callback_fn")+"["+i+"]";return r[i]=function(n){delete r[i],e(n,t)},n},iO.prototype._send_request=function(e,t,r,i){var n=!0;if(iI)return this.__request_queue.push(arguments),n;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose
1:this.get_config("verbose")},s=null;!i&&(tC.isFunction(r)||"string"==typeof r)&&(i=r,r=null),r=tC.extend(o,r||{}),iw||(r.method="GET");var a="POST"===r.method,c=iM&&a&&"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),!iw&&(i?t.callback=i:(u||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=+!!this.get_config("ip"),t._=new Date().getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),e+="?"+tC.HTTPBuildQuery(t);var l=this;if("img"in t){var p=tm.createElement("img");p.src=e,tm.body.appendChild(p)}else if(c){try{n=iM(e,s)}catch(e){l.report_error(e),n=!1}try{i&&i(+!!n)}catch(e){l.report_error(e)}}else if(iw)try{var h=new XMLHttpRequest;h.open(r.method,e,!0);var d=this.get_config("xhr_headers");if(a&&(d["Content-Type"]="application/x-www-form-urlencoded"),tC.each(d,function(e,t){h.setRequestHeader(t,e)}),r.timeout_ms&&void 0!==h.timeout){h.timeout=r.timeout_ms;var f=new Date().getTime()}h.withCredentials=!0,h.onreadystatechange=function(){if(4===h.readyState){if(200===h.status){if(i)if(u){try{e=tC.JSONDecode(h.responseText)}catch(t){if(l.report_error(t),!r.ignore_json_errors)return;e=h.responseText}i(e)}else i(Number(h.responseText))}else if(t=h.timeout&&!h.status&&new Date().getTime()-f>=h.timeout?"timeout":"Bad HTTP status: "+h.status+" "+h.statusText,l.report_error(t),i)if(u){var e,t,n=h.responseHeaders||{};i({status:0,httpStatusCode:h.status,error:t,retryAfter:n["Retry-After"]})}else i(0)}},h.send(s)}catch(e){l.report_error(e),n=!1}else{var _=tm.createElement("script");_.type="text/javascript",_.async=!0,_.defer=!0,_.src=e;var g=tm.getElementsByTagName("script")[0];g.parentNode.insertBefore(_,g)}return n},iO.prototype._execute_array=function(e){var t,r=[],i=[],n=[];tC.each(e,function(e){e&&(t=e[0],tC.isArray(t)?n.push(e):"function"==typeof e?e.call(this):tC.isArray(e)&&"alias"===t?r.push(e):tC.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?n.push(e):i.push(e))},this);var o=function(e,t){tC.each(e,function(e){if(tC.isArray(e[0])){var r=t;tC.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(i,this),o(n,this)},iO.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},iO.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},iO.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=tC.bind(function(e){return new rr(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:tC.bind(function(t,r,i){this._send_request(this.get_config("api_host")+e.endpoint,this._encode_data_for_request(t),r,this._prepare_callback(i,t))},this),beforeSendHook:tC.bind(function(t){return this._run_hook("before_send_"+e.type,t)},this),stopAllBatchingFunc:tC.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()},iO.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,tC.each(this.request_batchers,function(e){e.start()}))},iO.prototype.stop_batch_senders=function(){this._batch_requests=!1,tC.each(this.request_batchers,function(e){e.stop(),e.clear()})},iO.prototype.push=function(e){this._execute_array([e])},iO.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},iO.prototype._encode_data_for_request=function(e){var t=tC.JSONEncode(e);return this.get_config("api_payload_format")===iS&&(t=tC.base64Encode(t)),{data:t}},iO.prototype._track_or_batch=function(e,t){var r=tC.truncate(e.data,255),i=e.endpoint,n=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||iv;var a=!0,c=tC.bind(function(){return(s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r)?(tx.log("MIXPANEL REQUEST:"),tx.log(r),this._send_request(i,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!o?n.enqueue(r).then(function(e){e?t(1,r):c()}):a=c(),a&&r},iO.prototype.track=tX(function(e,t,r,i){i||"function"!=typeof r||(i=r,r=null);var n=(r=r||{}).transport;n&&(r.transport=n);var o=r.send_immediately;if("function"!=typeof i&&(i=iv),tC.isUndefined(e))return void this.report_error("No event name provided to mixpanel.track");if(this._event_is_disabled(e))return void i(0);(t=tC.extend({},t)).token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!tC.isUndefined(s)){var a=new Date().getTime()-s;t.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?tC.info.marketingParams():{};t=tC.extend({},tC.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");tC.isArray(u)?tC.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},i)}),iO.prototype.set_group=tX(function(e,t,r){tC.isArray(t)||(t=[t]);var i={};return i[e]=t,this.register(i),this.people.set(e,t,r)}),iO.prototype.add_group=tX(function(e,t,r){var i=this.get_property(e),n={};return void 0===i?(n[e]=[t],this.register(n)):-1===i.indexOf(t)&&(i.push(t),n[e]=i,this.register(n)),this.people.union(e,t,r)}),iO.prototype.remove_group=tX(function(e,t,r){var i=this.get_property(e);if(void 0!==i){var n=i.indexOf(t);n>-1&&(i.splice(n,1),this.register({group_key:i})),0===i.length&&this.unregister(e)}return this.people.remove(e,t,r)}),iO.prototype.track_with_groups=tX(function(e,t,r,i){var n=tC.extend({},t||{});return tC.each(r,function(e,t){null!=e&&(n[t]=e)}),this.track(e,n,i)}),iO.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},iO.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},iO.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),i=this._cached_groups[r];return(void 0===i||i._group_key!==e||i._group_id!==t)&&((i=new it)._init(this,e,t),this._cached_groups[r]=i),i},iO.prototype.track_pageview=tX(function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",i=tC.extend(tC.info.mpPageViewProperties(),tC.info.campaignParams(),tC.info.clickParams()),n=tC.extend({},i,e);return this.track(r,n)}),iO.prototype.track_links=function(){return this._track_dom.call(this,r1,arguments)},iO.prototype.track_forms=function(){return this._track_dom.call(this,r2,arguments)},iO.prototype.time_event=function(e){if(tC.isUndefined(e))return void 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 iR={persistent:!0},iN=function(e){var t;return t=tC.isObject(e)?e:tC.isUndefined(e)?{}:{days:e},tC.extend({},iR,t)};iO.prototype.register=function(e,t){var r=iN(t);r.persistent?this.persistence.register(e,r.days):tC.extend(this.unpersisted_superprops,e)},iO.prototype.register_once=function(e,t,r){var i=iN(r);i.persistent?this.persistence.register_once(e,t,i.days):(void 0===t&&(t="None"),tC.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))},iO.prototype.unregister=function(e,t){(t=iN(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},iO.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},iO.prototype.identify=function(e,t,r,i,n,o,s,a){var c=this.get_distinct_id();if(e&&c!==e){if("string"==typeof e&&0===e.indexOf(ik))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}this.get_property("$device_id")||this.register_once({$had_persisted_distinct_id:!0,$device_id:c},""),e!==c&&e!==this.get_property(ih)&&(this.unregister(ih),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,i,n,o,s,a),e!==c&&this.track("$identify",{distinct_id:e,$anon_distinct_id:c},{skip_hooks:!0})},iO.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=tC.UUID();this.register_once({distinct_id:ik+e,$device_id:e},"")},iO.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},iO.prototype.alias=function(e,t){if(e===this.get_property(ip))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return(tC.isUndefined(t)&&(t=this.get_distinct_id()),e!==t)?(this._register_single(ih,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)},iO.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},iO.prototype.set_config=function(e){tC.isObject(e)&&(tC.extend(this.config,e),e.batch_size&&tC.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),eZ.DEBUG=eZ.DEBUG||this.get_config("debug"),"autocapture"in e&&this.autocapture&&this.autocapture.init())},iO.prototype.get_config=function(e){return this.config[e]},iO.prototype._run_hook=function(e){var t=(this.config.hooks[e]||iy).apply(this,th.call(arguments,1
1));return void 0===t&&(this.report_error(e+" hook did not return a value"),t=null),t},iO.prototype.get_property=function(e){return this.persistence.load_prop([e])},iO.prototype.toString=function(){var e=this.get_config("name");return e!==ib&&(e=ib+"."+e),e},iO.prototype._event_is_disabled=function(e){return tC.isBlockedUA(tb)||this._flags.disable_all_events||tC.include(this.__disabled_events,e)},iO.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&tC.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")||tC.cookie.get("mp_optout"))&&(tC.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},iO.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()},iO.prototype._gdpr_call_func=function(e,t){return t=tC.extend({track:tC.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),tC.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})},iO.prototype.opt_in_tracking=function(e){e=tC.extend({enable_persistence:!0},e),this._gdpr_call_func(tH,e),this._gdpr_update_persistence(e)},iO.prototype.opt_out_tracking=function(e){(e=tC.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(tV,e),this._gdpr_update_persistence(e)},iO.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(tG,e)},iO.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(tJ,e)},iO.prototype.clear_opt_in_out_tracking=function(e){e=tC.extend({enable_persistence:!0},e),this._gdpr_call_func(tY,e),this._gdpr_update_persistence(e)},iO.prototype.report_error=function(e,t){tx.error.apply(tx.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.get_config("error_reporter")(e,t)}catch(e){tx.error(e)}},iO.prototype.init=iO.prototype.init,iO.prototype.reset=iO.prototype.reset,iO.prototype.disable=iO.prototype.disable,iO.prototype.time_event=iO.prototype.time_event,iO.prototype.track=iO.prototype.track,iO.prototype.track_links=iO.prototype.track_links,iO.prototype.track_forms=iO.prototype.track_forms,iO.prototype.track_pageview=iO.prototype.track_pageview,iO.prototype.register=iO.prototype.register,iO.prototype.register_once=iO.prototype.register_once,iO.prototype.unregister=iO.prototype.unregister,iO.prototype.identify=iO.prototype.identify,iO.prototype.alias=iO.prototype.alias,iO.prototype.name_tag=iO.prototype.name_tag,iO.prototype.set_config=iO.prototype.set_config,iO.prototype.get_config=iO.prototype.get_config,iO.prototype.get_property=iO.prototype.get_property,iO.prototype.get_distinct_id=iO.prototype.get_distinct_id,iO.prototype.toString=iO.prototype.toString,iO.prototype.opt_out_tracking=iO.prototype.opt_out_tracking,iO.prototype.opt_in_tracking=iO.prototype.opt_in_tracking,iO.prototype.has_opted_out_tracking=iO.prototype.has_opted_out_tracking,iO.prototype.has_opted_in_tracking=iO.prototype.has_opted_in_tracking,iO.prototype.clear_opt_in_out_tracking=iO.prototype.clear_opt_in_out_tracking,iO.prototype.get_group=iO.prototype.get_group,iO.prototype.set_group=iO.prototype.set_group,iO.prototype.add_group=iO.prototype.add_group,iO.prototype.remove_group=iO.prototype.remove_group,iO.prototype.track_with_groups=iO.prototype.track_with_groups,iO.prototype.start_batch_senders=iO.prototype.start_batch_senders,iO.prototype.stop_batch_senders=iO.prototype.stop_batch_senders,iO.prototype.start_session_recording=iO.prototype.start_session_recording,iO.prototype.stop_session_recording=iO.prototype.stop_session_recording,iO.prototype.get_session_recording_properties=iO.prototype.get_session_recording_properties,iO.prototype.get_session_replay_url=iO.prototype.get_session_replay_url,iO.prototype.DEFAULT_API_ROUTES=iE,ig.prototype.properties=ig.prototype.properties,ig.prototype.update_search_keyword=ig.prototype.update_search_keyword,ig.prototype.update_referrer_info=ig.prototype.update_referrer_info,ig.prototype.get_cross_subdomain=ig.prototype.get_cross_subdomain,ig.prototype.clear=ig.prototype.clear;var iD={},iA=function(){tC.each(iD,function(e,t){t!==ib&&(eo[t]=e)}),eo._=tC},iL=(im=function(e,t){t()},en=0,(eo=new iO).init=function(e,t,r){if(r)return eo[r]||(eo[r]=iD[r]=iT(e,t,r),eo[r]._loaded()),eo[r];var i=eo;iD[ib]?i=iD[ib]:e&&((i=iT(e,t,ib))._loaded(),iD[ib]=i),eo=i,1===en&&(e2[ib]=eo),iA()},eo.init(),function(){function e(){e.done||(e.done=!0,ix=!0,iI=!1,tC.each(iD,function(e){e._dom_loaded()}))}if(tm.addEventListener)"complete"===tm.readyState?e():tm.addEventListener("DOMContentLoaded",e,!1);else if(tm.attachEvent){tm.attachEvent("onreadystatechange",e);var t=!1;try{t=null===e2.frameElement}catch(e){}tm.documentElement.doScroll&&t&&function t(){try{tm.documentElement.doScroll("left")}catch(e){setTimeout(t,1);return}e()}()}tC.register_event(e2,"load",e,!0)}(),eo)}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.