PageSourceSearch

https://www.coinscope.co/_next/static/chunks/b3a13d7d-89365ff580d1a69e.js

js coinscope.co collected 2026-09-26 13:54:19 UTC 151,865 bytes, 10 lines download raw bytes

1try{let t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="0f432487-5519-4114-aead-734aca0cf5e8",t._sentryDebugIdIdentifier="sentry-dbid-0f432487-5519-4114-aead-734aca0cf5e8")}catch(t){}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"d2911879bc35c39df91a8e85b8eeba45c19f4ad7"};"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5336],{53078:function(t,e,a){let n,r,i,s,o;a.d(e,{U:function(){return Replay}});var l,d,c,u,h,p,f,_,m,g,y,b,w,v,k,S,E=a(95659),R=a(10350),x=a(88942),T=a(64487),C=a(71235),A=a(34754),I=a(20535),N=a(58464),D=a(12343),z=a(62844),O=a(35648),M=a(57321),L=a(21170),B=a(58725),U=a(61422),F=a(34155);let P=C.n2,W="sentryReplaySession",H="Unable to send Replay";function isShadowRoot(t){let e=null==t?void 0:t.host;return!!(e&&e.shadowRoot&&e.shadowRoot===t)}function isInputTypeMasked({maskInputOptions:t,tagName:e,type:a}){"option"===e.toLowerCase()&&(e="select");let n="string"==typeof a?a.toLowerCase():void 0;return t[e.toLowerCase()]||n&&t[n]||"password"===n||"input"===e&&!a&&t.text}function maskInputValue({input:t,maskInputSelector:e,unmaskInputSelector:a,maskInputOptions:n,tagName:r,type:i,value:s,maskInputFn:o}){let l=s||"";return a&&t.matches(a)||(t.hasAttribute("data-rr-is-password")&&(i="password"),(isInputTypeMasked({maskInputOptions:n,tagName:r,type:i})||e&&t.matches(e))&&(l=o?o(l):"*".repeat(l.length))),l}(l=m||(m={}))[l.Document=0]="Document",l[l.DocumentType=1]="DocumentType",l[l.Element=2]="Element",l[l.Text=3]="Text",l[l.CDATA=4]="CDATA",l[l.Comment=5]="Comment";let G="__rrweb_original__";function getInputType(t){let e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?e.toLowerCase():null}function getInputValue(t,e,a){return("string"==typeof a&&a.toLowerCase(),"INPUT"===e&&("radio"===a||"checkbox"===a))?t.getAttribute("value")||"":t.value}let Z=1,j=RegExp("[^a-z0-9-_:]");function defaultMaskFn(t){return t?t.replace(/[\S]/g,"*"):""}function getCssRulesString(t){try{let e=t.rules||t.cssRules;return e?Array.from(e).map(getCssRuleString).join(""):null}catch(t){return null}}function getCssRuleString(t){let e=t.cssText;if("styleSheet"in t)try{e=getCssRulesString(t.styleSheet)||e}catch(t){}return validateStringifiedCssRule(e)}function validateStringifiedCssRule(t){return t.indexOf(":")>-1?t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"):t}let Y=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,q=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,$=/^(data:)([^,]*),(.*)/i;function absoluteToStylesheet(t,e){return(t||"").replace(Y,(t,a,n,r,i,s)=>{let o=n||i||s,l=a||r||"";if(!o)return t;if(!q.test(o)||$.test(o))return`url(${l}${o}${l})`;if("/"===o[0])return`url(${l}${(e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]+o}${l})`;let d=e.split("/"),c=o.split("/");for(let t of(d.pop(),c))"."!==t&&(".."===t?d.pop():d.push(t));return`url(${l}${d.join("/")}${l})`})}let V=/^[^ \t\n\r\u000c]+/,K=/^[, \t\n\r\u000c]+/;function absoluteToDoc(t,e){if(!e||""===e.trim())return e;let a=t.createElement("a");return a.href=e,a.href}function getHref(){let t=document.createElement("a");return t.href="",t.href}function transformAttribute(t,e,a,n,r,i,s,o){if(!r)return r;let l=n.toLowerCase(),d=a.toLowerCase();if("src"===l||"href"===l||"xlink:href"===l&&"#"!==r[0]||"background"===l&&("table"===d||"td"===d||"th"===d))return absoluteToDoc(t,r);if("srcset"===l)return function(t,e){if(""===e.trim())return e;let a=0;function collectCharacters(t){let n;let r=t.exec(e.substring(a));return r?(n=r[0],a+=n.length,n):""}let n=[];for(;collectCharacters(K),!(a>=e.length);){let r=collectCharacters(V);if(","===r.slice(-1))r=absoluteToDoc(t,r.substring(0,r.length-1)),n.push(r);else{let i="";r=absoluteToDoc(t,r);let s=!1;for(;;){let t=e.charAt(a);if(""===t){n.push((r+i).trim());break}if(s)")"===t&&(s=!1);else{if(","===t){a+=1,n.push((r+i).trim());break}"("===t&&(s=!0)}i+=t,a+=1}}}return n.join(", ")}(t,r);if("style"===l)return absoluteToStylesheet(r,getHref());if("object"===d&&"data"===l)return absoluteToDoc(t,r);if(i&&!(s&&e.matches(s))&&(["placeholder","title","aria-label"].indexOf(l)>-1||"input"===d&&"value"===l&&e.hasAttribute("type")&&["submit","button"].indexOf(e.getAttribute("type").toLowerCase())>-1))return o?o(r):defaultMaskFn(r);return r}function needMaskingText(t,e,a,n,r){if(!t)return!1;
1if(t.nodeType!==t.ELEMENT_NODE)return needMaskingText(t.parentNode,e,a,n,r);if(n&&(t.matches(n)||t.closest(n)))return!1;if(r)return!0;if("string"==typeof e){if(t.classList.contains(e))return!0}else for(let a=0;a<t.classList.length;a++){let n=t.classList[a];if(e.test(n))return!0}return!!(a&&t.matches(a))||needMaskingText(t.parentNode,e,a,n,r)}function lowerIfExists(t){return null==t?"":t.toLowerCase()}function serializeNodeWithId(t,e){let a;let{doc:i,map:s,blockClass:o,blockSelector:l,unblockSelector:d,maskTextClass:c,maskTextSelector:u,unmaskTextSelector:h,skipChild:p=!1,inlineStylesheet:f=!0,maskInputSelector:_,unmaskInputSelector:g,maskAllText:y,maskInputOptions:b={},maskTextFn:w,maskInputFn:v,slimDOMOptions:k,dataURLOptions:S={},inlineImages:E=!1,recordCanvas:R=!1,onSerialize:x,onIframeLoad:T,iframeLoadTimeout:C=5e3,keepIframeSrcFn:A=()=>!1}=e,{preserveWhiteSpace:I=!0}=e,N=function(t,e){let a;let{doc:i,blockClass:s,blockSelector:o,unblockSelector:l,maskTextClass:d,maskTextSelector:c,unmaskTextSelector:u,inlineStylesheet:h,maskInputSelector:p,unmaskInputSelector:f,maskAllText:_,maskInputOptions:g={},maskTextFn:y,maskInputFn:b,dataURLOptions:w={}
1,inlineImages:v,recordCanvas:k,keepIframeSrcFn:S}=e;if(i.__sn){let t=i.__sn.id;a=1===t?void 0:t}switch(t.nodeType){case t.DOCUMENT_NODE:if("CSS1Compat"!==t.compatMode)return{type:m.Document,childNodes:[],compatMode:t.compatMode,rootId:a};return{type:m.Document,childNodes:[],rootId:a};case t.DOCUMENT_TYPE_NODE:return{type:m.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:a};case t.ELEMENT_NODE:let E=function(t,e,a,n){if(n&&t.matches(n))return!1;if("string"==typeof e){if(t.classList.contains(e))return!0}else for(let a=0;a<t.classList.length;a++){let n=t.classList[a];if(e.test(n))return!0}return!!a&&t.matches(a)}(t,s,o,l),R=function(t){if(t instanceof HTMLFormElement)return"form";let e=t.tagName.toLowerCase().trim();return j.test(e)?"div":e}(t),x={};for(let{name:e,value:a}of Array.from(t.attributes)){var T,C;("video"===R||"audio"===R)&&"autoplay"===e||(x[e]=transformAttribute(i,t,R,e,a,_,u,y))}if("link"===R&&h){let e=Array.from(i.styleSheets).find(e=>e.href===t.href),a=null;e&&(a=getCssRulesString(e)),a&&(delete x.rel,delete x.href,x._cssText=absoluteToStylesheet(a,e.href))}if("style"===R&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){let e=getCssRulesString(t.sheet);e&&(x._cssText=absoluteToStylesheet(e,getHref()))}if("input"===R||"textarea"===R||"select"===R||"option"===R){let e=getInputType(t),a=getInputValue(t,R.toUpperCase(),e),n=t.checked;"submit"!==e&&"button"!==e&&a&&(x.value=maskInputValue({input:t,type:e,tagName:R,value:a,maskInputSelector:p,unmaskInputSelector:f,maskInputOptions:g,maskInputFn:b})),n&&(x.checked=n)}if("option"===R&&(t.selected&&!g.select?x.selected=!0:delete x.selected),"canvas"===R&&k){if("2d"===t.__context)!function(t){let e=t.getContext("2d");if(!e)return!0;for(let a=0;a<t.width;a+=50)for(let n=0;n<t.height;n+=50){let r=e.getImageData,i=G in r?r[G]:r,s=new Uint32Array(i.call(e,a,n,Math.min(50,t.width-a),Math.min(50,t.height-n)).data.buffer);if(s.some(t=>0!==t))return!1}return!0}(t)&&(x.rr_dataURL=t.toDataURL(w.type,w.quality));else if(!("__context"in t)){let e=t.toDataURL(w.type,w.quality),a=document.createElement("canvas");a.width=t.width,a.height=t.height;let n=a.toDataURL(w.type,w.quality);e!==n&&(x.rr_dataURL=e)}}if("img"===R&&v){n||(r=(n=i.createElement("canvas")).getContext("2d"));let e=t.crossOrigin;t.crossOrigin="anonymous";let recordInlineImage=()=>{try{n.width=t.naturalWidth,n.height=t.naturalHeight,r.drawImage(t,0,0),x.rr_dataURL=n.toDataURL(w.type,w.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}e?x.crossOrigin=e:delete x.crossOrigin};t.complete&&0!==t.naturalWidth?recordInlineImage():t.onload=recordInlineImage}if(("audio"===R||"video"===R)&&(x.rr_mediaState=t.paused?"paused":"played",x.rr_mediaCurrentTime=t.currentTime),t.scrollLeft&&(x.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(x.rr_scrollTop=t.scrollTop),E){let{width:e,height:a}=t.getBoundingClientRect();x={class:x.class,rr_width:`${e}px`,rr_height:`${a}px`}}return"iframe"!==R||S(x.src)||(t.contentDocument||(x.rr_src=x.src),delete x.src),{type:m.Element,tagName:R,attributes:x,childNodes:[],isSVG:!!("svg"===t.tagName||t.ownerSVGElement)||void 0,needBlock:E,rootId:a};case t.TEXT_NODE:let A=t.parentNode&&t.parentNode.tagName,I=t.textContent,N="STYLE"===A||void 0,D="SCRIPT"===A||void 0;if(N&&I){try{t.nextSibling||t.previousSibling||(null===(T=t.parentNode.sheet)||void 0===T?void 0:T.cssRules)&&(I=(C=t.parentNode.sheet).cssRules?Array.from(C.cssRules).map(t=>t.cssText?validateStringifiedCssRule(t.cssText):"").join(""):"")}catch(e){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${e}`,t)}I=absoluteToStylesheet(I,getHref())}if(D&&(I="SCRIPT_PLACEHOLDER"),"TEXTAREA"===A&&I)I="";else if("OPTION"===A&&I){let e=t.parentNode;I=maskInputValue({input:e,type:null,tagName:A,value:I,maskInputSelector:p,unmaskInputSelector:f,maskInputOptions:g,maskInputFn:b})}else!N&&!D&&needMaskingText(t,d,c,u,_)&&I&&(I=y?y(I):defaultMaskFn(I));return{type:m.Text,textContent:I||"",isStyle:N,rootId:a};case t.CDATA_SECTION_NODE:return{type:m.CDATA,textContent:"",rootId:a};case t.COMMENT_NODE:return{type:m.Comment,textContent:t.textContent||"",rootId:a};default:return!1}}(t,{doc:i,blockClass:o,blockSelector:l,unblockSelector:d,maskTextClass:c,maskTextSelector:u,unmaskTextSelector:h,inlineStylesheet:f,maskInputSelector:_,unmaskInputSelector:g,maskAllText:y,maskInputOptions:b,maskTextFn:w,maskInputFn:v,dataURLOptions:S,inlineImages:E,recordCanvas:R,keepIframeSrcFn:A});if(!N)return console.warn(t,"not serialized"),null;a="__sn"in t?t.__sn.id:!function(t,e){if(e.comment&&t.type===m.Comment)return!0;
1if(t.type===m.Element){if(e.script&&("script"===t.tagName||"link"===t.tagName&&("preload"===t.attributes.rel||"modulepreload"===t.attributes.rel)&&"script"===t.attributes.as||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&t.attributes.href.endsWith(".js"))||e.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(lowerIfExists(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===lowerIfExists(t.attributes.name)||"icon"===lowerIfExists(t.attributes.rel)||"apple-touch-icon"===lowerIfExists(t.attributes.rel)||"shortcut icon"===lowerIfExists(t.attributes.rel))))return!0;if("meta"===t.tagName){if(e.headMetaDescKeywords&&lowerIfExists(t.attributes.name).match(/^description|keywords$/)||e.headMetaSocial&&(lowerIfExists(t.attributes.property).match(/^(og|twitter|fb):/)||lowerIfExists(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===lowerIfExists(t.attributes.name)))return!0;if(e.headMetaRobots&&("robots"===lowerIfExists(t.attributes.name)||"googlebot"===lowerIfExists(t.attributes.name)||"bingbot"===lowerIfExists(t.attributes.name)))return!0;if(e.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;else if(e.headMetaAuthorship&&("author"===lowerIfExists(t.attributes.name)||"generator"===lowerIfExists(t.attributes.name)||"framework"===lowerIfExists(t.attributes.name)||"publisher"===lowerIfExists(t.attributes.name)||"progid"===lowerIfExists(t.attributes.name)||lowerIfExists(t.attributes.property).match(/^article:/)||lowerIfExists(t.attributes.property).match(/^product:/)))return!0;else if(e.headMetaVerification&&("google-site-verification"===lowerIfExists(t.attributes.name)||"yandex-verification"===lowerIfExists(t.attributes.name)||"csrf-token"===lowerIfExists(t.attributes.name)||"p:domain_verify"===lowerIfExists(t.attributes.name)||"verify-v1"===lowerIfExists(t.attributes.name)||"verification"===lowerIfExists(t.attributes.name)||"shopify-checkout-api-token"===lowerIfExists(t.attributes.name)))return!0}}return!1}(N,k)&&(I||N.type!==m.Text||N.isStyle||N.textContent.replace(/^\s+|\s+$/gm,"").length)?Z++:-2;let D=Object.assign(N,{id:a});if(t.__sn=D,-2===a)return null;s[a]=t,x&&x(t);let z=!p;if(D.type===m.Element&&(z=z&&!D.needBlock,delete D.needBlock,t.shadowRoot&&(D.isShadowHost=!0)),(D.type===m.Document||D.type===m.Element)&&z){k.headWhitespace&&N.type===m.Element&&"head"===N.tagName&&(I=!1);let e={doc:i,map:s,blockClass:o,blockSelector:l,unblockSelector:d,maskTextClass:c,maskTextSelector:u,unmaskTextSelector:h,skipChild:p,inlineStylesheet:f,maskInputSelector:_,unmaskInputSelector:g,maskAllText:y,maskInputOptions:b,maskTextFn:w,maskInputFn:v,slimDOMOptions:k,dataURLOptions:S,inlineImages:E,recordCanvas:R,preserveWhiteSpace:I,onSerialize:x,onIframeLoad:T,iframeLoadTimeout:C,keepIframeSrcFn:A};for(let a of Array.from(t.childNodes)){let t=serializeNodeWithId(a,e);t&&D.childNodes.push(t)}if(t.nodeType===t.ELEMENT_NODE&&t.shadowRoot)for(let a of Array.from(t.shadowRoot.childNodes)){let t=serializeNodeWithId(a,e);t&&(t.isShadow=!0,D.childNodes.push(t))}}return t.parentNode&&isShadowRoot(t.parentNode)&&(D.isShadow=!0),D.type===m.Element&&"iframe"===D.tagName&&function(t,e,a){let n;let r=t.contentWindow;if(!r)return;let i=!1;try{n=r.document.readyState}catch(t){return}if("complete"!==n){let n=setTimeout(()=>{i||(e(),i=!0)},a);t.addEventListener("load",()=>{clearTimeout(n),i=!0,e()});return}let s="about:blank";if(r.location.href!==s||t.src===s||""===t.src){setTimeout(e,0);return}t.addEventListener("load",e)}(t,()=>{let e=t.contentDocument;if(e&&T){let a=serializeNodeWithId(e,{doc:e,map:s,blockClass:o,blockSelector:l,unblockSelector:d,maskTextClass:c,maskTextSelector:u,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:f,maskInputSelector:_,unmaskInputSelector:g,maskAllText:y,maskInputOptions:b,maskTextFn:w,maskInputFn:v,slimDOMOptions:k,dataURLOptions:S,inlineImages:E,recordCanvas:R,preserveWhiteSpace:I,onSerialize:x,onIframeLoad:T,iframeLoadTimeout:C,keepIframeSrcFn:A});a&&T(t,a)}},C),D}function on(t,e,a=document){let n={capture:!0,passive:!0};return a.addEventListener(t,e,n),()=>a.removeEventListener(t,e,n)}(d=g||(g={}))[d.DomContentLoaded=0]="DomContentLoaded",d[d.Load=1]="Load",d[d.FullSnapshot=2]="FullSnapshot",d[d.IncrementalSnapshot=3]="IncrementalSnapshot",d[d.Meta=4]="Meta",d[d.Custom=5]="Custom",d[d.Plugin=6]="Plugin",(c=y||(y={}))[c.Mutation=0]="Mutation",c[c.MouseMove=1]="MouseMove",c[c.MouseInteraction=2]="MouseInteraction",c[c.Scroll=3]="Scroll",c[c.ViewportResize=4]="ViewportResize",c[c.Input=5]="Input",c[c.TouchMove=6]="TouchMove",c[c.MediaInteraction=7]="MediaInteraction",c[c.StyleSheetRule=8]="StyleSheetRule",c[c.CanvasMutation=9]="CanvasMutation",c[c.Font=10]="Font",c[c.Log=11]="Log",c[c.Drag=12]="Drag",c[c.StyleDeclaration=13]="StyleDeclaration",(u=b||(b={}))[u.MouseUp=0]="MouseUp",u[u.MouseDown=1]="MouseDown",u[u.Click=2]="Click",u[u.ContextMenu=3]="ContextMenu",u[u.DblClick=4]="DblClick",u[u.Focus=5]="Focus",u[u.Blur=6]="Blur",u[u.TouchStart=7]="TouchStart",u[u.TouchMove_Departed=8]="TouchMove_Departed",u[u.TouchEnd=9]="TouchEnd",u[u.TouchCancel=10]="TouchCancel",(h=w||(w={}))[h["2D"]=0]="2D",h[h.WebGL=1]="WebGL",h[h.WebGL2=2]="WebGL2",(p=v||(v={}))[p.Play=0]="Play",p[p.Pause=1]="Pause",p[p.Seeked=2]="Seeked",p[p.VolumeChange=3]="VolumeChange",(f=k||(k={})).Start="start",f.Pause="pause",f.Resume="resume",f.Resize="resize",f.Finis
1h="finish",f.FullsnapshotRebuilded="fullsnapshot-rebuilded",f.LoadStylesheetStart="load-stylesheet-start",f.LoadStylesheetEnd="load-stylesheet-end",f.SkipStart="skip-start",f.SkipEnd="skip-end",f.MouseInteraction="mouse-interaction",f.EventCast="event-cast",f.CustomEvent="custom-event",f.Flush="flush",f.StateChange="state-change",f.PlayBack="play-back";let X="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",J={map:{},getId:()=>(console.error(X),-1),getNode:()=>(console.error(X),null),removeNodeFromMap(){console.error(X)},has:()=>(console.error(X),!1),reset(){console.error(X)}};function throttle$1(t,e,a={}){let n=null,r=0;return function(i){let s=Date.now();r||!1!==a.leading||(r=s);let o=e-(s-r),l=this,d=arguments;o<=0||o>e?(n&&(clearTimeout(n),n=null),r=s,t.apply(l,d)):n||!1===a.trailing||(n=setTimeout(()=>{r=!1===a.leading?0:Date.now(),n=null,t.apply(l,d)},o))}}function hookSetter(t,e,a,n,r=window){let i=r.Object.getOwnPropertyDescriptor(t,e);return r.Object.defineProperty(t,e,n?a:{set(t){setTimeout(()=>{a.set.call(this,t)},0),i&&i.set&&i.set.call(this,t)}}),()=>hookSetter(t,e,i||{},!0)}function patch(t,e,a){try{if(!(e in t))return()=>{};let n=t[e],r=a(n);return"function"==typeof r&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:n}})),t[e]=r,()=>{t[e]=n}}catch(t){return()=>{}}}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 isBlocked(t,e,a,n){if(!t)return!1;
1if(t.nodeType===t.ELEMENT_NODE){let r=!1,i=n&&t.matches(n);return"string"==typeof e?r=void 0!==t.closest?!i&&null!==t.closest("."+e):!i&&t.classList.contains(e):i||t.classList.forEach(t=>{e.test(t)&&(r=!0)}),!r&&a&&(r=t.matches(a)),!i&&r||isBlocked(t.parentNode,e,a,n)}return t.nodeType,t.TEXT_NODE,isBlocked(t.parentNode,e,a,n)}function isIgnored(t){return"__sn"in t&&-2===t.__sn.id}function isTouchEvent(t){return!!t.changedTouches}function isIframeINode(t){return"__sn"in t&&t.__sn.type===m.Element&&"iframe"===t.__sn.tagName}function hasShadowRoot(t){return!!(null==t?void 0:t.shadowRoot)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(J=new Proxy(J,{get:(t,e,a)=>("map"===e&&console.error(X),Reflect.get(t,e,a))}));let DoubleLinkedList=class DoubleLinkedList{constructor(){this.length=0,this.head=null}get(t){if(t>=this.length)throw Error("Position outside of list range");let e=this.head;for(let a=0;a<t;a++)e=(null==e?void 0:e.next)||null;return e}addNode(t){let e={value:t,previous:null,next:null};if(t.__ln=e,t.previousSibling&&"__ln"in t.previousSibling){let a=t.previousSibling.__ln.next;e.next=a,e.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=e,a&&(a.previous=e)}else if(t.nextSibling&&"__ln"in t.nextSibling&&t.nextSibling.__ln.previous){let a=t.nextSibling.__ln.previous;e.previous=a,e.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=e,a&&(a.next=e)}else this.head&&(this.head.previous=e),e.next=this.head,this.head=e;this.length++}removeNode(t){let e=t.__ln;this.head&&(e.previous?(e.previous.next=e.next,e.next&&(e.next.previous=e.previous)):(this.head=e.next,this.head&&(this.head.previous=null)),t.__ln&&delete t.__ln,this.length--)}};let moveKey=(t,e)=>`${t}@${e}`;let MutationBuffer=class MutationBuffer{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let t=[],e=new DoubleLinkedList,getNextId=t=>{let e=t,a=-2;for(;-2===a;)a=(e=e&&e.nextSibling)&&this.mirror.getId(e);return a},pushAdd=a=>{var n,r,i,s,o;let l=a.getRootNode?null===(n=a.getRootNode())||void 0===n?void 0:n.host:null,d=l;for(;null===(i=null===(r=null==d?void 0:d.getRootNode)||void 0===r?void 0:r.call(d))||void 0===i?void 0:i.host;)d=(null===(o=null===(s=null==d?void 0:d.getRootNode)||void 0===s?void 0:s.call(d))||void 0===o?void 0:o.host)||null;let c=!this.doc.contains(a)&&(!d||!this.doc.contains(d));if(!a.parentNode||c)return;let u=isShadowRoot(a.parentNode)?this.mirror.getId(l):this.mirror.getId(a.parentNode),h=getNextId(a);if(-1===u||-1===h)return e.addNode(a);let p=serializeNodeWithId(a,{doc:this.doc,map:this.mirror.map,blockClass:this.blockClass,blockSelector:this.blockSelector,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,skipChild:!0,inlineStylesheet:this.inlineStylesheet,maskAllText:this.maskAllText,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:t=>{isIframeINode(t)&&this.iframeManager.addIframe(t),hasShadowRoot(a)&&this.shadowDomManager.addShadowRoot(a.shadowRoot,document)},onIframeLoad:(t,e)=>{this.iframeManager.attachIframe(t,e),this.shadowDomManager.observeAttachShadow(t)}});p&&t.push({parentId:u,nextId:h,node:p})};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let t of this.movedSet)(!isParentRemoved(this.removes,t,this.mirror)||this.movedSet.has(t.parentNode))&&pushAdd(t);for(let t of this.addedSet)isAncestorInSet(this.droppedSet,t)||isParentRemoved(this.removes,t,this.mirror)?isAncestorInSet(this.movedSet,t)?pushAdd(t):this.droppedSet.add(t):pushAdd(t);let a=null;for(;e.length;){let t=null;if(a){let e=this.mirror.getId(a.value.parentNode),n=getNextId(a.value);-1!==e&&-1!==n&&(t=a)}if(!t)for(let a=e.length-1;a>=0;a--){let n=e.get(a);if(n){let e=this.mirror.getId(n.value.parentNode),a=getNextId(n.value);if(-1!==e&&-1!==a){t=n;break}}}if(!t){for(;e.head;)e.removeNode(e.head.value);break}a=t.previous,e.removeNode(t.value),pushAdd(t.value)}let n={texts:this.texts.map(t=>({id:this.mirror.getId(t.node),value:t.value})).filter(t=>this.mirror.has(t.id)),attributes:this.attributes.map(t=>({id:this.mirror.getId(t.node),attributes:t.attributes})).filter(t=>this.mirror.has(t.id)),removes:this.removes,adds:t};(n.texts.length||n.attributes.length||n.removes.length||n.adds.length)&&(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(n))},this.processMutation=t=>{if(!isIgnored(t.target))switch(t.type){case"characterData":{let e=t.target.textContent;isBlocked(t.target,this.blockClass,this.blockSelector,this.unblockSelector)||e===t.oldValue||this.texts.push({value:needMaskingText(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextSelector,this.maskAllText)&&e?this.maskTextFn?this.maskTextFn(e):e.replace(/[\S]/g,"*"):e,node:t.target});break}case"attributes":{let e=t.target,a=e.getAttribute(t.attributeName);if("value"===t.attributeName&&(a=maskInputValue({input:e,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:e.getAttribute("type"),value:a,maskInputFn:this.maskInputFn})),isBlocked(t.target,this.blockClass,this.blockSelector,this.unblockSelector)||a===t.oldValue)return;let n=this.attributes.find(e=>e.node===t.target);if(n||(n={node:t.target,attributes:{}},this.attributes.push(n)),"type"===t.attributeName&&"INPUT"===e.tagName&&"password"===(t.oldValue||"").toLowerCase()&&e.setAttribute("data-rr-is-password","true"),"style"===t.attributeName){let a=this.doc.createElement("span");t.oldValue&&a.setAttribute("style",t.oldValue),(void 0===n.attributes.style||null===n.attributes.style)&&(n.attributes.style={});try{let t=n.attributes.style;for(let n of Array.from(e.style)){let r=e.style.getPropertyValue(n),i=e.style.getPropertyPriority(n);(r!==a.style.getPropertyValue(n)||i!==a.style.getPropertyPriority(n))&&(""===i?t[n]=r:t[n]=[r,i])}for(let n of Array.from(a.style))""===e.style.getPropertyValue(n)&&(t[n]=!1)}catch(t){console.warn("[rrweb] Error when parsing update to style attribute:",t)}}else{let e=t.target;n.attributes[t.attributeName]=transformAttribute(this.doc,e,e.tagName,t.attributeName,a,this.maskAllText,this.unmaskTextSelector,this.maskTextFn)}break}
1case"childList":t.addedNodes.forEach(e=>this.genAdds(e,t.target)),t.removedNodes.forEach(e=>{let a=this.mirror.getId(e),n=isShadowRoot(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);isBlocked(t.target,this.blockClass,this.blockSelector,this.unblockSelector)||isIgnored(e)||(this.addedSet.has(e)?(deepDelete(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(t.target)&&-1===a||function isAncestorRemoved(t,e){if(isShadowRoot(t))return!1;let a=e.getId(t);return!e.has(a)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||isAncestorRemoved(t.parentNode,e))}(t.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[moveKey(a,n)]?deepDelete(this.movedSet,e):this.removes.push({parentId:n,id:a,isShadow:!!isShadowRoot(t.target)||void 0})),this.mapRemoves.push(e))})}},this.genAdds=(t,e)=>{if(!(e&&isBlocked(e,this.blockClass,this.blockSelector,this.unblockSelector))){if("__sn"in t){if(isIgnored(t))return;this.movedSet.add(t);let a=null;e&&"__sn"in e&&(a=e.__sn.id),a&&(this.movedMap[moveKey(t.__sn.id,a)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);isBlocked(t,this.blockClass,this.blockSelector,this.unblockSelector)||t.childNodes.forEach(t=>this.genAdds(t))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskTextClass","maskTextSelector","unmaskTextSelector","maskInputSelector","unmaskInputSelector","inlineStylesheet","maskAllText","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","shadowDomManager","canvasManager"].forEach(e=>{this[e]=t[e]})}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(t,e){t.delete(e),e.childNodes.forEach(e=>deepDelete(t,e))}function isParentRemoved(t,e,a){let{parentNode:n}=e;if(!n)return!1;let r=a.getId(n);return!!t.some(t=>t.id===r)||isParentRemoved(t,n,a)}function isAncestorInSet(t,e){let{parentNode:a}=e;return!!a&&(!!t.has(a)||isAncestorInSet(t,a))}let callbackWrapper=t=>(...e)=>{try{return t(...e)}catch(t){try{t.__rrweb__=!0}catch(t){}throw t}},Q=[];function getEventTarget(t){try{if("composedPath"in t){let e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch(t){}return t&&t.target}function initMutationObserver(t,e){var a,n;let r=new MutationBuffer;Q.push(r),r.init(t);let i=window.MutationObserver||window.__rrMutationObserver,s=null===(n=null===(a=null==window?void 0:window.Zone)||void 0===a?void 0:a.__symbol__)||void 0===n?void 0:n.call(a,"MutationObserver");s&&window[s]&&(i=window[s]);let o=new i(callbackWrapper(e=>{t.onMutation&&!1===t.onMutation(e)||r.processMutations(e)}));return o.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function initScrollObserver({scrollCb:t,doc:e,mirror:a,blockClass:n,blockSelector:r,unblockSelector:i,sampling:s}){let o=throttle$1(s=>{let o=getEventTarget(s);if(!o||isBlocked(o,n,r,i))return;let l=a.getId(o);if(o===e){let a=e.scrollingElement||e.documentElement;callbackWrapper(t)({id:l,x:a.scrollLeft,y:a.scrollTop})}else callbackWrapper(t)({id:l,x:o.scrollLeft,y:o.scrollTop})},s.scroll||100);return on("scroll",callbackWrapper(o),e)}function wrapEventWithUserTriggeredFlag(t,e){let a=Object.assign({},t);return e||delete a.userTriggered,a}let tt=["INPUT","TEXTAREA","SELECT"],te=new WeakMap;function getNestedCSSRulePositions(t){return function(t,e){if(hasNestedCSSRule("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||hasNestedCSSRule("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||hasNestedCSSRule("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||hasNestedCSSRule("CSSConditionRule")&&t.parentRule instanceof CSSConditionRule){let a=Array.from(t.parentRule.cssRules),n=a.indexOf(t);e.unshift(n)}else{let a=Array.from(t.parentStyleSheet.cssRules),n=a.indexOf(t);e.unshift(n)}return e}(t,[])}function initObservers(t,e={}){let a=t.doc.defaultView;if(!a)return()=>{};
1!function(t,e){let{mutationCb:a,mousemoveCb:n,mouseInteractionCb:r,scrollCb:i,viewportResizeCb:s,inputCb:o,mediaInteractionCb:l,styleSheetRuleCb:d,styleDeclarationCb:c,canvasMutationCb:u,fontCb:h}=t;t.mutationCb=(...t)=>{e.mutation&&e.mutation(...t),a(...t)},t.mousemoveCb=(...t)=>{e.mousemove&&e.mousemove(...t),n(...t)},t.mouseInteractionCb=(...t)=>{e.mouseInteraction&&e.mouseInteraction(...t),r(...t)},t.scrollCb=(...t)=>{e.scroll&&e.scroll(...t),i(...t)},t.viewportResizeCb=(...t)=>{e.viewportResize&&e.viewportResize(...t),s(...t)},t.inputCb=(...t)=>{e.input&&e.input(...t),o(...t)},t.mediaInteractionCb=(...t)=>{e.mediaInteaction&&e.mediaInteaction(...t),l(...t)},t.styleSheetRuleCb=(...t)=>{e.styleSheetRule&&e.styleSheetRule(...t),d(...t)},t.styleDeclarationCb=(...t)=>{e.styleDeclaration&&e.styleDeclaration(...t),c(...t)},t.canvasMutationCb=(...t)=>{e.canvasMutation&&e.canvasMutation(...t),u(...t)},t.fontCb=(...t)=>{e.font&&e.font(...t),h(...t)}}(t,e);let n=initMutationObserver(t,t.doc),r=function({mousemoveCb:t,sampling:e,doc:a,mirror:n}){let r;if(!1===e.mousemove)return()=>{};let i="number"==typeof e.mousemove?e.mousemove:50,s="number"==typeof e.mousemoveCallback?e.mousemoveCallback:500,o=[],l=throttle$1(e=>{let a=Date.now()-r;callbackWrapper(t)(o.map(t=>(t.timeOffset-=a,t)),e),o=[],r=null},s),d=throttle$1(t=>{let e=getEventTarget(t),{clientX:a,clientY:i}=isTouchEvent(t)?t.changedTouches[0]:t;r||(r=Date.now()),o.push({x:a,y:i,id:n.getId(e),timeOffset:Date.now()-r}),l("undefined"!=typeof DragEvent&&t instanceof DragEvent?y.Drag:t instanceof MouseEvent?y.MouseMove:y.TouchMove)},i,{trailing:!1}),c=[on("mousemove",callbackWrapper(d),a),on("touchmove",callbackWrapper(d),a),on("drag",callbackWrapper(d),a)];return callbackWrapper(()=>{c.forEach(t=>t())})}(t),i=function({mouseInteractionCb:t,doc:e,mirror:a,blockClass:n,blockSelector:r,unblockSelector:i,sampling:s}){if(!1===s.mouseInteraction)return()=>{};let o=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,l=[],getHandler=e=>s=>{let o=getEventTarget(s);if(isBlocked(o,n,r,i))return;let l=isTouchEvent(s)?s.changedTouches[0]:s;if(!l)return;let d=a.getId(o),{clientX:c,clientY:u}=l;callbackWrapper(t)({type:b[e],id:d,x:c,y:u})};return Object.keys(b).filter(t=>Number.isNaN(Number(t))&&!t.endsWith("_Departed")&&!1!==o[t]).forEach(t=>{let a=t.toLowerCase(),n=callbackWrapper(getHandler(t));l.push(on(a,n,e))}),callbackWrapper(()=>{l.forEach(t=>t())})}(t),s=initScrollObserver(t),o=function({viewportResizeCb:t}){let e=-1,a=-1,n=throttle$1(()=>{let n=getWindowHeight(),r=getWindowWidth();(e!==n||a!==r)&&(callbackWrapper(t)({width:Number(r),height:Number(n)}),e=n,a=r)},200);return on("resize",callbackWrapper(n),window)}(t),l=function({inputCb:t,doc:e,mirror:a,blockClass:n,blockSelector:r,unblockSelector:i,ignoreClass:s,ignoreSelector:o,maskInputSelector:l,unmaskInputSelector:d,maskInputOptions:c,maskInputFn:u,sampling:h,userTriggeredOnInput:p}){function eventHandler(t){let a=getEventTarget(t),h=a&&a.tagName,f=t.isTrusted;if("OPTION"===h&&(a=a.parentElement),!a||!h||0>tt.indexOf(h)||isBlocked(a,n,r,i))return;let _=a,m=getInputType(_);if(_.classList.contains(s)||o&&_.matches(o))return;let g=getInputValue(_,h,m),y=!1;("radio"===m||"checkbox"===m)&&(y=a.checked),function({tagName:t,type:e,maskInputOptions:a,maskInputSelector:n}){return n||isInputTypeMasked({maskInputOptions:a,tagName:t,type:e})}({maskInputOptions:c,maskInputSelector:l,tagName:h,type:m})&&(g=maskInputValue({input:_,maskInputOptions:c,maskInputSelector:l,unmaskInputSelector:d,tagName:h,type:m,value:g,maskInputFn:u})),cbWithDedup(a,callbackWrapper(wrapEventWithUserTriggeredFlag)({text:g,isChecked:y,userTriggered:f},p));let b=a.name;"radio"===m&&b&&y&&e.querySelectorAll(`input[type="radio"][name="${b}"]`).forEach(t=>{if(t!==a){let e=maskInputValue({input:t,maskInputOptions:c,maskInputSelector:l,unmaskInputSelector:d,tagName:h,type:m,value:getInputValue(t,h,m),maskInputFn:u});cbWithDedup(t,callbackWrapper(wrapEventWithUserTriggeredFlag)({text:e,isChecked:!y,userTriggered:!1},p))}})}function cbWithDedup(e,n){let r=te.get(e);if(!r||r.text!==n.text||r.isChecked!==n.isChecked){te.set(e,n);let r=a.getId(e);t(Object.assign(Object.assign({},n),{id:r}))}}let f="last"===h.input?["change"]:["input","change"],_=f.map(t=>on(t,callbackWrapper(eventHandler),e)),m=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),g=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return m&&m.set&&_.push(...g.map(t=>hookSetter(t[0],t[1],{set(){callbackWrapper(eventHandler)({target:this})}}))),callbackWrapper(()=>{_.forEach(t=>t())})}(t),d=function({mediaInteractionCb:t,blockClass:e,blockSelector:a,unblockSelector:n,mirror:r,sampling:i}){let handler=s=>throttle$1(callbackWrapper(i=>{let o=getEventTarget(i);if(!o||isBlocked(o,e,a,n))return;let{currentTime:l,volume:d,muted:c}=o;t({type:s,id:r.getId(o),currentTime:l,volume:d,muted:c})}),i.media||500),s=[on("play",handler(0)),on("pause",handler(1)),on("seeked",handler(2)),on("volumechange",handler(3))];return callbackWrapper(()=>
1{s.forEach(t=>t())})}(t),c=function({styleSheetRuleCb:t,mirror:e},{win:a}){if(!a.CSSStyleSheet||!a.CSSStyleSheet.prototype)return()=>{};let n=a.CSSStyleSheet.prototype.insertRule;a.CSSStyleSheet.prototype.insertRule=new Proxy(n,{apply:callbackWrapper((a,n,r)=>{let[i,s]=r,o=e.getId(n.ownerNode);return -1!==o&&t({id:o,adds:[{rule:i,index:s}]}),a.apply(n,r)})});let r=a.CSSStyleSheet.prototype.deleteRule;a.CSSStyleSheet.prototype.deleteRule=new Proxy(r,{apply:callbackWrapper((a,n,r)=>{let[i]=r,s=e.getId(n.ownerNode);return -1!==s&&t({id:s,removes:[{index:i}]}),a.apply(n,r)})});let i={};canMonkeyPatchNestedCSSRule("CSSGroupingRule")?i.CSSGroupingRule=a.CSSGroupingRule:(canMonkeyPatchNestedCSSRule("CSSMediaRule")&&(i.CSSMediaRule=a.CSSMediaRule),canMonkeyPatchNestedCSSRule("CSSConditionRule")&&(i.CSSConditionRule=a.CSSConditionRule),canMonkeyPatchNestedCSSRule("CSSSupportsRule")&&(i.CSSSupportsRule=a.CSSSupportsRule));let s={};return Object.entries(i).forEach(([a,n])=>{s[a]={insertRule:n.prototype.insertRule,deleteRule:n.prototype.deleteRule},n.prototype.insertRule=new Proxy(s[a].insertRule,{apply:callbackWrapper((a,n,r)=>{let[i,s]=r,o=e.getId(n.parentStyleSheet.ownerNode);return -1!==o&&t({id:o,adds:[{rule:i,index:[...getNestedCSSRulePositions(n),s||0]}]}),a.apply(n,r)})}),n.prototype.deleteRule=new Proxy(s[a].deleteRule,{apply:callbackWrapper((a,n,r)=>{let[i]=r,s=e.getId(n.parentStyleSheet.ownerNode);return -1!==s&&t({id:s,removes:[{index:[...getNestedCSSRulePositions(n),i]}]}),a.apply(n,r)})})}),callbackWrapper(()=>{a.CSSStyleSheet.prototype.insertRule=n,a.CSSStyleSheet.prototype.deleteRule=r,Object.entries(i).forEach(([t,e])=>{e.prototype.insertRule=s[t].insertRule,e.prototype.deleteRule=s[t].deleteRule})})}(t,{win:a}),u=function({styleDeclarationCb:t,mirror:e},{win:a}){let n=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(n,{apply:callbackWrapper((a,n,r)=>{var i,s;let[o,l,d]=r,c=e.getId(null===(s=null===(i=n.parentRule)||void 0===i?void 0:i.parentStyleSheet)||void 0===s?void 0:s.ownerNode);return -1!==c&&t({id:c,set:{property:o,value:l,priority:d},index:getNestedCSSRulePositions(n.parentRule)}),a.apply(n,r)})});let r=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(r,{apply:callbackWrapper((a,n,r)=>{var i,s;let[o]=r,l=e.getId(null===(s=null===(i=n.parentRule)||void 0===i?void 0:i.parentStyleSheet)||void 0===s?void 0:s.ownerNode);return -1!==l&&t({id:l,remove:{property:o},index:getNestedCSSRulePositions(n.parentRule)}),a.apply(n,r)})}),callbackWrapper(()=>{a.CSSStyleDeclaration.prototype.setProperty=n,a.CSSStyleDeclaration.prototype.removeProperty=r})}(t,{win:a}),h=t.collectFonts?function({fontCb:t,doc:e}){let a=e.defaultView;if(!a)return()=>{};let n=[],r=new WeakMap,i=a.FontFace;a.FontFace=function(t,e,a){let n=new i(t,e,a);return r.set(n,{family:t,buffer:"string"!=typeof e,descriptors:a,fontSource:"string"==typeof e?e:JSON.stringify(Array.from(new Uint8Array(e)))}),n};let s=patch(e.fonts,"add",function(e){return function(a){return setTimeout(()=>{let e=r.get(a);e&&(t(e),r.delete(a))},0),e.apply(this,[a])}});return n.push(()=>{a.FontFace=i}),n.push(s),callbackWrapper(()=>{n.forEach(t=>t())})}(t):()=>{},p=[];for(let e of t.plugins)p.push(e.observer(e.callback,a,e.options));return callbackWrapper(()=>{Q.forEach(t=>t.reset()),n.disconnect(),r(),i(),s(),o(),l(),d();try{c(),u()}catch(t){}h(),p.forEach(t=>t())})}function hasNestedCSSRule(t){return void 0!==window[t]}function canMonkeyPatchNestedCSSRule(t){return!!(void 0!==window[t]&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}let IframeManager=class IframeManager{constructor(t){this.iframes=new WeakMap,this.mutationCb=t.mutationCb}addIframe(t){this.iframes.set(t,!0)}addLoadListener(t){this.loadListener=t}attachIframe(t,e){var a;this.mutationCb({adds:[{parentId:t.__sn.id,nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(a=this.loadListener)||void 0===a||a.call(this,t)}};let ShadowDomManager=class ShadowDomManager{constructor(t){this.restorePatches=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror;let e=this;this.restorePatches.push(patch(HTMLElement.prototype,"attachShadow",function(t){return function(){let a=t.apply(this,arguments);return this.shadowRoot&&e.addShadowRoot(this.shadowRoot,this.ownerDocument),a}}))}addShadowRoot(t,e){initMutationObserver(Object.assign(Object.assign({},this.bypassOptions),{doc:e,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t),initScrollObserver(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))}observeAttachShadow(t){if(t.contentWindow){let e=this;this.restorePatches.push(patch(t.contentWindow.HTMLElement.prototype,"attachShadow",function(a){return function(){let n=a.apply(this,arguments);return this.shadowRoot&&e.addShadowRoot(this.shadowRoot,t.contentDocument),n}}))}}
1reset(){this.restorePatches.forEach(t=>t())}};for(var ta="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tn="undefined"==typeof Uint8Array?[]:new Uint8Array(256),tr=0;tr<ta.length;tr++)tn[ta.charCodeAt(tr)]=tr;var encode=function(t){var e,a=new Uint8Array(t),n=a.length,r="";for(e=0;e<n;e+=3)r+=ta[a[e]>>2]+ta[(3&a[e])<<4|a[e+1]>>4]+ta[(15&a[e+1])<<2|a[e+2]>>6]+ta[63&a[e+2]];return n%3==2?r=r.substring(0,r.length-1)+"=":n%3==1&&(r=r.substring(0,r.length-2)+"=="),r};let ti=new Map,saveWebGLVar=(t,e,a)=>{let n;if(!t||!(isInstanceOfWebGLObject(t,e)||"object"==typeof t))return;let r=t.constructor.name,i=((n=ti.get(a))||(n=new Map,ti.set(a,n)),n.has(r)||n.set(r,[]),n.get(r)),s=i.indexOf(t);return -1===s&&(s=i.length,i.push(t)),s},serializeArgs=(t,e,a)=>[...t].map(t=>(function serializeArg(t,e,a){if(t instanceof Array)return t.map(t=>serializeArg(t,e,a));if(null===t);else if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray){let e=t.constructor.name;return{rr_type:e,args:[Object.values(t)]}}else if(t instanceof ArrayBuffer){let e=t.constructor.name,a=encode(t);return{rr_type:e,base64:a}}else if(t instanceof DataView){let n=t.constructor.name;return{rr_type:n,args:[serializeArg(t.buffer,e,a),t.byteOffset,t.byteLength]}}else if(t instanceof HTMLImageElement){let e=t.constructor.name,{src:a}=t;return{rr_type:e,src:a}}else if(t instanceof ImageData){let n=t.constructor.name;return{rr_type:n,args:[serializeArg(t.data,e,a),t.width,t.height]}}else if(isInstanceOfWebGLObject(t,e)||"object"==typeof t){let n=t.constructor.name,r=saveWebGLVar(t,e,a);return{rr_type:n,index:r}}return t})(t,e,a)),isInstanceOfWebGLObject=(t,e)=>{let a=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(t=>"function"==typeof e[t]);return!!a.find(a=>t instanceof e[a])};function patchGLPrototype(t,e,a,n,r,i,s,o){let l=[],d=Object.getOwnPropertyNames(t);for(let c of d)try{if("function"!=typeof t[c])continue;let d=patch(t,c,function(l){return function(...d){let u=l.apply(this,d);if(saveWebGLVar(u,o,t),!isBlocked(this.canvas,n,i,r)){s.getId(this.canvas);
1let n=serializeArgs([...d],o,t),r={type:e,property:c,args:n};a(this.canvas,r)}return u}});l.push(d)}catch(r){let n=hookSetter(t,c,{set(t){a(this.canvas,{type:e,property:c,args:[t],setter:!0})}});l.push(n)}return l}let CanvasManager=class 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(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(t,e){let a=this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId;(a||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(t)||this.pendingCanvasMutations.set(t,[]),this.pendingCanvasMutations.get(t).push(e)},this.mutationCb=t.mutationCb,this.mirror=t.mirror,!0===t.recordCanvas&&this.initCanvasMutationObserver(t.win,t.blockClass,t.blockSelector,t.unblockSelector)}initCanvasMutationObserver(t,e,a,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let r=function(t,e,a,n){let r=[];try{let i=patch(t.HTMLCanvasElement.prototype,"getContext",function(t){return function(r,...i){return isBlocked(this,e,a,n)||"__context"in this||(this.__context=r),t.apply(this,[r,...i])}});r.push(i)}catch(t){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{r.forEach(t=>t())}}(t,e,n,a),i=function(t,e,a,n,r,i){let s=[],o=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(let i of o)try{if("function"!=typeof e.CanvasRenderingContext2D.prototype[i])continue;let o=patch(e.CanvasRenderingContext2D.prototype,i,function(e){return function(...s){return isBlocked(this.canvas,a,r,n)||setTimeout(()=>{let e=[...s];if("drawImage"===i&&e[0]&&e[0]instanceof HTMLCanvasElement){let t=e[0],a=t.getContext("2d"),n=null==a?void 0:a.getImageData(0,0,t.width,t.height),r=null==n?void 0:n.data;e[0]=JSON.stringify(r)}t(this.canvas,{type:w["2D"],property:i,args:e})},0),e.apply(this,s)}});s.push(o)}catch(n){let a=hookSetter(e.CanvasRenderingContext2D.prototype,i,{set(e){t(this.canvas,{type:w["2D"],property:i,args:[e],setter:!0})}});s.push(a)}return()=>{s.forEach(t=>t())}}(this.processMutation.bind(this),t,e,n,a,this.mirror),s=function(t,e,a,n,r,i){let s=[];return s.push(...patchGLPrototype(e.WebGLRenderingContext.prototype,w.WebGL,t,a,n,r,i,e)),void 0!==e.WebGL2RenderingContext&&s.push(...patchGLPrototype(e.WebGL2RenderingContext.prototype,w.WebGL2,t,a,n,r,i,e)),()=>{s.forEach(t=>t())}}(this.processMutation.bind(this),t,e,n,a,this.mirror);this.resetObservers=()=>{r(),i(),s()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let setLatestRAFTimestamp=t=>{this.rafStamps.latestId=t,requestAnimationFrame(setLatestRAFTimestamp)};requestAnimationFrame(setLatestRAFTimestamp)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,e)=>{let a=this.mirror.getId(e);this.flushPendingCanvasMutationFor(e,a)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,e){if(this.frozen||this.locked)return;let a=this.pendingCanvasMutations.get(t);if(!a||-1===e)return;let n=a.map(t=>{let e=function(t,e){var a={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(a[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(t);r<n.length;r++)0>e.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(a[n[r]]=t[n[r]]);return a}(t,["type"]);return e}),{type:r}=a[0];this.mutationCb({id:e,type:r,commands:n}),this.pendingCanvasMutations.delete(t)}};function wrapEvent(t){return Object.assign(Object.assign({},t),{timestamp:Date.now()})}let ts={map:{},getId:t=>t&&t.__sn?t.__sn.id:-1,getNode(t){return this.map[t]||null},removeNodeFromMap(t){let e=t.__sn&&t.__sn.id;delete this.map[e],t.childNodes&&t.childNodes.forEach(t=>this.removeNodeFromMap(t))},has(t){return this.map.hasOwnProperty(t)},reset(){this.map={}}};function record(t={}){let e;let{emit:a,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:l=null,unblockSelector:d=null,ignoreClass:c="rr-ignore",ignoreSelector:u=null,maskTextClass:h="rr-mask",maskTextSelector:p=null,maskInputSelector:f=null,unmaskTextSelector:_=null,unmaskInputSelector:m=null,inlineStylesheet:b=!0,maskAllText:w=!1,maskAllInputs:v,maskInputOptions:k,slimDOMOptions:S,maskInputFn:E,maskTextFn:R,hooks:x,packFn:T,sampling:C={},mousemoveWait:A,recordCanvas:I=!1,userTriggeredOnInput:N=!1,collectFonts:D=!1,inl
1ineImages:z=!1,plugins:O,keepIframeSrcFn:M=()=>!1,onMutation:L}=t;if(!a)throw Error("emit function is required");void 0!==A&&void 0===C.mousemove&&(C.mousemove=A);let B=!0===v?{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,radio:!0,checkbox:!0}:void 0!==k?k:{},U=!0===S||"all"===S?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===S,headMetaDescKeywords:"all"===S}:S||{};!function(t=window){"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(t){if(!(0 in arguments))throw TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode);return!1})}();let F=0,eventProcessor=t=>{for(let e of O||[])e.eventProcessor&&(t=e.eventProcessor(t));return T&&(t=T(t)),t};i=(t,i)=>{var o;if((null===(o=Q[0])||void 0===o?void 0:o.isFrozen())&&t.type!==g.FullSnapshot&&!(t.type===g.IncrementalSnapshot&&t.data.source===y.Mutation)&&Q.forEach(t=>t.unfreeze()),a(eventProcessor(t),i),t.type===g.FullSnapshot)e=t,F=0;else if(t.type===g.IncrementalSnapshot){if(t.data.source===y.Mutation&&t.data.isAttachIframe)return;F++;let a=r&&F>=r,i=n&&t.timestamp-e.timestamp>n;(a||i)&&s(!0)}};let wrappedMutationEmit=t=>{i(wrapEvent({type:g.IncrementalSnapshot,data:Object.assign({source:y.Mutation},t)}))},wrappedScrollEmit=t=>i(wrapEvent({type:g.IncrementalSnapshot,data:Object.assign({source:y.Scroll},t)})),wrappedCanvasMutationEmit=t=>i(wrapEvent({type:g.IncrementalSnapshot,data:Object.assign({source:y.CanvasMutation},t)})),P=new IframeManager({mutationCb:wrappedMutationEmit}),W=new CanvasManager({recordCanvas:I,mutationCb:wrappedCanvasMutationEmit,win:window,blockClass:o,blockSelector:l,unblockSelector:d,mirror:ts}),H=new ShadowDomManager({mutationCb:wrappedMutationEmit,scrollCb:wrappedScrollEmit,bypassOptions:{onMutation:L,blockClass:o,blockSelector:l,unblockSelector:d,maskTextClass:h,maskTextSelector:p,unmaskTextSelector:_,maskInputSelector:f,unmaskInputSelector:m,inlineStylesheet:b,maskAllText:w,maskInputOptions:B,maskTextFn:R,maskInputFn:E,recordCanvas:I,inlineImages:z,sampling:C,slimDOMOptions:U,iframeManager:P,canvasManager:W},mirror:ts});s=(t=!1)=>{var e,a,n,r;i(wrapEvent({type:g.Meta,data:{href:window.location.href,width:getWindowWidth(),height:getWindowHeight()}}),t),Q.forEach(t=>t.lock());let[s,c]=function(t,e){let{blockClass:a="rr-block",blockSelector:n=null,unblockSelector:r=null,maskTextClass:i="rr-mask",maskTextSelector:s=null,unmaskTextSelector:o=null,inlineStylesheet:l=!0,inlineImages:d=!1,recordCanvas:c=!1,maskInputSelector:u=null,unmaskInputSelector:h=null,maskAllText:p=!1,maskAllInputs:f=!1,maskTextFn:_,maskInputFn:m,slimDOM:g=!1,dataURLOptions:y,preserveWhiteSpace:b,onSerialize:w,onIframeLoad:v,iframeLoadTimeout:k,keepIframeSrcFn:S=()=>!1}=e||{},E={},R=!0===f?{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}:!1===f?{}:f,x=!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===g,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===g?{}:g;return[serializeNodeWithId(t,{doc:t,map:E,blockClass:a,blockSelector:n,unblockSelector:r,maskTextClass:i,maskTextSelector:s,unmaskTextSelector:o,skipChild:!1,inlineStylesheet:l,maskInputSelector:u,unmaskInputSelector:h,maskAllText:p,maskInputOptions:R,maskTextFn:_,maskInputFn:m,slimDOMOptions:x,dataURLOptions:y,inlineImages:d,recordCanvas:c,preserveWhiteSpace:b,onSerialize:w,onIframeLoad:v,iframeLoadTimeout:k,keepIframeSrcFn:S}),E]}(document,{blockClass:o,blockSelector:l,unblockSelector:d,maskTextClass:h,maskTextSelector:p,unmaskTextSelector:_,maskInputSelector:f,unmaskInputSelector:m,inlineStylesheet:b,maskAllText:w,maskAllInputs:B,maskTextFn:R,slimDOM:U,recordCanvas:I,inlineImages:z,onSerialize:t=>{isIframeINode(t)&&P.addIframe(t),hasShadowRoot(t)&&H.addShadowRoot(t.shadowRoot,document)},onIframeLoad:(t,e)=>{P.attachIframe(t,e),H.observeAttachShadow(t)},keepIframeSrcFn:M});if(!s)return console.warn("Failed to snapshot the document");ts.map=c,i(wrapEvent({type:g.FullSnapshot,data:{node:s,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null==document?void 0:document.documentElement.scrollLeft)||(null===(a=null===(e=null==document?void 0:document.body)||void 0===e?void 0:e.parentElement)||void 0===a?void 0:a.scrollLeft)||(null==document?void 0:document.body.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null==document?void 0:document.documentElement.scrollTop)||(null===(r=null===(n=null==document?void 0:document.body)||void 0===n?void 0:n.parentElement)||void 0===r?void 0:r.scrollTop)||(null==document?void 0:document.body.scrollTop)||0}}})),Q.forEach(t=>t.unlock())};try{let t=[];t.push(on("DOMContentLoaded",()=>{i(wrapEvent({type:g.DomContentLoaded,data:{}}))}
1));let observe=t=>{var e;return callbackWrapper(initObservers)({onMutation:L,mutationCb:wrappedMutationEmit,mousemoveCb:(t,e)=>i(wrapEvent({type:g.IncrementalSnapshot,data:{source:e,positions:t}})),mouseInteractionCb:t=>i(wrapEvent({type:g.IncrementalSnapshot,data:Object.assign({source:y.MouseInteraction},t)})),scrollCb:wrappedScrollEmit,viewportResizeCb:t=>i(wrapEvent({type:g.IncrementalSnapshot,data:Object.assign({source:y.ViewportResize},t)})),inputCb:t=>i(wrapEvent({type:g.IncrementalSnapshot,data:Object.assign({source:y.Input},t)})),mediaInteractionCb:t=>i(wrapEvent({type:g.IncrementalSnapshot,data:Object.assign({source:y.MediaInteraction},t)})),styleSheetRuleCb:t=>i(wrapEvent({type:g.IncrementalSnapshot,data:Object.assign({source:y.StyleSheetRule},t)})),styleDeclarationCb:t=>i(wrapEvent({type:g.IncrementalSnapshot,data:Object.assign({source:y.StyleDeclaration},t)})),canvasMutationCb:wrappedCanvasMutationEmit,fontCb:t=>i(wrapEvent({type:g.IncrementalSnapshot,data:Object.assign({source:y.Font},t)})),blockClass:o,ignoreClass:c,ignoreSelector:u,maskTextClass:h,maskTextSelector:p,unmaskTextSelector:_,maskInputSelector:f,unmaskInputSelector:m,maskInputOptions:B,inlineStylesheet:b,sampling:C,recordCanvas:I,inlineImages:z,userTriggeredOnInput:N,collectFonts:D,doc:t,maskAllText:w,maskInputFn:E,maskTextFn:R,blockSelector:l,unblockSelector:d,slimDOMOptions:U,mirror:ts,iframeManager:P,shadowDomManager:H,canvasManager:W,plugins:(null===(e=null==O?void 0:O.filter(t=>t.observer))||void 0===e?void 0:e.map(t=>({observer:t.observer,options:t.options,callback:e=>i(wrapEvent({type:g.Plugin,data:{plugin:t.name,payload:e}}))})))||[]},x)};P.addLoadListener(e=>{try{t.push(observe(e.contentDocument))}catch(t){console.warn(t)}});let init=()=>{s(),t.push(observe(document))};return"interactive"===document.readyState||"complete"===document.readyState?init():t.push(on("load",()=>{i(wrapEvent({type:g.Load,data:{}})),init()},window)),()=>{t.forEach(t=>t())}}catch(t){console.warn(t)}}function addBreadcrumbEvent(t,e){"sentry.transaction"!==e.category&&(["ui.click","ui.input"].includes(e.category)?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate(()=>(t.throttledAddEvent({type:g.Custom,timestamp:1e3*(e.timestamp||0),data:{tag:"breadcrumb",payload:(0,A.Fv)(e,10,1e3)}}),"console"===e.category)))}function getClickTargetNode(t){let e=getTargetNode(t);if(!e||!(e instanceof Element))return e;let a=e.closest("button,a");return a||e}function getTargetNode(t){return"object"==typeof t&&t&&"target"in t?t.target:t}record.addCustomEvent=(t,e)=>{if(!i)throw Error("please add custom event after start recording");i(wrapEvent({type:g.Custom,data:{tag:t,payload:e}}))},record.freezePage=()=>{Q.forEach(t=>t.freeze())},record.takeFullSnapshot=t=>{if(!s)throw Error("please take full snapshot after start recording");s(t)},record.mirror=ts;let ClickDetector=class ClickDetector{__init(){this._lastMutation=0}__init2(){this._lastScroll=0}__init3(){this._clicks=[]}constructor(t,e,a=addBreadcrumbEvent){ClickDetector.prototype.__init.call(this),ClickDetector.prototype.__init2.call(this),ClickDetector.prototype.__init3.call(this),this._timeout=e.timeout/1e3,this._multiClickTimeout=e.multiClickTimeout/1e3,this._threshold=e.threshold/1e3,this._scollTimeout=e.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=e.ignoreSelector,this._addBreadcrumbEvent=a}addListeners(){var t;let scrollHandler=()=>{this._lastScroll=nowInSeconds()},e=(t=()=>{this._lastMutation=nowInSeconds()},o||(o=[],(0,I.hl)(P,"open",function(t){return function(...e){if(o)try{o.forEach(t=>t())}catch(t){}return t.apply(P,e)}})),o.push(t),()=>{let e=o?o.indexOf(t):-1;e>-1&&o.splice(e,1)}),clickHandler=t=>{if(!t.target)return;let e=getClickTargetNode(t);e&&this._handleMultiClick(e)},a=new MutationObserver(()=>{this._lastMutation=nowInSeconds()});a.observe(P.document.documentElement,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),P.addEventListener("scroll",scrollHandler,{passive:!0}),P.addEventListener("click",clickHandler,{passive:!0}),this._teardown=()=>{P.removeEventListener("scroll",scrollHandler),P.removeEventListener("click",clickHandler),e(),a.disconnect(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,e){var a;if(a=this._ignoreSelector,!to.includes(e.tagName)||"INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||"")||"A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target"))||a&&e.matches(a)||!(t.data&&"number"==typeof t.data.nodeId&&t.timestamp))return;let n=this._getClick(e);if(n)return;let r={timestamp:t.timestamp,clickBreadcrumb:t,clickCount:0,node:e};this._clicks.push(r),1===this._clicks.length&&this._scheduleCheckClicks()}_handleMultiClick(t){let e=this._getClick(t);e&&e.clickCount++}_getClick(t){let e=nowInSeconds();return this._clicks.find(a=>a.node===t&&e-a.timestamp<this._multiClickTimeout)}_checkClicks(){let t=[],e=nowInSeconds();for(let a of(this._clicks.forEach(a=>{!a.mutationAfter&&this._lastMutation&&(a.mutationAfter=a.timestamp<=this._lastMutation?this._lastMutation-a.timestamp:void 0),!a.scrollAfter&&this._lastScroll&&(a.scrollAfter=a.timestamp<=this._lastScroll?this._lastScroll-a.timestamp:void 0);let n=a.scrollAfter||a.mutationAfter||0;if(n&&n>=this._multiClickTimeout){t.push(a);return}a.timestamp+this._timeout<=e&&t.push(a)}),t)){this._generateBreadcrumbs(a);let t=this._clicks.indexOf(a);-1!==t&&this._clicks.splice(t,1)}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){let e=this._replay,a=t.scrollAfter&&t.scrollAfter<=this._scollTimeout,n=t.mutationAfter&&t.mutationAfter<=this._threshold,{clickCount:r,clickBreadcrumb:i}=t;if(!a&&!n){let a=1e3*Math.min(t.mutationAfter||this._timeout,this._timeout),n=a<1e3*this._timeout?"mutation":"timeout",s={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.slowClickDetected",data:{...i.data,url:P.location.href,route:e.getCurrentRoute(),timeAfterClickMs:a,endReason:n,clickCount:r||1}};this._addBreadcrumbEvent(e,s);return}if(r>1){let t={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:P.location.href,route:e.getCurrentRoute(),clickCount:r,metric:!0}};this._addBreadcrumbEvent(e,t)}}_scheduleCheckClicks(){this._checkClickTimeout=setTimeout(()=>this._checkClicks(),1e3)}};let to=["A","BUTTON","INPUT"];function nowInSeconds(){return Date.now()/1e3}function createBreadcrumb(t){return{timestamp:Date.now()/1e3,type:"default",...t}}(_=S||(S={}))[_.Document=0]="Document",_[_.DocumentType=1]="DocumentType",_[_.Element=2]="Element",_[_.Text=3]="Text",_[_.CDATA=4]="CDATA",_[_.Comment=5]="Comment";let tl=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled"]),handleDomListener=t=>e=>{if(!t.isEnabled())return;let a=function(t){let{target:e,message:a}=function(t){let e;let a="click"===t.name,n=null;try{n=a?getClickTargetNode(t.event):getTargetNode(t.event),e=(0,N.Rt)(n,{maxStringLength:200})||"<unknown>"}catch(t){e="<unknown>"}return{target:n,message:e}}(t);return createBreadcrumb({category:`ui.${t.name}`,...getBaseDomBreadcrumb(e,a)})}(e);if(!a)return;let n="click"===e.name,r=n&&e.event;n&&t.clickDetector&&r&&!r.altKey&&!r.metaKey&&!r.ctrlKey&&function(t,e,a){t.handleClick(e,a)}(t.clickDetector,a,getClickTargetNode(e.event)),addBreadcrumbEvent(t,a)};function getBaseDomBreadcrumb(t,e){let a=t&&"__sn"in t&&t.__sn.type===S.Element?t.__sn:null;return{message:e,data:a?{nodeId:a.id,node:{id:a.id,tagName:a.tagName,textContent:t?Array.from(t.childNodes).map(t=>
1"__sn"in t&&t.__sn.type===S.Text&&t.__sn.textContent).filter(Boolean).map(t=>t.trim()).join(""):"",attributes:function(t){let e={};for(let a in t)if(tl.has(a)){let n=a;("data-testid"===a||"data-test-id"===a)&&(n="testId"),e[n]=t[a]}return e}(a.attributes)}}:{}}}let td=["name","type","startTime","transferSize","duration"];function isNavigationEntryEqual(t){return function(e){return td.every(a=>t[a]===e[a])}}let tc=`/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */
2function t(t){let e=t.length;for(;--e>=0;)t[e]=0}const e=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),a=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),i=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),n=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=new Array(576);t(s);const r=new Array(60);t(r);const o=new Array(512);t(o);const l=new Array(256);t(l);const h=new Array(29);t(h);const d=new Array(30);function _(t,e,a,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=i,this.max_length=n,this.has_stree=t&&t.length}let f,c,u;function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}t(d);const m=t=>t<256?o[t]:o[256+(t>>>7)],b=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},g=(t,e,a)=>{t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,b(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},p=(t,e,a)=>{g(t,a[2*e],a[2*e+1])},k=(t,e)=>{let a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},v=(t,e,a)=>{const i=new Array(16);let n,s,r=0;for(n=1;n<=15;n++)r=r+a[n-1]<<1,i[n]=r;for(s=0;s<=e;s++){let e=t[2*s+1];0!==e&&(t[2*s]=k(i[e]++,e))}},y=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},x=t=>{t.bi_valid>8?b(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},z=(t,e,a,i)=>{const n=2*e,s=2*a;return t[n]<t[s]||t[n]===t[s]&&i[e]<=i[a]},A=(t,e,a)=>{const i=t.heap[a];let n=a<<1;for(;n<=t.heap_len&&(n<t.heap_len&&z(e,t.heap[n+1],t.heap[n],t.depth)&&n++,!z(e,i,t.heap[n],t.depth));)t.heap[a]=t.heap[n],a=n,n<<=1;t.heap[a]=i},E=(t,i,n)=>{let s,r,o,_,f=0;if(0!==t.sym_next)do{s=255&t.pending_buf[t.sym_buf+f++],s+=(255&t.pending_buf[t.sym_buf+f++])<<8,r=t.pending_buf[t.sym_buf+f++],0===s?p(t,r,i):(o=l[r],p(t,o+256+1,i),_=e[o],0!==_&&(r-=h[o],g(t,r,_)),s--,o=m(s),p(t,o,n),_=a[o],0!==_&&(s-=d[o],g(t,s,_)))}while(f<t.sym_next);p(t,256,i)},R=(t,e)=>{const a=e.dyn_tree,i=e.stat_desc.static_tree,n=e.stat_desc.has_stree,s=e.stat_desc.elems;let r,o,l,h=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<s;r++)0!==a[2*r]?(t.heap[++t.heap_len]=h=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=h<2?++h:0,a[2*l]=1,t.depth[l]=0,t.opt_len--,n&&(t.static_len-=i[2*l+1]);for(e.max_code=h,r=t.heap_len>>1;r>=1;r--)A(t,a,r);l=s;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],A(t,a,1),o=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=o,a[2*l]=a[2*r]+a[2*o],t.depth[l]=(t.depth[r]>=t.depth[o]?t.depth[r]:t.depth[o])+1,a[2*r+1]=a[2*o+1]=l,t.heap[1]=l++,A(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const a=e.dyn_tree,i=e.max_code,n=e.stat_desc.static_tree,s=e.stat_desc.has_stree,r=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,l=e.stat_desc.max_length;let h,d,_,f,c,u,w=0;for(f=0;f<=15;f++)t.bl_count[f]=0;for(a[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<573;h++)d=t.heap[h],f=a[2*a[2*d+1]+1]+1,f>l&&(f=l,w++),a[2*d+1]=f,d>i||(t.bl_count[f]++,c=0,d>=o&&(c=r[d-o]),u=a[2*d],t.opt_len+=u*(f+c),s&&(t.static_len+=u*(n[2*d+1]+c)));if(0!==w){do{for(f=l-1;0===t.bl_count[f];)f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[l]--,w-=2}while(w>0);for(f=l;0!==f;f--)for(d=t.bl_count[f];0!==d;)_=t.heap[--h],_>i||(a[2*_+1]!==f&&(t.opt_len+=(f-a[2*_+1])*a[2*_],a[2*_+1]=f),d--)}})(t,e),v(a,h,t.bl_count)},Z=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),e[2*(a+1)+1]=65535,i=0;i<=a;i++)n=r,r=e[2*(i+1)+1],++o<l&&n===r||(o<h?t.bl_tree[2*n]+=o:0!==n?(n!==s&&t.bl_tree[2*n]++,t.bl_tree[32]++):o<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4))},U=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),i=0;i<=a;i++)if(n=r,r=e[2*(i+1)+1],!(++o<l&&n===r)){if(o<h)do{p(t,n,t.bl_tree)}while(0!=--o);else 0!==n?(n!==s&&(p(t,n,t.bl_tree),o--),p(t,16,t.bl_tree),g(t,o-3,2)):o<=10?(p(t,17,t.bl_tree),g(t,o-3,3)):(p(t,18,t.bl_tree),g(t,o-11,7));o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4)}};let S=!1;const D=(t,e,a,i)=>{g(t,0+(i?1:0),3),x(t),b(t,a),b(t,~a),a&&t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a};var T=(t,e,a,i)=>{let o,l,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),R(t,t.l_desc),R(t,t.d_desc),h=(t=>{let e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*n[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),o=t.opt_len+3+7>>>3,l=t.static_len+3+7>>>3,l<=o&&(o=l)):o=l=a+5,a+4<=o&&-1!==e?D(t,e,a,i):4===t.strategy||l===o?(g(t,2+(i?1:0),3),E(t,s,r)):(g(t,4+(i?1:0),3),((t,e,a,i)=>{let s;for(g(t,e-257,5),g(t,a-1,5),g(t,i-4,4),s=0;s<i;s++)g(t,t.bl_tree[2*n[s]+1],3);U(t,t.dyn_ltree,e-1),U(t,t.dyn_dtree,a-1)}
vendor: 2,438 bytes, line 2
2)(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),E(t,t.dyn_ltree,t.dyn_dtree)),y(t),i&&x(t)},O={_tr_init:t=>{S||((()=>{let t,n,w,m,b;const g=new Array(16);for(w=0,m=0;m<28;m++)for(h[m]=w,t=0;t<1<<e[m];t++)l[w++]=m;for(l[w-1]=m,b=0,m=0;m<16;m++)for(d[m]=b,t=0;t<1<<a[m];t++)o[b++]=m;for(b>>=7;m<30;m++)for(d[m]=b<<7,t=0;t<1<<a[m]-7;t++)o[256+b++]=m;for(n=0;n<=15;n++)g[n]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,g[8]++;for(;t<=255;)s[2*t+1]=9,t++,g[9]++;for(;t<=279;)s[2*t+1]=7,t++,g[7]++;for(;t<=287;)s[2*t+1]=8,t++,g[8]++;for(v(s,287,g),t=0;t<30;t++)r[2*t+1]=5,r[2*t]=k(t,5);f=new _(s,e,257,286,15),c=new _(r,a,0,30,15),u=new _(new Array(0),i,0,19,7)})(),S=!0),t.l_desc=new w(t.dyn_ltree,f),t.d_desc=new w(t.dyn_dtree,c),t.bl_desc=new w(t.bl_tree,u),t.bi_buf=0,t.bi_valid=0,y(t)},_tr_stored_block:D,_tr_flush_block:T,_tr_tally:(t,e,a)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=a,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(l[a]+256+1)]++,t.dyn_dtree[2*m(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{g(t,2,3),p(t,256,s),(t=>{16===t.bi_valid?(b(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var F=(t,e,a,i)=>{let n=65535&t|0,s=t>>>16&65535|0,r=0;for(;0!==a;){r=a>2e3?2e3:a,a-=r;do{n=n+e[i++]|0,s=s+n|0}while(--r);n%=65521,s%=65521}return n|s<<16|0};const L=new Uint32Array((()=>{let t,e=[];for(var a=0;a<256;a++){t=a;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e})());var N=(t,e,a,i)=>{const n=L,s=i+a;t^=-1;for(let a=i;a<s;a++)t=t>>>8^n[255&(t^e[a])];return-1^t},I={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},B={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:C,_tr_stored_block:H,_tr_flush_block:M,_tr_tally:j,_tr_align:K}=O,{Z_NO_FLUSH:P,Z_PARTIAL_FLUSH:Y,Z_FULL_FLUSH:G,Z_FINISH:X,Z_BLOCK:W,Z_OK:q,Z_STREAM_END:J,Z_STREAM_ERROR:Q,Z_DATA_ERROR:V,Z_BUF_ER
vendor: 10,438 bytes, line 2
2ROR:$,Z_DEFAULT_COMPRESSION:tt,Z_FILTERED:et,Z_HUFFMAN_ONLY:at,Z_RLE:it,Z_FIXED:nt,Z_DEFAULT_STRATEGY:st,Z_UNKNOWN:rt,Z_DEFLATED:ot}=B,lt=(t,e)=>(t.msg=I[e],e),ht=t=>2*t-(t>4?9:0),dt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},_t=t=>{let e,a,i,n=t.w_size;e=t.hash_size,i=e;do{a=t.head[--i],t.head[i]=a>=n?a-n:0}while(--e);e=n,i=e;do{a=t.prev[--i],t.prev[i]=a>=n?a-n:0}while(--e)};let ft=(t,e,a)=>(e<<t.hash_shift^a)&t.hash_mask;const ct=t=>{const e=t.state;let a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},ut=(t,e)=>{M(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ct(t.strm)},wt=(t,e)=>{t.pending_buf[t.pending++]=e},mt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},bt=(t,e,a,i)=>{let n=t.avail_in;return n>i&&(n=i),0===n?0:(t.avail_in-=n,e.set(t.input.subarray(t.next_in,t.next_in+n),a),1===t.state.wrap?t.adler=F(t.adler,e,n,a):2===t.state.wrap&&(t.adler=N(t.adler,e,n,a)),t.next_in+=n,t.total_in+=n,n)},gt=(t,e)=>{let a,i,n=t.max_chain_length,s=t.strstart,r=t.prev_length,o=t.nice_match;const l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,d=t.w_mask,_=t.prev,f=t.strstart+258;let c=h[s+r-1],u=h[s+r];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do{if(a=e,h[a+r]===u&&h[a+r-1]===c&&h[a]===h[s]&&h[++a]===h[s+1]){s+=2,a++;do{}while(h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&s<f);if(i=258-(f-s),s=f-258,i>r){if(t.match_start=e,r=i,i>=o)break;c=h[s+r-1],u=h[s+r]}}}while((e=_[e&d])>l&&0!=--n);return r<=t.lookahead?r:t.lookahead},pt=t=>{const e=t.w_size;let a,i,n;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-262)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),_t(t),i+=e),0===t.strm.avail_in)break;if(a=bt(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=a,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=ft(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=ft(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},kt=(t,e)=>{let a,i,n,s=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r=0,o=t.strm.avail_in;do{if(a=65535,n=t.bi_valid+42>>3,t.strm.avail_out<n)break;if(n=t.strm.avail_out-n,i=t.strstart-t.block_start,a>i+t.strm.avail_in&&(a=i+t.strm.avail_in),a>n&&(a=n),a<s&&(0===a&&e!==X||e===P||a!==i+t.strm.avail_in))break;r=e===X&&a===i+t.strm.avail_in?1:0,H(t,0,0,r),t.pending_buf[t.pending-4]=a,t.pending_buf[t.pending-3]=a>>8,t.pending_buf[t.pending-2]=~a,t.pending_buf[t.pending-1]=~a>>8,ct(t.strm),i&&(i>a&&(i=a),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,a-=i),a&&(bt(t.strm,t.strm.output,t.strm.next_out,a),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a)}while(0===r);return o-=t.strm.avail_in,o&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),r?4:e!==P&&e!==X&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(n=t.window_size-t.strstart,t.strm.avail_in>n&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,n+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),n>t.strm.avail_in&&(n=t.strm.avail_in),n&&(bt(t.strm,t.window,t.strstart,n),t.strstart+=n,t.insert+=n>t.w_size-t.insert?t.w_size-t.insert:n),t.high_water<t.strstart&&(t.high_water=t.strstart),n=t.bi_valid+42>>3,n=t.pending_buf_size-n>65535?65535:t.pending_buf_size-n,s=n>t.w_size?t.w_size:n,i=t.strstart-t.block_start,(i>=s||(i||e===X)&&e!==P&&0===t.strm.avail_in&&i<=n)&&(a=i>n?n:i,r=e===X&&0===t.strm.avail_in&&a===i?1:0,H(t,t.block_start,a,r),t.block_start+=a,ct(t.strm)),r?3:1)},vt=(t,e)=>{let a,i;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a)),t.match_length>=3)if(i=j(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=ft(t,t.ins_h,t.window[t.strstart+1]);else i=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2},yt=(t,e)=>{let a,i,n;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a),t.match_length<=5&&(t.strategy===et||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-3,i=j(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=n&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(ut(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(i=j(t,0,t.window[t.strstart-1]),i&&ut(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=j(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2};function xt(t,e,a,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=i,this.func=n}const zt=[new xt(0,0,0,0,kt),new xt(4,4,8,4,vt),new xt(4,5,16,8,vt),new xt(4,6,32,32,vt),new xt(4,4,16,16,yt),new xt(8,16,32,32,yt),new xt(8,16,128,128,yt),new xt(8,32,128,256,yt),new xt(32,128,258,1024,yt),new xt(32,258,258,4096,yt)];function At(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ot,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),dt(this.dyn_ltree),dt(this.dyn_dtree),dt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),dt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),dt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Et=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||42!==e.status&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&113!==e.status&&666!==e.status?1:0},Rt=t=>{if(Et(t))return lt(t,Q);t.total_in=t.total_out=0,t.data_type=rt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,C(e),q},Zt=t=>{const e=Rt(t);var a;return e===q&&((a=t.state).window_size=2*a.w_size,dt(a.head),a.max_lazy_match=zt[a.level].max_lazy,a.good_match=zt[a.level].good_length,a.nice_match=zt[a.level].nice_length,a.max_chain_length=zt[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0),e},Ut=(t,e,a,i,n,s)=>{if(!t)return Q;let r=1;if(e===tt&&(e=6),i<0?(r=0,i=-i):i>15&&(r=2,i-=16),n<1||n>9||a!==ot||i<8||i>15||e<0||e>9||s<0||s>nt||8===i&&1!==r)return lt(t,Q);8===i&&(i=9);const o=new At;return t.state=o,o.strm=t,o.status=42,o.wrap=r,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=n+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+3-1)/3),o.window=new Uint8Array(2*o.w_size),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<n+6,o.pending_buf_size=4*o.lit_bufsize,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=3*(o.lit_bufsize-1),o.level=e,o.strategy=s,o.method=a,Zt(t)};var St={deflateInit:(t,e)=>Ut(t,e,ot,15,8,st),deflateInit2:Ut,deflateReset:Zt,deflateResetKeep:Rt,deflateSetHeader:(t,e)=>Et(t)||2!==t.state.wrap?Q:(t.state.gzhead=e,q),deflate:(t,e)=>{if(Et(t)||e>W||e<0)return t?lt(t,Q):Q;const a=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===a.status&&e!==X)return lt(t,0===t.avail_out?$:Q);const i=a.last_flush;
2if(a.last_flush=e,0!==a.pending){if(ct(t),0===t.avail_out)return a.last_flush=-1,q}else if(0===t.avail_in&&ht(e)<=ht(i)&&e!==X)return lt(t,$);if(666===a.status&&0!==t.avail_in)return lt(t,$);if(42===a.status&&0===a.wrap&&(a.status=113),42===a.status){let e=ot+(a.w_bits-8<<4)<<8,i=-1;if(i=a.strategy>=at||a.level<2?0:a.level<6?1:6===a.level?2:3,e|=i<<6,0!==a.strstart&&(e|=32),e+=31-e%31,mt(a,e),0!==a.strstart&&(mt(a,t.adler>>>16),mt(a,65535&t.adler)),t.adler=1,a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(57===a.status)if(t.adler=0,wt(a,31),wt(a,139),wt(a,8),a.gzhead)wt(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),wt(a,255&a.gzhead.time),wt(a,a.gzhead.time>>8&255),wt(a,a.gzhead.time>>16&255),wt(a,a.gzhead.time>>24&255),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(wt(a,255&a.gzhead.extra.length),wt(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=N(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69;else if(wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,3),a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q;if(69===a.status){if(a.gzhead.extra){let e=a.pending,i=(65535&a.gzhead.extra.length)-a.gzindex;for(;a.pending+i>a.pending_buf_size;){let n=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+n),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex+=n,ct(t),0!==a.pending)return a.last_flush=-1,q;e=0,i-=n}let n=new Uint8Array(a.gzhead.extra);a.pending_buf.set(n.subarray(a.gzindex,a.gzindex+i),a.pending),a.pending+=i,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex=0}a.status=73}if(73===a.status){if(a.gzhead.name){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),a.gzindex=0}a.status=91}if(91===a.status){if(a.gzhead.comment){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i))}a.status=103}if(103===a.status){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(ct(t),0!==a.pending))return a.last_flush=-1,q;wt(a,255&t.adler),wt(a,t.adler>>8&255),t.adler=0}if(a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(0!==t.avail_in||0!==a.lookahead||e!==P&&666!==a.status){let i=0===a.level?kt(a,e):a.strategy===at?((t,e)=>{let a;for(;;){if(0===t.lookahead&&(pt(t),0===t.lookahead)){if(e===P)return 1;break}if(t.match_length=0,a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):a.strategy===it?((t,e)=>{let a,i,n,s;const r=t.window;for(;;){if(t.lookahead<=258){if(pt(t),t.lookahead<=258&&e===P)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=t.strstart-1,i=r[n],i===r[++n]&&i===r[++n]&&i===r[++n])){s=t.strstart+258;do{}while(i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&n<s);t.match_length=258-(s-n),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=j(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):zt[a.level].func(a,e);if(3!==i&&4!==i||(a.status=666),1===i||3===i)return 0===t.avail_out&&(a.last_flush=-1),q;if(2===i&&(e===Y?K(a):e!==W&&(H(a,0,0,!1),e===G&&(dt(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),ct(t),0===t.avail_out))return a.last_flush=-1,q}return e!==X?q:a.wrap<=0?J:(2===a.wrap?(wt(a,255&t.adler),wt(a,t.adler>>8&255),wt(a,t.adler>>16&255),wt(a,t.adler>>24&255),wt(a,255&t.total_in),wt(a,t.total_in>>8&255),wt(a,t.total_in>>16&255),wt(a,t.total_in>>24&255)):(mt(a,t.adler>>>16),mt(a,65535&t.adler)),ct(t),a.wrap>
vendor: 4,506 bytes, line 2
20&&(a.wrap=-a.wrap),0!==a.pending?q:J)},deflateEnd:t=>{if(Et(t))return Q;const e=t.state.status;return t.state=null,113===e?lt(t,V):q},deflateSetDictionary:(t,e)=>{let a=e.length;if(Et(t))return Q;const i=t.state,n=i.wrap;if(2===n||1===n&&42!==i.status||i.lookahead)return Q;if(1===n&&(t.adler=F(t.adler,e,a,0)),i.wrap=0,a>=i.w_size){0===n&&(dt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let t=new Uint8Array(i.w_size);t.set(e.subarray(a-i.w_size,a),0),e=t,a=i.w_size}const s=t.avail_in,r=t.next_in,o=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,pt(i);i.lookahead>=3;){let t=i.strstart,e=i.lookahead-2;do{i.ins_h=ft(i,i.ins_h,i.window[t+3-1]),i.prev[t&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=t,t++}while(--e);i.strstart=t,i.lookahead=2,pt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=r,t.input=o,t.avail_in=s,i.wrap=n,q},deflateInfo:"pako deflate (from Nodeca project)"};const Dt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Tt=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(const e in a)Dt(a,e)&&(t[e]=a[e])}}return t},Ot=t=>{let e=0;for(let a=0,i=t.length;a<i;a++)e+=t[a].length;const a=new Uint8Array(e);for(let e=0,i=0,n=t.length;e<n;e++){let n=t[e];a.set(n,i),i+=n.length}return a};let Ft=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Ft=!1}const Lt=new Uint8Array(256);for(let t=0;t<256;t++)Lt[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Lt[254]=Lt[254]=1;var Nt=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,i,n,s,r=t.length,o=0;for(n=0;n<r;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),o+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(o),s=0,n=0;s<o;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),a<128?e[s++]=a:a<2048?(e[s++]=192|a>>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},It=(t,e)=>{const a=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let i,n;const s=new Array(2*a);for(n=0,i=0;i<a;){let e=t[i++];if(e<128){s[n++]=e;continue}let r=Lt[e];if(r>4)s[n++]=65533,i+=r-1;else{for(e&=2===r?31:3===r?15:7;r>1&&i<a;)e=e<<6|63&t[i++],r--;r>1?s[n++]=65533:e<65536?s[n++]=e:(e-=65536,s[n++]=55296|e>>10&1023,s[n++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Ft)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let a="";for(let i=0;i<e;i++)a+=String.fromCharCode(t[i]);return a})(s,n)},Bt=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let a=e-1;for(;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+Lt[t[a]]>e?a:e};var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Ht=Object.prototype.toString,{Z_NO_FLUSH:Mt,Z_SYNC_FLUSH:jt,Z_FULL_FLUSH:Kt,Z_FINISH:Pt,Z_OK:Yt,Z_STREAM_END:Gt,Z_DEFAULT_COMPRESSION:Xt,Z_DEFAULT_STRATEGY:Wt,Z_DEFLATED:qt}=B;function Jt(t){this.options=Tt({level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=St.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==Yt)throw new Error(I[a]);if(e.header&&St.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Nt(e.dictionary):"[object ArrayBuffer]"===Ht.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=St.deflateSetDictionary(this.strm,t),a!==Yt)throw new Error(I[a]);this._dict_set=!0}}function Qt(t,e){const a=new Jt(e);if(a.push(t,!0),a.err)throw a.msg||I[a.err];return a.result}Jt.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize;let n,s;if(this.ended)return!1;for(s=e===~~e?e:!0===e?Pt:Mt,"string"==typeof t?a.input=Nt(t):"[object ArrayBuffer]"===Ht.call(t)?a.input=new 
vendor: 5,942 bytes, line 2
2Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),(s===jt||s===Kt)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if(n=St.deflate(a,s),n===Gt)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),n=St.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Yt;if(0!==a.avail_out){if(s>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===Yt&&(this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Vt={Deflate:Jt,deflate:Qt,deflateRaw:function(t,e){return(e=e||{}).raw=!0,Qt(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,Qt(t,e)},constants:B};var $t=function(t,e){let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z,A;const E=t.state;a=t.next_in,z=t.input,i=a+(t.avail_in-5),n=t.next_out,A=t.output,s=n-(e-t.avail_out),r=n+(t.avail_out-257),o=E.dmax,l=E.wsize,h=E.whave,d=E.wnext,_=E.window,f=E.hold,c=E.bits,u=E.lencode,w=E.distcode,m=(1<<E.lenbits)-1,b=(1<<E.distbits)-1;t:do{c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=u[f&m];e:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,0===p)A[n++]=65535&g;else{if(!(16&p)){if(0==(64&p)){g=u[(65535&g)+(f&(1<<p)-1)];continue e}if(32&p){E.mode=16191;break t}t.msg="invalid literal/length code",E.mode=16209;break t}k=65535&g,p&=15,p&&(c<p&&(f+=z[a++]<<c,c+=8),k+=f&(1<<p)-1,f>>>=p,c-=p),c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=w[f&b];a:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,!(16&p)){if(0==(64&p)){g=w[(65535&g)+(f&(1<<p)-1)];continue a}t.msg="invalid distance code",E.mode=16209;break t}if(v=65535&g,p&=15,c<p&&(f+=z[a++]<<c,c+=8,c<p&&(f+=z[a++]<<c,c+=8)),v+=f&(1<<p)-1,v>o){t.msg="invalid distance too far back",E.mode=16209;break t}if(f>>>=p,c-=p,p=n-s,v>p){if(p=v-p,p>h&&E.sane){t.msg="invalid distance too far back",E.mode=16209;break t}if(y=0,x=_,0===d){if(y+=l-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}else if(d<p){if(y+=l+d-p,p-=d,p<k){k-=p;do{A[n++]=_[y++]}while(--p);if(y=0,d<k){p=d,k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}}else if(y+=d-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}for(;k>2;)A[n++]=x[y++],A[n++]=x[y++],A[n++]=x[y++],k-=3;k&&(A[n++]=x[y++],k>1&&(A[n++]=x[y++]))}else{y=n-v;do{A[n++]=A[y++],A[n++]=A[y++],A[n++]=A[y++],k-=3}while(k>2);k&&(A[n++]=A[y++],k>1&&(A[n++]=A[y++]))}break}}break}}while(a<i&&n<r);k=c>>3,a-=k,c-=k<<3,f&=(1<<c)-1,t.next_in=a,t.next_out=n,t.avail_in=a<i?i-a+5:5-(a-i),t.avail_out=n<r?r-n+257:257-(n-r),E.hold=f,E.bits=c};const te=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ee=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ae=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ie=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var ne=(t,e,a,i,n,s,r,o)=>{const l=o.bits;let h,d,_,f,c,u,w=0,m=0,b=0,g=0,p=0,k=0,v=0,y=0,x=0,z=0,A=null;const E=new Uint16Array(16),R=new Uint16Array(16);let Z,U,S,D=null;for(w=0;w<=15;w++)E[w]=0;for(m=0;m<i;m++)E[e[a+m]]++;for(p=l,g=15;g>=1&&0===E[g];g--);if(p>g&&(p=g),0===g)return n[s++]=20971520,n[s++]=20971520,o.bits=1,0;for(b=1;b<g&&0===E[b];b++);for(p<b&&(p=b),y=1,w=1;w<=15;w++)if(y<<=1,y-=E[w],y<0)return-1;if(y>0&&(0===t||1!==g))return-1;for(R[1]=0,w=1;w<15;w++)R[w+1]=R[w]+E[w];for(m=0;m<i;m++)0!==e[a+m]&&(r[R[e[a+m]]++]=m);if(0===t?(A=D=r,u=20):1===t?(A=te,D=ee,u=257):(A=ae,D=ie,u=0),z=0,m=0,w=b,c=s,k=p,v=0,_=-1,x=1<<p,f=x-1,1===t&&x>852||2===t&&x>592)return 1;for(;;){Z=w-v,r[m]+1<u?(U=0,S=r[m]):r[m]>=u?(U=D[r[m]-u],S=A[r[m]-u]):(U=96,S=0),h=1<<w-v,d=1<<k,b=d;do{d-=h,n[c+(z>>v)+d]=Z<<24|U<<16|S|0}while(0!==d);for(h=1<<w-1;z&h;)h>>=1;if(0!==h?(z&=h-1,z+=h):z=0,m++,0==--E[w]){if(w===g)break;w=e[a+r[m]]}if(w>p&&(z&f)!==_){for(0===v&&(v=p),c+=b,k=w-v,y=1<<k;k+v<g&&(y-=E[k+v],!(y<=0));)k++,y<<=1;if(x+=1<<k,1===t&&x>852||2===t&&x>592)return 1;_=z&f,n[_]=p<<24|k<<16|c-s|0}}return 0!==z&&(n[c+z]=w-v<<24|64<<16|0),o.bits=p,0};const{Z_FINISH:se,Z_BLOCK:re,Z_TREES:oe,Z_OK:le,Z_STREAM_END:he,Z_NEED_DICT:de,Z_STREAM_ERROR:_e,Z_DATA_ERROR:fe,Z_MEM_ERROR:ce,Z_BUF_ERROR:ue,Z_DEFLATED:we}=B,me=16209,be=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function ge(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const pe=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<16180||e.mode>16211?1:0},ke=t=>{if(pe(t))return _e;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=16180,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,le},ve=t=>{if(pe(t))return _e;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,ke(t)},ye=(t,e)=>{let a;if(pe(t))return _e;const i=t.state;return e<0?(a=0,e=-e):(a=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?_e:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=a,i.wbits=e,ve(t))},xe=(t,e)=>{if(!t)return _e;const a=new ge;t.state=a,a.strm=t,a.window=null,a.mode=16180;const i=ye(t,e);return i!==le&&(t.state=null),i};let ze,Ae,Ee=!0;const Re=t=>
vendor: 11,506 bytes, line 2
2{if(Ee){ze=new Int32Array(512),Ae=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(ne(1,t.lens,0,288,ze,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;ne(2,t.lens,0,32,Ae,0,t.work,{bits:5}),Ee=!1}t.lencode=ze,t.lenbits=9,t.distcode=Ae,t.distbits=5},Ze=(t,e,a,i)=>{let n;const s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Uint8Array(s.wsize)),i>=s.wsize?(s.window.set(e.subarray(a-s.wsize,a),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>i&&(n=i),s.window.set(e.subarray(a-i,a-i+n),s.wnext),(i-=n)?(s.window.set(e.subarray(a-i,a),0),s.wnext=i,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=n))),0};var Ue={inflateReset:ve,inflateReset2:ye,inflateResetKeep:ke,inflateInit:t=>xe(t,15),inflateInit2:xe,inflate:(t,e)=>{let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z=0;const A=new Uint8Array(4);let E,R;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(pe(t)||!t.output||!t.input&&0!==t.avail_in)return _e;a=t.state,16191===a.mode&&(a.mode=16192),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,_=o,f=l,x=le;t:for(;;)switch(a.mode){case 16180:if(0===a.wrap){a.mode=16192;break}for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(2&a.wrap&&35615===h){0===a.wbits&&(a.wbits=15),a.check=0,A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0),h=0,d=0,a.mode=16181;break}if(a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",a.mode=me;break}if((15&h)!==we){t.msg="unknown compression method",a.mode=me;break}if(h>>>=4,d-=4,y=8+(15&h),0===a.wbits&&(a.wbits=y),y>15||y>a.wbits){t.msg="invalid window size",a.mode=me;break}a.dmax=1<<a.wbits,a.flags=0,t.adler=a.check=1,a.mode=512&h?16189:16191,h=0,d=0;break;case 16181:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.flags=h,(255&a.flags)!==we){t.msg="unknown compression method",a.mode=me;break}if(57344&a.flags){t.msg="unknown header flags set",a.mode=me;break}a.head&&(a.head.text=h>>8&1),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16182;case 16182:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.time=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,A[2]=h>>>16&255,A[3]=h>>>24&255,a.check=N(a.check,A,4,0)),h=0,d=0,a.mode=16183;case 16183:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.xflags=255&h,a.head.os=h>>8),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16184;case 16184:if(1024&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length=h,a.head&&(a.head.extra_len=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0}else a.head&&(a.head.extra=null);a.mode=16185;case 16185:if(1024&a.flags&&(c=a.length,c>o&&(c=o),c&&(a.head&&(y=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(i.subarray(s,s+c),y)),512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,a.length-=c),a.length))break t;a.length=0,a.mode=16186;case 16186:if(2048&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.name+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.name=null);a.length=0,a.mode=16187;case 16187:if(4096&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.comment+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.comment=null);a.mode=16188;case 16188:if(512&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(65535&a.check)){t.msg="header crc mismatch",a.mode=me;break}h=0,d=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=16191;break;case 16189:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}t.adler=a.check=be(h),h=0,d=0,a.mode=16190;case 16190:if(0===a.havedict)return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,de;t.adler=a.check=1,a.mode=16191;case 16191:if(e===re||e===oe)break t;case 16192:if(a.last){h>>>=7&d,d-=7&d,a.mode=16206;break}for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}switch(a.last=1&h,h>>>=1,d-=1,3&h){case 0:a.mode=16193;break;case 1:if(Re(a),a.mode=16199,e===oe){h>>>=2,d-=2;break t}break;case 2:a.mode=16196;break;case 3:t.msg="invalid block type",a.mode=me}h>>>=2,d-=2;break;case 16193:for(h>>>=7&d,d-=7&d;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if((65535&h)!=(h>>>16^65535)){t.msg="invalid stored block lengths",a.mode=me;break}if(a.length=65535&h,h=0,d=0,a.mode=16194,e===oe)break t;case 16194:a.mode=16195;case 16195:if(c=a.length,c){if(c>o&&(c=o),c>l&&(c=l),0===c)break t;n.set(i.subarray(s,s+c),r),o-=c,s+=c,l-=c,r+=c,a.length-=c;break}a.mode=16191;break;case 16196:for(;d<14;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.nlen=257+(31&h),h>>>=5,d-=5,a.ndist=1+(31&h),h>>>=5,d-=5,a.ncode=4+(15&h),h>>>=4,d-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=me;break}a.have=0,a.mode=16197;case 16197:for(;a.have<a.ncode;){for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.lens[Z[a.have++]]=7&h,h>>>=3,d-=3}for(;a.have<19;)a.lens[Z[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,E={bits:a.lenbits},x=ne(0,a.lens,0,19,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid code lengths set",a.mode=me;break}a.have=0,a.mode=16198;case 16198:for(;a.have<a.nlen+a.ndist;){for(;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(g<16)h>>>=m,d-=m,a.lens[a.have++]=g;else{if(16===g){for(R=m+2;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(h>>>=m,d-=m,0===a.have){t.msg="invalid bit length repeat",a.mode=me;break}y=a.lens[a.have-1],c=3+(3&h),h>>>=2,d-=2}else if(17===g){for(R=m+3;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=3+(7&h),h>>>=3,d-=3}else{for(R=m+7;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=11+(127&h),h>>>=7,d-=7}if(a.have+c>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=me;break}for(;c--;)a.lens[a.have++]=y}}if(a.mode===me)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=me;break}if(a.lenbits=9,E={bits:a.lenbits},x=ne(1,a.lens,0,a.nlen,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid literal/lengths set",a.mode=me;break}if(a.distbits=6,a.distcode=a.distdyn,E={bits:a.distbits},x=ne(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,E),a.distbits=E.bits,x){t.msg="invalid distances set",a.mode=me;break}if(a.mode=16199,e===oe)break t;case 16199:a.mode=16200;case 16200:if(o>=6&&l>=258){t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,$t(t,f),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,16191===a.mode&&(a.back=-1);break}for(a.back=0;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(b&&0==(240&b)){for(p=m,k=b,v=g;z=a.lencode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,a.length=g,0===b){a.mode=16205;break}if(32&b){a.back=-1,a.mode=16191;break}if(64&b){t.msg="invalid literal/length code",a.mode=me;break}a.extra=15&b,a.mode=16201;case 16201:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=16202;case 16202:for(;z=a.distcode[h&(1<<a.distbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(0==(240&b)){for(p=m,k=b,v=g;z=a.distcode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,64&b){t.msg="invalid distance code",a.mode=me;break}a.offset=g,a.extra=15&b,a.mode=16203;case 16203:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.offset+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=me;break}a.mode=16204;case 16204:if(0===l)break t;if(c=f-l,a.offset>c){if(c=a.offset-c,c>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=me;break}c>a.wnext?(c-=a.wnext,u=a.wsize-c):u=a.wnext-c,c>a.length&&(c=a.length),w=a.window}else w=n,u=r-a.offset,c=a.length;c>l&&(c=l),l-=c,a.length-=c;do{n[r++]=w[u++]}while(--c);0===a.length&&(a.mode=16200);break;case 16205:if(0===l)break t;n[r++]=a.length,l--,a.mode=16200;break;case 16206:if(a.wrap){for(;d<32;){if(0===o)break t;o--,h|=i[s++]<<d,d+=8}if(f-=l,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?N(a.check,n,f,r-f):F(a.check,n,f,r-f)),f=l,4&a.wrap&&(a.flags?h:be(h))!==a.check){t.msg="incorrect data check",a.mode=me;break}h=0,d=0}a.mode=16207;case 16207:if(a.wrap&&a.flags){for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(4294967295&a.total)){t.msg="incorrect length check",a.mode=me;break}h=0,d=0}a.mode=16208;case 16208:x=he;break t;case me:x=fe;break t;case 16210:return ce;default:return _e}return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,(a.wsize||f!==t.avail_out&&a.mode<me&&(a.mode<16206||e!==se))&&Ze(t,t.output,t.next_out,f-t.avail_out),_-=t.avail_in,f-=t.avail_out,t.total_in+=_,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?N(a.check,n,f,t.next_out-f):F(a.check,n,f,t.next_out-f)),t.data_type=a.bits+(a.last?64:0)+(16191===a.mode?128:0)+(16199===a.mode||16194===a.mode?256:0),(0===_&&0===f||e===se)&&x===le&&(x=ue),x},inflateEnd:t=>{if(pe(t))return _e;let e=t.state;return e.window&&(e.window=null),t.state=null,le},inflateGetHeader:(t,e)=>{if(pe(t))return _e;const a=t.state;return 0==(2&a.wrap)?_e:(a.head=e,e.done=!1,le)},inflateSetDictionary:(t,e)=>{const a=e.length;let i,n,s;return pe(t)?_e:(i=t.state,0!==i.wrap&&16190!==i.mode?_e:16190===i.mode&&(n=1,n=F(n,e,a,0),n!==i.check)?fe:(s=Ze(t,e,a,a),s?(i.mode=16210,ce):(i.havedict=1,le)))},inflateInfo:"pako inflate (from Nodeca project)"};var Se=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const De=Object.prototype.toString,{Z_NO_FLUSH:Te,Z_FINISH:Oe,Z_OK:Fe,Z_STREAM_END:Le,Z_NEED_DICT:Ne,Z_STREAM_ERROR:Ie,Z_DATA_ERROR:Be,Z_MEM_ERROR:Ce}=B;function He(t){this.options=Tt({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=Ue.inflateInit2(this.strm,e.windowBits);if(a!==Fe)throw new Error(I[a]);if(this.header=new Se,Ue.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Nt(e.dictionary):"[object ArrayBuffer]"===De.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(a=Ue.inflateSetDictionary(this.strm,e.dictionary),a!==Fe)))throw new Error(I[a])}He.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize,n=this.options.dictionary;let s,r,o;
2if(this.ended)return!1;for(r=e===~~e?e:!0===e?Oe:Te,"[object ArrayBuffer]"===De.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),s=Ue.inflate(a,r),s===Ne&&n&&(s=Ue.inflateSetDictionary(a,n),s===Fe?s=Ue.inflate(a,r):s===Be&&(s=Ne));a.avail_in>0&&s===Le&&a.state.wrap>0&&0!==t[a.next_in];)Ue.inflateReset(a),s=Ue.inflate(a,r);switch(s){case Ie:case Be:case Ne:case Ce:return this.onEnd(s),this.ended=!0,!1}if(o=a.avail_out,a.next_out&&(0===a.avail_out||s===Le))if("string"===this.options.to){let t=Bt(a.output,a.next_out),e=a.next_out-t,n=It(a.output,t);a.next_out=e,a.avail_out=i-e,e&&a.output.set(a.output.subarray(t,t+e),0),this.onData(n)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(s!==Fe||0!==o){if(s===Le)return s=Ue.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},He.prototype.onData=function(t){this.chunks.push(t)},He.prototype.onEnd=function(t){t===Fe&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const{Deflate:Me,deflate:je,deflateRaw:Ke,gzip:Pe}=Vt;var Ye=Me,Ge=je,Xe=B;const We=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const e=this._hasEvents?",":"";this.deflate.push(e+t,Xe.Z_SYNC_FLUSH),this._hasEvents=!0}finish(){if(this.deflate.push("]",Xe.Z_FINISH),this.deflate.err)throw this.deflate.err;const t=this.deflate.result;return this._init(),t}_init(){this._hasEvents=!1,this.deflate=new Ye,this.deflate.push("[",Xe.Z_NO_FLUSH)}},qe={clear:()=>{We.clear()},addEvent:t=>We.addEvent(t),finish:()=>We.finish(),compress:t=>function(t){return Ge(t)}(t)};addEventListener("message",(function(t){const e=t.data.method,a=t.data.id,i=t.data.arg;if(e in qe&&"function"==typeof qe[e])try{const t=qe[e](i);postMessage({id:a,method:e,success:!0,response:t})}catch(t){postMessage({id:a,method:e,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});`;function timestampToMs(t){return t>9999999999?t:1e3*t}let EventBufferArray=class EventBufferArray{__init(){this._totalSize=0}constructor(){EventBufferArray.prototype.__init.call(this),this.events=[]}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){let e=JSON.stringify(t).length;if(this._totalSize+=e,this._totalSize>2e7)throw new EventBufferSizeExceededError;this.events.push(t)}finish(){return new Promise(t=>{let e=this.events;this.clear(),t(JSON.stringify(e))})}clear(){this.events=[],this._totalSize=0}getEarliestTimestamp(){let t=this.events.map(t=>t.timestamp).sort()[0];return t?timestampToMs(t):null}};let WorkerHandler=class WorkerHandler{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((t,e)=>{this._worker.addEventListener("message",({data:a})=>{a.success?t():e()},{once:!0}),this._worker.addEventListener("error",t=>{e(t)},{once:!0})})),this._ensureReadyPromise}destroy(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&D.kg.log("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(t,e){let a=this._getAndIncrementId();return new Promise((n,r)=>{let listener=({data:e})=>{if(e.method===t&&e.id===a){if(this._worker.removeEventListener("message",listener),!e.success){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&D.kg.error("[Replay]",e.response),r(Error("Error in compression worker"));return}n(e.response)}};this._worker.addEventListener("message",listener),this._worker.postMessage({id:a,method:t,arg:e})})}_getAndIncrementId(){return this._id++}};let EventBufferCompressionWorker=class EventBufferCompressionWorker{__init(){this._totalSize=0}constructor(t){EventBufferCompressionWorker.prototype.__init.call(this),this._worker=new WorkerHandler(t),this._earliestTimestamp=null}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}
2addEvent(t){let e=timestampToMs(t.timestamp);(!this._earliestTimestamp||e<this._earliestTimestamp)&&(this._earliestTimestamp=e);let a=JSON.stringify(t);return(this._totalSize+=a.length,this._totalSize>2e7)?Promise.reject(new EventBufferSizeExceededError):this._sendEventToWorker(a)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this._worker.postMessage("clear")}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){let t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}};let EventBufferProxy=class EventBufferProxy{constructor(t){this._fallback=new EventBufferArray,this._compression=new EventBufferCompressionWorker(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&D.kg.log("[Replay] Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:t}=this._fallback,e=[];for(let a of t)e.push(this._compression.addEvent(a));this._used=this._compression;try{await Promise.all(e)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&D.kg.warn("[Replay] Failed to add events when switching buffers.",t)}}};let EventBufferSizeExceededError=class EventBufferSizeExceededError extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}};function isExpired(t,e,a=+new Date){return null===t||void 0===e||e<0||0!==e&&t+e<=a}function isSessionExpired(t,e,a=+new Date){return isExpired(t.started,e.maxSessionLife,a)||isExpired(t.lastActivity,e.sessionIdleExpire,a)}function isSampled(t){return void 0!==t&&Math.random()<t}function saveSession(t){let e="sessionStorage"in P;if(e)try{P.sessionStorage.setItem(W,JSON.stringify(t))}catch(t){}}function makeSession(t){let e=Date.now(),a=t.id||(0,z.DM)(),n=t.started||e,r=t.lastActivity||e,i=t.segmentId||0,s=t.sampled;return{id:a,started:n,lastActivity:r,segmentId:i,sampled:s,shouldRefresh:!0}}function getSession({timeouts:t,currentSession:e,stickySession:a,sessionSampleRate:n,allowBuffering:r}){let i=e||a&&function(){let t="sessionStorage"in P;if(!t)return null;try{let t=P.sessionStorage.getItem(W);if(!t)return null;let e=JSON.parse(t);return makeSession(e)}catch(t){return null}}();if(i){let e=isSessionExpired(i,t);if(!e||r&&i.shouldRefresh)return{type:"saved",session:i};if(i.shouldRefresh)("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&D.kg.log("[Replay] Session has expired");else{let t=makeSession({sampled:!1});return{type:"new",session:t}}}let s=function({sessionSampleRate:t,allowBuffering:e,stickySession:a=!1}){let n=isSampled(t)?"session":!!e&&"buffer",r=makeSession({sampled:n});return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&D.kg.log(`[Replay] Creating new session: ${r.id}`),a&&saveSession(r),r}({stickySession:a,sessionSampleRate:n,allowBuffering:r});return{type:"new",session:s}}async function addEvent(t,e,a){if(!t.eventBuffer||t.isPaused())return null;let n=timestampToMs(e.timestamp);if(n+t.timeouts.sessionIdlePause<Date.now())return null;try{a&&t.eventBuffer.clear();let n=t.getOptions(),r="function"==typeof n.beforeAddRecordingEvent&&e.type===g.Custom?n.beforeAddRecordingEvent(e):e;if(!r)return;return await t.eventBuffer.addEvent(r)}catch(n){let e=n&&n instanceof EventBufferSizeExceededError?"addEventSizeExceeded":"addEvent";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&D.kg.error(n),await t.stop(e);let a=(0,E.Gd)().getClient();a&&a.recordDroppedEvent("internal_sdk_error","replay")}}function isTransactionEvent(t){return"transaction"===t.type}function handleAfterSendEvent(t){let e=function(){let t=(0,E.Gd)().getClient();if(!t)return!1;let e=t.getTransport();return!!e&&(e.send.__sentry__baseTransport__||!1)}();return(a,n)=>{if(a.type&&!isTransactionEvent(a))return;let r=n&&n.statusCode;if(!e||r&&!(r<200)&&!(r>=300)){if(isTransactionEvent(a)&&a.contexts&&a.contexts.trace&&a.contexts.trace.trace_id){t.getContext().traceIds.add(a.contexts.trace.trace_id);return}!a.type&&(a.event_id&&t.getContext().errorIds.add(a.event_id),"buffer"===t.recordingMode&&a.tags&&a.tags.replayId&&setTimeout(()=>{t.sendBufferedReplayOrFlush()}))}}}function createPerformanceSpans(t,e){return e.map(({type:e,start:a,end:n,name:r,data:i})=>{let s=t.throttledAddEvent({type:g.Custom,timestamp:a,data:{tag:"performanceSpan",payload:{op:e,description:r,startTimestamp:a,endTimestamp:n,data:i}}});return"string"==typeof s?Promise.resolve(null):s})}function addNetworkBreadcrumb(t,e){var a;t.isEnabled()&&null!==e&&(a=e.name,(!("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)||!t.getOptions()._experiments.traceInternals)&&function(t){let e=(0,E.Gd)().getClient(),a=e&&e.getDsn();return!!a&&t.includes(a.host)}(a)||t.addUpdate(()=>(createPerformanceSpans(t,[e]),!0)))}let tu=["true","false","null"];function fixJson(t){let e=function(t){let e=[];for(let a=0;a<t.length;a++)!function(t,e,a){let n=t[t.length-1],r=e[a];if(!/\s/.test(r)){if('"'===r&&!function _isEscaped(t,e){let a=t[e-1];return"\\"===a&&!_isEscaped(t,e-1)}(e,a)){!function(t,e){if(14===e){t.pop(),t.push(15);return}if(22===e){t.pop(),t.push(23);return}
2if(13===e){t.push(14);return}if(21===e){t.push(22);return}if(10===e){t.push(12);return}12===e&&(t.pop(),t.push(11))}(t,n);return}switch(r){case"{":!function(t,e){if(!e||13===e){t.push(10);return}21===e&&t.push(10),20===e&&t.push(10)}(t,n);break;case"[":!function(t,e){if(!e||13===e){t.push(20),t.push(21);return}21===e&&(t.push(20),t.push(21)),20===e&&(t.push(20),t.push(21))}(t,n);break;case":":11===n&&(t.pop(),t.push(13));break;case",":!function(t,e){if(13===e){t.pop();return}if(15===e){t.pop(),t.pop();return}21!==e&&23===e&&t.pop()}(t,n);break;case"}":10===n&&t.pop(),13===n&&(t.pop(),t.pop()),15===n&&(t.pop(),t.pop(),t.pop()),13===t[t.length-1]&&t.push(15),21===t[t.length-1]&&t.push(23);break;case"]":20===n&&t.pop(),21===n&&(t.pop(),t.pop()),23===n&&(t.pop(),t.pop(),t.pop()),13===t[t.length-1]&&t.push(15),21===t[t.length-1]&&t.push(23)}}}(e,t,a);return e}(t);return function(t,e){if(!e.length)return t;let a=t,n=e.length-1,r=e[n];a=function(t,e){switch(e){case 10:return`${t}"~~":"~~"`;case 11:return`${t}:"~~"`;case 12:return`${t}~~":"~~"`;case 13:return function(t){let e=t.lastIndexOf(":"),a=t.slice(e+1);return tu.includes(a.trim())?`${t},"~~":"~~"`:`${t.slice(0,e+1)}"~~"`}(t);case 14:case 22:return`${t}~~"`;case 15:return`${t},"~~":"~~"`;case 20:return`${t}"~~"`;case 21:return function(t){let e=function(t){for(let e=t.length-1;e>=0;e--){let a=t[e];if(","===a||"["===a)return e}return -1}(t);if(e>-1){let a=t.slice(e+1);return tu.includes(a.trim())?`${t},"~~"`:`${t.slice(0,e+1)}"~~"`}return t}(t);case 23:return`${t},"~~"`}return t}(a,r);for(let t=n;t>=0;t--){let n=e[t];switch(n){case 10:a=`${a}}`;break;case 20:a=`${a}]`}}return a}(t,e)}function getBodySize(t,e){if(t)try{if("string"==typeof t)return e.encode(t).length;if(t instanceof URLSearchParams)return e.encode(t.toString()).length;if(t instanceof FormData){let a=_serializeFormData(t);return e.encode(a).length}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength}catch(t){}}function parseContentLengthHeader(t){if(!t)return;let e=parseInt(t,10);return isNaN(e)?void 0:e}function getBodyString(t){return"string"==typeof t?t:t instanceof URLSearchParams?t.toString():t instanceof FormData?_serializeFormData(t):void 0}function makeNetworkReplayBreadcrumb(t,e){if(!e)return null;let{startTimestamp:a,endTimestamp:n,url:r,method:i,statusCode:s,request:o,response:l}=e,d={type:t,start:a/1e3,end:n/1e3,name:r,data:(0,I.Jr)({method:i,statusCode:s,request:o,response:l})};return d}function buildSkippedNetworkRequestOrResponse(t){return{headers:{},size:t,_meta:{warnings:["URL_SKIPPED"]}}}function buildNetworkRequestOrResponse(t,e,a){if(!e&&0===Object.keys(t).length)return;if(!e)return{headers:t};if(!a)return{headers:t,size:e};let n={headers:t,size:e},{body:r,warnings:i}=function(t){if(!t||"string"!=typeof t)return{body:t,warnings:[]};let e=t.length>15e4;if(function(t){let e=t[0],a=t[t.length-1];return"["===e&&"]"===a||"{"===e&&"}"===a}(t))try{let a=e?fixJson(t.slice(0,15e4)):t,n=JSON.parse(a);return{body:n,warnings:e?["JSON_TRUNCATED"]:[]}}catch(a){return{body:e?`${t.slice(0,15e4)}…`:t,warnings:e?["INVALID_JSON","TEXT_TRUNCATED"]:["INVALID_JSON"]}}return{body:e?`${t.slice(0,15e4)}…`:t,warnings:e?["TEXT_TRUNCATED"]:[]}}(a);return n.body=r,i.length>0&&(n._meta={warnings:i}),n}function getAllowedHeaders(t,e){return Object.keys(t).reduce((a,n)=>{let r=n.toLowerCase();return e.includes(r)&&t[n]&&(a[r]=t[n]),a},{})}function _serializeFormData(t){return new URLSearchParams(t).toString()}function urlMatches(t,e){let a=function(t,e=P.document.baseURI){if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith(P.location.origin))return t;let a=new URL(t,e);if(a.origin!==new URL(e).origin)return t;let n=a.href;return!t.endsWith("/")&&n.endsWith("/")?n.slice(0,-1):n}(t);return(0,M.U0)(a,e)}async function captureFetchBreadcrumbToReplay(t,e,a){try{let n=await _prepareFetchData(t,e,a),r=makeNetworkReplayBreadcrumb("resource.fetch",n);addNetworkBreadcrumb(a.replay,r)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&D.kg.error("[Replay] Failed to capture fetch breadcrumb",t)}}async function _prepareFetchData(t,e,a){let{startTimestamp:n,endTimestamp:r}=e,{url:i,method:s,status_code:o=0,request_body_size:l,response_body_size:d}=t.data,c=urlMatches(i,a.networkDetailAllowUrls),u=c?function({networkCaptureBodies:t,networkRequestHeaders:e},a,n){let r=1===a.length&&"string"!=typeof a[0]?getHeadersFromOptions(a[0],e):2===a.length?getHeadersFromOptions(a[1],e):{};
2if(!t)return buildNetworkRequestOrResponse(r,n,void 0);let i=_getFetchRequestArgBody(a),s=getBodyString(i);return buildNetworkRequestOrResponse(r,n,s)}(a,e.input,l):buildSkippedNetworkRequestOrResponse(l),h=await _getResponseInfo(c,a,e.response,d);return{startTimestamp:n,endTimestamp:r,url:i,method:s,statusCode:o,request:u,response:h}}async function _getResponseInfo(t,{networkCaptureBodies:e,textEncoder:a,networkResponseHeaders:n},r,i){if(!t&&void 0!==i)return buildSkippedNetworkRequestOrResponse(i);let s=getAllHeaders(r.headers,n);if(!e&&void 0!==i)return buildNetworkRequestOrResponse(s,i,void 0);try{let n=r.clone(),o=await _parseFetchBody(n),l=o&&o.length&&void 0===i?getBodySize(o,a):i;if(!t)return buildSkippedNetworkRequestOrResponse(l);if(e)return buildNetworkRequestOrResponse(s,l,o);return buildNetworkRequestOrResponse(s,l,void 0)}catch(t){return buildNetworkRequestOrResponse(s,i,void 0)}}async function _parseFetchBody(t){try{return await t.text()}catch(t){return}}function _getFetchRequestArgBody(t=[]){if(2===t.length&&"object"==typeof t[1])return t[1].body}function getAllHeaders(t,e){let a={};return e.forEach(e=>{t.get(e)&&(a[e]=t.get(e))}),a}function getHeadersFromOptions(t,e){if(!t)return{};let a=t.headers;return a?a instanceof Headers?getAllHeaders(a,e):Array.isArray(a)?{}:getAllowedHeaders(a,e):{}}async function captureXhrBreadcrumbToReplay(t,e,a){try{let n=function(t,e,a){let{startTimestamp:n,endTimestamp:r,input:i,xhr:s}=e,{url:o,method:l,status_code:d=0,request_body_size:c,response_body_size:u}=t.data;if(!o)return null;if(!urlMatches(o,a.networkDetailAllowUrls)){let t=buildSkippedNetworkRequestOrResponse(c),e=buildSkippedNetworkRequestOrResponse(u);return{startTimestamp:n,endTimestamp:r,url:o,method:l,statusCode:d,request:t,response:e}}let h=s[O.xU],p=h?getAllowedHeaders(h.request_headers,a.networkRequestHeaders):{},f=getAllowedHeaders(function(t){let e=t.getAllResponseHeaders();return e?e.split("\r\n").reduce((t,e)=>{let[a,n]=e.split(": ");return t[a.toLowerCase()]=n,t},{}):{}}(s),a.networkResponseHeaders),_=buildNetworkRequestOrResponse(p,c,a.networkCaptureBodies?getBodyString(i):void 0),m=buildNetworkRequestOrResponse(f,u,a.networkCaptureBodies?e.xhr.responseText:void 0);return{startTimestamp:n,endTimestamp:r,url:o,method:l,statusCode:d,request:_,response:m}}(t,e,a),r=makeNetworkReplayBreadcrumb("resource.xhr",n);addNetworkBreadcrumb(a.replay,r)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&D.kg.error("[Replay] Failed to capture fetch breadcrumb",t)}}let th=null,handleScopeListener=t=>e=>{if(!t.isEnabled())return;let a=function(t){let e=t.getLastBreadcrumb&&t.getLastBreadcrumb();return th!==e&&e?(th=e,!e.category||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui."))?null:"console"===e.category?function(t){let e=t.data&&t.data.arguments;if(!Array.isArray(e)||0===e.length)return createBreadcrumb(t);let a=!1,n=e.map(t=>{if(!t)return t;if("string"==typeof t)return t.length>5e3?(a=!0,`${t.slice(0,5e3)}…`):t;if("object"==typeof t)try{let e=(0,A.Fv)(t,7),n=JSON.stringify(e);if(n.length>5e3){let t=fixJson(n.slice(0,5e3)),e=JSON.parse(t);return a=!0,e}return e}catch(t){}return t});return createBreadcrumb({...t,data:{...t.data,arguments:n,...a?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e):createBreadcrumb(e):null}(e);a&&addBreadcrumbEvent(t,a)};async function addMemoryEntry(t){try{return Promise.all(createPerformanceSpans(t,[function(t){let{jsHeapSizeLimit:e,totalJSHeapSize:a,usedJSHeapSize:n}=t,r=Date.now()/1e3;return{type:"memory",name:"memory",start:r,end:r,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:a,usedJSHeapSize:n}}}}(P.performance.memory)]))}catch(t){return[]}}let tp={resource:function(t){let{entryType:e,initiatorType:a,name:n,responseEnd:r,startTime:i,decodedBodySize:s,encodedBodySize:o,responseStatus:l,transferSize:d}=t;return["fetch","xmlhttprequest"].includes(a)?null:{type:`${e}.${a}`,start:getAbsoluteTime(i),end:getAbsoluteTime(r),name:n,data:{size:d,statusCode:l,decodedBodySize:s,encodedBodySize:o}}},paint:function(t){let{duration:e,entryType:a,name:n,startTime:r}=t,i=getAbsoluteTime(r);return{type:a,name:n,start:i,end:i+e,data:void 0}},navigation:function(t){let{entryType:e,name:a,decodedBodySize:n,duration:r,domComplete:i,encodedBodySize:s,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,domInteractive:d,loadEventStart:c,loadEventEnd:u,redirectCount:h,startTime:p,transferSize:f,type:_}=t;return 0===r?null:{type:`${e}.${_}`,start:getAbsoluteTime(p),end:getAbsoluteTime(i),name:a,data:{size:f,decodedBodySize:n,encodedBodySize:s,duration:r,domInteractive:d,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,loadEventStart:c,loadEventEnd:u,domComplete:i,redirectCount:h}}},"largest-contentful-paint":function(t){let{entryType:e,startTime:a,size:n}=t,r=0;if(P.performance){let t=P.performance.getEntriesByType("navigation")[0];r=t&&t.activationStart||0}let i=Math.max(a-r,0),s=getAbsoluteTime(r)+i/1e3;return{type:e,name:e,start:s,end:s,data:{value:i,size:n,nodeId:record.mirror.getId(t.element)}}}};function createPerformanceEntry(t){return void 0===tp[t.entryType]?null:tp[t.entryType](t)}function getAbsoluteTime(t){return((L.Z1||P.performance.timeOrigin)+t)/1e3}async function prepareReplayEvent({client:t,scope:e,replayId:a,event:n}){let r="object"!=typeof t._integrations||null===t._integrations||Array.isArray(t._integrations)?void 0:Object.keys(t._integrations),i=await (0,x.R)(t.getOptions(),n,{event_id:a,integrations:r},e);if(!i)return null;i.platform=i.platform||"javascript";let s=t.getSdkMetadata&&t.getSdkMetadata(),{name:o,version:l}=s&&s.sdk||{};return i.sdk={...i.sdk,name:o||"sentry.javascript.unknown",version:l||"0.0.0"},i}async function sendReplayRequest({recordingData:t,replayId:e,segmentId:a,eventContext:n,timestamp:r,session:i}){var s;let o;let l=function({recordingData:t,headers:e}){let a;let n=`${JSON.stringify(e)}
3`;if("string"==typeof t)a=`${n}${t}`;else{let e=new TextEncoder,r=e.encode(n);(a=new Uint8Array(r.length+t.length)).set(r),a.set(t,r.length)}return a}({recordingData:t,headers:{segment_id:a}}),{urls:d,errorIds:c,traceIds:u,initialTimestamp:h}=n,p=(0,E.Gd)(),f=p.getClient(),_=p.getScope(),m=f&&f.getTransport(),g=f&&f.getDsn();if(!f||!_||!m||!g||!i.sampled)return;let y={type:"replay_event",replay_start_timestamp:h/1e3,timestamp:r/1e3,error_ids:c,trace_ids:u,urls:d,replay_id:e,segment_id:a,replay_type:i.sampled},b=await prepareReplayEvent({scope:_,client:f,replayId:e,event:y});if(!b){f.recordDroppedEvent("event_processor","replay",y),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&D.kg.log("An event processor returned `null`, will not send event.");return}let w=(s=f.getOptions().tunnel,(0,B.Jd)((0,B.Cd)(b,(0,B.HY)(b),s,g),[[{type:"replay_event"},b],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{o=await m.send(w)}catch(e){let t=Error(H);try{t.cause=e}catch(t){}throw t}if(!o)return o;if("number"==typeof o.statusCode&&(o.statusCode<200||o.statusCode>=300))throw new TransportStatusCodeError(o.statusCode);return o}
3let TransportStatusCodeError=class TransportStatusCodeError extends Error{constructor(t){super(`Transport returned status code ${t}`)}};async function sendReplay(t,e={count:0,interval:5e3}){let{recordingData:a,options:n}=t;if(a.length)try{return await sendReplayRequest(t),!0}catch(a){if(a instanceof TransportStatusCodeError)throw a;if((0,T.v)("Replays",{_retryCount:e.count}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&n._experiments&&n._experiments.captureExceptions&&(0,T.Tb)(a),e.count>=3){let t=Error(`${H} - max retries exceeded`);try{t.cause=a}catch(t){}throw t}return e.interval*=++e.count,await new Promise((a,n)=>{setTimeout(async()=>{try{await sendReplay(t,e),a(!0)}catch(t){n(t)}},e.interval)})}}let tf="__THROTTLED";let ReplayContainer=class ReplayContainer{__init(){this.eventBuffer=null}__init2(){this.performanceEvents=[]}__init3(){this.recordingMode="session"}__init4(){this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5,maxSessionLife:36e5}}__init5(){this._performanceObserver=null}__init6(){this._flushLock=null}__init7(){this._lastActivity=Date.now()}__init8(){this._isEnabled=!1}__init9(){this._isPaused=!1}__init10(){this._hasInitializedCoreListeners=!1}__init11(){this._stopRecording=null}__init12(){this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""}}constructor({options:t,recordingOptions:e}){ReplayContainer.prototype.__init.call(this),ReplayContainer.prototype.__init2.call(this),ReplayContainer.prototype.__init3.call(this),ReplayContainer.prototype.__init4.call(this),ReplayContainer.prototype.__init5.call(this),ReplayContainer.prototype.__init6.call(this),ReplayContainer.prototype.__init7.call(this),ReplayContainer.prototype.__init8.call(this),ReplayContainer.prototype.__init9.call(this),ReplayContainer.prototype.__init10.call(this),ReplayContainer.prototype.__init11.call(this),ReplayContainer.prototype.__init12.call(this),ReplayContainer.prototype.__init13.call(this),ReplayContainer.prototype.__init14.call(this),ReplayContainer.prototype.__init15.call(this),ReplayContainer.prototype.__init16.call(this),ReplayContainer.prototype.__init17.call(this),ReplayContainer.prototype.__init18.call(this),this._recordingOptions=e,this._options=t,this._debouncedFlush=function(t,e,a){let n,r,i;let s=a&&a.maxWait?Math.max(a.maxWait,e):0;function invokeFunc(){return cancelTimers(),n=t()}function cancelTimers(){void 0!==r&&clearTimeout(r),void 0!==i&&clearTimeout(i),r=i=void 0}function debounced(){return r&&clearTimeout(r),r=setTimeout(invokeFunc,e),s&&void 0===i&&(i=setTimeout(invokeFunc,s)),n}return debounced.cancel=cancelTimers,debounced.flush=function(){return void 0!==r||void 0!==i?invokeFunc():n},debounced}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(t,e,a){let n=new Map,_cleanup=t=>{let e=t-5;n.forEach((t,a)=>{a<e&&n.delete(a)})},_getTotalCount=()=>[...n.values()].reduce((t,e)=>t+e,0),r=!1;return(...e)=>{let a=Math.floor(Date.now()/1e3);if(_cleanup(a),_getTotalCount()>=300){let t=r;return r=!0,t?"__SKIPPED":tf}r=!1;let i=n.get(a)||0;return n.set(a,i+1),t(...e)}}((t,e)=>addEvent(this,t,e),0,0);let{slowClickTimeout:a,slowClickIgnoreSelectors:n}=this.getOptions(),r=a?{threshold:Math.min(3e3,a),timeout:a,scrollTimeout:300,ignoreSelector:n?n.join(","):"",multiClickTimeout:1e3}:void 0;r&&(this.clickDetector=new ClickDetector(this,r))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}getOptions(){return this._options}initializeSampling(){let{errorSampleRate:t,sessionSampleRate:e}=this._options;if(t<=0&&e<=0)return;let a=this._loadAndCheckSession();if(a){if(!this.session){this._handleException(Error("Unable to initialize and create session"));return}this.session.sampled&&"session"!==this.session.sampled&&(this.recordingMode="buffer"),this._initializeRecording()}}start(){if(this._isEnabled&&"session"===this.recordingMode)throw Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw Error("Replay buffering is in progress, call `flush()` to save the replay");let t=this.session&&this.session.id,{session:e}=getSession({timeouts:this.timeouts,stickySession:!!this._options.stickySession,currentSession:this.session,sessionSampleRate:1,allowBuffering:!1});e.previousSessionId=t,this.session=e,this._initializeRecording()}
3startBuffering(){if(this._isEnabled)throw Error("Replay recording is already in progress");let t=this.session&&this.session.id,{session:e}=getSession({timeouts:this.timeouts,stickySession:!!this._options.stickySession,currentSession:this.session,sessionSampleRate:0,allowBuffering:!0});e.previousSessionId=t,this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{var t;let e;this._stopRecording=record({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:(t=this,e=!1,(a,n)=>{if(!t.checkAndHandleExpiredSession()){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&D.kg.warn("[Replay] Received replay event after session expired.");return}let r=n||!e;e=!0,t.addUpdate(()=>{if("buffer"===t.recordingMode&&r&&t.setInitialState(),addEvent(t,a,r),!r)return!1;if(r&&t.session&&0===t.session.segmentId?addEvent(t,function(t){let e=t.getOptions();return{type:g.Custom,timestamp:Date.now(),data:{tag:"options",payload:{sessionSampleRate:e.sessionSampleRate,errorSampleRate:e.errorSampleRate,useCompressionOption:e.useCompression,blockAllMedia:e.blockAllMedia,maskAllText:e.maskAllText,maskAllInputs:e.maskAllInputs,useCompression:!!t.eventBuffer&&"worker"===t.eventBuffer.type,networkDetailHasUrls:e.networkDetailAllowUrls.length>0,networkCaptureBodies:e.networkCaptureBodies,networkRequestHasHeaders:e.networkRequestHeaders.length>0,networkResponseHasHeaders:e.networkResponseHeaders.length>0}}}}(t),!1):Promise.resolve(null),t.session&&t.session.previousSessionId)return!0;if("buffer"===t.recordingMode&&t.session&&t.eventBuffer){let e=t.eventBuffer.getEarliestTimestamp();e&&(t.session.started=e,t.getOptions().stickySession&&saveSession(t.session))}let e=t.getOptions();return e._experiments.delayFlushOnCheckout?(setTimeout(()=>t.conditionalFlush(),e._experiments.delayFlushOnCheckout),t.cancelFlush()):"session"===t.recordingMode&&t.flushImmediate(),!0})}),onMutation:this._onMutationHandler})}catch(t){this._handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this._handleException(t),!1}}async stop(t){if(this._isEnabled)try{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){let e=`[Replay] Stopping Replay${t?` triggered by ${t}`:""}`,a=this.getOptions()._experiments.traceInternals?console.warn:D.kg.log;a(e)}this._isEnabled=!1,this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),"session"===this.recordingMode&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,function(){let t="sessionStorage"in P;if(t)try{P.sessionStorage.removeItem(W)}catch(t){}}(),this.session=void 0}catch(t){this._handleException(t)}}pause(){this._isPaused=!0,this.stopRecording()}resume(){this._loadAndCheckSession()&&(this._isPaused=!1,this.startRecording())}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let e=Date.now();await this.flushImmediate();let a=this.stopRecording();t&&a&&(this.recordingMode="session",this.session&&(this.session.shouldRefresh=!1,this._updateUserActivity(e),this._updateSessionActivity(e),this.session.started=e,this._maybeSaveSession()),this.startRecording())}addUpdate(t){let e=t();"buffer"!==this.recordingMode&&!0!==e&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._loadAndCheckSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){let t=this.getSessionId();if(this._lastActivity&&isExpired(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled){this.pause();return}if(!this._loadAndCheckSession())return;let e=t!==this.getSessionId();return!e||(this._triggerFullSnapshot(),!1)}setInitialState(){let t=`${P.location.pathname}${P.location.hash}${P.location.search}`,e=`${P.location.origin}${t}`;
3this.performanceEvents=[],this._clearContext(),this._context.initialUrl=e,this._context.initialTimestamp=Date.now(),this._context.urls.push(e)}throttledAddEvent(t,e){let a=this._throttledAddEvent(t,e);if(a===tf){let t=createBreadcrumb({category:"replay.throttled"});this.addUpdate(()=>{addEvent(this,{type:g.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t,metric:!0}})})}return a}getCurrentRoute(){let t=this.lastTransaction||(0,E.Gd)().getScope().getTransaction();if(t&&["route","custom"].includes(t.metadata.source))return t.name}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:t}){if(t&&window.Worker)try{let t=function(){let t=new Blob([tc]);return URL.createObjectURL(t)}();("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&D.kg.log("[Replay] Using compression worker");let e=new Worker(t);return new EventBufferProxy(e)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&D.kg.log("[Replay] Failed to create compression worker")}return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&D.kg.log("[Replay] Using simple buffer"),new EventBufferArray}({useCompression:this._options.useCompression}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this.startRecording()}_handleException(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&D.kg.error("[Replay]",t),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._options._experiments&&this._options._experiments.captureExceptions&&(0,T.Tb)(t)}_loadAndCheckSession(){let{type:t,session:e}=getSession({timeouts:this.timeouts,stickySession:!!this._options.stickySession,currentSession:this.session,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:this._options.errorSampleRate>0||"buffer"===this.recordingMode});"new"===t&&this.setInitialState();let a=this.getSessionId();return e.id!==a&&(e.previousSessionId=a),this.session=e,!!this.session.sampled||(this.stop("session unsampled"),!1)}_addListeners(){try{P.document.addEventListener("visibilitychange",this._handleVisibilityChange),P.addEventListener("blur",this._handleWindowBlur),P.addEventListener("focus",this._handleWindowFocus),P.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(function(t){let e=(0,E.Gd)().getScope(),a=(0,E.Gd)().getClient();e&&e.addScopeListener(handleScopeListener(t)),(0,O.oq)("dom",handleDomListener(t)),(0,O.oq)("history",e=>{if(!t.isEnabled())return;let a=function(t){let{from:e,to:a}=t,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:a,data:{previous:e}}}(e);null!==a&&(t.getContext().urls.push(a.name),t.triggerUserActivity(),t.addUpdate(()=>(createPerformanceSpans(t,[a]),!1)))}),function(t){let e=(0,E.Gd)().getClient();try{let a=new TextEncoder,{networkDetailAllowUrls:n,networkCaptureBodies:r,networkRequestHeaders:i,networkResponseHeaders:s}=t.getOptions(),o={replay:t,textEncoder:a,networkDetailAllowUrls:n,networkCaptureBodies:r,networkRequestHeaders:i,networkResponseHeaders:s};e&&e.on?e.on("beforeAddBreadcrumb",(t,e)=>(function(t,e,a){if(e.data)try{var n,r;"xhr"===e.category&&(n=a)&&n.xhr&&(function(t,e,a){let{xhr:n,input:r}=e,i=getBodySize(r,a.textEncoder),s=n.getResponseHeader("content-length")?parseContentLengthHeader(n.getResponseHeader("content-length")):getBodySize(n.response,a.textEncoder);void 0!==i&&(t.data.request_body_size=i),void 0!==s&&(t.data.response_body_size=s)}(e,a,t),captureXhrBreadcrumbToReplay(e,a,t)),"fetch"===e.category&&(r=a)&&r.response&&(function(t,e,a){let{input:n,response:r}=e,i=_getFetchRequestArgBody(n),s=getBodySize(i,a.textEncoder),o=r?parseContentLengthHeader(r.headers.get("content-length")):void 0;void 0!==s&&(t.data.request_body_size=s),void 0!==o&&(t.data.response_body_size=o)}(e,a,t),captureFetchBreadcrumbToReplay(e,a,t))}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&D.kg.warn("Error when enriching network breadcrumb")}})(o,t,e)):((0,O.oq)("fetch",e=>{if(!t.isEnabled())return;let a=function(t){let{startTimestamp:e,endTimestamp:a,fetchData:n,response:r}=t;if(!a)return null;let{method:i,url:s}=n;return{type:"resource.fetch",start:e/1e3,end:a/1e3,name:s,data:{method:i,statusCode:r&&r.status}}}(e);addNetworkBreadcrumb(t,a)}),(0,O.oq)("xhr",e=>
3{if(!t.isEnabled())return;let a=function(t){let{startTimestamp:e,endTimestamp:a,xhr:n}=t,r=n[O.xU];if(!e||!a||!r)return null;let{method:i,url:s,status_code:o}=r;return void 0===s?null:{type:"resource.xhr",name:s,start:e/1e3,end:a/1e3,data:{method:i,statusCode:o}}}(e);addNetworkBreadcrumb(t,a)}))}catch(t){}}(t),(0,R.c)(function(t,e=!1){let a=e?handleAfterSendEvent(t):void 0;return(e,n)=>{if("replay_event"===e.type)return delete e.breadcrumbs,e;if(e.type&&!isTransactionEvent(e))return e;if(!e.type&&e.exception&&e.exception.values&&e.exception.values.length&&(n.originalException&&n.originalException.__rrweb__||e.exception.values.some(t=>!!t.stacktrace&&!!t.stacktrace.frames&&!!t.stacktrace.frames.length&&t.stacktrace.frames.some(t=>t.filename&&t.filename.includes("/rrweb/src/"))))&&!t.getOptions()._experiments.captureExceptions)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&D.kg.log("[Replay] Ignoring error from rrweb internals",e),null;let r="buffer"===t.recordingMode&&e.message!==H&&!!e.exception&&!e.type&&isSampled(t.getOptions().errorSampleRate),i=r||"session"===t.recordingMode;return i&&(e.tags={...e.tags,replayId:t.getSessionId()}),a&&a(e,{statusCode:200}),e}}(t,!(a&&a.on))),a&&a.on&&(a.on("afterSendEvent",handleAfterSendEvent(t)),a.on("createDsc",e=>{let a=t.getSessionId();a&&t.isEnabled()&&"session"===t.recordingMode&&(e.replay_id=a)}),a.on("startTransaction",e=>{t.lastTransaction=e}),a.on("finishTransaction",e=>{t.lastTransaction=e}))}(this),this._hasInitializedCoreListeners=!0)}catch(t){this._handleException(t)}"PerformanceObserver"in P&&(this._performanceObserver=function(t){let e=new PerformanceObserver(e=>{let a=function(t,e){let[a,n,r]=t.reduce((t,e)=>("navigation"===e.entryType?t[0].push(e):"largest-contentful-paint"===e.entryType?t[1].push(e):t[2].push(e),t),[[],[],[]]),i=[],s=[],o=n.length?n[n.length-1]:void 0;return e.forEach(t=>{if("largest-contentful-paint"===t.entryType){(!o||o.startTime<t.startTime)&&(o=t);return}if("navigation"===t.entryType){!(t.duration>0)||a.find(isNavigationEntryEqual(t))||s.find(isNavigationEntryEqual(t))||s.push(t);return}i.push(t)}),[...o?[o]:[],...a,...r,...i,...s].sort((t,e)=>t.startTime-e.startTime)}(t.performanceEvents,e.getEntries());t.performanceEvents=a});return["element","event","first-input","largest-contentful-paint","layout-shift","longtask","navigation","paint","resource"].forEach(t=>{try{e.observe({type:t,buffered:!0})}catch(t){}}),e}(this))}_removeListeners(){try{P.document.removeEventListener("visibilitychange",this._handleVisibilityChange),P.removeEventListener("blur",this._handleWindowBlur),P.removeEventListener("focus",this._handleWindowFocus),P.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceObserver&&(this._performanceObserver.disconnect(),this._performanceObserver=null)}catch(t){this._handleException(t)}}__init13(){this._handleVisibilityChange=()=>{"visible"===P.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init14(){this._handleWindowBlur=()=>{let t=createBreadcrumb({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init15(){this._handleWindowFocus=()=>{let t=createBreadcrumb({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init16(){this._handleKeyboardEvent=t=>{!function(t,e){if(!t.isEnabled())return;t.updateUserActivity();let a=function(t){var e;let{metaKey:a,shiftKey:n,ctrlKey:r,altKey:i,key:s,target:o}=t;if(!o||"INPUT"===(e=o).tagName||"TEXTAREA"===e.tagName||e.isContentEditable||!s)return null;let l=1===s.length;if(!(a||r||i)&&l)return null;let d=(0,N.Rt)(o,{maxStringLength:200})||"<unknown>",c=getBaseDomBreadcrumb(o,d);return createBreadcrumb({category:"ui.keyDown",message:d,data:{...c.data,metaKey:a,shiftKey:n,ctrlKey:r,altKey:i,key:s}})}(e);a&&addBreadcrumbEvent(t,a)}(this,t)}}_doChangeToBackgroundTasks(t){if(!this.session)return;let e=isSessionExpired(this.session,this.timeouts);t&&!e&&this._createCustomBreadcrumb(t),this.conditionalFlush()}_doChangeToForegroundTasks(t){if(!this.session)return;let e=this.checkAndHandleExpiredSession();if(!e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&D.kg.log("[Replay] Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_triggerFullSnapshot(t=!0){try{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&D.kg.log("[Replay] Taking full rrweb snapshot"),record.takeFullSnapshot(t)}catch(t){this._handleException(t)}}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:g.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}}
3)})}_addPerformanceEntries(){let t=[...this.performanceEvents];return this.performanceEvents=[],Promise.all(createPerformanceSpans(this,t.map(createPerformanceEntry).filter(Boolean)))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:t,eventBuffer:e}=this;if(!t||!e||t.segmentId)return;let a=e.getEarliestTimestamp();a&&a<this._context.initialTimestamp&&(this._context.initialTimestamp=a)}_popEventContext(){let t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){if(!this.session||!this.eventBuffer){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&D.kg.error("[Replay] No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await addMemoryEntry(this),this.eventBuffer))try{this._updateInitialTimestampFromEventBuffer();let t=await this.eventBuffer.finish(),e=this.session.id,a=this._popEventContext(),n=this.session.segmentId++;this._maybeSaveSession(),await sendReplay({replayId:e,recordingData:t,segmentId:n,eventContext:a,session:this.session,options:this.getOptions(),timestamp:Date.now()})}catch(e){this._handleException(e),this.stop("sendReplay");let t=(0,E.Gd)().getClient();t&&t.recordDroppedEvent("send_error","replay")}}__init17(){this._flush=async({force:t=!1}={})=>{if(this._isEnabled||t){if(!this.checkAndHandleExpiredSession()){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&D.kg.error("[Replay] Attempting to finish replay event after session expired.");return}if(!this.session){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&D.kg.error("[Replay] No session found to flush.");return}if(this._debouncedFlush.cancel(),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=null;return}try{await this._flushLock}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&D.kg.error(t)}finally{this._debouncedFlush()}}}}_maybeSaveSession(){this.session&&this._options.stickySession&&saveSession(this.session)}__init18(){this._onMutationHandler=t=>{let e=t.length,a=this._options.mutationLimit,n=this._options.mutationBreadcrumbLimit,r=a&&e>a;if(e>n||r){let t=createBreadcrumb({category:"replay.mutations",data:{count:e,limit:r}});this._createCustomBreadcrumb(t)}return!r||(this.stop("mutationLimit"),!1)}}};function getOption(t,e,a,n){let r="string"==typeof n?n.split(","):[],i=[...t,...r,...e];return void 0!==a&&("string"==typeof a&&i.push(`.${a}`),console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")),i.join(",")}function isBrowser(){return"undefined"!=typeof window&&(!(0,U.KV)()||void 0!==F&&"renderer"===F.type)}let t_='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',tm=["content-length","content-type","accept"],tg=!1;let Replay=class Replay{static __initStatic(){this.id="Replay"}__init(){this.name=Replay.id}constructor({flushMinDelay:t=5e3,flushMaxDelay:e=5500,stickySession:a=!0,useCompression:n=!0,_experiments:r={},sessionSampleRate:i,errorSampleRate:s,maskAllText:o=!0,maskAllInputs:l=!0,blockAllMedia:d=!0,mutationBreadcrumbLimit:c=750,mutationLimit:u=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:p=[],networkDetailAllowUrls:f=[],networkCaptureBodies:_=!0,networkRequestHeaders:m=[],networkResponseHeaders:g=[],mask:y=[],unmask:b=[],block:w=[],unblock:v=[],ignore:k=[],maskFn:S,beforeAddRecordingEvent:E,blockClass:R,blockSelector:x,maskInputOptions:T,maskTextClass:C,maskTextSelector:A,ignoreClass:I}={}){if(Replay.prototype.__init.call(this),this._recordingOptions={maskAllInputs:l,maskAllText:o,maskInputOptions:{...T||{},password:!0},maskTextFn:S,maskInputFn:S,...function({mask:t,unmask:e,block:a,unblock:n,ignore:r,blockClass:i,blockSelector:s,maskTextClass:o,maskTextSelector:l,ignoreClass:d}){let c=getOption(t,[".sentry-mask","[data-sentry-mask]"],o,l),u=getOption(e,[".sentry-unmask","[data-sentry-unmask]"]),h={maskTextSelector:c,unmaskTextSelector:u,maskInputSelector:c,unmaskInputSelector:u,blockSelector:getOption(a,[".sentry-block","[data-sentry-block]",'base[href="/"]'],i,s),unblockSelector:getOption(n,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:getOption(r,[".sentry-ignore","[data-sentry-ignore]",'
3input[type="file"]'],d)};return i instanceof RegExp&&(h.blockClass=i),o instanceof RegExp&&(h.maskTextClass=o),h}({mask:y,unmask:b,block:w,unblock:v,ignore:k,blockClass:R,blockSelector:x,maskTextClass:C,maskTextSelector:A,ignoreClass:I}),slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0},this._initialOptions={flushMinDelay:t,flushMaxDelay:e,stickySession:a,sessionSampleRate:i,errorSampleRate:s,useCompression:n,blockAllMedia:d,maskAllInputs:l,maskAllText:o,mutationBreadcrumbLimit:c,mutationLimit:u,slowClickTimeout:h,slowClickIgnoreSelectors:p,networkDetailAllowUrls:f,networkCaptureBodies:_,networkRequestHeaders:_getMergedNetworkHeaders(m),networkResponseHeaders:_getMergedNetworkHeaders(g),beforeAddRecordingEvent:E,_experiments:r},"number"==typeof i&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.
4This option is deprecated and will be removed soon.
5Instead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:
6Sentry.init({ replaysSessionSampleRate: ${i} })`),this._initialOptions.sessionSampleRate=i),"number"==typeof s&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.
7This option is deprecated and will be removed soon.
8Instead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:
9Sentry.init({ replaysOnErrorSampleRate: ${s} })`),this._initialOptions.errorSampleRate=s),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${t_}`:t_),this._isInitialized&&isBrowser())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return tg}set _isInitialized(t){tg=t}setupOnce(){isBrowser()&&(this._setup(),setTimeout(()=>this._initialize()))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop():Promise.resolve()}flush(t){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&this._replay.initializeSampling()}_setup(){let t=function(t){let e=(0,E.Gd)().getClient(),a=e&&e.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...(0,I.Jr)(t)};return a?(null==t.sessionSampleRate&&null==t.errorSampleRate&&null==a.replaysSessionSampleRate&&null==a.replaysOnErrorSampleRate&&console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set."),"number"==typeof a.replaysSessionSampleRate&&(n.sessionSampleRate=a.replaysSessionSampleRate),"number"==typeof a.replaysOnErrorSampleRate&&(n.errorSampleRate=a.replaysOnErrorSampleRate)):console.warn("SDK client is not available."),n}(this._initialOptions);this._replay=new ReplayContainer({options:t,recordingOptions:this._recordingOptions})}};function _getMergedNetworkHeaders(t){return[...tm,...t.map(t=>t.toLowerCase())]}Replay.__initStatic()}}]);
10//# sourceMappingURL=b3a13d7d-89365ff580d1a69e.js.map

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.