PageSourceSearch

https://www.jomashop.com/dist/js/6751.8ff99a9f6b1059515887.bundle.js

js jomashop.com collected 2026-09-24 08:56:11 UTC 153,332 bytes, 937 lines download raw bytes

1/*! For license information please see 6751.8ff99a9f6b1059515887.bundle.js.LICENSE.txt */
2"use strict";(self.webpackChunkJomashop=self.webpackChunkJomashop||[]).push([[6751],{76751:(e,t,r)=>{var o
3function isShadowRoot(e){const t=null==e?void 0:e.host
4return Boolean((null==t?void 0:t.shadowRoot)===e)}function isNativeShadowDom(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function stringifyStylesheet(e){try{const t=e.rules||e.cssRules
5return t?function fixBrowserCompatibilityIssuesInCSS(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e}(Array.from(t,stringifyRule).join("")):null}catch(e){return null}}function stringifyRule(e){let t
6if(function isCSSImportRule(e){return"styleSheet"in e}(e))try{t=stringifyStylesheet(e.styleSheet)||function escapeImportStatement(e){const{cssText:t}=e
7if(t.split('"').length<3)return t
8const r=["@import",`url(${JSON.str
8ingify(e.href)})`]
9return""===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(function isCSSStyleRule(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return function fixSafariColons(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm
10return e.replace(t,"$1\\$2")}(e.cssText)
11return t||e.cssText}r.r(t),r.d(t,{default:()=>ft}),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"}(o||(o={}))
12class Mirror{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){var t
13if(!e)return-1
14const r=null===(t=this.getMeta(e))||void 0===t?void 0:t.id
15return 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){const t=this.getId(e)
16this.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){const r=t.id
17this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e)
18if(r){const e=this.nodeMetaMap.get(r)
19e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function maskInputValue({element:e,maskInputOptions:t,tagName:r,type:o,value:n,maskInputFn:i}){let s=n||""
20const a=o&&toLowerCase(o)
21return(t[r.toLowerCase()]||a&&t[a])&&(s=i?i(s,e):"*".repeat(s.length)),s}function toLowerCase(e){return e.toLowerCase()}const n="__rrweb_original__"
22function getInputType(e){const t=e.type
23return e.hasAttribute("data-rr-is-password")?"password":t?toLowerCase(t):null}function extractFileExtension(e,t){var r
24let o
25try{o=new URL(e,null!=t?t:window.location.href)}catch(e){return null}const n=o.pathname.match(/\.([0-9a-z]+)(?:$)/i)
26return null!==(r=null==n?void 0:n[1])&&void 0!==r?r:null}let i=1
27const s=new RegExp("[^a-z0-9-_:]")
28function genId(){return i++}let a,c
29const l=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,u=/^(?:[a-z+]+:)?\/\//i,p=/^www\..*/i,d=/^(data:)([^,]*),(.*)/i
30function absoluteToStylesheet(e,t){return(e||"").replace(l,(e,r,o,n,i,s)=>{const a=o||i||s,c=r||n||""
31if(!a)return e
32if(u.test(a)||p.test(a))return`url(${c}${a}${c})`
33if(d.test(a))return`url(${c}${a}${c})`
34if("/"===a[0])return`url(${c}${function extractOrigin(e){let t=""
35return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+a}${c})`
36const l=t.split("/"),h=a.split("/")
37l.pop()
38for(const e of h)"."!==e&&(".."===e?l.pop():l.push(e))
39return`url(${c}${l.join("/")}${c})`})}const h=/^[^ \t\n\r\u000c]+/,f=/^[, \t\n\r\u000c]+/
40function absoluteToDoc(e,t){if(!t||""===t.trim())return t
41const r=e.createElement("a")
42return r.href=t,r.href}function isSVGElement(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function getHref(){const e=document.createElement("a")
43return e.href="",e.href}function transformAttribute(e,t,r,o){return o?"src"===r||"href"===r&&("use"!==t||"#"!==o[0])||"xlink:href"===r&&"#"!==o[0]?absoluteToDoc(e,o):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function getAbsoluteSrcsetString(e,t){if(""===t.trim())return t
44let r=0
45function collectCharacters(e){let o
46const n=e.exec(t.substring(r))
47return n?(o=n[0],r+=o.length,o):""}const o=[]
48for(;collectCharacters(f),!(r>=t.length);){let n=collectCharacters(h)
49if(","===n.slice(-1))n=absoluteToDoc(e,n.substring(0,n.length-1)),o.push(n)
50else{let i=""
51n=absoluteToDoc(e,n)
52let s=!1
53for(;;){const e=t.charAt(r)
54if(""===e){o.push((n+i).trim())
55break}if(s)")"===e&&(s=!1)
56else{if(","===e){r+=1,o.push((n+i).trim())
57break}"("===e&&(s=!0)}i+=e,r+=1}}}return o.join(", ")}(e,o):"style"===r?absoluteToStylesheet(o,getHref()):"object"===t&&"data"===r?absoluteToDoc(e,o):o:absoluteToDoc(e,o):o}function ignoreAttribute(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function classMatchesRegex(e,t,r){if(!e)return!1
58if(e.nodeType!==e.ELEMENT_NODE)return!!r&&classMatchesRegex(e.parentNode,t,r)
59for(let r=e.classList.length;r--;){const o=e.classList[r]
60if(t.test(o))return!0}return!!r&&classMatchesRegex(e.parentNode,t,r)}function needMaskingText(e,t,r,o){try{const n=e.nodeType===e.ELEMENT_NODE?e:e.parentElement
61if(null===n)return!1
62if("string"==typeof t){if(o){if(n.closest(`.${t}`))return!0}else if(n.classList.contains(t))return!0}else if(classMatchesRegex(n,t,o))return!0
63if(r)if(o){if(n.closest(r))return!0}else if(n.matches(r))return!0}catch(e){}return!1}function serializeNode(e,t){const{doc:r,mirror:i,blockClass:l,blockSelector:u,needsMask:p,inlineStylesheet:d,maskInputOptions:h={},maskTextFn:f,maskInputFn:m,dataURLOptions:_={},inlineImages:g,recordCanvas:y,keepIframeSrcFn:v,newlyAddedElement:b=!1}=t,S=function getRootId(e,t){if(!t.hasNode(e))return
64const r=t.getId(e)
65return 1===r?void 0:r}(r,i)
66switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:o.Document,childNodes:[],compatMode:e.compatMode}:{type:o.Document,childNodes:[]}
67case e.DOCUMENT_TYPE_NODE:return{type:o.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:S}
68case e.ELEMENT_NODE:return function serializeElementNode(e,t){const{doc:r,blockClass:i,blockSelector:l,inlineStylesheet:u,maskInputOptions:p={},maskInputFn:d,dataURLOptions:h={},inlineImages:f,recordCanvas:m,keepIframeSrcFn:_,newlyAddedElement:g=!1,rootId:y}=t,v=function _isBlockedElement(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){const o=e.classList[r]
69if(t.test(o))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,i,l),b=function getValidTagName(e){if(e instanceof HTMLFormElement)return"form"
70const t=toLowerCase(e.tagName)
71return s.test(t)?"div":t}(e)
72let S={}
73const k=e.attributes.length
74for(let t=0;t<k;t++){const o=e.attributes[t]
75ignoreAttribute(b,o.name,o.value)||(S[o.name]=transformAttribute(r,b,toLowerCase(o.name),o.value))}if("link"===b&&u){const t=Array.from(r.styleSheets).find(t=>t.href===e.href)
76let o=null
77t&&(o=stringifyStylesheet(t)),o&&(delete S.rel,delete S.href,S._cssText=absoluteToStylesheet(o,t.href))}if("style"===b&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=stringifyStylesheet(e.sheet)
78t&&(S._cssText=absoluteToStylesheet(t,getHref()))}if("input"===b||"textarea"===b||"select"===b){const t=e.value,r=e.checked
79"radio"!==S.type&&"checkbox"!==S.type&&"submit"!==S.type&&"button"!==S.type&&t?S.value=maskInputValue({element:e,type:getInputType(e),tagName:b,value:t,maskInputOptions:p,maskInputFn:d}):r&&(S.checked=r)}"option"===b&&(e.selected&&!p.select?S.selected=!0:delete S.selected)
80if("canvas"===b&&m)if("2d"===e.__context)(function is2DCanvasBlank(e){const t=e.getContext("2d")
81if(!t)return!0
82for(let r=0;r<e.width;r+=50)for(let o=0;o<e.height;o+=50){const i=t.getImageData,s=n in i?i[n]:i
83if(new Uint32Array(s.call(t,r,o,Math.min(50,e.width-r),Math.min(50,e.height-o)).data.buffer).some(e=>0!==e))return!1}return!0})(e)||(S.rr_dataURL=e.toDataURL(h.type,h.quality))
84else if(!("__context"in e)){const t=e.toDataURL(h.type,h.quality),r=document.createElement("canvas")
85r.width=e.width,r.height=e.height
86t!==r.toDataURL(h.type,h.quality)&&(S.rr_dataURL=t)}if("img"===b&&f){a||(a=r.createElement("canvas"),c=a.getContext("2d"))
87const t=e,o=t.crossOrigin
88t.crossOrigin="anonymous"
89const recordInlineImage=()=>{t.removeEventListener("load",recordInlineImage)
90try{a.width=t.naturalWidth,a.height=t.naturalHeight,c.drawImage(t,0,0),S.rr_dataURL=a.toDataURL(h.type,h.quality)}catch(e){}o?S.crossOrigin=o:t.removeAttribute("crossorigin")}
91t.complete&&0!==t.naturalWidth?recordInlineImage():t.addEventListener("load",recordInlineImage)}if("audio"===b||"video"===b){const t=S
92t.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}g||(e.scrollLeft&&(S.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(S.rr_scrollTop=e.scrollTop))
93if(v){const{width:t,height:r}=e.getBoundingClientRect()
94S={class:S.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==b||_(S.src)||(e.contentDocument||(S.rr_src=S.src),delete S.src)
95let w
96try{customElements.get(b)&&(w=!0)}catch(e){}return{type:o.Element,tagName:b,attributes:S,childNodes:[],isSVG:isSVGElement(e)||void 0,needBlock:v,rootId:y,isCustom:w}}(e,{doc:r,blockClass:l,blockSelector:u,inlineStylesheet:d,maskInputOptions:h,maskInputFn:m,dataURLOptions:_,inlineImages:g,recordCanvas:y,keepIframeSrcFn:v,newlyAddedElement:b,rootId:S})
97case e.TEXT_NODE:return function serializeTextNode(e,t){var r
98const{needsMask:n,maskTextFn:i,rootId:s}=t,a=e.parentNode&&e.parentNode.tagName
99let c=e.textContent
100const l="STYLE"===a||void 0,u="SCRIPT"===a||void 0
101if(l&&c){try{e.nextSibling||e.previousSibling||(null===(r=e.parentNode.sheet)||void 0===r?void 0:r.cssRules)&&(c=stringifyStylesheet(e.parentNode.sheet))}catch(e){}c=absoluteToStylesheet(c,getHref())}u&&(c="SCRIPT_PLACEHOLDER")
102!l&&!u&&c&&n&&(c=i?i(c,e.parentElement):c.replace(/[\S]/g,"*"))
103return{type:o.Text,textContent:c||"",isStyle:l,rootId:s}}(e,{needsMask:p,maskTextFn:f,rootId:S})
104case e.CDATA_SECTION_NODE:return{type:o.CDATA,textContent:"",rootId:S}
105case e.COMMENT_NODE:return{type:o.Comment,textContent:e.textContent||"",rootId:S}
106default:return!1}}function lowerIfExists(e){return null==e?"":e.toLowerCase()}function serializeNodeWithId(e,t){const{doc:r,mirror:n,blockClass:i,blockSelector:s,maskTextClass:a,maskTextSelector:c,skipChild:l=!1,inlineStylesheet:u=!0,maskInputOptions:p={},maskTextFn:d,maskInputFn:h,slimDOMOptions:f,dataURLOptions:m={},inlineImages:_=!1,recordCanvas:g=!1,onSerialize:y,onIframeLoad:v,iframeLoadTimeout:b=5e3,onStylesheetLoad:S,stylesheetLoadTimeout:k=5e3,keepIframeSrcFn:w=()=>!1,newlyAddedElement:I=!1}=t
107let{needsMask:M}=t,{preserveWhiteSpace:C=!0}=t
108if(!M&&e.childNodes){M=needMaskingText(e,a,c,void 0===M)}const x=serializeNode(e,{doc:r,mirror:n,blockClass:i,blockSelector:s,needsMask:M,inlineStylesheet:u,maskInputOptions:p,maskTextFn:d,maskInputFn:h,dataURLOptions:m,inlineImages:_,recordCanvas:g,keepIframeSrcFn:w,newlyAddedElement:I})
109if(!x)return null
110let O
111O=n.hasNode(e)?n.getId(e):!function slimDOMExcluded(e,t){if(t.comment&&e.type===o.Comment)return!0
112if(e.type===o.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"===extractFileExtension(e.attributes.href)))return!0
113if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(lowerIfExists(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===lowerIfExists(e.attributes.name)||"icon"===lowerIfExists(e.attributes.rel)||"apple-touch-icon"===lowerIfExists(e.attributes.rel)||"shortcut icon"===lowerIfExists(e.attributes.rel))))return!0
114if("meta"===e.tagName){if(t.headMetaDescKeywords&&lowerIfExists(e.attributes.name).match(/^description|keywords$/))return!0
115if(t.headMetaSocial&&(lowerIfExists(e.attributes.property).match(/^(og|twitter|fb):/)||lowerIfExists(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===lowerIfExists(e.attributes.name)))return!0
116if(t.headMetaRobots&&("robots"===lowerIfExists(e.attributes.name)||"googlebot"===lowerIfExists(e.attributes.name)||"bingbot"===lowerIfExists(e.attributes.name)))return!0
117if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0
118if(t.headMetaAuthorship&&("author"===lowerIfExists(e.attributes.name)||"generator"===lowerIfExists(e.attributes.name)||"framework"===lowerIfExists(e.attributes.name)||"publisher"===lowerIfExists(e.attributes.name)||"progid"===lowerIfExists(e.attributes.name)||lowerIfExists(e.attributes.property).match(/^article:/)||lowerIfExists(e.attributes.property).match(/^product:/)))return!0
119if(t.headMetaVerification&&("google-site-verification"===lowerIfExists(e.attributes.name)||"yandex-verification"===lowerIfExists(e.attributes.name)||"csrf-token"===lowerIfExists(e.attributes.name)||"p:domain_verify"===lowerIfExists(e.attributes.name)||"verify-v1"===lowerIfExists(e.attributes.name)||"verification"===lowerIfExists(e.attributes.name)||"shopify-checkout-api-token"===lowerIfExists(e.attributes.name)))return!0}}return!1}(x,f)&&(C||x.type!==o.Text||x.isStyle||x.textContent.replace(/^\s+|\s+$/gm,"").length)?genId():-2
120const E=Object.assign(x,{id:O})
121if(n.add(e,E),-2===O)return null
122y&&y(e)
123let T=!l
124if(E.type===o.Element){T=T&&!E.needBlock,delete E.needBlock
125const t=e.shadowRoot
126t&&isNativeShadowDom(t)&&(E.isShadowHost=!0)}if((E.type===o.Document||E.type===o.Element)&&T){f.headWhitespace&&E.type===o.Element&&"head"===E.tagName&&(C=!1)
127const t={doc:r,mirror:n,blockClass:i,blockSelector:s,needsMask:M,maskTextClass:a,maskTextSelector:c,skipChild:l,inlineStylesheet:u,maskInputOptions:p,maskTextFn:d,maskInputFn:h,slimDOMOptions:f,dataURLOptions:m,inlineImages:_,recordCanvas:g,preserveWhiteSpace:C,onSerialize:y,onIframeLoad:v,iframeLoadTimeout:b,onStylesheetLoad:S,stylesheetLoadTimeout:k,keepIframeSrcFn:w}
128if(E.type===o.Element&&"textarea"===E.tagName&&void 0!==E.attributes.value);else for(const r of Array.from(e.childNodes)){const e=serializeNodeWithId(r,t)
129e&&E.childNodes.push(e)}
129if(function isElement(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const r of Array.from(e.shadowRoot.childNodes)){const o=serializeNodeWithId(r,t)
130o&&(isNativeShadowDom(e.shadowRoot)&&(o.isShadow=!0),E.childNodes.push(o))}}return e.parentNode&&isShadowRoot(e.parentNode)&&isNativeShadowDom(e.parentNode)&&(E.isShadow=!0),E.type===o.Element&&"iframe"===E.tagName&&function onceIframeLoaded(e,t,r){const o=e.contentWindow
131if(!o)return
132let n,i=!1
133try{n=o.document.readyState}catch(e){return}if("complete"!==n){const o=setTimeout(()=>{i||(t(),i=!0)},r)
134return void e.addEventListener("load",()=>{clearTimeout(o),i=!0,t()})}const s="about:blank"
135if(o.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t)
136e.addEventListener("load",t)}(e,()=>{const t=e.contentDocument
137if(t&&v){const r=serializeNodeWithId(t,{doc:t,mirror:n,blockClass:i,blockSelector:s,needsMask:M,maskTextClass:a,maskTextSelector:c,skipChild:!1,inlineStylesheet:u,maskInputOptions:p,maskTextFn:d,maskInputFn:h,slimDOMOptions:f,dataURLOptions:m,inlineImages:_,recordCanvas:g,preserveWhiteSpace:C,onSerialize:y,onIframeLoad:v,iframeLoadTimeout:b,onStylesheetLoad:S,stylesheetLoadTimeout:k,keepIframeSrcFn:w})
138r&&v(e,r)}},b),E.type===o.Element&&"link"===E.tagName&&"string"==typeof E.attributes.rel&&("stylesheet"===E.attributes.rel||"preload"===E.attributes.rel&&"string"==typeof E.attributes.href&&"css"===extractFileExtension(E.attributes.href))&&function onceStylesheetLoaded(e,t,r){let o,n=!1
139try{o=e.sheet}catch(e){return}if(o)return
140const i=setTimeout(()=>{n||(t(),n=!0)},r)
141e.addEventListener("load",()=>{clearTimeout(i),n=!0,t()})}(e,()=>{if(S){const t=serializeNodeWithId(e,{doc:r,mirror:n,blockClass:i,blockSelector:s,needsMask:M,maskTextClass:a,maskTextSelector:c,skipChild:!1,inlineStylesheet:u,maskInputOptions:p,maskTextFn:d,maskInputFn:h,slimDOMOptions:f,dataURLOptions:m,inlineImages:_,recordCanvas:g,preserveWhiteSpace:C,onSerialize:y,onIframeLoad:v,iframeLoadTimeout:b,onStylesheetLoad:S,stylesheetLoadTimeout:k,keepIframeSrcFn:w})
142t&&S(e,t)}},k),E}function on(e,t,r=document){const o={capture:!0,passive:!0}
143return r.addEventListener(e,t,o),()=>r.removeEventListener(e,t,o)}let m={map:{},getId:()=>-1,getNode:()=>null,removeNodeFromMap(){},has:()=>!1,reset(){}}
144function throttle(e,t,r={}){let o=null,n=0
145return function(...i){const s=Date.now()
146n||!1!==r.leading||(n=s)
147const a=t-(s-n),c=this
148a<=0||a>t?(o&&(clearTimeout(o),o=null),n=s,e.apply(c,i)):o||!1===r.trailing||(o=setTimeout(()=>{n=!1===r.leading?0:Date.now(),o=null,e.apply(c,i)},a))}}function hookSetter(e,t,r,o,n=window){const i=n.Object.getOwnPropertyDescriptor(e,t)
149return n.Object.defineProperty(e,t,o?r:{set(e){setTimeout(()=>{r.set.call(this,e)},0),i&&i.set&&i.set.call(this,e)}}),()=>hookSetter(e,t,i||{},!0)}function patch(e,t,r){try{if(!(t in e))return()=>{}
150const o=e[t],n=r(o)
151return"function"==typeof n&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:o}})),e[t]=n,()=>{e[t]=o}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(m=new Proxy(m,{get:(e,t,r)=>Reflect.get(e,t,r)}))
152let _=Date.now
153function getWindowScroll(e){var t,r,o,n,i,s
154const a=e.document
155return{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?void 0:t.parentElement)||void 0===r?void 0:r.scrollLeft)||(null===(o=null==a?void 0:a.body)||void 0===o?void 0:o.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==a?void 0:a.documentElement.scrollTop)||(null===(i=null===(n=null==a?void 0:a.body)||void 0===n?void 0:n.parentElement)||void 0===i?void 0:i.scrollTop)||(null===(s=null==a?void 0:a.body)||void 0===s?void 0:s.scrollTop)||0}}function getWindowHeight(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function getWindowWidth(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function closestElementOfNode(e){if(!e)return null
156return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}function isBlocked(e,t,r,o){if(!e)return!1
157const n=closestElementOfNode(e)
158if(!n)return!1
159try{if("string"==typeof t){if(n.classList.contains(t))return!0
160if(o&&null!==n.closest("."+t))return!0}else if(classMatchesRegex(n,t,o))return!0}catch(e){}if(r){if(n.matches(r))return!0
161if(o&&null!==n.closest(r))return!0}return!1}function isIgnored(e,t){return-2===t.getId(e)}function isAncestorRemoved(e,t){if(isShadowRoot(e))return!1
162const r=t.getId(e)
163return!t.has(r)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||isAncestorRemoved(e.parentNode,t))}function legacy_isTouchEvent(e){return Boolean(e.changedTouches)}function isSerializedIframe(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function isSerializedStylesheet(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function hasShadowRoot(e){return Boolean(null==e?void 0:e.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(_=()=>(new Date).getTime())
164class StyleSheetMirror{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){var t
165return null!==(t=this.styleIDMap.get(e))&&void 0!==t?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e)
166let r
167return 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 getShadowHost(e){var t,r
168let o=null
169return(null===(r=null===(t=e.getRootNode)||void 0===t?void 0:t.call(e))||void 0===r?void 0:r.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(o=e.getRootNode().host),o}function shadowHostInDom(e){const t=e.ownerDocument
170if(!t)return!1
171const r=function getRootShadowHost(e){let t,r=e
172for(;t=getShadowHost(r);)r=t
173return r}(e)
174return t.contains(r)}function inDom(e){const t=e.ownerDocument
175return!!t&&(t.contains(e)||shadowHostInDom(e))}var g=(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))(g||{}),y=(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))(y||{}),v=(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))(v||{}),b=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(b||{}),S=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(S||{})
176function isNodeInLinkedList(e){return"__ln"in e}class DoubleLinkedList{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range")
177let t=this.head
178for(let r=0;r<e;r++)t=(null==t?void 0:t.next)||null
179return t}addNode(e){const t={value:e,previous:null,next:null}
180if(e.__ln=t,e.previousSibling&&isNodeInLinkedList(e.previousSibling)){const r=e.previousSibling.__ln.next
181t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&isNodeInLinkedList(e.nextSibling)&&e.nextSibling.__ln.previous){const r=e.nextSibling.__ln.previous
182t.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
183null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln
184this.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--)}}const moveKey=(e,t)=>`${e}@${t}`
185class MutationBuffer{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
186const e=[],t=new Set,r=new DoubleLinkedList,getNextId=e=>{let t=e,r=-2
187for(;-2===r;)t=t&&t.nextSibling,r=t&&this.mirror.getId(t)
188return r},pushAdd=o=>{if(!o.parentNode||!inDom(o)||"TEXTAREA"===o.parentNode.tagName)return
189const n=isShadowRoot(o.parentNode)?this.mirror.getId(getShadowHost(o)):this.mirror.getId(o.parentNode),i=getNextId(o)
190if(-1===n||-1===i)return r.addNode(o)
191const s=serializeNodeWithId(o,{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=>{isSerializedIframe(e,this.mirror)&&this.iframeManager.addIframe(e),isSerializedStylesheet(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),hasShadowRoot(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}})
192s&&(e.push({parentId:n,nextId:i,node:s}),t.add(s.id))}
193for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift())
194for(const e of this.movedSet)isParentRemoved(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||pushAdd(e)
195for(const e of this.addedSet)isAncestorInSet(this.droppedSet,e)||isParentRemoved(this.removes,e,this.mirror)?isAncestorInSet(this.movedSet,e)?pushAdd(e):this.droppedSet.add(e):pushAdd(e)
196let o=null
197for(;r.length;){let e=null
198if(o){const t=this.mirror.getId(o.value.parentNode),r=getNextId(o.value);-1!==t&&-1!==r&&(e=o)}if(!e){let t=r.tail
199for(;t;){const r=t
200if(t=t.previous,r){const t=this.mirror.getId(r.value.parentNode)
201if(-1===getNextId(r.value))continue
202if(-1!==t){e=r
203break}{const t=r.value
204if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const o=t.parentNode.host
205if(-1!==this.mirror.getId(o)){e=r
206break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value)
207break}o=e.previous,r.removeNode(e.value),pushAdd(e.value)}const n={texts:this.texts.map(e=>{const t=e.node
208return 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=>{const{attributes:t}=e
209if("string"==typeof t.style){const r=JSON.stringify(e.styleDiff),o=JSON.stringify(e._unchangedStyles)
210r.length<t.style.length&&(r+o).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};(n.texts.length||n.attributes.length||n.removes.length||n.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(n))},this.genTextAreaValueMutation=e=>{let t=this.attributeMap.get(e)
211t||(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(!isIgnored(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent
212isBlocked(e.target,this.blockClass,this.blockSelector,!1)||t===e.oldValue||this.texts.push({value:needMaskingText(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,closestElementOfNode(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target})
213break}case"attributes":{const t=e.target
214let r=e.attributeName,o=e.target.getAttribute(r)
215if("value"===r){const e=getInputType(t)
216o=maskInputValue({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:e,value:o,maskInputFn:this.maskInputFn})}if(isBlocked(e.target,this.blockClass,this.blockSelector,!1)||o===e.oldValue)return
217let n=this.attributeMap.get(e.target)
218if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(o)){if(t.contentDocument)return
219r="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"),!ignoreAttribute(t.tagName,r)&&(n.attributes[r]=transformAttribute(this.doc,toLowerCase(t.tagName),toLowerCase(r),o),"style"===r)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const r=this.unattachedDoc.createElement("span")
220e.oldValue&&r.setAttribute("style",e.oldValue)
221for(const e of Array.from(t.style)){const o=t.style.getPropertyValue(e),i=t.style.getPropertyPriority(e)
222o!==r.style.getPropertyValue(e)||i!==r.style.getPropertyPriority(e)?n.styleDiff[e]=""===i?o:[o,i]:n._unchangedStyles[e]=[o,i]}for(const e of Array.from(r.style))""===t.style.getPropertyValue(e)&&(n.styleDiff[e]=!1)}break}case"childList":if(isBlocked(e.target,this.blockClass,this.blockSelector,!0))return
223if("TEXTAREA"===e.target.tagName)return void this.genTextAreaValueMutation(e.target)
224e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{const r=this.mirror.getId(t),o=isShadowRoot(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target)
225isBlocked(e.target,this.blockClass,this.blockSelector,!1)||isIgnored(t,this.mirror)||!function isSerialized(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(deepDelete(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||isAncestorRemoved(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[moveKey(r,o)]?deepDelete(this.movedSet,t):this.removes.push({parentId:o,id:r,isShadow:!(!isShadowRoot(e.target)||!isNativeShadowDom(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(isIgnored(e,this.mirror))return
226this.movedSet.add(e)
227let r=null
228t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[moveKey(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e)
229isBlocked(e,this.blockClass,this.blockSelector,!1)||(e.childNodes.forEach(e=>this.genAdds(e)),hasShadowRoot(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 deepDelete(e,t){e.delete(t),t.childNodes.forEach(t=>deepDelete(e,t))}function isParentRemoved(e,t,r){return 0!==e.length&&_isParentRemoved(e,t,r)}function _isParentRemoved(e,t,r){const{parentNode:o}=t
230if(!o)return!1
231const n=r.getId(o)
232return!!e.some(e=>e.id===n)||_isParentRemoved(e,o,r)}function isAncestorInSet(e,t){return 0!==e.size&&_isAncestorInSet(e,t)}function _isAncestorInSet(e,t){const{parentNode:r}=t
233return!!r&&(!!e.has(r)||_isAncestorInSet(e,r))}let k
234function registerErrorHandler(e){k=e}function unregisterErrorHandler(){k=void 0}const callbackWrapper=e=>{if(!k)return e
235return(...t)=>{try{return e(...t)}catch(e){if(k&&!0===k(e))return
236throw e}}},w=[]
237function getEventTarget(e){try{if("composedPath"in e){const t=e.composedPath()
238if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function initMutationObserver(e,t){var r,o
239const n=new MutationBuffer
240w.push(n),n.init(e)
241let i=window.MutationObserver||window.__rrMutationObserver
242const s=null===(o=null===(r=null===window||void 0===window?void 0:window.Zone)||void 0===r?void 0:r.__symbol__)||void 0===o?void 0:o.call(r,"MutationObserver")
243s&&window[s]&&(i=window[s])
244const a=new i(callbackWrapper(n.processMutations.bind(n)))
245return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function initMouseInteractionObserver({mouseInteractionCb:e,doc:t,mirror:r,blockClass:o,blockSelector:n,sampling:i}){if(!1===i.mouseInteraction)return()=>{}
246const s=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,a=[]
247let c=null
248return Object.keys(v).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]).forEach(i=>{let s=toLowerCase(i)
249const l=(t=>i=>{const s=getEventTarget(i)
250if(isBlocked(s,o,n,!0))return
251let a=null,l=t
252if("pointerType"in i){switch(i.pointerType){case"mouse":a=b.Mouse
253break
254case"touch":a=b.Touch
255break
256case"pen":a=b.Pen}a===b.Touch?v[t]===v.MouseDown?l="TouchStart":v[t]===v.MouseUp&&(l="TouchEnd"):b.Pen}else legacy_isTouchEvent(i)&&(a=b.Touch)
257null!==a?(c=a,(l.startsWith("Touch")&&a===b.Touch||l.startsWith("Mouse")&&a===b.Mouse)&&(a=null)):v[t]===v.Click&&(a=c,c=null)
258const u=legacy_isTouchEvent(i)?i.changedTouches[0]:i
259if(!u)return
260const p=r.getId(s),{clientX:d,clientY:h}=u
261callbackWrapper(e)(Object.assign({type:v[l],id:p,x:d,y:h},null!==a&&{pointerType:a}))})(i)
262if(window.PointerEvent)switch(v[i]){case v.MouseDown:case v.MouseUp:s=s.replace("mouse","pointer")
263break
264case v.TouchStart:case v.TouchEnd:return}a.push(on(s,l,t))}),callbackWrapper(()=>
264{a.forEach(e=>e())})}function initScrollObserver({scrollCb:e,doc:t,mirror:r,blockClass:o,blockSelector:n,sampling:i}){return on("scroll",callbackWrapper(throttle(callbackWrapper(i=>{const s=getEventTarget(i)
265if(!s||isBlocked(s,o,n,!0))return
266const a=r.getId(s)
267if(s===t&&t.defaultView){const r=getWindowScroll(t.defaultView)
268e({id:a,x:r.left,y:r.top})}else e({id:a,x:s.scrollLeft,y:s.scrollTop})}),i.scroll||100)),t)}const I=["INPUT","TEXTAREA","SELECT"],M=new WeakMap
269function getNestedCSSRulePositions(e){return function recurse(e,t){if(hasNestedCSSRule("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||hasNestedCSSRule("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||hasNestedCSSRule("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||hasNestedCSSRule("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const r=Array.from(e.parentRule.cssRules).indexOf(e)
270t.unshift(r)}else if(e.parentStyleSheet){const r=Array.from(e.parentStyleSheet.cssRules).indexOf(e)
271t.unshift(r)}return t}(e,[])}function getIdAndStyleId(e,t,r){let o,n
272return e?(e.ownerNode?o=t.getId(e.ownerNode):n=r.getId(e),{styleId:n,id:o}):{}}function initAdoptedStyleSheetObserver({mirror:e,stylesheetManager:t},r){var o,n,i
273let s=null
274s="#document"===r.nodeName?e.getId(r):e.getId(r.host)
275const a="#document"===r.nodeName?null===(o=r.defaultView)||void 0===o?void 0:o.Document:null===(i=null===(n=r.ownerDocument)||void 0===n?void 0:n.defaultView)||void 0===i?void 0:i.ShadowRoot,c=(null==a?void 0:a.prototype)?Object.getOwnPropertyDescriptor(null==a?void 0:a.prototype,"adoptedStyleSheets"):void 0
276return null!==s&&-1!==s&&a&&c?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get(){var e
277return null===(e=c.get)||void 0===e?void 0:e.call(this)},set(e){var r
278const o=null===(r=c.set)||void 0===r?void 0:r.call(this,e)
279if(null!==s&&-1!==s)try{t.adoptStyleSheets(e,s)}catch(e){}return o}}),callbackWrapper(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})})):()=>{}}function initObservers(e,t={}){const r=e.doc.defaultView
280if(!r)return()=>{}
281let o
282!function mergeHooks(e,t){const{mutationCb:r,mousemoveCb:o,mouseInteractionCb:n,scrollCb:i,viewportResizeCb:s,inputCb:a,mediaInteractionCb:c,styleSheetRuleCb:l,styleDeclarationCb:u,canvasMutationCb:p,fontCb:d,selectionCb:h,customElementCb:f}=e
283e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),r(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),o(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),n(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),i(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),s(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),a(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),c(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),l(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),u(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),p(...e)}
283,e.fontCb=(...e)=>{t.font&&t.font(...e),d(...e)},e.selectionCb=(...e)=>{t.selection&&t.selection(...e),h(...e)},e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),f(...e)}}(e,t),e.recordDOM&&(o=initMutationObserver(e,e.doc))
284const n=function initMoveObserver({mousemoveCb:e,sampling:t,doc:r,mirror:o}){if(!1===t.mousemove)return()=>{}
285const n="number"==typeof t.mousemove?t.mousemove:50,i="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500
286let s,a=[]
287const c=throttle(callbackWrapper(t=>{const r=Date.now()-s
288e(a.map(e=>(e.timeOffset-=r,e)),t),a=[],s=null}),i),l=callbackWrapper(throttle(callbackWrapper(e=>{const t=getEventTarget(e),{clientX:r,clientY:n}=legacy_isTouchEvent(e)?e.changedTouches[0]:e
289s||(s=_()),a.push({x:r,y:n,id:o.getId(t),timeOffset:_()-s}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?y.Drag:e instanceof MouseEvent?y.MouseMove:y.TouchMove)}),n,{trailing:!1})),u=[on("mousemove",l,r),on("touchmove",l,r),on("drag",l,r)]
290return callbackWrapper(()=>{u.forEach(e=>e())})}(e),i=initMouseInteractionObserver(e),s=initScrollObserver(e),a=function initViewportResizeObserver({viewportResizeCb:e},{win:t}){let r=-1,o=-1
291return on("resize",callbackWrapper(throttle(callbackWrapper(()=>{const t=getWindowHeight(),n=getWindowWidth()
292r===t&&o===n||(e({width:Number(n),height:Number(t)}),r=t,o=n)}),200)),t)}(e,{win:r}),c=function initInputObserver({inputCb:e,doc:t,mirror:r,blockClass:o,blockSelector:n,ignoreClass:i,ignoreSelector:s,maskInputOptions:a,maskInputFn:c,sampling:l,userTriggeredOnInput:u}){function eventHandler(e){let r=getEventTarget(e)
293const l=e.isTrusted,p=r&&r.tagName
294if(r&&"OPTION"===p&&(r=r.parentElement),!r||!p||I.indexOf(p)<0||isBlocked(r,o,n,!0))return
295if(r.classList.contains(i)||s&&r.matches(s))return
296let d=r.value,h=!1
297const f=getInputType(r)||""
298"radio"===f||"checkbox"===f?h=r.checked:(a[p.toLowerCase()]||a[f])&&(d=maskInputValue({element:r,maskInputOptions:a,tagName:p,type:f,value:d,maskInputFn:c})),cbWithDedup(r,u?{text:d,isChecked:h,userTriggered:l}:{text:d,isChecked:h})
299const m=r.name
300"radio"===f&&m&&h&&t.querySelectorAll(`input[type="radio"][name="${m}"]`).forEach(e=>{if(e!==r){const t=e.value
301cbWithDedup(e,u?{text:t,isChecked:!h,userTriggered:!1}:{text:t,isChecked:!h})}})}function cbWithDedup(t,o){const n=M.get(t)
302if(!n||n.text!==o.text||n.isChecked!==o.isChecked){M.set(t,o)
303const n=r.getId(t)
304callbackWrapper(e)(Object.assign(Object.assign({},o),{id:n}))}}const p=("last"===l.input?["change"]:["input","change"]).map(e=>on(e,callbackWrapper(eventHandler),t)),d=t.defaultView
305if(!d)return()=>{p.forEach(e=>e())}
306const h=d.Object.getOwnPropertyDescriptor(d.HTMLInputElement.prototype,"value"),f=[[d.HTMLInputElement.prototype,"value"],[d.HTMLInputElement.prototype,"checked"],[d.HTMLSelectElement.prototype,"value"],[d.HTMLTextAreaElement.prototype,"value"],[d.HTMLSelectElement.prototype,"selectedIndex"],[d.HTMLOptionElement.prototype,"selected"]]
307return h&&h.set&&p.push(...f.map(e=>hookSetter(e[0],e[1],{set(){callbackWrapper(eventHandler)({target:this,isTrusted:!1})}},!1,d))),callbackWrapper(()=>{p.forEach(e=>e())})}(e),l=function initMediaInteractionObserver({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:o,sampling:n,doc:i}){const s=callbackWrapper(i=>throttle(callbackWrapper(n=>{const s=getEventTarget(n)
308if(!s||isBlocked(s,t,r,!0))return
309const{currentTime:a,volume:c,muted:l,playbackRate:u,loop:p}=s
310e({type:i,id:o.getId(s),currentTime:a,volume:c,muted:l,playbackRate:u,loop:p})}),n.media||500)),a=[on("play",s(0),i),on("pause",s(1),i),on("seeked",s(2),i),on("volumechange",s(3),i),on("ratechange",s(4),i)]
311return callbackWrapper(()=>{a.forEach(e=>e())})}(e)
312let styleSheetObserver=()=>{},adoptedStyleSheetObserver=()=>{},styleDeclarationObserver=()=>{},fontObserver=()=>{}
313e.recordDOM&&(styleSheetObserver=function initStyleSheetObserver({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:o}){if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return()=>{}
314const n=o.CSSStyleSheet.prototype.insertRule
315o.CSSStyleSheet.prototype.insertRule=new Proxy(n,{apply:callbackWrapper((o,n,i)=>{const[s,a]=i,{id:c,styleId:l}=getIdAndStyleId(n,t,r.styleMirror)
316return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:s,index:a}]}),o.apply(n,i)})})
317const i=o.CSSStyleSheet.prototype.deleteRule
318let s,a
319o.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:callbackWrapper((o,n,i)=>{const[s]=i,{id:a,styleId:c}=getIdAndStyleId(n,t,r.styleMirror)
320return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:s}]}),o.apply(n,i)})}),o.CSSStyleSheet.prototype.replace&&(s=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:callbackWrapper((o,n,i)=>{const[s]=i,{id:a,styleId:c}=getIdAndStyleId(n,t,r.styleMirror)
321return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replace:s}),o.apply(n,i)})})),o.CSSStyleSheet.prototype.replaceSync&&(a=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:callbackWrapper((o,n,i)=>{const[s]=i,{id:a,styleId:c}=getIdAndStyleId(n,t,r.styleMirror)
322return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replaceSync:s}),o.apply(n,i)})}))
323const c={}
324canMonkeyPatchNestedCSSRule("CSSGroupingRule")?c.CSSGroupingRule=o.CSSGroupingRule:(canMonkeyPatchNestedCSSRule("CSSMediaRule")&&(c.CSSMediaRule=o.CSSMediaRule),
324canMonkeyPatchNestedCSSRule("CSSConditionRule")&&(c.CSSConditionRule=o.CSSConditionRule),canMonkeyPatchNestedCSSRule("CSSSupportsRule")&&(c.CSSSupportsRule=o.CSSSupportsRule))
325const l={}
326return Object.entries(c).forEach(([o,n])=>{l[o]={insertRule:n.prototype.insertRule,deleteRule:n.prototype.deleteRule},n.prototype.insertRule=new Proxy(l[o].insertRule,{apply:callbackWrapper((o,n,i)=>{const[s,a]=i,{id:c,styleId:l}=getIdAndStyleId(n.parentStyleSheet,t,r.styleMirror)
327return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:s,index:[...getNestedCSSRulePositions(n),a||0]}]}),o.apply(n,i)})}),n.prototype.deleteRule=new Proxy(l[o].deleteRule,{apply:callbackWrapper((o,n,i)=>{const[s]=i,{id:a,styleId:c}=getIdAndStyleId(n.parentStyleSheet,t,r.styleMirror)
328return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:[...getNestedCSSRulePositions(n),s]}]}),o.apply(n,i)})})}),callbackWrapper(()=>{o.CSSStyleSheet.prototype.insertRule=n,o.CSSStyleSheet.prototype.deleteRule=i,s&&(o.CSSStyleSheet.prototype.replace=s),a&&(o.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule})})}(e,{win:r}),adoptedStyleSheetObserver=initAdoptedStyleSheetObserver(e,e.doc),styleDeclarationObserver=function initStyleDeclarationObserver({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:o},{win:n}){const i=n.CSSStyleDeclaration.prototype.setProperty
329n.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:callbackWrapper((n,s,a)=>{var c
330const[l,u,p]=a
331if(r.has(l))return i.apply(s,[l,u,p])
332const{id:d,styleId:h}=getIdAndStyleId(null===(c=s.parentRule)||void 0===c?void 0:c.parentStyleSheet,t,o.styleMirror)
333return(d&&-1!==d||h&&-1!==h)&&e({id:d,styleId:h,set:{property:l,value:u,priority:p},index:getNestedCSSRulePositions(s.parentRule)}),n.apply(s,a)})})
334const s=n.CSSStyleDeclaration.prototype.removeProperty
335return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:callbackWrapper((n,i,a)=>{var c
336const[l]=a
337if(r.has(l))return s.apply(i,[l])
338const{id:u,styleId:p}=getIdAndStyleId(null===(c=i.parentRule)||void 0===c?void 0:c.parentStyleSheet,t,o.styleMirror)
339return(u&&-1!==u||p&&-1!==p)&&e({id:u,styleId:p,remove:{property:l},index:getNestedCSSRulePositions(i.parentRule)}),n.apply(i,a)})}),callbackWrapper(()=>{n.CSSStyleDeclaration.prototype.setProperty=i,n.CSSStyleDeclaration.prototype.removeProperty=s})}(e,{win:r}),e.collectFonts&&(fontObserver=function initFontObserver({fontCb:e,doc:t}){const r=t.defaultView
340if(!r)return()=>{}
341const o=[],n=new WeakMap,i=r.FontFace
342r.FontFace=function FontFace(e,t,r){const o=new i(e,t,r)
343return n.set(o,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),o}
344const s=patch(t.fonts,"add",function(t){return function(r){return setTimeout(callbackWrapper(()=>{const t=n.get(r)
345t&&(e(t),n.delete(r))}),0),t.apply(this,[r])}})
346return o.push(()=>{r.FontFace=i}),o.push(s),callbackWrapper(()=>{o.forEach(e=>e())})}(e)))
347const u=function initSelectionObserver(e){const{doc:t,mirror:r,blockClass:o,blockSelector:n,selectionCb:i}=e
348let s=!0
349const a=callbackWrapper(()=>{const e=t.getSelection()
350if(!e||s&&(null==e?void 0:e.isCollapsed))return
351s=e.isCollapsed||!1
352const a=[],c=e.rangeCount||0
353for(let t=0;t<c;t++){const i=e.getRangeAt(t),{startContainer:s,startOffset:c,endContainer:l,endOffset:u}=i
354isBlocked(s,o,n,!0)||isBlocked(l,o,n,!0)||a.push({start:r.getId(s),startOffset:c,end:r.getId(l),endOffset:u})}i({ranges:a})})
355return a(),on("selectionchange",a)}(e),p=function initCustomElementObserver({doc:e,customElementCb:t}){const r=e.defaultView
356return r&&r.customElements?patch(r.customElements,"define",function(e){return function(r,o,n){try{t({define:{name:r}})}catch(e){}return e.apply(this,[r,o,n])}}):()=>{}}(e),d=[]
357for(const t of e.plugins)d.push(t.observer(t.callback,r,t.options))
358return callbackWrapper(()=>{w.forEach(e=>e.reset()),null==o||o.disconnect(),n(),i(),s(),a(),c(),l(),styleSheetObserver(),adoptedStyleSheetObserver(),styleDeclarationObserver(),fontObserver(),u(),p(),d.forEach(e
358=>e())})}function hasNestedCSSRule(e){return void 0!==window[e]}function canMonkeyPatchNestedCSSRule(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class CrossOriginIframeMirror{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,r,o){const n=r||this.getIdToRemoteIdMap(e),i=o||this.getRemoteIdToIdMap(e)
359let s=n.get(t)
360return s||(s=this.generateIdFn(),n.set(t,s),i.set(s,t)),s}getIds(e,t){const r=this.getIdToRemoteIdMap(e),o=this.getRemoteIdToIdMap(e)
361return t.map(t=>this.getId(e,t,r,o))}getRemoteId(e,t,r){const o=r||this.getRemoteIdToIdMap(e)
362if("number"!=typeof t)return t
363const n=o.get(t)
364return n||-1}getRemoteIds(e,t){const r=this.getRemoteIdToIdMap(e)
365return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap)
366this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e)
367return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e)
368return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class IframeManager{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new CrossOriginIframeMirror(genId),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new CrossOriginIframeMirror(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
369this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(r=this.loadListener)||void 0===r||r.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e
370if("rrweb"!==t.data.type||t.origin!==t.data.origin)return
371if(!e.source)return
372const r=this.crossOriginIframeMap.get(e.source)
373if(!r)return
374const o=this.transformCrossOriginEvent(r,t.data.event)
375o&&this.wrappedEmit(o,t.data.isCheckout)}transformCrossOriginEvent(e,t){var r
376switch(t.type){case g.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e)
377const r=t.data.node.id
378return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:g.IncrementalSnapshot,data:{source:y.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case g.Meta:case g.Load:case g.DomContentLoaded:return!1
379case g.Plugin:return t
380case g.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t
381case g.IncrementalSnapshot:switch(t.data.source){case y.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e)
382const r=this.crossOriginIframeRootIdMap.get(e)
383r&&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
384case y.Drag:case y.TouchMove:case y.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t
385case y.ViewportResize:return!1
386case y.MediaInteraction:case y.MouseInteraction:case y.Scroll:case y.CanvasMutation:case y.Input:return this.replaceIds(t.data,e,["id"]),t
387case y.StyleSheetRule:case y.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t
388case y.Font:return t
389case y.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t
390case y.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null===(r=t.data.styles)||void 0===r||r.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,r,o){for(const n of o)(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]))
391return 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===o.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class ShadowDomManager{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(!isNativeShadowDom(e))return
392if(this.shadowDoms.has(e))return
393this.shadowDoms.add(e)
394const r=initMutationObserver(Object.assign(Object.assign({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e)
395this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(initScrollObserver(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(initAdoptedStyleSheetObserver({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){const r=this
396this.restoreHandlers.push(patch(e.prototype,"attachShadow",function(e){return function(o){const n=e.call(this,o)
397return this.shadowRoot&&inDom(this)&&r.addShadowRoot(this.shadowRoot,t),n}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}function __awaiter(e,t,r,o){return new(r||(r=Promise))(function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o.throw(e))}catch(e){i(e)}}function step(e){e.done?n(e.value):function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())})}for(var C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",x="undefined"==typeof Uint8Array?[]:new Uint8Array(256),O=0;O<64;O++)x[C.charCodeAt(O)]=O
398const E=new Map
399const saveWebGLVar=(e,t,r)=>{if(!e||!isInstanceOfWebGLObject(e,t)&&"object"!=typeof e)return
400const o=function variableListFor(e,t){let r=E.get(e)
401return r||(r=new Map,E.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name)
402let n=o.indexOf(e)
403return-1===n&&(n=o.length,o.push(e)),n}
404function serializeArg(e,t,r){if(e instanceof Array)return e.map(e=>serializeArg(e,t,r))
405if(null===e)return e
406if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray){return{rr_type:e.constructor.name,args:[Object.values(e)]}}if(e instanceof ArrayBuffer){const t=e.constructor.name,r=function(e){var t,r=new Uint8Array(e),o=r.length,n=""
407for(t=0;t<o;t+=3)n+=C[r[t]>>2],n+=C[(3&r[t])<<4|r[t+1]>>4],n+=C[(15&r[t+1])<<2|r[t+2]>>6],n+=C[63&r[t+2]]
408return o%3==2?n=n.substring(0,n.length-1)+"=":o%3==1&&(n=n.substring(0,n.length-2)+"=="),n}(e)
409return{rr_type:t,base64:r}}if(e instanceof DataView){return{rr_type:e.constructor.name,args:[serializeArg(e.buffer,t,r),e.byteOffset,e.byteLength]}}if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:r}=e
410return{rr_type:t,src:r}}if(e instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}if(e instanceof ImageData){return{rr_type:e.constructor.name,args:[serializeArg(e.data,t,r),e.width,e.height]}}if(isInstanceOfWebGLObject(e,t)||"object"==typeof e){return{rr_type:e.constructor.name,index:saveWebGLVar(e,t,r)}}return e}
410const serializeArgs=(e,t,r)=>e.map(e=>serializeArg(e,t,r)),isInstanceOfWebGLObject=(e,t)=>{const r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e])
411return Boolean(r.find(r=>e instanceof t[r]))}
412function initCanvasContextObserver(e,t,r,o){const n=[]
413try{const i=patch(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(n,...i){if(!isBlocked(this,t,r,!0)){const e=function getNormalizedContextName(e){return"experimental-webgl"===e?"webgl":e}(n)
414if("__context"in this||(this.__context=e),o&&["webgl","webgl2"].includes(e))if(i[0]&&"object"==typeof i[0]){const e=i[0]
415e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else i.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[n,...i])}})
416n.push(i)}catch(e){}return()=>{n.forEach(e=>e())}}function patchGLPrototype(e,t,r,o,n,i,s){const a=[],c=Object.getOwnPropertyNames(e)
417for(const i of c)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(i))try{if("function"!=typeof e[i])continue
418const c=patch(e,i,function(e){return function(...a){const c=e.apply(this,a)
419if(saveWebGLVar(c,s,this),"tagName"in this.canvas&&!isBlocked(this.canvas,o,n,!0)){const e=serializeArg
419s(a,s,this),o={type:t,property:i,args:e}
420r(this.canvas,o)}return c}})
421a.push(c)}catch(o){const n=hookSetter(e,i,{set(e){r(this.canvas,{type:t,property:i,args:[e],setter:!0})}})
422a.push(n)}return a}var T=function createInlineWorkerFactory(e,t){var r
423return function WorkerFactory(o){return r=r||function createURL(e,t){var r=function funcToSource(e,t){var r=void 0===t?null:t,o=e.toString().split("\n")
424o.pop(),o.shift()
425for(var n=o[0].search(/\S/),i=/(['"])__worker_loader_strict__(['"])/g,s=0,a=o.length;s<a;++s)o[s]=o[s].substring(n).replace(i,"$1use strict$2")+"\n"
426return r&&o.push("//# sourceMappingURL="+r+"\n"),o}(e,t),o=new Blob(r,{type:"application/javascript"})
427return URL.createObjectURL(o)}(e,t),new Worker(r,o)}}(function(){!function(){function __awaiter(e,t,r,o){return new(r||(r=Promise))(function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o.throw(e))}catch(e){i(e)}}function step(e){e.done?n(e.value):function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())})}for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),r=0;r<64;r++)t[e.charCodeAt(r)]=r
428var encode=function(t){var r,o=new Uint8Array(t),n=o.length,i=""
429for(r=0;r<n;r+=3)i+=e[o[r]>>2],i+=e[(3&o[r])<<4|o[r+1]>>4],i+=e[(15&o[r+1])<<2|o[r+2]>>6],i+=e[63&o[r+2]]
430return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i}
431const o=new Map,n=new Map
432const i=self
433i.onmessage=function(e){return __awaiter(this,void 0,void 0,function*(){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id})
434{const{id:t,bitmap:r,width:s,height:a,dataURLOptions:c}=e.data,l=function getTransparentBlobFor(e,t,r){return __awaiter(this,void 0,void 0,function*(){const o=`${e}-${t}`
435if("OffscreenCanvas"in globalThis){if(n.has(o))return n.get(o)
436const i=new OffscreenCanvas(e,t)
437i.getContext("2d")
438const s=yield i.convertToBlob(r),a=yield s.arrayBuffer(),c=encode(a)
439return n.set(o,c),c}return""})}(s,a,c),u=new OffscreenCanvas(s,a)
440u.getContext("2d").drawImage(r,0,0),r.close()
441const p=yield u.convertToBlob(c),d=p.type,h=yield p.arrayBuffer(),f=encode(h)
442if(!o.has(t)&&(yield l)===f)return o.set(t,f),i.postMessage({id:t})
443if(o.get(t)===f)return i.postMessage({id:t})
444i.postMessage({id:t,type:d,base64:f,width:s,height:a}),o.set(t,f)}})}}()},null)
445class CanvasManager{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)}
446const{sampling:t="all",win:r,blockClass:o,blockSelector:n,recordCanvas:i,dataURLOptions:s}=e
447this.mutationCb=e.mutationCb,this.mirror=e.mirror,i&&"all"===t&&this.initCanvasMutationObserver(r,o,n),i&&"number"==typeof t&&this.initCanvasFPSObserver(t,r,o,n,{dataURLOptions:s})}initCanvasFPSObserver(e,t,r,o,n){const i=initCanvasContextObserver(t,r,o,!0),s=new Map,a=new T
448a.onmessage=e=>{const{id:t}=e.data
449if(s.set(t,!1),!("base64"in e.data))return
450const{base64:r,type:o,width:n,height:i}=e.data
451this.mutationCb({id:t,type:S["2D"],commands:[{property:"clearRect",args:[0,0,n,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:o}]},0,0]}]})}
452const c=1e3/e
453let l,u=0
454const takeCanvasSnapshots=e=>{u&&e-u<c||(u=e,(()=>{const e=[]
455return t.document.querySelectorAll("canvas").forEach(t=>{isBlocked(t,r,o,!0)||e.push(t)}),e}
455)().forEach(e=>__awaiter(this,void 0,void 0,function*(){var t
456const r=this.mirror.getId(e)
457if(s.get(r))return
458if(0===e.width||0===e.height)return
459if(s.set(r,!0),["webgl","webgl2"].includes(e.__context)){const r=e.getContext(e.__context)
460!1===(null===(t=null==r?void 0:r.getContextAttributes())||void 0===t?void 0:t.preserveDrawingBuffer)&&r.clear(r.COLOR_BUFFER_BIT)}const o=yield createImageBitmap(e)
461a.postMessage({id:r,bitmap:o,width:e.width,height:e.height,dataURLOptions:n.dataURLOptions},[o])}))),l=requestAnimationFrame(takeCanvasSnapshots)}
462l=requestAnimationFrame(takeCanvasSnapshots),this.resetObservers=()=>{i(),cancelAnimationFrame(l)}}initCanvasMutationObserver(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()
463const o=initCanvasContextObserver(e,t,r,!1),n=function initCanvas2DMutationObserver(e,t,r,o){const n=[],i=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype)
464for(const s of i)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[s])continue
465const i=patch(t.CanvasRenderingContext2D.prototype,s,function(n){return function(...i){return isBlocked(this.canvas,r,o,!0)||setTimeout(()=>
465{const r=serializeArgs(i,t,this)
466e(this.canvas,{type:S["2D"],property:s,args:r})},0),n.apply(this,i)}})
467n.push(i)}catch(r){const o=hookSetter(t.CanvasRenderingContext2D.prototype,s,{set(t){e(this.canvas,{type:S["2D"],property:s,args:[t],setter:!0})}})
468n.push(o)}return()=>{n.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r),i=function initCanvasWebGLMutationObserver(e,t,r,o,n){const i=[]
469return i.push(...patchGLPrototype(t.WebGLRenderingContext.prototype,S.WebGL,e,r,o,0,t)),void 0!==t.WebGL2RenderingContext&&i.push(...patchGLPrototype(t.WebGL2RenderingContext.prototype,S.WebGL2,e,r,o,0,t)),()=>{i.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r,this.mirror)
470this.resetObservers=()=>{o(),n(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const setLatestRAFTimestamp=e=>{this.rafStamps.latestId=e,requestAnimationFrame(setLatestRAFTimestamp)}
471requestAnimationFrame(setLatestRAFTimestamp)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{const r=this.mirror.getId(t)
472this.flushPendingCanvasMutationFor(t,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return
473const r=this.pendingCanvasMutations.get(e)
474if(!r||-1===t)return
475const o=r.map(e=>{const t=function __rest(e,t){var r={}
476for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o])
477if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0
478for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r}(e,["type"])
479return t}),{type:n}=r[0]
480this.mutationCb({id:t,type:n,commands:o}),this.pendingCanvasMutations.delete(e)}}class StylesheetManager{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new StyleSheetMirror,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
481const r={id:t,styleIds:[]},o=[]
482for(const t of e){let e
483this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),o.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:stringifyRule(e),index:t}))})),r.styleIds.push(e)}o.length>0&&(r.styles=o),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class ProcessedNodeManager{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){requestAnimationFrame(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(e,t){const r=this.nodeMap.get(e)
484return 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 wrapEvent(e){return Object.assign(Object.assign({},e),{timestamp:_()})}let R,D,N,A=!1
485const L=function createMirror(){return new Mirror}()
486function record(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:o,blockClass:n="rr-block",blockSelector:i=null,ignoreClass:s="rr-ignore",ignoreSelector:a=null,maskTextClass:c="rr-mask",maskTextSelector:l=null,inlineStylesheet:u=!0,maskAllInputs:p,maskInputOptions:d,slimDOMOptions:h,maskInputFn:f,maskTextFn:m,hooks:_,packFn:v,sampling:b={},dataURLOptions:S={},mousemoveWait:k,recordDOM:I=!0,recordCanvas:M=!1,recordCrossOriginIframes:C=!1,recordAfter:x=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:O=!1,collectFonts:E=!1,inlineImages:T=!1,plugins:q,keepIframeSrcFn:F=()=>!1,ignoreCSSAttributes:P=new Set([]),errorHandler:U}=e
487registerErrorHandler(U)
488const B=!C||window.parent===window
489let j=!1
490if(!B)try{window.parent.document&&(j=!1)}catch(e){j=!0}if(B&&!t)throw new Error("emit function is required")
491void 0!==k&&void 0===b.mousemove&&(b.mousemove=k),L.reset()
492const $=!0===p?{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!==d?d:{password:!0},z=!0===h||"all"===h?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===h,headMetaDescKeywords:"all"===h}:h||{}
493let W
494!function polyfill(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]
495if(!(0 in e))throw new TypeError("1 argument is required")
496do{if(this===t)return!0}while(t=t&&t.parentNode)
497return!1})}()
498let H=0
499const eventProcessor=e=>{for(const t of q||[])t.eventProcessor&&(e=t.eventProcessor(e))
500return v&&!j&&(e=v(e)),e}
501R=(e,n)=>{var i
502if(!(null===(i=w[0])||void 0===i?void 0:i.isFrozen())||e.type===g.FullSnapshot||e.type===g.IncrementalSnapshot&&e.data.source===y.Mutation||w.forEach(e=>e.unfreeze()),B)null==t||t(eventProcessor(e),n)
503else if(j){const t={type:"rrweb",event:eventProcessor(e),origin:window.location.origin,isCheckout:n}
504window.parent.postMessage(t,"*")}if(e.type===g.FullSnapshot)W=e,H=0
505else if(e.type===g.IncrementalSnapshot){if(e.data.source===y.Mutation&&e.data.isAttachIframe)return
506H++
507const t=o&&H>=o,n=r&&e.timestamp-W.timestamp>r;(t||n)&&D(!0)}}
508const wrappedMutationEmit=e=>{R(wrapEvent({type:g.IncrementalSnapshot,data:Object.assign({source:y.Mutation},e)}))},wrappedScrollEmit=e=>R(wrapEvent({type:g.IncrementalSnapshot,data:Object.assign({source:y.Scroll},e)})),wrappedCanvasMutationEmit=e=>R(wrapEvent({type:g.IncrementalSnapshot,data:Object.assign({source:y.CanvasMutation},e)})),V=new StylesheetManager({mutationCb:wrappedMutationEmit,adoptedStyleSheetCb:e=>R(wrapEvent({type:g.IncrementalSnapshot,data:Object.assign({source:y.AdoptedStyleSheet},e)}))}),G=new IframeManager({mirror:L,mutationCb:wrappedMutationEmit,stylesheetManager:V,recordCrossOriginIframes:C,wrappedEmit:R})
509for(const e of q||[])e.getMirror&&e.getMirror({nodeMirror:L,crossOriginIframeMirror:G.crossOriginIframeMirror,crossOriginIframeStyleMirror:G.crossOriginIframeStyleMirror})
510const J=new ProcessedNodeManager
511N=new CanvasManager({recordCanvas:M,mutationCb:wrappedCanvasMutationEmit,win:window,blockClass:n,blockSelector:i,mirror:L,sampling:b.canvas,dataURLOptions:S})
512const K=new ShadowDomManager({mutationCb:wrappedMutationEmit,scrollCb:wrappedScrollEmit,bypassOptions:{blockClass:n,blockSelector:i,maskTextClass:c,maskTextSelector:l,inlineStylesheet:u,maskInputOptions:$,dataURLOptions:S,maskTextFn:m,maskInputFn:f,recordCanvas:M,inlineImages:T,sampling:b,slimDOMOptions:z,iframeManager:G,stylesheetManager:V,canvasManager:N,keepIframeSrcFn:F,processedNodeManager:J},mirror:L})
513D=(e=!1)=>{if(!I)return
514R(wrapEvent({type:g.Meta,data:{href:window.location.href,width:getWindowWidth(),height:getWindowHeight()}}),e),V.reset(),K.init(),w.forEach(e=>e.lock())
515const t=function snapshot(e,t){const{mirror:r=new Mirror,blockClass:o="rr-block",blockSelector:n=null,maskTextClass:i="rr-mask",maskTextSelector:s=null,inlineStylesheet:a=!0,inlineImages:c=!1,recordCanvas:l=!1,maskAllInputs:u=!1,maskTextFn:p,maskInputFn:d,slimDOM:h=!1,dataURLOptions:f,preserveWhiteSpace:m,onSerialize:_,onIframeLoad:g,iframeLoadTimeout:y,onStylesheetLoad:v,stylesheetLoadTimeout:b,keepIframeSrcFn:S=()=>!1}=t||{}
516return serializeNodeWithId(e,{doc:e,mirror:r,blockClass:o,blockSelector:n,maskTextClass:i,maskTextSelector:s,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===u?{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===u?{password:!0}:u,maskTextFn:p,maskInputFn:d,slimDOMOptions:!0===h||"all"===h?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===h,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===h?{}:h,dataURLOptions:f,inlineImages:c,recordCanvas:l,preserveWhiteSpace:m,onSerialize:_,onIframeLoad:g,iframeLoadTimeout:y,onStylesheetLoad:v,stylesheetLoadTimeout:b,keepIframeSrcFn:S,newlyAddedElement:!1})}(document,{mirror:L,blockClass:n,blockSelector:i,maskTextClass:c,maskTextSelector:l,inlineStylesheet:u,maskAllInputs:$,maskTextFn:m,slimDOM:z,dataURLOptions:S,recordCanvas:M,inlineImages:T,onSerialize:e=>{isSerializedIframe(e,L)&&G.addIframe(e),isSerializedStylesheet(e,L)&&V.trackLinkElement(e),hasShadowRoot(e)&&K.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{G.attachIframe(e,t),K.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{V.attachLinkElement(e,t)},keepIframeSrcFn:F})
517t&&(R(wrapEvent({type:g.FullSnapshot,data:{node:t,initialOffset:getWindowScroll(window)}}
517),e),w.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&V.adoptStyleSheets(document.adoptedStyleSheets,L.getId(document)))}
518try{const e=[],observe=e=>{var t
519return callbackWrapper(initObservers)({mutationCb:wrappedMutationEmit,mousemoveCb:(e,t)=>R(wrapEvent({type:g.IncrementalSnapshot,data:{source:t,positions:e}})),mouseInteractionCb:e=>R(wrapEvent({type:g.IncrementalSnapshot,data:Object.assign({source:y.MouseInteraction},e)})),scrollCb:wrappedScrollEmit,viewportResizeCb:e=>R(wrapEvent({type:g.IncrementalSnapshot,data:Object.assign({source:y.ViewportResize},e)})),inputCb:e=>R(wrapEvent({type:g.IncrementalSnapshot,data:Object.assign({source:y.Input},e)})),mediaInteractionCb:e=>R(wrapEvent({type:g.IncrementalSnapshot,data:Object.assign({source:y.MediaInteraction},e)})),styleSheetRuleCb:e=>R(wrapEvent({type:g.IncrementalSnapshot,data:Object.assign({source:y.StyleSheetRule},e)})),styleDeclarationCb:e=>R(wrapEvent({type:g.IncrementalSnapshot,data:Object.assign({source:y.StyleDeclaration},e)})),canvasMutationCb:wrappedCanvasMutationEmit,fontCb:e=>R(wrapEvent({type:g.IncrementalSnapshot,data:Object.assign({source:y.Font},e)})),selectionCb:e=>{R(wrapEvent({type:g.IncrementalSnapshot,data:Object.assign({source:y.Selection},e)}))},customElementCb:e=>{R(wrapEvent({type:g.IncrementalSnapshot,data:Object.assign({source:y.CustomElement},e)}))},blockClass:n,ignoreClass:s,ignoreSelector:a,maskTextClass:c,maskTextSelector:l,maskInputOptions:$,inlineStylesheet:u,sampling:b,recordDOM:I,recordCanvas:M,inlineImages:T,userTriggeredOnInput:O,collectFonts:E,doc:e,maskInputFn:f,maskTextFn:m,keepIframeSrcFn:F,blockSelector:i,slimDOMOptions:z,dataURLOptions:S,mirror:L,iframeManager:G,stylesheetManager:V,shadowDomManager:K,processedNodeManager:J,canvasManager:N,ignoreCSSAttributes:P,plugins:(null===(t=null==q?void 0:q.filter(e=>e.observer))||void 0===t?void 0:t.map(e=>({observer:e.observer,options:e.options,callback:t=>R(wrapEvent({type:g.Plugin,data:{plugin:e.name,payload:t}}))})))||[]},_)}
520G.addLoadListener(t=>{try{e.push(observe(t.contentDocument))}catch(e){}})
521const init=()=>{D(),e.push(observe(document)),A=!0}
522return"interactive"===document.readyState||"complete"===document.readyState?init():(e.push(on("DOMContentLoaded",()=>{R(wrapEvent({type:g.DomContentLoaded,data:{}})),"DOMContentLoaded"===x&&init()})),e.push(on("load",()=>{R(wrapEvent({type:g.Load,data:{}})),"load"===x&&init()},window))),()=>{e.forEach(e=>e()),J.destroy(),A=!1,unregisterErrorHandler()}}catch(e){}}record.addCustomEvent=(e,t)=>{if(!A)throw new Error("please add custom event after start recording")
523R(wrapEvent({type:g.Custom,data:{tag:e,payload:t}}))},record.freezePage=()=>{w.forEach(e=>e.freeze())},record.takeFullSnapshot=e=>{if(!A)throw new Error("please take full snapshot after start recording")
524D(e)},record.mirror=L
525var q,F=(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))(F||{}),P=(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))(P||{}),U={DEBUG:!1,LIB_VERSION:"2.55.1"}
526if("undefined"==typeof window){var B={hostname:""}
527q={navigator:{userAgent:"",onLine:!0},document:{location:B,referrer:""},screen:{width:0,height:0},location:B}}else q=window
528var j,$,z,W,H,V,G,J,K,Q,X,Y=864e5,Z=8e3,ee=Array.prototype,te=Function.prototype,re=Object.prototype,oe=ee.slice,ne=re.toString,ie=re.hasOwnProperty,se=q.console,ae=q.navigator,ce=q.document,le=q.opera,ue=q.screen,pe=ae.userAgent,de=te.bind,he=ee.forEach,fe=ee.indexOf,me=ee.map,_e=Array.isArray,ge={},ye={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},ve={log:function(){if(U.DEBUG&&!ye.isUndefined(se)&&se)try{se.log.apply(se,arguments)}catch(e){ye.each(arguments,function(e){se.log(e)})}},warn:function(){if(U.DEBUG&&!ye.isUndefined(se)&&se){var e=["Mixpanel warning:"].
528concat(ye.toArray(arguments))
529try{se.warn.apply(se,e)}catch(t){ye.each(e,function(e){se.warn(e)})}}},error:function(){if(U.DEBUG&&!ye.isUndefined(se)&&se){var e=["Mixpanel error:"].concat(ye.toArray(arguments))
530try{se.error.apply(se,e)}catch(t){ye.each(e,function(e){se.error(e)})}}},critical:function(){if(!ye.isUndefined(se)&&se){var e=["Mixpanel error:"].concat(ye.toArray(arguments))
531try{se.error.apply(se,e)}catch(t){ye.each(e,function(e){se.error(e)})}}}},log_func_with_prefix=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(ve,arguments)}},console_with_prefix=function(e){return{log:log_func_with_prefix(ve.log,e),error:log_func_with_prefix(ve.error,e),critical:log_func_with_prefix(ve.critical,e)}}
532ye.bind=function(e,t){var r,o
533if(de&&e.bind===de)return de.apply(e,oe.call(arguments,1))
534if(!ye.isFunction(e))throw new TypeError
535return r=oe.call(arguments,2),o=function(){if(!(this instanceof o))return e.apply(t,r.concat(oe.call(arguments)))
536var n={}
537n.prototype=e.prototype
538var i=new n
539n.prototype=null
540var s=e.apply(i,r.concat(oe.call(arguments)))
541return Object(s)===s?s:i},o},ye.each=function(e,t,r){if(null!=e)if(he&&e.forEach===he)e.forEach(t,r)
542else if(e.length===+e.length){for(var o=0,n=e.length;o<n;o++)if(o in e&&t.call(r,e[o],o,e)===ge)return}else for(var i in e)if(ie.call(e,i)&&t.call(r,e[i],i,e)===ge)return},ye.extend=function(e){return ye.each(oe.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},ye.isArray=_e||function(e){return"[object Array]"===ne.call(e)},ye.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(e){return!1}},ye.isArguments=function(e){return!(!e||!ie.call(e,"callee"))},ye.toArray=function(e){return e?e.toArray?e.toArray():ye.isArray(e)||ye.isArguments(e)?oe.call(e):ye.values(e):[]},ye.map=function(e,t,r){if(me&&e.map===me)return e.map(t,r)
543var o=[]
544return ye.each(e,function(e){o.push(t.call(r,e))}),o},ye.keys=function(e){var t=[]
545return null===e||ye.each(e,function(e,r){t[t.length]=r}),t},ye.values=function(e){var t=[]
546return null===e||ye.each(e,function(e){t[t.length]=e}),t},ye.include=function(e,t){var r=!1
547return null===e?r:fe&&e.indexOf===fe?-1!=e.indexOf(t):(ye.each(e,function(e){if(r||(r=e===t))return ge}),r)},ye.includes=function(e,t){return-1!==e.indexOf(t)},ye.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},ye.isObject=function(e){return e===Object(e)&&!ye.isArray(e)},ye.isEmptyObject=function(e){if(ye.isObject(e)){for(var t in e)if(ie.call(e,t))return!1
548return!0}return!1},ye.isUndefined=function(e){return void 0===e},ye.isString=function(e){return"[object String]"==ne.call(e)},ye.isDate=function(e){return"[object Date]"==ne.call(e)},ye.isNumber=function(e){return"[object Number]"==ne.call(e)},ye.isElement=function(e){return!(!e||1!==e.nodeType)},ye.encodeDates=function(e){return ye.each(e,function(t,r){ye.isDate(t)?e[r]=ye.formatDate(t):ye.isObject(t)&&(e[r]=ye.encodeDates(t))}),e},ye.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},ye.formatDate=function(e){function pad(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+pad(e.getUTCMonth()+1)+"-"+pad(e.getUTCDate())+"T"+pad(e.getUTCHours())+":"+pad(e.getUTCMinutes())+":"+pad(e.getUTCSeconds())},ye.strip_empty_properties=function(e){var t={}
549return ye.each(e,function(e,r){ye.isString(e)&&e.length>0&&(t[r]=e)}),t},ye.truncate=function(e,t){var r
550return"string"==typeof e?r=e.slice(0,t):ye.isArray(e)?(r=[],ye.each(e,function(e){r.push(ye.truncate(e,t))})):ye.isObject(e)?(r={},ye.each(e,function(e,o){r[o]=ye.truncate(e,t)})):r=e,r},ye.JSONEncode=function(e){var quote=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"}
551return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e]
552return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},str=function(e,t){var r="",o=0,n="",i="",s=0,a=r,c=[],l=t[e]
553switch(l&&"object"==typeof l&&"function"==typeof l.toJSON&&(l=l.toJSON(e)),typeof l){case"string":return quote(l)
554case"number":return isFinite(l)?String(l):"null"
555case"boolean":case"null":return String(l)
556case"object":if(!l)return"null"
557if(r+="    ",c=[],"[object Array]"===ne.apply(l)){for(s=l.length,o=0;o<s;o+=1)c[o]=str(o,l)||"null"
558return i=0===c.length?"[]":r?"[\n"+r+c.join(",\n"+r)+"\n"+a+"]":"["+c.join(",")+"]",r=a,i}for(n in l)ie.call(l,n)&&(i=str(n,l))&&c.push(quote(n)+(r?": ":":")+i)
559return i=0===c.length?"{}":r?"{"+c.join(",")+a+"}":"{"+c.join(",")+"}",r=a,i}}
560return str("",{"":e})},ye.JSONDecode=(H={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},V=function(e){var t=new SyntaxError(e)
561throw t.at=j,t.text=z,t},G=function(e){return e&&e!==$&&V("Expected '"+e+"' instead of '"+$+"'"),$=z.charAt(j),j+=1,$},J=function(){var e,t=""
562for("-"===$&&(t="-",G("-"));$>="0"&&$<="9";)t+=$,G()
563if("."===$)for(t+=".";G()&&$>="0"&&$<="9";)t+=$
564if("e"===$||"E"===$)for(t+=$,G(),"-"!==$&&"+"!==$||(t+=$,G());$>="0"&&$<="9";)t+=$,G()
565if(e=+t,isFinite(e))return e
566V("Bad number")},K=function(){var e,t,r,o=""
567if('"'===$)for(;G();){if('"'===$)return G(),o
568if("\\"===$)if(G(),"u"===$){for(r=0,t=0;t<4&&(e=parseInt(G(),16),isFinite(e));t+=1)r=16*r+e
569o+=String.fromCharCode(r)}else{if("string"!=typeof H[$])break
570o+=H[$]}else o+=$}V("Bad string")},Q=function(){for(;$&&$<=" ";)G()},W=function(){switch(Q(),$){case"{":return function(){var e,t={}
571if("{"===$){if(G("{"),Q(),"}"===$)return G("}"),t
572for(;$;){if(e=K(),Q(),G(":"),Object.hasOwnProperty.call(t,e)&&V('Duplicate key "'+e+'"'),t[e]=W(),Q(),"}"===$)return G("}"),t
573G(","),Q()}}V("Bad object")}()
574case"[":return function(){var e=[]
575if("["===$){if(G("["),Q(),"]"===$)return G("]"),e
576for(;$;){if(e.push(W()),Q(),"]"===$)return G("]"),e
577G(","),Q()}}V("Bad array")}()
578case'"':return K()
579case"-":return J()
580default:return $>="0"&&$<="9"?J():function(){switch($){case"t":return G("t"),G("r"),G("u"),G("e"),!0
581case"f":return G("f"),G("a"),G("l"),G("s"),G("e"),!1
582case"n":return G("n"),G("u"),G("l"),G("l"),null}V('Unexpected "'+$+'"')}()}},function(e){var t
583return z=e,j=0,$=" ",t=W(),Q(),$&&V("Syntax error"),t}),ye.base64Encode=function(e){var t,r,o,n,i,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,c=0,l="",u=[]
584if(!e)return e
585e=ye.utf8Encode(e)
586do{t=(i=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,r=i>>12&63,o=i>>6&63,n=63&i,u[c++]=s.charAt(t)+s.charAt(r)+s.charAt(o)+s.charAt(n)}while(a<e.length)
587switch(l=u.join(""),e.length%3){case 1:l=l.slice(0,-2)+"=="
588break
589case 2:l=l.slice(0,-1)+"="}return l},ye.utf8Encode=function(e){var t,r,o,n,i=""
590for(t=r=0,o=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,n=0;n<o;n++){var s=e.charCodeAt(n),a=null
591s<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&&(i+=e.substring(t,r)),i+=a,t=r=n+1)}return r>t&&(i+=e.substring(t,e.length)),i},ye.UUID=(X=function(){var e,t=1*new Date
592if(q.performance&&q.performance.now)e=q.performance.now()
593else for(e=0;t==1*new Date;)e++
594return t.toString(16)+Math.floor(e).toString(16)},function(){var e=(ue.height*ue.width).toString(16)
595return X()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var e,t,r=pe,o=[],n=0
596function xor(e,t){var r,n=0
597for(r=0;r<t.length;r++)n|=o[r]<<8*r
598return e^n}for(e=0;e<r.length;e++)t=r.charCodeAt(e),o.unshift(255&t),o.length>=4&&(n=xor(n,o),o=[])
599return o.length>0&&(n=xor(n,o)),n.toString(16)}()+"-"+e+"-"+X()})
600var be=["ahrefsbot","ahrefssiteaudit","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"]
601ye.isBlockedUA=function(e){var t
602for(e=e.toLowerCase(),t=0;t<be.length;t++)if(-1!==e.indexOf(be[t]))return!0
603return!1},ye.HTTPBuildQuery=function(e,t){var r,o,n=[]
604return ye.isUndefined(t)&&(t="&"),ye.each(e,function(e,t){r=encodeURIComponent(e.toString()),o=encodeURIComponent(t),n[n.length]=o+"="+r}),n.join(t)},ye.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]")
605var r=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e)
606if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return""
607var o=r[1]
608try{o=decodeURIComponent(o)}catch(e){ve.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},ye.cookie={get:function(e){for(var t=e+"=",r=ce.cookie.split(";"),o=0;o<r.length;o++){for(var n=r[o];" "==n.charAt(0);)n=n.substring(1,n.length)
609if(0===n.indexOf(t))return decodeURIComponent(n.substring(t.length,n.length))}return null},parse:function(e){var t
610try{t=ye.JSONDecode(ye.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,r,o,n,i,s){var a="",c="",l=""
611if(s)a="; domain="+s
612else if(o){var u=extract_domain(ce.location.hostname)
613a=u?"; domain=."+u:""}if(r){var p=new Date
614p.setTime(p.getTime()+1e3*r),c="; expires="+p.toGMTString()}i&&(n=!0,l="; SameSite=None"),n&&(l+="; secure"),ce.cookie=e+"="+encodeURIComponent(t)+c+"; path=/"+a+l},set:function(e,t,r,o,n,i,s){var a="",c="",l=""
615if(s)a="; domain="+s
616else if(o){var u=extract_domain(ce.location.hostname)
617a=u?"; domain=."+u:""}if(r){var p=new Date
618p.setTime(p.getTime()+24*r*60*60*1e3),c="; expires="+p.toGMTString()}i&&(n=!0,l="; SameSite=None"),n&&(l+="; secure")
619var d=e+"="+encodeURIComponent(t)+c+"; path=/"+a+l
620return ce.cookie=d,d},remove:function(e,t,r){ye.cookie.set(e,"",-1,t,!1,!1,r)}}
621var Se=null,localStorageSupported=function(e,t){if(null!==Se&&!t)return Se
622var r=!0
623try{e=e||window.localStorage
624var o="__mplss_"+cheap_guid(8)
625e.setItem(o,"xyz"),"xyz"!==e.getItem(o)&&(r=!1),e.removeItem(o)}catch(e){r=!1}return Se=r,r}
626ye.localStorage={is_supported:function(e){var t=localStorageSupported(null,e)
627return t||ve.error("localStorage unsupported; falling back to cookie store"),t},error:function(e){ve.error("localStorage error: "+e)},get:function(e){try{return window.localStorage.getItem(e)}catch(e){ye.localStorage.error(e)}return null},parse:function(e){try{return ye.JSONDecode(ye.localStorage.get(e))||{}}catch(e){}return null},set:function(e,t){try{window.localStorage.setItem(e,t)}catch(e){ye.localStorage.error(e)}},remove:function(e){try{window.localStorage.removeItem(e)}catch(e){ye.localStorage.error(e)}}},ye.register_event=function(){function fixEvent(e){return e&&(e.preventDefault=fixEvent.preventDefault,e.stopPropagation=fixEvent.stopPropagation),e}return fixEvent.preventDefault=function(){this.returnValue=!1},fixEvent.stopPropagation=function(){this.cancelBubble=!0},function(e,t,r,o,n){if(e)if(e.addEventListener&&!o)e.addEventListener(t,r,!!n)
628else{var i="on"+t,s=e[i]
629e[i]=function makeHandler(e,t,r){var handler=function(o){if(o=o||fixEvent(window.event)){var n,i,s=!0
630return ye.isFunction(r)&&(n=r(o)),i=t.call(e,o),!1!==n&&!1!==i||(s=!1),s}}
631return handler}(e,r,s)}else ve.error("No valid element provided to register_event")}}()
632var ke=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$')
633ye.dom_query=function(){function getAllChildren(e){return e.all?e.all:e.getElementsByTagName("*")}var e=/[\t\r\n]/g
634function hasClass(t,r){var o=" "+r+" "
635return(" "+t.className+" ").replace(e," ").indexOf(o)>=0}function getElementsBySelector(e){if(!ce.getElementsByTagName)return[]
636var t,r,o,n,i,s,a,c,l,u,p=e.split(" "),d=[ce]
637for(s=0;s<p.length;s++)if((t=p[s].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>
637-1){o=(r=t.split("#"))[0]
638var h=r[1],f=ce.getElementById(h)
639if(!f||o&&f.nodeName.toLowerCase()!=o)return[]
640d=[f]}else if(t.indexOf(".")>-1){o=(r=t.split("."))[0]
641var m=r[1]
642for(o||(o="*"),n=[],i=0,a=0;a<d.length;a++)for(l="*"==o?getAllChildren(d[a]):d[a].getElementsByTagName(o),c=0;c<l.length;c++)n[i++]=l[c]
643for(d=[],u=0,a=0;a<n.length;a++)n[a].className&&ye.isString(n[a].className)&&hasClass(n[a],m)&&(d[u++]=n[a])}else{var _=t.match(ke)
644if(_){o=_[1]
645var g,y=_[2],v=_[3],b=_[4]
646for(o||(o="*"),n=[],i=0,a=0;a<d.length;a++)for(l="*"==o?getAllChildren(d[a]):d[a].getElementsByTagName(o),c=0;c<l.length;c++)n[i++]=l[c]
647switch(d=[],u=0,v){case"=":g=function(e){return e.getAttribute(y)==b}
648break
649case"~":g=function(e){return e.getAttribute(y).match(new RegExp("\\b"+b+"\\b"))}
650break
651case"|":g=function(e){return e.getAttribute(y).match(new RegExp("^"+b+"-?"))}
652break
653case"^":g=function(e){return 0===e.getAttribute(y).indexOf(b)}
654break
655case"$":g=function(e){return e.getAttribute(y).lastIndexOf(b)==e.getAttribute(y).length-b.length}
656break
657case"*":g=function(e){return e.getAttribute(y).indexOf(b)>-1}
658break
659default:g=function(e){return e.getAttribute(y)}}for(d=[],u=0,a=0;a<n.length;a++)g(n[a])&&(d[u++]=n[a])}else{for(o=t,n=[],i=0,a=0;a<d.length;a++)for(l=d[a].getElementsByTagName(o),c=0;c<l.length;c++)n[i++]=l[c]
660d=n}}return d}return function(e){return ye.isElement(e)?[e]:ye.isObject(e)&&!ye.isUndefined(e.length)?e:getElementsBySelector.call(this,e)}}()
661var we=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],Ie=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]
662ye.info={campaignParams:function(e){var t="",r={}
663return ye.each(we,function(o){(t=ye.getQueryParam(ce.URL,o)).length?r[o]=t:void 0!==e&&(r[o]=e)}),r},clickParams:function(){var e="",t={}
664return ye.each(Ie,function(r){(e=ye.getQueryParam(ce.URL,r)).length&&(t[r]=e)}),t},marketingParams:function(){return ye.extend(ye.info.campaignParams(),ye.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=ye.info.searchEngine(e),r="yahoo"!=t?"q":"p",o={}
665if(null!==t){o.$search_engine=t
666var n=ye.getQueryParam(e,r)
667n.length&&(o.mp_keyword=n)}return o},browser:function(e,t,r){return t=t||"",r||ye.includes(e," OPR/")?ye.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":ye.includes(e,"IEMobile")||ye.includes(e,"WPDesktop")?"Internet Explorer Mobile":ye.includes(e,"SamsungBrowser/")?"Samsung Internet":ye.includes(e,"Edge")||ye.includes(e,"Edg/")?"Microsoft Edge":ye.includes(e,"FBIOS")?"Facebook Mobile":ye.includes(e,"Chrome")?"Chrome":ye.includes(e,"CriOS")?"Chrome iOS":ye.includes(e,"UCWEB")||ye.includes(e,"UCBrowser")?"UC Browser":ye.includes(e,"FxiOS")?"Firefox iOS":ye.includes(t,"Apple")?ye.includes(e,"Mobile")?"Mobile Safari":"Safari":ye.includes(e,"Android")?"Android Mobile":ye.includes(e,"Konqueror")?"Konqueror":ye.includes(e,"Firefox")?"Firefox":ye.includes(e,"MSIE")||ye.includes(e,"Trident/")?"Internet Explorer":ye.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var o={"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+)?)/}[ye.info.browser(e,t,r)]
668if(void 0===o)return null
669var n=e.match(o)
670return n?parseFloat(n[n.length-2]):null},os:function(){var e=pe
671return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/")
672return t.length>=3?t[2]:""},currentUrl:function(){return q.location.href},properties:function(e){return"object"!=typeof e&&(e={}),ye.extend(ye.strip_empty_properties({$os:ye.info.os(),$browser:ye.info.browser(pe,ae.vendor,le),$referrer:ce.referrer,$referring_domain:ye.info.referringDomain(ce.referrer),$device:ye.info.device(pe)}),{$current_url:ye.info.currentUrl(),$browser_version:ye.info.browserVersion(pe,ae.vendor,le),$screen_height:ue.height,$screen_width:ue.width,mp_lib:"web",$lib_version:U.LIB_VERSION,$insert_id:cheap_guid(),time:ye.timestamp()/1e3},ye.strip_empty_properties(e))},people_properties:function(){return ye.extend(ye.strip_empty_properties({$os:ye.info.os(),$browser:ye.info.browser(pe,ae.vendor,le)}),{$browser_version:ye.info.browserVersion(pe,ae.vendor,le)})},mpPageViewProperties:function(){return ye.strip_empty_properties({current_page_title:ce.title,current_domain:q.location.hostname,current_url_path:q.location.pathname,current_url_protocol:q.location.protocol,current_url_search:q.location.search})}}
673var cheap_guid=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10)
674return e?t.substring(0,e):t},Me=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Ce=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,extract_domain=function(e){var t=Ce,r=e.split("."),o=r[r.length-1];(o.length>4||"com"===o||"org"===o)&&(t=Me)
675var n=e.match(t)
676return n?n[0]:""},xe=null,Oe=null
677"undefined"!=typeof JSON&&(xe=JSON.stringify,Oe=JSON.parse),xe=xe||ye.JSONEncode,Oe=Oe||ye.JSONDecode,ye.toArray=ye.toArray,ye.isObject=ye.isObject,ye.JSONEncode=ye.JSONEncode,ye.JSONDecode=ye.JSONDecode,ye.isBlockedUA=ye.isBlockedUA,ye.isEmptyObject=ye.isEmptyObject,ye.info=ye.info,ye.info.device=ye.info.device,ye.info.browser=ye.info.browser,ye.info.browserVersion=ye.info.browserVersion,ye.info.properties=ye.info.properties
678function optIn(e,t){_optInOut(!0,e,t)}function optOut(e,t){_optInOut(!1,e,t)}function hasOptedIn(e,t){return"1"===_getStorageValue(e,t)}function hasOptedOut(e,t){if(function _hasDoNotTrackFlagOn(e){if(e&&e.ignoreDnt)return!1
679var t=e&&e.window||q,r=t.navigator||{},o=!1
680return ye.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){ye.includes([!0,1,"1","yes"],e)&&(o=!0)}),o}(t))return ve.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
681var r="0"===_getStorageValue(e,t)
682return r&&ve.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function addOptOutCheckMixpanelLib(e){return _addOptOutCheck(e,function(e){return this.get_config(e)})}function addOptOutCheckMixpanelPeople(e){return _addOptOutCheck(e,function(e){return this._get_config(e)})}function addOptOutCheckMixpanelGroup(e){return _addOptOutCheck(e,function(e){return this._get_config(e)})}
682function clearOptInOut(e,t){_getStorage(t=t||{}).remove(_getStorageKey(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function _getStorage(e){return"localStorage"===(e=e||{}).persistenceType?ye.localStorage:ye.cookie}function _getStorageKey(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function _getStorageValue(e,t){return _getStorage(t).get(_getStorageKey(e,t))}function _optInOut(e,t,r){ye.isString(t)&&t.length?(_getStorage(r=r||{}).set(_getStorageKey(t,r),e?1:0,ye.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})):ve.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function _addOptOutCheck(e,t){return function(){var r=!1
683try{var o=t.call(this,"token"),n=t.call(this,"ignore_dnt"),i=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window")
684o&&(r=hasOptedOut(o,{ignoreDnt:n,persistenceType:i,persistencePrefix:s,window:a}))}catch(e){ve.error("Unexpected error when checking tracking opt-out status: "+e)}if(!r)return e.apply(this,arguments)
685var c=arguments[arguments.length-1]
686"function"==typeof c&&c(0)}}var Ee=console_with_prefix("lock"),SharedLock=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3}
687SharedLock.prototype.withLock=function(e,t,r){r||"function"==typeof t||(r=t,t=null)
688var o=r||(new Date).getTime()+"|"+Math.random(),n=(new Date).getTime(),i=this.storageKey,s=this.pollIntervalMS,a=this.timeoutMS,c=this.storage,l=i+":X",u=i+":Y",p=i+":Z",reportError=function(e){t&&t(e)},delay=function(e){if((new Date).getTime()-n>a)return Ee.error("Timeout waiting for mutex on "+i+"; clearing lock. ["+o+"]"),c.removeItem(p),c.removeItem(u),void loop()
689setTimeout(function(){try{e()}catch(e){reportError(e)}},s*(Math.random()+.1))},waitFor=function(e,t){e()?t():delay(function(){waitFor(e,t)})},getSetY=function(){var e=c.getItem(u)
690if(e&&e!==o)return!1
691if(c.setItem(u,o),c.getItem(u)===o)return!0
692if(!localStorageSupported(c,!0))throw new Error("localStorage support dropped while acquiring lock")
693return!1},loop=function(){c.setItem(l,o),waitFor(getSetY,function(){c.getItem(l)!==o?delay(function(){c.getItem(u)===o?waitFor(function(){return!c.getItem(p)},criticalSection):loop()}):criticalSection()})},criticalSection=function(){c.setItem(p,"1")
694try{e()}finally{c.removeItem(p),c.getItem(u)===o&&c.removeItem(u),c.getItem(l)===o&&c.removeItem(l)}}
695try{if(!localStorageSupported(c,!0))throw new Error("localStorage support check failed")
696loop()}catch(e){reportError(e)}}
697var Te=console_with_prefix("batch"),RequestQueue=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.reportError=t.errorReporter||ye.bind(Te.error,Te),this.lock=new SharedLock(e,{storage:this.storage}),this.usePersistence=t.usePersistence,this.pid=t.pid||null,this.memQueue=[]}
698RequestQueue.prototype.enqueue=function(e,t,r){var o={id:cheap_guid(),flushAfter:(new Date).getTime()+2*t,payload:e}
699this.usePersistence?this.lock.withLock(ye.bind(function lockAcquired(){var t
700try{var n=this.readFromStorage()
701n.push(o),(t=this.saveToStorage(n))&&this.memQueue.push(o)}catch(r){this.reportError("Error enqueueing item",e),t=!1}r&&r(t)},this),ye.bind(function lockFailure(e){this.reportError("Error acquiring storage lock",e),r&&r(!1)},this),this.pid):(this.memQueue.push(o),r&&r(!0))},RequestQueue.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e)
702if(this.usePersistence&&t.length<e){var r=this.readFromStorage()
703if(r.length){var o={}
704ye.each(t,function(e){o[e.id]=!0})
705for(var n=0;n<r.length;n++){var i=r[n]
706if((new Date).getTime()>i.flushAfter&&!o[i.id]&&(i.orphaned=!0,t.push(i),t.length>=e))break}}}return t}
707var filterOutIDsAndInvalid=function(e,t){var r=[]
708return ye.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r}
709RequestQueue.prototype.removeItemsByID=function(e,t){var r={}
710if(ye.each(e,function(e){r[e]=!0}),this.memQueue=filterOutIDsAndInvalid(this.memQueue,r),this.usePersistence){var o=ye.bind(function(){var t
711try{var o=this.readFromStorage()
712if(o=filterOutIDsAndInvalid(o,r),t=this.saveToStorage(o)){o=this.readFromStorage()
713for(var n=0;n<o.length;n++){var i=o[n]
714if(i.id&&r[i.id])return this.reportError("Item not removed from storage"),!1}}}catch(r){this.reportError("Error removing items",e),t=!1}return t},this)
715this.lock.withLock(function lockAcquired(){var e=o()
716t&&t(e)},ye.bind(function lockFailure(e){var r=!1
717if(this.reportError("Error acquiring storage lock",e),!localStorageSupported(this.storage,!0)&&!(r=o()))try{this.storage.removeItem(this.storageKey)}catch(e){this.reportError("Error clearing queue",e)}t&&t(r)},this),this.pid)}else t&&t(!0)}
718var updatePayloads=function(e,t){var r=[]
719return ye.each(e,function(e){var o=e.id
720if(o in t){var n=t[o]
721null!==n&&(e.payload=n,r.push(e))}else r.push(e)}),r}
722RequestQueue.prototype.updatePayloads=function(e,t){this.memQueue=updatePayloads(this.memQueue,e),this.usePersistence?this.lock.withLock(ye.bind(function lockAcquired(){var r
723try{var o=this.readFromStorage()
724o=updatePayloads(o,e),r=this.saveToStorage(o)}catch(t){this.reportError("Error updating items",e),r=!1}t&&t(r)},this),ye.bind(function lockFailure(e){this.reportError("Error acquiring storage lock",e),t&&t(!1)},this),this.pid):t&&t(!0)},RequestQueue.prototype.readFromStorage=function(){var e
725try{(e=this.storage.getItem(this.storageKey))&&(e=Oe(e),ye.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null))}catch(t){this.reportError("Error retrieving queue",t),e=null}return e||[]},RequestQueue.prototype.saveToStorage=function(e){try{return this.storage.setItem(this.storageKey,xe(e)),!0}catch(e){return this.reportError("Error saving queue",e),!1}},RequestQueue.prototype.clear=function(){this.memQueue=[],this.usePersistence&&this.storage.removeItem(this.storageKey)}
726var Re=console_with_prefix("batch"),RequestBatcher=function(e,t){this.errorReporter=t.errorReporter,this.queue=new RequestQueue(e,{errorReporter:ye.bind(this.reportError,this),storage:t.storage,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}
727RequestBatcher.prototype.enqueue=function(e,t){this.queue.enqueue(e,this.flushInterval,t)},RequestBatcher.prototype.start=function(){this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},RequestBatcher.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},RequestBatcher.prototype.clear=function(){this.queue.clear()},RequestBatcher.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},RequestBatcher.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},RequestBatcher.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(ye.bind(function(){this.stopped||this.flush()},this),this.flushInterval))},RequestBatcher.prototype.flush=function(e){try{if(this.requestInProgress)return void Re.log("Flush: Request already in progress")
728e=e||{}
729var t=this.libConfig.batch_request_timeout_ms,r=(new Date).getTime(),o=this.batchSize,n=this.queue.fillBatch(o),i=n.length===o,s=[],a={}
730if(ye.each(n,function(e){var t=e.payload
731if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=ye.extend({},t.properties,{mp_sent_by_lib_version:U.LIB_VERSION}))
732var r=!0,o=e.id
733o?(this.itemIdsSentSuccessfully[o]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:n.length,timesSent:this.itemIdsSentSuccessfully[o]}),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 void this.resetFlush()
734this.requestInProgress=!0
735var c=ye.bind(function(s){this.requestInProgress=!1
736try{var c=!1
737if(e.unloading)this.queue.updatePayloads(a)
738else if(ye.isObject(s)&&"timeout"===s.error&&(new Date).getTime()-r>=t)this.reportError("Network timeout; retrying"),this.flush()
739else if(ye.isObject(s)&&(s.httpStatusCode>=500||429===s.httpStatusCode||s.httpStatusCode<=0&&(p=q.navigator.onLine,!ye.isUndefined(p)&&!p)||"timeout"===s.error)){var l=2*this.flushInterval
740s.retryAfter&&(l=1e3*parseInt(s.retryAfter,10)||l),l=Math.min(6e5,l),this.reportError("Error; retry in "+l+" ms"),this.scheduleFlush(l)}else if(ye.isObject(s)&&413===s.httpStatusCode)if(n.length>1){var u=Math.max(1,Math.floor(o/2))
741this.batchSize=Math.min(this.batchSize,u,n.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush()}else this.reportError("Single-event request too large; dropping",n),this.resetBatchSize(),c=!0
742else c=!0
743c&&(this.queue.removeItemsByID(ye.map(n,function(e){return e.id}),ye.bind(function(e){e?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!i?this.resetFlush():this.flush()):(this.reportError("Failed to remove items from queue"),++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush())},this)),ye.each(n,ye.bind(function(e){var t=e.id
744t?(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)))}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}var p},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t}
745e.unloading&&(l.transport="sendBeacon"),Re.log("MIXPANEL REQUEST:",s),this.sendRequest(s,l,c)}catch(e){this.reportError("Error flushing request queue",e),this.resetFlush()}},RequestBatcher.prototype.reportError=function(e,t){if(Re.error.apply(Re.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){Re.error(t)}}
746var De=console_with_prefix("recorder"),Ne=q.CompressionStream,Ae={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},Le=new Set([P.MouseMove,P.MouseInteraction,P.Scroll,P.ViewportResize,P.In
746put,P.TouchMove,P.MediaInteraction,P.Drag,P.Selection])
747var MixpanelRecorder=function(e){this._mixpanel=e,this._stopRecording=null,this.recEvents=[],this.seqNo=0,this.replayId=null,this.replayStartTime=null,this.sendBatchId=null,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=Y,this.recordMinMs=0,this._initBatcher()}
748MixpanelRecorder.prototype._initBatcher=function(){this.batcher=new RequestBatcher("__mprec",{libConfig:Ae,sendRequestFunc:ye.bind(this.flushEventsWithOptOut,this),errorReporter:ye.bind(this.reportError,this),flushOnlyOnInterval:!0,usePersistence:!1})},MixpanelRecorder.prototype.get_config=function(e){return this._mixpanel.get_config(e)},MixpanelRecorder.prototype.startRecording=function(e){if(null===this._stopRecording){this.recordMaxMs=this.get_config("record_max_ms"),this.recordMaxMs>Y&&(this.recordMaxMs=Y,De.critical("record_max_ms cannot be greater than "+Y+"ms. Capping value.")),this.recordMinMs=this.get_config("record_min_ms"),this.recordMinMs>Z&&(this.recordMinMs=Z,De.critical("record_min_ms cannot be greater than 8000ms. Capping value.")),this.recEvents=[],this.seqNo=0,this.replayStartTime=(new Date).getTime(),this.replayId=ye.UUID(),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start()
749var t=ye.bind(function(){clearTimeout(this.idleTimeoutId),this.idleTimeoutId=setTimeout(ye.bind(function(){De.log("Idle timeout reached, restarting recording."),this.resetRecording()},this),this.get_config("record_idle_timeout_ms"))},this),r=this.get_config("record_block_selector")
750""!==r&&null!==r||(r=void 0),this._stopRecording=record({emit:ye.bind(function(e){this.batcher.enqueue(e),function isUserEvent(e){return e.type===F.IncrementalSnapshot&&Le.has(e.data.source)}(e)&&(this.batcher.stopped&&(new Date).getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t())},this),blockClass:this.get_config("record_block_class"),blockSelector:r,collectFonts:this.get_config("record_collect_fonts"),inlineImages:this.get_config("record_inline_images"),maskAllInputs:!0,maskTextClass:this.get_config("record_mask_text_class"),maskTextSelector:this.get_config("record_mask_text_selector")}),t(),this.maxTimeoutId=setTimeout(ye.bind(this.resetRecording,this),this.recordMaxMs)}else De.log("Recording already in progress, skipping startRecording.")},MixpanelRecorder.prototype.resetRecording=function(){this.stopRecording(),this.startRecording(!0)},MixpanelRecorder.prototype.stopRecording=function(){null!==this._stopRecording&&(this._stopRecording(),this._stopRecording=null),this.batcher.stopped?this.batcher.clear():(this.batcher.flush(),this.batcher.stop()),this.replayId=null,clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId)},MixpanelRecorder.prototype.flushEventsWithOptOut=function(e,t,r){this._flushEvents(e,t,r,ye.bind(this._onOptOut,this))},MixpanelRecorder.prototype._onOptOut=function(e){0===e&&(this.recEvents=[],this.stopRecording())},MixpanelRecorder.prototype._sendRequest=function(e,t,r,o){var n=ye.bind(function(t,r){200===t.status&&this.replayId===e&&this.seqNo++,o({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})},this)
751q.fetch(this.get_config("api_host")+"/"+this.get_config("api_routes").record+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.get_config("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then(function(e){e.json().then(function(t){n(e,t)}).catch(function(e){o({error:e})})}).catch(function(e){o({error:e,httpStatusCode:0})})},MixpanelRecorder.prototype._flushEvents=addOptOutCheckMixpanelLib(function(e,t,r){const o=e.length
752if(o>0){var n=this.replayId,i=e[0].timestamp
7530!==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=i)
754var s=e[o-1].timestamp-this.replayStartTime,a={distinct_id:String(this._mixpanel.get_distinct_id()),seq:this.seqNo,batch_start_time:i/1e3,replay_id:n,replay_length_ms:s,replay_start_time:this.replayStartTime/1e3},c=ye.JSONEncode(e),l=this._mixpanel.get_property("$device_id")
755l&&(a.$device_id=l)
756var u=this._mixpanel.get_property("$user_id")
757if(u&&(a.$user_id=u),Ne){var p=new Blob([c],{type:"application/json"}).stream().pipeThrough(new Ne("gzip"))
758new Response(p).blob().then(ye.bind(function(e){a.format="gzip",this._sendRequest(n,a,e,r)},this))}else a.format="body",this._sendRequest(n,a,c,r)}}),MixpanelRecorder.prototype.reportError=function(e,t){De.error.apply(De.error,arguments)
759try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){De.error(t)}},q.__mp_recorder=MixpanelRecorder
760var DomTracker=function(){}
761DomTracker.prototype.create_properties=function(){},DomTracker.prototype.event_handler=function(){},DomTracker.prototype.after_track_handler=function(){},DomTracker.prototype.init=function(e){return this.mp=e,this},DomTracker.prototype.track=function(e,t,r,o){var n=this,i=ye.dom_query(e)
762if(0!==i.length)return ye.each(i,function(e){ye.register_event(e,this.override_event,function(e){var i={},s=n.create_properties(r,this),a=n.mp.get_config("track_links_timeout")
763n.event_handler(e,this,i),window.setTimeout(n.track_callback(o,s,i,!0),a),n.mp.track(t,s,n.track_callback(o,s,i))})},this),!0
764ve.error("The DOM query ("+e+") returned 0 elements")},DomTracker.prototype.track_callback=function(e,t,r,o){o=o||!1
765var n=this
766return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(o,t)||n.after_track_handler(t,r,o))}},DomTracker.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):ye.extend({},e)}
767var LinkTracker=function(){this.override_event="click"}
768ye.inherit(LinkTracker,DomTracker),LinkTracker.prototype.create_properties=function(e,t){var r=LinkTracker.superclass.create_properties.apply(this,arguments)
769return t.href&&(r.url=t.href),r},LinkTracker.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()},LinkTracker.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)}
770var FormTracker=function(){this.override_event="submit"}
771ye.inherit(FormTracker,DomTracker),FormTracker.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},FormTracker.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)}
772var qe="$set",Fe="$set_once",Pe="$unset",Ue="$add",Be="$append",je="$union",$e="$remove",ze={set_action:function(e,t){var r={},o={}
773return ye.isObject(e)?ye.each(e,function(e,t){this._is_reserved_property(t)||(o[t]=e)},this):o[e]=t,r[qe]=o,r},unset_action:function(e){var t={},r=[]
774return ye.isArray(e)||(e=[e]),ye.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[Pe]=r,t},set_once_action:function(e,t){var r={},o={}
775return ye.isObject(e)?ye.each(e,function(e,t){this._is_reserved_property(t)||(o[t]=e)},this):o[e]=t,r[Fe]=o,r},union_action:function(e,t){var r={},o={}
776return ye.isObject(e)?ye.each(e,function(e,t){this._is_reserved_property(t)||(o[t]=ye.isArray(e)?e:[e])},this):o[e]=ye.isArray(t)?t:[t],r[je]=o,r},append_action:function(e,t){var r={},o={}
777return ye.isObject(e)?ye.each(e,function(e,t){this._is_reserved_property(t)||(o[t]=e)},this):o[e]=t,r[Be]=o,r},remove_action:function(e,t){var r={},o={}
778return ye.isObject(e)?ye.each(e,function(e,t){this._is_reserved_property(t)||(o[t]=e)},this):o[e]=t,r[$e]=o,r},delete_action:function(){var e={$delete:""}
779return e}},MixpanelGroup=function(){}
780ye.extend(MixpanelGroup.prototype,ze),MixpanelGroup.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},MixpanelGroup.prototype.set=addOptOutCheckMixpanelGroup(function(e,t,r){var o=this.set_action(e,t)
781return ye.isObject(e)&&(r=t),this._send_request(o,r)}),MixpanelGroup.prototype.set_once=addOptOutCheckMixpanelGroup(function(e,t,r){var o=this.set_once_action(e,t)
782return ye.isObject(e)&&(r=t),this._send_request(o,r)}),MixpanelGroup.prototype.unset=addOptOutCheckMixpanelGroup(function(e,t){var r=this.unset_action(e)
783return this._send_request(r,t)}),MixpanelGroup.prototype.union=addOptOutCheckMixpanelGroup(function(e,t,r){ye.isObject(e)&&(r=t)
784var o=this.union_action(e,t)
785return this._send_request(o,r)}),MixpanelGroup.prototype.delete=addOptOutCheckMixpanelGroup(function(e){var t=this.delete_action()
786return this._send_request(t,e)}),MixpanelGroup.prototype.remove=addOptOutCheckMixpanelGroup(function(e,t,r){var o=this.remove_action(e,t)
787return this._send_request(o,r)}),MixpanelGroup.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token")
788var r=ye.encodeDates(e)
789return 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)},MixpanelGroup.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},MixpanelGroup.prototype._get_config=function(e){return this._mixpanel.get_config(e)},MixpanelGroup.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},MixpanelGroup.prototype.remove=MixpanelGroup.prototype.remove,MixpanelGroup.prototype.set=MixpanelGroup.prototype.set,MixpanelGroup.prototype.set_once=MixpanelGroup.prototype.set_once,MixpanelGroup.prototype.union=MixpanelGroup.prototype.union,MixpanelGroup.prototype.unset=MixpanelGroup.prototype.unset,MixpanelGroup.prototype.toString=MixpanelGroup.prototype.toString
790var MixpanelPeople=function(){}
791ye.extend(MixpanelPeople.prototype,ze),MixpanelPeople.prototype._init=function(e){this._mixpanel=e},MixpanelPeople.prototype.set=addOptOutCheckMixpanelPeople(function(e,t,r){var o=this.set_action(e,t)
792return ye.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),o[qe]=ye.extend({},ye.info.people_properties(),o[qe]),this._send_request(o,r)}),MixpanelPeople.prototype.set_once=addOptOutCheckMixpanelPeople(function(e,t,r){var o=this.set_once_action(e,t)
793return ye.isObject(e)&&(r=t),this._send_request(o,r)}),MixpanelPeople.prototype.unset=addOptOutCheckMixpanelPeople(function(e,t){var r=this.unset_action(e)
794return this._send_request(r,t)}),MixpanelPeople.prototype.increment=addOptOutCheckMixpanelPeople(function(e,t,r){var o={},n={}
795return ye.isObject(e)?(ye.each(e,function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void ve.error("Invalid increment value passed to mixpanel.people.increment - must be a number")
796n[t]=e}},this),r=t):(ye.isUndefined(t)&&(t=1),n[e]=t),o[Ue]=n,this._send_request(o,r)}),MixpanelPeople.prototype.append=addOptOutCheckMixpanelPeople(function(e,t,r){ye.isObject(e)&&(r=t)
797var o=this.append_action(e,t)
798return this._send_request(o,r)}),MixpanelPeople.prototype.remove=addOptOutCheckMixpanelPeople(function(e,t,r){ye.isObject(e)&&(r=t)
799var o=this.remove_action(e,t)
800return this._send_request(o,r)}),MixpanelPeople.prototype.union=addOptOutCheckMixpanelPeople(function(e,t,r){ye.isObject(e)&&(r=t)
801var o=this.union_action(e,t)
802return this._send_request(o,r)}),MixpanelPeople.prototype.track_charge=addOptOutCheckMixpanelPeople(function(e,t,r){if(ye.isNumber(e)||(e=parseFloat(e),!isNaN(e)))return this.append("$transactions",ye.extend({$amount:e},t),r)
803ve.error("Invalid value passed to mixpanel.people.track_charge - must be a number")}),MixpanelPeople.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},MixpanelPeople.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()}
804return this._send_request(e)}ve.error("mixpanel.people.delete_user() requires you to call identify() first")},MixpanelPeople.prototype.toString=function(){return this._mixpanel.toString()+".people"},MixpanelPeople.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id()
805var r=this._mixpanel.get_property("$device_id"),o=this._mixpanel.get_property("$user_id"),n=this._mixpanel.get_property("$had_persisted_distinct_id")
806r&&(e.$device_id=r),o&&(e.$user_id=o),n&&(e.$had_persisted_distinct_id=n)
807var i=ye.encodeDates(e)
808return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:i,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),ye.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),ye.truncate(i,255))},MixpanelPeople.prototype._get_config=function(e){return this._mixpanel.get_config(e)},MixpanelPeople.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},MixpanelPeople.prototype._enqueue=function(e){qe in e?this._mixpanel.persistence._add_to_people_queue(qe,e):Fe in e?this._mixpanel.persistence._add_to_people_queue(Fe,e):Pe in e?this._mixpanel.persistence._add_to_people_queue(Pe,e):Ue in e?this._mixpanel.persistence._add_to_people_queue(Ue,e):Be in e?this._mixpanel.persistence._add_to_people_queue(Be,e):$e in e?this._mixpanel.persistence._add_to_people_queue($e,e):je in e?this._mixpanel.persistence._add_to_people_queue(je,e):ve.error("Invalid call to _enqueue():",e)},MixpanelPeople.prototype._flush_one_queue=function(e,t,r,o){var n=this,i=ye.extend({},this._mixpanel.persistence.load_queue(e)),s=i
809ye.isUndefined(i)||!ye.isObject(i)||ye.isEmptyObject(i)||(n._mixpanel.persistence._pop_from_people_queue(e,i),n._mi
809xpanel.persistence.save(),o&&(s=o(i)),t.call(n,s,function(t,o){0===t&&n._mixpanel.persistence._add_to_people_queue(e,i),ye.isUndefined(r)||r(t,o)}))},MixpanelPeople.prototype._flush=function(e,t,r,o,n,i,s){var a=this
810this._flush_one_queue(qe,this.set,e),this._flush_one_queue(Fe,this.set_once,o),this._flush_one_queue(Pe,this.unset,i,function(e){return ye.keys(e)}),this._flush_one_queue(Ue,this.increment,t),this._flush_one_queue(je,this.union,n)
811var c=this._mixpanel.persistence.load_queue(Be)
812if(!ye.isUndefined(c)&&ye.isArray(c)&&c.length)for(var l,append_callback=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(Be,l),ye.isUndefined(r)||r(e,t)},u=c.length-1;u>=0;u--)c=this._mixpanel.persistence.load_queue(Be),l=c.pop(),a._mixpanel.persistence.save(),ye.isEmptyObject(l)||a.append(l,append_callback)
813var p=this._mixpanel.persistence.load_queue($e)
814if(!ye.isUndefined(p)&&ye.isArray(p)&&p.length)for(var d,remove_callback=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue($e,d),ye.isUndefined(s)||s(e,t)},h=p.length-1;h>=0;h--)p=this._mixpanel.persistence.load_queue($e),d=p.pop(),a._mixpanel.persistence.save(),ye.isEmptyObject(d)||a.remove(d,remove_callback)},MixpanelPeople.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},MixpanelPeople.prototype.set=MixpanelPeople.prototype.set,MixpanelPeople.prototype.set_once=MixpanelPeople.prototype.set_once,MixpanelPeople.prototype.unset=MixpanelPeople.prototype.unset,MixpanelPeople.prototype.increment=MixpanelPeople.prototype.increment,MixpanelPeople.prototype.append=MixpanelPeople.prototype.append,MixpanelPeople.prototype.remove=MixpanelPeople.prototype.remove,MixpanelPeople.prototype.union=MixpanelPeople.prototype.union,MixpanelPeople.prototype.track_charge=MixpanelPeople.prototype.track_charge,MixpanelPeople.prototype.clear_charges=MixpanelPeople.prototype.clear_charges,MixpanelPeople.prototype.delete_user=MixpanelPeople.prototype.delete_user,MixpanelPeople.prototype.toString=MixpanelPeople.prototype.toString
815var We,He="__mps",Ve="__mpso",Ge="__mpus",Je="__mpa",Ke="__mpap",Qe="__mpr",Xe="__mpu",Ye="$people_distinct_id",Ze="__alias",et="__timers",tt=[He,Ve,Ge,Je,Ke,Qe,Xe,Ye,Ze,et],MixpanelPersistence=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel"
816var t=e.persistence
817"cookie"!==t&&"localStorage"!==t&&(ve.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&ye.localStorage.is_supported()?this.storage=ye.localStorage:this.storage=ye.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()}
818MixpanelPersistence.prototype.properties=function(){var e={}
819return this.load(),ye.each(this.props,function(t,r){ye.include(tt,r)||(e[r]=t)}),e},MixpanelPersistence.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name)
820e&&(this.props=ye.extend({},e))}},MixpanelPersistence.prototype.upgrade=function(){var e,t
821this.storage===ye.localStorage?(e=ye.cookie.parse(this.name),ye.cookie.remove(this.name),ye.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===ye.cookie&&(t=ye.localStorage.parse(this.name),ye.localStorage.remove(this.name),t&&this.register_once(t))},MixpanelPersistence.prototype.save=function(){this.disabled||this.storage.set(this.name,ye.JSONEncode(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},MixpanelPersistence.prototype.load_prop=function(e){return this.load(),this.props[e]},MixpanelPersistence.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},MixpanelPersistence.prototype.clear=function(){this.remove(),this.props={}},MixpanelPersistence.prototype.register_once=function(e,t,r){return!!ye.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),ye.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},MixpanelPersistence.prototype.register=function(e,t){return!!ye.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),ye.extend(this.props,e),this.save(),!0)},MixpanelPersistence.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},MixpanelPersistence.prototype.update_search_keyword=function(e){this.register(ye.info.searchInfo(e))},MixpanelPersistence.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:ye.info.referringDomain(e)||"$direct"},"")},MixpanelPersistence.prototype.get_referrer_info=function(){return ye.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},MixpanelPersistence.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)},MixpanelPersistence.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},MixpanelPersistence.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},MixpanelPersistence.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},MixpanelPersistence.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},MixpanelPersistence.prototype.get_cross_subdomain=function(){return this.cross_subdomain},MixpanelPersistence.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},MixpanelPersistence.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),o=t[e],n=this._get_or_create_queue(qe),i=this._get_or_create_queue(Fe),s=this._get_or_create_queue(Pe),a=this._get_or_create_queue(Ue),c=this._get_or_create_queue(je),l=this._get_or_create_queue($e,[]),u=this._get_or_create_queue(Be,[])
822r===He?(ye.extend(n,o),this._pop_from_people_queue(Ue,o),this._pop_from_people_queue(je,o),this._pop_from_people_queue(Pe,o)):r===Ve?(ye.each(o,function(e,t){t in i||(i[t]=e)}),this._pop_from_people_queue(Pe,o)):r===Ge?ye.each(o,function(e){ye.each([n,i,a,c],function(t){e in t&&delete t[e]}),ye.each(u,function(t){e in t&&delete t[e]}),s[e]=!0}):r===Je?(ye.each(o,function(e,t){t in n?n[t]+=e:(t in a||(a[t]=0),a[t]+=e)},this),this._pop_from_people_queue(Pe,o)):r===Xe?(ye.each(o,function(e,t){ye.isArray(e)&&(t in c||(c[t]=[]),c[t]=c[t].concat(e))}),this._pop_from_people_queue(Pe,o)):r===Qe?(l.push(o),this._pop_from_people_queue(Be,o)):r===Ke&&(u.push(o),this._pop_from_people_queue(Pe,o)),ve.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),ve.log(t),this.save()},MixpanelPersistence.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)]
823ye.isUndefined(r)||ye.each(t,function(t,o){e===Be||e===$e?ye.each(r,function(e){e[o]===t&&delete e[o]}):delete r[o]},this)},MixpanelPersistence.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},MixpanelPersistence.prototype._get_queue_key=function(e){return e===qe?He
823:e===Fe?Ve:e===Pe?Ge:e===Ue?Je:e===Be?Ke:e===$e?Qe:e===je?Xe:void ve.error("Invalid queue:",e)},MixpanelPersistence.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e)
824return t=ye.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},MixpanelPersistence.prototype.set_event_timer=function(e,t){var r=this.load_prop(et)||{}
825r[e]=t,this.props[et]=r,this.save()},MixpanelPersistence.prototype.remove_event_timer=function(e){var t=(this.load_prop(et)||{})[e]
826return ye.isUndefined(t)||(delete this.props[et][e],this.save()),t}
827var rt,load_extra_bundle=function(e,t){throw new Error(e+" not available in this build.")},IDENTITY_FUNC=function(e){return e},NOOP_FUNC=function(){},ot="mixpanel",nt="base64",it="$device:",st=q.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,at=!st&&-1===pe.indexOf("MSIE")&&-1===pe.indexOf("Mozilla"),ct=null
828ae.sendBeacon&&(ct=function(){return ae.sendBeacon.apply(ae,arguments)})
829var lt={track:"track/",engage:"engage/",groups:"groups/",record:"record/"},ut={api_host:"https://api-js.mixpanel.com",api_routes:lt,api_method:"POST",api_transport:"XHR",api_payload_format:nt,app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:NOOP_FUNC,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:NOOP_FUNC,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video",record_collect_fonts:!1,record_idle_timeout_ms:18e5,record_inline_images:!1,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:Y,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},pt=!1,MixpanelLib=function(){},create_mplib=function(e,t,r){var o,n=r===ot?rt:rt[r]
830if(n&&0===We)o=n
831else{if(n&&!ye.isArray(n))return void ve.error("You have already initialized "+r)
832o=new MixpanelLib}if(o._cached_groups={},o._init(e,t,r),o.people=new MixpanelPeople,o.people._init(o),!o.get_config("skip_first_touch_marketing")){var i=ye.info.campaignParams(null),s={},a=!1
833ye.each(i,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&o.people.set_once(s)}return U.DEBUG=U.DEBUG||o.get_config("debug"),!ye.isUndefined(n)&&ye.isArray(n)&&(o._execute_array.call(o.people,n.people),o._execute_array(n)),o}
834MixpanelLib.prototype.init=function(e,t,r){if(ye.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)")
835else{if(r!==ot){var o=create_mplib(e,t,r)
836return rt[r]=o,o._loaded(),o}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},MixpanelLib.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={}
837var o={}
838"api_payload_format"in t||(t.api_host||ut.api_host).match(/\.mixpanel\.com/)&&(o.api_payload_format="json")
839if(this.set_config(ye.extend({},ut,o,t,{name:r,token:e,callback_fn:(r===ot?r:ot+"."+r)+"._jsc"})),this._jsc=NOOP_FUNC,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(ye.localStorage.is_supported(!0)&&st){if(this.init_batchers(),ct&&q.addEventListener){var n=ye.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this)
840q.addEventListener("pagehide",function(e){e.persisted&&n()}),q.addEventListener("visibilitychange",function(){"hidden"===ce.visibilityState&&n()})}}else this._batch_requests=!1,ve.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),ye.each(this.get_batcher_configs(),function(e){ve.log("Clearing batch queue "+e.queue_key),ye.localStorage.remove(e.queue_key)})
841this.persistence=this.cookie=new MixpanelPersistence(this.config),this.unpersisted_superprops={},this._gdpr_init()
842var i=ye.UUID()
843this.get_distinct_id()||this.register_once({distinct_id:it+i,$device_id:i},"")
844var s=this.get_config("track_pageview")
845s&&this._init_url_change_tracking(s),this.get_config("record_sessions_percent")>0&&100*Math.random()<=this.get_config("record_sessions_percent")&&this.start_session_recording()},MixpanelLib.prototype.start_session_recording=addOptOutCheckMixpanelLib(function(){if(q.MutationObserver){var e=ye.bind(function(){this._recorder=this._recorder||new q.__mp_recorder(this),this._recorder.startRecording()},this)
846ye.isUndefined(q.__mp_recorder)?load_extra_bundle(this.get_config("recorder_src"),e):e()}else ve.critical("Browser does not support MutationObserver; skipping session recording")}),MixpanelLib.prototype.stop_session_recording=function(){this._recorder?this._recorder.stopRecording():ve.critical("Session recorder module not loaded")},MixpanelLib.prototype.get_session_recording_properties=function(){var e={}
847if(this._recorder){var t=this._recorder.replayId
848t&&(e.$mp_replay_id=t)}return e},MixpanelLib.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=ye.info.campaignParams(null)
849ye.each(e,function(e,t){this.unregister(t)}.bind(this))}},MixpanelLib.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(ce.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(ye.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(ce.referrer)},MixpanelLib.prototype._dom_loaded=function(){ye.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||ye.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},MixpanelLib.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
850if(!pt)return this.__dom_loaded_queue.push([e,t]),!1
851var r=(new e).init(this)
852return r.track.apply(r,t)},MixpanelLib.prototype._init_url_change_tracking=function(e){var t=""
853if(this.track_pageview()&&(t=ye.info.currentUrl()),ye.include(["full-url","url-with-path-and-query-string","url-with-path"],e)){q.addEventListener("popstate",function(){q.dispatchEvent(new Event("mp_locationchange"))}),q.addEventListener("hashchange",function(){q.dispatchEvent(new Event("mp_locationchange"))})
854var r=q.history.pushState
855"function"==typeof r&&(q.history.pushState=function(e,t,o){r.call(q.history,e,t,o),q.dispatchEvent(new Event("mp_locationchange"))})
856var o=q.history.replaceState
857"function"==typeof o&&(q.history.replaceState=function(e,t,r){o.call(q.history,e,t,r),q.dispatchEvent(new Event("mp_locationchange"))}),q.addEventListener("mp_locationchange",function(){var r=ye.info.currentUrl(),o=!1;("full-url"===e?o=r!==t:"url-with-path-and-query-string"===e?o=r.split("#")[0]!==t.split("#")[0]:"url-with-path"===e&&(o=r.split("#")[0].split("?")[0]!==t.split("#")[0].split("?")[0]),o)&&(this.track_pageview()&&(t=r))}.bind(this))}},MixpanelLib.prototype._prepare_callback=function(e,t){if(ye.isUndefined(e))return null
858if(st){return function(r){e(r,t)}}var r=this._jsc,o=""+Math.floor(1e8*Math.random()),n=this.get_config("callback_fn")+"["+o+"]"
859return r[o]=function(n){delete r[o],e(n,t)},n},MixpanelLib.prototype._send_request=function(e,t,r,o){var n=!0
860if(at)return this.__request_queue.push(arguments),n
861var i={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose
861:this.get_config("verbose")},s=null
862o||!ye.isFunction(r)&&"string"!=typeof r||(o=r,r=null),r=ye.extend(i,r||{}),st||(r.method="GET")
863var a="POST"===r.method,c=ct&&a&&"sendbeacon"===r.transport.toLowerCase(),l=r.verbose
864t.verbose&&(l=!0),this.get_config("test")&&(t.test=1),l&&(t.verbose=1),this.get_config("img")&&(t.img=1),st||(o?t.callback=o:(l||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=(new Date).getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),e+="?"+ye.HTTPBuildQuery(t)
865var u=this
866if("img"in t){var p=ce.createElement("img")
867p.src=e,ce.body.appendChild(p)}else if(c){try{n=ct(e,s)}catch(e){u.report_error(e),n=!1}try{o&&o(n?1:0)}catch(e){u.report_error(e)}}else if(st)try{var d=new XMLHttpRequest
868d.open(r.method,e,!0)
869var h=this.get_config("xhr_headers")
870if(a&&(h["Content-Type"]="application/x-www-form-urlencoded"),ye.each(h,function(e,t){d.setRequestHeader(t,e)}),r.timeout_ms&&void 0!==d.timeout){d.timeout=r.timeout_ms
871var f=(new Date).getTime()}d.withCredentials=!0,d.onreadystatechange=function(){var e
872if(4===d.readyState)if(200===d.status){if(o)if(l){var t
873try{t=ye.JSONDecode(d.responseText)}catch(e){if(u.report_error(e),!r.ignore_json_errors)return
874t=d.responseText}o(t)}else o(Number(d.responseText))}else if(e=d.timeout&&!d.status&&(new Date).getTime()-f>=d.timeout?"timeout":"Bad HTTP status: "+d.status+" "+d.statusText,u.report_error(e),o)if(l){var n=d.responseHeaders||{}
875o({status:0,httpStatusCode:d.status,error:e,retryAfter:n["Retry-After"]})}else o(0)},d.send(s)}catch(e){u.report_error(e),n=!1}else{var m=ce.createElement("script")
876m.type="text/javascript",m.async=!0,m.defer=!0,m.src=e
877var _=ce.getElementsByTagName("script")[0]
878_.parentNode.insertBefore(m,_)}return n},MixpanelLib.prototype._execute_array=function(e){var t,r=[],o=[],n=[]
879ye.each(e,function(e){e&&(t=e[0],ye.isArray(t)?n.push(e):"function"==typeof e?e.call(this):ye.isArray(e)&&"alias"===t?r.push(e):ye.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?n.push(e):o.push(e))},this)
880var execute=function(e,t){ye.each(e,function(e){if(ye.isArray(e[0])){var r=t
881ye.each(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)}
882execute(r,this),execute(o,this),execute(n,this)},MixpanelLib.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},MixpanelLib.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token"),t=this.get_config("api_routes")
883return 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},MixpanelLib.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=ye.bind(function(e){return new RequestBatcher(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:ye.bind(function(t,r,o){this._send_request(this.get_config("api_host")+e.endpoint,this._encode_data_for_request(t),r,this._prepare_callback(o,t))},this),beforeSendHook:ye.bind(function(t){return this._run_hook("before_send_"+e.type,t)},this),stopAllBatchingFunc:ye.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs()
884this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},MixpanelLib.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,ye.each(this.request_batchers,function(e){e.start()}))},MixpanelLib.prototype.stop_batch_senders=function(){this._batch_requests=!1,ye.each(this.request_batchers,function(e){e.stop(),e.clear()})},MixpanelLib.prototype.push=function(e){this._execute_array([e])},MixpanelLib.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},MixpanelLib.prototype._encode_data_for_request=function(e){var t=ye.JSONEncode(e)
885return this.get_config("api_payload_format")===nt&&(t=ye.base64Encode(t)),{data:t}},MixpanelLib.prototype._track_or_batch=function(e,t){var r=ye.truncate(e.data,255),o=e.endpoint,n=e.batcher,i=e.should_send_immediately,s=e.send_request_options||{}
886t=t||NOOP_FUNC
887var a=!0,c=ye.bind(function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r?(ve.log("MIXPANEL REQUEST:"),ve.log(r),this._send_request(o,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null},this)
888return this._batch_requests&&!i?n.enqueue(r,function(e){e?t(1,r):c()}):a=c(),a&&r},MixpanelLib.prototype.track=addOptOutCheckMixpanelLib(function(e,t,r,o){o||"function"!=typeof r||(o=r,r=null)
889var n=(r=r||{}).transport
890n&&(r.transport=n)
891var i=r.send_immediately
892if("function"!=typeof o&&(o=NOOP_FUNC),ye.isUndefined(e))this.report_error("No event name provided to mixpanel.track")
893else{if(!this._event_is_disabled(e)){(t=ye.extend({},t)).token=this.get_config("token")
894var s=this.persistence.remove_event_timer(e)
895if(!ye.isUndefined(s)){var a=(new Date).getTime()-s
896t.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops()
897var c=this.get_config("track_marketing")?ye.info.marketingParams():{}
898t=ye.extend({},ye.info.properties({mp_loader:this.get_config("mp_loader")}),c,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t)
899var l=this.get_config("property_blacklist")
900ye.isArray(l)?ye.each(l,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+l)
901var u={event:e,properties:t}
902return this._track_or_batch({type:"events",data:u,endpoint:this.get_config("api_host")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:i,send_request_options:r},o)}o(0)}}),MixpanelLib.prototype.set_group=addOptOutCheckMixpanelLib(function(e,t,r){ye.isArray(t)||(t=[t])
903var o={}
904return o[e]=t,this.register(o),this.people.set(e,t,r)}),MixpanelLib.prototype.add_group=addOptOutCheckMixpanelLib(function(e,t,r){var o=this.get_property(e),n={}
905return void 0===o?(n[e]=[t],this.register(n)):-1===o.indexOf(t)&&(o.push(t),n[e]=o,this.register(n)),this.people.union(e,t,r)}),MixpanelLib.prototype.remove_group=addOptOutCheckMixpanelLib(function(e,t,r){var o=this.get_property(e)
906if(void 0!==o){var n=o.indexOf(t)
907n>-1&&(o.splice(n,1),this.register({group_key:o})),0===o.length&&this.unregister(e)}return this.people.remove(e,t,r)}),MixpanelLib.prototype.track_with_groups=addOptOutCheckMixpanelLib(function(e,t,r,o){var n=ye.extend({},t||{})
908return ye.each(r,function(e,t){null!=e&&(n[t]=e)}),this.track(e,n,o)}),MixpanelLib.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},MixpanelLib.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},MixpanelLib.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),o=this._cached_groups[r]
909return void 0!==o&&o._group_key===e&&o._group_id===t||((o=new MixpanelGroup)._init(this,e,t),this._cached_groups[r]=o),o},MixpanelLib.prototype.track_pageview=addOptOutCheckMixpanelLib(function(e,t){"object"!=typeof e&&(e={})
910var r=(t=t||{}).event_name||"$mp_web_page_view",o=ye.extend(ye.info.mpPageViewProperties(),ye.info.campaignParams(),ye.info.clickParams()),n=ye.extend({},o,e)
911return this.track(r,n)}),MixpanelLib.prototype.track_links=function(){return this._track_dom.call(this,LinkTracker,arguments)},MixpanelLib.prototype.track_forms=function(){return this._track_dom.call(this,FormTracker,arguments)},MixpanelLib.prototype.time_event=function(e){ye.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,(new Date).getTime())}
912var dt={persistent:!0},options_for_register=function(e){var t
913return t=ye.isObject(e)?e:ye.isUndefined(e)?{}:{days:e},ye.extend({},dt,t)}
914MixpanelLib.prototype.register=function(e,t){var r=options_for_register(t)
915r.persistent?this.persistence.register(e,r.days):ye.extend(this.unpersisted_superprops,e)},MixpanelLib.prototype.register_once=function(e,t,r){var o=options_for_register(r)
916o.persistent?this.persistence.register_once(e,t,o.days):(void 0===t&&(t="None"),ye.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))},MixpanelLib.prototype.unregister=function(e,t){(t=options_for_register(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},MixpanelLib.prototype._register_single=function(e,t){var r={}
917r[e]=t,this.register(r)},MixpanelLib.prototype.identify=function(e,t,r,o,n,i,s,a){var c=this.get_distinct_id()
918if(e&&c!==e){if("string"==typeof e&&0===e.indexOf(it))return this.report_error("distinct_id cannot have $device: prefix"),-1
919this.register({$user_id:e})}if(!this.get_property("$device_id")){var l=c
920this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}e!==c&&e!==this.get_property(Ze)&&(this.unregister(Ze),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,o,n,i,s,a),e!==c&&this.track("$identify",{distinct_id:e,$anon_distinct_id:c},{skip_hooks:!0})},MixpanelLib.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1
921var e=ye.UUID()
922this.register_once({distinct_id:it+e,$device_id:e},"")},MixpanelLib.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},MixpanelLib.prototype.alias=function(e,t){if(e===this.get_property(Ye))return this.report_error("Attempting to create alias for existing People user - aborting."),-2
923var r=this
924return ye.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(Ze,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)},MixpanelLib.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},MixpanelLib.prototype.set_config=function(e){ye.isObject(e)&&(ye.extend(this.config,e),e.batch_size&&ye.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),U.DEBUG=U.DEBUG||this.get_config("debug"))},MixpanelLib.prototype.get_config=function(e){return this.config[e]},MixpanelLib.prototype._run_hook=function(e){var t=(this.config.hooks[e]||IDENTITY_FUNC).apply(this,oe.call(arguments,1
924))
925return void 0===t&&(this.report_error(e+" hook did not return a value"),t=null),t},MixpanelLib.prototype.get_property=function(e){return this.persistence.load_prop([e])},MixpanelLib.prototype.toString=function(){var e=this.get_config("name")
926return e!==ot&&(e=ot+"."+e),e},MixpanelLib.prototype._event_is_disabled=function(e){return ye.isBlockedUA(pe)||this._flags.disable_all_events||ye.include(this.__disabled_events,e)},MixpanelLib.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&ye.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")&&!ye.cookie.get("mp_optout")||(ye.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},MixpanelLib.prototype._gdpr_update_persistence=function(e){var t
927if(e&&e.clear_persistence)t=!0
928else{if(!e||!e.enable_persistence)return
929t=!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()},MixpanelLib.prototype._gdpr_call_func=function(e,t){return t=ye.extend({track:ye.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),ye.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})},MixpanelLib.prototype.opt_in_tracking=function(e){e=ye.extend({enable_persistence:!0},e),this._gdpr_call_func(optIn,e),this._gdpr_update_persistence(e)},MixpanelLib.prototype.opt_out_tracking=function(e){(e=ye.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(optOut,e),this._gdpr_update_persistence(e)},MixpanelLib.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(hasOptedIn,e)},MixpanelLib.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(hasOptedOut,e)},MixpanelLib.prototype.clear_opt_in_out_tracking=function(e){e=ye.extend({enable_persistence:!0},e),this._gdpr_call_func(clearOptInOut,e),this._gdpr_update_persistence(e)},MixpanelLib.prototype.report_error=function(e,t){ve.error.apply(ve.error,arguments)
930try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){ve.error(t)}},MixpanelLib.prototype.init=MixpanelLib.prototype.init,MixpanelLib.prototype.reset=MixpanelLib.prototype.reset,MixpanelLib.prototype.disable=MixpanelLib.prototype.disable,MixpanelLib.prototype.time_event=MixpanelLib.prototype.time_event,MixpanelLib.prototype.track=MixpanelLib.prototype.track,MixpanelLib.prototype.track_links=MixpanelLib.prototype.track_links,MixpanelLib.prototype.track_forms=MixpanelLib.prototype.track_forms,MixpanelLib.prototype.track_pageview=MixpanelLib.prototype.track_pageview,MixpanelLib.prototype.register=MixpanelLib.prototype.register,MixpanelLib.prototype.register_once=MixpanelLib.prototype.register_once,MixpanelLib.prototype.unregister=MixpanelLib.prototype.unregister,MixpanelLib.prototype.identify=MixpanelLib.prototype.identify,MixpanelLib.prototype.alias=MixpanelLib.prototype.alias,MixpanelLib.prototype.name_tag=MixpanelLib.prototype.name_tag,MixpanelLib.prototype.set_config=MixpanelLib.prototype.set_config,MixpanelLib.prototype.get_config=MixpanelLib.prototype.get_config,MixpanelLib.prototype.get_property=MixpanelLib.prototype.get_property,MixpanelLib.prototype.get_distinct_id=MixpanelLib.prototype.get_distinct_id,MixpanelLib.prototype.toString=MixpanelLib.prototype.toString,MixpanelLib.prototype.opt_out_tracking=MixpanelLib.prototype.opt_out_tracking,MixpanelLib.prototype.opt_in_tracking=MixpanelLib.prototype.opt_in_tracking,MixpanelLib.prototype.has_opted_out_tracking=MixpanelLib.prototype.has_opted_out_tracking,MixpanelLib.prototype.has_opted_in_tracking=MixpanelLib.prototype.has_opted_in_tracking,MixpanelLib.prototype.clear_opt_in_out_tracking=MixpanelLib.prototype.clear_opt_in_out_tracking,MixpanelLib.prototype.get_group=MixpanelLib.prototype.get_group,MixpanelLib.prototype.set_group=MixpanelLib.prototype.set_group,MixpanelLib.prototype.add_group=MixpanelLib.prototype.add_group,MixpanelLib.prototype.remove_group=MixpanelLib.prototype.remove_group,MixpanelLib.prototype.track_with_groups=MixpanelLib.prototype.track_with_groups,MixpanelLib.prototype.start_batch_senders=MixpanelLib.prototype.start_batch_senders,MixpanelLib.prototype.stop_batch_senders=MixpanelLib.prototype.stop_batch_senders,MixpanelLib.prototype.start_session_recording=MixpanelLib.prototype.start_session_recording,MixpanelLib.prototype.stop_session_recording=MixpanelLib.prototype.stop_session_recording,MixpanelLib.prototype.get_session_recording_properties=MixpanelLib.prototype.get_session_recording_properties,MixpanelLib.prototype.DEFAULT_API_ROUTES=lt,MixpanelPersistence.prototype.properties=MixpanelPersistence.prototype.properties,MixpanelPersistence.prototype.update_search_keyword=MixpanelPersistence.prototype.update_search_keyword,MixpanelPersistence.prototype.update_referrer_info=MixpanelPersistence.prototype.update_referrer_info,MixpanelPersistence.prototype.get_cross_subdomain=MixpanelPersistence.prototype.get_cross_subdomain,MixpanelPersistence.prototype.clear=MixpanelPersistence.prototype.clear
931var ht={},override_mp_init_func=function(){rt.init=function(e,t,r){if(r)return rt[r]||(rt[r]=ht[r]=create_mplib
931(e,t,r),rt[r]._loaded()),rt[r]
932var o=rt
933ht[ot]?o=ht[ot]:e&&((o=create_mplib(e,t,ot))._loaded(),ht[ot]=o),rt=o,1===We&&(q[ot]=rt),ye.each(ht,function(e,t){t!==ot&&(rt[t]=e)}),rt._=ye}}
934var ft=function init_as_module(e){return load_extra_bundle=e,We=0,rt=new MixpanelLib,override_mp_init_func(),rt.init(),function(){function dom_loaded_handler(){dom_loaded_handler.done||(dom_loaded_handler.done=!0,pt=!0,at=!1,ye.each(ht,function(e){e._dom_loaded()}))}if(ce.addEventListener)"complete"===ce.readyState?dom_loaded_handler():ce.addEventListener("DOMContentLoaded",dom_loaded_handler,!1)
935else if(ce.attachEvent){ce.attachEvent("onreadystatechange",dom_loaded_handler)
936var e=!1
937try{e=null===q.frameElement}catch(e){}ce.documentElement.doScroll&&e&&function do_scroll_check(){try{ce.documentElement.doScroll("left")}catch(e){return void setTimeout(do_scroll_check,1)}dom_loaded_handler()}()}ye.register_event(q,"load",dom_loaded_handler,!0)}(),rt}(function loadNoop(e,t){t()})}}])

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.